nodes: 0, module; 1, function_definition; 2, function_name:getArticles; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, expression_statement; 12, assert_statement; 13, assert_statement; 14, expression_statement; 15, expression_statement; 16, return_statement; 17, identifier:page; 18, integer:1; 19, identifier:count; 20, integer:100; 21, identifier:sortBy; 22, string:"rel"; 23, identifier:sortByAsc; 24, False; 25, identifier:returnInfo; 26, call; 27, comment:"""
          return a list of articles that match the topic page
          @param page: which page of the results to return (default: 1)
          @param count: number of articles to return (default: 100)
          @param sortBy: how are articles sorted. Options: id (internal id), date (publishing date), cosSim (closeness to the event centroid), rel (relevance to the query), sourceImportance (manually curated score of source importance - high value, high importance), sourceImportanceRank (reverse of sourceImportance), sourceAlexaGlobalRank (global rank of the news source), sourceAlexaCountryRank (country rank of the news source), socialScore (total shares on social media), facebookShares (shares on Facebook only)
          @param sortByAsc: should the results be sorted in ascending order (True) or descending (False)
          @param returnInfo: what details should be included in the returned information
          """; 28, comparison_operator:page >= 1; 29, comparison_operator:count <= 100; 30, assignment; 31, call; 32, call; 33, identifier:ReturnInfo; 34, argument_list; 35, identifier:page; 36, integer:1; 37, identifier:count; 38, integer:100; 39, identifier:params; 40, dictionary; 41, attribute; 42, argument_list; 43, attribute; 44, argument_list; 45, pair; 46, pair; 47, pair; 48, pair; 49, pair; 50, pair; 51, pair; 52, pair; 53, identifier:params; 54, identifier:update; 55, call; 56, attribute; 57, identifier:jsonRequest; 58, string:"/json/article"; 59, identifier:params; 60, string:"action"; 61, string:"getArticlesForTopicPage"; 62, string:"resultType"; 63, string:"articles"; 64, string:"dataType"; 65, subscript; 66, string:"articlesCount"; 67, identifier:count; 68, string:"articlesSortBy"; 69, identifier:sortBy; 70, string:"articlesSortByAsc"; 71, identifier:sortByAsc; 72, string:"page"; 73, identifier:page; 74, string:"topicPage"; 75, call; 76, attribute; 77, argument_list; 78, identifier:self; 79, identifier:eventRegistry; 80, attribute; 81, string:"dataType"; 82, attribute; 83, argument_list; 84, identifier:returnInfo; 85, identifier:getParams; 86, string:"articles"; 87, identifier:self; 88, identifier:topicPage; 89, identifier:json; 90, identifier:dumps; 91, attribute; 92, identifier:self; 93, identifier:topicPage
code: def getArticles(self,
                  page=1,
                  count=100,
                  sortBy = "rel",
                  sortByAsc = False,
                  returnInfo=ReturnInfo()):
          """
          return a list of articles that match the topic page
          @param page: which page of the results to return (default: 1)
          @param count: number of articles to return (default: 100)
          @param sortBy: how are articles sorted. Options: id (internal id), date (publishing date), cosSim (closeness to the event centroid), rel (relevance to the query), sourceImportance (manually curated score of source importance - high value, high importance), sourceImportanceRank (reverse of sourceImportance), sourceAlexaGlobalRank (global rank of the news source), sourceAlexaCountryRank (country rank of the news source), socialScore (total shares on social media), facebookShares (shares on Facebook only)
          @param sortByAsc: should the results be sorted in ascending order (True) or descending (False)
          @param returnInfo: what details should be included in the returned information
          """
          assert page >= 1
          assert count <= 100
          params = {
              "action": "getArticlesForTopicPage",
              "resultType": "articles",
              "dataType": self.topicPage["dataType"],
              "articlesCount": count,
              "articlesSortBy": sortBy,
              "articlesSortByAsc": sortByAsc,
              "page": page,
              "topicPage": json.dumps(self.topicPage)
          }
          params.update(returnInfo.getParams("articles"))
          return self.eventRegistry.jsonRequest("/json/article", params)