|
a/OSSEval/OSSEval/utils.py |
|
b/OSSEval/OSSEval/utils.py |
|
... |
|
... |
3 |
# distributed with this file, You can obtain one at http://www.gnu.org/licenses/agpl.txt
|
3 |
# distributed with this file, You can obtain one at http://www.gnu.org/licenses/agpl.txt
|
4 |
#
|
4 |
#
|
5 |
# OSSeval is powered by the SOS Open Source AGPL edition.
|
5 |
# OSSeval is powered by the SOS Open Source AGPL edition.
|
6 |
# The AGPL requires that you do not remove the SOS Open Source attribution and copyright
|
6 |
# The AGPL requires that you do not remove the SOS Open Source attribution and copyright
|
7 |
# notices from the user interface (see section 5.d below).
|
7 |
# notices from the user interface (see section 5.d below).
|
|
|
8 |
# Commercial licenses are available and do not require any SOS Open Source attributions
|
|
|
9 |
# or visible copyright notices but they are not permitted under this license.
|
8 |
|
10 |
|
9 |
# OSSEval Copyright 2014 Bitergium SLL
|
11 |
# OSSEval Copyright 2014 Bitergium SLL
|
10 |
# SOS Open Source Copyright 2012 Roberto Galoppini
|
12 |
# SOS Open Source Copyright 2012 Roberto Galoppini
|
11 |
# Author: Davide Galletti
|
13 |
# Author: Davide Galletti
|
12 |
|
14 |
|
13 |
|
15 |
|
14 |
from json import JSONEncoder
|
16 |
from json import JSONEncoder
|
|
|
17 |
from lxml import html
|
|
|
18 |
import urllib2
|
15 |
from apiclient.discovery import build
|
19 |
from apiclient.discovery import build
|
16 |
from apiclient.errors import HttpError
|
20 |
from apiclient.errors import HttpError
|
17 |
import OSSEval
|
21 |
import OSSEval
|
18 |
import urllib2
|
|
|
19 |
from lxml import html
|
|
|
20 |
|
22 |
|
21 |
class Configuration():
|
23 |
class Configuration():
|
22 |
google_developerKey = OSSEval.google_developerKey
|
24 |
google_developerKey = OSSEval.google_developerKey
|
23 |
|
25 |
|
24 |
class TrivialJSONEncoder(JSONEncoder):
|
26 |
class TrivialJSONEncoder(JSONEncoder):
|