commit stringlengths 40 40 | old_file stringlengths 4 118 | new_file stringlengths 4 118 | old_contents stringlengths 0 2.94k | new_contents stringlengths 1 4.43k | subject stringlengths 15 444 | message stringlengths 16 3.45k | lang stringclasses 1
value | license stringclasses 13
values | repos stringlengths 5 43.2k | prompt stringlengths 17 4.58k | response stringlengths 1 4.43k | prompt_tagged stringlengths 58 4.62k | response_tagged stringlengths 1 4.43k | text stringlengths 132 7.29k | text_tagged stringlengths 173 7.33k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd400066927e70e43001e3c3172241579a314b60 | s3_sample.py | s3_sample.py | # Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | # Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | Update sample to also fetch the object, and delete the object and bucket. | Update sample to also fetch the object, and delete the object and bucket.
| Python | apache-2.0 | ceizner/codechallenge,awslabs/aws-python-sample,noahchense/aws-python-sample | # Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | # Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | <commit_before># Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | # Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | # Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | <commit_before># Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... |
c96b4de722e412f288b16dc8685c2556e3d801b1 | shopify_python/__init__.py | shopify_python/__init__.py | # Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
from __future__ import unicode_literals
from pylint import lint
from shopify_python import google_styleguide
from shopify_python import shopify_styleguide
__ver... | # Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
from __future__ import unicode_literals
from pylint import lint
from shopify_python import google_styleguide
from shopify_python import shopify_styleguide
__ver... | Increase version number to 0.4.3 | Increase version number to 0.4.3
| Python | mit | Shopify/shopify_python | # Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
from __future__ import unicode_literals
from pylint import lint
from shopify_python import google_styleguide
from shopify_python import shopify_styleguide
__ver... | # Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
from __future__ import unicode_literals
from pylint import lint
from shopify_python import google_styleguide
from shopify_python import shopify_styleguide
__ver... | <commit_before># Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
from __future__ import unicode_literals
from pylint import lint
from shopify_python import google_styleguide
from shopify_python import shopify_sty... | # Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
from __future__ import unicode_literals
from pylint import lint
from shopify_python import google_styleguide
from shopify_python import shopify_styleguide
__ver... | # Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
from __future__ import unicode_literals
from pylint import lint
from shopify_python import google_styleguide
from shopify_python import shopify_styleguide
__ver... | <commit_before># Copyright (c) 2017 "Shopify inc." All rights reserved.
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
from __future__ import unicode_literals
from pylint import lint
from shopify_python import google_styleguide
from shopify_python import shopify_sty... |
938840b27fd218eeaf9c253e9162392e653dff0b | snippet_parser/it.py | snippet_parser/it.py | #-*- encoding: utf-8 -*-
from __future__ import unicode_literals
from core import *
def handle_bandiera(template):
return template.get(1)
def handle_citazione(template):
if template.params:
return '« ' + sp(template.params[0]) + ' »'
class SnippetParser(SnippetParserBase):
def strip_template(sel... | #-*- encoding: utf-8 -*-
from __future__ import unicode_literals
from core import *
class SnippetParser(SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('bandiera'):
return self.handle_bandiera(template)
elif template.name.matches('c... | Fix snippet parser for Italian. | Fix snippet parser for Italian.
Former-commit-id: bb8d10f5f8301fbcd4f4232612bf722d380a3d10 | Python | mit | guilherme-pg/citationhunt,eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt | #-*- encoding: utf-8 -*-
from __future__ import unicode_literals
from core import *
def handle_bandiera(template):
return template.get(1)
def handle_citazione(template):
if template.params:
return '« ' + sp(template.params[0]) + ' »'
class SnippetParser(SnippetParserBase):
def strip_template(sel... | #-*- encoding: utf-8 -*-
from __future__ import unicode_literals
from core import *
class SnippetParser(SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('bandiera'):
return self.handle_bandiera(template)
elif template.name.matches('c... | <commit_before>#-*- encoding: utf-8 -*-
from __future__ import unicode_literals
from core import *
def handle_bandiera(template):
return template.get(1)
def handle_citazione(template):
if template.params:
return '« ' + sp(template.params[0]) + ' »'
class SnippetParser(SnippetParserBase):
def str... | #-*- encoding: utf-8 -*-
from __future__ import unicode_literals
from core import *
class SnippetParser(SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('bandiera'):
return self.handle_bandiera(template)
elif template.name.matches('c... | #-*- encoding: utf-8 -*-
from __future__ import unicode_literals
from core import *
def handle_bandiera(template):
return template.get(1)
def handle_citazione(template):
if template.params:
return '« ' + sp(template.params[0]) + ' »'
class SnippetParser(SnippetParserBase):
def strip_template(sel... | <commit_before>#-*- encoding: utf-8 -*-
from __future__ import unicode_literals
from core import *
def handle_bandiera(template):
return template.get(1)
def handle_citazione(template):
if template.params:
return '« ' + sp(template.params[0]) + ' »'
class SnippetParser(SnippetParserBase):
def str... |
a4a6c637615b561c7fef62aaa17deee7e0991436 | networking_cisco/services/trunk/trunkstubs.py | networking_cisco/services/trunk/trunkstubs.py | # Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | Fix neutron server crash introduced by trunk code | Fix neutron server crash introduced by trunk code
When running pre-stable/ocata neutron code the networking_cisco trunk
code was crashing due to incorrect backwards_compatibility implementation.
Change-Id: I8188f8d16313166418d207c99124e2763eb669a1
| Python | apache-2.0 | noironetworks/networking-cisco,Tehsmash/networking-cisco,Tehsmash/networking-cisco,openstack/networking-cisco,openstack/networking-cisco,noironetworks/networking-cisco | # Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | <commit_before># Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | # Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | <commit_before># Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... |
d2e3fcedb5a228a234d5b564cca391214f95e617 | us_ignite/apps/tests/fixtures.py | us_ignite/apps/tests/fixtures.py | from us_ignite.apps.models import Application, ApplicationMembership, Page
from us_ignite.profiles.tests.fixtures import get_user
def get_application(**kwargs):
defaults = {
'name': 'Gigabit app',
}
if not 'owner' in kwargs:
defaults['owner'] = get_user('us-ignite')
defaults.update(kwa... | from us_ignite.apps.models import (Application, ApplicationMembership,
Domain, Page)
from us_ignite.profiles.tests.fixtures import get_user
def get_application(**kwargs):
data = {
'name': 'Gigabit app',
}
if not 'owner' in kwargs:
data['owner'] = get_user... | Add ``get_domain`` test fixture factory. | Add ``get_domain`` test fixture factory.
Helpful to test the ``Domain``.
| Python | bsd-3-clause | us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite | from us_ignite.apps.models import Application, ApplicationMembership, Page
from us_ignite.profiles.tests.fixtures import get_user
def get_application(**kwargs):
defaults = {
'name': 'Gigabit app',
}
if not 'owner' in kwargs:
defaults['owner'] = get_user('us-ignite')
defaults.update(kwa... | from us_ignite.apps.models import (Application, ApplicationMembership,
Domain, Page)
from us_ignite.profiles.tests.fixtures import get_user
def get_application(**kwargs):
data = {
'name': 'Gigabit app',
}
if not 'owner' in kwargs:
data['owner'] = get_user... | <commit_before>from us_ignite.apps.models import Application, ApplicationMembership, Page
from us_ignite.profiles.tests.fixtures import get_user
def get_application(**kwargs):
defaults = {
'name': 'Gigabit app',
}
if not 'owner' in kwargs:
defaults['owner'] = get_user('us-ignite')
defa... | from us_ignite.apps.models import (Application, ApplicationMembership,
Domain, Page)
from us_ignite.profiles.tests.fixtures import get_user
def get_application(**kwargs):
data = {
'name': 'Gigabit app',
}
if not 'owner' in kwargs:
data['owner'] = get_user... | from us_ignite.apps.models import Application, ApplicationMembership, Page
from us_ignite.profiles.tests.fixtures import get_user
def get_application(**kwargs):
defaults = {
'name': 'Gigabit app',
}
if not 'owner' in kwargs:
defaults['owner'] = get_user('us-ignite')
defaults.update(kwa... | <commit_before>from us_ignite.apps.models import Application, ApplicationMembership, Page
from us_ignite.profiles.tests.fixtures import get_user
def get_application(**kwargs):
defaults = {
'name': 'Gigabit app',
}
if not 'owner' in kwargs:
defaults['owner'] = get_user('us-ignite')
defa... |
f7ae0b3663f9fabd312f1f07c544ac9122241fc4 | broadcaster.py | broadcaster.py | from threading import Thread
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import os
import requests
import time
FRAMES_PATH = os.getenv("FRAMES_PATH", 'frames')
PUBLISH_URL = os.getenv("PUBLISH_URL", 'http://localhost:9080/pub?id={channel}')
class EventHandler(FileSystem... | from threading import Thread
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import os
import requests
import time
FRAMES_PATH = os.getenv("FRAMES_PATH", 'frames')
PUBLISH_URL = os.getenv("PUBLISH_URL", 'http://localhost:9080/pub?id={channel}')
class EventHandler(FileSystem... | Fix bug when directory is created on watched path | Fix bug when directory is created on watched path
| Python | mit | jbochi/live_thumb,jbochi/live_thumb,jbochi/live_thumb | from threading import Thread
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import os
import requests
import time
FRAMES_PATH = os.getenv("FRAMES_PATH", 'frames')
PUBLISH_URL = os.getenv("PUBLISH_URL", 'http://localhost:9080/pub?id={channel}')
class EventHandler(FileSystem... | from threading import Thread
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import os
import requests
import time
FRAMES_PATH = os.getenv("FRAMES_PATH", 'frames')
PUBLISH_URL = os.getenv("PUBLISH_URL", 'http://localhost:9080/pub?id={channel}')
class EventHandler(FileSystem... | <commit_before>from threading import Thread
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import os
import requests
import time
FRAMES_PATH = os.getenv("FRAMES_PATH", 'frames')
PUBLISH_URL = os.getenv("PUBLISH_URL", 'http://localhost:9080/pub?id={channel}')
class EventHan... | from threading import Thread
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import os
import requests
import time
FRAMES_PATH = os.getenv("FRAMES_PATH", 'frames')
PUBLISH_URL = os.getenv("PUBLISH_URL", 'http://localhost:9080/pub?id={channel}')
class EventHandler(FileSystem... | from threading import Thread
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import os
import requests
import time
FRAMES_PATH = os.getenv("FRAMES_PATH", 'frames')
PUBLISH_URL = os.getenv("PUBLISH_URL", 'http://localhost:9080/pub?id={channel}')
class EventHandler(FileSystem... | <commit_before>from threading import Thread
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import os
import requests
import time
FRAMES_PATH = os.getenv("FRAMES_PATH", 'frames')
PUBLISH_URL = os.getenv("PUBLISH_URL", 'http://localhost:9080/pub?id={channel}')
class EventHan... |
d6bc89c7f2372a623de42232b47c417be0620c45 | imgfilter/analyzers/blur_detection/focus_measure.py | imgfilter/analyzers/blur_detection/focus_measure.py | import cv2
import numpy
def LAPV(img):
"""Implements the LAPV focus measure algorithm.
:param img: the image the measure is applied to as a numpy matrix
"""
return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ** 2
def TENG(img):
"""Implements the TENG focus measure algorithm.
:param img: the ... | import cv2
import numpy
def LAPV(img):
"""Implements the LAPV focus measure algorithm.
:param img: the image the measure is applied to as a numpy matrix
"""
return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ** 2
def TENG(img):
"""Implements the TENG focus measure algorithm.
:param img: the ... | Fix bug in focus measure | Fix bug in focus measure
| Python | mit | vismantic-ohtuprojekti/image-filtering-suite,vismantic-ohtuprojekti/qualipy | import cv2
import numpy
def LAPV(img):
"""Implements the LAPV focus measure algorithm.
:param img: the image the measure is applied to as a numpy matrix
"""
return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ** 2
def TENG(img):
"""Implements the TENG focus measure algorithm.
:param img: the ... | import cv2
import numpy
def LAPV(img):
"""Implements the LAPV focus measure algorithm.
:param img: the image the measure is applied to as a numpy matrix
"""
return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ** 2
def TENG(img):
"""Implements the TENG focus measure algorithm.
:param img: the ... | <commit_before>import cv2
import numpy
def LAPV(img):
"""Implements the LAPV focus measure algorithm.
:param img: the image the measure is applied to as a numpy matrix
"""
return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ** 2
def TENG(img):
"""Implements the TENG focus measure algorithm.
:... | import cv2
import numpy
def LAPV(img):
"""Implements the LAPV focus measure algorithm.
:param img: the image the measure is applied to as a numpy matrix
"""
return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ** 2
def TENG(img):
"""Implements the TENG focus measure algorithm.
:param img: the ... | import cv2
import numpy
def LAPV(img):
"""Implements the LAPV focus measure algorithm.
:param img: the image the measure is applied to as a numpy matrix
"""
return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ** 2
def TENG(img):
"""Implements the TENG focus measure algorithm.
:param img: the ... | <commit_before>import cv2
import numpy
def LAPV(img):
"""Implements the LAPV focus measure algorithm.
:param img: the image the measure is applied to as a numpy matrix
"""
return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ** 2
def TENG(img):
"""Implements the TENG focus measure algorithm.
:... |
b78d0fa67ad19d4090a5b67668f621aa3b58e8ea | tests/test_rest.py | tests/test_rest.py | from vcontrol.rest.commands import info
from vcontrol.rest.commands.plugins import add
import requests
def test_info_command_r():
""" tests the InfoCommandR class """
r = requests.get('http://localhost:8080/v1/commands/info/foo')
assert r.text == 'unable to get info on foo'
c_inst = info.InfoCommandR(... | from vcontrol.rest.commands import info
from vcontrol.rest.commands.plugins import add
import requests
def test_info_command_r():
""" tests the InfoCommandR class """
r = requests.get('http://localhost:8080/v1/commands/info/foo')
assert r.text == 'unable to get info on foo'
c_inst = info.InfoCommandR(... | Test against the correct endpoint. | Test against the correct endpoint. | Python | apache-2.0 | CyberReboot/vcontrol,cglewis/vcontrol,CyberReboot/vcontrol,cglewis/vcontrol,cglewis/vcontrol,CyberReboot/vcontrol | from vcontrol.rest.commands import info
from vcontrol.rest.commands.plugins import add
import requests
def test_info_command_r():
""" tests the InfoCommandR class """
r = requests.get('http://localhost:8080/v1/commands/info/foo')
assert r.text == 'unable to get info on foo'
c_inst = info.InfoCommandR(... | from vcontrol.rest.commands import info
from vcontrol.rest.commands.plugins import add
import requests
def test_info_command_r():
""" tests the InfoCommandR class """
r = requests.get('http://localhost:8080/v1/commands/info/foo')
assert r.text == 'unable to get info on foo'
c_inst = info.InfoCommandR(... | <commit_before>from vcontrol.rest.commands import info
from vcontrol.rest.commands.plugins import add
import requests
def test_info_command_r():
""" tests the InfoCommandR class """
r = requests.get('http://localhost:8080/v1/commands/info/foo')
assert r.text == 'unable to get info on foo'
c_inst = inf... | from vcontrol.rest.commands import info
from vcontrol.rest.commands.plugins import add
import requests
def test_info_command_r():
""" tests the InfoCommandR class """
r = requests.get('http://localhost:8080/v1/commands/info/foo')
assert r.text == 'unable to get info on foo'
c_inst = info.InfoCommandR(... | from vcontrol.rest.commands import info
from vcontrol.rest.commands.plugins import add
import requests
def test_info_command_r():
""" tests the InfoCommandR class """
r = requests.get('http://localhost:8080/v1/commands/info/foo')
assert r.text == 'unable to get info on foo'
c_inst = info.InfoCommandR(... | <commit_before>from vcontrol.rest.commands import info
from vcontrol.rest.commands.plugins import add
import requests
def test_info_command_r():
""" tests the InfoCommandR class """
r = requests.get('http://localhost:8080/v1/commands/info/foo')
assert r.text == 'unable to get info on foo'
c_inst = inf... |
c30ef8dba42dcc16eb7bf9e126d4551db30c06eb | exporters/filters/__init__.py | exporters/filters/__init__.py | from .key_value_filter import KeyValueFilter
from .key_value_regex_filter import KeyValueRegexFilter
from .no_filter import NoFilter
from .pythonexp_filter import PythonexpFilter
__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'NoFilter', 'PythonexpFilter']
| from .key_value_filters import KeyValueFilter, KeyValueRegexFilter
from .no_filter import NoFilter
from .pythonexp_filter import PythonexpFilter
__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'NoFilter', 'PythonexpFilter']
| Use proper filters avoiding deprecated warnings. | Use proper filters avoiding deprecated warnings.
| Python | bsd-3-clause | scrapinghub/exporters | from .key_value_filter import KeyValueFilter
from .key_value_regex_filter import KeyValueRegexFilter
from .no_filter import NoFilter
from .pythonexp_filter import PythonexpFilter
__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'NoFilter', 'PythonexpFilter']
Use proper filters avoiding deprecated warnings. | from .key_value_filters import KeyValueFilter, KeyValueRegexFilter
from .no_filter import NoFilter
from .pythonexp_filter import PythonexpFilter
__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'NoFilter', 'PythonexpFilter']
| <commit_before>from .key_value_filter import KeyValueFilter
from .key_value_regex_filter import KeyValueRegexFilter
from .no_filter import NoFilter
from .pythonexp_filter import PythonexpFilter
__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'NoFilter', 'PythonexpFilter']
<commit_msg>Use proper filters avoiding de... | from .key_value_filters import KeyValueFilter, KeyValueRegexFilter
from .no_filter import NoFilter
from .pythonexp_filter import PythonexpFilter
__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'NoFilter', 'PythonexpFilter']
| from .key_value_filter import KeyValueFilter
from .key_value_regex_filter import KeyValueRegexFilter
from .no_filter import NoFilter
from .pythonexp_filter import PythonexpFilter
__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'NoFilter', 'PythonexpFilter']
Use proper filters avoiding deprecated warnings.from .key... | <commit_before>from .key_value_filter import KeyValueFilter
from .key_value_regex_filter import KeyValueRegexFilter
from .no_filter import NoFilter
from .pythonexp_filter import PythonexpFilter
__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'NoFilter', 'PythonexpFilter']
<commit_msg>Use proper filters avoiding de... |
c424744af801241fbdced0e3344c1f9b6f2c6416 | citenet/cli.py | citenet/cli.py | """Command-line interface for citenet."""
def main():
"""Run the CLI."""
print('CiteNet CLI')
| """Command-line interface for citenet."""
import sys
import json
import citenet
def main():
"""Run the CLI."""
if len(sys.argv) != 2:
print("Usage: {} <config_file>")
with open(sys.argv[1]) as config_file:
config = json.load(config_file)
graph = citenet.read_csv_graph(**config['graph... | Add rudimentary JSON configuration to CLI | Add rudimentary JSON configuration to CLI
| Python | mit | Pringley/citenet | """Command-line interface for citenet."""
def main():
"""Run the CLI."""
print('CiteNet CLI')
Add rudimentary JSON configuration to CLI | """Command-line interface for citenet."""
import sys
import json
import citenet
def main():
"""Run the CLI."""
if len(sys.argv) != 2:
print("Usage: {} <config_file>")
with open(sys.argv[1]) as config_file:
config = json.load(config_file)
graph = citenet.read_csv_graph(**config['graph... | <commit_before>"""Command-line interface for citenet."""
def main():
"""Run the CLI."""
print('CiteNet CLI')
<commit_msg>Add rudimentary JSON configuration to CLI<commit_after> | """Command-line interface for citenet."""
import sys
import json
import citenet
def main():
"""Run the CLI."""
if len(sys.argv) != 2:
print("Usage: {} <config_file>")
with open(sys.argv[1]) as config_file:
config = json.load(config_file)
graph = citenet.read_csv_graph(**config['graph... | """Command-line interface for citenet."""
def main():
"""Run the CLI."""
print('CiteNet CLI')
Add rudimentary JSON configuration to CLI"""Command-line interface for citenet."""
import sys
import json
import citenet
def main():
"""Run the CLI."""
if len(sys.argv) != 2:
print("Usage: {} <config... | <commit_before>"""Command-line interface for citenet."""
def main():
"""Run the CLI."""
print('CiteNet CLI')
<commit_msg>Add rudimentary JSON configuration to CLI<commit_after>"""Command-line interface for citenet."""
import sys
import json
import citenet
def main():
"""Run the CLI."""
if len(sys.arg... |
7d714f0e19ceaa72e186674302549c176e98f442 | streak-podium/render.py | streak-podium/render.py | import matplotlib.pyplot as plt
import numpy as np
def horizontal_bar(sorted_streaks, sort):
"""
Render a horizontal bar chart of streaks.
Values have already been sorted by sort.
"""
# Only extract those users & streaks for streaks that are non-zero:
users, streaks = zip(*[(user, streak.get(... | import matplotlib.pyplot as plt
import numpy as np
def horizontal_bar(sorted_streaks, sort):
"""
Render a horizontal bar chart of streaks.
Values have already been sorted by sort.
"""
# Only extract those users & streaks for streaks that are non-zero:
users, streaks = zip(*[(user, streak.get(... | Add argument to adjust figure size | Add argument to adjust figure size
And minor styling tweaks.
| Python | mit | supermitch/streak-podium,jollyra/hubot-commit-streak,jollyra/hubot-commit-streak,jollyra/hubot-streak-podium,jollyra/hubot-streak-podium,supermitch/streak-podium | import matplotlib.pyplot as plt
import numpy as np
def horizontal_bar(sorted_streaks, sort):
"""
Render a horizontal bar chart of streaks.
Values have already been sorted by sort.
"""
# Only extract those users & streaks for streaks that are non-zero:
users, streaks = zip(*[(user, streak.get(... | import matplotlib.pyplot as plt
import numpy as np
def horizontal_bar(sorted_streaks, sort):
"""
Render a horizontal bar chart of streaks.
Values have already been sorted by sort.
"""
# Only extract those users & streaks for streaks that are non-zero:
users, streaks = zip(*[(user, streak.get(... | <commit_before>import matplotlib.pyplot as plt
import numpy as np
def horizontal_bar(sorted_streaks, sort):
"""
Render a horizontal bar chart of streaks.
Values have already been sorted by sort.
"""
# Only extract those users & streaks for streaks that are non-zero:
users, streaks = zip(*[(us... | import matplotlib.pyplot as plt
import numpy as np
def horizontal_bar(sorted_streaks, sort):
"""
Render a horizontal bar chart of streaks.
Values have already been sorted by sort.
"""
# Only extract those users & streaks for streaks that are non-zero:
users, streaks = zip(*[(user, streak.get(... | import matplotlib.pyplot as plt
import numpy as np
def horizontal_bar(sorted_streaks, sort):
"""
Render a horizontal bar chart of streaks.
Values have already been sorted by sort.
"""
# Only extract those users & streaks for streaks that are non-zero:
users, streaks = zip(*[(user, streak.get(... | <commit_before>import matplotlib.pyplot as plt
import numpy as np
def horizontal_bar(sorted_streaks, sort):
"""
Render a horizontal bar chart of streaks.
Values have already been sorted by sort.
"""
# Only extract those users & streaks for streaks that are non-zero:
users, streaks = zip(*[(us... |
94f5edd9b2f693b48181ddefa7af725be854c49e | src/config/common/ssl_adapter.py | src/config/common/ssl_adapter.py | """ HTTPS Transport Adapter for python-requests, that allows configuration of
SSL version"""
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# @author: Sanju Abraham, Juniper Networks, OpenContrail
from requests.adapters import HTTPAdapter
try:
# This is required for RDO, which installs both... | """ HTTPS Transport Adapter for python-requests, that allows configuration of
SSL version"""
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# @author: Sanju Abraham, Juniper Networks, OpenContrail
from requests.adapters import HTTPAdapter
try:
# This is required for RDO, which installs both... | Add ssl_version to the list of attributes, required when vnc_api gets called via multiprocessing module. This will ensure ssl_version gets included when pickle calls __getstate__ and __setstate__. | Add ssl_version to the list of attributes, required when vnc_api gets called via multiprocessing module.
This will ensure ssl_version gets included when pickle calls __getstate__ and __setstate__.
Courtesy: https://github.com/sigmavirus24/requests-toolbelt/commit/decadbd3512444889feb30cf1ff2f1448a3ecfca
Closes-Bug:#1... | Python | apache-2.0 | tcpcloud/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller | """ HTTPS Transport Adapter for python-requests, that allows configuration of
SSL version"""
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# @author: Sanju Abraham, Juniper Networks, OpenContrail
from requests.adapters import HTTPAdapter
try:
# This is required for RDO, which installs both... | """ HTTPS Transport Adapter for python-requests, that allows configuration of
SSL version"""
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# @author: Sanju Abraham, Juniper Networks, OpenContrail
from requests.adapters import HTTPAdapter
try:
# This is required for RDO, which installs both... | <commit_before>""" HTTPS Transport Adapter for python-requests, that allows configuration of
SSL version"""
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# @author: Sanju Abraham, Juniper Networks, OpenContrail
from requests.adapters import HTTPAdapter
try:
# This is required for RDO, whic... | """ HTTPS Transport Adapter for python-requests, that allows configuration of
SSL version"""
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# @author: Sanju Abraham, Juniper Networks, OpenContrail
from requests.adapters import HTTPAdapter
try:
# This is required for RDO, which installs both... | """ HTTPS Transport Adapter for python-requests, that allows configuration of
SSL version"""
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# @author: Sanju Abraham, Juniper Networks, OpenContrail
from requests.adapters import HTTPAdapter
try:
# This is required for RDO, which installs both... | <commit_before>""" HTTPS Transport Adapter for python-requests, that allows configuration of
SSL version"""
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# @author: Sanju Abraham, Juniper Networks, OpenContrail
from requests.adapters import HTTPAdapter
try:
# This is required for RDO, whic... |
34513dd1716f7299b2244d488055e82da1aea080 | armstrong/core/arm_layout/utils.py | armstrong/core/arm_layout/utils.py | from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
def get_layout_template_name(model, name):
ret = []
for a in model.__class__.mro():
if not hasattr(a, "_meta"):
continue
ret.append("layout/%s/%s/%s.html" % (a._meta.app_label,
... | from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
from armstrong.utils.backends import GenericBackend
template_finder = GenericBackend('ARMSTRONG_LAYOUT_TEMPLATE_FINDER',
defaults='armstrong.core.arm_layout.utils.get_layout_template_name')\
.get_backend... | Use a GenericBackend for our template finding function. | Use a GenericBackend for our template finding function.
| Python | apache-2.0 | armstrong/armstrong.core.arm_layout,armstrong/armstrong.core.arm_layout | from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
def get_layout_template_name(model, name):
ret = []
for a in model.__class__.mro():
if not hasattr(a, "_meta"):
continue
ret.append("layout/%s/%s/%s.html" % (a._meta.app_label,
... | from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
from armstrong.utils.backends import GenericBackend
template_finder = GenericBackend('ARMSTRONG_LAYOUT_TEMPLATE_FINDER',
defaults='armstrong.core.arm_layout.utils.get_layout_template_name')\
.get_backend... | <commit_before>from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
def get_layout_template_name(model, name):
ret = []
for a in model.__class__.mro():
if not hasattr(a, "_meta"):
continue
ret.append("layout/%s/%s/%s.html" % (a._meta.app... | from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
from armstrong.utils.backends import GenericBackend
template_finder = GenericBackend('ARMSTRONG_LAYOUT_TEMPLATE_FINDER',
defaults='armstrong.core.arm_layout.utils.get_layout_template_name')\
.get_backend... | from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
def get_layout_template_name(model, name):
ret = []
for a in model.__class__.mro():
if not hasattr(a, "_meta"):
continue
ret.append("layout/%s/%s/%s.html" % (a._meta.app_label,
... | <commit_before>from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
def get_layout_template_name(model, name):
ret = []
for a in model.__class__.mro():
if not hasattr(a, "_meta"):
continue
ret.append("layout/%s/%s/%s.html" % (a._meta.app... |
f83d6e0848d2b2a9f1cff4938b315c41d01ce092 | python/ipywidgets/ipywidgets/widgets/utils.py | python/ipywidgets/ipywidgets/widgets/utils.py | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import warnings
# This function is from https://github.com/python/cpython/issues/67998
# (https://bugs.python.org/file39550/deprecated_module_stacklevel.diff) and
# calculates the appropriate stacklevel for... | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import warnings
# This function is from https://github.com/python/cpython/issues/67998
# (https://bugs.python.org/file39550/deprecated_module_stacklevel.diff) and
# calculates the appropriate stacklevel for... | Adjust stack level returned to account for it being calculated one level deeper than it is being used. | Adjust stack level returned to account for it being calculated one level deeper than it is being used.
Also, make the stack level calculator private until there is a need to make it public. | Python | bsd-3-clause | jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import warnings
# This function is from https://github.com/python/cpython/issues/67998
# (https://bugs.python.org/file39550/deprecated_module_stacklevel.diff) and
# calculates the appropriate stacklevel for... | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import warnings
# This function is from https://github.com/python/cpython/issues/67998
# (https://bugs.python.org/file39550/deprecated_module_stacklevel.diff) and
# calculates the appropriate stacklevel for... | <commit_before># Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import warnings
# This function is from https://github.com/python/cpython/issues/67998
# (https://bugs.python.org/file39550/deprecated_module_stacklevel.diff) and
# calculates the appropriate... | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import warnings
# This function is from https://github.com/python/cpython/issues/67998
# (https://bugs.python.org/file39550/deprecated_module_stacklevel.diff) and
# calculates the appropriate stacklevel for... | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import warnings
# This function is from https://github.com/python/cpython/issues/67998
# (https://bugs.python.org/file39550/deprecated_module_stacklevel.diff) and
# calculates the appropriate stacklevel for... | <commit_before># Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import warnings
# This function is from https://github.com/python/cpython/issues/67998
# (https://bugs.python.org/file39550/deprecated_module_stacklevel.diff) and
# calculates the appropriate... |
a6bab1368f5f6514ed6b3ac5abe38d6dea0c8cca | compile_w32.py | compile_w32.py | """
Compile script for py2exe.
In order to compile this you need to install py2exe.
From here: http://sourceforge.net/projects/py2exe/files/py2exe/
Compile environment must be win32 (Win XP, Win Server and so on...)
And you'll also need a working install of Python 2.6 (or newer) from python.org.
Python version must ... | """
Compile script for py2exe.
In order to compile this you need to install py2exe.
From here: http://sourceforge.net/projects/py2exe/files/py2exe/
Compile environment must be win32 (Win XP, Win Server and so on...)
And you'll also need a working install of Python 2.6 (or newer) from python.org.
Python version must ... | Add comment to merge with setup.py | Add comment to merge with setup.py
| Python | bsd-3-clause | adlibre/dms-client | """
Compile script for py2exe.
In order to compile this you need to install py2exe.
From here: http://sourceforge.net/projects/py2exe/files/py2exe/
Compile environment must be win32 (Win XP, Win Server and so on...)
And you'll also need a working install of Python 2.6 (or newer) from python.org.
Python version must ... | """
Compile script for py2exe.
In order to compile this you need to install py2exe.
From here: http://sourceforge.net/projects/py2exe/files/py2exe/
Compile environment must be win32 (Win XP, Win Server and so on...)
And you'll also need a working install of Python 2.6 (or newer) from python.org.
Python version must ... | <commit_before>"""
Compile script for py2exe.
In order to compile this you need to install py2exe.
From here: http://sourceforge.net/projects/py2exe/files/py2exe/
Compile environment must be win32 (Win XP, Win Server and so on...)
And you'll also need a working install of Python 2.6 (or newer) from python.org.
Pytho... | """
Compile script for py2exe.
In order to compile this you need to install py2exe.
From here: http://sourceforge.net/projects/py2exe/files/py2exe/
Compile environment must be win32 (Win XP, Win Server and so on...)
And you'll also need a working install of Python 2.6 (or newer) from python.org.
Python version must ... | """
Compile script for py2exe.
In order to compile this you need to install py2exe.
From here: http://sourceforge.net/projects/py2exe/files/py2exe/
Compile environment must be win32 (Win XP, Win Server and so on...)
And you'll also need a working install of Python 2.6 (or newer) from python.org.
Python version must ... | <commit_before>"""
Compile script for py2exe.
In order to compile this you need to install py2exe.
From here: http://sourceforge.net/projects/py2exe/files/py2exe/
Compile environment must be win32 (Win XP, Win Server and so on...)
And you'll also need a working install of Python 2.6 (or newer) from python.org.
Pytho... |
aaa468b458b0ec73d4c175993674835c9bdd0df8 | cheddar/urls.py | cheddar/urls.py | # Copyright 2015 Thierry Carrez <thierry@openstack.org>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | # Copyright 2015 Thierry Carrez <thierry@openstack.org>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | Support spaces in track names | Support spaces in track names
Fix URLs so that spaces in track names do not create fail.
| Python | apache-2.0 | ttx/summitsched,ttx/summitsched | # Copyright 2015 Thierry Carrez <thierry@openstack.org>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | # Copyright 2015 Thierry Carrez <thierry@openstack.org>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | <commit_before># Copyright 2015 Thierry Carrez <thierry@openstack.org>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licens... | # Copyright 2015 Thierry Carrez <thierry@openstack.org>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | # Copyright 2015 Thierry Carrez <thierry@openstack.org>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | <commit_before># Copyright 2015 Thierry Carrez <thierry@openstack.org>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licens... |
4dbeb34c0ca691ff4a9faf6d6a0fa9f67bacba5a | app/tests/conftest.py | app/tests/conftest.py | import os.path
import pytest
from alembic.command import upgrade
from alembic.config import Config
from app.database import sa, create_engine, create_db_session
from app.models import Base
HERE = os.path.dirname(os.path.abspath(__file__))
ALEMBIC_CONFIG = os.path.join(HERE, "..", "..", "alembic.ini")
def apply_mi... | import os.path
import pytest
from alembic.command import upgrade
from alembic.config import Config
from app.database import db as _db
from app.database import create_engine, create_db_session
from app.models import Base
HERE = os.path.dirname(os.path.abspath(__file__))
ALEMBIC_CONFIG = os.path.join(HERE, "..", ".."... | Change engine fixture to use db obj | Change engine fixture to use db obj
| Python | mit | PsyBorgs/redditanalyser,PsyBorgs/redditanalyser | import os.path
import pytest
from alembic.command import upgrade
from alembic.config import Config
from app.database import sa, create_engine, create_db_session
from app.models import Base
HERE = os.path.dirname(os.path.abspath(__file__))
ALEMBIC_CONFIG = os.path.join(HERE, "..", "..", "alembic.ini")
def apply_mi... | import os.path
import pytest
from alembic.command import upgrade
from alembic.config import Config
from app.database import db as _db
from app.database import create_engine, create_db_session
from app.models import Base
HERE = os.path.dirname(os.path.abspath(__file__))
ALEMBIC_CONFIG = os.path.join(HERE, "..", ".."... | <commit_before>import os.path
import pytest
from alembic.command import upgrade
from alembic.config import Config
from app.database import sa, create_engine, create_db_session
from app.models import Base
HERE = os.path.dirname(os.path.abspath(__file__))
ALEMBIC_CONFIG = os.path.join(HERE, "..", "..", "alembic.ini")... | import os.path
import pytest
from alembic.command import upgrade
from alembic.config import Config
from app.database import db as _db
from app.database import create_engine, create_db_session
from app.models import Base
HERE = os.path.dirname(os.path.abspath(__file__))
ALEMBIC_CONFIG = os.path.join(HERE, "..", ".."... | import os.path
import pytest
from alembic.command import upgrade
from alembic.config import Config
from app.database import sa, create_engine, create_db_session
from app.models import Base
HERE = os.path.dirname(os.path.abspath(__file__))
ALEMBIC_CONFIG = os.path.join(HERE, "..", "..", "alembic.ini")
def apply_mi... | <commit_before>import os.path
import pytest
from alembic.command import upgrade
from alembic.config import Config
from app.database import sa, create_engine, create_db_session
from app.models import Base
HERE = os.path.dirname(os.path.abspath(__file__))
ALEMBIC_CONFIG = os.path.join(HERE, "..", "..", "alembic.ini")... |
96b283adbb3156e77aee012a9fb8aba9d67343a9 | src/bitmessageqt/widgets.py | src/bitmessageqt/widgets.py | from PyQt4 import uic
import os.path
import sys
def resource_path(path):
try:
return os.path.join(sys._MEIPASS, path)
except:
return os.path.join(os.path.dirname(__file__), path)
def load(path, widget):
uic.loadUi(resource_path(path), widget)
| from PyQt4 import uic
import os.path
import sys
from shared import codePath
def resource_path(resFile):
baseDir = codePath()
for subDir in ["ui", "bitmessageqt"]:
if os.path.isdir(os.path.join(baseDir, subDir)) and os.path.isfile(os.path.join(baseDir, subDir, resFile)):
return os.path.join(... | Change UI loading for frozen | Change UI loading for frozen
| Python | mit | mailchuck/PyBitmessage,mailchuck/PyBitmessage,mailchuck/PyBitmessage,mailchuck/PyBitmessage | from PyQt4 import uic
import os.path
import sys
def resource_path(path):
try:
return os.path.join(sys._MEIPASS, path)
except:
return os.path.join(os.path.dirname(__file__), path)
def load(path, widget):
uic.loadUi(resource_path(path), widget)
Change UI loading for frozen | from PyQt4 import uic
import os.path
import sys
from shared import codePath
def resource_path(resFile):
baseDir = codePath()
for subDir in ["ui", "bitmessageqt"]:
if os.path.isdir(os.path.join(baseDir, subDir)) and os.path.isfile(os.path.join(baseDir, subDir, resFile)):
return os.path.join(... | <commit_before>from PyQt4 import uic
import os.path
import sys
def resource_path(path):
try:
return os.path.join(sys._MEIPASS, path)
except:
return os.path.join(os.path.dirname(__file__), path)
def load(path, widget):
uic.loadUi(resource_path(path), widget)
<commit_msg>Change UI loading ... | from PyQt4 import uic
import os.path
import sys
from shared import codePath
def resource_path(resFile):
baseDir = codePath()
for subDir in ["ui", "bitmessageqt"]:
if os.path.isdir(os.path.join(baseDir, subDir)) and os.path.isfile(os.path.join(baseDir, subDir, resFile)):
return os.path.join(... | from PyQt4 import uic
import os.path
import sys
def resource_path(path):
try:
return os.path.join(sys._MEIPASS, path)
except:
return os.path.join(os.path.dirname(__file__), path)
def load(path, widget):
uic.loadUi(resource_path(path), widget)
Change UI loading for frozenfrom PyQt4 import... | <commit_before>from PyQt4 import uic
import os.path
import sys
def resource_path(path):
try:
return os.path.join(sys._MEIPASS, path)
except:
return os.path.join(os.path.dirname(__file__), path)
def load(path, widget):
uic.loadUi(resource_path(path), widget)
<commit_msg>Change UI loading ... |
31b8ecda3d6b34428180b45e49489ebefc8a57e3 | tests/test_util.py | tests/test_util.py | from unittest import TestCase
from pytest import deprecated_call
from w3lib.util import str_to_unicode, to_native_str, unicode_to_str
class StrToUnicodeTestCase(TestCase):
def test_deprecation(self):
with deprecated_call():
str_to_unicode('')
class ToNativeStrTestCase(TestCase):
def ... | from unittest import TestCase
from pytest import deprecated_call, raises
from w3lib.util import (
str_to_unicode,
to_bytes,
to_native_str,
to_unicode,
unicode_to_str,
)
class StrToUnicodeTestCase(TestCase):
def test_deprecation(self):
with deprecated_call():
str_to_unico... | Test the TypeError of to_bytes() and to_unicode() | Test the TypeError of to_bytes() and to_unicode()
| Python | bsd-3-clause | scrapy/w3lib | from unittest import TestCase
from pytest import deprecated_call
from w3lib.util import str_to_unicode, to_native_str, unicode_to_str
class StrToUnicodeTestCase(TestCase):
def test_deprecation(self):
with deprecated_call():
str_to_unicode('')
class ToNativeStrTestCase(TestCase):
def ... | from unittest import TestCase
from pytest import deprecated_call, raises
from w3lib.util import (
str_to_unicode,
to_bytes,
to_native_str,
to_unicode,
unicode_to_str,
)
class StrToUnicodeTestCase(TestCase):
def test_deprecation(self):
with deprecated_call():
str_to_unico... | <commit_before>from unittest import TestCase
from pytest import deprecated_call
from w3lib.util import str_to_unicode, to_native_str, unicode_to_str
class StrToUnicodeTestCase(TestCase):
def test_deprecation(self):
with deprecated_call():
str_to_unicode('')
class ToNativeStrTestCase(TestC... | from unittest import TestCase
from pytest import deprecated_call, raises
from w3lib.util import (
str_to_unicode,
to_bytes,
to_native_str,
to_unicode,
unicode_to_str,
)
class StrToUnicodeTestCase(TestCase):
def test_deprecation(self):
with deprecated_call():
str_to_unico... | from unittest import TestCase
from pytest import deprecated_call
from w3lib.util import str_to_unicode, to_native_str, unicode_to_str
class StrToUnicodeTestCase(TestCase):
def test_deprecation(self):
with deprecated_call():
str_to_unicode('')
class ToNativeStrTestCase(TestCase):
def ... | <commit_before>from unittest import TestCase
from pytest import deprecated_call
from w3lib.util import str_to_unicode, to_native_str, unicode_to_str
class StrToUnicodeTestCase(TestCase):
def test_deprecation(self):
with deprecated_call():
str_to_unicode('')
class ToNativeStrTestCase(TestC... |
85300e02c65fc6a611b9bdd0722c965d53be8d52 | tests/test_util.py | tests/test_util.py | # -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}']
| # -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}\n']
| Update json test to include newline | Update json test to include newline
| Python | mit | nickfrostatx/malt | # -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}']
Update json test to include newlin... | # -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}\n']
| <commit_before># -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}']
<commit_msg>Update ... | # -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}\n']
| # -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}']
Update json test to include newlin... | <commit_before># -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}']
<commit_msg>Update ... |
7a33e2e94e46dc3465a088cf4755134a09f6627c | src/models/user.py | src/models/user.py | from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
def __init__(self):
pass
| from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
suggestions = db.relationship('Suggestion', secondary=suggestions,
backref=db.backref('users', lazy='dynamic'))
def __init__(self):
pass
| Add suggestions to User model | Add suggestions to User model | Python | agpl-3.0 | DavidJFelix/hatchit,DavidJFelix/hatchit,DavidJFelix/hatchit | from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
def __init__(self):
pass
Add suggestions to User model | from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
suggestions = db.relationship('Suggestion', secondary=suggestions,
backref=db.backref('users', lazy='dynamic'))
def __init__(self):
pass
| <commit_before>from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
def __init__(self):
pass
<commit_msg>Add suggestions to User model<commit_after> | from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
suggestions = db.relationship('Suggestion', secondary=suggestions,
backref=db.backref('users', lazy='dynamic'))
def __init__(self):
pass
| from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
def __init__(self):
pass
Add suggestions to User modelfrom flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
suggestions = db.relationship('Suggestion', secondary=suggestions,
backref=db.b... | <commit_before>from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
def __init__(self):
pass
<commit_msg>Add suggestions to User model<commit_after>from flock import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
suggestions = db.relationship('Suggestio... |
501dd023eb1b8c868808fe5151dc865e5e84859c | stats/topics.py | stats/topics.py | import neo4j
class SubTopics(neo4j.Traversal):
"""Traverser that yields all subcategories of a category."""
types = [neo4j.Incoming.is_a]
returnable = neo4j.RETURN_ALL_BUT_START_NODE
order = neo4j.BREADTH_FIRST
stop = neo4j.STOP_AT_END_OF_GRAPH
class Topics(neo4j.Traversal):
types = [
... | import neo4j
class SubTopics(neo4j.Traversal):
"""Traverser that yields all subcategories of a category."""
types = [neo4j.Incoming.is_a]
returnable = neo4j.RETURN_ALL_BUT_START_NODE
order = neo4j.BREADTH_FIRST
stop = neo4j.STOP_AT_END_OF_GRAPH
class Topics(neo4j.Traversal):
types = [
... | Return format to please the browser's graph. | Return format to please the browser's graph.
| Python | mit | peplin/trinity | import neo4j
class SubTopics(neo4j.Traversal):
"""Traverser that yields all subcategories of a category."""
types = [neo4j.Incoming.is_a]
returnable = neo4j.RETURN_ALL_BUT_START_NODE
order = neo4j.BREADTH_FIRST
stop = neo4j.STOP_AT_END_OF_GRAPH
class Topics(neo4j.Traversal):
types = [
... | import neo4j
class SubTopics(neo4j.Traversal):
"""Traverser that yields all subcategories of a category."""
types = [neo4j.Incoming.is_a]
returnable = neo4j.RETURN_ALL_BUT_START_NODE
order = neo4j.BREADTH_FIRST
stop = neo4j.STOP_AT_END_OF_GRAPH
class Topics(neo4j.Traversal):
types = [
... | <commit_before>import neo4j
class SubTopics(neo4j.Traversal):
"""Traverser that yields all subcategories of a category."""
types = [neo4j.Incoming.is_a]
returnable = neo4j.RETURN_ALL_BUT_START_NODE
order = neo4j.BREADTH_FIRST
stop = neo4j.STOP_AT_END_OF_GRAPH
class Topics(neo4j.Traversal):
ty... | import neo4j
class SubTopics(neo4j.Traversal):
"""Traverser that yields all subcategories of a category."""
types = [neo4j.Incoming.is_a]
returnable = neo4j.RETURN_ALL_BUT_START_NODE
order = neo4j.BREADTH_FIRST
stop = neo4j.STOP_AT_END_OF_GRAPH
class Topics(neo4j.Traversal):
types = [
... | import neo4j
class SubTopics(neo4j.Traversal):
"""Traverser that yields all subcategories of a category."""
types = [neo4j.Incoming.is_a]
returnable = neo4j.RETURN_ALL_BUT_START_NODE
order = neo4j.BREADTH_FIRST
stop = neo4j.STOP_AT_END_OF_GRAPH
class Topics(neo4j.Traversal):
types = [
... | <commit_before>import neo4j
class SubTopics(neo4j.Traversal):
"""Traverser that yields all subcategories of a category."""
types = [neo4j.Incoming.is_a]
returnable = neo4j.RETURN_ALL_BUT_START_NODE
order = neo4j.BREADTH_FIRST
stop = neo4j.STOP_AT_END_OF_GRAPH
class Topics(neo4j.Traversal):
ty... |
1666a48ccaef30d5d1dbceb3212160991beecbd5 | wluopensource/osl_comments/models.py | wluopensource/osl_comments/models.py | from django.contrib.comments.models import Comment
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.db import models
import markdown
class OslComment(Comment):
parent_comment = models.ForeignKey(Comment, blank=True, null=True, re... | from django.contrib.comments.models import Comment
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.db import models
import markdown
class OslComment(Comment):
parent_comment = models.ForeignKey(Comment, blank=True, null=True, re... | Move applying auth user URLs to comments from signal to save method | Move applying auth user URLs to comments from signal to save method
| Python | bsd-3-clause | jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website | from django.contrib.comments.models import Comment
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.db import models
import markdown
class OslComment(Comment):
parent_comment = models.ForeignKey(Comment, blank=True, null=True, re... | from django.contrib.comments.models import Comment
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.db import models
import markdown
class OslComment(Comment):
parent_comment = models.ForeignKey(Comment, blank=True, null=True, re... | <commit_before>from django.contrib.comments.models import Comment
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.db import models
import markdown
class OslComment(Comment):
parent_comment = models.ForeignKey(Comment, blank=True... | from django.contrib.comments.models import Comment
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.db import models
import markdown
class OslComment(Comment):
parent_comment = models.ForeignKey(Comment, blank=True, null=True, re... | from django.contrib.comments.models import Comment
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.db import models
import markdown
class OslComment(Comment):
parent_comment = models.ForeignKey(Comment, blank=True, null=True, re... | <commit_before>from django.contrib.comments.models import Comment
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.db import models
import markdown
class OslComment(Comment):
parent_comment = models.ForeignKey(Comment, blank=True... |
3ef0c6adcfa74877245f586618c4592b308976cd | openapi_core/wrappers/flask.py | openapi_core/wrappers/flask.py | """OpenAPI core wrappers module"""
from openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse
class FlaskOpenAPIRequest(BaseOpenAPIRequest):
def __init__(self, request):
self.request = request
@property
def host_url(self):
return self.request.host_url
@property
... | """OpenAPI core wrappers module"""
import re
from openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse
# http://flask.pocoo.org/docs/1.0/quickstart/#variable-rules
PATH_PARAMETER_PATTERN = r'<(?:(?:string|int|float|path|uuid):)?(\w+)>'
class FlaskOpenAPIRequest(BaseOpenAPIRequest):
path_re... | Convert Flask path variables to OpenAPI path parameters | Convert Flask path variables to OpenAPI path parameters
| Python | bsd-3-clause | p1c2u/openapi-core | """OpenAPI core wrappers module"""
from openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse
class FlaskOpenAPIRequest(BaseOpenAPIRequest):
def __init__(self, request):
self.request = request
@property
def host_url(self):
return self.request.host_url
@property
... | """OpenAPI core wrappers module"""
import re
from openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse
# http://flask.pocoo.org/docs/1.0/quickstart/#variable-rules
PATH_PARAMETER_PATTERN = r'<(?:(?:string|int|float|path|uuid):)?(\w+)>'
class FlaskOpenAPIRequest(BaseOpenAPIRequest):
path_re... | <commit_before>"""OpenAPI core wrappers module"""
from openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse
class FlaskOpenAPIRequest(BaseOpenAPIRequest):
def __init__(self, request):
self.request = request
@property
def host_url(self):
return self.request.host_url
... | """OpenAPI core wrappers module"""
import re
from openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse
# http://flask.pocoo.org/docs/1.0/quickstart/#variable-rules
PATH_PARAMETER_PATTERN = r'<(?:(?:string|int|float|path|uuid):)?(\w+)>'
class FlaskOpenAPIRequest(BaseOpenAPIRequest):
path_re... | """OpenAPI core wrappers module"""
from openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse
class FlaskOpenAPIRequest(BaseOpenAPIRequest):
def __init__(self, request):
self.request = request
@property
def host_url(self):
return self.request.host_url
@property
... | <commit_before>"""OpenAPI core wrappers module"""
from openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse
class FlaskOpenAPIRequest(BaseOpenAPIRequest):
def __init__(self, request):
self.request = request
@property
def host_url(self):
return self.request.host_url
... |
481f580b30efe0cf6f46081c098e2a174444a10b | base/components/accounts/views.py | base/components/accounts/views.py | from django import http
from django.conf import settings
from django.views.generic import RedirectView, View
from requests_oauthlib import OAuth2Session
CLIENT_ID = settings.HELLO_BASE_CLIENT_ID
CLIENT_SECRET = settings.HELLO_BASE_CLIENT_SECRET
AUTHORIZATION_URL = 'https://localhost:8443/authorize'
TOKEN_URL = 'http... | from django import http
from django.conf import settings
from django.views.generic import RedirectView, View
from requests_oauthlib import OAuth2Session
CLIENT_ID = settings.HELLO_BASE_CLIENT_ID
CLIENT_SECRET = settings.HELLO_BASE_CLIENT_SECRET
AUTHORIZATION_URL = 'https://localhost:8443/authorize/'
TOKEN_URL = 'htt... | Add some slashes and other things. | Add some slashes and other things.
| Python | apache-2.0 | hello-base/web,hello-base/web,hello-base/web,hello-base/web | from django import http
from django.conf import settings
from django.views.generic import RedirectView, View
from requests_oauthlib import OAuth2Session
CLIENT_ID = settings.HELLO_BASE_CLIENT_ID
CLIENT_SECRET = settings.HELLO_BASE_CLIENT_SECRET
AUTHORIZATION_URL = 'https://localhost:8443/authorize'
TOKEN_URL = 'http... | from django import http
from django.conf import settings
from django.views.generic import RedirectView, View
from requests_oauthlib import OAuth2Session
CLIENT_ID = settings.HELLO_BASE_CLIENT_ID
CLIENT_SECRET = settings.HELLO_BASE_CLIENT_SECRET
AUTHORIZATION_URL = 'https://localhost:8443/authorize/'
TOKEN_URL = 'htt... | <commit_before>from django import http
from django.conf import settings
from django.views.generic import RedirectView, View
from requests_oauthlib import OAuth2Session
CLIENT_ID = settings.HELLO_BASE_CLIENT_ID
CLIENT_SECRET = settings.HELLO_BASE_CLIENT_SECRET
AUTHORIZATION_URL = 'https://localhost:8443/authorize'
TO... | from django import http
from django.conf import settings
from django.views.generic import RedirectView, View
from requests_oauthlib import OAuth2Session
CLIENT_ID = settings.HELLO_BASE_CLIENT_ID
CLIENT_SECRET = settings.HELLO_BASE_CLIENT_SECRET
AUTHORIZATION_URL = 'https://localhost:8443/authorize/'
TOKEN_URL = 'htt... | from django import http
from django.conf import settings
from django.views.generic import RedirectView, View
from requests_oauthlib import OAuth2Session
CLIENT_ID = settings.HELLO_BASE_CLIENT_ID
CLIENT_SECRET = settings.HELLO_BASE_CLIENT_SECRET
AUTHORIZATION_URL = 'https://localhost:8443/authorize'
TOKEN_URL = 'http... | <commit_before>from django import http
from django.conf import settings
from django.views.generic import RedirectView, View
from requests_oauthlib import OAuth2Session
CLIENT_ID = settings.HELLO_BASE_CLIENT_ID
CLIENT_SECRET = settings.HELLO_BASE_CLIENT_SECRET
AUTHORIZATION_URL = 'https://localhost:8443/authorize'
TO... |
2d99984303da47b23b1a790b1f0c51f9aa28e415 | neuralmonkey/nn/mlp.py | neuralmonkey/nn/mlp.py | import tensorflow as tf
from neuralmonkey.nn.projection import linear, multilayer_projection
class MultilayerPerceptron(object):
""" General implementation of the multilayer perceptron. """
# pylint: disable=too-many-arguments
def __init__(self, mlp_input, layer_configuration, dropout_plc,
... | import tensorflow as tf
from neuralmonkey.nn.projection import linear, multilayer_projection
class MultilayerPerceptron(object):
""" General implementation of the multilayer perceptron. """
# pylint: disable=too-many-arguments
def __init__(self, mlp_input, layer_configuration, dropout_plc,
... | Allow 3D input to MLP | Allow 3D input to MLP | Python | bsd-3-clause | bastings/neuralmonkey,juliakreutzer/bandit-neuralmonkey,bastings/neuralmonkey,ufal/neuralmonkey,ufal/neuralmonkey,ufal/neuralmonkey,juliakreutzer/bandit-neuralmonkey,bastings/neuralmonkey,ufal/neuralmonkey,bastings/neuralmonkey,bastings/neuralmonkey,juliakreutzer/bandit-neuralmonkey,juliakreutzer/bandit-neuralmonkey,uf... | import tensorflow as tf
from neuralmonkey.nn.projection import linear, multilayer_projection
class MultilayerPerceptron(object):
""" General implementation of the multilayer perceptron. """
# pylint: disable=too-many-arguments
def __init__(self, mlp_input, layer_configuration, dropout_plc,
... | import tensorflow as tf
from neuralmonkey.nn.projection import linear, multilayer_projection
class MultilayerPerceptron(object):
""" General implementation of the multilayer perceptron. """
# pylint: disable=too-many-arguments
def __init__(self, mlp_input, layer_configuration, dropout_plc,
... | <commit_before>import tensorflow as tf
from neuralmonkey.nn.projection import linear, multilayer_projection
class MultilayerPerceptron(object):
""" General implementation of the multilayer perceptron. """
# pylint: disable=too-many-arguments
def __init__(self, mlp_input, layer_configuration, dropout_plc,... | import tensorflow as tf
from neuralmonkey.nn.projection import linear, multilayer_projection
class MultilayerPerceptron(object):
""" General implementation of the multilayer perceptron. """
# pylint: disable=too-many-arguments
def __init__(self, mlp_input, layer_configuration, dropout_plc,
... | import tensorflow as tf
from neuralmonkey.nn.projection import linear, multilayer_projection
class MultilayerPerceptron(object):
""" General implementation of the multilayer perceptron. """
# pylint: disable=too-many-arguments
def __init__(self, mlp_input, layer_configuration, dropout_plc,
... | <commit_before>import tensorflow as tf
from neuralmonkey.nn.projection import linear, multilayer_projection
class MultilayerPerceptron(object):
""" General implementation of the multilayer perceptron. """
# pylint: disable=too-many-arguments
def __init__(self, mlp_input, layer_configuration, dropout_plc,... |
3853e133f420320c8fa475cafd62356179f6ef5c | zerver/migrations/0167_custom_profile_fields_sort_order.py | zerver/migrations/0167_custom_profile_fields_sort_order.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-08 15:49
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.models import F
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def ... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-08 15:49
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.models import F
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def ... | Add missing reverse_code for migration 0167. | migrations: Add missing reverse_code for migration 0167.
| Python | apache-2.0 | jackrzhang/zulip,zulip/zulip,synicalsyntax/zulip,kou/zulip,jackrzhang/zulip,showell/zulip,kou/zulip,dhcrzf/zulip,timabbott/zulip,tommyip/zulip,brainwane/zulip,dhcrzf/zulip,timabbott/zulip,andersk/zulip,brainwane/zulip,synicalsyntax/zulip,rishig/zulip,tommyip/zulip,rishig/zulip,punchagan/zulip,showell/zulip,jackrzhang/z... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-08 15:49
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.models import F
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def ... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-08 15:49
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.models import F
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def ... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-08 15:49
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.models import F
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import ... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-08 15:49
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.models import F
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def ... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-08 15:49
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.models import F
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def ... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-08 15:49
from __future__ import unicode_literals
from django.db import migrations, models
from django.db.models import F
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import ... |
8df7c4b2c008ce6c7735106c28bad1f7326f7012 | tests/smoketests/test_twisted.py | tests/smoketests/test_twisted.py | from twisted.internet import reactor, task
def test_deferred():
return task.deferLater(reactor, 0.05, lambda: None)
| from twisted.internet import reactor, task
from twisted.internet.defer import Deferred, succeed
from twisted.python.failure import Failure
def test_deferred():
return task.deferLater(reactor, 0.05, lambda: None)
def test_failure():
"""
Test that we can check for a failure in an asynchronously-called fun... | Add an example Twisted test that expects failure. | Add an example Twisted test that expects failure.
| Python | mit | CheeseLord/warts,CheeseLord/warts | from twisted.internet import reactor, task
def test_deferred():
return task.deferLater(reactor, 0.05, lambda: None)
Add an example Twisted test that expects failure. | from twisted.internet import reactor, task
from twisted.internet.defer import Deferred, succeed
from twisted.python.failure import Failure
def test_deferred():
return task.deferLater(reactor, 0.05, lambda: None)
def test_failure():
"""
Test that we can check for a failure in an asynchronously-called fun... | <commit_before>from twisted.internet import reactor, task
def test_deferred():
return task.deferLater(reactor, 0.05, lambda: None)
<commit_msg>Add an example Twisted test that expects failure.<commit_after> | from twisted.internet import reactor, task
from twisted.internet.defer import Deferred, succeed
from twisted.python.failure import Failure
def test_deferred():
return task.deferLater(reactor, 0.05, lambda: None)
def test_failure():
"""
Test that we can check for a failure in an asynchronously-called fun... | from twisted.internet import reactor, task
def test_deferred():
return task.deferLater(reactor, 0.05, lambda: None)
Add an example Twisted test that expects failure.from twisted.internet import reactor, task
from twisted.internet.defer import Deferred, succeed
from twisted.python.failure import Failure
def tes... | <commit_before>from twisted.internet import reactor, task
def test_deferred():
return task.deferLater(reactor, 0.05, lambda: None)
<commit_msg>Add an example Twisted test that expects failure.<commit_after>from twisted.internet import reactor, task
from twisted.internet.defer import Deferred, succeed
from twiste... |
4fb6cd2b73deb500d664c1a0d2d6c57b11626a7e | tests/pyutils/test_path.py | tests/pyutils/test_path.py | from graphql.pyutils import Path
def describe_path():
def add_path():
path = Path(None, 0, None)
assert path.prev is None
assert path.key == 0
prev, path = path, Path(path, 1, None)
assert path.prev is prev
assert path.key == 1
prev, path = path, Path(path, ... | from graphql.pyutils import Path
def describe_path():
def can_create_a_path():
first = Path(None, 1, "First")
assert first.prev is None
assert first.key == 1
assert first.typename == "First"
def can_add_a_new_key_to_an_existing_path():
first = Path(None, 1, "First")
... | Improve tests for Path methods | Improve tests for Path methods
Replicates graphql/graphql-js@f42cee922d13576b1452bb5bf6c7b155bf0e2ecd
| Python | mit | graphql-python/graphql-core | from graphql.pyutils import Path
def describe_path():
def add_path():
path = Path(None, 0, None)
assert path.prev is None
assert path.key == 0
prev, path = path, Path(path, 1, None)
assert path.prev is prev
assert path.key == 1
prev, path = path, Path(path, ... | from graphql.pyutils import Path
def describe_path():
def can_create_a_path():
first = Path(None, 1, "First")
assert first.prev is None
assert first.key == 1
assert first.typename == "First"
def can_add_a_new_key_to_an_existing_path():
first = Path(None, 1, "First")
... | <commit_before>from graphql.pyutils import Path
def describe_path():
def add_path():
path = Path(None, 0, None)
assert path.prev is None
assert path.key == 0
prev, path = path, Path(path, 1, None)
assert path.prev is prev
assert path.key == 1
prev, path = pa... | from graphql.pyutils import Path
def describe_path():
def can_create_a_path():
first = Path(None, 1, "First")
assert first.prev is None
assert first.key == 1
assert first.typename == "First"
def can_add_a_new_key_to_an_existing_path():
first = Path(None, 1, "First")
... | from graphql.pyutils import Path
def describe_path():
def add_path():
path = Path(None, 0, None)
assert path.prev is None
assert path.key == 0
prev, path = path, Path(path, 1, None)
assert path.prev is prev
assert path.key == 1
prev, path = path, Path(path, ... | <commit_before>from graphql.pyutils import Path
def describe_path():
def add_path():
path = Path(None, 0, None)
assert path.prev is None
assert path.key == 0
prev, path = path, Path(path, 1, None)
assert path.prev is prev
assert path.key == 1
prev, path = pa... |
f232481f966580bfd54ddd0eeb781badda3a9394 | swh/web/add_forge_now/apps.py | swh/web/add_forge_now/apps.py | # Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.apps import AppConfig
class AddForgeNowConfig(AppCon... | # Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.apps import AppConfig
class AddForgeNowConfig(AppCon... | Rename django app and add missing app_label | add_forge_now: Rename django app and add missing app_label
This fixes errors when using django 3.2 and thus the packaging
on debian unstable
| Python | agpl-3.0 | SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui | # Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.apps import AppConfig
class AddForgeNowConfig(AppCon... | # Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.apps import AppConfig
class AddForgeNowConfig(AppCon... | <commit_before># Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.apps import AppConfig
class AddForgeN... | # Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.apps import AppConfig
class AddForgeNowConfig(AppCon... | # Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.apps import AppConfig
class AddForgeNowConfig(AppCon... | <commit_before># Copyright (C) 2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.apps import AppConfig
class AddForgeN... |
21dea82cd8fc2b7d8889013dfd827f59cc8ceb58 | acmd/tools/assets.py | acmd/tools/assets.py | # coding: utf-8
import sys
import os.path
import optparse
import json
import requests
from acmd import tool, log
from acmd import OK, SERVER_ERROR, USER_ERROR
from acmd.props import parse_properties
parser = optparse.OptionParser("acmd assets <import|touch> [options] <file>")
parser.add_option("-r", "--raw",
... | # coding: utf-8
import optparse
import os
import requests
from acmd import OK, SERVER_ERROR
from acmd import tool, error, log
from acmd.tools.tool_utils import get_argument, get_command
parser = optparse.OptionParser("acmd assets <import|touch> [options] <file>")
parser.add_option("-r", "--raw",
ac... | Support iterate of files in dir | Support iterate of files in dir
| Python | mit | darashenka/aem-cmd,darashenka/aem-cmd,darashenka/aem-cmd | # coding: utf-8
import sys
import os.path
import optparse
import json
import requests
from acmd import tool, log
from acmd import OK, SERVER_ERROR, USER_ERROR
from acmd.props import parse_properties
parser = optparse.OptionParser("acmd assets <import|touch> [options] <file>")
parser.add_option("-r", "--raw",
... | # coding: utf-8
import optparse
import os
import requests
from acmd import OK, SERVER_ERROR
from acmd import tool, error, log
from acmd.tools.tool_utils import get_argument, get_command
parser = optparse.OptionParser("acmd assets <import|touch> [options] <file>")
parser.add_option("-r", "--raw",
ac... | <commit_before># coding: utf-8
import sys
import os.path
import optparse
import json
import requests
from acmd import tool, log
from acmd import OK, SERVER_ERROR, USER_ERROR
from acmd.props import parse_properties
parser = optparse.OptionParser("acmd assets <import|touch> [options] <file>")
parser.add_option("-r", "... | # coding: utf-8
import optparse
import os
import requests
from acmd import OK, SERVER_ERROR
from acmd import tool, error, log
from acmd.tools.tool_utils import get_argument, get_command
parser = optparse.OptionParser("acmd assets <import|touch> [options] <file>")
parser.add_option("-r", "--raw",
ac... | # coding: utf-8
import sys
import os.path
import optparse
import json
import requests
from acmd import tool, log
from acmd import OK, SERVER_ERROR, USER_ERROR
from acmd.props import parse_properties
parser = optparse.OptionParser("acmd assets <import|touch> [options] <file>")
parser.add_option("-r", "--raw",
... | <commit_before># coding: utf-8
import sys
import os.path
import optparse
import json
import requests
from acmd import tool, log
from acmd import OK, SERVER_ERROR, USER_ERROR
from acmd.props import parse_properties
parser = optparse.OptionParser("acmd assets <import|touch> [options] <file>")
parser.add_option("-r", "... |
df8f5e0a6be5f3de31d61810b1624175b2d105ec | auth0/v2/device_credentials.py | auth0/v2/device_credentials.py | from .rest import RestClient
class DeviceCredentials(object):
def __init__(self, domain, jwt_token):
url = 'https://%s/api/v2/device-credentials' % domain
self.client = RestClient(endpoint=url, jwt=jwt_token)
def get(self, user_id=None, client_id=None, type=None,
fields=[], incl... | from .rest import RestClient
class DeviceCredentials(object):
def __init__(self, domain, jwt_token):
url = 'https://%s/api/v2/device-credentials' % domain
self.client = RestClient(endpoint=url, jwt=jwt_token)
def get(self, user_id=None, client_id=None, type=None,
fields=[], incl... | Implement create and delete methods for DeviceCredentials | Implement create and delete methods for DeviceCredentials
| Python | mit | auth0/auth0-python,auth0/auth0-python | from .rest import RestClient
class DeviceCredentials(object):
def __init__(self, domain, jwt_token):
url = 'https://%s/api/v2/device-credentials' % domain
self.client = RestClient(endpoint=url, jwt=jwt_token)
def get(self, user_id=None, client_id=None, type=None,
fields=[], incl... | from .rest import RestClient
class DeviceCredentials(object):
def __init__(self, domain, jwt_token):
url = 'https://%s/api/v2/device-credentials' % domain
self.client = RestClient(endpoint=url, jwt=jwt_token)
def get(self, user_id=None, client_id=None, type=None,
fields=[], incl... | <commit_before>from .rest import RestClient
class DeviceCredentials(object):
def __init__(self, domain, jwt_token):
url = 'https://%s/api/v2/device-credentials' % domain
self.client = RestClient(endpoint=url, jwt=jwt_token)
def get(self, user_id=None, client_id=None, type=None,
... | from .rest import RestClient
class DeviceCredentials(object):
def __init__(self, domain, jwt_token):
url = 'https://%s/api/v2/device-credentials' % domain
self.client = RestClient(endpoint=url, jwt=jwt_token)
def get(self, user_id=None, client_id=None, type=None,
fields=[], incl... | from .rest import RestClient
class DeviceCredentials(object):
def __init__(self, domain, jwt_token):
url = 'https://%s/api/v2/device-credentials' % domain
self.client = RestClient(endpoint=url, jwt=jwt_token)
def get(self, user_id=None, client_id=None, type=None,
fields=[], incl... | <commit_before>from .rest import RestClient
class DeviceCredentials(object):
def __init__(self, domain, jwt_token):
url = 'https://%s/api/v2/device-credentials' % domain
self.client = RestClient(endpoint=url, jwt=jwt_token)
def get(self, user_id=None, client_id=None, type=None,
... |
967795c9005b7ccdacdb17c461a86cda68409785 | fileutil.py | fileutil.py | import os, shutil
def atomic_write_file(path, data):
temp = os.path.join(os.path.dirname(path), ".tmpsave." + os.path.basename(path))
try:
with open(temp, "wb") as out:
try:
shutil.copystat(path, temp)
except OSError:
pass
out.write(da... | import sys, os, shutil
if sys.platform == "win32":
# os.rename is broken on windows
import win32file
def rename(old, new):
win32file.MoveFileEx(old, new, win32file.MOVEFILE_REPLACE_EXISTING)
else:
rename = os.rename
def atomic_write_file(path, data):
temp = os.path.join(os.path.dirname(pat... | Use MoveFileEx on Windows because os.rename does not replace existing files. | Use MoveFileEx on Windows because os.rename does not replace existing files.
| Python | mit | shaurz/devo | import os, shutil
def atomic_write_file(path, data):
temp = os.path.join(os.path.dirname(path), ".tmpsave." + os.path.basename(path))
try:
with open(temp, "wb") as out:
try:
shutil.copystat(path, temp)
except OSError:
pass
out.write(da... | import sys, os, shutil
if sys.platform == "win32":
# os.rename is broken on windows
import win32file
def rename(old, new):
win32file.MoveFileEx(old, new, win32file.MOVEFILE_REPLACE_EXISTING)
else:
rename = os.rename
def atomic_write_file(path, data):
temp = os.path.join(os.path.dirname(pat... | <commit_before>import os, shutil
def atomic_write_file(path, data):
temp = os.path.join(os.path.dirname(path), ".tmpsave." + os.path.basename(path))
try:
with open(temp, "wb") as out:
try:
shutil.copystat(path, temp)
except OSError:
pass
... | import sys, os, shutil
if sys.platform == "win32":
# os.rename is broken on windows
import win32file
def rename(old, new):
win32file.MoveFileEx(old, new, win32file.MOVEFILE_REPLACE_EXISTING)
else:
rename = os.rename
def atomic_write_file(path, data):
temp = os.path.join(os.path.dirname(pat... | import os, shutil
def atomic_write_file(path, data):
temp = os.path.join(os.path.dirname(path), ".tmpsave." + os.path.basename(path))
try:
with open(temp, "wb") as out:
try:
shutil.copystat(path, temp)
except OSError:
pass
out.write(da... | <commit_before>import os, shutil
def atomic_write_file(path, data):
temp = os.path.join(os.path.dirname(path), ".tmpsave." + os.path.basename(path))
try:
with open(temp, "wb") as out:
try:
shutil.copystat(path, temp)
except OSError:
pass
... |
a9f5603b9134a6daa757fd85c1600ac3aa67f5df | time_test.py | time_test.py | import timeit
setup="""
from _ppeg import Pattern
text = open('kjv10.txt').read()
pat = Pattern()
pat.setdummy()
pat.dump()
"""
t = timeit.Timer(stmt='print pat.match(text)', setup=setup)
N=5
print "Time taken: %.2f sec" % (t.timeit(N)/float(N))
| import timeit
setup="""
from _ppeg import Pattern
text = open('kjv10.txt').read()
pat = Pattern.Dummy()
pat.dump()
"""
t = timeit.Timer(stmt='print pat(text)', setup=setup)
N=5
print "Time taken: %.2f sec" % (t.timeit(N)/float(N))
| Update timing test to new pattern API | Update timing test to new pattern API
| Python | mit | moreati/ppeg,moreati/ppeg | import timeit
setup="""
from _ppeg import Pattern
text = open('kjv10.txt').read()
pat = Pattern()
pat.setdummy()
pat.dump()
"""
t = timeit.Timer(stmt='print pat.match(text)', setup=setup)
N=5
print "Time taken: %.2f sec" % (t.timeit(N)/float(N))
Update timing test to new pattern API | import timeit
setup="""
from _ppeg import Pattern
text = open('kjv10.txt').read()
pat = Pattern.Dummy()
pat.dump()
"""
t = timeit.Timer(stmt='print pat(text)', setup=setup)
N=5
print "Time taken: %.2f sec" % (t.timeit(N)/float(N))
| <commit_before>import timeit
setup="""
from _ppeg import Pattern
text = open('kjv10.txt').read()
pat = Pattern()
pat.setdummy()
pat.dump()
"""
t = timeit.Timer(stmt='print pat.match(text)', setup=setup)
N=5
print "Time taken: %.2f sec" % (t.timeit(N)/float(N))
<commit_msg>Update timing test to new pa... | import timeit
setup="""
from _ppeg import Pattern
text = open('kjv10.txt').read()
pat = Pattern.Dummy()
pat.dump()
"""
t = timeit.Timer(stmt='print pat(text)', setup=setup)
N=5
print "Time taken: %.2f sec" % (t.timeit(N)/float(N))
| import timeit
setup="""
from _ppeg import Pattern
text = open('kjv10.txt').read()
pat = Pattern()
pat.setdummy()
pat.dump()
"""
t = timeit.Timer(stmt='print pat.match(text)', setup=setup)
N=5
print "Time taken: %.2f sec" % (t.timeit(N)/float(N))
Update timing test to new pattern APIimport timeit
set... | <commit_before>import timeit
setup="""
from _ppeg import Pattern
text = open('kjv10.txt').read()
pat = Pattern()
pat.setdummy()
pat.dump()
"""
t = timeit.Timer(stmt='print pat.match(text)', setup=setup)
N=5
print "Time taken: %.2f sec" % (t.timeit(N)/float(N))
<commit_msg>Update timing test to new pa... |
16c8880c2b3d5f68ee25093057f949ed0f2e7a5c | toast/app.py | toast/app.py | from flask import Flask, jsonify
from flask import render_template
import urllib2
import json
app = Flask(__name__)
#@app.route("/")
#def hello():
# return render_template('index.html')
#
#@app.route("/dream/<dream>")
#def dream(dream):
# return render_template('dream.html', my_dream=dream)
#
#
@app.route("/dr... | from flask import Flask, jsonify
from flask import render_template
import urllib2
import json
app = Flask(__name__)
FAKE_DATA = [{'name':'toast',
'count':100},
{'name':'pizza',
'count':80},
{'name':'bread',
'count':60},
{'name':'butter',... | Clean up endpoint controllers and add test data. | Clean up endpoint controllers and add test data.
| Python | apache-2.0 | whiskeylover/idreamoftoast,whiskeylover/idreamoftoast,whiskeylover/idreamoftoast | from flask import Flask, jsonify
from flask import render_template
import urllib2
import json
app = Flask(__name__)
#@app.route("/")
#def hello():
# return render_template('index.html')
#
#@app.route("/dream/<dream>")
#def dream(dream):
# return render_template('dream.html', my_dream=dream)
#
#
@app.route("/dr... | from flask import Flask, jsonify
from flask import render_template
import urllib2
import json
app = Flask(__name__)
FAKE_DATA = [{'name':'toast',
'count':100},
{'name':'pizza',
'count':80},
{'name':'bread',
'count':60},
{'name':'butter',... | <commit_before>from flask import Flask, jsonify
from flask import render_template
import urllib2
import json
app = Flask(__name__)
#@app.route("/")
#def hello():
# return render_template('index.html')
#
#@app.route("/dream/<dream>")
#def dream(dream):
# return render_template('dream.html', my_dream=dream)
#
#
... | from flask import Flask, jsonify
from flask import render_template
import urllib2
import json
app = Flask(__name__)
FAKE_DATA = [{'name':'toast',
'count':100},
{'name':'pizza',
'count':80},
{'name':'bread',
'count':60},
{'name':'butter',... | from flask import Flask, jsonify
from flask import render_template
import urllib2
import json
app = Flask(__name__)
#@app.route("/")
#def hello():
# return render_template('index.html')
#
#@app.route("/dream/<dream>")
#def dream(dream):
# return render_template('dream.html', my_dream=dream)
#
#
@app.route("/dr... | <commit_before>from flask import Flask, jsonify
from flask import render_template
import urllib2
import json
app = Flask(__name__)
#@app.route("/")
#def hello():
# return render_template('index.html')
#
#@app.route("/dream/<dream>")
#def dream(dream):
# return render_template('dream.html', my_dream=dream)
#
#
... |
ada71c4aa8e96e71b90c205fbfec9079ffa29142 | test/features/steps/system.py | test/features/steps/system.py | from __future__ import print_function
import sys
import subprocess
import os
@given('a system executable {exe}')
def step_impl(context, exe):
binary = None
if sys.platform.startswith('win'):
try:
binary = subprocess.check_output(["where", exe]).decode('utf8').strip()
except:
... | from __future__ import print_function
import sys
import subprocess
import os
@given('a system executable {exe}')
def step_impl(context, exe):
binary = None
if sys.platform.startswith('win'):
try:
binary = subprocess.check_output(["where", exe]).decode('utf8').strip()
except:
... | Use the correct option when dumping dependent libraries. | test: Use the correct option when dumping dependent libraries.
| Python | bsd-3-clause | hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure | from __future__ import print_function
import sys
import subprocess
import os
@given('a system executable {exe}')
def step_impl(context, exe):
binary = None
if sys.platform.startswith('win'):
try:
binary = subprocess.check_output(["where", exe]).decode('utf8').strip()
except:
... | from __future__ import print_function
import sys
import subprocess
import os
@given('a system executable {exe}')
def step_impl(context, exe):
binary = None
if sys.platform.startswith('win'):
try:
binary = subprocess.check_output(["where", exe]).decode('utf8').strip()
except:
... | <commit_before>from __future__ import print_function
import sys
import subprocess
import os
@given('a system executable {exe}')
def step_impl(context, exe):
binary = None
if sys.platform.startswith('win'):
try:
binary = subprocess.check_output(["where", exe]).decode('utf8').strip()
... | from __future__ import print_function
import sys
import subprocess
import os
@given('a system executable {exe}')
def step_impl(context, exe):
binary = None
if sys.platform.startswith('win'):
try:
binary = subprocess.check_output(["where", exe]).decode('utf8').strip()
except:
... | from __future__ import print_function
import sys
import subprocess
import os
@given('a system executable {exe}')
def step_impl(context, exe):
binary = None
if sys.platform.startswith('win'):
try:
binary = subprocess.check_output(["where", exe]).decode('utf8').strip()
except:
... | <commit_before>from __future__ import print_function
import sys
import subprocess
import os
@given('a system executable {exe}')
def step_impl(context, exe):
binary = None
if sys.platform.startswith('win'):
try:
binary = subprocess.check_output(["where", exe]).decode('utf8').strip()
... |
acfa9a206e803ad41565f6f3a678d9e1130948d8 | test/runmain.py | test/runmain.py | #!usr/bin/env python
import ui_logic_mainwindow as uv
from PyQt4 import QtGui
import sys
def main():
app = QtGui.QApplication(sys.argv)
ex = uv.UiMainWindow()
ex.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
| #!/usr/bin/env python
from test import ui_logic_mainwindow as uv
from PyQt4 import QtGui
import sys
def main():
app = QtGui.QApplication(sys.argv)
ex = uv.UiMainWindow()
ex.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
| Update run mainfile to reflect import paths | Update run mainfile to reflect import paths
| Python | mit | bibsian/database-development | #!usr/bin/env python
import ui_logic_mainwindow as uv
from PyQt4 import QtGui
import sys
def main():
app = QtGui.QApplication(sys.argv)
ex = uv.UiMainWindow()
ex.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
Update run mainfile to reflect import paths | #!/usr/bin/env python
from test import ui_logic_mainwindow as uv
from PyQt4 import QtGui
import sys
def main():
app = QtGui.QApplication(sys.argv)
ex = uv.UiMainWindow()
ex.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
| <commit_before>#!usr/bin/env python
import ui_logic_mainwindow as uv
from PyQt4 import QtGui
import sys
def main():
app = QtGui.QApplication(sys.argv)
ex = uv.UiMainWindow()
ex.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
<commit_msg>Update run mainfile to reflect impor... | #!/usr/bin/env python
from test import ui_logic_mainwindow as uv
from PyQt4 import QtGui
import sys
def main():
app = QtGui.QApplication(sys.argv)
ex = uv.UiMainWindow()
ex.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
| #!usr/bin/env python
import ui_logic_mainwindow as uv
from PyQt4 import QtGui
import sys
def main():
app = QtGui.QApplication(sys.argv)
ex = uv.UiMainWindow()
ex.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
Update run mainfile to reflect import paths#!/usr/bin/env pytho... | <commit_before>#!usr/bin/env python
import ui_logic_mainwindow as uv
from PyQt4 import QtGui
import sys
def main():
app = QtGui.QApplication(sys.argv)
ex = uv.UiMainWindow()
ex.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
<commit_msg>Update run mainfile to reflect impor... |
64f3e09eb74158233af37513d0cedf75b8d62aae | packagename/conftest.py | packagename/conftest.py | # this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWarnings as
## exc... | # this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWarnings as
## exc... | Add note about adding/removing packages to/from pytest header | Add note about adding/removing packages to/from pytest header | Python | bsd-3-clause | alexrudy/Zeeko,alexrudy/Zeeko | # this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWarnings as
## exc... | # this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWarnings as
## exc... | <commit_before># this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWar... | # this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWarnings as
## exc... | # this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWarnings as
## exc... | <commit_before># this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
from astropy.tests.pytest_plugins import *
## Uncomment the following line to treat all DeprecationWar... |
19e0b3f089c684fe4aaaed8a06b4baad31de2f41 | currencies/models.py | currencies/models.py | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=4, blank=True)
factor = models.DecimalF... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=4, blank=True)
factor = models.DecimalF... | Order currencies by name by default | Order currencies by name by default
| Python | bsd-3-clause | marcosalcazar/django-currencies,jmp0xf/django-currencies,ydaniv/django-currencies,ydaniv/django-currencies,barseghyanartur/django-currencies,panosl/django-currencies,pathakamit88/django-currencies,bashu/django-simple-currencies,mysociety/django-currencies,pathakamit88/django-currencies,racitup/django-currencies,panosl/... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=4, blank=True)
factor = models.DecimalF... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=4, blank=True)
factor = models.DecimalF... | <commit_before>from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=4, blank=True)
factor = ... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=4, blank=True)
factor = models.DecimalF... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=4, blank=True)
factor = models.DecimalF... | <commit_before>from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=4, blank=True)
factor = ... |
aa0065ef79fd3763c201cdd9b92b64f8f48ff732 | test/test_basic.py | test/test_basic.py | #!/usr/bin/env python
from gaidaros.gaidaros import *
server = Gaidaros()
#TODO: run a client to do a request against a one-time handle action
#server.handle()
| #!/usr/bin/env python
from gaidaros import *
server = Gaidaros()
#TODO: run a client to do a request against a one-time handle action
#server.handle()
| Make the actual change to testfile mentioned in last commit(..) | Make the actual change to testfile mentioned in last commit(..)
| Python | mit | rowanthorpe/gaidaros | #!/usr/bin/env python
from gaidaros.gaidaros import *
server = Gaidaros()
#TODO: run a client to do a request against a one-time handle action
#server.handle()
Make the actual change to testfile mentioned in last commit(..) | #!/usr/bin/env python
from gaidaros import *
server = Gaidaros()
#TODO: run a client to do a request against a one-time handle action
#server.handle()
| <commit_before>#!/usr/bin/env python
from gaidaros.gaidaros import *
server = Gaidaros()
#TODO: run a client to do a request against a one-time handle action
#server.handle()
<commit_msg>Make the actual change to testfile mentioned in last commit(..)<commit_after> | #!/usr/bin/env python
from gaidaros import *
server = Gaidaros()
#TODO: run a client to do a request against a one-time handle action
#server.handle()
| #!/usr/bin/env python
from gaidaros.gaidaros import *
server = Gaidaros()
#TODO: run a client to do a request against a one-time handle action
#server.handle()
Make the actual change to testfile mentioned in last commit(..)#!/usr/bin/env python
from gaidaros import *
server = Gaidaros()
#TODO: run a client to do a re... | <commit_before>#!/usr/bin/env python
from gaidaros.gaidaros import *
server = Gaidaros()
#TODO: run a client to do a request against a one-time handle action
#server.handle()
<commit_msg>Make the actual change to testfile mentioned in last commit(..)<commit_after>#!/usr/bin/env python
from gaidaros import *
server = ... |
5fe3187ba546bea4d948914b2eb5cf9953a5bee6 | tests/clip_test.py | tests/clip_test.py | import PyDSTool as dst
from PyDSTool.Toolbox.phaseplane import Point2D
from matplotlib import pyplot as plt
from fovea.graphics import *
# ISSUE: fix to use new argument format for function (no global)
plotter.domain={'x': [-1,1], 'y': [-2,2]}
plotter.coords=('x','y')
a, b = force_line_to_extent(Point2D((0.25,0)), P... | import PyDSTool as dst
from PyDSTool.Toolbox.phaseplane import Point2D
from matplotlib import pyplot as plt
import numpy as np
from fovea.graphics import *
plotter.domain={'x': [-1,1], 'y': [-2,2]}
plotter.coords=('x','y')
a, b = force_line_to_extent(Point2D((0.25,0)), Point2D((0.5,0.1)),
... | Fix new syntax and add example using numpy arrays | Fix new syntax and add example using numpy arrays
| Python | bsd-3-clause | robclewley/fovea,akuefler/fovea | import PyDSTool as dst
from PyDSTool.Toolbox.phaseplane import Point2D
from matplotlib import pyplot as plt
from fovea.graphics import *
# ISSUE: fix to use new argument format for function (no global)
plotter.domain={'x': [-1,1], 'y': [-2,2]}
plotter.coords=('x','y')
a, b = force_line_to_extent(Point2D((0.25,0)), P... | import PyDSTool as dst
from PyDSTool.Toolbox.phaseplane import Point2D
from matplotlib import pyplot as plt
import numpy as np
from fovea.graphics import *
plotter.domain={'x': [-1,1], 'y': [-2,2]}
plotter.coords=('x','y')
a, b = force_line_to_extent(Point2D((0.25,0)), Point2D((0.5,0.1)),
... | <commit_before>import PyDSTool as dst
from PyDSTool.Toolbox.phaseplane import Point2D
from matplotlib import pyplot as plt
from fovea.graphics import *
# ISSUE: fix to use new argument format for function (no global)
plotter.domain={'x': [-1,1], 'y': [-2,2]}
plotter.coords=('x','y')
a, b = force_line_to_extent(Point... | import PyDSTool as dst
from PyDSTool.Toolbox.phaseplane import Point2D
from matplotlib import pyplot as plt
import numpy as np
from fovea.graphics import *
plotter.domain={'x': [-1,1], 'y': [-2,2]}
plotter.coords=('x','y')
a, b = force_line_to_extent(Point2D((0.25,0)), Point2D((0.5,0.1)),
... | import PyDSTool as dst
from PyDSTool.Toolbox.phaseplane import Point2D
from matplotlib import pyplot as plt
from fovea.graphics import *
# ISSUE: fix to use new argument format for function (no global)
plotter.domain={'x': [-1,1], 'y': [-2,2]}
plotter.coords=('x','y')
a, b = force_line_to_extent(Point2D((0.25,0)), P... | <commit_before>import PyDSTool as dst
from PyDSTool.Toolbox.phaseplane import Point2D
from matplotlib import pyplot as plt
from fovea.graphics import *
# ISSUE: fix to use new argument format for function (no global)
plotter.domain={'x': [-1,1], 'y': [-2,2]}
plotter.coords=('x','y')
a, b = force_line_to_extent(Point... |
d68a7f9c42220d6497fe87cc8426ce8ff8098c30 | wcontrol/src/results.py | wcontrol/src/results.py | from wcontrol.conf.config import BMI, BFP, MUSCLE
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
def get_bmi(self, bmi):
for lim... | from wcontrol.conf.config import BMI, BFP, MUSCLE, VISCERAL
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
self.visceral = self.get_v... | Add function to get the visceral fat result | Add function to get the visceral fat result
| Python | mit | pahumadad/weight-control,pahumadad/weight-control,pahumadad/weight-control,pahumadad/weight-control | from wcontrol.conf.config import BMI, BFP, MUSCLE
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
def get_bmi(self, bmi):
for lim... | from wcontrol.conf.config import BMI, BFP, MUSCLE, VISCERAL
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
self.visceral = self.get_v... | <commit_before>from wcontrol.conf.config import BMI, BFP, MUSCLE
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
def get_bmi(self, bmi):
... | from wcontrol.conf.config import BMI, BFP, MUSCLE, VISCERAL
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
self.visceral = self.get_v... | from wcontrol.conf.config import BMI, BFP, MUSCLE
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
def get_bmi(self, bmi):
for lim... | <commit_before>from wcontrol.conf.config import BMI, BFP, MUSCLE
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
def get_bmi(self, bmi):
... |
2e6ff15fed8eda23b141a81264929bfb83d4fcb8 | avena/tests/test-flip.py | avena/tests/test-flip.py | #!/usr/bin/env python
from numpy import all, array
from avena import flip
def test_flip_vertical():
x = array([[1], [2], [3]])
assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)
y = array([[3], [2], [1]])
assert all(flip._flip_vertical(x) == y)
def test_flip_horizontal():
x = array([... | #!/usr/bin/env python
from numpy import all, array
from .. import flip
def test_flip_vertical():
x = array([[1], [2], [3]])
assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)
y = array([[3], [2], [1]])
assert all(flip._flip_vertical(x) == y)
def test_flip_horizontal():
x = array([[1,... | Use relative imports in unit tests. | Use relative imports in unit tests.
| Python | isc | eliteraspberries/avena | #!/usr/bin/env python
from numpy import all, array
from avena import flip
def test_flip_vertical():
x = array([[1], [2], [3]])
assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)
y = array([[3], [2], [1]])
assert all(flip._flip_vertical(x) == y)
def test_flip_horizontal():
x = array([... | #!/usr/bin/env python
from numpy import all, array
from .. import flip
def test_flip_vertical():
x = array([[1], [2], [3]])
assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)
y = array([[3], [2], [1]])
assert all(flip._flip_vertical(x) == y)
def test_flip_horizontal():
x = array([[1,... | <commit_before>#!/usr/bin/env python
from numpy import all, array
from avena import flip
def test_flip_vertical():
x = array([[1], [2], [3]])
assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)
y = array([[3], [2], [1]])
assert all(flip._flip_vertical(x) == y)
def test_flip_horizontal():
... | #!/usr/bin/env python
from numpy import all, array
from .. import flip
def test_flip_vertical():
x = array([[1], [2], [3]])
assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)
y = array([[3], [2], [1]])
assert all(flip._flip_vertical(x) == y)
def test_flip_horizontal():
x = array([[1,... | #!/usr/bin/env python
from numpy import all, array
from avena import flip
def test_flip_vertical():
x = array([[1], [2], [3]])
assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)
y = array([[3], [2], [1]])
assert all(flip._flip_vertical(x) == y)
def test_flip_horizontal():
x = array([... | <commit_before>#!/usr/bin/env python
from numpy import all, array
from avena import flip
def test_flip_vertical():
x = array([[1], [2], [3]])
assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)
y = array([[3], [2], [1]])
assert all(flip._flip_vertical(x) == y)
def test_flip_horizontal():
... |
bc576b0284ebf49e105af678b483173084068bfb | ufyr/utils/http.py | ufyr/utils/http.py | #! /usr/bin/python
import json
import requests
class Callback(object):
def __init__(self, url, method='GET', req_kwargs={}, **kwargs):
assert isinstance(url, (str, unicode))
assert isinstance(method, (str, unicode))
assert isinstance(req_kwargs, dict)
se... | #! /usr/bin/python
import json
import requests
from ufyr.decorators import retry
class Callback(object):
def __init__(self, url, method='GET', req_kwargs={}, **kwargs):
assert isinstance(url, (str, unicode))
assert isinstance(method, (str, unicode))
assert isinstance(req_kwargs,... | Add retry and failure detection to callback.execute | Add retry and failure detection to callback.execute
| Python | unlicense | timeartist/ufyr | #! /usr/bin/python
import json
import requests
class Callback(object):
def __init__(self, url, method='GET', req_kwargs={}, **kwargs):
assert isinstance(url, (str, unicode))
assert isinstance(method, (str, unicode))
assert isinstance(req_kwargs, dict)
se... | #! /usr/bin/python
import json
import requests
from ufyr.decorators import retry
class Callback(object):
def __init__(self, url, method='GET', req_kwargs={}, **kwargs):
assert isinstance(url, (str, unicode))
assert isinstance(method, (str, unicode))
assert isinstance(req_kwargs,... | <commit_before>#! /usr/bin/python
import json
import requests
class Callback(object):
def __init__(self, url, method='GET', req_kwargs={}, **kwargs):
assert isinstance(url, (str, unicode))
assert isinstance(method, (str, unicode))
assert isinstance(req_kwargs, dict)
... | #! /usr/bin/python
import json
import requests
from ufyr.decorators import retry
class Callback(object):
def __init__(self, url, method='GET', req_kwargs={}, **kwargs):
assert isinstance(url, (str, unicode))
assert isinstance(method, (str, unicode))
assert isinstance(req_kwargs,... | #! /usr/bin/python
import json
import requests
class Callback(object):
def __init__(self, url, method='GET', req_kwargs={}, **kwargs):
assert isinstance(url, (str, unicode))
assert isinstance(method, (str, unicode))
assert isinstance(req_kwargs, dict)
se... | <commit_before>#! /usr/bin/python
import json
import requests
class Callback(object):
def __init__(self, url, method='GET', req_kwargs={}, **kwargs):
assert isinstance(url, (str, unicode))
assert isinstance(method, (str, unicode))
assert isinstance(req_kwargs, dict)
... |
74adefcad1fe411b596981da7d124cda2f8e936d | mopidy/backends/local/__init__.py | mopidy/backends/local/__init__.py | from __future__ import unicode_literals
import mopidy
from mopidy import ext
__doc__ = """A backend for playing music from a local music archive.
This backend handles URIs starting with ``file:``.
See :ref:`music-from-local-storage` for further instructions on using this
backend.
**Issues:**
https://github.com/m... | from __future__ import unicode_literals
import mopidy
from mopidy import ext
from mopidy.utils import config, formatting
default_config = """
[ext.local]
# If the local extension should be enabled or not
enabled = true
# Path to folder with local music
music_path = $XDG_MUSIC_DIR
# Path to playlist folder with m3... | Add default config and config schema | local: Add default config and config schema
| Python | apache-2.0 | jmarsik/mopidy,jmarsik/mopidy,jodal/mopidy,rawdlite/mopidy,ali/mopidy,SuperStarPL/mopidy,jcass77/mopidy,adamcik/mopidy,pacificIT/mopidy,diandiankan/mopidy,tkem/mopidy,swak/mopidy,diandiankan/mopidy,bacontext/mopidy,mokieyue/mopidy,pacificIT/mopidy,swak/mopidy,ZenithDK/mopidy,vrs01/mopidy,bencevans/mopidy,bacontext/mopi... | from __future__ import unicode_literals
import mopidy
from mopidy import ext
__doc__ = """A backend for playing music from a local music archive.
This backend handles URIs starting with ``file:``.
See :ref:`music-from-local-storage` for further instructions on using this
backend.
**Issues:**
https://github.com/m... | from __future__ import unicode_literals
import mopidy
from mopidy import ext
from mopidy.utils import config, formatting
default_config = """
[ext.local]
# If the local extension should be enabled or not
enabled = true
# Path to folder with local music
music_path = $XDG_MUSIC_DIR
# Path to playlist folder with m3... | <commit_before>from __future__ import unicode_literals
import mopidy
from mopidy import ext
__doc__ = """A backend for playing music from a local music archive.
This backend handles URIs starting with ``file:``.
See :ref:`music-from-local-storage` for further instructions on using this
backend.
**Issues:**
https... | from __future__ import unicode_literals
import mopidy
from mopidy import ext
from mopidy.utils import config, formatting
default_config = """
[ext.local]
# If the local extension should be enabled or not
enabled = true
# Path to folder with local music
music_path = $XDG_MUSIC_DIR
# Path to playlist folder with m3... | from __future__ import unicode_literals
import mopidy
from mopidy import ext
__doc__ = """A backend for playing music from a local music archive.
This backend handles URIs starting with ``file:``.
See :ref:`music-from-local-storage` for further instructions on using this
backend.
**Issues:**
https://github.com/m... | <commit_before>from __future__ import unicode_literals
import mopidy
from mopidy import ext
__doc__ = """A backend for playing music from a local music archive.
This backend handles URIs starting with ``file:``.
See :ref:`music-from-local-storage` for further instructions on using this
backend.
**Issues:**
https... |
d6444cd75c8ce6babd373989abd3507dd14923bb | api.py | api.py | import json
from tornado.httpserver import HTTPServer
from tornado.web import URLSpec
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from orders import Book, Buy, Sell
define("port", default=3000, help="run on the given port", type=int)
Book()
class BookHandler(tornado.web.Req... | import json
from tornado.httpserver import HTTPServer
from tornado.httputil import HTTPHeaders
from tornado.web import URLSpec
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from orders import Book, Buy, Sell
define("port", default=3000, help="run on the given port", type=int)
B... | Add location and content-type headers to response. | Add location and content-type headers to response.
| Python | mit | eigenholser/ddme,eigenholser/ddme | import json
from tornado.httpserver import HTTPServer
from tornado.web import URLSpec
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from orders import Book, Buy, Sell
define("port", default=3000, help="run on the given port", type=int)
Book()
class BookHandler(tornado.web.Req... | import json
from tornado.httpserver import HTTPServer
from tornado.httputil import HTTPHeaders
from tornado.web import URLSpec
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from orders import Book, Buy, Sell
define("port", default=3000, help="run on the given port", type=int)
B... | <commit_before>import json
from tornado.httpserver import HTTPServer
from tornado.web import URLSpec
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from orders import Book, Buy, Sell
define("port", default=3000, help="run on the given port", type=int)
Book()
class BookHandler(... | import json
from tornado.httpserver import HTTPServer
from tornado.httputil import HTTPHeaders
from tornado.web import URLSpec
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from orders import Book, Buy, Sell
define("port", default=3000, help="run on the given port", type=int)
B... | import json
from tornado.httpserver import HTTPServer
from tornado.web import URLSpec
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from orders import Book, Buy, Sell
define("port", default=3000, help="run on the given port", type=int)
Book()
class BookHandler(tornado.web.Req... | <commit_before>import json
from tornado.httpserver import HTTPServer
from tornado.web import URLSpec
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from orders import Book, Buy, Sell
define("port", default=3000, help="run on the given port", type=int)
Book()
class BookHandler(... |
0cb295e80fbf8d08276166d8005722918012ca83 | wafer/kv/models.py | wafer/kv/models.py | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | Add KeyValue.__str__ for python 3 | Add KeyValue.__str__ for python 3
| Python | isc | CTPUG/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | <commit_before>from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(s... | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | <commit_before>from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(s... |
7f412fef594a514d13519a0f048c55b293fd84b3 | abandoned/models.py | abandoned/models.py | from django.db import models
class Author(models.Model):
author_name = models.CharField(max_length=200, unique=True)
author_link = models.URLField()
def __str__(self):
return str(self.name)
class Reason(models.Model):
reason = models.CharField(max_length=200)
def __str__(self):
... | from django.db import models
class Author(models.Model):
author_name = models.CharField(max_length=200, unique=True)
author_link = models.URLField()
def __str__(self):
return str(self.name)
class Reason(models.Model):
reason = models.CharField(max_length=200)
def __str__(self):
... | Tag text is now converted to lowercase before being saved | Tag text is now converted to lowercase before being saved
| Python | mit | Kunstmord/abandoned,Kunstmord/abandoned,Kunstmord/abandoned | from django.db import models
class Author(models.Model):
author_name = models.CharField(max_length=200, unique=True)
author_link = models.URLField()
def __str__(self):
return str(self.name)
class Reason(models.Model):
reason = models.CharField(max_length=200)
def __str__(self):
... | from django.db import models
class Author(models.Model):
author_name = models.CharField(max_length=200, unique=True)
author_link = models.URLField()
def __str__(self):
return str(self.name)
class Reason(models.Model):
reason = models.CharField(max_length=200)
def __str__(self):
... | <commit_before>from django.db import models
class Author(models.Model):
author_name = models.CharField(max_length=200, unique=True)
author_link = models.URLField()
def __str__(self):
return str(self.name)
class Reason(models.Model):
reason = models.CharField(max_length=200)
def __str__... | from django.db import models
class Author(models.Model):
author_name = models.CharField(max_length=200, unique=True)
author_link = models.URLField()
def __str__(self):
return str(self.name)
class Reason(models.Model):
reason = models.CharField(max_length=200)
def __str__(self):
... | from django.db import models
class Author(models.Model):
author_name = models.CharField(max_length=200, unique=True)
author_link = models.URLField()
def __str__(self):
return str(self.name)
class Reason(models.Model):
reason = models.CharField(max_length=200)
def __str__(self):
... | <commit_before>from django.db import models
class Author(models.Model):
author_name = models.CharField(max_length=200, unique=True)
author_link = models.URLField()
def __str__(self):
return str(self.name)
class Reason(models.Model):
reason = models.CharField(max_length=200)
def __str__... |
61e792e1c4d41d2a0e3f3433b39f364a5c1df144 | daybed/tests/test_id_generators.py | daybed/tests/test_id_generators.py | try:
from unittest2 import TestCase
except ImportError:
from unittest import TestCase # flake8: noqa
import six
from mock import patch
from daybed.backends.id_generators import KoremutakeGenerator
class KoremutakeGeneratorTest(TestCase):
def test_it_defaults_the_max_bytes_to_4(self):
generator... | try:
from unittest2 import TestCase
except ImportError:
from unittest import TestCase # flake8: noqa
import six
from mock import patch
from daybed.backends.id_generators import KoremutakeGenerator
class KoremutakeGeneratorTest(TestCase):
def setUp(self):
self.generator = KoremutakeGenerator()
... | Put the generator instanciation in the setUp | Put the generator instanciation in the setUp
| Python | bsd-3-clause | spiral-project/daybed,spiral-project/daybed | try:
from unittest2 import TestCase
except ImportError:
from unittest import TestCase # flake8: noqa
import six
from mock import patch
from daybed.backends.id_generators import KoremutakeGenerator
class KoremutakeGeneratorTest(TestCase):
def test_it_defaults_the_max_bytes_to_4(self):
generator... | try:
from unittest2 import TestCase
except ImportError:
from unittest import TestCase # flake8: noqa
import six
from mock import patch
from daybed.backends.id_generators import KoremutakeGenerator
class KoremutakeGeneratorTest(TestCase):
def setUp(self):
self.generator = KoremutakeGenerator()
... | <commit_before>try:
from unittest2 import TestCase
except ImportError:
from unittest import TestCase # flake8: noqa
import six
from mock import patch
from daybed.backends.id_generators import KoremutakeGenerator
class KoremutakeGeneratorTest(TestCase):
def test_it_defaults_the_max_bytes_to_4(self):
... | try:
from unittest2 import TestCase
except ImportError:
from unittest import TestCase # flake8: noqa
import six
from mock import patch
from daybed.backends.id_generators import KoremutakeGenerator
class KoremutakeGeneratorTest(TestCase):
def setUp(self):
self.generator = KoremutakeGenerator()
... | try:
from unittest2 import TestCase
except ImportError:
from unittest import TestCase # flake8: noqa
import six
from mock import patch
from daybed.backends.id_generators import KoremutakeGenerator
class KoremutakeGeneratorTest(TestCase):
def test_it_defaults_the_max_bytes_to_4(self):
generator... | <commit_before>try:
from unittest2 import TestCase
except ImportError:
from unittest import TestCase # flake8: noqa
import six
from mock import patch
from daybed.backends.id_generators import KoremutakeGenerator
class KoremutakeGeneratorTest(TestCase):
def test_it_defaults_the_max_bytes_to_4(self):
... |
aeb43ef66c0dc16d020b941e71fa19d357016e02 | jsk_apc2016_common/scripts/install_trained_data.py | jsk_apc2016_common/scripts/install_trained_data.py | #!/usr/bin/env python
from jsk_data import download_data
def main():
PKG = 'jsk_apc2016_common'
download_data(
pkg_name=PKG,
path='trained_data/vgg16_96000.chainermodel',
url='https://drive.google.com/uc?id=0B9P1L--7Wd2vOTdzOGlJcGM1N00',
md5='3c993d333cf554684b5162c9f69b20cf'... | #!/usr/bin/env python
from jsk_data import download_data
def main():
PKG = 'jsk_apc2016_common'
download_data(
pkg_name=PKG,
path='trained_data/vgg16_96000.chainermodel',
url='https://drive.google.com/uc?id=0B9P1L--7Wd2vOTdzOGlJcGM1N00',
md5='3c993d333cf554684b5162c9f69b20cf'... | Fix 404 of trained data vgg16_rotation_translation_brightness_372000... | Fix 404 of trained data vgg16_rotation_translation_brightness_372000...
| Python | bsd-3-clause | pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc | #!/usr/bin/env python
from jsk_data import download_data
def main():
PKG = 'jsk_apc2016_common'
download_data(
pkg_name=PKG,
path='trained_data/vgg16_96000.chainermodel',
url='https://drive.google.com/uc?id=0B9P1L--7Wd2vOTdzOGlJcGM1N00',
md5='3c993d333cf554684b5162c9f69b20cf'... | #!/usr/bin/env python
from jsk_data import download_data
def main():
PKG = 'jsk_apc2016_common'
download_data(
pkg_name=PKG,
path='trained_data/vgg16_96000.chainermodel',
url='https://drive.google.com/uc?id=0B9P1L--7Wd2vOTdzOGlJcGM1N00',
md5='3c993d333cf554684b5162c9f69b20cf'... | <commit_before>#!/usr/bin/env python
from jsk_data import download_data
def main():
PKG = 'jsk_apc2016_common'
download_data(
pkg_name=PKG,
path='trained_data/vgg16_96000.chainermodel',
url='https://drive.google.com/uc?id=0B9P1L--7Wd2vOTdzOGlJcGM1N00',
md5='3c993d333cf554684b... | #!/usr/bin/env python
from jsk_data import download_data
def main():
PKG = 'jsk_apc2016_common'
download_data(
pkg_name=PKG,
path='trained_data/vgg16_96000.chainermodel',
url='https://drive.google.com/uc?id=0B9P1L--7Wd2vOTdzOGlJcGM1N00',
md5='3c993d333cf554684b5162c9f69b20cf'... | #!/usr/bin/env python
from jsk_data import download_data
def main():
PKG = 'jsk_apc2016_common'
download_data(
pkg_name=PKG,
path='trained_data/vgg16_96000.chainermodel',
url='https://drive.google.com/uc?id=0B9P1L--7Wd2vOTdzOGlJcGM1N00',
md5='3c993d333cf554684b5162c9f69b20cf'... | <commit_before>#!/usr/bin/env python
from jsk_data import download_data
def main():
PKG = 'jsk_apc2016_common'
download_data(
pkg_name=PKG,
path='trained_data/vgg16_96000.chainermodel',
url='https://drive.google.com/uc?id=0B9P1L--7Wd2vOTdzOGlJcGM1N00',
md5='3c993d333cf554684b... |
27a24e265737c0d67ed5d93e705d250a9e6b855a | mistralclient/api/v2/tasks.py | mistralclient/api/v2/tasks.py | # Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | Support naive filtering in python API | Support naive filtering in python API
Change-Id: I10caecf68c73e7c722a9ab93a718b80c588d4d0e
| Python | apache-2.0 | openstack/python-mistralclient,openstack/python-mistralclient,StackStorm/python-mistralclient,StackStorm/python-mistralclient | # Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | <commit_before># Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | # Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | <commit_before># Copyright 2014 - Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
ed350a7387c376538f51a8a7a8cfde5469baba8a | tests/testutils.py | tests/testutils.py | import psycopg2
import os
import getpass
def get_pg_connection():
return psycopg2.connect(
"dbname=bedquilt_test user={}".format(getpass.getuser())
)
| import psycopg2
import os
import getpass
# CREATE DATABASE bedquilt_test
# WITH OWNER = {{owner}}
# ENCODING = 'UTF8'
# TABLESPACE = pg_default
# LC_COLLATE = 'en_GB.UTF-8'
# LC_CTYPE = 'en_GB.UTF-8'
# CONNECTION LIMIT = -1;
def get_pg_connection():
return psycopg2.connect(
... | Add the sql to create the test database | Add the sql to create the test database
| Python | mit | BedquiltDB/bedquilt-core | import psycopg2
import os
import getpass
def get_pg_connection():
return psycopg2.connect(
"dbname=bedquilt_test user={}".format(getpass.getuser())
)
Add the sql to create the test database | import psycopg2
import os
import getpass
# CREATE DATABASE bedquilt_test
# WITH OWNER = {{owner}}
# ENCODING = 'UTF8'
# TABLESPACE = pg_default
# LC_COLLATE = 'en_GB.UTF-8'
# LC_CTYPE = 'en_GB.UTF-8'
# CONNECTION LIMIT = -1;
def get_pg_connection():
return psycopg2.connect(
... | <commit_before>import psycopg2
import os
import getpass
def get_pg_connection():
return psycopg2.connect(
"dbname=bedquilt_test user={}".format(getpass.getuser())
)
<commit_msg>Add the sql to create the test database<commit_after> | import psycopg2
import os
import getpass
# CREATE DATABASE bedquilt_test
# WITH OWNER = {{owner}}
# ENCODING = 'UTF8'
# TABLESPACE = pg_default
# LC_COLLATE = 'en_GB.UTF-8'
# LC_CTYPE = 'en_GB.UTF-8'
# CONNECTION LIMIT = -1;
def get_pg_connection():
return psycopg2.connect(
... | import psycopg2
import os
import getpass
def get_pg_connection():
return psycopg2.connect(
"dbname=bedquilt_test user={}".format(getpass.getuser())
)
Add the sql to create the test databaseimport psycopg2
import os
import getpass
# CREATE DATABASE bedquilt_test
# WITH OWNER = {{owner}}
# EN... | <commit_before>import psycopg2
import os
import getpass
def get_pg_connection():
return psycopg2.connect(
"dbname=bedquilt_test user={}".format(getpass.getuser())
)
<commit_msg>Add the sql to create the test database<commit_after>import psycopg2
import os
import getpass
# CREATE DATABASE bedquilt_te... |
28ce9a3316bbbb58a244dc6ed5cd43bc13dca01b | project_dir/urls.py | project_dir/urls.py | """<project_name> URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | """<project_name> URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | Remove unneccesary / in url conf | Remove unneccesary / in url conf
| Python | mit | nkhumphreys/django_docker_template,nkhumphreys/django_docker_template,nkhumphreys/django_docker_template | """<project_name> URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | """<project_name> URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | <commit_before>"""<project_name> URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, ... | """<project_name> URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | """<project_name> URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | <commit_before>"""<project_name> URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, ... |
8c18b43880368bba654e715c2da197f7a6d9e41a | tests/test_carddb.py | tests/test_carddb.py | from hearthstone.enums import CardType, GameTag, Rarity
import utils
CARDS = utils.fireplace.cards.db
def test_all_tags_known():
"""
Iterate through the card database and check that all specified GameTags
are known in hearthstone.enums.GameTag
"""
unknown_tags = set()
known_tags = list(GameTag)
known_rariti... | from hearthstone.enums import CardType, GameTag, Rarity
import utils
CARDS = utils.fireplace.cards.db
def test_all_tags_known():
"""
Iterate through the card database and check that all specified GameTags
are known in hearthstone.enums.GameTag
"""
unknown_tags = set()
known_tags = list(GameTag)
known_rariti... | Simplify the CardDB test check for tags | Simplify the CardDB test check for tags
| Python | agpl-3.0 | smallnamespace/fireplace,NightKev/fireplace,smallnamespace/fireplace,beheh/fireplace,Ragowit/fireplace,Ragowit/fireplace,jleclanche/fireplace | from hearthstone.enums import CardType, GameTag, Rarity
import utils
CARDS = utils.fireplace.cards.db
def test_all_tags_known():
"""
Iterate through the card database and check that all specified GameTags
are known in hearthstone.enums.GameTag
"""
unknown_tags = set()
known_tags = list(GameTag)
known_rariti... | from hearthstone.enums import CardType, GameTag, Rarity
import utils
CARDS = utils.fireplace.cards.db
def test_all_tags_known():
"""
Iterate through the card database and check that all specified GameTags
are known in hearthstone.enums.GameTag
"""
unknown_tags = set()
known_tags = list(GameTag)
known_rariti... | <commit_before>from hearthstone.enums import CardType, GameTag, Rarity
import utils
CARDS = utils.fireplace.cards.db
def test_all_tags_known():
"""
Iterate through the card database and check that all specified GameTags
are known in hearthstone.enums.GameTag
"""
unknown_tags = set()
known_tags = list(GameTag... | from hearthstone.enums import CardType, GameTag, Rarity
import utils
CARDS = utils.fireplace.cards.db
def test_all_tags_known():
"""
Iterate through the card database and check that all specified GameTags
are known in hearthstone.enums.GameTag
"""
unknown_tags = set()
known_tags = list(GameTag)
known_rariti... | from hearthstone.enums import CardType, GameTag, Rarity
import utils
CARDS = utils.fireplace.cards.db
def test_all_tags_known():
"""
Iterate through the card database and check that all specified GameTags
are known in hearthstone.enums.GameTag
"""
unknown_tags = set()
known_tags = list(GameTag)
known_rariti... | <commit_before>from hearthstone.enums import CardType, GameTag, Rarity
import utils
CARDS = utils.fireplace.cards.db
def test_all_tags_known():
"""
Iterate through the card database and check that all specified GameTags
are known in hearthstone.enums.GameTag
"""
unknown_tags = set()
known_tags = list(GameTag... |
d31bb7014a58eb90ffb3dd25d136595c24c47e68 | app.py | app.py | import eventlet
eventlet.monkey_patch() # NOLINT
import importlib
import sys
from weaveserver.main import create_app
from weaveserver.core.logger import configure_logging
def handle_launch():
import signal
from weaveserver.core.config_loader import get_config
configure_logging()
name = sys.argv[1]... | import eventlet
eventlet.monkey_patch() # NOLINT
import importlib
import sys
from weaveserver.main import create_app
from weaveserver.core.logger import configure_logging
def handle_launch():
import signal
from weaveserver.core.config_loader import get_config
configure_logging()
token = sys.stdin.... | Read for service token from stdin. | Read for service token from stdin.
| Python | mit | supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer | import eventlet
eventlet.monkey_patch() # NOLINT
import importlib
import sys
from weaveserver.main import create_app
from weaveserver.core.logger import configure_logging
def handle_launch():
import signal
from weaveserver.core.config_loader import get_config
configure_logging()
name = sys.argv[1]... | import eventlet
eventlet.monkey_patch() # NOLINT
import importlib
import sys
from weaveserver.main import create_app
from weaveserver.core.logger import configure_logging
def handle_launch():
import signal
from weaveserver.core.config_loader import get_config
configure_logging()
token = sys.stdin.... | <commit_before>import eventlet
eventlet.monkey_patch() # NOLINT
import importlib
import sys
from weaveserver.main import create_app
from weaveserver.core.logger import configure_logging
def handle_launch():
import signal
from weaveserver.core.config_loader import get_config
configure_logging()
nam... | import eventlet
eventlet.monkey_patch() # NOLINT
import importlib
import sys
from weaveserver.main import create_app
from weaveserver.core.logger import configure_logging
def handle_launch():
import signal
from weaveserver.core.config_loader import get_config
configure_logging()
token = sys.stdin.... | import eventlet
eventlet.monkey_patch() # NOLINT
import importlib
import sys
from weaveserver.main import create_app
from weaveserver.core.logger import configure_logging
def handle_launch():
import signal
from weaveserver.core.config_loader import get_config
configure_logging()
name = sys.argv[1]... | <commit_before>import eventlet
eventlet.monkey_patch() # NOLINT
import importlib
import sys
from weaveserver.main import create_app
from weaveserver.core.logger import configure_logging
def handle_launch():
import signal
from weaveserver.core.config_loader import get_config
configure_logging()
nam... |
6ecabe1e20ef7d82651bf91ccfc30bcb77bcb968 | nbx/extensions/partial_run.py | nbx/extensions/partial_run.py | import six
# only run for python 3, or else syntax errors
if six.PY3:
from ._partial_run import *
| import six
def load_ipython_extension(shell):
# only run for python 3, or else syntax errors
if not six.PY3:
return
from ._partial_run import safe_run_module
shell.safe_run_module = safe_run_module.__get__(shell)
| Update to use ipython kernel extension | Update to use ipython kernel extension
| Python | mit | dalejung/nbx,dalejung/nbx,dalejung/nbx,dalejung/nbx | import six
# only run for python 3, or else syntax errors
if six.PY3:
from ._partial_run import *
Update to use ipython kernel extension | import six
def load_ipython_extension(shell):
# only run for python 3, or else syntax errors
if not six.PY3:
return
from ._partial_run import safe_run_module
shell.safe_run_module = safe_run_module.__get__(shell)
| <commit_before>import six
# only run for python 3, or else syntax errors
if six.PY3:
from ._partial_run import *
<commit_msg>Update to use ipython kernel extension<commit_after> | import six
def load_ipython_extension(shell):
# only run for python 3, or else syntax errors
if not six.PY3:
return
from ._partial_run import safe_run_module
shell.safe_run_module = safe_run_module.__get__(shell)
| import six
# only run for python 3, or else syntax errors
if six.PY3:
from ._partial_run import *
Update to use ipython kernel extensionimport six
def load_ipython_extension(shell):
# only run for python 3, or else syntax errors
if not six.PY3:
return
from ._partial_run import safe_run_module
... | <commit_before>import six
# only run for python 3, or else syntax errors
if six.PY3:
from ._partial_run import *
<commit_msg>Update to use ipython kernel extension<commit_after>import six
def load_ipython_extension(shell):
# only run for python 3, or else syntax errors
if not six.PY3:
return
f... |
db8b85e2c5789b91a1d50a902f626fba95a4f4cc | txircd/modules/cmd_ping.py | txircd/modules/cmd_ping.py | from twisted.words.protocols import irc
from txircd.modbase import Command
class PingCommand(Command):
def onUse(self, user, data):
if data["params"]:
user.sendMessage("PONG", ":{}".format(data["params"][0]), to=self.ircd.servconfig["server_name"], prefix=None)
else:
user.sendMessage(irc.ERR_NOORIGIN, ":No ... | from twisted.words.protocols import irc
from txircd.modbase import Command
class PingCommand(Command):
def onUse(self, user, data):
if data["params"]:
user.sendMessage("PONG", ":{}".format(data["params"][0]), to=self.ircd.servconfig["server_name"])
else:
user.sendMessage(irc.ERR_NOORIGIN, ":No origin specif... | Send the server prefix on the line when the client sends PING | Send the server prefix on the line when the client sends PING
| Python | bsd-3-clause | Heufneutje/txircd,ElementalAlchemist/txircd,DesertBus/txircd | from twisted.words.protocols import irc
from txircd.modbase import Command
class PingCommand(Command):
def onUse(self, user, data):
if data["params"]:
user.sendMessage("PONG", ":{}".format(data["params"][0]), to=self.ircd.servconfig["server_name"], prefix=None)
else:
user.sendMessage(irc.ERR_NOORIGIN, ":No ... | from twisted.words.protocols import irc
from txircd.modbase import Command
class PingCommand(Command):
def onUse(self, user, data):
if data["params"]:
user.sendMessage("PONG", ":{}".format(data["params"][0]), to=self.ircd.servconfig["server_name"])
else:
user.sendMessage(irc.ERR_NOORIGIN, ":No origin specif... | <commit_before>from twisted.words.protocols import irc
from txircd.modbase import Command
class PingCommand(Command):
def onUse(self, user, data):
if data["params"]:
user.sendMessage("PONG", ":{}".format(data["params"][0]), to=self.ircd.servconfig["server_name"], prefix=None)
else:
user.sendMessage(irc.ERR_... | from twisted.words.protocols import irc
from txircd.modbase import Command
class PingCommand(Command):
def onUse(self, user, data):
if data["params"]:
user.sendMessage("PONG", ":{}".format(data["params"][0]), to=self.ircd.servconfig["server_name"])
else:
user.sendMessage(irc.ERR_NOORIGIN, ":No origin specif... | from twisted.words.protocols import irc
from txircd.modbase import Command
class PingCommand(Command):
def onUse(self, user, data):
if data["params"]:
user.sendMessage("PONG", ":{}".format(data["params"][0]), to=self.ircd.servconfig["server_name"], prefix=None)
else:
user.sendMessage(irc.ERR_NOORIGIN, ":No ... | <commit_before>from twisted.words.protocols import irc
from txircd.modbase import Command
class PingCommand(Command):
def onUse(self, user, data):
if data["params"]:
user.sendMessage("PONG", ":{}".format(data["params"][0]), to=self.ircd.servconfig["server_name"], prefix=None)
else:
user.sendMessage(irc.ERR_... |
a7481dea799117199af4e48526a007194c8d3220 | fabfile/docs.py | fabfile/docs.py | # Module: docs
# Date: 03rd April 2013
# Author: James Mills, j dot mills at griffith dot edu dot au
"""Documentation Tasks"""
from fabric.api import lcd, local, task
from .utils import pip, requires
PACKAGE = "src/ccav"
@task()
@requires("sphinx-apidoc")
def api():
"""Generate the API Documentation"... | # Module: docs
# Date: 03rd April 2013
# Author: James Mills, j dot mills at griffith dot edu dot au
"""Documentation Tasks"""
from fabric.api import lcd, local, task
from .utils import pip, requires
PACKAGE = "src/ccav"
@task()
@requires("sphinx-apidoc")
def api():
"""Generate the API Documentation"... | Use webbrowser.open_new_tab() instead of platform dependent open | Use webbrowser.open_new_tab() instead of platform dependent open
| Python | mit | eriol/circuits,treemo/circuits,treemo/circuits,treemo/circuits,nizox/circuits,eriol/circuits,eriol/circuits | # Module: docs
# Date: 03rd April 2013
# Author: James Mills, j dot mills at griffith dot edu dot au
"""Documentation Tasks"""
from fabric.api import lcd, local, task
from .utils import pip, requires
PACKAGE = "src/ccav"
@task()
@requires("sphinx-apidoc")
def api():
"""Generate the API Documentation"... | # Module: docs
# Date: 03rd April 2013
# Author: James Mills, j dot mills at griffith dot edu dot au
"""Documentation Tasks"""
from fabric.api import lcd, local, task
from .utils import pip, requires
PACKAGE = "src/ccav"
@task()
@requires("sphinx-apidoc")
def api():
"""Generate the API Documentation"... | <commit_before># Module: docs
# Date: 03rd April 2013
# Author: James Mills, j dot mills at griffith dot edu dot au
"""Documentation Tasks"""
from fabric.api import lcd, local, task
from .utils import pip, requires
PACKAGE = "src/ccav"
@task()
@requires("sphinx-apidoc")
def api():
"""Generate the API... | # Module: docs
# Date: 03rd April 2013
# Author: James Mills, j dot mills at griffith dot edu dot au
"""Documentation Tasks"""
from fabric.api import lcd, local, task
from .utils import pip, requires
PACKAGE = "src/ccav"
@task()
@requires("sphinx-apidoc")
def api():
"""Generate the API Documentation"... | # Module: docs
# Date: 03rd April 2013
# Author: James Mills, j dot mills at griffith dot edu dot au
"""Documentation Tasks"""
from fabric.api import lcd, local, task
from .utils import pip, requires
PACKAGE = "src/ccav"
@task()
@requires("sphinx-apidoc")
def api():
"""Generate the API Documentation"... | <commit_before># Module: docs
# Date: 03rd April 2013
# Author: James Mills, j dot mills at griffith dot edu dot au
"""Documentation Tasks"""
from fabric.api import lcd, local, task
from .utils import pip, requires
PACKAGE = "src/ccav"
@task()
@requires("sphinx-apidoc")
def api():
"""Generate the API... |
ae433a0ed222d3540581b2b49c9a49a8ad16819c | wagtailaltgenerator/translation_providers/google_translate.py | wagtailaltgenerator/translation_providers/google_translate.py | import logging
from . import AbstractTranslationProvider
from google.cloud import translate
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
client = translate.Client()
response = client... | import logging
from . import AbstractTranslationProvider
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
from google.cloud import translate
client = translate.Client()
response... | Enable test mocking for translate | Enable test mocking for translate
| Python | mit | marteinn/wagtail-alt-generator,marteinn/wagtail-alt-generator,marteinn/wagtail-alt-generator | import logging
from . import AbstractTranslationProvider
from google.cloud import translate
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
client = translate.Client()
response = client... | import logging
from . import AbstractTranslationProvider
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
from google.cloud import translate
client = translate.Client()
response... | <commit_before>import logging
from . import AbstractTranslationProvider
from google.cloud import translate
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
client = translate.Client()
re... | import logging
from . import AbstractTranslationProvider
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
from google.cloud import translate
client = translate.Client()
response... | import logging
from . import AbstractTranslationProvider
from google.cloud import translate
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
client = translate.Client()
response = client... | <commit_before>import logging
from . import AbstractTranslationProvider
from google.cloud import translate
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
client = translate.Client()
re... |
4237d5cb9d430c71089e3fe5965e5d83af9f97df | run.py | run.py | from __future__ import print_function
import tornado
from tornado import autoreload
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from app import app
enable_pretty_logging()
PORT = 8000
if __name__ == ... | from __future__ import print_function
import tornado
from tornado import autoreload
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from app import app, db
from app.models import User
enable_pretty_logging... | Add db creation and drop | Add db creation and drop
| Python | mit | jochasinga/rpg-x,jochasinga/rpg-x,jochasinga/rpg-x,jochasinga/rpg-x | from __future__ import print_function
import tornado
from tornado import autoreload
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from app import app
enable_pretty_logging()
PORT = 8000
if __name__ == ... | from __future__ import print_function
import tornado
from tornado import autoreload
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from app import app, db
from app.models import User
enable_pretty_logging... | <commit_before>from __future__ import print_function
import tornado
from tornado import autoreload
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from app import app
enable_pretty_logging()
PORT = 8000
... | from __future__ import print_function
import tornado
from tornado import autoreload
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from app import app, db
from app.models import User
enable_pretty_logging... | from __future__ import print_function
import tornado
from tornado import autoreload
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from app import app
enable_pretty_logging()
PORT = 8000
if __name__ == ... | <commit_before>from __future__ import print_function
import tornado
from tornado import autoreload
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from app import app
enable_pretty_logging()
PORT = 8000
... |
fdbc857d3496182d417f881242257eb6a858a42c | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'parsimonious',
)
description = "Connexions project search query parsing library."
with open('README.rst', 'r') as fb:
readme = fb.read()
long_description = readme
setup(
name='cnx-query-grammar',
version='0... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'parsimonious',
)
description = "Connexions project search query parsing library."
with open('README.rst', 'r') as fb:
readme = fb.read()
long_description = readme
setup(
name='cnx-query-grammar',
version='0... | Bump version for tag and release | Bump version for tag and release
| Python | agpl-3.0 | Connexions/cnx-query-grammar | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'parsimonious',
)
description = "Connexions project search query parsing library."
with open('README.rst', 'r') as fb:
readme = fb.read()
long_description = readme
setup(
name='cnx-query-grammar',
version='0... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'parsimonious',
)
description = "Connexions project search query parsing library."
with open('README.rst', 'r') as fb:
readme = fb.read()
long_description = readme
setup(
name='cnx-query-grammar',
version='0... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'parsimonious',
)
description = "Connexions project search query parsing library."
with open('README.rst', 'r') as fb:
readme = fb.read()
long_description = readme
setup(
name='cnx-query-grammar',... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'parsimonious',
)
description = "Connexions project search query parsing library."
with open('README.rst', 'r') as fb:
readme = fb.read()
long_description = readme
setup(
name='cnx-query-grammar',
version='0... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'parsimonious',
)
description = "Connexions project search query parsing library."
with open('README.rst', 'r') as fb:
readme = fb.read()
long_description = readme
setup(
name='cnx-query-grammar',
version='0... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'parsimonious',
)
description = "Connexions project search query parsing library."
with open('README.rst', 'r') as fb:
readme = fb.read()
long_description = readme
setup(
name='cnx-query-grammar',... |
7734721ebf956c994de289b43523681e42897ad4 | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-extra-fields',
version='0.9'... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-extra-fields',
version='0.9'... | Add python 3 trove classifier | Add python 3 trove classifier
| Python | apache-2.0 | Hipo/drf-extra-fields,Hipo/drf-extra-fields | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-extra-fields',
version='0.9'... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-extra-fields',
version='0.9'... | <commit_before>import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-extra-fields',
... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-extra-fields',
version='0.9'... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-extra-fields',
version='0.9'... | <commit_before>import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-extra-fields',
... |
c9d3acd0e404a60a3bb31dd49aadcca7c67ffa55 | setup.py | setup.py | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | Use empty string for install dir | Use empty string for install dir
| Python | mit | kahnjw/wincast | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | <commit_before>from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.... | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.12.0rc1',
'... | <commit_before>from setuptools import setup, find_packages
install_requires = [
'dill==0.2.5',
'easydict==1.6',
'h5py==2.6.0',
'jsonpickle==0.9.3',
'Keras==1.2.0',
'nflgame==1.2.20',
'numpy==1.11.2',
'pandas==0.19.1',
'scikit-learn==0.18.1',
'scipy==0.18.1',
'tensorflow==0.... |
3881bc75b43fc109e27348a41724311300039a15 | setup.py | setup.py | from pip.req import parse_requirements
from setuptools import setup
setup(name='psc_konvertor',
version='0.1.0',
description='PSČ Konvertor',
long_description='',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',... | try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from setuptools import setup
install_reqs = list(parse_requirements('requirements.txt', session='hack'))
try:
requirements = [str(ir.req) for ir in inst... | Add support for current pip | Add support for current pip
Introducing support for current pip while maintaining backward
compatibility.
| Python | mit | petrbel/psc_konvertor | from pip.req import parse_requirements
from setuptools import setup
setup(name='psc_konvertor',
version='0.1.0',
description='PSČ Konvertor',
long_description='',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',... | try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from setuptools import setup
install_reqs = list(parse_requirements('requirements.txt', session='hack'))
try:
requirements = [str(ir.req) for ir in inst... | <commit_before>from pip.req import parse_requirements
from setuptools import setup
setup(name='psc_konvertor',
version='0.1.0',
description='PSČ Konvertor',
long_description='',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience ... | try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from setuptools import setup
install_reqs = list(parse_requirements('requirements.txt', session='hack'))
try:
requirements = [str(ir.req) for ir in inst... | from pip.req import parse_requirements
from setuptools import setup
setup(name='psc_konvertor',
version='0.1.0',
description='PSČ Konvertor',
long_description='',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',... | <commit_before>from pip.req import parse_requirements
from setuptools import setup
setup(name='psc_konvertor',
version='0.1.0',
description='PSČ Konvertor',
long_description='',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience ... |
7ca0d0d23587814f7bdc8e4d5de4c1182b516b3b | setup.py | setup.py | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | Revert back to version number | Revert back to version number
| Python | mit | davidbrough1/pymks,davidbrough1/pymks | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | <commit_before>#!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not No... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | <commit_before>#!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not No... |
ffe963385ed5f8f1011b40df4fdc0cfa0794abaf | setup.py | setup.py | from setuptools import setup
setup(
name='skyarea',
packages=['sky_area'],
scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],
version='0.1',
description='Compute credible regions on the sky from RA-DEC MCMC samples',
author='Will M. Farr',
author_email='will.farr@ligo... | from setuptools import setup
setup(
name='skyarea',
packages=['sky_area'],
scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],
version='0.1',
description='Compute credible regions on the sky from RA-DEC MCMC samples',
author='Will M. Farr',
author_email='will.farr@ligo... | Add Python version list trove classifiers | Add Python version list trove classifiers
| Python | mit | farr/skyarea,lpsinger/skyarea | from setuptools import setup
setup(
name='skyarea',
packages=['sky_area'],
scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],
version='0.1',
description='Compute credible regions on the sky from RA-DEC MCMC samples',
author='Will M. Farr',
author_email='will.farr@ligo... | from setuptools import setup
setup(
name='skyarea',
packages=['sky_area'],
scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],
version='0.1',
description='Compute credible regions on the sky from RA-DEC MCMC samples',
author='Will M. Farr',
author_email='will.farr@ligo... | <commit_before>from setuptools import setup
setup(
name='skyarea',
packages=['sky_area'],
scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],
version='0.1',
description='Compute credible regions on the sky from RA-DEC MCMC samples',
author='Will M. Farr',
author_email=... | from setuptools import setup
setup(
name='skyarea',
packages=['sky_area'],
scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],
version='0.1',
description='Compute credible regions on the sky from RA-DEC MCMC samples',
author='Will M. Farr',
author_email='will.farr@ligo... | from setuptools import setup
setup(
name='skyarea',
packages=['sky_area'],
scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],
version='0.1',
description='Compute credible regions on the sky from RA-DEC MCMC samples',
author='Will M. Farr',
author_email='will.farr@ligo... | <commit_before>from setuptools import setup
setup(
name='skyarea',
packages=['sky_area'],
scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],
version='0.1',
description='Compute credible regions on the sky from RA-DEC MCMC samples',
author='Will M. Farr',
author_email=... |
e8e65f082ba73277cd99a02ede4d3f019a585088 | setup.py | setup.py | #!/usr/bin/env python
requires = ['requests', 'requests-oauthlib']
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nopenphoto = openphoto.main:main\n""",
'zip_safe': False,
'install_requires': requires
}
except ImportError:
from distutil... | #!/usr/bin/env python
requires = ['requests', 'requests_oauthlib']
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nopenphoto = openphoto.main:main\n""",
'zip_safe': False,
'install_requires': requires
}
except ImportError:
from distutil... | Correct requests_oauth package name, to fix distutils installation | Correct requests_oauth package name, to fix distutils installation
| Python | apache-2.0 | photo/openphoto-python,photo/openphoto-python | #!/usr/bin/env python
requires = ['requests', 'requests-oauthlib']
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nopenphoto = openphoto.main:main\n""",
'zip_safe': False,
'install_requires': requires
}
except ImportError:
from distutil... | #!/usr/bin/env python
requires = ['requests', 'requests_oauthlib']
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nopenphoto = openphoto.main:main\n""",
'zip_safe': False,
'install_requires': requires
}
except ImportError:
from distutil... | <commit_before>#!/usr/bin/env python
requires = ['requests', 'requests-oauthlib']
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nopenphoto = openphoto.main:main\n""",
'zip_safe': False,
'install_requires': requires
}
except ImportError:
... | #!/usr/bin/env python
requires = ['requests', 'requests_oauthlib']
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nopenphoto = openphoto.main:main\n""",
'zip_safe': False,
'install_requires': requires
}
except ImportError:
from distutil... | #!/usr/bin/env python
requires = ['requests', 'requests-oauthlib']
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nopenphoto = openphoto.main:main\n""",
'zip_safe': False,
'install_requires': requires
}
except ImportError:
from distutil... | <commit_before>#!/usr/bin/env python
requires = ['requests', 'requests-oauthlib']
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nopenphoto = openphoto.main:main\n""",
'zip_safe': False,
'install_requires': requires
}
except ImportError:
... |
e7677e76e22e5cba305ba218676a5c870b940e7a | setup.py | setup.py | from setuptools import setup
from sys import version
if version < '2.6.0':
raise Exception("This module doesn't support any version less than 2.6")
import sys
sys.path.append("./test")
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = [
'Development Status :: 4 - Beta',
'I... | from setuptools import setup
from sys import version
if version < '2.6.0':
raise Exception("This module doesn't support any version less than 2.6")
import sys
sys.path.append("./test")
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = [
'Development Status :: 4 - Beta',
'I... | Change version 0.1.4 to 0.1.5 | Change version 0.1.4 to 0.1.5
| Python | bsd-3-clause | keitaoouchi/seleniumwrapper | from setuptools import setup
from sys import version
if version < '2.6.0':
raise Exception("This module doesn't support any version less than 2.6")
import sys
sys.path.append("./test")
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = [
'Development Status :: 4 - Beta',
'I... | from setuptools import setup
from sys import version
if version < '2.6.0':
raise Exception("This module doesn't support any version less than 2.6")
import sys
sys.path.append("./test")
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = [
'Development Status :: 4 - Beta',
'I... | <commit_before>from setuptools import setup
from sys import version
if version < '2.6.0':
raise Exception("This module doesn't support any version less than 2.6")
import sys
sys.path.append("./test")
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = [
'Development Status :: 4 ... | from setuptools import setup
from sys import version
if version < '2.6.0':
raise Exception("This module doesn't support any version less than 2.6")
import sys
sys.path.append("./test")
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = [
'Development Status :: 4 - Beta',
'I... | from setuptools import setup
from sys import version
if version < '2.6.0':
raise Exception("This module doesn't support any version less than 2.6")
import sys
sys.path.append("./test")
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = [
'Development Status :: 4 - Beta',
'I... | <commit_before>from setuptools import setup
from sys import version
if version < '2.6.0':
raise Exception("This module doesn't support any version less than 2.6")
import sys
sys.path.append("./test")
with open('README.rst', 'r') as f:
long_description = f.read()
classifiers = [
'Development Status :: 4 ... |
aabc64d9e7dc2a4f2189650dac643781cc0f3e14 | setup.py | setup.py | from setuptools import setup
setup(name='pil-compat',
version='1.0.0',
packages=['Image',
'ImageDraw'],
description='Compatibility modules, bridging PIL -> Pillow',
author='Alistair Lynn',
author_email='alistair@alynn.co.uk',
url='http://github.com/prophile/pil-compa... | from setuptools import setup
setup(name='pil-compat',
version='1.0.0',
packages=['Image',
'ImageChops',
'ImageColor',
'ImageDraw',
'ImageEnhance',
'ImageFile',
'ImageFilter',
'ImageFont',
... | Add the remaining PIL modules | Add the remaining PIL modules
| Python | mit | prophile/pil-compat,coxmediagroup/pil-compat | from setuptools import setup
setup(name='pil-compat',
version='1.0.0',
packages=['Image',
'ImageDraw'],
description='Compatibility modules, bridging PIL -> Pillow',
author='Alistair Lynn',
author_email='alistair@alynn.co.uk',
url='http://github.com/prophile/pil-compa... | from setuptools import setup
setup(name='pil-compat',
version='1.0.0',
packages=['Image',
'ImageChops',
'ImageColor',
'ImageDraw',
'ImageEnhance',
'ImageFile',
'ImageFilter',
'ImageFont',
... | <commit_before>from setuptools import setup
setup(name='pil-compat',
version='1.0.0',
packages=['Image',
'ImageDraw'],
description='Compatibility modules, bridging PIL -> Pillow',
author='Alistair Lynn',
author_email='alistair@alynn.co.uk',
url='http://github.com/pro... | from setuptools import setup
setup(name='pil-compat',
version='1.0.0',
packages=['Image',
'ImageChops',
'ImageColor',
'ImageDraw',
'ImageEnhance',
'ImageFile',
'ImageFilter',
'ImageFont',
... | from setuptools import setup
setup(name='pil-compat',
version='1.0.0',
packages=['Image',
'ImageDraw'],
description='Compatibility modules, bridging PIL -> Pillow',
author='Alistair Lynn',
author_email='alistair@alynn.co.uk',
url='http://github.com/prophile/pil-compa... | <commit_before>from setuptools import setup
setup(name='pil-compat',
version='1.0.0',
packages=['Image',
'ImageDraw'],
description='Compatibility modules, bridging PIL -> Pillow',
author='Alistair Lynn',
author_email='alistair@alynn.co.uk',
url='http://github.com/pro... |
4eb9d9ce241c32ee3fbef58be3ef4a52b7ab10e0 | setup.py | setup.py | #!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='artifactory',
version='0.1.9',
p... | #!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
# To upload to PyPi, you need to have 'pypandoc'.
# Otherwise the readme will be clumsy.
try:
from pypandoc import convert
read_md = lambd... | Convert README.md to RST when uploading to PyPi | Convert README.md to RST when uploading to PyPi
We want to keep the README in Markdown, to display on GitHub,
while still looking fine on PyPi.
| Python | mit | rabbitt/artifactory,Parallels/artifactory,rabbitt/artifactory | #!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='artifactory',
version='0.1.9',
p... | #!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
# To upload to PyPi, you need to have 'pypandoc'.
# Otherwise the readme will be clumsy.
try:
from pypandoc import convert
read_md = lambd... | <commit_before>#!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='artifactory',
version... | #!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
# To upload to PyPi, you need to have 'pypandoc'.
# Otherwise the readme will be clumsy.
try:
from pypandoc import convert
read_md = lambd... | #!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='artifactory',
version='0.1.9',
p... | <commit_before>#!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='artifactory',
version... |
b51e0ff9407f8a609be580d8fcb9cad6cfd267d8 | setup.py | setup.py | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django-render-as'
VERSION = '1.1'
package_data = {
'render_as': [
'templates/avoid_clash_with_real_app/*.html',
'templates/render_as/*.html',
],
}
setu... | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django-render-as'
VERSION = '1.2'
package_data = {
'render_as': [
'test_templates/avoid_clash_with_real_app/*.html',
'test_templates/render_as/*.html',
... | Include test templates in distributions. | Include test templates in distributions.
This probably wasn't working before, although apparently I didn't
notice. But then no one really runs tests for their 3PA, do they?
This is v1.2.
| Python | mit | jaylett/django-render-as,jaylett/django-render-as | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django-render-as'
VERSION = '1.1'
package_data = {
'render_as': [
'templates/avoid_clash_with_real_app/*.html',
'templates/render_as/*.html',
],
}
setu... | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django-render-as'
VERSION = '1.2'
package_data = {
'render_as': [
'test_templates/avoid_clash_with_real_app/*.html',
'test_templates/render_as/*.html',
... | <commit_before># Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django-render-as'
VERSION = '1.1'
package_data = {
'render_as': [
'templates/avoid_clash_with_real_app/*.html',
'templates/render_as/*.html',
... | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django-render-as'
VERSION = '1.2'
package_data = {
'render_as': [
'test_templates/avoid_clash_with_real_app/*.html',
'test_templates/render_as/*.html',
... | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django-render-as'
VERSION = '1.1'
package_data = {
'render_as': [
'templates/avoid_clash_with_real_app/*.html',
'templates/render_as/*.html',
],
}
setu... | <commit_before># Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'django-render-as'
VERSION = '1.1'
package_data = {
'render_as': [
'templates/avoid_clash_with_real_app/*.html',
'templates/render_as/*.html',
... |
60a7b2c7a438cd3fb08e418e9e7d1ffb62fe1c89 | setup.py | setup.py | import re
from setuptools import setup
from io import open
__version__, = re.findall('__version__ = "(.*)"',
open('mappyfile/__init__.py').read())
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(name='mappyfile',
version=__version_... | import re
from setuptools import setup
from io import open
__version__, = re.findall('__version__ = "(.*)"',
open('mappyfile/__init__.py').read())
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(name='mappyfile',
version=__version_... | Add json files to subfolder | Add json files to subfolder
| Python | mit | geographika/mappyfile,geographika/mappyfile | import re
from setuptools import setup
from io import open
__version__, = re.findall('__version__ = "(.*)"',
open('mappyfile/__init__.py').read())
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(name='mappyfile',
version=__version_... | import re
from setuptools import setup
from io import open
__version__, = re.findall('__version__ = "(.*)"',
open('mappyfile/__init__.py').read())
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(name='mappyfile',
version=__version_... | <commit_before>import re
from setuptools import setup
from io import open
__version__, = re.findall('__version__ = "(.*)"',
open('mappyfile/__init__.py').read())
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(name='mappyfile',
ver... | import re
from setuptools import setup
from io import open
__version__, = re.findall('__version__ = "(.*)"',
open('mappyfile/__init__.py').read())
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(name='mappyfile',
version=__version_... | import re
from setuptools import setup
from io import open
__version__, = re.findall('__version__ = "(.*)"',
open('mappyfile/__init__.py').read())
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(name='mappyfile',
version=__version_... | <commit_before>import re
from setuptools import setup
from io import open
__version__, = re.findall('__version__ = "(.*)"',
open('mappyfile/__init__.py').read())
def readme():
with open('README.rst', "r", encoding="utf-8") as f:
return f.read()
setup(name='mappyfile',
ver... |
fa773ead3f83e1674a428cb35c499a572ed50250 | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup
setup(name="catsnap",
version="6.0.0",
description="catalog and store images",
author="Erin Call",
author_email="hello@erincall.com",
url="https://github.com/ErinCall/",
packages=['catsnap',
'catsnap.document',
... | #!/usr/bin/python
from setuptools import setup
setup(name="catsnap",
version="6.0.0",
description="catalog and store images",
author="Erin Call",
author_email="hello@erincall.com",
url="https://github.com/ErinCall/",
packages=['catsnap',
'catsnap.document',
... | Upgrade to a way newer boto | Upgrade to a way newer boto
Fixes an issue where content-type got %-escaped.
| Python | mit | ErinCall/catsnap,ErinCall/catsnap,ErinCall/catsnap | #!/usr/bin/python
from setuptools import setup
setup(name="catsnap",
version="6.0.0",
description="catalog and store images",
author="Erin Call",
author_email="hello@erincall.com",
url="https://github.com/ErinCall/",
packages=['catsnap',
'catsnap.document',
... | #!/usr/bin/python
from setuptools import setup
setup(name="catsnap",
version="6.0.0",
description="catalog and store images",
author="Erin Call",
author_email="hello@erincall.com",
url="https://github.com/ErinCall/",
packages=['catsnap',
'catsnap.document',
... | <commit_before>#!/usr/bin/python
from setuptools import setup
setup(name="catsnap",
version="6.0.0",
description="catalog and store images",
author="Erin Call",
author_email="hello@erincall.com",
url="https://github.com/ErinCall/",
packages=['catsnap',
'catsnap.docu... | #!/usr/bin/python
from setuptools import setup
setup(name="catsnap",
version="6.0.0",
description="catalog and store images",
author="Erin Call",
author_email="hello@erincall.com",
url="https://github.com/ErinCall/",
packages=['catsnap',
'catsnap.document',
... | #!/usr/bin/python
from setuptools import setup
setup(name="catsnap",
version="6.0.0",
description="catalog and store images",
author="Erin Call",
author_email="hello@erincall.com",
url="https://github.com/ErinCall/",
packages=['catsnap',
'catsnap.document',
... | <commit_before>#!/usr/bin/python
from setuptools import setup
setup(name="catsnap",
version="6.0.0",
description="catalog and store images",
author="Erin Call",
author_email="hello@erincall.com",
url="https://github.com/ErinCall/",
packages=['catsnap',
'catsnap.docu... |
e0a468f8e7d56bd46a4e12af8959587dde8a7654 | setup.py | setup.py | # -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-revisionfield',
version='0.2.2',
description = 'An model field that auto increments every time the model is'
' saved',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
licen... | # -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-revisionfield',
version='0.2.3.dev',
description = 'An model field that auto increments every time the model is'
' saved',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
l... | Update test requirements to Attest >=0.5.3, pylint. | Update test requirements to Attest >=0.5.3, pylint.
| Python | bsd-2-clause | bradleyayers/django-revisionfield | # -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-revisionfield',
version='0.2.2',
description = 'An model field that auto increments every time the model is'
' saved',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
licen... | # -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-revisionfield',
version='0.2.3.dev',
description = 'An model field that auto increments every time the model is'
' saved',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
l... | <commit_before># -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-revisionfield',
version='0.2.2',
description = 'An model field that auto increments every time the model is'
' saved',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.... | # -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-revisionfield',
version='0.2.3.dev',
description = 'An model field that auto increments every time the model is'
' saved',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
l... | # -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-revisionfield',
version='0.2.2',
description = 'An model field that auto increments every time the model is'
' saved',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
licen... | <commit_before># -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-revisionfield',
version='0.2.2',
description = 'An model field that auto increments every time the model is'
' saved',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.... |
3feb567a74042e1174d8206b5f8cb945499b8ced | setup.py | setup.py | from setuptools import setup, find_packages
import os
import os.path as op
import uuid
import configparser
ver_file = os.path.join('popylar', 'version.py')
with open(ver_file) as f:
exec(f.read())
popylar_path = op.join(op.expanduser('~'), '.popylar')
# If UID file does not exist, then generate a UID and save t... | from setuptools import setup, find_packages
import os
import os.path as op
import uuid
import configparser
ver_file = os.path.join('popylar', 'version.py')
with open(ver_file) as f:
exec(f.read())
popylar_path = op.join(op.expanduser('~'), '.popylar')
# If UID file does not exist, then generate a UID and save t... | Make sure that requirements are installed by pip. | Make sure that requirements are installed by pip.
| Python | bsd-2-clause | popylar/popylar | from setuptools import setup, find_packages
import os
import os.path as op
import uuid
import configparser
ver_file = os.path.join('popylar', 'version.py')
with open(ver_file) as f:
exec(f.read())
popylar_path = op.join(op.expanduser('~'), '.popylar')
# If UID file does not exist, then generate a UID and save t... | from setuptools import setup, find_packages
import os
import os.path as op
import uuid
import configparser
ver_file = os.path.join('popylar', 'version.py')
with open(ver_file) as f:
exec(f.read())
popylar_path = op.join(op.expanduser('~'), '.popylar')
# If UID file does not exist, then generate a UID and save t... | <commit_before>from setuptools import setup, find_packages
import os
import os.path as op
import uuid
import configparser
ver_file = os.path.join('popylar', 'version.py')
with open(ver_file) as f:
exec(f.read())
popylar_path = op.join(op.expanduser('~'), '.popylar')
# If UID file does not exist, then generate a... | from setuptools import setup, find_packages
import os
import os.path as op
import uuid
import configparser
ver_file = os.path.join('popylar', 'version.py')
with open(ver_file) as f:
exec(f.read())
popylar_path = op.join(op.expanduser('~'), '.popylar')
# If UID file does not exist, then generate a UID and save t... | from setuptools import setup, find_packages
import os
import os.path as op
import uuid
import configparser
ver_file = os.path.join('popylar', 'version.py')
with open(ver_file) as f:
exec(f.read())
popylar_path = op.join(op.expanduser('~'), '.popylar')
# If UID file does not exist, then generate a UID and save t... | <commit_before>from setuptools import setup, find_packages
import os
import os.path as op
import uuid
import configparser
ver_file = os.path.join('popylar', 'version.py')
with open(ver_file) as f:
exec(f.read())
popylar_path = op.join(op.expanduser('~'), '.popylar')
# If UID file does not exist, then generate a... |
2ce76787e2a827525615508a087e5e17d22534a9 | setup.py | setup.py | #########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | #########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | Change cloudify-plugin-common version back to 3.2a6 | Change cloudify-plugin-common version back to 3.2a6
| Python | apache-2.0 | kemiz/tosca-vcloud-plugin,nmishkin/tosca-vcloud-plugin,denismakogon/tosca-vcloud-plugin,vmware/tosca-vcloud-plugin,cloudify-cosmo/tosca-vcloud-plugin | #########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | #########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | <commit_before>#########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | #########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | #########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | <commit_before>#########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... |
23b5b79fc0a107881d563221e7c7d284e6761868 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def get_description():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(name='ulp',
version='1.0.2',
author='Guilherme Victal',
author_email='guilherme a... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def get_description():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(name='ulp',
version='1.0.3',
author='Guilherme Victal',
author_email='guilherme a... | Fix install dependencies and bump to 1.0.3 | Fix install dependencies and bump to 1.0.3
| Python | mit | victal/ulp,victal/ulp | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def get_description():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(name='ulp',
version='1.0.2',
author='Guilherme Victal',
author_email='guilherme a... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def get_description():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(name='ulp',
version='1.0.3',
author='Guilherme Victal',
author_email='guilherme a... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def get_description():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(name='ulp',
version='1.0.2',
author='Guilherme Victal',
author_ema... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def get_description():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(name='ulp',
version='1.0.3',
author='Guilherme Victal',
author_email='guilherme a... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def get_description():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(name='ulp',
version='1.0.2',
author='Guilherme Victal',
author_email='guilherme a... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def get_description():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(name='ulp',
version='1.0.2',
author='Guilherme Victal',
author_ema... |
3e89599b12cb3a39528d1d3835241066412e3a29 | setup.py | setup.py | from setuptools import setup, find_packages
try:
import pypandoc
long_description=pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Whitespace interpreter written in Python 3"
setup(
name='whitepy',
version='0.0.1',
author='Yasser Nabi',
author_email='... | from setuptools import setup, find_packages
version = '0.2'
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Whitespace interpreter written in Python 3"
setup(
name='whitepy',
version=version,
author='Yasser Nabi',... | Prepare for adding to pypi | Prepare for adding to pypi
| Python | apache-2.0 | yasn77/whitepy | from setuptools import setup, find_packages
try:
import pypandoc
long_description=pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Whitespace interpreter written in Python 3"
setup(
name='whitepy',
version='0.0.1',
author='Yasser Nabi',
author_email='... | from setuptools import setup, find_packages
version = '0.2'
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Whitespace interpreter written in Python 3"
setup(
name='whitepy',
version=version,
author='Yasser Nabi',... | <commit_before>from setuptools import setup, find_packages
try:
import pypandoc
long_description=pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Whitespace interpreter written in Python 3"
setup(
name='whitepy',
version='0.0.1',
author='Yasser Nabi',
... | from setuptools import setup, find_packages
version = '0.2'
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Whitespace interpreter written in Python 3"
setup(
name='whitepy',
version=version,
author='Yasser Nabi',... | from setuptools import setup, find_packages
try:
import pypandoc
long_description=pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Whitespace interpreter written in Python 3"
setup(
name='whitepy',
version='0.0.1',
author='Yasser Nabi',
author_email='... | <commit_before>from setuptools import setup, find_packages
try:
import pypandoc
long_description=pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = "Whitespace interpreter written in Python 3"
setup(
name='whitepy',
version='0.0.1',
author='Yasser Nabi',
... |
dde846475bc3584e4269300b754573a0c4a34170 | setup.py | setup.py | #!/usr/bin/env python
# coding: utf8
# Copyright 2013-2015 Vincent Jacques <vincent@vincent-jacques.net>
import setuptools
version = "0.5.0"
setuptools.setup(
name="MockMockMock",
version=version,
description="Mocking library focusing on very explicit definition of the mocks' behaviour",
author="Vi... | #!/usr/bin/env python
# coding: utf8
# Copyright 2013-2015 Vincent Jacques <vincent@vincent-jacques.net>
import setuptools
version = "0.5.1"
setuptools.setup(
name="MockMockMock",
version=version,
description="Mocking library focusing on very explicit definition of the mocks' behaviour",
author="Vi... | Test deployment to PyPI from Travis | Test deployment to PyPI from Travis
| Python | mit | jacquev6/MockMockMock | #!/usr/bin/env python
# coding: utf8
# Copyright 2013-2015 Vincent Jacques <vincent@vincent-jacques.net>
import setuptools
version = "0.5.0"
setuptools.setup(
name="MockMockMock",
version=version,
description="Mocking library focusing on very explicit definition of the mocks' behaviour",
author="Vi... | #!/usr/bin/env python
# coding: utf8
# Copyright 2013-2015 Vincent Jacques <vincent@vincent-jacques.net>
import setuptools
version = "0.5.1"
setuptools.setup(
name="MockMockMock",
version=version,
description="Mocking library focusing on very explicit definition of the mocks' behaviour",
author="Vi... | <commit_before>#!/usr/bin/env python
# coding: utf8
# Copyright 2013-2015 Vincent Jacques <vincent@vincent-jacques.net>
import setuptools
version = "0.5.0"
setuptools.setup(
name="MockMockMock",
version=version,
description="Mocking library focusing on very explicit definition of the mocks' behaviour",... | #!/usr/bin/env python
# coding: utf8
# Copyright 2013-2015 Vincent Jacques <vincent@vincent-jacques.net>
import setuptools
version = "0.5.1"
setuptools.setup(
name="MockMockMock",
version=version,
description="Mocking library focusing on very explicit definition of the mocks' behaviour",
author="Vi... | #!/usr/bin/env python
# coding: utf8
# Copyright 2013-2015 Vincent Jacques <vincent@vincent-jacques.net>
import setuptools
version = "0.5.0"
setuptools.setup(
name="MockMockMock",
version=version,
description="Mocking library focusing on very explicit definition of the mocks' behaviour",
author="Vi... | <commit_before>#!/usr/bin/env python
# coding: utf8
# Copyright 2013-2015 Vincent Jacques <vincent@vincent-jacques.net>
import setuptools
version = "0.5.0"
setuptools.setup(
name="MockMockMock",
version=version,
description="Mocking library focusing on very explicit definition of the mocks' behaviour",... |
336bfa47f24c01c8033c88d4dc60cfb3f117b7dd | setup.py | setup.py | import setuptools
from savanna.openstack.common import setup as common_setup
requires = common_setup.parse_requirements()
depend_links = common_setup.parse_dependency_links()
project = 'savanna'
setuptools.setup(
name=project,
version=common_setup.get_version(project, '0.1'),
description='Savanna project... | import setuptools
from savanna.openstack.common import setup as common_setup
requires = common_setup.parse_requirements()
depend_links = common_setup.parse_dependency_links()
project = 'savanna'
setuptools.setup(
name=project,
version=common_setup.get_version(project, '0.1'),
description='Savanna project... | Remove an invalid trove classifier. | Remove an invalid trove classifier.
* setup.py(setuptools.setup): Remove "Intended Audience :: BigDate"
since it's not in pypi's list of valid trove classifiers and
prevents successful upload of the package when present.
Change-Id: Iee487d1737a12158bb181d21ae841d07e0820e10
| Python | apache-2.0 | zhujzhuo/Sahara,matips/iosr-2015,bigfootproject/sahara,bigfootproject/sahara,zhangjunli177/sahara,keedio/sahara,esikachev/scenario,henaras/sahara,xme1226/sahara,egafford/sahara,esikachev/sahara-backup,bigfootproject/sahara,tellesnobrega/storm_plugin,xme1226/sahara,esikachev/sahara-backup,mapr/sahara,tellesnobrega/sahar... | import setuptools
from savanna.openstack.common import setup as common_setup
requires = common_setup.parse_requirements()
depend_links = common_setup.parse_dependency_links()
project = 'savanna'
setuptools.setup(
name=project,
version=common_setup.get_version(project, '0.1'),
description='Savanna project... | import setuptools
from savanna.openstack.common import setup as common_setup
requires = common_setup.parse_requirements()
depend_links = common_setup.parse_dependency_links()
project = 'savanna'
setuptools.setup(
name=project,
version=common_setup.get_version(project, '0.1'),
description='Savanna project... | <commit_before>import setuptools
from savanna.openstack.common import setup as common_setup
requires = common_setup.parse_requirements()
depend_links = common_setup.parse_dependency_links()
project = 'savanna'
setuptools.setup(
name=project,
version=common_setup.get_version(project, '0.1'),
description='... | import setuptools
from savanna.openstack.common import setup as common_setup
requires = common_setup.parse_requirements()
depend_links = common_setup.parse_dependency_links()
project = 'savanna'
setuptools.setup(
name=project,
version=common_setup.get_version(project, '0.1'),
description='Savanna project... | import setuptools
from savanna.openstack.common import setup as common_setup
requires = common_setup.parse_requirements()
depend_links = common_setup.parse_dependency_links()
project = 'savanna'
setuptools.setup(
name=project,
version=common_setup.get_version(project, '0.1'),
description='Savanna project... | <commit_before>import setuptools
from savanna.openstack.common import setup as common_setup
requires = common_setup.parse_requirements()
depend_links = common_setup.parse_dependency_links()
project = 'savanna'
setuptools.setup(
name=project,
version=common_setup.get_version(project, '0.1'),
description='... |
d1125a4b1a73277f783225bdf2c04a722332bc91 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "images_of",
version = "0.1.0",
author = "acimi-ursi",
description = "Tools for managing the ImagesOfNetwork on reddit",
url = "https://github.com/amici-ursi/ImagesOfNetwork",
packages = find_packages(),
inst... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "images_of",
version = "0.1.0",
author = "acimi-ursi",
description = "Tools for managing the ImagesOfNetwork on reddit",
url = "https://github.com/amici-ursi/ImagesOfNetwork",
packages = find_packages(),
inst... | Fix entry point for blacklist_requests | Fix entry point for blacklist_requests | Python | mit | scowcron/ImagesOfNetwork,amici-ursi/ImagesOfNetwork | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "images_of",
version = "0.1.0",
author = "acimi-ursi",
description = "Tools for managing the ImagesOfNetwork on reddit",
url = "https://github.com/amici-ursi/ImagesOfNetwork",
packages = find_packages(),
inst... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "images_of",
version = "0.1.0",
author = "acimi-ursi",
description = "Tools for managing the ImagesOfNetwork on reddit",
url = "https://github.com/amici-ursi/ImagesOfNetwork",
packages = find_packages(),
inst... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "images_of",
version = "0.1.0",
author = "acimi-ursi",
description = "Tools for managing the ImagesOfNetwork on reddit",
url = "https://github.com/amici-ursi/ImagesOfNetwork",
packages = find_packag... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "images_of",
version = "0.1.0",
author = "acimi-ursi",
description = "Tools for managing the ImagesOfNetwork on reddit",
url = "https://github.com/amici-ursi/ImagesOfNetwork",
packages = find_packages(),
inst... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "images_of",
version = "0.1.0",
author = "acimi-ursi",
description = "Tools for managing the ImagesOfNetwork on reddit",
url = "https://github.com/amici-ursi/ImagesOfNetwork",
packages = find_packages(),
inst... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "images_of",
version = "0.1.0",
author = "acimi-ursi",
description = "Tools for managing the ImagesOfNetwork on reddit",
url = "https://github.com/amici-ursi/ImagesOfNetwork",
packages = find_packag... |
1f3c60342d1599faf245377d753aa53f15f6805c | setup.py | setup.py | from setuptools import setup
setup(
name='django-waffle',
version='0.1.1',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='james.socol@gmail.com',
url='http://github.com/jsocol/bleach',
license='BSD',
packa... | from setuptools import setup
setup(
name='django-waffle',
version='0.1.1',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='james.socol@gmail.com',
url='http://github.com/jsocol/django-waffle',
license='BSD',
... | Update the PyPI home page URL. | Update the PyPI home page URL.
| Python | bsd-3-clause | VladimirFilonov/django-waffle,isotoma/django-waffle,willkg/django-waffle,hwkns/django-waffle,VladimirFilonov/django-waffle,engagespark/django-waffle,ekohl/django-waffle,webus/django-waffle,rlr/django-waffle,engagespark/django-waffle,styleseat/django-waffle,ilanbm/django-waffle,safarijv/django-waffle,isotoma/django-waff... | from setuptools import setup
setup(
name='django-waffle',
version='0.1.1',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='james.socol@gmail.com',
url='http://github.com/jsocol/bleach',
license='BSD',
packa... | from setuptools import setup
setup(
name='django-waffle',
version='0.1.1',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='james.socol@gmail.com',
url='http://github.com/jsocol/django-waffle',
license='BSD',
... | <commit_before>from setuptools import setup
setup(
name='django-waffle',
version='0.1.1',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='james.socol@gmail.com',
url='http://github.com/jsocol/bleach',
license='... | from setuptools import setup
setup(
name='django-waffle',
version='0.1.1',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='james.socol@gmail.com',
url='http://github.com/jsocol/django-waffle',
license='BSD',
... | from setuptools import setup
setup(
name='django-waffle',
version='0.1.1',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='james.socol@gmail.com',
url='http://github.com/jsocol/bleach',
license='BSD',
packa... | <commit_before>from setuptools import setup
setup(
name='django-waffle',
version='0.1.1',
description='A feature flipper for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='james.socol@gmail.com',
url='http://github.com/jsocol/bleach',
license='... |
003034caa0072d3e13b997df219b6612ae4b128e | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
version = "0.1.1"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.com",
url=... | #!/usr/bin/env python
from distutils.core import setup
version = "0.2.0"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.com",
url=... | Update Riemann-sumd version, add install_requires | Update Riemann-sumd version, add install_requires
| Python | mit | crashlytics/riemann-sumd | #!/usr/bin/env python
from distutils.core import setup
version = "0.1.1"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.com",
url=... | #!/usr/bin/env python
from distutils.core import setup
version = "0.2.0"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.com",
url=... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
version = "0.1.1"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.c... | #!/usr/bin/env python
from distutils.core import setup
version = "0.2.0"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.com",
url=... | #!/usr/bin/env python
from distutils.core import setup
version = "0.1.1"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.com",
url=... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
version = "0.1.1"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.c... |
14a4bb5db566c5027d1b6fa9f715e1c984442137 | setup.py | setup.py | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | Bump up the version after fix | Bump up the version after fix
| Python | mit | trimailov/timeflow | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | <commit_before>import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | <commit_before>import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path... |
e16a6c3012dfc8138b889e539c62eb391ce847e2 | setup.py | setup.py | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | Upgrade dependency python-slugify to ==1.2.3 | Upgrade dependency python-slugify to ==1.2.3
| Python | mit | renanivo/with | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | <commit_before>import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context ma... | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | <commit_before>import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context ma... |
412e195da29b4f4fc7b72967c192714a6f5eaeb5 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary fo... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary fo... | Clean up dependencies (no importlib) | Clean up dependencies (no importlib)
| Python | mit | diffeo/yakonfig | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary fo... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary fo... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuratio... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary fo... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuration dictionary fo... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'yakonfig'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
URL = 'http://github.com/diffeo/yakonfig'
DESC = 'load a configuratio... |
9ae2abd28cfc1d913791b1548677d98081777489 | setup.py | setup.py | # Copyright 2015 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | # Copyright 2015 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | Add pandas to the dependencies | Add pandas to the dependencies
| Python | apache-2.0 | SylvainCorlay/bqplot,SylvainCorlay/bqplot,ChakriCherukuri/bqplot,rmenegaux/bqplot,rmenegaux/bqplot,bloomberg/bqplot,dmadeka/bqplot,ChakriCherukuri/bqplot,SylvainCorlay/bqplot,ChakriCherukuri/bqplot,ssunkara1/bqplot,ssunkara1/bqplot,bloomberg/bqplot,bloomberg/bqplot,dmadeka/bqplot | # Copyright 2015 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | # Copyright 2015 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | <commit_before># Copyright 2015 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | # Copyright 2015 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | # Copyright 2015 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | <commit_before># Copyright 2015 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... |
5d7057bc34e10070a5b3f825618e87ad91fcbfea | stack.py | stack.py | #!/usr/bin/env python
'''Implementation of a simple stack data structure.
The stack has push, pop, and peek methods.
'''
class Item(object):
def __init__(self):
pass
class Stack(object):
def __init__(self):
pass
| #!/usr/bin/env python
'''Implementation of a simple stack data structure.
The stack has push, pop, and peek methods. Items in the stack have a value,
and next_item attribute. The stack has a top attribute.
'''
class Item(object):
def __init__(self, value, next_item=None):
self.value = value
self.... | Add attributes to Stack and Item classes | Add attributes to Stack and Item classes
| Python | mit | jwarren116/data-structures-deux | #!/usr/bin/env python
'''Implementation of a simple stack data structure.
The stack has push, pop, and peek methods.
'''
class Item(object):
def __init__(self):
pass
class Stack(object):
def __init__(self):
pass
Add attributes to Stack and Item classes | #!/usr/bin/env python
'''Implementation of a simple stack data structure.
The stack has push, pop, and peek methods. Items in the stack have a value,
and next_item attribute. The stack has a top attribute.
'''
class Item(object):
def __init__(self, value, next_item=None):
self.value = value
self.... | <commit_before>#!/usr/bin/env python
'''Implementation of a simple stack data structure.
The stack has push, pop, and peek methods.
'''
class Item(object):
def __init__(self):
pass
class Stack(object):
def __init__(self):
pass
<commit_msg>Add attributes to Stack and Item classes<commit_afte... | #!/usr/bin/env python
'''Implementation of a simple stack data structure.
The stack has push, pop, and peek methods. Items in the stack have a value,
and next_item attribute. The stack has a top attribute.
'''
class Item(object):
def __init__(self, value, next_item=None):
self.value = value
self.... | #!/usr/bin/env python
'''Implementation of a simple stack data structure.
The stack has push, pop, and peek methods.
'''
class Item(object):
def __init__(self):
pass
class Stack(object):
def __init__(self):
pass
Add attributes to Stack and Item classes#!/usr/bin/env python
'''Implementatio... | <commit_before>#!/usr/bin/env python
'''Implementation of a simple stack data structure.
The stack has push, pop, and peek methods.
'''
class Item(object):
def __init__(self):
pass
class Stack(object):
def __init__(self):
pass
<commit_msg>Add attributes to Stack and Item classes<commit_afte... |
c6fc60ec33c98b0a4b6272f5304b76477f5955f8 | src/dynmen/dmenu.py | src/dynmen/dmenu.py | # -*- coding: utf-8 -*-
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
load_options as _load_options,)
_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.... | # -*- coding: utf-8 -*-
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
load_options as _load_options,)
_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.... | Add a few aliases to DMenu | Add a few aliases to DMenu
| Python | mit | frostidaho/dynmen | # -*- coding: utf-8 -*-
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
load_options as _load_options,)
_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.... | # -*- coding: utf-8 -*-
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
load_options as _load_options,)
_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.... | <commit_before># -*- coding: utf-8 -*-
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
load_options as _load_options,)
_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'd... | # -*- coding: utf-8 -*-
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
load_options as _load_options,)
_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.... | # -*- coding: utf-8 -*-
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
load_options as _load_options,)
_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'data/dmenu_opts.... | <commit_before># -*- coding: utf-8 -*-
from os import path as _path
from dynmen.common import TraitMenu as _TraitMenu
from dynmen.generator import (AddOptions as _AddOptions,
load_options as _load_options,)
_dirname = _path.dirname(_path.abspath(__file__))
_path = _path.join(_dirname, 'd... |
55b4e25bcb61e4d6e26ce9ea148dc3577e065873 | setup.py | setup.py | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = (
'cnx-archive',
'cnx-epub',
'jinja2',
'openstax-accounts>=0.8',
'psycopg2',
'pyramid>=1.5',
'pyramid_multiauth',
)
tests_require = [
'webtest',
]... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = (
'cnx-archive',
'cnx-epub',
'jinja2',
'openstax-accounts>=0.10.0',
'psycopg2',
'pyramid>=1.5',
'pyramid_multiauth',
)
tests_require = [
'webtest',
... | Use the latest openstax-accounts (0.10.0) | Use the latest openstax-accounts (0.10.0)
| Python | agpl-3.0 | Connexions/cnx-publishing,Connexions/cnx-publishing,Connexions/cnx-publishing | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = (
'cnx-archive',
'cnx-epub',
'jinja2',
'openstax-accounts>=0.8',
'psycopg2',
'pyramid>=1.5',
'pyramid_multiauth',
)
tests_require = [
'webtest',
]... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = (
'cnx-archive',
'cnx-epub',
'jinja2',
'openstax-accounts>=0.10.0',
'psycopg2',
'pyramid>=1.5',
'pyramid_multiauth',
)
tests_require = [
'webtest',
... | <commit_before># -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = (
'cnx-archive',
'cnx-epub',
'jinja2',
'openstax-accounts>=0.8',
'psycopg2',
'pyramid>=1.5',
'pyramid_multiauth',
)
tests_require = [
'... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = (
'cnx-archive',
'cnx-epub',
'jinja2',
'openstax-accounts>=0.10.0',
'psycopg2',
'pyramid>=1.5',
'pyramid_multiauth',
)
tests_require = [
'webtest',
... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = (
'cnx-archive',
'cnx-epub',
'jinja2',
'openstax-accounts>=0.8',
'psycopg2',
'pyramid>=1.5',
'pyramid_multiauth',
)
tests_require = [
'webtest',
]... | <commit_before># -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = (
'cnx-archive',
'cnx-epub',
'jinja2',
'openstax-accounts>=0.8',
'psycopg2',
'pyramid>=1.5',
'pyramid_multiauth',
)
tests_require = [
'... |
81d526bb3da4f103462f17d66af25cac83de4d63 | setup.py | setup.py | """ Setup script for PyPI """
import os
from setuptools import setup
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
settings = SafeConfigParser()
settings.read(os.path.realpath('aws_ec2_assign_elastic_ip/settings.conf'))
setup(
name='aws-ec2-a... | """ Setup script for PyPI """
import os
from setuptools import setup
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
settings = SafeConfigParser()
settings.read(os.path.realpath('aws_ec2_assign_elastic_ip/settings.conf'))
with open('README.md', 'r')... | Add PyPI long project description | Add PyPI long project description
| Python | apache-2.0 | skymill/aws-ec2-assign-elastic-ip | """ Setup script for PyPI """
import os
from setuptools import setup
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
settings = SafeConfigParser()
settings.read(os.path.realpath('aws_ec2_assign_elastic_ip/settings.conf'))
setup(
name='aws-ec2-a... | """ Setup script for PyPI """
import os
from setuptools import setup
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
settings = SafeConfigParser()
settings.read(os.path.realpath('aws_ec2_assign_elastic_ip/settings.conf'))
with open('README.md', 'r')... | <commit_before>""" Setup script for PyPI """
import os
from setuptools import setup
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
settings = SafeConfigParser()
settings.read(os.path.realpath('aws_ec2_assign_elastic_ip/settings.conf'))
setup(
... | """ Setup script for PyPI """
import os
from setuptools import setup
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
settings = SafeConfigParser()
settings.read(os.path.realpath('aws_ec2_assign_elastic_ip/settings.conf'))
with open('README.md', 'r')... | """ Setup script for PyPI """
import os
from setuptools import setup
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
settings = SafeConfigParser()
settings.read(os.path.realpath('aws_ec2_assign_elastic_ip/settings.conf'))
setup(
name='aws-ec2-a... | <commit_before>""" Setup script for PyPI """
import os
from setuptools import setup
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
settings = SafeConfigParser()
settings.read(os.path.realpath('aws_ec2_assign_elastic_ip/settings.conf'))
setup(
... |
de276ee4b006b1f207a0692c1cfda3ecbd9b38fd | setup.py | setup.py | from setuptools import setup, find_packages
__version__ = "unknown"
# "import" __version__
for line in open("sfs/__init__.py"):
if line.startswith("__version__"):
exec(line)
break
setup(
name="sfs",
version=__version__,
packages=find_packages(),
install_requires=[
'numpy!=... | from setuptools import setup, find_packages
__version__ = "unknown"
# "import" __version__
for line in open("sfs/__init__.py"):
if line.startswith("__version__"):
exec(line)
break
setup(
name="sfs",
version=__version__,
packages=find_packages(),
install_requires=[
'numpy!=... | Add python_requires to help pip | Add python_requires to help pip
| Python | mit | sfstoolbox/sfs-python,sfstoolbox/sfs-python | from setuptools import setup, find_packages
__version__ = "unknown"
# "import" __version__
for line in open("sfs/__init__.py"):
if line.startswith("__version__"):
exec(line)
break
setup(
name="sfs",
version=__version__,
packages=find_packages(),
install_requires=[
'numpy!=... | from setuptools import setup, find_packages
__version__ = "unknown"
# "import" __version__
for line in open("sfs/__init__.py"):
if line.startswith("__version__"):
exec(line)
break
setup(
name="sfs",
version=__version__,
packages=find_packages(),
install_requires=[
'numpy!=... | <commit_before>from setuptools import setup, find_packages
__version__ = "unknown"
# "import" __version__
for line in open("sfs/__init__.py"):
if line.startswith("__version__"):
exec(line)
break
setup(
name="sfs",
version=__version__,
packages=find_packages(),
install_requires=[
... | from setuptools import setup, find_packages
__version__ = "unknown"
# "import" __version__
for line in open("sfs/__init__.py"):
if line.startswith("__version__"):
exec(line)
break
setup(
name="sfs",
version=__version__,
packages=find_packages(),
install_requires=[
'numpy!=... | from setuptools import setup, find_packages
__version__ = "unknown"
# "import" __version__
for line in open("sfs/__init__.py"):
if line.startswith("__version__"):
exec(line)
break
setup(
name="sfs",
version=__version__,
packages=find_packages(),
install_requires=[
'numpy!=... | <commit_before>from setuptools import setup, find_packages
__version__ = "unknown"
# "import" __version__
for line in open("sfs/__init__.py"):
if line.startswith("__version__"):
exec(line)
break
setup(
name="sfs",
version=__version__,
packages=find_packages(),
install_requires=[
... |
250d04c162c018227e13aa6cf6285c3121f0a687 | setup.py | setup.py | from setuptools import setup, find_packages
CONSOLE_SCRIPTS = ['pordego = pordego.cli:main']
setup(name="pordego",
version="1.0.0",
description="Command line tool for running configurable static analysis plugins on Python code",
packages=find_packages(),
entry_points={'console_script... | from setuptools import setup, find_packages
CONSOLE_SCRIPTS = ['pordego = pordego.cli:main']
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License"
"Operating System :: OS Independent",
"Programming Langua... | Add fields for pypi submission | Add fields for pypi submission
| Python | mit | ttreptow/pordego | from setuptools import setup, find_packages
CONSOLE_SCRIPTS = ['pordego = pordego.cli:main']
setup(name="pordego",
version="1.0.0",
description="Command line tool for running configurable static analysis plugins on Python code",
packages=find_packages(),
entry_points={'console_script... | from setuptools import setup, find_packages
CONSOLE_SCRIPTS = ['pordego = pordego.cli:main']
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License"
"Operating System :: OS Independent",
"Programming Langua... | <commit_before>from setuptools import setup, find_packages
CONSOLE_SCRIPTS = ['pordego = pordego.cli:main']
setup(name="pordego",
version="1.0.0",
description="Command line tool for running configurable static analysis plugins on Python code",
packages=find_packages(),
entry_points={... | from setuptools import setup, find_packages
CONSOLE_SCRIPTS = ['pordego = pordego.cli:main']
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License"
"Operating System :: OS Independent",
"Programming Langua... | from setuptools import setup, find_packages
CONSOLE_SCRIPTS = ['pordego = pordego.cli:main']
setup(name="pordego",
version="1.0.0",
description="Command line tool for running configurable static analysis plugins on Python code",
packages=find_packages(),
entry_points={'console_script... | <commit_before>from setuptools import setup, find_packages
CONSOLE_SCRIPTS = ['pordego = pordego.cli:main']
setup(name="pordego",
version="1.0.0",
description="Command line tool for running configurable static analysis plugins on Python code",
packages=find_packages(),
entry_points={... |
6c6a774ef2614ca82fbe61ec04e9b6a75415b015 | setup.py | setup.py | from distutils.core import setup
setup(
name = 'openhomedevice',
packages = ['openhomedevice'],
version = '0.2.1',
description = 'Provides an API for requesting information from an Openhome device',
author = 'Barry John Williams',
author_email = 'barry@bjw.me.uk',
url = 'https://github.com/bazwilliams/ope... | from distutils.core import setup
setup(
name = 'openhomedevice',
packages = ['openhomedevice'],
version = '0.2.2',
description = 'Provides an API for requesting information from an Openhome device',
author = 'Barry John Williams',
author_email = 'barry@bjw.me.uk',
url = 'https://github.com/cak85/openhomed... | Change url to this fork | Change url to this fork
| Python | mit | bazwilliams/openhomedevice | from distutils.core import setup
setup(
name = 'openhomedevice',
packages = ['openhomedevice'],
version = '0.2.1',
description = 'Provides an API for requesting information from an Openhome device',
author = 'Barry John Williams',
author_email = 'barry@bjw.me.uk',
url = 'https://github.com/bazwilliams/ope... | from distutils.core import setup
setup(
name = 'openhomedevice',
packages = ['openhomedevice'],
version = '0.2.2',
description = 'Provides an API for requesting information from an Openhome device',
author = 'Barry John Williams',
author_email = 'barry@bjw.me.uk',
url = 'https://github.com/cak85/openhomed... | <commit_before>from distutils.core import setup
setup(
name = 'openhomedevice',
packages = ['openhomedevice'],
version = '0.2.1',
description = 'Provides an API for requesting information from an Openhome device',
author = 'Barry John Williams',
author_email = 'barry@bjw.me.uk',
url = 'https://github.com/... | from distutils.core import setup
setup(
name = 'openhomedevice',
packages = ['openhomedevice'],
version = '0.2.2',
description = 'Provides an API for requesting information from an Openhome device',
author = 'Barry John Williams',
author_email = 'barry@bjw.me.uk',
url = 'https://github.com/cak85/openhomed... | from distutils.core import setup
setup(
name = 'openhomedevice',
packages = ['openhomedevice'],
version = '0.2.1',
description = 'Provides an API for requesting information from an Openhome device',
author = 'Barry John Williams',
author_email = 'barry@bjw.me.uk',
url = 'https://github.com/bazwilliams/ope... | <commit_before>from distutils.core import setup
setup(
name = 'openhomedevice',
packages = ['openhomedevice'],
version = '0.2.1',
description = 'Provides an API for requesting information from an Openhome device',
author = 'Barry John Williams',
author_email = 'barry@bjw.me.uk',
url = 'https://github.com/... |
f293f162e0dcec88cbfbb9ae691bc2deb4c3ba26 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'MySQL-python>=1.0.0',
'SQLAlchemy>=1.1.0',
]
f = open('README.rst')
readme = f.read()
f.close()
setup(
name='sqldd',
version='0.9.1',
author='Rick Keilty',
author_email='rkeilty@gmail.com',
url='http:/... | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'MySQL-python>=1.0.0',
'SQLAlchemy>=1.0.0',
]
f = open('README.rst')
readme = f.read()
f.close()
setup(
name='sqldd',
version='0.9.2',
author='Rick Keilty',
author_email='rkeilty@gmail.com',
url='http:/... | Allow SQLAlchemy as old as 1.0 | Allow SQLAlchemy as old as 1.0
| Python | bsd-3-clause | rkeilty/sql-data-dependency,rkeilty/sql-data-dependency | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'MySQL-python>=1.0.0',
'SQLAlchemy>=1.1.0',
]
f = open('README.rst')
readme = f.read()
f.close()
setup(
name='sqldd',
version='0.9.1',
author='Rick Keilty',
author_email='rkeilty@gmail.com',
url='http:/... | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'MySQL-python>=1.0.0',
'SQLAlchemy>=1.0.0',
]
f = open('README.rst')
readme = f.read()
f.close()
setup(
name='sqldd',
version='0.9.2',
author='Rick Keilty',
author_email='rkeilty@gmail.com',
url='http:/... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'MySQL-python>=1.0.0',
'SQLAlchemy>=1.1.0',
]
f = open('README.rst')
readme = f.read()
f.close()
setup(
name='sqldd',
version='0.9.1',
author='Rick Keilty',
author_email='rkeilty@gmail.com',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'MySQL-python>=1.0.0',
'SQLAlchemy>=1.0.0',
]
f = open('README.rst')
readme = f.read()
f.close()
setup(
name='sqldd',
version='0.9.2',
author='Rick Keilty',
author_email='rkeilty@gmail.com',
url='http:/... | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'MySQL-python>=1.0.0',
'SQLAlchemy>=1.1.0',
]
f = open('README.rst')
readme = f.read()
f.close()
setup(
name='sqldd',
version='0.9.1',
author='Rick Keilty',
author_email='rkeilty@gmail.com',
url='http:/... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'MySQL-python>=1.0.0',
'SQLAlchemy>=1.1.0',
]
f = open('README.rst')
readme = f.read()
f.close()
setup(
name='sqldd',
version='0.9.1',
author='Rick Keilty',
author_email='rkeilty@gmail.com',
... |
fdc40813faee6a5867530ad8b8ad6daff48f2f42 | setup.py | setup.py | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
url='https://github.c... | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
url='https://github.c... | Add python_requires to help pip | Add python_requires to help pip
| Python | mit | fschulze/pytest-flakes | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
url='https://github.c... | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
url='https://github.c... | <commit_before>from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
url='h... | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
url='https://github.c... | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
url='https://github.c... | <commit_before>from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='4.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
url='h... |
97e244878215a802a4f70967cc984f3763be5a30 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from pupa import __version__
long_description = ''
setup(name='pupa',
version=__version__,
packages=find_packages(),
author='James Turk',
author_email='jturk@sunlightfoundation.com',
license='BSD',
url='http://github... | #!/usr/bin/env python
from setuptools import setup, find_packages
from pupa import __version__
long_description = ''
setup(name='pupa',
version=__version__,
packages=find_packages(),
author='James Turk',
author_email='jturk@sunlightfoundation.com',
license='BSD',
url='http://github... | Revert "Revert "drop old requirements"" | Revert "Revert "drop old requirements""
This reverts commit f444e853936eb95bbe61c2bbf26098e417cc5fef.
| Python | bsd-3-clause | mileswwatkins/pupa,datamade/pupa,datamade/pupa,opencivicdata/pupa,opencivicdata/pupa,mileswwatkins/pupa | #!/usr/bin/env python
from setuptools import setup, find_packages
from pupa import __version__
long_description = ''
setup(name='pupa',
version=__version__,
packages=find_packages(),
author='James Turk',
author_email='jturk@sunlightfoundation.com',
license='BSD',
url='http://github... | #!/usr/bin/env python
from setuptools import setup, find_packages
from pupa import __version__
long_description = ''
setup(name='pupa',
version=__version__,
packages=find_packages(),
author='James Turk',
author_email='jturk@sunlightfoundation.com',
license='BSD',
url='http://github... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
from pupa import __version__
long_description = ''
setup(name='pupa',
version=__version__,
packages=find_packages(),
author='James Turk',
author_email='jturk@sunlightfoundation.com',
license='BSD',
url... | #!/usr/bin/env python
from setuptools import setup, find_packages
from pupa import __version__
long_description = ''
setup(name='pupa',
version=__version__,
packages=find_packages(),
author='James Turk',
author_email='jturk@sunlightfoundation.com',
license='BSD',
url='http://github... | #!/usr/bin/env python
from setuptools import setup, find_packages
from pupa import __version__
long_description = ''
setup(name='pupa',
version=__version__,
packages=find_packages(),
author='James Turk',
author_email='jturk@sunlightfoundation.com',
license='BSD',
url='http://github... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
from pupa import __version__
long_description = ''
setup(name='pupa',
version=__version__,
packages=find_packages(),
author='James Turk',
author_email='jturk@sunlightfoundation.com',
license='BSD',
url... |
eefe1ac289db85464d3d7f2f8ce3dbf8ab94487f | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.1",
d... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.1",
d... | Add UCLDC-Deep-Harvester as a dependency. | Add UCLDC-Deep-Harvester as a dependency.
| Python | bsd-3-clause | barbarahui/nuxeo-calisphere,barbarahui/nuxeo-calisphere | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.1",
d... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.1",
d... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version =... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.1",
d... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version = "0.0.1",
d... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "UCLDC Deep Harvester",
version =... |
264d9e1748bb7129e0f8c287b657a7ca8b86c402 | setup.py | setup.py | from setuptools import setup, find_packages
version = '1.9'
setup(name='jarn.viewdoc',
version=version,
description='Python documentation viewer',
long_description=open('README.rst').read() + '\n' +
open('CHANGES.rst').read(),
classifiers=[
'Development Status ... | from setuptools import setup, find_packages
version = '1.9'
setup(name='jarn.viewdoc',
version=version,
description='Python documentation viewer',
long_description=open('README.rst').read() + '\n' +
open('CHANGES.rst').read(),
classifiers=[
'Development Status ... | Use github URL and official license name. | Use github URL and official license name.
| Python | bsd-2-clause | Jarn/jarn.viewdoc | from setuptools import setup, find_packages
version = '1.9'
setup(name='jarn.viewdoc',
version=version,
description='Python documentation viewer',
long_description=open('README.rst').read() + '\n' +
open('CHANGES.rst').read(),
classifiers=[
'Development Status ... | from setuptools import setup, find_packages
version = '1.9'
setup(name='jarn.viewdoc',
version=version,
description='Python documentation viewer',
long_description=open('README.rst').read() + '\n' +
open('CHANGES.rst').read(),
classifiers=[
'Development Status ... | <commit_before>from setuptools import setup, find_packages
version = '1.9'
setup(name='jarn.viewdoc',
version=version,
description='Python documentation viewer',
long_description=open('README.rst').read() + '\n' +
open('CHANGES.rst').read(),
classifiers=[
'Deve... | from setuptools import setup, find_packages
version = '1.9'
setup(name='jarn.viewdoc',
version=version,
description='Python documentation viewer',
long_description=open('README.rst').read() + '\n' +
open('CHANGES.rst').read(),
classifiers=[
'Development Status ... | from setuptools import setup, find_packages
version = '1.9'
setup(name='jarn.viewdoc',
version=version,
description='Python documentation viewer',
long_description=open('README.rst').read() + '\n' +
open('CHANGES.rst').read(),
classifiers=[
'Development Status ... | <commit_before>from setuptools import setup, find_packages
version = '1.9'
setup(name='jarn.viewdoc',
version=version,
description='Python documentation viewer',
long_description=open('README.rst').read() + '\n' +
open('CHANGES.rst').read(),
classifiers=[
'Deve... |
4bd197766cff3f4a2bd7231e0822a14efbd75c28 | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "ideone",
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
home-page = "http://github.com/jschaf/ideone-api/",
summary = "A Py... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "ideone",
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
url = "http://github.com/jschaf/ideone-api/",
description = "A Pyth... | Use url instead of home-page. Separate keywords by commas. | Use url instead of home-page. Separate keywords by commas.
| Python | bsd-3-clause | jschaf/ideone-api | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "ideone",
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
home-page = "http://github.com/jschaf/ideone-api/",
summary = "A Py... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "ideone",
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
url = "http://github.com/jschaf/ideone-api/",
description = "A Pyth... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "ideone",
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
home-page = "http://github.com/jschaf/ideone-api/",
... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "ideone",
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
url = "http://github.com/jschaf/ideone-api/",
description = "A Pyth... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "ideone",
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
home-page = "http://github.com/jschaf/ideone-api/",
summary = "A Py... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "ideone",
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
home-page = "http://github.com/jschaf/ideone-api/",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.