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
b8139440a2509d5b197889664f9ec34be9296210
form_designer/contrib/cms_plugins/form_designer_form/cms_plugins.py
form_designer/contrib/cms_plugins/form_designer_form/cms_plugins.py
from form_designer.contrib.cms_plugins.form_designer_form.models import CMSFormDefinition from form_designer.views import process_form from form_designer import settings from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ class FormDes...
from form_designer.contrib.cms_plugins.form_designer_form.models import CMSFormDefinition from form_designer.views import process_form from form_designer import settings from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ class FormDes...
Disable caching so CSRF tokens are not cached.
Disable caching so CSRF tokens are not cached.
Python
bsd-3-clause
USGM/django-form-designer,USGM/django-form-designer
from form_designer.contrib.cms_plugins.form_designer_form.models import CMSFormDefinition from form_designer.views import process_form from form_designer import settings from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ class FormDes...
from form_designer.contrib.cms_plugins.form_designer_form.models import CMSFormDefinition from form_designer.views import process_form from form_designer import settings from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ class FormDes...
<commit_before>from form_designer.contrib.cms_plugins.form_designer_form.models import CMSFormDefinition from form_designer.views import process_form from form_designer import settings from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ ...
from form_designer.contrib.cms_plugins.form_designer_form.models import CMSFormDefinition from form_designer.views import process_form from form_designer import settings from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ class FormDes...
from form_designer.contrib.cms_plugins.form_designer_form.models import CMSFormDefinition from form_designer.views import process_form from form_designer import settings from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ class FormDes...
<commit_before>from form_designer.contrib.cms_plugins.form_designer_form.models import CMSFormDefinition from form_designer.views import process_form from form_designer import settings from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ ...
21f209b618850d15734c476bd3c1b359b9a7426e
infosystem/queue.py
infosystem/queue.py
import flask from pika import BlockingConnection, PlainCredentials, ConnectionParameters class RabbitMQ: def __init__(self): self.url = flask.current_app.config['ORMENU_QUEUE_URL'] self.port = flask.current_app.config['ORMENU_QUEUE_PORT'] self.virtual_host = \ flask.current_ap...
import flask from pika import BlockingConnection, PlainCredentials, ConnectionParameters class RabbitMQ: def __init__(self): self.url = flask.current_app.config['INFOSYSTEM_QUEUE_URL'] self.port = flask.current_app.config['INFOSYSTEM_QUEUE_PORT'] self.virtual_host = \ flask.cu...
Use INFOSYSTEM enviroment for Queue
Use INFOSYSTEM enviroment for Queue
Python
apache-2.0
samueldmq/infosystem
import flask from pika import BlockingConnection, PlainCredentials, ConnectionParameters class RabbitMQ: def __init__(self): self.url = flask.current_app.config['ORMENU_QUEUE_URL'] self.port = flask.current_app.config['ORMENU_QUEUE_PORT'] self.virtual_host = \ flask.current_ap...
import flask from pika import BlockingConnection, PlainCredentials, ConnectionParameters class RabbitMQ: def __init__(self): self.url = flask.current_app.config['INFOSYSTEM_QUEUE_URL'] self.port = flask.current_app.config['INFOSYSTEM_QUEUE_PORT'] self.virtual_host = \ flask.cu...
<commit_before>import flask from pika import BlockingConnection, PlainCredentials, ConnectionParameters class RabbitMQ: def __init__(self): self.url = flask.current_app.config['ORMENU_QUEUE_URL'] self.port = flask.current_app.config['ORMENU_QUEUE_PORT'] self.virtual_host = \ f...
import flask from pika import BlockingConnection, PlainCredentials, ConnectionParameters class RabbitMQ: def __init__(self): self.url = flask.current_app.config['INFOSYSTEM_QUEUE_URL'] self.port = flask.current_app.config['INFOSYSTEM_QUEUE_PORT'] self.virtual_host = \ flask.cu...
import flask from pika import BlockingConnection, PlainCredentials, ConnectionParameters class RabbitMQ: def __init__(self): self.url = flask.current_app.config['ORMENU_QUEUE_URL'] self.port = flask.current_app.config['ORMENU_QUEUE_PORT'] self.virtual_host = \ flask.current_ap...
<commit_before>import flask from pika import BlockingConnection, PlainCredentials, ConnectionParameters class RabbitMQ: def __init__(self): self.url = flask.current_app.config['ORMENU_QUEUE_URL'] self.port = flask.current_app.config['ORMENU_QUEUE_PORT'] self.virtual_host = \ f...
305ba7ee3fff41a7d866968c5332394301c0e83f
digi/wagtail_hooks.py
digi/wagtail_hooks.py
from wagtail.contrib.modeladmin.options import \ ModelAdmin, ModelAdminGroup, modeladmin_register from .models import Indicator, FooterLinkSection class IndicatorAdmin(ModelAdmin): model = Indicator menu_icon = 'user' class FooterLinkSectionAdmin(ModelAdmin): model = FooterLinkSection menu_icon ...
from wagtail.contrib.modeladmin.options import \ ModelAdmin, ModelAdminGroup, modeladmin_register from .models import Indicator, FooterLinkSection from django.utils.html import format_html from wagtail.wagtailcore import hooks class IndicatorAdmin(ModelAdmin): model = Indicator menu_icon = 'user' class ...
Enable HTML source editing in the content editor
Enable HTML source editing in the content editor
Python
mit
terotic/digihel,City-of-Helsinki/digihel,terotic/digihel,City-of-Helsinki/digihel,City-of-Helsinki/digihel,terotic/digihel,City-of-Helsinki/digihel
from wagtail.contrib.modeladmin.options import \ ModelAdmin, ModelAdminGroup, modeladmin_register from .models import Indicator, FooterLinkSection class IndicatorAdmin(ModelAdmin): model = Indicator menu_icon = 'user' class FooterLinkSectionAdmin(ModelAdmin): model = FooterLinkSection menu_icon ...
from wagtail.contrib.modeladmin.options import \ ModelAdmin, ModelAdminGroup, modeladmin_register from .models import Indicator, FooterLinkSection from django.utils.html import format_html from wagtail.wagtailcore import hooks class IndicatorAdmin(ModelAdmin): model = Indicator menu_icon = 'user' class ...
<commit_before>from wagtail.contrib.modeladmin.options import \ ModelAdmin, ModelAdminGroup, modeladmin_register from .models import Indicator, FooterLinkSection class IndicatorAdmin(ModelAdmin): model = Indicator menu_icon = 'user' class FooterLinkSectionAdmin(ModelAdmin): model = FooterLinkSection...
from wagtail.contrib.modeladmin.options import \ ModelAdmin, ModelAdminGroup, modeladmin_register from .models import Indicator, FooterLinkSection from django.utils.html import format_html from wagtail.wagtailcore import hooks class IndicatorAdmin(ModelAdmin): model = Indicator menu_icon = 'user' class ...
from wagtail.contrib.modeladmin.options import \ ModelAdmin, ModelAdminGroup, modeladmin_register from .models import Indicator, FooterLinkSection class IndicatorAdmin(ModelAdmin): model = Indicator menu_icon = 'user' class FooterLinkSectionAdmin(ModelAdmin): model = FooterLinkSection menu_icon ...
<commit_before>from wagtail.contrib.modeladmin.options import \ ModelAdmin, ModelAdminGroup, modeladmin_register from .models import Indicator, FooterLinkSection class IndicatorAdmin(ModelAdmin): model = Indicator menu_icon = 'user' class FooterLinkSectionAdmin(ModelAdmin): model = FooterLinkSection...
c8fdc9aaea13567a293237e7a4126f83a52f0a22
salt/modules/test_virtual.py
salt/modules/test_virtual.py
# -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ function ''' from __future__ import absolute_import def __virtual__(): return False def test(): return True
# -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ function ''' from __future__ import absolute_import def __virtual__(): return False def ping(): return True
Fix mis-naming from pylint cleanup
Fix mis-naming from pylint cleanup
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ function ''' from __future__ import absolute_import def __virtual__(): return False def test(): return True Fix mis-naming from pylint cleanup
# -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ function ''' from __future__ import absolute_import def __virtual__(): return False def ping(): return True
<commit_before># -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ function ''' from __future__ import absolute_import def __virtual__(): return False def test(): return True <commit_msg>Fix mis-naming from pylint cleanup<commit_after>
# -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ function ''' from __future__ import absolute_import def __virtual__(): return False def ping(): return True
# -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ function ''' from __future__ import absolute_import def __virtual__(): return False def test(): return True Fix mis-naming from pylint cleanup# -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ fu...
<commit_before># -*- coding: utf-8 -*- ''' Module for running arbitrary tests with a __virtual__ function ''' from __future__ import absolute_import def __virtual__(): return False def test(): return True <commit_msg>Fix mis-naming from pylint cleanup<commit_after># -*- coding: utf-8 -*- ''' Module for runn...
60497ba61c80863cd0414e39a9cd12b42b519897
chainer/training/extensions/value_observation.py
chainer/training/extensions/value_observation.py
from chainer.training import extension import time def observe_value(key, target_func): """Returns a trainer extension to continuously record a value. Args: key (str): Key of observation to record. target_func (function): Function that returns the value to record. It must take one...
import time from chainer.training import extension def observe_value(key, target_func): """Returns a trainer extension to continuously record a value. Args: key (str): Key of observation to record. target_func (function): Function that returns the value to record. It must take on...
Split system import and project import
Split system import and project import
Python
mit
cupy/cupy,chainer/chainer,keisuke-umezawa/chainer,wkentaro/chainer,okuta/chainer,ktnyt/chainer,wkentaro/chainer,jnishi/chainer,tkerola/chainer,keisuke-umezawa/chainer,jnishi/chainer,niboshi/chainer,delta2323/chainer,keisuke-umezawa/chainer,ktnyt/chainer,chainer/chainer,ysekky/chainer,chainer/chainer,keisuke-umezawa/cha...
from chainer.training import extension import time def observe_value(key, target_func): """Returns a trainer extension to continuously record a value. Args: key (str): Key of observation to record. target_func (function): Function that returns the value to record. It must take one...
import time from chainer.training import extension def observe_value(key, target_func): """Returns a trainer extension to continuously record a value. Args: key (str): Key of observation to record. target_func (function): Function that returns the value to record. It must take on...
<commit_before>from chainer.training import extension import time def observe_value(key, target_func): """Returns a trainer extension to continuously record a value. Args: key (str): Key of observation to record. target_func (function): Function that returns the value to record. I...
import time from chainer.training import extension def observe_value(key, target_func): """Returns a trainer extension to continuously record a value. Args: key (str): Key of observation to record. target_func (function): Function that returns the value to record. It must take on...
from chainer.training import extension import time def observe_value(key, target_func): """Returns a trainer extension to continuously record a value. Args: key (str): Key of observation to record. target_func (function): Function that returns the value to record. It must take one...
<commit_before>from chainer.training import extension import time def observe_value(key, target_func): """Returns a trainer extension to continuously record a value. Args: key (str): Key of observation to record. target_func (function): Function that returns the value to record. I...
2b11762c418d1a985c3bd64d76abbf9b515bb8da
scanpointgenerator/compat.py
scanpointgenerator/compat.py
import os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name == 'java': import scisoftpy as numpy else: import numpy np = numpy
import os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name == 'java': import numjy as numpy else: import numpy np = numpy
Replace scisoftpy import with numjy
Replace scisoftpy import with numjy
Python
apache-2.0
dls-controls/scanpointgenerator
import os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name == 'java': import scisoftpy as numpy else: import numpy np = numpy Replace scisoftpy import with numjy
import os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name == 'java': import numjy as numpy else: import numpy np = numpy
<commit_before>import os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name == 'java': import scisoftpy as numpy else: import numpy np = numpy <commit_msg>Replace scisoftpy import with numjy<commit_after>
import os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name == 'java': import numjy as numpy else: import numpy np = numpy
import os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name == 'java': import scisoftpy as numpy else: import numpy np = numpy Replace scisoftpy import with numjyimport os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name =...
<commit_before>import os try: range_ = xrange except NameError: # For Python3 range_ = range if os.name == 'java': import scisoftpy as numpy else: import numpy np = numpy <commit_msg>Replace scisoftpy import with numjy<commit_after>import os try: range_ = xrange except NameError: # For ...
1f22226575455349b3417cdae70a7a5b7181c3b3
tests/test_wikibugs2.py
tests/test_wikibugs2.py
import wikibugs import configfetcher import unittest import os p = os.path.split(__file__)[0] class TestWikibugs(unittest.TestCase): def setUp(self): self.bugs = wikibugs.Wikibugs2( configfetcher.ConfigFetcher() ) def test_offline_scrape(self): content = open(p + "/T87834...
# encoding: utf-8 import wikibugs import configfetcher import unittest import os import requests p = os.path.split(__file__)[0] class TestWikibugs(unittest.TestCase): def setUp(self): self.bugs = wikibugs.Wikibugs2( configfetcher.ConfigFetcher() ) def run_scrape(self, content): ...
Add online project scrape test
Add online project scrape test Change-Id: Idc112f9397ac2f2fcfe51ca60259b257dff86e91
Python
mit
wikimedia/labs-tools-wikibugs2,wikimedia/labs-tools-wikibugs2
import wikibugs import configfetcher import unittest import os p = os.path.split(__file__)[0] class TestWikibugs(unittest.TestCase): def setUp(self): self.bugs = wikibugs.Wikibugs2( configfetcher.ConfigFetcher() ) def test_offline_scrape(self): content = open(p + "/T87834...
# encoding: utf-8 import wikibugs import configfetcher import unittest import os import requests p = os.path.split(__file__)[0] class TestWikibugs(unittest.TestCase): def setUp(self): self.bugs = wikibugs.Wikibugs2( configfetcher.ConfigFetcher() ) def run_scrape(self, content): ...
<commit_before>import wikibugs import configfetcher import unittest import os p = os.path.split(__file__)[0] class TestWikibugs(unittest.TestCase): def setUp(self): self.bugs = wikibugs.Wikibugs2( configfetcher.ConfigFetcher() ) def test_offline_scrape(self): content = op...
# encoding: utf-8 import wikibugs import configfetcher import unittest import os import requests p = os.path.split(__file__)[0] class TestWikibugs(unittest.TestCase): def setUp(self): self.bugs = wikibugs.Wikibugs2( configfetcher.ConfigFetcher() ) def run_scrape(self, content): ...
import wikibugs import configfetcher import unittest import os p = os.path.split(__file__)[0] class TestWikibugs(unittest.TestCase): def setUp(self): self.bugs = wikibugs.Wikibugs2( configfetcher.ConfigFetcher() ) def test_offline_scrape(self): content = open(p + "/T87834...
<commit_before>import wikibugs import configfetcher import unittest import os p = os.path.split(__file__)[0] class TestWikibugs(unittest.TestCase): def setUp(self): self.bugs = wikibugs.Wikibugs2( configfetcher.ConfigFetcher() ) def test_offline_scrape(self): content = op...
a774f3750b506c77f2c37d08b3d33dc66da2a12d
jsonmapping/util.py
jsonmapping/util.py
import os import json from jsonschema import Draft4Validator def validate_mapping(mapping): """ Validate a mapping configuration file against the relevant schema. """ file_path = os.path.join(os.path.dirname(__file__), 'schemas', 'mapping.json') with open(file_path, 'rb') as ...
import os import json from jsonschema import Draft4Validator def validate_mapping(mapping): """ Validate a mapping configuration file against the relevant schema. """ file_path = os.path.join(os.path.dirname(__file__), 'schemas', 'mapping.json') with open(file_path, 'r') as f...
Fix python 3 compat. BREAKS python 2.x
Fix python 3 compat. BREAKS python 2.x
Python
mit
Ramblurr/jsonmapping
import os import json from jsonschema import Draft4Validator def validate_mapping(mapping): """ Validate a mapping configuration file against the relevant schema. """ file_path = os.path.join(os.path.dirname(__file__), 'schemas', 'mapping.json') with open(file_path, 'rb') as ...
import os import json from jsonschema import Draft4Validator def validate_mapping(mapping): """ Validate a mapping configuration file against the relevant schema. """ file_path = os.path.join(os.path.dirname(__file__), 'schemas', 'mapping.json') with open(file_path, 'r') as f...
<commit_before>import os import json from jsonschema import Draft4Validator def validate_mapping(mapping): """ Validate a mapping configuration file against the relevant schema. """ file_path = os.path.join(os.path.dirname(__file__), 'schemas', 'mapping.json') with open(file_...
import os import json from jsonschema import Draft4Validator def validate_mapping(mapping): """ Validate a mapping configuration file against the relevant schema. """ file_path = os.path.join(os.path.dirname(__file__), 'schemas', 'mapping.json') with open(file_path, 'r') as f...
import os import json from jsonschema import Draft4Validator def validate_mapping(mapping): """ Validate a mapping configuration file against the relevant schema. """ file_path = os.path.join(os.path.dirname(__file__), 'schemas', 'mapping.json') with open(file_path, 'rb') as ...
<commit_before>import os import json from jsonschema import Draft4Validator def validate_mapping(mapping): """ Validate a mapping configuration file against the relevant schema. """ file_path = os.path.join(os.path.dirname(__file__), 'schemas', 'mapping.json') with open(file_...
64d17f591bfde49d3a7b5f49f987c1138eecebf8
tests/source/start_trace.py
tests/source/start_trace.py
"""Write some logs.""" import sys import time from mdk import start mdk = start() def main(): session = mdk.session() session.info("process1", "hello") time.sleep(1) sys.stdout.write(session.inject()) sys.stdout.flush() mdk.stop() if __name__ == '__main__': main()
"""Write some logs.""" import sys import time from mdk import start mdk = start() def main(): session = mdk.session() session.info("process1", "hello") time.sleep(5) sys.stdout.write(session.inject()) sys.stdout.flush() mdk.stop() if __name__ == '__main__': main()
Increase sleep in test to reduce timing sensitivity with prod servers.
Increase sleep in test to reduce timing sensitivity with prod servers.
Python
apache-2.0
datawire/mdk,datawire/mdk,datawire/mdk,datawire/mdk
"""Write some logs.""" import sys import time from mdk import start mdk = start() def main(): session = mdk.session() session.info("process1", "hello") time.sleep(1) sys.stdout.write(session.inject()) sys.stdout.flush() mdk.stop() if __name__ == '__main__': main() Increase sleep in tes...
"""Write some logs.""" import sys import time from mdk import start mdk = start() def main(): session = mdk.session() session.info("process1", "hello") time.sleep(5) sys.stdout.write(session.inject()) sys.stdout.flush() mdk.stop() if __name__ == '__main__': main()
<commit_before>"""Write some logs.""" import sys import time from mdk import start mdk = start() def main(): session = mdk.session() session.info("process1", "hello") time.sleep(1) sys.stdout.write(session.inject()) sys.stdout.flush() mdk.stop() if __name__ == '__main__': main() <commi...
"""Write some logs.""" import sys import time from mdk import start mdk = start() def main(): session = mdk.session() session.info("process1", "hello") time.sleep(5) sys.stdout.write(session.inject()) sys.stdout.flush() mdk.stop() if __name__ == '__main__': main()
"""Write some logs.""" import sys import time from mdk import start mdk = start() def main(): session = mdk.session() session.info("process1", "hello") time.sleep(1) sys.stdout.write(session.inject()) sys.stdout.flush() mdk.stop() if __name__ == '__main__': main() Increase sleep in tes...
<commit_before>"""Write some logs.""" import sys import time from mdk import start mdk = start() def main(): session = mdk.session() session.info("process1", "hello") time.sleep(1) sys.stdout.write(session.inject()) sys.stdout.flush() mdk.stop() if __name__ == '__main__': main() <commi...
14ea472acfce8b5317a8c8c970db901501ea34c0
_tests/macro_testing/runner.py
_tests/macro_testing/runner.py
# -*- coding: utf-8 -*- import os, os.path import sys import unittest from macrotest import JSONSpecMacroTestCaseFactory def JSONTestCaseLoader(tests_path, recursive=False): """ Load JSON specifications for Jinja2 macro test cases from the given path and returns the resulting test classes. This fun...
# -*- coding: utf-8 -*- import os, os.path import sys import unittest from macrotest import JSONSpecMacroTestCaseFactory def JSONTestCaseLoader(tests_path, recursive=False): """ Load JSON specifications for Jinja2 macro test cases from the given path and returns the resulting test classes. This fun...
Make the paths not relative, so tests can be run from anywhere.
Make the paths not relative, so tests can be run from anywhere.
Python
cc0-1.0
kave/cfgov-refresh,kave/cfgov-refresh,kave/cfgov-refresh,kave/cfgov-refresh
# -*- coding: utf-8 -*- import os, os.path import sys import unittest from macrotest import JSONSpecMacroTestCaseFactory def JSONTestCaseLoader(tests_path, recursive=False): """ Load JSON specifications for Jinja2 macro test cases from the given path and returns the resulting test classes. This fun...
# -*- coding: utf-8 -*- import os, os.path import sys import unittest from macrotest import JSONSpecMacroTestCaseFactory def JSONTestCaseLoader(tests_path, recursive=False): """ Load JSON specifications for Jinja2 macro test cases from the given path and returns the resulting test classes. This fun...
<commit_before># -*- coding: utf-8 -*- import os, os.path import sys import unittest from macrotest import JSONSpecMacroTestCaseFactory def JSONTestCaseLoader(tests_path, recursive=False): """ Load JSON specifications for Jinja2 macro test cases from the given path and returns the resulting test classes...
# -*- coding: utf-8 -*- import os, os.path import sys import unittest from macrotest import JSONSpecMacroTestCaseFactory def JSONTestCaseLoader(tests_path, recursive=False): """ Load JSON specifications for Jinja2 macro test cases from the given path and returns the resulting test classes. This fun...
# -*- coding: utf-8 -*- import os, os.path import sys import unittest from macrotest import JSONSpecMacroTestCaseFactory def JSONTestCaseLoader(tests_path, recursive=False): """ Load JSON specifications for Jinja2 macro test cases from the given path and returns the resulting test classes. This fun...
<commit_before># -*- coding: utf-8 -*- import os, os.path import sys import unittest from macrotest import JSONSpecMacroTestCaseFactory def JSONTestCaseLoader(tests_path, recursive=False): """ Load JSON specifications for Jinja2 macro test cases from the given path and returns the resulting test classes...
90699f4fa6c1ce2b02e81a8fef9bfafd2175fa7f
kmapper/__init__.py
kmapper/__init__.py
from .kmapper import KeplerMapper from .kmapper import cluster from .kmapper import Cover from .kmapper import GraphNerve
from .kmapper import KeplerMapper from .kmapper import cluster from .cover import Cover from .nerve import GraphNerve import pkg_resources __version__ = pkg_resources.get_distribution('kmapper').version
Add __version__ variable to package
Add __version__ variable to package
Python
mit
MLWave/kepler-mapper,MLWave/kepler-mapper,MLWave/kepler-mapper
from .kmapper import KeplerMapper from .kmapper import cluster from .kmapper import Cover from .kmapper import GraphNerve Add __version__ variable to package
from .kmapper import KeplerMapper from .kmapper import cluster from .cover import Cover from .nerve import GraphNerve import pkg_resources __version__ = pkg_resources.get_distribution('kmapper').version
<commit_before>from .kmapper import KeplerMapper from .kmapper import cluster from .kmapper import Cover from .kmapper import GraphNerve <commit_msg>Add __version__ variable to package<commit_after>
from .kmapper import KeplerMapper from .kmapper import cluster from .cover import Cover from .nerve import GraphNerve import pkg_resources __version__ = pkg_resources.get_distribution('kmapper').version
from .kmapper import KeplerMapper from .kmapper import cluster from .kmapper import Cover from .kmapper import GraphNerve Add __version__ variable to packagefrom .kmapper import KeplerMapper from .kmapper import cluster from .cover import Cover from .nerve import GraphNerve import pkg_resources __version__ = pkg_resour...
<commit_before>from .kmapper import KeplerMapper from .kmapper import cluster from .kmapper import Cover from .kmapper import GraphNerve <commit_msg>Add __version__ variable to package<commit_after>from .kmapper import KeplerMapper from .kmapper import cluster from .cover import Cover from .nerve import GraphNerve impo...
884852eeb2dec07dccefc26595f097ec9ae8532b
forum/forms.py
forum/forms.py
from django.forms import ModelForm,Textarea from .models import Post class PostForm(ModelForm): class Meta: model = Post fields = ('subject','body') widgets = { 'body': Textarea( attrs={ 'data-provide':'markdown', ...
from django.forms import ModelForm,Textarea,TextInput from .models import Post class PostForm(ModelForm): class Meta: model = Post fields = ('subject','body') widgets = { 'subject': TextInput(attrs={'autofocus':'autofocus'}), 'body': Textarea( ...
Add autofocus to subject field
Add autofocus to subject field
Python
mit
Kromey/fbxnano,Kromey/akwriters,Kromey/fbxnano,Kromey/akwriters,Kromey/fbxnano,Kromey/fbxnano,Kromey/akwriters,Kromey/akwriters
from django.forms import ModelForm,Textarea from .models import Post class PostForm(ModelForm): class Meta: model = Post fields = ('subject','body') widgets = { 'body': Textarea( attrs={ 'data-provide':'markdown', ...
from django.forms import ModelForm,Textarea,TextInput from .models import Post class PostForm(ModelForm): class Meta: model = Post fields = ('subject','body') widgets = { 'subject': TextInput(attrs={'autofocus':'autofocus'}), 'body': Textarea( ...
<commit_before>from django.forms import ModelForm,Textarea from .models import Post class PostForm(ModelForm): class Meta: model = Post fields = ('subject','body') widgets = { 'body': Textarea( attrs={ 'data-provide':'markdown',...
from django.forms import ModelForm,Textarea,TextInput from .models import Post class PostForm(ModelForm): class Meta: model = Post fields = ('subject','body') widgets = { 'subject': TextInput(attrs={'autofocus':'autofocus'}), 'body': Textarea( ...
from django.forms import ModelForm,Textarea from .models import Post class PostForm(ModelForm): class Meta: model = Post fields = ('subject','body') widgets = { 'body': Textarea( attrs={ 'data-provide':'markdown', ...
<commit_before>from django.forms import ModelForm,Textarea from .models import Post class PostForm(ModelForm): class Meta: model = Post fields = ('subject','body') widgets = { 'body': Textarea( attrs={ 'data-provide':'markdown',...
16553fd759e70d93824407f18cdea419703d85d4
gcn/metrics.py
gcn/metrics.py
import tensorflow as tf def masked_softmax_cross_entropy(preds, labels, mask): """Softmax cross-entropy loss with masking.""" loss = tf.nn.softmax_cross_entropy_with_logits(logits=preds, lables=labels) mask = tf.cast(mask, dtype=tf.float32) mask /= tf.reduce_mean(mask) loss *= mask return tf.r...
import tensorflow as tf def masked_softmax_cross_entropy(preds, labels, mask): """Softmax cross-entropy loss with masking.""" loss = tf.nn.softmax_cross_entropy_with_logits(logits=preds, labels=labels) mask = tf.cast(mask, dtype=tf.float32) mask /= tf.reduce_mean(mask) loss *= mask return tf.r...
Fix typo for named argument
Fix typo for named argument
Python
mit
tkipf/gcn
import tensorflow as tf def masked_softmax_cross_entropy(preds, labels, mask): """Softmax cross-entropy loss with masking.""" loss = tf.nn.softmax_cross_entropy_with_logits(logits=preds, lables=labels) mask = tf.cast(mask, dtype=tf.float32) mask /= tf.reduce_mean(mask) loss *= mask return tf.r...
import tensorflow as tf def masked_softmax_cross_entropy(preds, labels, mask): """Softmax cross-entropy loss with masking.""" loss = tf.nn.softmax_cross_entropy_with_logits(logits=preds, labels=labels) mask = tf.cast(mask, dtype=tf.float32) mask /= tf.reduce_mean(mask) loss *= mask return tf.r...
<commit_before>import tensorflow as tf def masked_softmax_cross_entropy(preds, labels, mask): """Softmax cross-entropy loss with masking.""" loss = tf.nn.softmax_cross_entropy_with_logits(logits=preds, lables=labels) mask = tf.cast(mask, dtype=tf.float32) mask /= tf.reduce_mean(mask) loss *= mask ...
import tensorflow as tf def masked_softmax_cross_entropy(preds, labels, mask): """Softmax cross-entropy loss with masking.""" loss = tf.nn.softmax_cross_entropy_with_logits(logits=preds, labels=labels) mask = tf.cast(mask, dtype=tf.float32) mask /= tf.reduce_mean(mask) loss *= mask return tf.r...
import tensorflow as tf def masked_softmax_cross_entropy(preds, labels, mask): """Softmax cross-entropy loss with masking.""" loss = tf.nn.softmax_cross_entropy_with_logits(logits=preds, lables=labels) mask = tf.cast(mask, dtype=tf.float32) mask /= tf.reduce_mean(mask) loss *= mask return tf.r...
<commit_before>import tensorflow as tf def masked_softmax_cross_entropy(preds, labels, mask): """Softmax cross-entropy loss with masking.""" loss = tf.nn.softmax_cross_entropy_with_logits(logits=preds, lables=labels) mask = tf.cast(mask, dtype=tf.float32) mask /= tf.reduce_mean(mask) loss *= mask ...
1b7634e3a98919df5f2f4d54c57bb72dfbf308df
py3-test/tests.py
py3-test/tests.py
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import get_event_loop from asyncio import sleep as async_sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ ee = EventEmitter() loop = get_event_loop() class Sense...
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) future = Future() ...
Rewrite asyncio test to use futures
Rewrite asyncio test to use futures
Python
mit
jfhbrook/pyee
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import get_event_loop from asyncio import sleep as async_sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ ee = EventEmitter() loop = get_event_loop() class Sense...
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) future = Future() ...
<commit_before># -*- coding: utf-8 -*- import nose.tools as nt from asyncio import get_event_loop from asyncio import sleep as async_sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ ee = EventEmitter() loop = get_event_loop() ...
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) future = Future() ...
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import get_event_loop from asyncio import sleep as async_sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ ee = EventEmitter() loop = get_event_loop() class Sense...
<commit_before># -*- coding: utf-8 -*- import nose.tools as nt from asyncio import get_event_loop from asyncio import sleep as async_sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ ee = EventEmitter() loop = get_event_loop() ...
a8bb719061a68b5d322868768203476c4ee1e9b9
gnocchi/cli.py
gnocchi/cli.py
# Copyright (c) 2013 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 agreed to in writ...
# Copyright (c) 2013 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 agreed to in writ...
Connect to database before upgrading it
Connect to database before upgrading it This change ensure we are connected to the database before we upgrade it. Change-Id: Ia0be33892a99897ff294d004f4d935f3753e6200
Python
apache-2.0
idegtiarov/gnocchi-rep,leandroreox/gnocchi,sileht/gnocchi,idegtiarov/gnocchi-rep,gnocchixyz/gnocchi,sileht/gnocchi,idegtiarov/gnocchi-rep,gnocchixyz/gnocchi,leandroreox/gnocchi
# Copyright (c) 2013 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 agreed to in writ...
# Copyright (c) 2013 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 agreed to in writ...
<commit_before># Copyright (c) 2013 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 (c) 2013 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 agreed to in writ...
# Copyright (c) 2013 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 agreed to in writ...
<commit_before># Copyright (c) 2013 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...
45fcbaa7515faaa2f812bd9ceb0800fbeb64f1e7
pytest_pycharm.py
pytest_pycharm.py
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
Fix for pycharm 4.0.0 changes
Fix for pycharm 4.0.0 changes
Python
bsd-3-clause
jlubcke/pytest-pycharm
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
<commit_before># -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: ...
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
<commit_before># -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: ...
68fa1fd0df0f4048ac32e80698ebd872fb1f7fba
pytest_pycharm.py
pytest_pycharm.py
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
Fix stopping on a breakpoint for PyCharm 2017.3
Fix stopping on a breakpoint for PyCharm 2017.3
Python
bsd-3-clause
jlubcke/pytest-pycharm
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
<commit_before># -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: ...
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
# -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: exctype, val...
<commit_before># -*- coding: utf-8 -*- import threading def pytest_exception_interact(node, call, report): """ Drop into PyCharm debugger, if available, on uncaught exceptions. """ try: import pydevd from pydevd import pydevd_tracing except ImportError: pass else: ...
82740c7956a2bae0baceedd658b9ad9352254ad0
nlppln/wfgenerator.py
nlppln/wfgenerator.py
from scriptcwl import WorkflowGenerator as WFGenerator from .utils import CWL_PATH class WorkflowGenerator(WFGenerator): def __init__(self, working_dir=None, copy_steps=True): WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir, copy_steps=copy_steps) ...
from scriptcwl import WorkflowGenerator as WFGenerator from .utils import CWL_PATH class WorkflowGenerator(WFGenerator): def __init__(self, working_dir=None): WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir) def save(self, fname, validate=True, wd=True, inline=False, relative=...
Update to use newest (unreleased) scriptcwl options
Update to use newest (unreleased) scriptcwl options
Python
apache-2.0
WhatWorksWhenForWhom/nlppln,WhatWorksWhenForWhom/nlppln,WhatWorksWhenForWhom/nlppln
from scriptcwl import WorkflowGenerator as WFGenerator from .utils import CWL_PATH class WorkflowGenerator(WFGenerator): def __init__(self, working_dir=None, copy_steps=True): WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir, copy_steps=copy_steps) ...
from scriptcwl import WorkflowGenerator as WFGenerator from .utils import CWL_PATH class WorkflowGenerator(WFGenerator): def __init__(self, working_dir=None): WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir) def save(self, fname, validate=True, wd=True, inline=False, relative=...
<commit_before>from scriptcwl import WorkflowGenerator as WFGenerator from .utils import CWL_PATH class WorkflowGenerator(WFGenerator): def __init__(self, working_dir=None, copy_steps=True): WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir, copy_steps=co...
from scriptcwl import WorkflowGenerator as WFGenerator from .utils import CWL_PATH class WorkflowGenerator(WFGenerator): def __init__(self, working_dir=None): WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir) def save(self, fname, validate=True, wd=True, inline=False, relative=...
from scriptcwl import WorkflowGenerator as WFGenerator from .utils import CWL_PATH class WorkflowGenerator(WFGenerator): def __init__(self, working_dir=None, copy_steps=True): WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir, copy_steps=copy_steps) ...
<commit_before>from scriptcwl import WorkflowGenerator as WFGenerator from .utils import CWL_PATH class WorkflowGenerator(WFGenerator): def __init__(self, working_dir=None, copy_steps=True): WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir, copy_steps=co...
b728470c61fbd742052e5befb4c27adbacef1a7e
pinax_theme_bootstrap/templatetags/pinax_theme_bootstrap_tags.py
pinax_theme_bootstrap/templatetags/pinax_theme_bootstrap_tags.py
from django import template from django.contrib.messages.utils import get_level_tags LEVEL_TAGS = get_level_tags() register = template.Library() @register.simple_tag() def get_message_tags(message): """ Returns tags for a message """ level_name = LEVEL_TAGS[message.level] if level_name == u"err...
from django import template from django.contrib.messages.utils import get_level_tags LEVEL_TAGS = get_level_tags() register = template.Library() @register.simple_tag() def get_message_tags(message): """ Returns the message's level_tag prefixed with Bootstrap's "alert-" prefix along with any tags includ...
Use level_tag to be consistent with Django >= 1.7
Use level_tag to be consistent with Django >= 1.7
Python
mit
grahamu/pinax-theme-bootstrap,jacobwegner/pinax-theme-bootstrap,foraliving/foraliving,jacobwegner/pinax-theme-bootstrap,druss16/danslist,druss16/danslist,foraliving/foraliving,foraliving/foraliving,grahamu/pinax-theme-bootstrap,jacobwegner/pinax-theme-bootstrap,grahamu/pinax-theme-bootstrap,druss16/danslist
from django import template from django.contrib.messages.utils import get_level_tags LEVEL_TAGS = get_level_tags() register = template.Library() @register.simple_tag() def get_message_tags(message): """ Returns tags for a message """ level_name = LEVEL_TAGS[message.level] if level_name == u"err...
from django import template from django.contrib.messages.utils import get_level_tags LEVEL_TAGS = get_level_tags() register = template.Library() @register.simple_tag() def get_message_tags(message): """ Returns the message's level_tag prefixed with Bootstrap's "alert-" prefix along with any tags includ...
<commit_before>from django import template from django.contrib.messages.utils import get_level_tags LEVEL_TAGS = get_level_tags() register = template.Library() @register.simple_tag() def get_message_tags(message): """ Returns tags for a message """ level_name = LEVEL_TAGS[message.level] if leve...
from django import template from django.contrib.messages.utils import get_level_tags LEVEL_TAGS = get_level_tags() register = template.Library() @register.simple_tag() def get_message_tags(message): """ Returns the message's level_tag prefixed with Bootstrap's "alert-" prefix along with any tags includ...
from django import template from django.contrib.messages.utils import get_level_tags LEVEL_TAGS = get_level_tags() register = template.Library() @register.simple_tag() def get_message_tags(message): """ Returns tags for a message """ level_name = LEVEL_TAGS[message.level] if level_name == u"err...
<commit_before>from django import template from django.contrib.messages.utils import get_level_tags LEVEL_TAGS = get_level_tags() register = template.Library() @register.simple_tag() def get_message_tags(message): """ Returns tags for a message """ level_name = LEVEL_TAGS[message.level] if leve...
fec7885d2632b887002f0071f4898faf52dd927c
chainerx/__init__.py
chainerx/__init__.py
import sys if sys.version_info[0] < 3: _available = False else: try: from chainerx import _core _available = True except Exception: _available = False if _available: from numpy import dtype, bool_, int8, int16, int32, int64, uint8, float32, float64 # NOQA from chainerx....
import sys if sys.version_info[0] < 3: _available = False else: try: from chainerx import _core _available = True except Exception: _available = False if _available: from numpy import dtype, bool_, int8, int16, int32, int64, uint8, float32, float64 # NOQA from chainerx....
Raise an error on dummy class init
Raise an error on dummy class init
Python
mit
okuta/chainer,jnishi/chainer,chainer/chainer,ktnyt/chainer,ktnyt/chainer,okuta/chainer,hvy/chainer,niboshi/chainer,ktnyt/chainer,chainer/chainer,ktnyt/chainer,hvy/chainer,wkentaro/chainer,jnishi/chainer,jnishi/chainer,okuta/chainer,wkentaro/chainer,keisuke-umezawa/chainer,niboshi/chainer,chainer/chainer,keisuke-umezawa...
import sys if sys.version_info[0] < 3: _available = False else: try: from chainerx import _core _available = True except Exception: _available = False if _available: from numpy import dtype, bool_, int8, int16, int32, int64, uint8, float32, float64 # NOQA from chainerx....
import sys if sys.version_info[0] < 3: _available = False else: try: from chainerx import _core _available = True except Exception: _available = False if _available: from numpy import dtype, bool_, int8, int16, int32, int64, uint8, float32, float64 # NOQA from chainerx....
<commit_before>import sys if sys.version_info[0] < 3: _available = False else: try: from chainerx import _core _available = True except Exception: _available = False if _available: from numpy import dtype, bool_, int8, int16, int32, int64, uint8, float32, float64 # NOQA ...
import sys if sys.version_info[0] < 3: _available = False else: try: from chainerx import _core _available = True except Exception: _available = False if _available: from numpy import dtype, bool_, int8, int16, int32, int64, uint8, float32, float64 # NOQA from chainerx....
import sys if sys.version_info[0] < 3: _available = False else: try: from chainerx import _core _available = True except Exception: _available = False if _available: from numpy import dtype, bool_, int8, int16, int32, int64, uint8, float32, float64 # NOQA from chainerx....
<commit_before>import sys if sys.version_info[0] < 3: _available = False else: try: from chainerx import _core _available = True except Exception: _available = False if _available: from numpy import dtype, bool_, int8, int16, int32, int64, uint8, float32, float64 # NOQA ...
f16c8f696a282da6c04de6b7530f1d0316eda88b
providers/edu/harvarddataverse/normalizer.py
providers/edu/harvarddataverse/normalizer.py
import arrow import dateparser from share.normalize import * class Person(Parser): given_name = ParseName(ctx).first family_name = ParseName(ctx).last additional_name = ParseName(ctx).middle suffix = ParseName(ctx).suffix class Contributor(Parser): person = Delegate(Person, ctx) cited_name...
import arrow import dateparser from share.normalize import * class Person(Parser): given_name = ParseName(ctx).first family_name = ParseName(ctx).last additional_name = ParseName(ctx).middle suffix = ParseName(ctx).suffix class Contributor(Parser): person = Delegate(Person, ctx) cited_name...
Handle missing fields in dataverse
Handle missing fields in dataverse
Python
apache-2.0
CenterForOpenScience/SHARE,laurenbarker/SHARE,aaxelb/SHARE,aaxelb/SHARE,laurenbarker/SHARE,zamattiac/SHARE,zamattiac/SHARE,CenterForOpenScience/SHARE,laurenbarker/SHARE,CenterForOpenScience/SHARE,zamattiac/SHARE,aaxelb/SHARE
import arrow import dateparser from share.normalize import * class Person(Parser): given_name = ParseName(ctx).first family_name = ParseName(ctx).last additional_name = ParseName(ctx).middle suffix = ParseName(ctx).suffix class Contributor(Parser): person = Delegate(Person, ctx) cited_name...
import arrow import dateparser from share.normalize import * class Person(Parser): given_name = ParseName(ctx).first family_name = ParseName(ctx).last additional_name = ParseName(ctx).middle suffix = ParseName(ctx).suffix class Contributor(Parser): person = Delegate(Person, ctx) cited_name...
<commit_before>import arrow import dateparser from share.normalize import * class Person(Parser): given_name = ParseName(ctx).first family_name = ParseName(ctx).last additional_name = ParseName(ctx).middle suffix = ParseName(ctx).suffix class Contributor(Parser): person = Delegate(Person, ctx)...
import arrow import dateparser from share.normalize import * class Person(Parser): given_name = ParseName(ctx).first family_name = ParseName(ctx).last additional_name = ParseName(ctx).middle suffix = ParseName(ctx).suffix class Contributor(Parser): person = Delegate(Person, ctx) cited_name...
import arrow import dateparser from share.normalize import * class Person(Parser): given_name = ParseName(ctx).first family_name = ParseName(ctx).last additional_name = ParseName(ctx).middle suffix = ParseName(ctx).suffix class Contributor(Parser): person = Delegate(Person, ctx) cited_name...
<commit_before>import arrow import dateparser from share.normalize import * class Person(Parser): given_name = ParseName(ctx).first family_name = ParseName(ctx).last additional_name = ParseName(ctx).middle suffix = ParseName(ctx).suffix class Contributor(Parser): person = Delegate(Person, ctx)...
3327c204f34a725a2d070beb24a7a5a66d414930
migrations/versions/538eeb160af6_.py
migrations/versions/538eeb160af6_.py
"""empty message Revision ID: 538eeb160af6 Revises: 1727fb4309d8 Create Date: 2015-09-17 04:22:21.262285 """ # revision identifiers, used by Alembic. revision = '538eeb160af6' down_revision = '1727fb4309d8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
"""empty message Revision ID: 538eeb160af6 Revises: 1727fb4309d8 Create Date: 2015-09-17 04:22:21.262285 """ # revision identifiers, used by Alembic. revision = '538eeb160af6' down_revision = '6b9d673d8e30' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
Update alembic order for merging
Update alembic order for merging
Python
apache-2.0
bunjiboys/security_monkey,stackArmor/security_monkey,markofu/security_monkey,bunjiboys/security_monkey,bunjiboys/security_monkey,markofu/security_monkey,markofu/security_monkey,Netflix/security_monkey,stackArmor/security_monkey,Netflix/security_monkey,Netflix/security_monkey,stackArmor/security_monkey,Netflix/security_...
"""empty message Revision ID: 538eeb160af6 Revises: 1727fb4309d8 Create Date: 2015-09-17 04:22:21.262285 """ # revision identifiers, used by Alembic. revision = '538eeb160af6' down_revision = '1727fb4309d8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
"""empty message Revision ID: 538eeb160af6 Revises: 1727fb4309d8 Create Date: 2015-09-17 04:22:21.262285 """ # revision identifiers, used by Alembic. revision = '538eeb160af6' down_revision = '6b9d673d8e30' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
<commit_before>"""empty message Revision ID: 538eeb160af6 Revises: 1727fb4309d8 Create Date: 2015-09-17 04:22:21.262285 """ # revision identifiers, used by Alembic. revision = '538eeb160af6' down_revision = '1727fb4309d8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generate...
"""empty message Revision ID: 538eeb160af6 Revises: 1727fb4309d8 Create Date: 2015-09-17 04:22:21.262285 """ # revision identifiers, used by Alembic. revision = '538eeb160af6' down_revision = '6b9d673d8e30' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
"""empty message Revision ID: 538eeb160af6 Revises: 1727fb4309d8 Create Date: 2015-09-17 04:22:21.262285 """ # revision identifiers, used by Alembic. revision = '538eeb160af6' down_revision = '1727fb4309d8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
<commit_before>"""empty message Revision ID: 538eeb160af6 Revises: 1727fb4309d8 Create Date: 2015-09-17 04:22:21.262285 """ # revision identifiers, used by Alembic. revision = '538eeb160af6' down_revision = '1727fb4309d8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generate...
aae0a19e6b03c9b42272f403cc1e5e7c943ea8ab
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup, find_packages import os def read_file(filename): """Read a file into a string""" path...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup, find_packages import os def read_file(filename): """Read a file into a string""" path...
Set long description content type to markdown
Set long description content type to markdown
Python
mit
mback2k/python-hcalendar
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup, find_packages import os def read_file(filename): """Read a file into a string""" path...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup, find_packages import os def read_file(filename): """Read a file into a string""" path...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup, find_packages import os def read_file(filename): """Read a file into a str...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup, find_packages import os def read_file(filename): """Read a file into a string""" path...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup, find_packages import os def read_file(filename): """Read a file into a string""" path...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup, find_packages import os def read_file(filename): """Read a file into a str...
fea8e206f3ef2755710a585b6aa76ce5c148a817
setup.py
setup.py
#! /usr/bin/env python from setuptools import setup, find_packages setup( name='armet', version='0.3.0-pre', description='Clean and modern framework for creating RESTful APIs.', author='Concordus Applications', author_email='[email protected]', url='http://github.com/armet/python-armet...
#! /usr/bin/env python from setuptools import setup, find_packages setup( name='armet', version='0.3.0-pre', description='Clean and modern framework for creating RESTful APIs.', author='Concordus Applications', author_email='[email protected]', url='http://github.com/armet/python-armet...
Add httplib2 as a test dependency.
Add httplib2 as a test dependency.
Python
mit
armet/python-armet
#! /usr/bin/env python from setuptools import setup, find_packages setup( name='armet', version='0.3.0-pre', description='Clean and modern framework for creating RESTful APIs.', author='Concordus Applications', author_email='[email protected]', url='http://github.com/armet/python-armet...
#! /usr/bin/env python from setuptools import setup, find_packages setup( name='armet', version='0.3.0-pre', description='Clean and modern framework for creating RESTful APIs.', author='Concordus Applications', author_email='[email protected]', url='http://github.com/armet/python-armet...
<commit_before>#! /usr/bin/env python from setuptools import setup, find_packages setup( name='armet', version='0.3.0-pre', description='Clean and modern framework for creating RESTful APIs.', author='Concordus Applications', author_email='[email protected]', url='http://github.com/arm...
#! /usr/bin/env python from setuptools import setup, find_packages setup( name='armet', version='0.3.0-pre', description='Clean and modern framework for creating RESTful APIs.', author='Concordus Applications', author_email='[email protected]', url='http://github.com/armet/python-armet...
#! /usr/bin/env python from setuptools import setup, find_packages setup( name='armet', version='0.3.0-pre', description='Clean and modern framework for creating RESTful APIs.', author='Concordus Applications', author_email='[email protected]', url='http://github.com/armet/python-armet...
<commit_before>#! /usr/bin/env python from setuptools import setup, find_packages setup( name='armet', version='0.3.0-pre', description='Clean and modern framework for creating RESTful APIs.', author='Concordus Applications', author_email='[email protected]', url='http://github.com/arm...
20117a8c35ef47842a98bff92fc98773508ebbe0
setup.py
setup.py
""" Usage instructions: - If you are installing: `python setup.py install` - If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal` """ try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except ImportError: try: long_description = open('...
""" Usage instructions: - If you are installing: `python setup.py install` - If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal` """ try: long_description = open('README.rst').read() except ImportError: import pypandoc long_description = pypandoc.convert('README.md', ...
Make README publishing more conservative
Make README publishing more conservative
Python
mit
boppreh/keyboard,glitchassassin/keyboard
""" Usage instructions: - If you are installing: `python setup.py install` - If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal` """ try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except ImportError: try: long_description = open('...
""" Usage instructions: - If you are installing: `python setup.py install` - If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal` """ try: long_description = open('README.rst').read() except ImportError: import pypandoc long_description = pypandoc.convert('README.md', ...
<commit_before>""" Usage instructions: - If you are installing: `python setup.py install` - If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal` """ try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except ImportError: try: long_descr...
""" Usage instructions: - If you are installing: `python setup.py install` - If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal` """ try: long_description = open('README.rst').read() except ImportError: import pypandoc long_description = pypandoc.convert('README.md', ...
""" Usage instructions: - If you are installing: `python setup.py install` - If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal` """ try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except ImportError: try: long_description = open('...
<commit_before>""" Usage instructions: - If you are installing: `python setup.py install` - If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal` """ try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except ImportError: try: long_descr...
d2d822a9fb60bbc8ded7f9e3c70d91cf25f794b2
src/volunteers/models.py
src/volunteers/models.py
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.validators import MinValueValidator class Volunteer(models.Model): first_name = models.CharField(_('First name'), max_length=100) last_name = models.CharField(_('Last name'), max_length=100) age = models....
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.validators import MinValueValidator class Volunteer(models.Model): first_name = models.CharField(_('First name'), max_length=100) last_name = models.CharField(_('Last name'), max_length=100) age = models....
Add group name to volunteer string representation
Add group name to volunteer string representation
Python
mit
mrts/foodbank-campaign,mrts/foodbank-campaign,mrts/foodbank-campaign,mrts/foodbank-campaign
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.validators import MinValueValidator class Volunteer(models.Model): first_name = models.CharField(_('First name'), max_length=100) last_name = models.CharField(_('Last name'), max_length=100) age = models....
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.validators import MinValueValidator class Volunteer(models.Model): first_name = models.CharField(_('First name'), max_length=100) last_name = models.CharField(_('Last name'), max_length=100) age = models....
<commit_before>from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.validators import MinValueValidator class Volunteer(models.Model): first_name = models.CharField(_('First name'), max_length=100) last_name = models.CharField(_('Last name'), max_length=100) ...
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.validators import MinValueValidator class Volunteer(models.Model): first_name = models.CharField(_('First name'), max_length=100) last_name = models.CharField(_('Last name'), max_length=100) age = models....
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.validators import MinValueValidator class Volunteer(models.Model): first_name = models.CharField(_('First name'), max_length=100) last_name = models.CharField(_('Last name'), max_length=100) age = models....
<commit_before>from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.validators import MinValueValidator class Volunteer(models.Model): first_name = models.CharField(_('First name'), max_length=100) last_name = models.CharField(_('Last name'), max_length=100) ...
e57e13bde61a233b18504ab1617c6ecabad20fc3
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup from setuptools import find_packages import re def find_version(): return re.search(r"^__version__ = '(.*)'$", open('cantools/version.py', 'r').read(), re.MULTILINE).group(1) setup(name='cantools', version=find_v...
#!/usr/bin/env python from setuptools import setup from setuptools import find_packages import re def find_version(): return re.search(r"^__version__ = '(.*)'$", open('cantools/version.py', 'r').read(), re.MULTILINE).group(1) setup(name='cantools', version=find_v...
Remove per patch version classifiers
Remove per patch version classifiers
Python
mit
eerimoq/cantools,cantools/cantools
#!/usr/bin/env python from setuptools import setup from setuptools import find_packages import re def find_version(): return re.search(r"^__version__ = '(.*)'$", open('cantools/version.py', 'r').read(), re.MULTILINE).group(1) setup(name='cantools', version=find_v...
#!/usr/bin/env python from setuptools import setup from setuptools import find_packages import re def find_version(): return re.search(r"^__version__ = '(.*)'$", open('cantools/version.py', 'r').read(), re.MULTILINE).group(1) setup(name='cantools', version=find_v...
<commit_before>#!/usr/bin/env python from setuptools import setup from setuptools import find_packages import re def find_version(): return re.search(r"^__version__ = '(.*)'$", open('cantools/version.py', 'r').read(), re.MULTILINE).group(1) setup(name='cantools', ...
#!/usr/bin/env python from setuptools import setup from setuptools import find_packages import re def find_version(): return re.search(r"^__version__ = '(.*)'$", open('cantools/version.py', 'r').read(), re.MULTILINE).group(1) setup(name='cantools', version=find_v...
#!/usr/bin/env python from setuptools import setup from setuptools import find_packages import re def find_version(): return re.search(r"^__version__ = '(.*)'$", open('cantools/version.py', 'r').read(), re.MULTILINE).group(1) setup(name='cantools', version=find_v...
<commit_before>#!/usr/bin/env python from setuptools import setup from setuptools import find_packages import re def find_version(): return re.search(r"^__version__ = '(.*)'$", open('cantools/version.py', 'r').read(), re.MULTILINE).group(1) setup(name='cantools', ...
621968ca6bd2fb986d83ccc8d4c0d5a83ce3aadb
setup.py
setup.py
from setuptools import setup import generate generate.run() setup( name='nnpy', version='0.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='[email protected]', description='cffi-based Python bindings for nanomsg', long_description=open(...
from setuptools import setup import generate generate.run() setup( name='nnpy', version='0.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='[email protected]', description='cffi-based Python bindings for nanomsg', long_description=open(...
Add tested python version in classifiers
Add tested python version in classifiers
Python
mit
nanomsg/nnpy
from setuptools import setup import generate generate.run() setup( name='nnpy', version='0.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='[email protected]', description='cffi-based Python bindings for nanomsg', long_description=open(...
from setuptools import setup import generate generate.run() setup( name='nnpy', version='0.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='[email protected]', description='cffi-based Python bindings for nanomsg', long_description=open(...
<commit_before>from setuptools import setup import generate generate.run() setup( name='nnpy', version='0.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='[email protected]', description='cffi-based Python bindings for nanomsg', long_de...
from setuptools import setup import generate generate.run() setup( name='nnpy', version='0.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='[email protected]', description='cffi-based Python bindings for nanomsg', long_description=open(...
from setuptools import setup import generate generate.run() setup( name='nnpy', version='0.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='[email protected]', description='cffi-based Python bindings for nanomsg', long_description=open(...
<commit_before>from setuptools import setup import generate generate.run() setup( name='nnpy', version='0.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='[email protected]', description='cffi-based Python bindings for nanomsg', long_de...
80f59dd5b99605d212243641d01fcd635ddd0d93
setup.py
setup.py
#! /usr/bin/env python from setuptools import find_packages, setup setup(name='oemof.db', # Unfortunately we can't use a `__version__` attribute on `oemof.db` as # we can't import that module here. It depends on packages which might # not be available prior to installation. version='0.0.6dev',...
#! /usr/bin/env python from setuptools import find_packages, setup setup(name='oemof.db', # Unfortunately we can't use a `__version__` attribute on `oemof.db` as # we can't import that module here. It depends on packages which might # not be available prior to installation. version='0.0.6dev',...
Drop upper version bound on pandas
Drop upper version bound on pandas There's really no reason for having it.
Python
mit
oemof/oemof.db
#! /usr/bin/env python from setuptools import find_packages, setup setup(name='oemof.db', # Unfortunately we can't use a `__version__` attribute on `oemof.db` as # we can't import that module here. It depends on packages which might # not be available prior to installation. version='0.0.6dev',...
#! /usr/bin/env python from setuptools import find_packages, setup setup(name='oemof.db', # Unfortunately we can't use a `__version__` attribute on `oemof.db` as # we can't import that module here. It depends on packages which might # not be available prior to installation. version='0.0.6dev',...
<commit_before>#! /usr/bin/env python from setuptools import find_packages, setup setup(name='oemof.db', # Unfortunately we can't use a `__version__` attribute on `oemof.db` as # we can't import that module here. It depends on packages which might # not be available prior to installation. vers...
#! /usr/bin/env python from setuptools import find_packages, setup setup(name='oemof.db', # Unfortunately we can't use a `__version__` attribute on `oemof.db` as # we can't import that module here. It depends on packages which might # not be available prior to installation. version='0.0.6dev',...
#! /usr/bin/env python from setuptools import find_packages, setup setup(name='oemof.db', # Unfortunately we can't use a `__version__` attribute on `oemof.db` as # we can't import that module here. It depends on packages which might # not be available prior to installation. version='0.0.6dev',...
<commit_before>#! /usr/bin/env python from setuptools import find_packages, setup setup(name='oemof.db', # Unfortunately we can't use a `__version__` attribute on `oemof.db` as # we can't import that module here. It depends on packages which might # not be available prior to installation. vers...
e1111ad6e8802b3c90df55e05eb695d6db9005e4
import_script/create_users.py
import_script/create_users.py
#!/usr/bin/python import django.contrib.auth.models as auth_models import django.contrib.contenttypes as contenttypes def main(): # Read only user: # auth_models.User.objects.create_user('cube', 'toolkit_admin_readonly@localhost', '***REMOVED***') # Read/write user: user_rw = auth_models.User.objects...
#!/usr/bin/python import django.contrib.auth.models as auth_models import django.contrib.contenttypes as contenttypes def get_password(): print "*" * 80 password = raw_input("Please enter string to use as admin password: ") check_password = None while check_password != password: print ...
Remove cube credentials from import script
Remove cube credentials from import script
Python
agpl-3.0
BenMotz/cubetoolkit,BenMotz/cubetoolkit,BenMotz/cubetoolkit,BenMotz/cubetoolkit
#!/usr/bin/python import django.contrib.auth.models as auth_models import django.contrib.contenttypes as contenttypes def main(): # Read only user: # auth_models.User.objects.create_user('cube', 'toolkit_admin_readonly@localhost', '***REMOVED***') # Read/write user: user_rw = auth_models.User.objects...
#!/usr/bin/python import django.contrib.auth.models as auth_models import django.contrib.contenttypes as contenttypes def get_password(): print "*" * 80 password = raw_input("Please enter string to use as admin password: ") check_password = None while check_password != password: print ...
<commit_before>#!/usr/bin/python import django.contrib.auth.models as auth_models import django.contrib.contenttypes as contenttypes def main(): # Read only user: # auth_models.User.objects.create_user('cube', 'toolkit_admin_readonly@localhost', '***REMOVED***') # Read/write user: user_rw = auth_mode...
#!/usr/bin/python import django.contrib.auth.models as auth_models import django.contrib.contenttypes as contenttypes def get_password(): print "*" * 80 password = raw_input("Please enter string to use as admin password: ") check_password = None while check_password != password: print ...
#!/usr/bin/python import django.contrib.auth.models as auth_models import django.contrib.contenttypes as contenttypes def main(): # Read only user: # auth_models.User.objects.create_user('cube', 'toolkit_admin_readonly@localhost', '***REMOVED***') # Read/write user: user_rw = auth_models.User.objects...
<commit_before>#!/usr/bin/python import django.contrib.auth.models as auth_models import django.contrib.contenttypes as contenttypes def main(): # Read only user: # auth_models.User.objects.create_user('cube', 'toolkit_admin_readonly@localhost', '***REMOVED***') # Read/write user: user_rw = auth_mode...
e6457c384eaa13eff82217ef4eb15f580efd8121
setup.py
setup.py
import re from setuptools import setup init_py = open('wikipediabase/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) metadata['doc'] = re.findall('"""(.+)"""', init_py)[0] setup( name='wikipediabase', version=metadata['version'], description=metadata['doc'], autho...
import re from setuptools import setup init_py = open('wikipediabase/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) metadata['doc'] = re.findall('"""(.+)"""', init_py)[0] setup( name='wikipediabase', version=metadata['version'], description=metadata['doc'], autho...
Add unidecode as a dependency
Add unidecode as a dependency
Python
apache-2.0
fakedrake/WikipediaBase
import re from setuptools import setup init_py = open('wikipediabase/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) metadata['doc'] = re.findall('"""(.+)"""', init_py)[0] setup( name='wikipediabase', version=metadata['version'], description=metadata['doc'], autho...
import re from setuptools import setup init_py = open('wikipediabase/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) metadata['doc'] = re.findall('"""(.+)"""', init_py)[0] setup( name='wikipediabase', version=metadata['version'], description=metadata['doc'], autho...
<commit_before>import re from setuptools import setup init_py = open('wikipediabase/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) metadata['doc'] = re.findall('"""(.+)"""', init_py)[0] setup( name='wikipediabase', version=metadata['version'], description=metadata['d...
import re from setuptools import setup init_py = open('wikipediabase/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) metadata['doc'] = re.findall('"""(.+)"""', init_py)[0] setup( name='wikipediabase', version=metadata['version'], description=metadata['doc'], autho...
import re from setuptools import setup init_py = open('wikipediabase/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) metadata['doc'] = re.findall('"""(.+)"""', init_py)[0] setup( name='wikipediabase', version=metadata['version'], description=metadata['doc'], autho...
<commit_before>import re from setuptools import setup init_py = open('wikipediabase/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) metadata['doc'] = re.findall('"""(.+)"""', init_py)[0] setup( name='wikipediabase', version=metadata['version'], description=metadata['d...
1a37d53df02942cb27794303e68fe041f73f5135
setup.py
setup.py
import os from setuptools import setup from setuptools import find_packages setup( name='MobOff', version='0.1', py_modules=['moboff'], packages=find_packages(), description = 'Download youtube music and send to devices', author = 'Parth Verma', author_email = '...
import os from setuptools import setup from setuptools import find_packages setup( name='MobOff', version='0.2', py_modules=['moboff'], packages=find_packages(), description = 'Download youtube music and send to devices', author = 'Parth Verma', author_email = '...
Tag updated and download link added
Tag updated and download link added
Python
mit
Parth-Vader/MobOff
import os from setuptools import setup from setuptools import find_packages setup( name='MobOff', version='0.1', py_modules=['moboff'], packages=find_packages(), description = 'Download youtube music and send to devices', author = 'Parth Verma', author_email = '...
import os from setuptools import setup from setuptools import find_packages setup( name='MobOff', version='0.2', py_modules=['moboff'], packages=find_packages(), description = 'Download youtube music and send to devices', author = 'Parth Verma', author_email = '...
<commit_before>import os from setuptools import setup from setuptools import find_packages setup( name='MobOff', version='0.1', py_modules=['moboff'], packages=find_packages(), description = 'Download youtube music and send to devices', author = 'Parth Verma', a...
import os from setuptools import setup from setuptools import find_packages setup( name='MobOff', version='0.2', py_modules=['moboff'], packages=find_packages(), description = 'Download youtube music and send to devices', author = 'Parth Verma', author_email = '...
import os from setuptools import setup from setuptools import find_packages setup( name='MobOff', version='0.1', py_modules=['moboff'], packages=find_packages(), description = 'Download youtube music and send to devices', author = 'Parth Verma', author_email = '...
<commit_before>import os from setuptools import setup from setuptools import find_packages setup( name='MobOff', version='0.1', py_modules=['moboff'], packages=find_packages(), description = 'Download youtube music and send to devices', author = 'Parth Verma', a...
c89abd6a285225313c91ba03c0fd8ab2cfed399d
setup.py
setup.py
#!/usr/bin/env python import os import urllib import zipfile script_path = os.path.dirname(os.path.realpath(__file__)) packer_archive_path = script_path + "/packer.zip" bin_path = script_path + "/bin" if not os.path.isfile(bin_path + "/packer"): if not os.path.exists(bin_path): os.makedirs(bin_path) ...
#!/usr/bin/env python import os import urllib import zipfile script_path = os.path.dirname(os.path.realpath(__file__)) packer_archive_path = script_path + "/packer.zip" bin_path = script_path + "/bin" if not os.path.isfile(bin_path + "/packer"): if not os.path.exists(bin_path): os.makedirs(bin_path) ...
Fix false positive octal syntax warning
Fix false positive octal syntax warning
Python
unlicense
dharmab/centos-vagrant
#!/usr/bin/env python import os import urllib import zipfile script_path = os.path.dirname(os.path.realpath(__file__)) packer_archive_path = script_path + "/packer.zip" bin_path = script_path + "/bin" if not os.path.isfile(bin_path + "/packer"): if not os.path.exists(bin_path): os.makedirs(bin_path) ...
#!/usr/bin/env python import os import urllib import zipfile script_path = os.path.dirname(os.path.realpath(__file__)) packer_archive_path = script_path + "/packer.zip" bin_path = script_path + "/bin" if not os.path.isfile(bin_path + "/packer"): if not os.path.exists(bin_path): os.makedirs(bin_path) ...
<commit_before>#!/usr/bin/env python import os import urllib import zipfile script_path = os.path.dirname(os.path.realpath(__file__)) packer_archive_path = script_path + "/packer.zip" bin_path = script_path + "/bin" if not os.path.isfile(bin_path + "/packer"): if not os.path.exists(bin_path): os.makedirs...
#!/usr/bin/env python import os import urllib import zipfile script_path = os.path.dirname(os.path.realpath(__file__)) packer_archive_path = script_path + "/packer.zip" bin_path = script_path + "/bin" if not os.path.isfile(bin_path + "/packer"): if not os.path.exists(bin_path): os.makedirs(bin_path) ...
#!/usr/bin/env python import os import urllib import zipfile script_path = os.path.dirname(os.path.realpath(__file__)) packer_archive_path = script_path + "/packer.zip" bin_path = script_path + "/bin" if not os.path.isfile(bin_path + "/packer"): if not os.path.exists(bin_path): os.makedirs(bin_path) ...
<commit_before>#!/usr/bin/env python import os import urllib import zipfile script_path = os.path.dirname(os.path.realpath(__file__)) packer_archive_path = script_path + "/packer.zip" bin_path = script_path + "/bin" if not os.path.isfile(bin_path + "/packer"): if not os.path.exists(bin_path): os.makedirs...
110f62562a4802f99c93a53ea09e1e3deb2b3714
setup.py
setup.py
from setuptools import setup, find_packages import os version = '0.3.10' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin...
from setuptools import setup, find_packages import os version = '0.3.11' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin...
Increase to version 0.3.11 due to TG-dev requiring it for ming support
Increase to version 0.3.11 due to TG-dev requiring it for ming support
Python
mit
pedersen/tgtools.tgext-admin,pedersen/tgtools.tgext-admin
from setuptools import setup, find_packages import os version = '0.3.10' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin...
from setuptools import setup, find_packages import os version = '0.3.11' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin...
<commit_before>from setuptools import setup, find_packages import os version = '0.3.10' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(na...
from setuptools import setup, find_packages import os version = '0.3.11' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin...
from setuptools import setup, find_packages import os version = '0.3.10' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin...
<commit_before>from setuptools import setup, find_packages import os version = '0.3.10' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(na...
23f2306617a4e4bceecd20190c328b2b3418abc4
setup.py
setup.py
#! /usr/bin/python """Setuptools-based setup script for datreant. For a basic installation just type the command:: python setup.py install """ from setuptools import setup setup(name='datreant', version='0.5.1', author='David Dotson', author_email='[email protected]', packages=['datreant'...
#! /usr/bin/python """Setuptools-based setup script for datreant. For a basic installation just type the command:: python setup.py install """ from setuptools import setup setup(name='datreant', version='0.5.1', author='David Dotson', author_email='[email protected]', packages=['datreant',...
Add PyYAML & numpy dependency
Add PyYAML & numpy dependency I'm adding numpy too because we import it directly.
Python
bsd-3-clause
datreant/datreant,dotsdl/datreant,datreant/datreant.core,datreant/datreant.core,datreant/datreant,datreant/datreant.data
#! /usr/bin/python """Setuptools-based setup script for datreant. For a basic installation just type the command:: python setup.py install """ from setuptools import setup setup(name='datreant', version='0.5.1', author='David Dotson', author_email='[email protected]', packages=['datreant'...
#! /usr/bin/python """Setuptools-based setup script for datreant. For a basic installation just type the command:: python setup.py install """ from setuptools import setup setup(name='datreant', version='0.5.1', author='David Dotson', author_email='[email protected]', packages=['datreant',...
<commit_before>#! /usr/bin/python """Setuptools-based setup script for datreant. For a basic installation just type the command:: python setup.py install """ from setuptools import setup setup(name='datreant', version='0.5.1', author='David Dotson', author_email='[email protected]', packa...
#! /usr/bin/python """Setuptools-based setup script for datreant. For a basic installation just type the command:: python setup.py install """ from setuptools import setup setup(name='datreant', version='0.5.1', author='David Dotson', author_email='[email protected]', packages=['datreant',...
#! /usr/bin/python """Setuptools-based setup script for datreant. For a basic installation just type the command:: python setup.py install """ from setuptools import setup setup(name='datreant', version='0.5.1', author='David Dotson', author_email='[email protected]', packages=['datreant'...
<commit_before>#! /usr/bin/python """Setuptools-based setup script for datreant. For a basic installation just type the command:: python setup.py install """ from setuptools import setup setup(name='datreant', version='0.5.1', author='David Dotson', author_email='[email protected]', packa...
95e15792b50f28c5c40dcad17de2fd4535345bc8
setup.py
setup.py
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as readme_file: long_description = readme_file.read() setup( name='pyfds', description='Modular field simulation tool using finite differences.', long_description=long...
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as readme_file: long_description = readme_file.read() setup( name='pyfds', description='Modular field simulation tool using finite differences.', long_description=long...
Add siprefix to runtime dependencies.
Add siprefix to runtime dependencies.
Python
bsd-3-clause
emtpb/pyfds
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as readme_file: long_description = readme_file.read() setup( name='pyfds', description='Modular field simulation tool using finite differences.', long_description=long...
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as readme_file: long_description = readme_file.read() setup( name='pyfds', description='Modular field simulation tool using finite differences.', long_description=long...
<commit_before>from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as readme_file: long_description = readme_file.read() setup( name='pyfds', description='Modular field simulation tool using finite differences.', long_d...
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as readme_file: long_description = readme_file.read() setup( name='pyfds', description='Modular field simulation tool using finite differences.', long_description=long...
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as readme_file: long_description = readme_file.read() setup( name='pyfds', description='Modular field simulation tool using finite differences.', long_description=long...
<commit_before>from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as readme_file: long_description = readme_file.read() setup( name='pyfds', description='Modular field simulation tool using finite differences.', long_d...
a25f36c76301f67beab29dc2a273d819c49cd8eb
setup.py
setup.py
import os import sys try: from setuptools import setup except: from distutils.core import setup from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.path.abspath(path)) VERSION="0.0.3" install_requires = [] setup(name='imgix', cmdclass={'build_py': build_py}, ver...
import os import sys try: from setuptools import setup except: from distutils.core import setup from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.path.abspath(path)) VERSION="0.0.3" install_requires = [] setup(name='imgix', cmdclass={'build_py': build_py}, ver...
Change the URL of the package
Change the URL of the package
Python
bsd-2-clause
imgix/imgix-python
import os import sys try: from setuptools import setup except: from distutils.core import setup from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.path.abspath(path)) VERSION="0.0.3" install_requires = [] setup(name='imgix', cmdclass={'build_py': build_py}, ver...
import os import sys try: from setuptools import setup except: from distutils.core import setup from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.path.abspath(path)) VERSION="0.0.3" install_requires = [] setup(name='imgix', cmdclass={'build_py': build_py}, ver...
<commit_before>import os import sys try: from setuptools import setup except: from distutils.core import setup from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.path.abspath(path)) VERSION="0.0.3" install_requires = [] setup(name='imgix', cmdclass={'build_py': ...
import os import sys try: from setuptools import setup except: from distutils.core import setup from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.path.abspath(path)) VERSION="0.0.3" install_requires = [] setup(name='imgix', cmdclass={'build_py': build_py}, ver...
import os import sys try: from setuptools import setup except: from distutils.core import setup from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.path.abspath(path)) VERSION="0.0.3" install_requires = [] setup(name='imgix', cmdclass={'build_py': build_py}, ver...
<commit_before>import os import sys try: from setuptools import setup except: from distutils.core import setup from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.path.abspath(path)) VERSION="0.0.3" install_requires = [] setup(name='imgix', cmdclass={'build_py': ...
b0e44fcca09a2d62ea0dc217d1538e03d48e2558
setup.py
setup.py
from setuptools import setup, find_packages from buildcmds.addon import addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_versio...
from setuptools import setup, find_packages from buildcmds.addon import bdist_blender_addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single...
Rename command addon to bdist_blender_addon
Rename command addon to bdist_blender_addon
Python
mit
Previz-app/io_scene_dnb_previz,Previz-app/io_scene_previz,Previz-app/io_scene_previz,Previz-app/io_scene_dnb_previz
from setuptools import setup, find_packages from buildcmds.addon import addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_versio...
from setuptools import setup, find_packages from buildcmds.addon import bdist_blender_addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single...
<commit_before>from setuptools import setup, find_packages from buildcmds.addon import addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/singl...
from setuptools import setup, find_packages from buildcmds.addon import bdist_blender_addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single...
from setuptools import setup, find_packages from buildcmds.addon import addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_versio...
<commit_before>from setuptools import setup, find_packages from buildcmds.addon import addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/singl...
3a3c1491cf185899a5e5b6288ae0a3542b536dee
setup.py
setup.py
from distutils.core import setup setup( name="pocketlint", description="Pocket-lint a composite linter and style checker.", version="0.5.7", maintainer="Curtis C. Hovey", maintainer_email="[email protected]", url="https://launchpad.net/pocket-lint", packages=[ 'pocketlint', 'poc...
from distutils.core import setup setup( name="pocketlint", description="Pocket-lint a composite linter and style checker.", version="0.5.8", maintainer="Curtis C. Hovey", maintainer_email="[email protected]", url="https://launchpad.net/pocket-lint", packages=[ 'pocketlint', 'poc...
Increment version to suport Python 2.6.
Increment version to suport Python 2.6.
Python
mit
chevah/pocket-lint,chevah/pocket-lint
from distutils.core import setup setup( name="pocketlint", description="Pocket-lint a composite linter and style checker.", version="0.5.7", maintainer="Curtis C. Hovey", maintainer_email="[email protected]", url="https://launchpad.net/pocket-lint", packages=[ 'pocketlint', 'poc...
from distutils.core import setup setup( name="pocketlint", description="Pocket-lint a composite linter and style checker.", version="0.5.8", maintainer="Curtis C. Hovey", maintainer_email="[email protected]", url="https://launchpad.net/pocket-lint", packages=[ 'pocketlint', 'poc...
<commit_before>from distutils.core import setup setup( name="pocketlint", description="Pocket-lint a composite linter and style checker.", version="0.5.7", maintainer="Curtis C. Hovey", maintainer_email="[email protected]", url="https://launchpad.net/pocket-lint", packages=[ 'po...
from distutils.core import setup setup( name="pocketlint", description="Pocket-lint a composite linter and style checker.", version="0.5.8", maintainer="Curtis C. Hovey", maintainer_email="[email protected]", url="https://launchpad.net/pocket-lint", packages=[ 'pocketlint', 'poc...
from distutils.core import setup setup( name="pocketlint", description="Pocket-lint a composite linter and style checker.", version="0.5.7", maintainer="Curtis C. Hovey", maintainer_email="[email protected]", url="https://launchpad.net/pocket-lint", packages=[ 'pocketlint', 'poc...
<commit_before>from distutils.core import setup setup( name="pocketlint", description="Pocket-lint a composite linter and style checker.", version="0.5.7", maintainer="Curtis C. Hovey", maintainer_email="[email protected]", url="https://launchpad.net/pocket-lint", packages=[ 'po...
f52c77b746ca98ed06df293ba142a5ecf2577a62
setup.py
setup.py
import sys from setuptools import setup # Be verbose about Python < 3.4 being deprecated. if sys.version_info < (3, 4): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.4+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup( name='las...
import sys from setuptools import setup # Be verbose about Python < 3.5 being deprecated. if sys.version_info < (3, 5): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.5+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup( name='las...
Support is actually py >= 35
Support is actually py >= 35
Python
mit
erik/lastcast
import sys from setuptools import setup # Be verbose about Python < 3.4 being deprecated. if sys.version_info < (3, 4): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.4+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup( name='las...
import sys from setuptools import setup # Be verbose about Python < 3.5 being deprecated. if sys.version_info < (3, 5): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.5+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup( name='las...
<commit_before>import sys from setuptools import setup # Be verbose about Python < 3.4 being deprecated. if sys.version_info < (3, 4): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.4+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup...
import sys from setuptools import setup # Be verbose about Python < 3.5 being deprecated. if sys.version_info < (3, 5): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.5+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup( name='las...
import sys from setuptools import setup # Be verbose about Python < 3.4 being deprecated. if sys.version_info < (3, 4): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.4+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup( name='las...
<commit_before>import sys from setuptools import setup # Be verbose about Python < 3.4 being deprecated. if sys.version_info < (3, 4): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.4+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup...
ab55fab78743650eb9bb219957d7305114e4f8ca
setup.py
setup.py
#!/usr/bin/env python from setuptools import find_packages, Command setup_params = dict( name='bugimporters', version=0.1, author='Various contributers to the OpenHatch project, Berry Phillips', author_email='[email protected], [email protected]', packages=find_packages(), description='B...
#!/usr/bin/env python from setuptools import find_packages, Command setup_params = dict( name='bugimporters', version=0.1, author='Various contributers to the OpenHatch project, Berry Phillips', author_email='[email protected], [email protected]', packages=find_packages(), description='B...
Add a dependency on Scrapy
Add a dependency on Scrapy
Python
agpl-3.0
openhatch/oh-bugimporters,openhatch/oh-bugimporters,openhatch/oh-bugimporters
#!/usr/bin/env python from setuptools import find_packages, Command setup_params = dict( name='bugimporters', version=0.1, author='Various contributers to the OpenHatch project, Berry Phillips', author_email='[email protected], [email protected]', packages=find_packages(), description='B...
#!/usr/bin/env python from setuptools import find_packages, Command setup_params = dict( name='bugimporters', version=0.1, author='Various contributers to the OpenHatch project, Berry Phillips', author_email='[email protected], [email protected]', packages=find_packages(), description='B...
<commit_before>#!/usr/bin/env python from setuptools import find_packages, Command setup_params = dict( name='bugimporters', version=0.1, author='Various contributers to the OpenHatch project, Berry Phillips', author_email='[email protected], [email protected]', packages=find_packages(), ...
#!/usr/bin/env python from setuptools import find_packages, Command setup_params = dict( name='bugimporters', version=0.1, author='Various contributers to the OpenHatch project, Berry Phillips', author_email='[email protected], [email protected]', packages=find_packages(), description='B...
#!/usr/bin/env python from setuptools import find_packages, Command setup_params = dict( name='bugimporters', version=0.1, author='Various contributers to the OpenHatch project, Berry Phillips', author_email='[email protected], [email protected]', packages=find_packages(), description='B...
<commit_before>#!/usr/bin/env python from setuptools import find_packages, Command setup_params = dict( name='bugimporters', version=0.1, author='Various contributers to the OpenHatch project, Berry Phillips', author_email='[email protected], [email protected]', packages=find_packages(), ...
3d888afa88326c97246947141c357509c2f72bbc
setup.py
setup.py
from distutils.core import setup setup( name='firebase-token-generator', version='1.2', author='Greg Soltis', author_email='[email protected]', py_modules=['firebase_token_generator'], license='LICENSE', url='https://github.com/firebase/firebase-token-generator-python', description='A u...
from distutils.core import setup setup( name='firebase-token-generator', version='1.3', author='Greg Soltis', author_email='[email protected]', zip_safe=False, py_modules=['firebase_token_generator'], license='LICENSE', url='https://github.com/firebase/firebase-token-generator-python', ...
Set zip_safe=False. Bump version to 1.3.
Set zip_safe=False. Bump version to 1.3.
Python
mit
googlearchive/firebase-token-generator-python
from distutils.core import setup setup( name='firebase-token-generator', version='1.2', author='Greg Soltis', author_email='[email protected]', py_modules=['firebase_token_generator'], license='LICENSE', url='https://github.com/firebase/firebase-token-generator-python', description='A u...
from distutils.core import setup setup( name='firebase-token-generator', version='1.3', author='Greg Soltis', author_email='[email protected]', zip_safe=False, py_modules=['firebase_token_generator'], license='LICENSE', url='https://github.com/firebase/firebase-token-generator-python', ...
<commit_before>from distutils.core import setup setup( name='firebase-token-generator', version='1.2', author='Greg Soltis', author_email='[email protected]', py_modules=['firebase_token_generator'], license='LICENSE', url='https://github.com/firebase/firebase-token-generator-python', d...
from distutils.core import setup setup( name='firebase-token-generator', version='1.3', author='Greg Soltis', author_email='[email protected]', zip_safe=False, py_modules=['firebase_token_generator'], license='LICENSE', url='https://github.com/firebase/firebase-token-generator-python', ...
from distutils.core import setup setup( name='firebase-token-generator', version='1.2', author='Greg Soltis', author_email='[email protected]', py_modules=['firebase_token_generator'], license='LICENSE', url='https://github.com/firebase/firebase-token-generator-python', description='A u...
<commit_before>from distutils.core import setup setup( name='firebase-token-generator', version='1.2', author='Greg Soltis', author_email='[email protected]', py_modules=['firebase_token_generator'], license='LICENSE', url='https://github.com/firebase/firebase-token-generator-python', d...
927e2bc4b8774cdffd753f99f63086baf437a509
setup.py
setup.py
from pip.download import PipSession from pip.req import parse_requirements from setuptools import setup setup( name='aws-portknock', version='0.1', py_modules=['aws_portknock'], description='Port knocking for AWS security groups', author='Michel Alexandre Salim', author_email='michel@michel-slm...
import os from pip.download import PipSession from pip.req import parse_requirements from setuptools import setup BASE_DIR = os.path.dirname(os.path.realpath(__file__)) reqs_file = os.path.join(BASE_DIR, 'requirements.txt') install_reqs = parse_requirements(reqs_file, session=PipSession()) setup( name='aws-portkn...
Add path to requirements.txt so installation from pip succeeds
Add path to requirements.txt so installation from pip succeeds cf http://lorenamesa.com/packaging-my-first-python-egg.html
Python
mpl-2.0
michel-slm/aws-portknock
from pip.download import PipSession from pip.req import parse_requirements from setuptools import setup setup( name='aws-portknock', version='0.1', py_modules=['aws_portknock'], description='Port knocking for AWS security groups', author='Michel Alexandre Salim', author_email='michel@michel-slm...
import os from pip.download import PipSession from pip.req import parse_requirements from setuptools import setup BASE_DIR = os.path.dirname(os.path.realpath(__file__)) reqs_file = os.path.join(BASE_DIR, 'requirements.txt') install_reqs = parse_requirements(reqs_file, session=PipSession()) setup( name='aws-portkn...
<commit_before>from pip.download import PipSession from pip.req import parse_requirements from setuptools import setup setup( name='aws-portknock', version='0.1', py_modules=['aws_portknock'], description='Port knocking for AWS security groups', author='Michel Alexandre Salim', author_email='mi...
import os from pip.download import PipSession from pip.req import parse_requirements from setuptools import setup BASE_DIR = os.path.dirname(os.path.realpath(__file__)) reqs_file = os.path.join(BASE_DIR, 'requirements.txt') install_reqs = parse_requirements(reqs_file, session=PipSession()) setup( name='aws-portkn...
from pip.download import PipSession from pip.req import parse_requirements from setuptools import setup setup( name='aws-portknock', version='0.1', py_modules=['aws_portknock'], description='Port knocking for AWS security groups', author='Michel Alexandre Salim', author_email='michel@michel-slm...
<commit_before>from pip.download import PipSession from pip.req import parse_requirements from setuptools import setup setup( name='aws-portknock', version='0.1', py_modules=['aws_portknock'], description='Port knocking for AWS security groups', author='Michel Alexandre Salim', author_email='mi...
03875be96ba09a252a05ba0ea84a3558c6428011
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup, find_packages reqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__)) , "requirements.txt") reqs = None with open(reqs_file) as f: reqs = f.readlines() setup( version='0.1.0', name='mediachain-client', descr...
#!/usr/bin/env python import os, sys from setuptools import setup, find_packages from setuptools.command.install import install as _install reqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__)) , "requirements.txt") reqs = None with open(reqs_file) as f: reqs = f.readlines() d...
Add pre-install protobuf gen script
Add pre-install protobuf gen script
Python
mit
mediachain/mediachain-client,mediachain/mediachain-client
#!/usr/bin/env python import os from setuptools import setup, find_packages reqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__)) , "requirements.txt") reqs = None with open(reqs_file) as f: reqs = f.readlines() setup( version='0.1.0', name='mediachain-client', descr...
#!/usr/bin/env python import os, sys from setuptools import setup, find_packages from setuptools.command.install import install as _install reqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__)) , "requirements.txt") reqs = None with open(reqs_file) as f: reqs = f.readlines() d...
<commit_before>#!/usr/bin/env python import os from setuptools import setup, find_packages reqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__)) , "requirements.txt") reqs = None with open(reqs_file) as f: reqs = f.readlines() setup( version='0.1.0', name='mediachain-cli...
#!/usr/bin/env python import os, sys from setuptools import setup, find_packages from setuptools.command.install import install as _install reqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__)) , "requirements.txt") reqs = None with open(reqs_file) as f: reqs = f.readlines() d...
#!/usr/bin/env python import os from setuptools import setup, find_packages reqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__)) , "requirements.txt") reqs = None with open(reqs_file) as f: reqs = f.readlines() setup( version='0.1.0', name='mediachain-client', descr...
<commit_before>#!/usr/bin/env python import os from setuptools import setup, find_packages reqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__)) , "requirements.txt") reqs = None with open(reqs_file) as f: reqs = f.readlines() setup( version='0.1.0', name='mediachain-cli...
453bd468d9de609999ef814f24111923177374fe
setup.py
setup.py
from setuptools import find_packages from setuptools import setup from pip import req _install_requirements = req.parse_requirements('requirements.txt') setup( name='jetway', version=open('VERSION').read().strip(), description=( 'Client library for the Jetway static site staging service.' ), ...
import uuid from setuptools import find_packages from setuptools import setup from pip import req _install_requirements = req.parse_requirements( 'requirements.txt', session=uuid.uuid1()) setup( name='jetway', version=open('VERSION').read().strip(), description=( 'Client library for the Jetwa...
Fix pip parse_requirements for v0.6+.
Fix pip parse_requirements for v0.6+.
Python
mit
grow/webreview-client
from setuptools import find_packages from setuptools import setup from pip import req _install_requirements = req.parse_requirements('requirements.txt') setup( name='jetway', version=open('VERSION').read().strip(), description=( 'Client library for the Jetway static site staging service.' ), ...
import uuid from setuptools import find_packages from setuptools import setup from pip import req _install_requirements = req.parse_requirements( 'requirements.txt', session=uuid.uuid1()) setup( name='jetway', version=open('VERSION').read().strip(), description=( 'Client library for the Jetwa...
<commit_before>from setuptools import find_packages from setuptools import setup from pip import req _install_requirements = req.parse_requirements('requirements.txt') setup( name='jetway', version=open('VERSION').read().strip(), description=( 'Client library for the Jetway static site staging se...
import uuid from setuptools import find_packages from setuptools import setup from pip import req _install_requirements = req.parse_requirements( 'requirements.txt', session=uuid.uuid1()) setup( name='jetway', version=open('VERSION').read().strip(), description=( 'Client library for the Jetwa...
from setuptools import find_packages from setuptools import setup from pip import req _install_requirements = req.parse_requirements('requirements.txt') setup( name='jetway', version=open('VERSION').read().strip(), description=( 'Client library for the Jetway static site staging service.' ), ...
<commit_before>from setuptools import find_packages from setuptools import setup from pip import req _install_requirements = req.parse_requirements('requirements.txt') setup( name='jetway', version=open('VERSION').read().strip(), description=( 'Client library for the Jetway static site staging se...
ee2d27eca45768a07a562405cf4431cb8d2b09bf
setup.py
setup.py
from distutils.core import setup setup(name='pyresttest', version='0.1', description='Python Rest Testing', maintainer='Naveen Malik', maintainer_email='[email protected]', url='https://github.com/svanoort/pyresttest', py_modules=['resttest','pycurl_benchmark','test_resttest'], license='Apa...
from distutils.core import setup setup(name='pyresttest', version='0.1', description='Python Rest Testing', maintainer='Sam Van Oort', maintainer_email='[email protected]', url='https://github.com/svanoort/pyresttest', py_modules=['resttest','test_resttest'], license='Apache License, Ve...
Set maintainer and add dependencies to distutils config
Set maintainer and add dependencies to distutils config
Python
apache-2.0
sunyanhui/pyresttest,satish-suradkar/pyresttest,suvarnaraju/pyresttest,wirewit/pyresttest,netjunki/pyresttest,MorrisJobke/pyresttest,wirewit/pyresttest,suvarnaraju/pyresttest,svanoort/pyresttest,alazaro/pyresttest,sunyanhui/pyresttest,TimYi/pyresttest,MorrisJobke/pyresttest,holdenweb/pyresttest,TimYi/pyresttest,alazaro...
from distutils.core import setup setup(name='pyresttest', version='0.1', description='Python Rest Testing', maintainer='Naveen Malik', maintainer_email='[email protected]', url='https://github.com/svanoort/pyresttest', py_modules=['resttest','pycurl_benchmark','test_resttest'], license='Apa...
from distutils.core import setup setup(name='pyresttest', version='0.1', description='Python Rest Testing', maintainer='Sam Van Oort', maintainer_email='[email protected]', url='https://github.com/svanoort/pyresttest', py_modules=['resttest','test_resttest'], license='Apache License, Ve...
<commit_before>from distutils.core import setup setup(name='pyresttest', version='0.1', description='Python Rest Testing', maintainer='Naveen Malik', maintainer_email='[email protected]', url='https://github.com/svanoort/pyresttest', py_modules=['resttest','pycurl_benchmark','test_resttest'], ...
from distutils.core import setup setup(name='pyresttest', version='0.1', description='Python Rest Testing', maintainer='Sam Van Oort', maintainer_email='[email protected]', url='https://github.com/svanoort/pyresttest', py_modules=['resttest','test_resttest'], license='Apache License, Ve...
from distutils.core import setup setup(name='pyresttest', version='0.1', description='Python Rest Testing', maintainer='Naveen Malik', maintainer_email='[email protected]', url='https://github.com/svanoort/pyresttest', py_modules=['resttest','pycurl_benchmark','test_resttest'], license='Apa...
<commit_before>from distutils.core import setup setup(name='pyresttest', version='0.1', description='Python Rest Testing', maintainer='Naveen Malik', maintainer_email='[email protected]', url='https://github.com/svanoort/pyresttest', py_modules=['resttest','pycurl_benchmark','test_resttest'], ...
b5898dc6d16868cd7908872916fa6099ad85049f
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='prompt_toolkit', author='Jonathan Slenders', version='0.25', license='LICENSE.txt', url='https://github.com/jonathanslenders/python-prompt-toolkit', description='Library for building powerfu...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='prompt_toolkit', author='Jonathan Slenders', version='0.25', license='LICENSE.txt', url='https://github.com/jonathanslenders/python-prompt-toolkit', description='Library for building powerfu...
Use again jedi==0.8.1. (This was pushed to pypi.)
Use again jedi==0.8.1. (This was pushed to pypi.)
Python
bsd-3-clause
melund/python-prompt-toolkit,ALSchwalm/python-prompt-toolkit,niklasf/python-prompt-toolkit,amjith/python-prompt-toolkit,jonathanslenders/python-prompt-toolkit,jaseg/python-prompt-toolkit,ddalex/python-prompt-toolkit
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='prompt_toolkit', author='Jonathan Slenders', version='0.25', license='LICENSE.txt', url='https://github.com/jonathanslenders/python-prompt-toolkit', description='Library for building powerfu...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='prompt_toolkit', author='Jonathan Slenders', version='0.25', license='LICENSE.txt', url='https://github.com/jonathanslenders/python-prompt-toolkit', description='Library for building powerfu...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='prompt_toolkit', author='Jonathan Slenders', version='0.25', license='LICENSE.txt', url='https://github.com/jonathanslenders/python-prompt-toolkit', description='Library for b...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='prompt_toolkit', author='Jonathan Slenders', version='0.25', license='LICENSE.txt', url='https://github.com/jonathanslenders/python-prompt-toolkit', description='Library for building powerfu...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='prompt_toolkit', author='Jonathan Slenders', version='0.25', license='LICENSE.txt', url='https://github.com/jonathanslenders/python-prompt-toolkit', description='Library for building powerfu...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='prompt_toolkit', author='Jonathan Slenders', version='0.25', license='LICENSE.txt', url='https://github.com/jonathanslenders/python-prompt-toolkit', description='Library for b...
2ac5d587c057d877db217b0303a06e0382bd8a2d
setup.py
setup.py
#!/usr/bin/python3 # SPDX-License-Identifier: LGPL-2.1+ import sys from setuptools import setup if sys.version_info < (3, 6): sys.exit("Sorry, we need at least Python 3.6.") setup( name="mkosi", version="5", description="Create legacy-free OS images", url="https://github.com/systemd/mkosi", ...
#!/usr/bin/python3 # SPDX-License-Identifier: LGPL-2.1+ import sys from setuptools import setup, Command class BuildManpage(Command): description = ('builds the manpage') user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): ...
Add custom command to build the manpage
Add custom command to build the manpage Remembering the exact pandoc incantation is annoying
Python
lgpl-2.1
systemd/mkosi,systemd/mkosi
#!/usr/bin/python3 # SPDX-License-Identifier: LGPL-2.1+ import sys from setuptools import setup if sys.version_info < (3, 6): sys.exit("Sorry, we need at least Python 3.6.") setup( name="mkosi", version="5", description="Create legacy-free OS images", url="https://github.com/systemd/mkosi", ...
#!/usr/bin/python3 # SPDX-License-Identifier: LGPL-2.1+ import sys from setuptools import setup, Command class BuildManpage(Command): description = ('builds the manpage') user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): ...
<commit_before>#!/usr/bin/python3 # SPDX-License-Identifier: LGPL-2.1+ import sys from setuptools import setup if sys.version_info < (3, 6): sys.exit("Sorry, we need at least Python 3.6.") setup( name="mkosi", version="5", description="Create legacy-free OS images", url="https://github.com/syst...
#!/usr/bin/python3 # SPDX-License-Identifier: LGPL-2.1+ import sys from setuptools import setup, Command class BuildManpage(Command): description = ('builds the manpage') user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): ...
#!/usr/bin/python3 # SPDX-License-Identifier: LGPL-2.1+ import sys from setuptools import setup if sys.version_info < (3, 6): sys.exit("Sorry, we need at least Python 3.6.") setup( name="mkosi", version="5", description="Create legacy-free OS images", url="https://github.com/systemd/mkosi", ...
<commit_before>#!/usr/bin/python3 # SPDX-License-Identifier: LGPL-2.1+ import sys from setuptools import setup if sys.version_info < (3, 6): sys.exit("Sorry, we need at least Python 3.6.") setup( name="mkosi", version="5", description="Create legacy-free OS images", url="https://github.com/syst...
8fea58292e41352b0b58947f4182dd32ff4f225d
opps/fields/models.py
opps/fields/models.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.boxes.models import OPPS_APPS FIELD_TYPE = ( ('checkbox', _('CheckBox')), ('radio', _('Radio')), ('text', _('Text')), ('textarea', _('TextArea')), ) class Fie...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.boxes.models import OPPS_APPS FIELD_TYPE = ( ('checkbox', _('CheckBox')), ('radio', _('Radio')), ('text', _('Text')), ('textarea', _('TextArea')), ) class Fie...
Add new model option to add field options if exist (radio/checkbox)
Add new model option to add field options if exist (radio/checkbox)
Python
mit
williamroot/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,williamroot/opps,opps/opps,opps/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,YACOWS/opps,opps/opps,williamroot/opps,YACOWS/opps,opps/opps
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.boxes.models import OPPS_APPS FIELD_TYPE = ( ('checkbox', _('CheckBox')), ('radio', _('Radio')), ('text', _('Text')), ('textarea', _('TextArea')), ) class Fie...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.boxes.models import OPPS_APPS FIELD_TYPE = ( ('checkbox', _('CheckBox')), ('radio', _('Radio')), ('text', _('Text')), ('textarea', _('TextArea')), ) class Fie...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.boxes.models import OPPS_APPS FIELD_TYPE = ( ('checkbox', _('CheckBox')), ('radio', _('Radio')), ('text', _('Text')), ('textarea', _('TextArea'))...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.boxes.models import OPPS_APPS FIELD_TYPE = ( ('checkbox', _('CheckBox')), ('radio', _('Radio')), ('text', _('Text')), ('textarea', _('TextArea')), ) class Fie...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.boxes.models import OPPS_APPS FIELD_TYPE = ( ('checkbox', _('CheckBox')), ('radio', _('Radio')), ('text', _('Text')), ('textarea', _('TextArea')), ) class Fie...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.boxes.models import OPPS_APPS FIELD_TYPE = ( ('checkbox', _('CheckBox')), ('radio', _('Radio')), ('text', _('Text')), ('textarea', _('TextArea'))...
4f730cb70fc4e65b568732fdcbb7f0209870bfca
osf_tests/settings.py
osf_tests/settings.py
# Use API defaults. This allows these settings to work with API tests from api.base.settings.defaults import * # noqa DEBUG_PROPAGATE_EXCEPTIONS = True #DATABASES = { # 'default': { # 'CONN_MAX_AGE': 0, # 'ENGINE': 'osf.db.backends.postgresql', # 'HOST': '', # 'NAME': 'osf-models-test',...
# Use API defaults. This allows these settings to work with API tests from api.base.settings.defaults import * # noqa DEBUG_PROPAGATE_EXCEPTIONS = True #DATABASES = { # 'default': { # 'CONN_MAX_AGE': 0, # 'ENGINE': 'osf.db.backends.postgresql', # 'HOST': '', # 'NAME': 'osf-models-test',...
Add in API testing version
Add in API testing version Signed-off-by: Chris Wisecarver <[email protected]>
Python
apache-2.0
cwisecarver/osf.io,chennan47/osf.io,mfraezz/osf.io,Johnetordoff/osf.io,cslzchen/osf.io,monikagrabowska/osf.io,baylee-d/osf.io,baylee-d/osf.io,crcresearch/osf.io,saradbowman/osf.io,monikagrabowska/osf.io,mattclark/osf.io,CenterForOpenScience/osf.io,Nesiehr/osf.io,brianjgeiger/osf.io,CenterForOpenScience/osf.io,Nesiehr/o...
# Use API defaults. This allows these settings to work with API tests from api.base.settings.defaults import * # noqa DEBUG_PROPAGATE_EXCEPTIONS = True #DATABASES = { # 'default': { # 'CONN_MAX_AGE': 0, # 'ENGINE': 'osf.db.backends.postgresql', # 'HOST': '', # 'NAME': 'osf-models-test',...
# Use API defaults. This allows these settings to work with API tests from api.base.settings.defaults import * # noqa DEBUG_PROPAGATE_EXCEPTIONS = True #DATABASES = { # 'default': { # 'CONN_MAX_AGE': 0, # 'ENGINE': 'osf.db.backends.postgresql', # 'HOST': '', # 'NAME': 'osf-models-test',...
<commit_before># Use API defaults. This allows these settings to work with API tests from api.base.settings.defaults import * # noqa DEBUG_PROPAGATE_EXCEPTIONS = True #DATABASES = { # 'default': { # 'CONN_MAX_AGE': 0, # 'ENGINE': 'osf.db.backends.postgresql', # 'HOST': '', # 'NAME': 'os...
# Use API defaults. This allows these settings to work with API tests from api.base.settings.defaults import * # noqa DEBUG_PROPAGATE_EXCEPTIONS = True #DATABASES = { # 'default': { # 'CONN_MAX_AGE': 0, # 'ENGINE': 'osf.db.backends.postgresql', # 'HOST': '', # 'NAME': 'osf-models-test',...
# Use API defaults. This allows these settings to work with API tests from api.base.settings.defaults import * # noqa DEBUG_PROPAGATE_EXCEPTIONS = True #DATABASES = { # 'default': { # 'CONN_MAX_AGE': 0, # 'ENGINE': 'osf.db.backends.postgresql', # 'HOST': '', # 'NAME': 'osf-models-test',...
<commit_before># Use API defaults. This allows these settings to work with API tests from api.base.settings.defaults import * # noqa DEBUG_PROPAGATE_EXCEPTIONS = True #DATABASES = { # 'default': { # 'CONN_MAX_AGE': 0, # 'ENGINE': 'osf.db.backends.postgresql', # 'HOST': '', # 'NAME': 'os...
6f83fb7dd071786dc01a015addbdb541e7eaf7db
meinberlin/apps/documents/migrations/0002_rename_document_to_chapter.py
meinberlin/apps/documents/migrations/0002_rename_document_to_chapter.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ('meinberlin_documents', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): atomic=False dependencies = [ ('meinberlin_documents', '0001_initial'), ] operations = [ migrations.RenameModel( ...
Work around a migration issue in sqlite
apps/documents: Work around a migration issue in sqlite
Python
agpl-3.0
liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ('meinberlin_documents', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): atomic=False dependencies = [ ('meinberlin_documents', '0001_initial'), ] operations = [ migrations.RenameModel( ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ('meinberlin_documents', '0001_initial'), ] operations = [ migrations.RenameModel( ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): atomic=False dependencies = [ ('meinberlin_documents', '0001_initial'), ] operations = [ migrations.RenameModel( ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ('meinberlin_documents', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ('meinberlin_documents', '0001_initial'), ] operations = [ migrations.RenameModel( ...
408ec05722cacd1e8574d9af206bffcf319c23b2
pipes/iam/__main__.py
pipes/iam/__main__.py
"""Create IAM Instance Profiles, Roles, Users, and Groups.""" import argparse import logging from .create_iam import create_iam_resources LOG = logging.getLogger(__name__) def main(): """Command to create IAM Instance Profiles, Roles, Users, and Groups.""" logging.basicConfig() parser = argparse.Argume...
"""Create IAM Instance Profiles, Roles, Users, and Groups.""" import argparse import logging from .create_iam import create_iam_resources LOG = logging.getLogger(__name__) def main(): """Command to create IAM Instance Profiles, Roles, Users, and Groups.""" logging.basicConfig() parser = argparse.Argume...
Add build as available environment
Add build as available environment
Python
apache-2.0
gogoair/foremast,gogoair/foremast
"""Create IAM Instance Profiles, Roles, Users, and Groups.""" import argparse import logging from .create_iam import create_iam_resources LOG = logging.getLogger(__name__) def main(): """Command to create IAM Instance Profiles, Roles, Users, and Groups.""" logging.basicConfig() parser = argparse.Argume...
"""Create IAM Instance Profiles, Roles, Users, and Groups.""" import argparse import logging from .create_iam import create_iam_resources LOG = logging.getLogger(__name__) def main(): """Command to create IAM Instance Profiles, Roles, Users, and Groups.""" logging.basicConfig() parser = argparse.Argume...
<commit_before>"""Create IAM Instance Profiles, Roles, Users, and Groups.""" import argparse import logging from .create_iam import create_iam_resources LOG = logging.getLogger(__name__) def main(): """Command to create IAM Instance Profiles, Roles, Users, and Groups.""" logging.basicConfig() parser = ...
"""Create IAM Instance Profiles, Roles, Users, and Groups.""" import argparse import logging from .create_iam import create_iam_resources LOG = logging.getLogger(__name__) def main(): """Command to create IAM Instance Profiles, Roles, Users, and Groups.""" logging.basicConfig() parser = argparse.Argume...
"""Create IAM Instance Profiles, Roles, Users, and Groups.""" import argparse import logging from .create_iam import create_iam_resources LOG = logging.getLogger(__name__) def main(): """Command to create IAM Instance Profiles, Roles, Users, and Groups.""" logging.basicConfig() parser = argparse.Argume...
<commit_before>"""Create IAM Instance Profiles, Roles, Users, and Groups.""" import argparse import logging from .create_iam import create_iam_resources LOG = logging.getLogger(__name__) def main(): """Command to create IAM Instance Profiles, Roles, Users, and Groups.""" logging.basicConfig() parser = ...
3d2f19ff097cf144efd9135c52e4d584193f9ddb
tohu/v7/custom_generator/tohu_items_class.py
tohu/v7/custom_generator/tohu_items_class.py
import attr __all__ = ["make_tohu_items_class"] def make_tohu_items_class(clsname, field_names): """ Parameters ---------- clsname: string Name of the class to be created. field_names: list of strings Names of the field attributes of the class to be created. """ item_cls ...
import attr __all__ = ["make_tohu_items_class"] def make_tohu_items_class(clsname, field_names): """ Parameters ---------- clsname: string Name of the class to be created. field_names: list of strings Names of the field attributes of the class to be created. """ item_cls ...
Add attribute 'is_unset' so that the interface is consistent with MissingTohuItemsCls
Add attribute 'is_unset' so that the interface is consistent with MissingTohuItemsCls
Python
mit
maxalbert/tohu
import attr __all__ = ["make_tohu_items_class"] def make_tohu_items_class(clsname, field_names): """ Parameters ---------- clsname: string Name of the class to be created. field_names: list of strings Names of the field attributes of the class to be created. """ item_cls ...
import attr __all__ = ["make_tohu_items_class"] def make_tohu_items_class(clsname, field_names): """ Parameters ---------- clsname: string Name of the class to be created. field_names: list of strings Names of the field attributes of the class to be created. """ item_cls ...
<commit_before>import attr __all__ = ["make_tohu_items_class"] def make_tohu_items_class(clsname, field_names): """ Parameters ---------- clsname: string Name of the class to be created. field_names: list of strings Names of the field attributes of the class to be created. ""...
import attr __all__ = ["make_tohu_items_class"] def make_tohu_items_class(clsname, field_names): """ Parameters ---------- clsname: string Name of the class to be created. field_names: list of strings Names of the field attributes of the class to be created. """ item_cls ...
import attr __all__ = ["make_tohu_items_class"] def make_tohu_items_class(clsname, field_names): """ Parameters ---------- clsname: string Name of the class to be created. field_names: list of strings Names of the field attributes of the class to be created. """ item_cls ...
<commit_before>import attr __all__ = ["make_tohu_items_class"] def make_tohu_items_class(clsname, field_names): """ Parameters ---------- clsname: string Name of the class to be created. field_names: list of strings Names of the field attributes of the class to be created. ""...
445b80562e038bc3749930d44e00eda55edaa180
ci_scripts/buildLinuxWheels.py
ci_scripts/buildLinuxWheels.py
from subprocess import call, check_output import sys import os isPython3 = sys.version_info.major == 3 # https://stackoverflow.com/a/3357357 command = 'git log --format=%B -n 1'.split() out = check_output(command) if b'build wheels' not in out.lower() or not isPython3: exit(0) path = os.path.abspath(argv[1]) ca...
from subprocess import call, check_output import sys import os isPython3 = sys.version_info.major == 3 # https://stackoverflow.com/a/3357357 command = 'git log --format=%B -n 1'.split() out = check_output(command) if b'build wheels' not in out.lower() or not isPython3: exit(0) path = os.path.abspath(sys.argv[1]...
Fix build wheels and upload 4.
Fix build wheels and upload 4.
Python
bsd-3-clause
jr-garcia/AssimpCy,jr-garcia/AssimpCy
from subprocess import call, check_output import sys import os isPython3 = sys.version_info.major == 3 # https://stackoverflow.com/a/3357357 command = 'git log --format=%B -n 1'.split() out = check_output(command) if b'build wheels' not in out.lower() or not isPython3: exit(0) path = os.path.abspath(argv[1]) ca...
from subprocess import call, check_output import sys import os isPython3 = sys.version_info.major == 3 # https://stackoverflow.com/a/3357357 command = 'git log --format=%B -n 1'.split() out = check_output(command) if b'build wheels' not in out.lower() or not isPython3: exit(0) path = os.path.abspath(sys.argv[1]...
<commit_before>from subprocess import call, check_output import sys import os isPython3 = sys.version_info.major == 3 # https://stackoverflow.com/a/3357357 command = 'git log --format=%B -n 1'.split() out = check_output(command) if b'build wheels' not in out.lower() or not isPython3: exit(0) path = os.path.absp...
from subprocess import call, check_output import sys import os isPython3 = sys.version_info.major == 3 # https://stackoverflow.com/a/3357357 command = 'git log --format=%B -n 1'.split() out = check_output(command) if b'build wheels' not in out.lower() or not isPython3: exit(0) path = os.path.abspath(sys.argv[1]...
from subprocess import call, check_output import sys import os isPython3 = sys.version_info.major == 3 # https://stackoverflow.com/a/3357357 command = 'git log --format=%B -n 1'.split() out = check_output(command) if b'build wheels' not in out.lower() or not isPython3: exit(0) path = os.path.abspath(argv[1]) ca...
<commit_before>from subprocess import call, check_output import sys import os isPython3 = sys.version_info.major == 3 # https://stackoverflow.com/a/3357357 command = 'git log --format=%B -n 1'.split() out = check_output(command) if b'build wheels' not in out.lower() or not isPython3: exit(0) path = os.path.absp...
bec498894ebd612058f905e1cfe4f5230df91841
client/examples/cycle-cards.py
client/examples/cycle-cards.py
#!/bin/python import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Examples of parsing the Remo...
#!/bin/python import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Examples of parsing the Remo...
Correct PEP8 indendation issue in client example
Correct PEP8 indendation issue in client example
Python
apache-2.0
nkinder/smart-card-removinator
#!/bin/python import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Examples of parsing the Remo...
#!/bin/python import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Examples of parsing the Remo...
<commit_before>#!/bin/python import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Examples of p...
#!/bin/python import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Examples of parsing the Remo...
#!/bin/python import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Examples of parsing the Remo...
<commit_before>#!/bin/python import removinator import subprocess # This example cycles through each card slot in the Removinator. Any # slots that have a card present will then have the certificates on the # card printed out using the pkcs15-tool utility, which is provided by # the OpenSC project. # # Examples of p...
a10407bf4d9dd404d734985717aa7bcebfa0981d
api/digital_ocean.py
api/digital_ocean.py
""" @fileoverview Digital Ocean API @author David Parlevliet @version 20130315 @preserve Copyright 2013 David Parlevliet. Digital Ocean API ================= Class to get the server details via the Digital Ocean API. """ import urllib2 import json class Api(): group_name = "Digital Ocean" client_key = None ap...
""" @fileoverview Digital Ocean API @author David Parlevliet @version 20130315 @preserve Copyright 2013 David Parlevliet. Digital Ocean API ================= Class to get the server details via the Digital Ocean API. """ import urllib2 import json class Api(): group_name = "Digital Ocean" client_key = None ap...
Return a helpful exception if API is uncontactable
Return a helpful exception if API is uncontactable
Python
mit
dparlevliet/elastic-firewall,dparlevliet/elastic-firewall,dparlevliet/elastic-firewall
""" @fileoverview Digital Ocean API @author David Parlevliet @version 20130315 @preserve Copyright 2013 David Parlevliet. Digital Ocean API ================= Class to get the server details via the Digital Ocean API. """ import urllib2 import json class Api(): group_name = "Digital Ocean" client_key = None ap...
""" @fileoverview Digital Ocean API @author David Parlevliet @version 20130315 @preserve Copyright 2013 David Parlevliet. Digital Ocean API ================= Class to get the server details via the Digital Ocean API. """ import urllib2 import json class Api(): group_name = "Digital Ocean" client_key = None ap...
<commit_before>""" @fileoverview Digital Ocean API @author David Parlevliet @version 20130315 @preserve Copyright 2013 David Parlevliet. Digital Ocean API ================= Class to get the server details via the Digital Ocean API. """ import urllib2 import json class Api(): group_name = "Digital Ocean" client_k...
""" @fileoverview Digital Ocean API @author David Parlevliet @version 20130315 @preserve Copyright 2013 David Parlevliet. Digital Ocean API ================= Class to get the server details via the Digital Ocean API. """ import urllib2 import json class Api(): group_name = "Digital Ocean" client_key = None ap...
""" @fileoverview Digital Ocean API @author David Parlevliet @version 20130315 @preserve Copyright 2013 David Parlevliet. Digital Ocean API ================= Class to get the server details via the Digital Ocean API. """ import urllib2 import json class Api(): group_name = "Digital Ocean" client_key = None ap...
<commit_before>""" @fileoverview Digital Ocean API @author David Parlevliet @version 20130315 @preserve Copyright 2013 David Parlevliet. Digital Ocean API ================= Class to get the server details via the Digital Ocean API. """ import urllib2 import json class Api(): group_name = "Digital Ocean" client_k...
7ff6c9d85eef03c225b511f39bbb07796b47659f
datapipe/history.py
datapipe/history.py
class History: def __init__(self): self.conn = sqlite3.connect('.history.db')
import sqlite3 class History: def __init__(self, path): self.conn = sqlite3.connect(path)
Make database filepath configurable on History
Make database filepath configurable on History
Python
mit
ibab/datapipe
class History: def __init__(self): self.conn = sqlite3.connect('.history.db') Make database filepath configurable on History
import sqlite3 class History: def __init__(self, path): self.conn = sqlite3.connect(path)
<commit_before> class History: def __init__(self): self.conn = sqlite3.connect('.history.db') <commit_msg>Make database filepath configurable on History<commit_after>
import sqlite3 class History: def __init__(self, path): self.conn = sqlite3.connect(path)
class History: def __init__(self): self.conn = sqlite3.connect('.history.db') Make database filepath configurable on Historyimport sqlite3 class History: def __init__(self, path): self.conn = sqlite3.connect(path)
<commit_before> class History: def __init__(self): self.conn = sqlite3.connect('.history.db') <commit_msg>Make database filepath configurable on History<commit_after>import sqlite3 class History: def __init__(self, path): self.conn = sqlite3.connect(path)
fd4539942dafe622d3f7a7d183db3d69f95a00c4
shop/urls/cart.py
shop/urls/cart.py
from django.conf.urls.defaults import url, patterns from shop.views.cart import CartDetails, CartItemDetail urlpatterns = patterns('', url(r'^delete/$', CartDetails.as_view(action='delete'), # DELETE name='cart_delete'), url('^item/$', CartDetails.as_view(action='post'), # POST name='cart_i...
from django.conf.urls.defaults import url, patterns from shop.views.cart import CartDetails, CartItemDetail urlpatterns = patterns('', url(r'^delete/$', CartDetails.as_view(action='delete'), # DELETE name='cart_delete'), url('^item/$', CartDetails.as_view(action='post'), # POST name='cart_i...
Make sure that ID will not match the first CartItems rule EVERY time ("//" was in regex).
Make sure that ID will not match the first CartItems rule EVERY time ("//" was in regex).
Python
bsd-3-clause
schacki/django-shop,khchine5/django-shop,khchine5/django-shop,dwx9/test,febsn/django-shop,DavideyLee/django-shop,awesto/django-shop,jrief/django-shop,dwx9/test,thenewguy/django-shop,thenewguy/django-shop,bmihelac/django-shop,pjdelport/django-shop,creimers/django-shop,creimers/django-shop,jrief/django-shop,bmihelac/djan...
from django.conf.urls.defaults import url, patterns from shop.views.cart import CartDetails, CartItemDetail urlpatterns = patterns('', url(r'^delete/$', CartDetails.as_view(action='delete'), # DELETE name='cart_delete'), url('^item/$', CartDetails.as_view(action='post'), # POST name='cart_i...
from django.conf.urls.defaults import url, patterns from shop.views.cart import CartDetails, CartItemDetail urlpatterns = patterns('', url(r'^delete/$', CartDetails.as_view(action='delete'), # DELETE name='cart_delete'), url('^item/$', CartDetails.as_view(action='post'), # POST name='cart_i...
<commit_before>from django.conf.urls.defaults import url, patterns from shop.views.cart import CartDetails, CartItemDetail urlpatterns = patterns('', url(r'^delete/$', CartDetails.as_view(action='delete'), # DELETE name='cart_delete'), url('^item/$', CartDetails.as_view(action='post'), # POST ...
from django.conf.urls.defaults import url, patterns from shop.views.cart import CartDetails, CartItemDetail urlpatterns = patterns('', url(r'^delete/$', CartDetails.as_view(action='delete'), # DELETE name='cart_delete'), url('^item/$', CartDetails.as_view(action='post'), # POST name='cart_i...
from django.conf.urls.defaults import url, patterns from shop.views.cart import CartDetails, CartItemDetail urlpatterns = patterns('', url(r'^delete/$', CartDetails.as_view(action='delete'), # DELETE name='cart_delete'), url('^item/$', CartDetails.as_view(action='post'), # POST name='cart_i...
<commit_before>from django.conf.urls.defaults import url, patterns from shop.views.cart import CartDetails, CartItemDetail urlpatterns = patterns('', url(r'^delete/$', CartDetails.as_view(action='delete'), # DELETE name='cart_delete'), url('^item/$', CartDetails.as_view(action='post'), # POST ...
10948cd88d51383e13af0a116703984752092c6a
jenkinsapi_tests/systests/test_jenkins_matrix.py
jenkinsapi_tests/systests/test_jenkins_matrix.py
''' System tests for `jenkinsapi.jenkins` module. ''' import re import time import unittest from jenkinsapi_tests.systests.base import BaseSystemTest from jenkinsapi_tests.systests.job_configs import MATRIX_JOB from jenkinsapi_tests.test_utils.random_strings import random_string class TestMatrixJob(BaseSystemTest): ...
''' System tests for `jenkinsapi.jenkins` module. ''' import re import time import unittest from jenkinsapi_tests.systests.base import BaseSystemTest from jenkinsapi_tests.systests.job_configs import MATRIX_JOB from jenkinsapi_tests.test_utils.random_strings import random_string class TestMatrixJob(BaseSystemTest): ...
Tidy up this test - still quite bad & useless.
Tidy up this test - still quite bad & useless.
Python
mit
imsardine/jenkinsapi,salimfadhley/jenkinsapi,JohnLZeller/jenkinsapi,JohnLZeller/jenkinsapi,aerickson/jenkinsapi,domenkozar/jenkinsapi,zaro0508/jenkinsapi,imsardine/jenkinsapi,zaro0508/jenkinsapi,jduan/jenkinsapi,mistermocha/jenkinsapi,domenkozar/jenkinsapi,salimfadhley/jenkinsapi,zaro0508/jenkinsapi,mistermocha/jenkins...
''' System tests for `jenkinsapi.jenkins` module. ''' import re import time import unittest from jenkinsapi_tests.systests.base import BaseSystemTest from jenkinsapi_tests.systests.job_configs import MATRIX_JOB from jenkinsapi_tests.test_utils.random_strings import random_string class TestMatrixJob(BaseSystemTest): ...
''' System tests for `jenkinsapi.jenkins` module. ''' import re import time import unittest from jenkinsapi_tests.systests.base import BaseSystemTest from jenkinsapi_tests.systests.job_configs import MATRIX_JOB from jenkinsapi_tests.test_utils.random_strings import random_string class TestMatrixJob(BaseSystemTest): ...
<commit_before>''' System tests for `jenkinsapi.jenkins` module. ''' import re import time import unittest from jenkinsapi_tests.systests.base import BaseSystemTest from jenkinsapi_tests.systests.job_configs import MATRIX_JOB from jenkinsapi_tests.test_utils.random_strings import random_string class TestMatrixJob(Ba...
''' System tests for `jenkinsapi.jenkins` module. ''' import re import time import unittest from jenkinsapi_tests.systests.base import BaseSystemTest from jenkinsapi_tests.systests.job_configs import MATRIX_JOB from jenkinsapi_tests.test_utils.random_strings import random_string class TestMatrixJob(BaseSystemTest): ...
''' System tests for `jenkinsapi.jenkins` module. ''' import re import time import unittest from jenkinsapi_tests.systests.base import BaseSystemTest from jenkinsapi_tests.systests.job_configs import MATRIX_JOB from jenkinsapi_tests.test_utils.random_strings import random_string class TestMatrixJob(BaseSystemTest): ...
<commit_before>''' System tests for `jenkinsapi.jenkins` module. ''' import re import time import unittest from jenkinsapi_tests.systests.base import BaseSystemTest from jenkinsapi_tests.systests.job_configs import MATRIX_JOB from jenkinsapi_tests.test_utils.random_strings import random_string class TestMatrixJob(Ba...
238ba8cec34ec02dc521f25ef1ada6e230194c32
kitsune/kbadge/migrations/0002_auto_20181023_1319.py
kitsune/kbadge/migrations/0002_auto_20181023_1319.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
Add WHERE clause to SQL data migration.
Add WHERE clause to SQL data migration.
Python
bsd-3-clause
mozilla/kitsune,anushbmx/kitsune,anushbmx/kitsune,anushbmx/kitsune,mozilla/kitsune,mozilla/kitsune,mozilla/kitsune,anushbmx/kitsune
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('up...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('up...
4651d3b5666fe3ddf3bd92b31ee6ffe4a72ce94e
core/api/__init__.py
core/api/__init__.py
import os from flask import Flask, jsonify from flask_pymongo import PyMongo, BSONObjectIdConverter from werkzeug.exceptions import HTTPException, default_exceptions from core.api import settings def create_app(environment=None): app = Flask('veritrans') app.url_map.converters['ObjectId'] = BSONObjectIdConv...
import os from flask import Flask, jsonify from flask_pymongo import PyMongo, BSONObjectIdConverter from werkzeug.exceptions import HTTPException, default_exceptions from core.api import settings def create_app(environment=None): app = Flask('veritrans') app.url_map.converters['ObjectId'] = BSONObjectIdConv...
Use Production config unless specified
Use Production config unless specified
Python
mit
onyb/veritrans-payment-portals
import os from flask import Flask, jsonify from flask_pymongo import PyMongo, BSONObjectIdConverter from werkzeug.exceptions import HTTPException, default_exceptions from core.api import settings def create_app(environment=None): app = Flask('veritrans') app.url_map.converters['ObjectId'] = BSONObjectIdConv...
import os from flask import Flask, jsonify from flask_pymongo import PyMongo, BSONObjectIdConverter from werkzeug.exceptions import HTTPException, default_exceptions from core.api import settings def create_app(environment=None): app = Flask('veritrans') app.url_map.converters['ObjectId'] = BSONObjectIdConv...
<commit_before>import os from flask import Flask, jsonify from flask_pymongo import PyMongo, BSONObjectIdConverter from werkzeug.exceptions import HTTPException, default_exceptions from core.api import settings def create_app(environment=None): app = Flask('veritrans') app.url_map.converters['ObjectId'] = B...
import os from flask import Flask, jsonify from flask_pymongo import PyMongo, BSONObjectIdConverter from werkzeug.exceptions import HTTPException, default_exceptions from core.api import settings def create_app(environment=None): app = Flask('veritrans') app.url_map.converters['ObjectId'] = BSONObjectIdConv...
import os from flask import Flask, jsonify from flask_pymongo import PyMongo, BSONObjectIdConverter from werkzeug.exceptions import HTTPException, default_exceptions from core.api import settings def create_app(environment=None): app = Flask('veritrans') app.url_map.converters['ObjectId'] = BSONObjectIdConv...
<commit_before>import os from flask import Flask, jsonify from flask_pymongo import PyMongo, BSONObjectIdConverter from werkzeug.exceptions import HTTPException, default_exceptions from core.api import settings def create_app(environment=None): app = Flask('veritrans') app.url_map.converters['ObjectId'] = B...
ced218643784838d68961a926cc0dd18c3a3f01f
skald/geometry.py
skald/geometry.py
# -*- coding: utf-8 -*- from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) Rectangle = namedtuple("Rectangle", ["x0", "y0", "x1", "y1"]) class Point(namedtuple("Point", ["x", "y"])): """Point in a two-dimensional space. Named tuple implementation that allows for addition and su...
# -*- coding: utf-8 -*- from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) class Rectangle(namedtuple("Rectangle", ["x0", "y0", "x1", "y1"])): def __contains__(self, other): """Check if this rectangle and `other` overlaps eachother. Essentially this is a bit of a ha...
Add intersection test for rectangles
Add intersection test for rectangles
Python
mit
bjornarg/skald,bjornarg/skald
# -*- coding: utf-8 -*- from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) Rectangle = namedtuple("Rectangle", ["x0", "y0", "x1", "y1"]) class Point(namedtuple("Point", ["x", "y"])): """Point in a two-dimensional space. Named tuple implementation that allows for addition and su...
# -*- coding: utf-8 -*- from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) class Rectangle(namedtuple("Rectangle", ["x0", "y0", "x1", "y1"])): def __contains__(self, other): """Check if this rectangle and `other` overlaps eachother. Essentially this is a bit of a ha...
<commit_before># -*- coding: utf-8 -*- from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) Rectangle = namedtuple("Rectangle", ["x0", "y0", "x1", "y1"]) class Point(namedtuple("Point", ["x", "y"])): """Point in a two-dimensional space. Named tuple implementation that allows for ...
# -*- coding: utf-8 -*- from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) class Rectangle(namedtuple("Rectangle", ["x0", "y0", "x1", "y1"])): def __contains__(self, other): """Check if this rectangle and `other` overlaps eachother. Essentially this is a bit of a ha...
# -*- coding: utf-8 -*- from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) Rectangle = namedtuple("Rectangle", ["x0", "y0", "x1", "y1"]) class Point(namedtuple("Point", ["x", "y"])): """Point in a two-dimensional space. Named tuple implementation that allows for addition and su...
<commit_before># -*- coding: utf-8 -*- from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) Rectangle = namedtuple("Rectangle", ["x0", "y0", "x1", "y1"]) class Point(namedtuple("Point", ["x", "y"])): """Point in a two-dimensional space. Named tuple implementation that allows for ...
8f03f51c89aeea44943f9cb0b39330e676ae0089
utils.py
utils.py
import vx from contextlib import contextmanager from functools import partial import sys from io import StringIO def _expose(f=None, name=None): if f is None: return partial(_expose, name=name) if name is None: name = f.__name__.lstrip('_') if getattr(vx, name, None) is not None: ...
import vx from contextlib import contextmanager from functools import partial import sys from io import StringIO def _expose(f=None, name=None): if f is None: return partial(_expose, name=name) if name is None: name = f.__name__.lstrip('_') if getattr(vx, name, None) is not None: ...
Change repeat command to return a list of the results of the repeated commands
Change repeat command to return a list of the results of the repeated commands
Python
mit
philipdexter/vx,philipdexter/vx
import vx from contextlib import contextmanager from functools import partial import sys from io import StringIO def _expose(f=None, name=None): if f is None: return partial(_expose, name=name) if name is None: name = f.__name__.lstrip('_') if getattr(vx, name, None) is not None: ...
import vx from contextlib import contextmanager from functools import partial import sys from io import StringIO def _expose(f=None, name=None): if f is None: return partial(_expose, name=name) if name is None: name = f.__name__.lstrip('_') if getattr(vx, name, None) is not None: ...
<commit_before>import vx from contextlib import contextmanager from functools import partial import sys from io import StringIO def _expose(f=None, name=None): if f is None: return partial(_expose, name=name) if name is None: name = f.__name__.lstrip('_') if getattr(vx, name, None) is not...
import vx from contextlib import contextmanager from functools import partial import sys from io import StringIO def _expose(f=None, name=None): if f is None: return partial(_expose, name=name) if name is None: name = f.__name__.lstrip('_') if getattr(vx, name, None) is not None: ...
import vx from contextlib import contextmanager from functools import partial import sys from io import StringIO def _expose(f=None, name=None): if f is None: return partial(_expose, name=name) if name is None: name = f.__name__.lstrip('_') if getattr(vx, name, None) is not None: ...
<commit_before>import vx from contextlib import contextmanager from functools import partial import sys from io import StringIO def _expose(f=None, name=None): if f is None: return partial(_expose, name=name) if name is None: name = f.__name__.lstrip('_') if getattr(vx, name, None) is not...
822e6123cc598b4f6a0eafedfb2f0d0cbfba5f37
currencies/migrations/0003_auto_20151216_1906.py
currencies/migrations/0003_auto_20151216_1906.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from extra_countries.models import ExtraCountry def add_currencies_with_countries(apps, schema_editor): # We can't import the model directly as it may be a newer # version than this migration expects. We use the...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from extra_countries.models import ExtraCountry def add_currencies_with_countries(apps, schema_editor): # We can't import the model directly as it may be a newer # version than this migration expects. We use the...
Fix currencies seeding, so it won't have empty currencies
Fix currencies seeding, so it won't have empty currencies
Python
mit
openspending/cosmopolitan,kiote/cosmopolitan
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from extra_countries.models import ExtraCountry def add_currencies_with_countries(apps, schema_editor): # We can't import the model directly as it may be a newer # version than this migration expects. We use the...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from extra_countries.models import ExtraCountry def add_currencies_with_countries(apps, schema_editor): # We can't import the model directly as it may be a newer # version than this migration expects. We use the...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from extra_countries.models import ExtraCountry def add_currencies_with_countries(apps, schema_editor): # We can't import the model directly as it may be a newer # version than this migration expe...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from extra_countries.models import ExtraCountry def add_currencies_with_countries(apps, schema_editor): # We can't import the model directly as it may be a newer # version than this migration expects. We use the...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from extra_countries.models import ExtraCountry def add_currencies_with_countries(apps, schema_editor): # We can't import the model directly as it may be a newer # version than this migration expects. We use the...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from extra_countries.models import ExtraCountry def add_currencies_with_countries(apps, schema_editor): # We can't import the model directly as it may be a newer # version than this migration expe...
041b271baa7ae0bbd20c30ac4f70b42fda267e93
mozillians/groups/__init__.py
mozillians/groups/__init__.py
from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda' ] default_app_config = 'mozillians.groups.GroupConfig' class GroupConfig(AppConfig): name = 'mozillians.groups'
from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda', 'open-innovation-reps-council' ] default_app_config = 'mozillians.groups.GroupConfig' class GroupConfig(AppConfig): name = 'mozillians.groups'
Add a group in the whitelist.
Add a group in the whitelist.
Python
bsd-3-clause
mozilla/mozillians,akatsoulas/mozillians,mozilla/mozillians,johngian/mozillians,mozilla/mozillians,mozilla/mozillians,akatsoulas/mozillians,akatsoulas/mozillians,johngian/mozillians,johngian/mozillians,johngian/mozillians,akatsoulas/mozillians
from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda' ] default_app_config = 'mozillians.groups.GroupConfig' class GroupConfig(AppConfig): name = 'mozillians.groups' Add a group in the whitelist.
from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda', 'open-innovation-reps-council' ] default_app_config = 'mozillians.groups.GroupConfig' class GroupConfig(AppConfig): name = 'mozillians.groups'
<commit_before>from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda' ] default_app_config = 'mozillians.groups.GroupConfig' class GroupConfig(AppConfig): name = 'mozillians.groups' <commit_msg>Add a group in the whitelist.<commit_after>
from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda', 'open-innovation-reps-council' ] default_app_config = 'mozillians.groups.GroupConfig' class GroupConfig(AppConfig): name = 'mozillians.groups'
from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda' ] default_app_config = 'mozillians.groups.GroupConfig' class GroupConfig(AppConfig): name = 'mozillians.groups' Add a group in the whitelist.from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda', 'o...
<commit_before>from django.apps import AppConfig CIS_GROUPS = [ 'cis_whitelist', 'nda' ] default_app_config = 'mozillians.groups.GroupConfig' class GroupConfig(AppConfig): name = 'mozillians.groups' <commit_msg>Add a group in the whitelist.<commit_after>from django.apps import AppConfig CIS_GROUPS =...
199c9bae8e2ad42ee1c8699c678dd56d6074b2de
main/models.py
main/models.py
from django.db import models from django.contrib.auth.models import User import string, random from django import forms # Create your models here. def _generate_default_hashtag(): return "".join(random.choice(string.lowercase) for i in range(3)) class Wall(models.Model): hashtag = models.CharField(max_length=20...
from django.db import models from django.contrib.auth.models import User import string, random from django import forms # Create your models here. def _generate_default_hashtag(): return "".join(random.choice(string.lowercase) for i in range(3)) class Wall(models.Model): hashtag = models.CharField(max_length=20...
Return sms_keyword as wall name
Return sms_keyword as wall name
Python
mit
Aaron1011/texting_wall
from django.db import models from django.contrib.auth.models import User import string, random from django import forms # Create your models here. def _generate_default_hashtag(): return "".join(random.choice(string.lowercase) for i in range(3)) class Wall(models.Model): hashtag = models.CharField(max_length=20...
from django.db import models from django.contrib.auth.models import User import string, random from django import forms # Create your models here. def _generate_default_hashtag(): return "".join(random.choice(string.lowercase) for i in range(3)) class Wall(models.Model): hashtag = models.CharField(max_length=20...
<commit_before>from django.db import models from django.contrib.auth.models import User import string, random from django import forms # Create your models here. def _generate_default_hashtag(): return "".join(random.choice(string.lowercase) for i in range(3)) class Wall(models.Model): hashtag = models.CharFiel...
from django.db import models from django.contrib.auth.models import User import string, random from django import forms # Create your models here. def _generate_default_hashtag(): return "".join(random.choice(string.lowercase) for i in range(3)) class Wall(models.Model): hashtag = models.CharField(max_length=20...
from django.db import models from django.contrib.auth.models import User import string, random from django import forms # Create your models here. def _generate_default_hashtag(): return "".join(random.choice(string.lowercase) for i in range(3)) class Wall(models.Model): hashtag = models.CharField(max_length=20...
<commit_before>from django.db import models from django.contrib.auth.models import User import string, random from django import forms # Create your models here. def _generate_default_hashtag(): return "".join(random.choice(string.lowercase) for i in range(3)) class Wall(models.Model): hashtag = models.CharFiel...
523ee893118413caa45e66869e9380f5e52f3402
src/parser/python/print_libpython.py
src/parser/python/print_libpython.py
# Print embeddable python library, as well as other libs it requires. # Will prefer static linkage unless invoked with "shared" argument. # JGG, 8/4/04 import sys, distutils.sysconfig static_link = 1 nargs = len(sys.argv) if nargs == 2 and sys.argv[1] == "shared": static_link = 0 # Note that this adds libraries w...
# Print embeddable python library, as well as other libs it requires. # Will prefer static linkage unless invoked with "shared" argument. # JGG, 8/4/04 import sys, distutils.sysconfig static_link = 1 nargs = len(sys.argv) if nargs == 2 and sys.argv[1] == "shared": static_link = 0 # Note that this adds libraries w...
Test file existence for brain-dead Jaguar.
Test file existence for brain-dead Jaguar.
Python
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
# Print embeddable python library, as well as other libs it requires. # Will prefer static linkage unless invoked with "shared" argument. # JGG, 8/4/04 import sys, distutils.sysconfig static_link = 1 nargs = len(sys.argv) if nargs == 2 and sys.argv[1] == "shared": static_link = 0 # Note that this adds libraries w...
# Print embeddable python library, as well as other libs it requires. # Will prefer static linkage unless invoked with "shared" argument. # JGG, 8/4/04 import sys, distutils.sysconfig static_link = 1 nargs = len(sys.argv) if nargs == 2 and sys.argv[1] == "shared": static_link = 0 # Note that this adds libraries w...
<commit_before># Print embeddable python library, as well as other libs it requires. # Will prefer static linkage unless invoked with "shared" argument. # JGG, 8/4/04 import sys, distutils.sysconfig static_link = 1 nargs = len(sys.argv) if nargs == 2 and sys.argv[1] == "shared": static_link = 0 # Note that this a...
# Print embeddable python library, as well as other libs it requires. # Will prefer static linkage unless invoked with "shared" argument. # JGG, 8/4/04 import sys, distutils.sysconfig static_link = 1 nargs = len(sys.argv) if nargs == 2 and sys.argv[1] == "shared": static_link = 0 # Note that this adds libraries w...
# Print embeddable python library, as well as other libs it requires. # Will prefer static linkage unless invoked with "shared" argument. # JGG, 8/4/04 import sys, distutils.sysconfig static_link = 1 nargs = len(sys.argv) if nargs == 2 and sys.argv[1] == "shared": static_link = 0 # Note that this adds libraries w...
<commit_before># Print embeddable python library, as well as other libs it requires. # Will prefer static linkage unless invoked with "shared" argument. # JGG, 8/4/04 import sys, distutils.sysconfig static_link = 1 nargs = len(sys.argv) if nargs == 2 and sys.argv[1] == "shared": static_link = 0 # Note that this a...
b6ec3ba9efae7b6b291391b0333e80f2e9fc6fa0
src/waldur_mastermind/invoices/migrations/0053_invoiceitem_uuid.py
src/waldur_mastermind/invoices/migrations/0053_invoiceitem_uuid.py
import uuid from django.db import migrations import waldur_core.core.fields def gen_uuid(apps, schema_editor): InvoiceItem = apps.get_model('invoices', 'InvoiceItem') for row in InvoiceItem.objects.all(): row.uuid = uuid.uuid4().hex row.save(update_fields=['uuid']) class Migration(migratio...
import uuid from django.db import migrations, models import waldur_core.core.fields def gen_uuid(apps, schema_editor): InvoiceItem = apps.get_model('invoices', 'InvoiceItem') for row in InvoiceItem.objects.all(): row.uuid = uuid.uuid4().hex row.save(update_fields=['uuid']) class Migration(...
Fix database migration script for UUID field in invoice item model.
Fix database migration script for UUID field in invoice item model.
Python
mit
opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/waldur-mastermind
import uuid from django.db import migrations import waldur_core.core.fields def gen_uuid(apps, schema_editor): InvoiceItem = apps.get_model('invoices', 'InvoiceItem') for row in InvoiceItem.objects.all(): row.uuid = uuid.uuid4().hex row.save(update_fields=['uuid']) class Migration(migratio...
import uuid from django.db import migrations, models import waldur_core.core.fields def gen_uuid(apps, schema_editor): InvoiceItem = apps.get_model('invoices', 'InvoiceItem') for row in InvoiceItem.objects.all(): row.uuid = uuid.uuid4().hex row.save(update_fields=['uuid']) class Migration(...
<commit_before>import uuid from django.db import migrations import waldur_core.core.fields def gen_uuid(apps, schema_editor): InvoiceItem = apps.get_model('invoices', 'InvoiceItem') for row in InvoiceItem.objects.all(): row.uuid = uuid.uuid4().hex row.save(update_fields=['uuid']) class Mig...
import uuid from django.db import migrations, models import waldur_core.core.fields def gen_uuid(apps, schema_editor): InvoiceItem = apps.get_model('invoices', 'InvoiceItem') for row in InvoiceItem.objects.all(): row.uuid = uuid.uuid4().hex row.save(update_fields=['uuid']) class Migration(...
import uuid from django.db import migrations import waldur_core.core.fields def gen_uuid(apps, schema_editor): InvoiceItem = apps.get_model('invoices', 'InvoiceItem') for row in InvoiceItem.objects.all(): row.uuid = uuid.uuid4().hex row.save(update_fields=['uuid']) class Migration(migratio...
<commit_before>import uuid from django.db import migrations import waldur_core.core.fields def gen_uuid(apps, schema_editor): InvoiceItem = apps.get_model('invoices', 'InvoiceItem') for row in InvoiceItem.objects.all(): row.uuid = uuid.uuid4().hex row.save(update_fields=['uuid']) class Mig...
9b19d366c7e1cf41ffc6af4eaed789995ddc5cc2
byceps/blueprints/core_admin/views.py
byceps/blueprints/core_admin/views.py
""" byceps.blueprints.core_admin.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...services.brand import service as brand_service from ...util.framework.blueprint import create_blueprint from ..authorization.registry impor...
""" byceps.blueprints.core_admin.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...services.brand import service as brand_service from ...util.framework.blueprint import create_blueprint from ..authorization.registry impor...
Generalize name of function to inject admin template variables
Generalize name of function to inject admin template variables
Python
bsd-3-clause
homeworkprod/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps
""" byceps.blueprints.core_admin.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...services.brand import service as brand_service from ...util.framework.blueprint import create_blueprint from ..authorization.registry impor...
""" byceps.blueprints.core_admin.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...services.brand import service as brand_service from ...util.framework.blueprint import create_blueprint from ..authorization.registry impor...
<commit_before>""" byceps.blueprints.core_admin.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...services.brand import service as brand_service from ...util.framework.blueprint import create_blueprint from ..authorization...
""" byceps.blueprints.core_admin.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...services.brand import service as brand_service from ...util.framework.blueprint import create_blueprint from ..authorization.registry impor...
""" byceps.blueprints.core_admin.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...services.brand import service as brand_service from ...util.framework.blueprint import create_blueprint from ..authorization.registry impor...
<commit_before>""" byceps.blueprints.core_admin.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...services.brand import service as brand_service from ...util.framework.blueprint import create_blueprint from ..authorization...
f3bb89a58375ac91efb1fa6f3426c0a7e7dd85d5
tests/fixtures/source.py
tests/fixtures/source.py
#!/usr/bin/env python class Person: def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name def fullname(self): return "%s %s" % (self.first_name, self.last_name) def not_called(self): print("Shouldn't be called") person = Perso...
#!/usr/bin/env python class Person: def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name def fullname(self): return "%s %s" % (self.first_name, self.last_name) def not_called(self): print("Shouldn't be called") person = Pers...
Add BOM signature to test fixture
Add BOM signature to test fixture
Python
mit
codeclimate/python-test-reporter,codeclimate/python-test-reporter
#!/usr/bin/env python class Person: def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name def fullname(self): return "%s %s" % (self.first_name, self.last_name) def not_called(self): print("Shouldn't be called") person = Perso...
#!/usr/bin/env python class Person: def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name def fullname(self): return "%s %s" % (self.first_name, self.last_name) def not_called(self): print("Shouldn't be called") person = Pers...
<commit_before>#!/usr/bin/env python class Person: def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name def fullname(self): return "%s %s" % (self.first_name, self.last_name) def not_called(self): print("Shouldn't be called") ...
#!/usr/bin/env python class Person: def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name def fullname(self): return "%s %s" % (self.first_name, self.last_name) def not_called(self): print("Shouldn't be called") person = Pers...
#!/usr/bin/env python class Person: def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name def fullname(self): return "%s %s" % (self.first_name, self.last_name) def not_called(self): print("Shouldn't be called") person = Perso...
<commit_before>#!/usr/bin/env python class Person: def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name def fullname(self): return "%s %s" % (self.first_name, self.last_name) def not_called(self): print("Shouldn't be called") ...
6ac683ca1905fbf17dd63c1264609e770439fa7f
test/integration/targets/module_utils/library/test_env_override.py
test/integration/targets/module_utils/library/test_env_override.py
#!/usr/bin/python from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data results = {"json_utils": data, "mork": mork_data} AnsibleModule(argument_spec=dict()).exit_json(**results)
#!/usr/bin/python # Most of these names are only available via PluginLoader so pylint doesn't # know they exist # pylint: disable=no-name-in-module from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data results = {"j...
Disable pylint check for names existing in modules for test data
Disable pylint check for names existing in modules for test data This test data imports from modules which are only available via PluginLoader for this test case. So pylint doesn't know anything about them
Python
mit
thaim/ansible,thaim/ansible
#!/usr/bin/python from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data results = {"json_utils": data, "mork": mork_data} AnsibleModule(argument_spec=dict()).exit_json(**results) Disable pylint check for names exis...
#!/usr/bin/python # Most of these names are only available via PluginLoader so pylint doesn't # know they exist # pylint: disable=no-name-in-module from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data results = {"j...
<commit_before>#!/usr/bin/python from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data results = {"json_utils": data, "mork": mork_data} AnsibleModule(argument_spec=dict()).exit_json(**results) <commit_msg>Disable ...
#!/usr/bin/python # Most of these names are only available via PluginLoader so pylint doesn't # know they exist # pylint: disable=no-name-in-module from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data results = {"j...
#!/usr/bin/python from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data results = {"json_utils": data, "mork": mork_data} AnsibleModule(argument_spec=dict()).exit_json(**results) Disable pylint check for names exis...
<commit_before>#!/usr/bin/python from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data results = {"json_utils": data, "mork": mork_data} AnsibleModule(argument_spec=dict()).exit_json(**results) <commit_msg>Disable ...
d4acff165712281cb7205cca1c39e7eaf1fdd23b
base/broadcast.py
base/broadcast.py
from abc import ABCMeta, abstractmethod from enum import Enum class Broadcast(metaclass=ABCMeta): """ An interface for defining a broadcast protocol. The 'propose' and 'decide' methods need to be defined """ class MessageType(Enum): SEND = 1 ECHO = 2 READY = 3 def __i...
Add abstract Broadcast protocol class
Add abstract Broadcast protocol class
Python
mit
koevskinikola/ByzantineRandomizedConsensus
Add abstract Broadcast protocol class
from abc import ABCMeta, abstractmethod from enum import Enum class Broadcast(metaclass=ABCMeta): """ An interface for defining a broadcast protocol. The 'propose' and 'decide' methods need to be defined """ class MessageType(Enum): SEND = 1 ECHO = 2 READY = 3 def __i...
<commit_before><commit_msg>Add abstract Broadcast protocol class<commit_after>
from abc import ABCMeta, abstractmethod from enum import Enum class Broadcast(metaclass=ABCMeta): """ An interface for defining a broadcast protocol. The 'propose' and 'decide' methods need to be defined """ class MessageType(Enum): SEND = 1 ECHO = 2 READY = 3 def __i...
Add abstract Broadcast protocol classfrom abc import ABCMeta, abstractmethod from enum import Enum class Broadcast(metaclass=ABCMeta): """ An interface for defining a broadcast protocol. The 'propose' and 'decide' methods need to be defined """ class MessageType(Enum): SEND = 1 EC...
<commit_before><commit_msg>Add abstract Broadcast protocol class<commit_after>from abc import ABCMeta, abstractmethod from enum import Enum class Broadcast(metaclass=ABCMeta): """ An interface for defining a broadcast protocol. The 'propose' and 'decide' methods need to be defined """ class Messa...
7872abf00b24a504fccba576b13ecdd140e0135f
pybb/read_tracking.py
pybb/read_tracking.py
def update_read_tracking(topic, user): tracking = user.readtracking #if last_read > last_read - don't check topics if tracking.last_read and tracking.last_read > (topic.last_post.updated or topic.last_post.created): return if isinstance(track...
def update_read_tracking(topic, user): tracking = user.readtracking #if last_read > last_read - don't check topics if tracking.last_read and tracking.last_read > (topic.last_post.updated or topic.last_post.created): return if isinstance(track...
Fix bug in read tracking system
Fix bug in read tracking system
Python
bsd-2-clause
ttyS15/pybbm,onecue/pybbm,katsko/pybbm,katsko/pybbm,wengole/pybbm,wengole/pybbm,webu/pybbm,acamposruiz/quecoins,springmerchant/pybbm,NEERAJIITKGP/pybbm,webu/pybbm,concentricsky/pybbm,skolsuper/pybbm,hovel/pybbm,NEERAJIITKGP/pybbm,hovel/pybbm,webu/pybbm,artfinder/pybbm,onecue/pybbm,katsko/pybbm,ttyS15/pybbm,wengole/pybb...
def update_read_tracking(topic, user): tracking = user.readtracking #if last_read > last_read - don't check topics if tracking.last_read and tracking.last_read > (topic.last_post.updated or topic.last_post.created): return if isinstance(track...
def update_read_tracking(topic, user): tracking = user.readtracking #if last_read > last_read - don't check topics if tracking.last_read and tracking.last_read > (topic.last_post.updated or topic.last_post.created): return if isinstance(track...
<commit_before>def update_read_tracking(topic, user): tracking = user.readtracking #if last_read > last_read - don't check topics if tracking.last_read and tracking.last_read > (topic.last_post.updated or topic.last_post.created): return if i...
def update_read_tracking(topic, user): tracking = user.readtracking #if last_read > last_read - don't check topics if tracking.last_read and tracking.last_read > (topic.last_post.updated or topic.last_post.created): return if isinstance(track...
def update_read_tracking(topic, user): tracking = user.readtracking #if last_read > last_read - don't check topics if tracking.last_read and tracking.last_read > (topic.last_post.updated or topic.last_post.created): return if isinstance(track...
<commit_before>def update_read_tracking(topic, user): tracking = user.readtracking #if last_read > last_read - don't check topics if tracking.last_read and tracking.last_read > (topic.last_post.updated or topic.last_post.created): return if i...
346ffdb3e3836e2931f838a6dd929a325da0d5e6
tests/test_arithmetic.py
tests/test_arithmetic.py
from intervals import Interval class TestArithmeticOperators(object): def test_add_operator(self): assert Interval(1, 2) + Interval(1, 2) == Interval(2, 4) def test_sub_operator(self): assert Interval(1, 3) - Interval(1, 2) == Interval(-1, 2) def test_isub_operator(self): range_ ...
from pytest import mark from intervals import Interval class TestArithmeticOperators(object): def test_add_operator(self): assert Interval(1, 2) + Interval(1, 2) == Interval(2, 4) def test_sub_operator(self): assert Interval(1, 3) - Interval(1, 2) == Interval(-1, 2) def test_isub_operato...
Add some tests for intersection
Add some tests for intersection
Python
bsd-3-clause
kvesteri/intervals
from intervals import Interval class TestArithmeticOperators(object): def test_add_operator(self): assert Interval(1, 2) + Interval(1, 2) == Interval(2, 4) def test_sub_operator(self): assert Interval(1, 3) - Interval(1, 2) == Interval(-1, 2) def test_isub_operator(self): range_ ...
from pytest import mark from intervals import Interval class TestArithmeticOperators(object): def test_add_operator(self): assert Interval(1, 2) + Interval(1, 2) == Interval(2, 4) def test_sub_operator(self): assert Interval(1, 3) - Interval(1, 2) == Interval(-1, 2) def test_isub_operato...
<commit_before>from intervals import Interval class TestArithmeticOperators(object): def test_add_operator(self): assert Interval(1, 2) + Interval(1, 2) == Interval(2, 4) def test_sub_operator(self): assert Interval(1, 3) - Interval(1, 2) == Interval(-1, 2) def test_isub_operator(self): ...
from pytest import mark from intervals import Interval class TestArithmeticOperators(object): def test_add_operator(self): assert Interval(1, 2) + Interval(1, 2) == Interval(2, 4) def test_sub_operator(self): assert Interval(1, 3) - Interval(1, 2) == Interval(-1, 2) def test_isub_operato...
from intervals import Interval class TestArithmeticOperators(object): def test_add_operator(self): assert Interval(1, 2) + Interval(1, 2) == Interval(2, 4) def test_sub_operator(self): assert Interval(1, 3) - Interval(1, 2) == Interval(-1, 2) def test_isub_operator(self): range_ ...
<commit_before>from intervals import Interval class TestArithmeticOperators(object): def test_add_operator(self): assert Interval(1, 2) + Interval(1, 2) == Interval(2, 4) def test_sub_operator(self): assert Interval(1, 3) - Interval(1, 2) == Interval(-1, 2) def test_isub_operator(self): ...
2a0c8bdb74404556483cd60e7cb2f8e25559e500
pylearn2/scripts/tutorials/grbm_smd/test_grbm_smd.py
pylearn2/scripts/tutorials/grbm_smd/test_grbm_smd.py
import pylearn2 from pylearn2.utils.serial import load_train_file import os from pylearn2.testing import no_debug_mode from theano import config @no_debug_mode def test_train_example(): """ tests that the grbm_smd example script runs correctly """ assert config.mode != "DEBUG_MODE" path = pylearn2.__p...
import pylearn2 from pylearn2.utils.serial import load_train_file import os from pylearn2.testing import no_debug_mode from theano import config @no_debug_mode def test_train_example(): """ tests that the grbm_smd example script runs correctly """ assert config.mode != "DEBUG_MODE" path = pylearn2.__p...
Fix failing test through loading of examples from $PWD.
Fix failing test through loading of examples from $PWD.
Python
bsd-3-clause
aalmah/pylearn2,TNick/pylearn2,shiquanwang/pylearn2,alexjc/pylearn2,fyffyt/pylearn2,bartvm/pylearn2,pkainz/pylearn2,lancezlin/pylearn2,pkainz/pylearn2,CIFASIS/pylearn2,daemonmaker/pylearn2,woozzu/pylearn2,ddboline/pylearn2,caidongyun/pylearn2,shiquanwang/pylearn2,mclaughlin6464/pylearn2,chrish42/pylearn,theoryno3/pylea...
import pylearn2 from pylearn2.utils.serial import load_train_file import os from pylearn2.testing import no_debug_mode from theano import config @no_debug_mode def test_train_example(): """ tests that the grbm_smd example script runs correctly """ assert config.mode != "DEBUG_MODE" path = pylearn2.__p...
import pylearn2 from pylearn2.utils.serial import load_train_file import os from pylearn2.testing import no_debug_mode from theano import config @no_debug_mode def test_train_example(): """ tests that the grbm_smd example script runs correctly """ assert config.mode != "DEBUG_MODE" path = pylearn2.__p...
<commit_before>import pylearn2 from pylearn2.utils.serial import load_train_file import os from pylearn2.testing import no_debug_mode from theano import config @no_debug_mode def test_train_example(): """ tests that the grbm_smd example script runs correctly """ assert config.mode != "DEBUG_MODE" path...
import pylearn2 from pylearn2.utils.serial import load_train_file import os from pylearn2.testing import no_debug_mode from theano import config @no_debug_mode def test_train_example(): """ tests that the grbm_smd example script runs correctly """ assert config.mode != "DEBUG_MODE" path = pylearn2.__p...
import pylearn2 from pylearn2.utils.serial import load_train_file import os from pylearn2.testing import no_debug_mode from theano import config @no_debug_mode def test_train_example(): """ tests that the grbm_smd example script runs correctly """ assert config.mode != "DEBUG_MODE" path = pylearn2.__p...
<commit_before>import pylearn2 from pylearn2.utils.serial import load_train_file import os from pylearn2.testing import no_debug_mode from theano import config @no_debug_mode def test_train_example(): """ tests that the grbm_smd example script runs correctly """ assert config.mode != "DEBUG_MODE" path...
4cfd8771b91c7c2b9f28ca4b9776e9770683093b
frigg/builds/admin.py
frigg/builds/admin.py
# -*- coding: utf8 -*- from django.contrib import admin from .models import Build, BuildResult, Project class BuildResultInline(admin.StackedInline): model = BuildResult readonly_fields = ('result_log', 'succeeded', 'return_code') extra = 0 max_num = 0 class BuildInline(admin.TabularInline): mo...
# -*- coding: utf8 -*- from django.contrib import admin from django.template.defaultfilters import pluralize from .models import Build, BuildResult, Project class BuildResultInline(admin.StackedInline): model = BuildResult readonly_fields = ('result_log', 'succeeded', 'return_code') extra = 0 max_num...
Add restart_build action to BuildAdmin
Add restart_build action to BuildAdmin
Python
mit
frigg/frigg-hq,frigg/frigg-hq,frigg/frigg-hq
# -*- coding: utf8 -*- from django.contrib import admin from .models import Build, BuildResult, Project class BuildResultInline(admin.StackedInline): model = BuildResult readonly_fields = ('result_log', 'succeeded', 'return_code') extra = 0 max_num = 0 class BuildInline(admin.TabularInline): mo...
# -*- coding: utf8 -*- from django.contrib import admin from django.template.defaultfilters import pluralize from .models import Build, BuildResult, Project class BuildResultInline(admin.StackedInline): model = BuildResult readonly_fields = ('result_log', 'succeeded', 'return_code') extra = 0 max_num...
<commit_before># -*- coding: utf8 -*- from django.contrib import admin from .models import Build, BuildResult, Project class BuildResultInline(admin.StackedInline): model = BuildResult readonly_fields = ('result_log', 'succeeded', 'return_code') extra = 0 max_num = 0 class BuildInline(admin.Tabular...
# -*- coding: utf8 -*- from django.contrib import admin from django.template.defaultfilters import pluralize from .models import Build, BuildResult, Project class BuildResultInline(admin.StackedInline): model = BuildResult readonly_fields = ('result_log', 'succeeded', 'return_code') extra = 0 max_num...
# -*- coding: utf8 -*- from django.contrib import admin from .models import Build, BuildResult, Project class BuildResultInline(admin.StackedInline): model = BuildResult readonly_fields = ('result_log', 'succeeded', 'return_code') extra = 0 max_num = 0 class BuildInline(admin.TabularInline): mo...
<commit_before># -*- coding: utf8 -*- from django.contrib import admin from .models import Build, BuildResult, Project class BuildResultInline(admin.StackedInline): model = BuildResult readonly_fields = ('result_log', 'succeeded', 'return_code') extra = 0 max_num = 0 class BuildInline(admin.Tabular...
b1b1392d2f268a5c74fd21c826a3ea6387567cab
froide/bounce/apps.py
froide/bounce/apps.py
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class BounceConfig(AppConfig): name = 'froide.bounce' verbose_name = _('Bounce') def ready(self): from froide.account import account_canceled account_canceled.connect(cancel_user) def cancel_user(...
import json from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class BounceConfig(AppConfig): name = 'froide.bounce' verbose_name = _('Bounce') def ready(self): from froide.account import account_canceled from froide.account.export import registry ...
Add user data export for bounce handling
Add user data export for bounce handling
Python
mit
fin/froide,fin/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class BounceConfig(AppConfig): name = 'froide.bounce' verbose_name = _('Bounce') def ready(self): from froide.account import account_canceled account_canceled.connect(cancel_user) def cancel_user(...
import json from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class BounceConfig(AppConfig): name = 'froide.bounce' verbose_name = _('Bounce') def ready(self): from froide.account import account_canceled from froide.account.export import registry ...
<commit_before>from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class BounceConfig(AppConfig): name = 'froide.bounce' verbose_name = _('Bounce') def ready(self): from froide.account import account_canceled account_canceled.connect(cancel_user) d...
import json from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class BounceConfig(AppConfig): name = 'froide.bounce' verbose_name = _('Bounce') def ready(self): from froide.account import account_canceled from froide.account.export import registry ...
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class BounceConfig(AppConfig): name = 'froide.bounce' verbose_name = _('Bounce') def ready(self): from froide.account import account_canceled account_canceled.connect(cancel_user) def cancel_user(...
<commit_before>from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class BounceConfig(AppConfig): name = 'froide.bounce' verbose_name = _('Bounce') def ready(self): from froide.account import account_canceled account_canceled.connect(cancel_user) d...
f9d7f69d7e8ae1dceaba09ac4412438076261744
tests/test_completion.py
tests/test_completion.py
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
Update completion tests, checking for printed message
:white_check_mark: Update completion tests, checking for printed message
Python
mit
tiangolo/typer,tiangolo/typer
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
<commit_before>import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
<commit_before>import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ ...
83ea38ee5616b1637cc2d983d4518d83793c7b72
lint/events.py
lint/events.py
from collections import defaultdict import traceback LINT_START = 'LINT_START' LINT_RESULT = 'LINT_RESULT' LINT_END = 'LINT_END' listeners = defaultdict(set) def subscribe(topic, fn): listeners[topic].add(fn) def unsubscribe(topic, fn): try: listeners[topic].remove(fn) except KeyError: ...
from collections import defaultdict import traceback LINT_START = 'LINT_START' # (buffer_id) LINT_RESULT = 'LINT_RESULT' # (buffer_id, linter_name, errors) LINT_END = 'LINT_END' # (buffer_id) listeners = defaultdict(set) def subscribe(topic, fn): listeners[topic].add(fn) def unsubscribe(topic, fn...
Add very brief comments about the event types
Add very brief comments about the event types
Python
mit
SublimeLinter/SublimeLinter3,SublimeLinter/SublimeLinter3
from collections import defaultdict import traceback LINT_START = 'LINT_START' LINT_RESULT = 'LINT_RESULT' LINT_END = 'LINT_END' listeners = defaultdict(set) def subscribe(topic, fn): listeners[topic].add(fn) def unsubscribe(topic, fn): try: listeners[topic].remove(fn) except KeyError: ...
from collections import defaultdict import traceback LINT_START = 'LINT_START' # (buffer_id) LINT_RESULT = 'LINT_RESULT' # (buffer_id, linter_name, errors) LINT_END = 'LINT_END' # (buffer_id) listeners = defaultdict(set) def subscribe(topic, fn): listeners[topic].add(fn) def unsubscribe(topic, fn...
<commit_before>from collections import defaultdict import traceback LINT_START = 'LINT_START' LINT_RESULT = 'LINT_RESULT' LINT_END = 'LINT_END' listeners = defaultdict(set) def subscribe(topic, fn): listeners[topic].add(fn) def unsubscribe(topic, fn): try: listeners[topic].remove(fn) except ...
from collections import defaultdict import traceback LINT_START = 'LINT_START' # (buffer_id) LINT_RESULT = 'LINT_RESULT' # (buffer_id, linter_name, errors) LINT_END = 'LINT_END' # (buffer_id) listeners = defaultdict(set) def subscribe(topic, fn): listeners[topic].add(fn) def unsubscribe(topic, fn...
from collections import defaultdict import traceback LINT_START = 'LINT_START' LINT_RESULT = 'LINT_RESULT' LINT_END = 'LINT_END' listeners = defaultdict(set) def subscribe(topic, fn): listeners[topic].add(fn) def unsubscribe(topic, fn): try: listeners[topic].remove(fn) except KeyError: ...
<commit_before>from collections import defaultdict import traceback LINT_START = 'LINT_START' LINT_RESULT = 'LINT_RESULT' LINT_END = 'LINT_END' listeners = defaultdict(set) def subscribe(topic, fn): listeners[topic].add(fn) def unsubscribe(topic, fn): try: listeners[topic].remove(fn) except ...
d572c7228d4c4fb84530b8a33df7bd4596e01d8b
app/billing/billing_schemas.py
app/billing/billing_schemas.py
from datetime import datetime create_or_update_free_sms_fragment_limit_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST annual billing schema", "type": "object", "title": "Create", "properties": { "free_sms_fragment_limit": {"type": "integer", "minimum":...
from datetime import datetime create_or_update_free_sms_fragment_limit_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST annual billing schema", "type": "object", "title": "Create", "properties": { "free_sms_fragment_limit": {"type": "integer", "minimum":...
Allow the free SMS fragment limit to be 0
Allow the free SMS fragment limit to be 0 This updates the schema so that the free allowance has a minimum value of 0 instead of 1.
Python
mit
alphagov/notifications-api,alphagov/notifications-api
from datetime import datetime create_or_update_free_sms_fragment_limit_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST annual billing schema", "type": "object", "title": "Create", "properties": { "free_sms_fragment_limit": {"type": "integer", "minimum":...
from datetime import datetime create_or_update_free_sms_fragment_limit_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST annual billing schema", "type": "object", "title": "Create", "properties": { "free_sms_fragment_limit": {"type": "integer", "minimum":...
<commit_before>from datetime import datetime create_or_update_free_sms_fragment_limit_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST annual billing schema", "type": "object", "title": "Create", "properties": { "free_sms_fragment_limit": {"type": "integ...
from datetime import datetime create_or_update_free_sms_fragment_limit_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST annual billing schema", "type": "object", "title": "Create", "properties": { "free_sms_fragment_limit": {"type": "integer", "minimum":...
from datetime import datetime create_or_update_free_sms_fragment_limit_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST annual billing schema", "type": "object", "title": "Create", "properties": { "free_sms_fragment_limit": {"type": "integer", "minimum":...
<commit_before>from datetime import datetime create_or_update_free_sms_fragment_limit_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "POST annual billing schema", "type": "object", "title": "Create", "properties": { "free_sms_fragment_limit": {"type": "integ...
9b93ffa1662e99888c430e6deab01bd215055253
examples/analog_watch.py
examples/analog_watch.py
from microbit import * hands = Image.ALL_CLOCKS #A centre dot of brightness 2. ticker_image = Image("2\n").crop(-2,-2,5,5) #Adjust these to taste MINUTE_BRIGHT = 0.1111 HOUR_BRIGHT = 0.55555 #Generate hands for 5 minute intervals def fiveticks(): fivemins = 0 hours = 0 while True: yield hands[f...
from microbit import * hands = Image.ALL_CLOCKS #A centre dot of brightness 2. ticker_image = Image("2\n").crop(-2,-2,5,5) #Adjust these to taste MINUTE_BRIGHT = 0.1111 HOUR_BRIGHT = 0.55555 #Generate hands for 5 minute intervals def fiveticks(): fivemins = 0 hours = 0 while True: yield hands[f...
Use display.show instead of display.animate
Use display.show instead of display.animate
Python
mit
JoeGlancy/micropython,JoeGlancy/micropython,JoeGlancy/micropython
from microbit import * hands = Image.ALL_CLOCKS #A centre dot of brightness 2. ticker_image = Image("2\n").crop(-2,-2,5,5) #Adjust these to taste MINUTE_BRIGHT = 0.1111 HOUR_BRIGHT = 0.55555 #Generate hands for 5 minute intervals def fiveticks(): fivemins = 0 hours = 0 while True: yield hands[f...
from microbit import * hands = Image.ALL_CLOCKS #A centre dot of brightness 2. ticker_image = Image("2\n").crop(-2,-2,5,5) #Adjust these to taste MINUTE_BRIGHT = 0.1111 HOUR_BRIGHT = 0.55555 #Generate hands for 5 minute intervals def fiveticks(): fivemins = 0 hours = 0 while True: yield hands[f...
<commit_before>from microbit import * hands = Image.ALL_CLOCKS #A centre dot of brightness 2. ticker_image = Image("2\n").crop(-2,-2,5,5) #Adjust these to taste MINUTE_BRIGHT = 0.1111 HOUR_BRIGHT = 0.55555 #Generate hands for 5 minute intervals def fiveticks(): fivemins = 0 hours = 0 while True: ...
from microbit import * hands = Image.ALL_CLOCKS #A centre dot of brightness 2. ticker_image = Image("2\n").crop(-2,-2,5,5) #Adjust these to taste MINUTE_BRIGHT = 0.1111 HOUR_BRIGHT = 0.55555 #Generate hands for 5 minute intervals def fiveticks(): fivemins = 0 hours = 0 while True: yield hands[f...
from microbit import * hands = Image.ALL_CLOCKS #A centre dot of brightness 2. ticker_image = Image("2\n").crop(-2,-2,5,5) #Adjust these to taste MINUTE_BRIGHT = 0.1111 HOUR_BRIGHT = 0.55555 #Generate hands for 5 minute intervals def fiveticks(): fivemins = 0 hours = 0 while True: yield hands[f...
<commit_before>from microbit import * hands = Image.ALL_CLOCKS #A centre dot of brightness 2. ticker_image = Image("2\n").crop(-2,-2,5,5) #Adjust these to taste MINUTE_BRIGHT = 0.1111 HOUR_BRIGHT = 0.55555 #Generate hands for 5 minute intervals def fiveticks(): fivemins = 0 hours = 0 while True: ...
4286d2d6a685571c70a8f48c3cd6802d13c4acef
braid/postgres.py
braid/postgres.py
from fabric.api import sudo, quiet from braid import package from pipes import quote def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) def _runQuery(query): with quiet(): return sudo('psql --no-align --no-readline --no-password --quiet ' '--tuples-on...
from fabric.api import sudo, hide from braid import package from pipes import quote def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) def _runQuery(query): with hide('running', 'output'): return sudo('psql --no-align --no-readline --no-password --quiet ' ...
Make _runQuery to fail if the query fails, but still hide the execution messages
Make _runQuery to fail if the query fails, but still hide the execution messages
Python
mit
alex/braid,alex/braid
from fabric.api import sudo, quiet from braid import package from pipes import quote def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) def _runQuery(query): with quiet(): return sudo('psql --no-align --no-readline --no-password --quiet ' '--tuples-on...
from fabric.api import sudo, hide from braid import package from pipes import quote def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) def _runQuery(query): with hide('running', 'output'): return sudo('psql --no-align --no-readline --no-password --quiet ' ...
<commit_before>from fabric.api import sudo, quiet from braid import package from pipes import quote def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) def _runQuery(query): with quiet(): return sudo('psql --no-align --no-readline --no-password --quiet ' ...
from fabric.api import sudo, hide from braid import package from pipes import quote def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) def _runQuery(query): with hide('running', 'output'): return sudo('psql --no-align --no-readline --no-password --quiet ' ...
from fabric.api import sudo, quiet from braid import package from pipes import quote def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) def _runQuery(query): with quiet(): return sudo('psql --no-align --no-readline --no-password --quiet ' '--tuples-on...
<commit_before>from fabric.api import sudo, quiet from braid import package from pipes import quote def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) def _runQuery(query): with quiet(): return sudo('psql --no-align --no-readline --no-password --quiet ' ...
92d253fdce108162ab2ce05dd38da971ca42293d
keystone/contrib/kds/common/service.py
keystone/contrib/kds/common/service.py
# 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 in writing, software # distributed under t...
# 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 in writing, software # distributed under t...
Restructure KDS options to be more like Keystone's options
Restructure KDS options to be more like Keystone's options Restructure the KDS options to be more closely aligned with the way Keystone options work and allowing movement towards not registering the options on import. This will also prevent KDS options from appearing in the Keystone auto-generated sample config. Chan...
Python
apache-2.0
rushiagr/keystone,jumpstarter-io/keystone,reeshupatel/demo,dstanek/keystone,idjaw/keystone,jonnary/keystone,vivekdhayaal/keystone,MaheshIBM/keystone,klmitch/keystone,rajalokan/keystone,rajalokan/keystone,nuxeh/keystone,ging/keystone,rushiagr/keystone,takeshineshiro/keystone,ilay09/keystone,nuxeh/keystone,roopali8/keyst...
# 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 in writing, software # distributed under t...
# 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 in writing, software # distributed under t...
<commit_before># 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 in writing, software # dist...
# 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 in writing, software # distributed under t...
# 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 in writing, software # distributed under t...
<commit_before># 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 in writing, software # dist...
eaa13f9005a8aaf8c748a98de697b03eee9e675b
salt/client/netapi.py
salt/client/netapi.py
# encoding: utf-8 ''' The main entry point for salt-api ''' from __future__ import absolute_import # Import python libs import logging # Import salt-api libs import salt.loader import salt.utils.process logger = logging.getLogger(__name__) class NetapiClient(object): ''' Start each netapi module that is con...
# encoding: utf-8 ''' The main entry point for salt-api ''' from __future__ import absolute_import # Import python libs import logging # Import salt-api libs import salt.loader import salt.utils.process logger = logging.getLogger(__name__) class NetapiClient(object): ''' Start each netapi module that is con...
Add log error if we run salt-api w/ no config
Add log error if we run salt-api w/ no config Currently, the salt-api script will exit with no error or hint of why it failed if there is no netapi module configured. Added a short line if we find no api modules to start, warning the user that the config may be missing. Fixes #28240
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# encoding: utf-8 ''' The main entry point for salt-api ''' from __future__ import absolute_import # Import python libs import logging # Import salt-api libs import salt.loader import salt.utils.process logger = logging.getLogger(__name__) class NetapiClient(object): ''' Start each netapi module that is con...
# encoding: utf-8 ''' The main entry point for salt-api ''' from __future__ import absolute_import # Import python libs import logging # Import salt-api libs import salt.loader import salt.utils.process logger = logging.getLogger(__name__) class NetapiClient(object): ''' Start each netapi module that is con...
<commit_before># encoding: utf-8 ''' The main entry point for salt-api ''' from __future__ import absolute_import # Import python libs import logging # Import salt-api libs import salt.loader import salt.utils.process logger = logging.getLogger(__name__) class NetapiClient(object): ''' Start each netapi mod...
# encoding: utf-8 ''' The main entry point for salt-api ''' from __future__ import absolute_import # Import python libs import logging # Import salt-api libs import salt.loader import salt.utils.process logger = logging.getLogger(__name__) class NetapiClient(object): ''' Start each netapi module that is con...
# encoding: utf-8 ''' The main entry point for salt-api ''' from __future__ import absolute_import # Import python libs import logging # Import salt-api libs import salt.loader import salt.utils.process logger = logging.getLogger(__name__) class NetapiClient(object): ''' Start each netapi module that is con...
<commit_before># encoding: utf-8 ''' The main entry point for salt-api ''' from __future__ import absolute_import # Import python libs import logging # Import salt-api libs import salt.loader import salt.utils.process logger = logging.getLogger(__name__) class NetapiClient(object): ''' Start each netapi mod...
917c2701f25f15b0d39a4dd8f93254b75aa058dd
script/release/release/pypi.py
script/release/release/pypi.py
from __future__ import absolute_import from __future__ import unicode_literals from configparser import Error from requests.exceptions import HTTPError from twine.commands.upload import main as twine_upload from twine.utils import get_config from .utils import ScriptError def pypi_upload(args): print('Uploading...
from __future__ import absolute_import from __future__ import unicode_literals from configparser import Error from requests.exceptions import HTTPError from twine.commands.upload import main as twine_upload from twine.utils import get_config from .utils import ScriptError def pypi_upload(args): print('Uploading...
Fix script for release file already present case
Fix script for release file already present case This avoids a: "AttributeError: 'HTTPError' object has no attribute 'message'" Signed-off-by: Ulysses Souza <[email protected]>
Python
apache-2.0
thaJeztah/compose,vdemeester/compose,vdemeester/compose,thaJeztah/compose
from __future__ import absolute_import from __future__ import unicode_literals from configparser import Error from requests.exceptions import HTTPError from twine.commands.upload import main as twine_upload from twine.utils import get_config from .utils import ScriptError def pypi_upload(args): print('Uploading...
from __future__ import absolute_import from __future__ import unicode_literals from configparser import Error from requests.exceptions import HTTPError from twine.commands.upload import main as twine_upload from twine.utils import get_config from .utils import ScriptError def pypi_upload(args): print('Uploading...
<commit_before>from __future__ import absolute_import from __future__ import unicode_literals from configparser import Error from requests.exceptions import HTTPError from twine.commands.upload import main as twine_upload from twine.utils import get_config from .utils import ScriptError def pypi_upload(args): p...
from __future__ import absolute_import from __future__ import unicode_literals from configparser import Error from requests.exceptions import HTTPError from twine.commands.upload import main as twine_upload from twine.utils import get_config from .utils import ScriptError def pypi_upload(args): print('Uploading...
from __future__ import absolute_import from __future__ import unicode_literals from configparser import Error from requests.exceptions import HTTPError from twine.commands.upload import main as twine_upload from twine.utils import get_config from .utils import ScriptError def pypi_upload(args): print('Uploading...
<commit_before>from __future__ import absolute_import from __future__ import unicode_literals from configparser import Error from requests.exceptions import HTTPError from twine.commands.upload import main as twine_upload from twine.utils import get_config from .utils import ScriptError def pypi_upload(args): p...
0f1ed52e7525ea5f41d63642bca1eaeb9d5af8ba
emission/core/wrapper/labelprediction.py
emission/core/wrapper/labelprediction.py
# Based on modeprediction.py import emission.core.wrapper.wrapperbase as ecwb class Labelprediction(ecwb.WrapperBase): props = {"trip_id": ecwb.WrapperBase.Access.WORM, # the trip that this is part of "prediction": ecwb.WrapperBase.Access.WORM, # What we predict "start_ts": ecwb.Wrapp...
# Based on modeprediction.py import emission.core.wrapper.wrapperbase as ecwb # The "prediction" data structure is a list of label possibilities, each one consisting of a set of labels and a probability: # [ # {"labels": {"labeltype1": "labelvalue1", "labeltype2": "labelvalue2"}, "p": 0.61}, # {"labels": {"label...
Add comments explaining prediction data structure
Add comments explaining prediction data structure
Python
bsd-3-clause
shankari/e-mission-server,shankari/e-mission-server,shankari/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server
# Based on modeprediction.py import emission.core.wrapper.wrapperbase as ecwb class Labelprediction(ecwb.WrapperBase): props = {"trip_id": ecwb.WrapperBase.Access.WORM, # the trip that this is part of "prediction": ecwb.WrapperBase.Access.WORM, # What we predict "start_ts": ecwb.Wrapp...
# Based on modeprediction.py import emission.core.wrapper.wrapperbase as ecwb # The "prediction" data structure is a list of label possibilities, each one consisting of a set of labels and a probability: # [ # {"labels": {"labeltype1": "labelvalue1", "labeltype2": "labelvalue2"}, "p": 0.61}, # {"labels": {"label...
<commit_before># Based on modeprediction.py import emission.core.wrapper.wrapperbase as ecwb class Labelprediction(ecwb.WrapperBase): props = {"trip_id": ecwb.WrapperBase.Access.WORM, # the trip that this is part of "prediction": ecwb.WrapperBase.Access.WORM, # What we predict "start_ts...
# Based on modeprediction.py import emission.core.wrapper.wrapperbase as ecwb # The "prediction" data structure is a list of label possibilities, each one consisting of a set of labels and a probability: # [ # {"labels": {"labeltype1": "labelvalue1", "labeltype2": "labelvalue2"}, "p": 0.61}, # {"labels": {"label...
# Based on modeprediction.py import emission.core.wrapper.wrapperbase as ecwb class Labelprediction(ecwb.WrapperBase): props = {"trip_id": ecwb.WrapperBase.Access.WORM, # the trip that this is part of "prediction": ecwb.WrapperBase.Access.WORM, # What we predict "start_ts": ecwb.Wrapp...
<commit_before># Based on modeprediction.py import emission.core.wrapper.wrapperbase as ecwb class Labelprediction(ecwb.WrapperBase): props = {"trip_id": ecwb.WrapperBase.Access.WORM, # the trip that this is part of "prediction": ecwb.WrapperBase.Access.WORM, # What we predict "start_ts...
3e614788b179fa3549098870c5ba9ca0ce4a35a1
src/euth/setup.py
src/euth/setup.py
"""Adhocracy frontend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_frontend', ...
"""Adhocracy frontend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_frontend', ...
Remove old dependency to kit from euth frontend
Remove old dependency to kit from euth frontend
Python
agpl-3.0
liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator
"""Adhocracy frontend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_frontend', ...
"""Adhocracy frontend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_frontend', ...
<commit_before>"""Adhocracy frontend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_...
"""Adhocracy frontend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_frontend', ...
"""Adhocracy frontend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_frontend', ...
<commit_before>"""Adhocracy frontend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_...
841289e7092a5e4bf485ef525f358aa3a58f7fb9
meta-iotqa/lib/oeqa/runtime/sanity/comm_btcheck.py
meta-iotqa/lib/oeqa/runtime/sanity/comm_btcheck.py
import time from oeqa.oetest import oeRuntimeTest from oeqa.utils.decorators import tag @tag(TestType="FVT", FeatureID="IOTOS-453") class CommBluetoothTest(oeRuntimeTest): """ @class CommBluetoothTest """ log = "" def setUp(self): self.target.run('connmanctl enable bluetooth') time...
import time from oeqa.oetest import oeRuntimeTest from oeqa.utils.decorators import tag @tag(TestType="FVT", FeatureID="IOTOS-453") class CommBluetoothTest(oeRuntimeTest): """ @class CommBluetoothTest """ log = "" def setUp(self): self.target.run('connmanctl enable bluetooth') time...
Remove Edison specific command from Bluetooth test
meta-iotqa: Remove Edison specific command from Bluetooth test The platform isn't supported anymore and the command isn't needed with current devices. Signed-off-by: Simo Kuusela <[email protected]>
Python
mit
YinThong/intel-iot-refkit,mythi/intel-iot-refkit,mythi/intel-iot-refkit,klihub/intel-iot-refkit,jairglez/intel-iot-refkit,klihub/intel-iot-refkit,intel/intel-iot-refkit,YinThong/intel-iot-refkit,jairglez/intel-iot-refkit,YinThong/intel-iot-refkit,YinThong/intel-iot-refkit,mythi/intel-iot-refkit,intel/intel-iot-refkit,k...
import time from oeqa.oetest import oeRuntimeTest from oeqa.utils.decorators import tag @tag(TestType="FVT", FeatureID="IOTOS-453") class CommBluetoothTest(oeRuntimeTest): """ @class CommBluetoothTest """ log = "" def setUp(self): self.target.run('connmanctl enable bluetooth') time...
import time from oeqa.oetest import oeRuntimeTest from oeqa.utils.decorators import tag @tag(TestType="FVT", FeatureID="IOTOS-453") class CommBluetoothTest(oeRuntimeTest): """ @class CommBluetoothTest """ log = "" def setUp(self): self.target.run('connmanctl enable bluetooth') time...
<commit_before>import time from oeqa.oetest import oeRuntimeTest from oeqa.utils.decorators import tag @tag(TestType="FVT", FeatureID="IOTOS-453") class CommBluetoothTest(oeRuntimeTest): """ @class CommBluetoothTest """ log = "" def setUp(self): self.target.run('connmanctl enable bluetooth...
import time from oeqa.oetest import oeRuntimeTest from oeqa.utils.decorators import tag @tag(TestType="FVT", FeatureID="IOTOS-453") class CommBluetoothTest(oeRuntimeTest): """ @class CommBluetoothTest """ log = "" def setUp(self): self.target.run('connmanctl enable bluetooth') time...
import time from oeqa.oetest import oeRuntimeTest from oeqa.utils.decorators import tag @tag(TestType="FVT", FeatureID="IOTOS-453") class CommBluetoothTest(oeRuntimeTest): """ @class CommBluetoothTest """ log = "" def setUp(self): self.target.run('connmanctl enable bluetooth') time...
<commit_before>import time from oeqa.oetest import oeRuntimeTest from oeqa.utils.decorators import tag @tag(TestType="FVT", FeatureID="IOTOS-453") class CommBluetoothTest(oeRuntimeTest): """ @class CommBluetoothTest """ log = "" def setUp(self): self.target.run('connmanctl enable bluetooth...
4a48be97254f4626eaadf86492d98e0dd640d43d
flower/utils/__init__.py
flower/utils/__init__.py
from __future__ import absolute_import import uuid import base64 import os.path from .. import __version__ def gen_cookie_secret(): return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) def bugreport(): try: import celery return 'flower -> %s' % __version__ + celery.bugreport(...
from __future__ import absolute_import import uuid import base64 import os.path from .. import __version__ def gen_cookie_secret(): return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) def bugreport(): try: import celery import tornado import babel return 'flowe...
Include tornado and babel version info in bug report
Include tornado and babel version info in bug report
Python
bsd-3-clause
raphaelmerx/flower,ChinaQuants/flower,pj/flower,Lingling7/flower,tellapart/flower,alexmojaki/flower,ucb-bar/bar-crawl-web,Lingling7/flower,ChinaQuants/flower,jzhou77/flower,Lingling7/flower,lucius-feng/flower,lucius-feng/flower,ucb-bar/bar-crawl-web,allengaller/flower,asmodehn/flower,allengaller/flower,lucius-feng/flow...
from __future__ import absolute_import import uuid import base64 import os.path from .. import __version__ def gen_cookie_secret(): return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) def bugreport(): try: import celery return 'flower -> %s' % __version__ + celery.bugreport(...
from __future__ import absolute_import import uuid import base64 import os.path from .. import __version__ def gen_cookie_secret(): return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) def bugreport(): try: import celery import tornado import babel return 'flowe...
<commit_before>from __future__ import absolute_import import uuid import base64 import os.path from .. import __version__ def gen_cookie_secret(): return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) def bugreport(): try: import celery return 'flower -> %s' % __version__ + ce...
from __future__ import absolute_import import uuid import base64 import os.path from .. import __version__ def gen_cookie_secret(): return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) def bugreport(): try: import celery import tornado import babel return 'flowe...
from __future__ import absolute_import import uuid import base64 import os.path from .. import __version__ def gen_cookie_secret(): return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) def bugreport(): try: import celery return 'flower -> %s' % __version__ + celery.bugreport(...
<commit_before>from __future__ import absolute_import import uuid import base64 import os.path from .. import __version__ def gen_cookie_secret(): return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) def bugreport(): try: import celery return 'flower -> %s' % __version__ + ce...
98e574061dc430b1cad6c9bbef5b55aa92803206
command_line/rebin_images.py
command_line/rebin_images.py
# LIBTBX_SET_DISPATCHER_NAME dev.dials.rebin_images from __future__ import division def rebin_images(in_template, out_template, start, end): from dials.util.rebin_images import main in_images = [in_template % j for j in range(start, end + 1)] out_images = [out_template % j for j in range(start, end + 1)] main...
# LIBTBX_SET_DISPATCHER_NAME dev.dials.rebin_images from __future__ import division def rebin_images(in_template, out_template, start, end): from dials.util.rebin_images import main in_images = [in_template % j for j in range(start, end + 1)] out_images = [out_template % j for j in range(start, end + 1)] main...
Check email update on branch for YT only
Check email update on branch for YT only
Python
bsd-3-clause
dials/dials,dials/dials,dials/dials,dials/dials,dials/dials
# LIBTBX_SET_DISPATCHER_NAME dev.dials.rebin_images from __future__ import division def rebin_images(in_template, out_template, start, end): from dials.util.rebin_images import main in_images = [in_template % j for j in range(start, end + 1)] out_images = [out_template % j for j in range(start, end + 1)] main...
# LIBTBX_SET_DISPATCHER_NAME dev.dials.rebin_images from __future__ import division def rebin_images(in_template, out_template, start, end): from dials.util.rebin_images import main in_images = [in_template % j for j in range(start, end + 1)] out_images = [out_template % j for j in range(start, end + 1)] main...
<commit_before># LIBTBX_SET_DISPATCHER_NAME dev.dials.rebin_images from __future__ import division def rebin_images(in_template, out_template, start, end): from dials.util.rebin_images import main in_images = [in_template % j for j in range(start, end + 1)] out_images = [out_template % j for j in range(start, e...
# LIBTBX_SET_DISPATCHER_NAME dev.dials.rebin_images from __future__ import division def rebin_images(in_template, out_template, start, end): from dials.util.rebin_images import main in_images = [in_template % j for j in range(start, end + 1)] out_images = [out_template % j for j in range(start, end + 1)] main...
# LIBTBX_SET_DISPATCHER_NAME dev.dials.rebin_images from __future__ import division def rebin_images(in_template, out_template, start, end): from dials.util.rebin_images import main in_images = [in_template % j for j in range(start, end + 1)] out_images = [out_template % j for j in range(start, end + 1)] main...
<commit_before># LIBTBX_SET_DISPATCHER_NAME dev.dials.rebin_images from __future__ import division def rebin_images(in_template, out_template, start, end): from dials.util.rebin_images import main in_images = [in_template % j for j in range(start, end + 1)] out_images = [out_template % j for j in range(start, e...
4e483d6443e809f9e7e1a59c3fe959fd5f42f938
simple-cipher/simple_cipher.py
simple-cipher/simple_cipher.py
import math import secrets from string import ascii_lowercase class Cipher(object): def __init__(self, key=None): if not key: key = Cipher._random_key() if not key.isalpha() or not key.islower(): raise ValueError("Key must consist only of lowercase letters") self.ke...
import math import secrets from string import ascii_lowercase class Cipher(object): def __init__(self, key=None): if not key: key = self._random_key() if not key.isalpha() or not key.islower(): raise ValueError("Key must consist only of lowercase letters") self.key ...
Use super() and self within the Cipher and Caesar classes
Use super() and self within the Cipher and Caesar classes
Python
agpl-3.0
CubicComet/exercism-python-solutions
import math import secrets from string import ascii_lowercase class Cipher(object): def __init__(self, key=None): if not key: key = Cipher._random_key() if not key.isalpha() or not key.islower(): raise ValueError("Key must consist only of lowercase letters") self.ke...
import math import secrets from string import ascii_lowercase class Cipher(object): def __init__(self, key=None): if not key: key = self._random_key() if not key.isalpha() or not key.islower(): raise ValueError("Key must consist only of lowercase letters") self.key ...
<commit_before>import math import secrets from string import ascii_lowercase class Cipher(object): def __init__(self, key=None): if not key: key = Cipher._random_key() if not key.isalpha() or not key.islower(): raise ValueError("Key must consist only of lowercase letters") ...
import math import secrets from string import ascii_lowercase class Cipher(object): def __init__(self, key=None): if not key: key = self._random_key() if not key.isalpha() or not key.islower(): raise ValueError("Key must consist only of lowercase letters") self.key ...
import math import secrets from string import ascii_lowercase class Cipher(object): def __init__(self, key=None): if not key: key = Cipher._random_key() if not key.isalpha() or not key.islower(): raise ValueError("Key must consist only of lowercase letters") self.ke...
<commit_before>import math import secrets from string import ascii_lowercase class Cipher(object): def __init__(self, key=None): if not key: key = Cipher._random_key() if not key.isalpha() or not key.islower(): raise ValueError("Key must consist only of lowercase letters") ...
5ca96beb26dd2ab5285a57f5cade6f01160df368
joequery/blog/posts/code/notes-on-dynamic-programming-part-1/meta.py
joequery/blog/posts/code/notes-on-dynamic-programming-part-1/meta.py
title="Notes on dynamic programming - part 1" description=""" Part 1 of extensive notes discussing the fundamentals of dynamic programming. Examples in these notes include the Fibonacci sequence and Warshall's algorithm. Pseudocode and Python implementations of the algorithms are provided. """ time="2012-12-10 Mon 02:...
title="Notes on dynamic programming - part 1" description=""" Part 1 of extensive notes discussing the fundamentals of dynamic programming. Examples in these notes include the Fibonacci sequence, the Binomial Formula, and Warshall's algorithm. Python implementations of the algorithms are provided. """ time="2012-12-10...
Update description and timestamp for dynamic programming part 1
Update description and timestamp for dynamic programming part 1
Python
mit
joequery/joequery.me,joequery/joequery.me,joequery/joequery.me,joequery/joequery.me
title="Notes on dynamic programming - part 1" description=""" Part 1 of extensive notes discussing the fundamentals of dynamic programming. Examples in these notes include the Fibonacci sequence and Warshall's algorithm. Pseudocode and Python implementations of the algorithms are provided. """ time="2012-12-10 Mon 02:...
title="Notes on dynamic programming - part 1" description=""" Part 1 of extensive notes discussing the fundamentals of dynamic programming. Examples in these notes include the Fibonacci sequence, the Binomial Formula, and Warshall's algorithm. Python implementations of the algorithms are provided. """ time="2012-12-10...
<commit_before>title="Notes on dynamic programming - part 1" description=""" Part 1 of extensive notes discussing the fundamentals of dynamic programming. Examples in these notes include the Fibonacci sequence and Warshall's algorithm. Pseudocode and Python implementations of the algorithms are provided. """ time="201...
title="Notes on dynamic programming - part 1" description=""" Part 1 of extensive notes discussing the fundamentals of dynamic programming. Examples in these notes include the Fibonacci sequence, the Binomial Formula, and Warshall's algorithm. Python implementations of the algorithms are provided. """ time="2012-12-10...
title="Notes on dynamic programming - part 1" description=""" Part 1 of extensive notes discussing the fundamentals of dynamic programming. Examples in these notes include the Fibonacci sequence and Warshall's algorithm. Pseudocode and Python implementations of the algorithms are provided. """ time="2012-12-10 Mon 02:...
<commit_before>title="Notes on dynamic programming - part 1" description=""" Part 1 of extensive notes discussing the fundamentals of dynamic programming. Examples in these notes include the Fibonacci sequence and Warshall's algorithm. Pseudocode and Python implementations of the algorithms are provided. """ time="201...
c04b9813b5d6d3f8bc8eaa7be2d49d32f150aaf2
tests/test_authentication.py
tests/test_authentication.py
import unittest from flask import json from api import db from api.BucketListAPI import app from instance.config import application_config class AuthenticationTestCase(unittest.TestCase): def setUp(self): app.config.from_object(application_config['TestingEnv']) self.client = app.test_client() ...
import unittest from flask import json from api import db from api.BucketListAPI import app from instance.config import application_config class AuthenticationTestCase(unittest.TestCase): def setUp(self): app.config.from_object(application_config['TestingEnv']) self.client = app.test_client() ...
Add test for user with missing credentials
Add test for user with missing credentials
Python
mit
patlub/BucketListAPI,patlub/BucketListAPI
import unittest from flask import json from api import db from api.BucketListAPI import app from instance.config import application_config class AuthenticationTestCase(unittest.TestCase): def setUp(self): app.config.from_object(application_config['TestingEnv']) self.client = app.test_client() ...
import unittest from flask import json from api import db from api.BucketListAPI import app from instance.config import application_config class AuthenticationTestCase(unittest.TestCase): def setUp(self): app.config.from_object(application_config['TestingEnv']) self.client = app.test_client() ...
<commit_before>import unittest from flask import json from api import db from api.BucketListAPI import app from instance.config import application_config class AuthenticationTestCase(unittest.TestCase): def setUp(self): app.config.from_object(application_config['TestingEnv']) self.client = app.tes...
import unittest from flask import json from api import db from api.BucketListAPI import app from instance.config import application_config class AuthenticationTestCase(unittest.TestCase): def setUp(self): app.config.from_object(application_config['TestingEnv']) self.client = app.test_client() ...
import unittest from flask import json from api import db from api.BucketListAPI import app from instance.config import application_config class AuthenticationTestCase(unittest.TestCase): def setUp(self): app.config.from_object(application_config['TestingEnv']) self.client = app.test_client() ...
<commit_before>import unittest from flask import json from api import db from api.BucketListAPI import app from instance.config import application_config class AuthenticationTestCase(unittest.TestCase): def setUp(self): app.config.from_object(application_config['TestingEnv']) self.client = app.tes...
47f1b47f37da4f9a3444a2ac6cc7b7a0affafbf3
node_bridge.py
node_bridge.py
import os import platform import subprocess IS_MACOS = platform.system() == 'Darwin' IS_WINDOWS = platform.system() == 'Windows' def node_bridge(data, bin, args=[]): env = None startupinfo = None if IS_MACOS: # GUI apps on macOS doesn't contain .bashrc/.zshrc set paths env = os.environ.copy() env['PATH'] += ...
import os import platform import subprocess IS_MACOS = platform.system() == 'Darwin' IS_WINDOWS = platform.system() == 'Windows' def node_bridge(data, bin, args=[]): env = None startupinfo = None if IS_MACOS: # GUI apps on macOS doesn't contain .bashrc/.zshrc set paths env = os.environ.copy() env['PATH'] += ...
Add support for `n` Node.js version manager
Add support for `n` Node.js version manager
Python
mit
sindresorhus/sublime-autoprefixer,sindresorhus/sublime-autoprefixer,sindresorhus/sublime-autoprefixer
import os import platform import subprocess IS_MACOS = platform.system() == 'Darwin' IS_WINDOWS = platform.system() == 'Windows' def node_bridge(data, bin, args=[]): env = None startupinfo = None if IS_MACOS: # GUI apps on macOS doesn't contain .bashrc/.zshrc set paths env = os.environ.copy() env['PATH'] += ...
import os import platform import subprocess IS_MACOS = platform.system() == 'Darwin' IS_WINDOWS = platform.system() == 'Windows' def node_bridge(data, bin, args=[]): env = None startupinfo = None if IS_MACOS: # GUI apps on macOS doesn't contain .bashrc/.zshrc set paths env = os.environ.copy() env['PATH'] += ...
<commit_before>import os import platform import subprocess IS_MACOS = platform.system() == 'Darwin' IS_WINDOWS = platform.system() == 'Windows' def node_bridge(data, bin, args=[]): env = None startupinfo = None if IS_MACOS: # GUI apps on macOS doesn't contain .bashrc/.zshrc set paths env = os.environ.copy() ...
import os import platform import subprocess IS_MACOS = platform.system() == 'Darwin' IS_WINDOWS = platform.system() == 'Windows' def node_bridge(data, bin, args=[]): env = None startupinfo = None if IS_MACOS: # GUI apps on macOS doesn't contain .bashrc/.zshrc set paths env = os.environ.copy() env['PATH'] += ...
import os import platform import subprocess IS_MACOS = platform.system() == 'Darwin' IS_WINDOWS = platform.system() == 'Windows' def node_bridge(data, bin, args=[]): env = None startupinfo = None if IS_MACOS: # GUI apps on macOS doesn't contain .bashrc/.zshrc set paths env = os.environ.copy() env['PATH'] += ...
<commit_before>import os import platform import subprocess IS_MACOS = platform.system() == 'Darwin' IS_WINDOWS = platform.system() == 'Windows' def node_bridge(data, bin, args=[]): env = None startupinfo = None if IS_MACOS: # GUI apps on macOS doesn't contain .bashrc/.zshrc set paths env = os.environ.copy() ...
c7660db45e0275a685a6cc450fd4341a69c52b92
threaded_multihost/fields.py
threaded_multihost/fields.py
from django.db.models import ForeignKey from django.contrib.auth.models import User import threadlocals class UserField(ForeignKey): """ UserField By defaults, foreign key to User; null=True, blank=True """ def __init__(self, **kwargs): kwargs.setdefault('null', True) kwargs.setdefa...
from django.db.models import ForeignKey from django.contrib.auth.models import User import threadlocals class UserField(ForeignKey): """ UserField By defaults, foreign key to User; null=True, blank=True """ def __init__(self, **kwargs): kwargs.setdefault('to', User) kwargs.setdefaul...
Patch from chrischambers to enable south migrations.
Patch from chrischambers to enable south migrations.
Python
bsd-3-clause
diver-in-sky/django-threaded-multihost
from django.db.models import ForeignKey from django.contrib.auth.models import User import threadlocals class UserField(ForeignKey): """ UserField By defaults, foreign key to User; null=True, blank=True """ def __init__(self, **kwargs): kwargs.setdefault('null', True) kwargs.setdefa...
from django.db.models import ForeignKey from django.contrib.auth.models import User import threadlocals class UserField(ForeignKey): """ UserField By defaults, foreign key to User; null=True, blank=True """ def __init__(self, **kwargs): kwargs.setdefault('to', User) kwargs.setdefaul...
<commit_before>from django.db.models import ForeignKey from django.contrib.auth.models import User import threadlocals class UserField(ForeignKey): """ UserField By defaults, foreign key to User; null=True, blank=True """ def __init__(self, **kwargs): kwargs.setdefault('null', True) ...
from django.db.models import ForeignKey from django.contrib.auth.models import User import threadlocals class UserField(ForeignKey): """ UserField By defaults, foreign key to User; null=True, blank=True """ def __init__(self, **kwargs): kwargs.setdefault('to', User) kwargs.setdefaul...
from django.db.models import ForeignKey from django.contrib.auth.models import User import threadlocals class UserField(ForeignKey): """ UserField By defaults, foreign key to User; null=True, blank=True """ def __init__(self, **kwargs): kwargs.setdefault('null', True) kwargs.setdefa...
<commit_before>from django.db.models import ForeignKey from django.contrib.auth.models import User import threadlocals class UserField(ForeignKey): """ UserField By defaults, foreign key to User; null=True, blank=True """ def __init__(self, **kwargs): kwargs.setdefault('null', True) ...
305e88780fc2d3638fb3a9f33bfec8d6c295535e
feincms/views/base.py
feincms/views/base.py
from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from feincms.module.page.models import Page def build_page_response(page, request): response = page.setup_request(request) if respo...
from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from feincms.module.page.models import Page def _build_page_response(page, request): response = page.setup_request(request) if resp...
Make sure we invoke the response processors even for app content.
Make sure we invoke the response processors even for app content.
Python
bsd-3-clause
matthiask/feincms2-content,joshuajonah/feincms,nickburlett/feincms,nickburlett/feincms,hgrimelid/feincms,feincms/feincms,mjl/feincms,mjl/feincms,joshuajonah/feincms,pjdelport/feincms,matthiask/django-content-editor,feincms/feincms,matthiask/feincms2-content,matthiask/django-content-editor,hgrimelid/feincms,pjdelport/fe...
from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from feincms.module.page.models import Page def build_page_response(page, request): response = page.setup_request(request) if respo...
from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from feincms.module.page.models import Page def _build_page_response(page, request): response = page.setup_request(request) if resp...
<commit_before>from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from feincms.module.page.models import Page def build_page_response(page, request): response = page.setup_request(request) ...
from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from feincms.module.page.models import Page def _build_page_response(page, request): response = page.setup_request(request) if resp...
from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from feincms.module.page.models import Page def build_page_response(page, request): response = page.setup_request(request) if respo...
<commit_before>from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from feincms.module.page.models import Page def build_page_response(page, request): response = page.setup_request(request) ...
c7ef639ac9bab4a01e4c8cbafb71bf09d973c355
src/adhocracy/lib/auth/shibboleth.py
src/adhocracy/lib/auth/shibboleth.py
from pylons import config def get_userbadge_mapping(config=config): mapping = config.get('adhocracy.shibboleth.userbadge_mapping', u'') return (line.strip().split(u' ') for line in mapping.strip().split(u'\n') if line is not u'') def _attribute_equals(request, key, value): """ ...
from pylons import config def get_userbadge_mapping(config=config): mapping = config.get('adhocracy.shibboleth.userbadge_mapping', u'') return (line.strip().split(u' ') for line in mapping.strip().split(u'\n') if line is not u'') def _attribute_equals(request, key, value): """ ...
Use ; instead of , for Shibboleth multi value fields
Use ; instead of , for Shibboleth multi value fields This corresponds to what mod_shibboleth does.
Python
agpl-3.0
liqd/adhocracy,liqd/adhocracy,phihag/adhocracy,DanielNeugebauer/adhocracy,liqd/adhocracy,alkadis/vcv,phihag/adhocracy,phihag/adhocracy,phihag/adhocracy,SysTheron/adhocracy,alkadis/vcv,DanielNeugebauer/adhocracy,SysTheron/adhocracy,alkadis/vcv,alkadis/vcv,DanielNeugebauer/adhocracy,DanielNeugebauer/adhocracy,liqd/adhocr...
from pylons import config def get_userbadge_mapping(config=config): mapping = config.get('adhocracy.shibboleth.userbadge_mapping', u'') return (line.strip().split(u' ') for line in mapping.strip().split(u'\n') if line is not u'') def _attribute_equals(request, key, value): """ ...
from pylons import config def get_userbadge_mapping(config=config): mapping = config.get('adhocracy.shibboleth.userbadge_mapping', u'') return (line.strip().split(u' ') for line in mapping.strip().split(u'\n') if line is not u'') def _attribute_equals(request, key, value): """ ...
<commit_before>from pylons import config def get_userbadge_mapping(config=config): mapping = config.get('adhocracy.shibboleth.userbadge_mapping', u'') return (line.strip().split(u' ') for line in mapping.strip().split(u'\n') if line is not u'') def _attribute_equals(request, key, val...
from pylons import config def get_userbadge_mapping(config=config): mapping = config.get('adhocracy.shibboleth.userbadge_mapping', u'') return (line.strip().split(u' ') for line in mapping.strip().split(u'\n') if line is not u'') def _attribute_equals(request, key, value): """ ...
from pylons import config def get_userbadge_mapping(config=config): mapping = config.get('adhocracy.shibboleth.userbadge_mapping', u'') return (line.strip().split(u' ') for line in mapping.strip().split(u'\n') if line is not u'') def _attribute_equals(request, key, value): """ ...
<commit_before>from pylons import config def get_userbadge_mapping(config=config): mapping = config.get('adhocracy.shibboleth.userbadge_mapping', u'') return (line.strip().split(u' ') for line in mapping.strip().split(u'\n') if line is not u'') def _attribute_equals(request, key, val...
1702fbc607816544c28a8f2895a82d234226e48b
euler/p007.py
euler/p007.py
"""Solution to Project Euler Problem 7 https://projecteuler.net/problem=7 """ INDEX = 10001 def compute(index=INDEX): """Find the `index`th prime number.""" primes = list() test_number = 2 while len(primes) < index: for prime in primes: if test_number % prime == 0: ...
"""Solution to Project Euler Problem 7 https://projecteuler.net/problem=7 """ INDEX = 10001 def compute(index=INDEX): """Find the `index`th prime number.""" primes = [2] test_number = 3 while len(primes) < index: for prime in primes: if test_number % prime == 0: ...
Check only odd numbers after 2
P007: Check only odd numbers after 2
Python
mit
2Cubed/ProjectEuler
"""Solution to Project Euler Problem 7 https://projecteuler.net/problem=7 """ INDEX = 10001 def compute(index=INDEX): """Find the `index`th prime number.""" primes = list() test_number = 2 while len(primes) < index: for prime in primes: if test_number % prime == 0: ...
"""Solution to Project Euler Problem 7 https://projecteuler.net/problem=7 """ INDEX = 10001 def compute(index=INDEX): """Find the `index`th prime number.""" primes = [2] test_number = 3 while len(primes) < index: for prime in primes: if test_number % prime == 0: ...
<commit_before>"""Solution to Project Euler Problem 7 https://projecteuler.net/problem=7 """ INDEX = 10001 def compute(index=INDEX): """Find the `index`th prime number.""" primes = list() test_number = 2 while len(primes) < index: for prime in primes: if test_number % prime == 0...
"""Solution to Project Euler Problem 7 https://projecteuler.net/problem=7 """ INDEX = 10001 def compute(index=INDEX): """Find the `index`th prime number.""" primes = [2] test_number = 3 while len(primes) < index: for prime in primes: if test_number % prime == 0: ...
"""Solution to Project Euler Problem 7 https://projecteuler.net/problem=7 """ INDEX = 10001 def compute(index=INDEX): """Find the `index`th prime number.""" primes = list() test_number = 2 while len(primes) < index: for prime in primes: if test_number % prime == 0: ...
<commit_before>"""Solution to Project Euler Problem 7 https://projecteuler.net/problem=7 """ INDEX = 10001 def compute(index=INDEX): """Find the `index`th prime number.""" primes = list() test_number = 2 while len(primes) < index: for prime in primes: if test_number % prime == 0...
fc472d043e81c2b5687a0f83dbbdd0dd02b73e35
flowtype/commands/exec_flow.py
flowtype/commands/exec_flow.py
import os import json import threading import subprocess import sublime class ExecFlowCommand(threading.Thread): """Threaded class used for running flow commands in a different thread. The subprocess must be threaded so we don't lockup the UI. """ def __init__(self, cmd, content): """Initia...
import os import json import threading import subprocess import sublime class ExecFlowCommand(threading.Thread): """Threaded class used for running flow commands in a different thread. The subprocess must be threaded so we don't lockup the UI. """ def __init__(self, cmd, content): """Initia...
Add error output to exec error messages
Add error output to exec error messages e.g. for an error like "env: ‘node’: No such file or directory" the sublime console was only reporting "exited with code 127" which wasn't very helpful in determining the cause.
Python
mit
Pegase745/sublime-flowtype
import os import json import threading import subprocess import sublime class ExecFlowCommand(threading.Thread): """Threaded class used for running flow commands in a different thread. The subprocess must be threaded so we don't lockup the UI. """ def __init__(self, cmd, content): """Initia...
import os import json import threading import subprocess import sublime class ExecFlowCommand(threading.Thread): """Threaded class used for running flow commands in a different thread. The subprocess must be threaded so we don't lockup the UI. """ def __init__(self, cmd, content): """Initia...
<commit_before>import os import json import threading import subprocess import sublime class ExecFlowCommand(threading.Thread): """Threaded class used for running flow commands in a different thread. The subprocess must be threaded so we don't lockup the UI. """ def __init__(self, cmd, content): ...
import os import json import threading import subprocess import sublime class ExecFlowCommand(threading.Thread): """Threaded class used for running flow commands in a different thread. The subprocess must be threaded so we don't lockup the UI. """ def __init__(self, cmd, content): """Initia...
import os import json import threading import subprocess import sublime class ExecFlowCommand(threading.Thread): """Threaded class used for running flow commands in a different thread. The subprocess must be threaded so we don't lockup the UI. """ def __init__(self, cmd, content): """Initia...
<commit_before>import os import json import threading import subprocess import sublime class ExecFlowCommand(threading.Thread): """Threaded class used for running flow commands in a different thread. The subprocess must be threaded so we don't lockup the UI. """ def __init__(self, cmd, content): ...
3aa13efa28b4ededa465541a7db8df5fc5878ce3
tempora/tests/test_timing.py
tempora/tests/test_timing.py
import datetime import time import contextlib import os from unittest import mock from tempora import timing def test_IntervalGovernor(): """ IntervalGovernor should prevent a function from being called more than once per interval. """ func_under_test = mock.MagicMock() # to look like a funct...
import datetime import time import contextlib import os from unittest import mock import pytest from tempora import timing def test_IntervalGovernor(): """ IntervalGovernor should prevent a function from being called more than once per interval. """ func_under_test = mock.MagicMock() # to loo...
Rewrite alt_tz as proper fixture. Skip when tzset isn't available.
Rewrite alt_tz as proper fixture. Skip when tzset isn't available.
Python
mit
jaraco/tempora
import datetime import time import contextlib import os from unittest import mock from tempora import timing def test_IntervalGovernor(): """ IntervalGovernor should prevent a function from being called more than once per interval. """ func_under_test = mock.MagicMock() # to look like a funct...
import datetime import time import contextlib import os from unittest import mock import pytest from tempora import timing def test_IntervalGovernor(): """ IntervalGovernor should prevent a function from being called more than once per interval. """ func_under_test = mock.MagicMock() # to loo...
<commit_before>import datetime import time import contextlib import os from unittest import mock from tempora import timing def test_IntervalGovernor(): """ IntervalGovernor should prevent a function from being called more than once per interval. """ func_under_test = mock.MagicMock() # to lo...
import datetime import time import contextlib import os from unittest import mock import pytest from tempora import timing def test_IntervalGovernor(): """ IntervalGovernor should prevent a function from being called more than once per interval. """ func_under_test = mock.MagicMock() # to loo...
import datetime import time import contextlib import os from unittest import mock from tempora import timing def test_IntervalGovernor(): """ IntervalGovernor should prevent a function from being called more than once per interval. """ func_under_test = mock.MagicMock() # to look like a funct...
<commit_before>import datetime import time import contextlib import os from unittest import mock from tempora import timing def test_IntervalGovernor(): """ IntervalGovernor should prevent a function from being called more than once per interval. """ func_under_test = mock.MagicMock() # to lo...