--- a/OSSEval/OSSEval/utils.py
+++ b/OSSEval/OSSEval/utils.py
@@ -3,6 +3,10 @@
import urllib2
from apiclient.discovery import build
from apiclient.errors import HttpError
+import OSSEval
+
+class Configuration():
+ google_developerKey = OSSEval.google_developerKey
class TrivialJSONEncoder(JSONEncoder):
def default(self, o):
@@ -81,7 +85,7 @@
Acceptable values are: "e": exclude "i": include
'''
try:
- service = build("customsearch", "v1", developerKey="AIzaSyCAova46cAkHga_SZWTBqROdjoz1KcTlw8")
+ service = build("customsearch", "v1", developerKey=OSSEval.google_developerKey)
total = 0
if len(sites) == 0:
res = service.cse().list(q=search_text, cx='017576662512468239146:omuauf_lfve',).execute()