<commit_before>import json
import requests 

class Repository:

	
	
    def getStars(self,x):
        return {
           'low': '1..10',
           'medium': '10..100',
           'high': '>1000'
            }.get(x, '1..10')
		

    def generateIssueQuery(self, seed=""):

		
        stars = self.getStars(seed)
		

        data = []
        query_string ='https://api.github.com/search/repositories?q=stars:STARS'
        r = requests.get(query_string.replace("STARS",stars))
        result = r.json()
        for item in result["items"]:
            data.append("repo:%s" % item['full_name'])
        return json.dumps(dict(query=data)), 200
		


class_instance = Repository()
<commit_msg>Query result to be string instead of a list.<commit_after>import json
import requests 

class Repository:

	
	
    def getStars(self,x):
        return {
           'low': '1..10',
           'medium': '10..100',
           'high': '>1000'
            }.get(x, '1..10')
		

    def generateIssueQuery(self, seed=""):

		
        stars = self.getStars(seed)
		

        data = []
        query_string ='https://api.github.com/search/repositories?q=stars:STARS'
        r = requests.get(query_string.replace("STARS",stars))
        result = r.json()
        for item in result["items"]:
            data.append("repo:%s" % item['full_name'])
        return json.dumps(dict(query=" ".join(data))), 200
		


class_instance = Repository()

{'fraction_non_alphanumeric': 0.15557112824106517, 'fraction_numerical': 0.025227750525578137, 'mean_word_length': 2.15929203539823, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '814050', 'n_tokens_mistral': 513, 'n_tokens_neox': 444, 'n_words': 89}