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
449ec018d9403e1732528c2806ec68e8417e6725
raco/rules.py
raco/rules.py
import algebra import boolean class Rule: """ Argument is an expression tree Returns a possibly modified expression tree """ def __call__(self, expr): return self.fire(expr) class CrossProduct2Join(Rule): """A rewrite rule for removing Cross Product""" def fire(self, expr): if isinstance(expr, algebra...
import boolean class Rule: """ Argument is an expression tree Returns a possibly modified expression tree """ def __call__(self, expr): return self.fire(expr) import algebra class CrossProduct2Join(Rule): """A rewrite rule for removing Cross Product""" def fire(self, expr): if isinstance(expr, algebr...
Resolve circular reference during import
Resolve circular reference during import
Python
bsd-3-clause
uwescience/raco,uwescience/raco,uwescience/raco,uwescience/raco,uwescience/raco
import algebra import boolean class Rule: """ Argument is an expression tree Returns a possibly modified expression tree """ def __call__(self, expr): return self.fire(expr) class CrossProduct2Join(Rule): """A rewrite rule for removing Cross Product""" def fire(self, expr): if isinstance(expr, algebra...
import boolean class Rule: """ Argument is an expression tree Returns a possibly modified expression tree """ def __call__(self, expr): return self.fire(expr) import algebra class CrossProduct2Join(Rule): """A rewrite rule for removing Cross Product""" def fire(self, expr): if isinstance(expr, algebr...
<commit_before>import algebra import boolean class Rule: """ Argument is an expression tree Returns a possibly modified expression tree """ def __call__(self, expr): return self.fire(expr) class CrossProduct2Join(Rule): """A rewrite rule for removing Cross Product""" def fire(self, expr): if isinstanc...
import boolean class Rule: """ Argument is an expression tree Returns a possibly modified expression tree """ def __call__(self, expr): return self.fire(expr) import algebra class CrossProduct2Join(Rule): """A rewrite rule for removing Cross Product""" def fire(self, expr): if isinstance(expr, algebr...
import algebra import boolean class Rule: """ Argument is an expression tree Returns a possibly modified expression tree """ def __call__(self, expr): return self.fire(expr) class CrossProduct2Join(Rule): """A rewrite rule for removing Cross Product""" def fire(self, expr): if isinstance(expr, algebra...
<commit_before>import algebra import boolean class Rule: """ Argument is an expression tree Returns a possibly modified expression tree """ def __call__(self, expr): return self.fire(expr) class CrossProduct2Join(Rule): """A rewrite rule for removing Cross Product""" def fire(self, expr): if isinstanc...
ea73a999ffbc936f7e072a310f05ee2cb26b6c21
openprocurement/tender/limited/adapters.py
openprocurement/tender/limited/adapters.py
# -*- coding: utf-8 -*- from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.limited.models import ( ReportingTender, NegotiationTender, NegotiationQuickTender ) class TenderReportingConfigurator(TenderConfigurator): """ Reporting Tender configuration adapter """ ...
# -*- coding: utf-8 -*- from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.openua.constants import STATUS4ROLE from openprocurement.tender.limited.models import ( ReportingTender, NegotiationTender, NegotiationQuickTender ) class TenderReportingConfigurator(TenderConfi...
Add import and constant in adapter
Add import and constant in adapter
Python
apache-2.0
openprocurement/openprocurement.tender.limited
# -*- coding: utf-8 -*- from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.limited.models import ( ReportingTender, NegotiationTender, NegotiationQuickTender ) class TenderReportingConfigurator(TenderConfigurator): """ Reporting Tender configuration adapter """ ...
# -*- coding: utf-8 -*- from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.openua.constants import STATUS4ROLE from openprocurement.tender.limited.models import ( ReportingTender, NegotiationTender, NegotiationQuickTender ) class TenderReportingConfigurator(TenderConfi...
<commit_before># -*- coding: utf-8 -*- from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.limited.models import ( ReportingTender, NegotiationTender, NegotiationQuickTender ) class TenderReportingConfigurator(TenderConfigurator): """ Reporting Tender configuration ...
# -*- coding: utf-8 -*- from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.openua.constants import STATUS4ROLE from openprocurement.tender.limited.models import ( ReportingTender, NegotiationTender, NegotiationQuickTender ) class TenderReportingConfigurator(TenderConfi...
# -*- coding: utf-8 -*- from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.limited.models import ( ReportingTender, NegotiationTender, NegotiationQuickTender ) class TenderReportingConfigurator(TenderConfigurator): """ Reporting Tender configuration adapter """ ...
<commit_before># -*- coding: utf-8 -*- from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.limited.models import ( ReportingTender, NegotiationTender, NegotiationQuickTender ) class TenderReportingConfigurator(TenderConfigurator): """ Reporting Tender configuration ...
6ea9d0c4b4e2a117e3e74c34cc77f83d262e62d8
sendgrid_events/models.py
sendgrid_events/models.py
import json from django.db import models from django.utils import timezone from jsonfield import JSONField from sendgrid_events.signals import batch_processed class Event(models.Model): kind = models.CharField(max_length=75) email = models.CharField(max_length=150) data = JSONField(blank=True) crea...
import json from django.db import models from django.utils import timezone from jsonfield import JSONField from sendgrid_events.signals import batch_processed class Event(models.Model): kind = models.CharField(max_length=75) email = models.CharField(max_length=150) data = JSONField(blank=True) crea...
Update for latest Sendgrid webhook format
Update for latest Sendgrid webhook format
Python
bsd-3-clause
digital-eskimo/django-sendgrid-events,kronok/django-sendgrid-events,eldarion/django-sendgrid-events,rorito/django-sendgrid-events
import json from django.db import models from django.utils import timezone from jsonfield import JSONField from sendgrid_events.signals import batch_processed class Event(models.Model): kind = models.CharField(max_length=75) email = models.CharField(max_length=150) data = JSONField(blank=True) crea...
import json from django.db import models from django.utils import timezone from jsonfield import JSONField from sendgrid_events.signals import batch_processed class Event(models.Model): kind = models.CharField(max_length=75) email = models.CharField(max_length=150) data = JSONField(blank=True) crea...
<commit_before>import json from django.db import models from django.utils import timezone from jsonfield import JSONField from sendgrid_events.signals import batch_processed class Event(models.Model): kind = models.CharField(max_length=75) email = models.CharField(max_length=150) data = JSONField(blank...
import json from django.db import models from django.utils import timezone from jsonfield import JSONField from sendgrid_events.signals import batch_processed class Event(models.Model): kind = models.CharField(max_length=75) email = models.CharField(max_length=150) data = JSONField(blank=True) crea...
import json from django.db import models from django.utils import timezone from jsonfield import JSONField from sendgrid_events.signals import batch_processed class Event(models.Model): kind = models.CharField(max_length=75) email = models.CharField(max_length=150) data = JSONField(blank=True) crea...
<commit_before>import json from django.db import models from django.utils import timezone from jsonfield import JSONField from sendgrid_events.signals import batch_processed class Event(models.Model): kind = models.CharField(max_length=75) email = models.CharField(max_length=150) data = JSONField(blank...
0434b08717c58d5b8bc4aa037f9811df73e73367
docs/examples/compute/cloudstack/create_node_advanced_zone.py
docs/examples/compute/cloudstack/create_node_advanced_zone.py
from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' Driver = get_driver(Provider.IKOULA) driver = Driver(key=apikey, secret=secretkey) # This returns a list of CloudStackNetwork objects nets = d...
from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' Driver = get_driver(Provider.IKOULA) driver = Driver(key=apikey, secret=secretkey) # This returns a list of CloudStackNetwork objects nets = d...
Fix a typo, it should be "networks", not "network".
docs: Fix a typo, it should be "networks", not "network".
Python
apache-2.0
erjohnso/libcloud,pantheon-systems/libcloud,ZuluPro/libcloud,curoverse/libcloud,Verizon/libcloud,jerryblakley/libcloud,wuyuewen/libcloud,ByteInternet/libcloud,sergiorua/libcloud,thesquelched/libcloud,niteoweb/libcloud,thesquelched/libcloud,cloudControl/libcloud,atsaki/libcloud,wrigri/libcloud,aleGpereira/libcloud,schau...
from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' Driver = get_driver(Provider.IKOULA) driver = Driver(key=apikey, secret=secretkey) # This returns a list of CloudStackNetwork objects nets = d...
from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' Driver = get_driver(Provider.IKOULA) driver = Driver(key=apikey, secret=secretkey) # This returns a list of CloudStackNetwork objects nets = d...
<commit_before>from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' Driver = get_driver(Provider.IKOULA) driver = Driver(key=apikey, secret=secretkey) # This returns a list of CloudStackNetwork o...
from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' Driver = get_driver(Provider.IKOULA) driver = Driver(key=apikey, secret=secretkey) # This returns a list of CloudStackNetwork objects nets = d...
from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' Driver = get_driver(Provider.IKOULA) driver = Driver(key=apikey, secret=secretkey) # This returns a list of CloudStackNetwork objects nets = d...
<commit_before>from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' Driver = get_driver(Provider.IKOULA) driver = Driver(key=apikey, secret=secretkey) # This returns a list of CloudStackNetwork o...
6c4b69e071dba6e1a7fddf350a89aa348edb343e
scripts/indent_trace_log.py
scripts/indent_trace_log.py
#!/usr/bin/env python # Indents a CAF log with trace verbosity. The script does *not* deal with a log # with multiple threads. # usage (read file): indent_trace_log.py FILENAME # (read stdin): indent_trace_log.py - import sys import os import fileinput def read_lines(fp): indent = "" for line in fp: ...
#!/usr/bin/env python # Indents a CAF log with trace verbosity. The script does *not* deal with a log # with multiple threads. # usage (read file): indent_trace_log.py FILENAME # (read stdin): indent_trace_log.py - import argparse, sys, os, fileinput, re def is_entry(line): return 'TRACE' in line and 'ENTR...
Add filtering option to indentation script
Add filtering option to indentation script
Python
bsd-3-clause
actor-framework/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework
#!/usr/bin/env python # Indents a CAF log with trace verbosity. The script does *not* deal with a log # with multiple threads. # usage (read file): indent_trace_log.py FILENAME # (read stdin): indent_trace_log.py - import sys import os import fileinput def read_lines(fp): indent = "" for line in fp: ...
#!/usr/bin/env python # Indents a CAF log with trace verbosity. The script does *not* deal with a log # with multiple threads. # usage (read file): indent_trace_log.py FILENAME # (read stdin): indent_trace_log.py - import argparse, sys, os, fileinput, re def is_entry(line): return 'TRACE' in line and 'ENTR...
<commit_before>#!/usr/bin/env python # Indents a CAF log with trace verbosity. The script does *not* deal with a log # with multiple threads. # usage (read file): indent_trace_log.py FILENAME # (read stdin): indent_trace_log.py - import sys import os import fileinput def read_lines(fp): indent = "" for...
#!/usr/bin/env python # Indents a CAF log with trace verbosity. The script does *not* deal with a log # with multiple threads. # usage (read file): indent_trace_log.py FILENAME # (read stdin): indent_trace_log.py - import argparse, sys, os, fileinput, re def is_entry(line): return 'TRACE' in line and 'ENTR...
#!/usr/bin/env python # Indents a CAF log with trace verbosity. The script does *not* deal with a log # with multiple threads. # usage (read file): indent_trace_log.py FILENAME # (read stdin): indent_trace_log.py - import sys import os import fileinput def read_lines(fp): indent = "" for line in fp: ...
<commit_before>#!/usr/bin/env python # Indents a CAF log with trace verbosity. The script does *not* deal with a log # with multiple threads. # usage (read file): indent_trace_log.py FILENAME # (read stdin): indent_trace_log.py - import sys import os import fileinput def read_lines(fp): indent = "" for...
0a0b1087b0067259b774b91809a166d74c8c695c
spacy/lang/id/__init__.py
spacy/lang/id/__init__.py
# coding: utf8 from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs...
# coding: utf8 from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs...
Make tag map available in Indonesian defaults
Make tag map available in Indonesian defaults
Python
mit
spacy-io/spaCy,explosion/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy,honnibal/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy,spacy-io/spaCy,explosion/spaCy,explosion/spaCy,explosion/spaCy,spacy-io/spaCy,spacy-io/spaCy,honnibal/spaCy
# coding: utf8 from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs...
# coding: utf8 from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs...
<commit_before># coding: utf8 from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP ...
# coding: utf8 from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs...
# coding: utf8 from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs...
<commit_before># coding: utf8 from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP ...
3d3aba1ff780061ced014c4387f1d91b9fb168db
skimage/measure/__init__.py
skimage/measure/__init__.py
from ._find_contours import find_contours from ._marching_cubes import marching_cubes, mesh_surface_area from ._regionprops import regionprops, perimeter from ._structural_similarity import structural_similarity from ._polygon import approximate_polygon, subdivide_polygon from ._moments import moments, moments_central,...
from ._find_contours import find_contours from ._marching_cubes import (marching_cubes, mesh_surface_area, correct_mesh_orientation) from ._regionprops import regionprops, perimeter from ._structural_similarity import structural_similarity from ._polygon import approximate_polygon, subdivi...
Add correct_mesh_orientation to skimage.measure imports
Add correct_mesh_orientation to skimage.measure imports
Python
bsd-3-clause
rjeli/scikit-image,pratapvardhan/scikit-image,paalge/scikit-image,WarrenWeckesser/scikits-image,blink1073/scikit-image,juliusbierk/scikit-image,robintw/scikit-image,ofgulban/scikit-image,ClinicalGraphics/scikit-image,chintak/scikit-image,bsipocz/scikit-image,jwiggins/scikit-image,SamHames/scikit-image,michaelaye/scikit...
from ._find_contours import find_contours from ._marching_cubes import marching_cubes, mesh_surface_area from ._regionprops import regionprops, perimeter from ._structural_similarity import structural_similarity from ._polygon import approximate_polygon, subdivide_polygon from ._moments import moments, moments_central,...
from ._find_contours import find_contours from ._marching_cubes import (marching_cubes, mesh_surface_area, correct_mesh_orientation) from ._regionprops import regionprops, perimeter from ._structural_similarity import structural_similarity from ._polygon import approximate_polygon, subdivi...
<commit_before>from ._find_contours import find_contours from ._marching_cubes import marching_cubes, mesh_surface_area from ._regionprops import regionprops, perimeter from ._structural_similarity import structural_similarity from ._polygon import approximate_polygon, subdivide_polygon from ._moments import moments, m...
from ._find_contours import find_contours from ._marching_cubes import (marching_cubes, mesh_surface_area, correct_mesh_orientation) from ._regionprops import regionprops, perimeter from ._structural_similarity import structural_similarity from ._polygon import approximate_polygon, subdivi...
from ._find_contours import find_contours from ._marching_cubes import marching_cubes, mesh_surface_area from ._regionprops import regionprops, perimeter from ._structural_similarity import structural_similarity from ._polygon import approximate_polygon, subdivide_polygon from ._moments import moments, moments_central,...
<commit_before>from ._find_contours import find_contours from ._marching_cubes import marching_cubes, mesh_surface_area from ._regionprops import regionprops, perimeter from ._structural_similarity import structural_similarity from ._polygon import approximate_polygon, subdivide_polygon from ._moments import moments, m...
967ed5fa4297bc4091a0474eab95f6b082c4bba2
PythonWhiteLibrary/setup.py
PythonWhiteLibrary/setup.py
import distutils.sysconfig from distutils.core import setup setup(name = 'robotframework-whitelibrary', version = '0.0.1', description = 'Windows GUI testing library for Robot Framework', author = 'SALabs', url = 'https://github.com/Omenia/robotframework-whitelibrary...
import distutils.sysconfig from distutils.core import setup setup(name = 'robotframework-whitelibrary', version = '0.0.1', description = 'Windows GUI testing library for Robot Framework', author = 'SALabs', url = 'https://github.com/Omenia/robotframework-whitelibrary...
Revert "Trying to fix the path"
Revert "Trying to fix the path" This reverts commit f89b139ba7e17af8bc7ca42a8cc9a3f821825454.
Python
apache-2.0
Omenia/robotframework-whitelibrary,Omenia/robotframework-whitelibrary
import distutils.sysconfig from distutils.core import setup setup(name = 'robotframework-whitelibrary', version = '0.0.1', description = 'Windows GUI testing library for Robot Framework', author = 'SALabs', url = 'https://github.com/Omenia/robotframework-whitelibrary...
import distutils.sysconfig from distutils.core import setup setup(name = 'robotframework-whitelibrary', version = '0.0.1', description = 'Windows GUI testing library for Robot Framework', author = 'SALabs', url = 'https://github.com/Omenia/robotframework-whitelibrary...
<commit_before>import distutils.sysconfig from distutils.core import setup setup(name = 'robotframework-whitelibrary', version = '0.0.1', description = 'Windows GUI testing library for Robot Framework', author = 'SALabs', url = 'https://github.com/Omenia/robotframewo...
import distutils.sysconfig from distutils.core import setup setup(name = 'robotframework-whitelibrary', version = '0.0.1', description = 'Windows GUI testing library for Robot Framework', author = 'SALabs', url = 'https://github.com/Omenia/robotframework-whitelibrary...
import distutils.sysconfig from distutils.core import setup setup(name = 'robotframework-whitelibrary', version = '0.0.1', description = 'Windows GUI testing library for Robot Framework', author = 'SALabs', url = 'https://github.com/Omenia/robotframework-whitelibrary...
<commit_before>import distutils.sysconfig from distutils.core import setup setup(name = 'robotframework-whitelibrary', version = '0.0.1', description = 'Windows GUI testing library for Robot Framework', author = 'SALabs', url = 'https://github.com/Omenia/robotframewo...
8df7c8b048bc7c2883819869027764e030c8a2e6
fabfile.py
fabfile.py
from fabric.api import local, env, sudo env.hosts = ['nkhumphreys.co.uk'] env.user = 'root' NAME = "gobananas" def deploy(): base_cmd = "scp -r {local_path} root@{host}:{remote_path}" remote_path = "/tmp" template_path = "/var/www/templates/" static_path = "/var/www/static/" for h in env.hosts...
from fabric.api import local, env, sudo env.hosts = ['nkhumphreys.co.uk'] env.user = 'root' NAME = "gobananas" def deploy(): base_cmd = "scp -r {local_path} root@{host}:{remote_path}" remote_path = "/tmp" template_path = "/var/www/templates/" static_path = "/var/www/nkhumphreys/assets/static/" ...
Change location of static files on server
Change location of static files on server
Python
mit
nkhumphreys/gobananas,nkhumphreys/gobananas,nkhumphreys/gobananas
from fabric.api import local, env, sudo env.hosts = ['nkhumphreys.co.uk'] env.user = 'root' NAME = "gobananas" def deploy(): base_cmd = "scp -r {local_path} root@{host}:{remote_path}" remote_path = "/tmp" template_path = "/var/www/templates/" static_path = "/var/www/static/" for h in env.hosts...
from fabric.api import local, env, sudo env.hosts = ['nkhumphreys.co.uk'] env.user = 'root' NAME = "gobananas" def deploy(): base_cmd = "scp -r {local_path} root@{host}:{remote_path}" remote_path = "/tmp" template_path = "/var/www/templates/" static_path = "/var/www/nkhumphreys/assets/static/" ...
<commit_before>from fabric.api import local, env, sudo env.hosts = ['nkhumphreys.co.uk'] env.user = 'root' NAME = "gobananas" def deploy(): base_cmd = "scp -r {local_path} root@{host}:{remote_path}" remote_path = "/tmp" template_path = "/var/www/templates/" static_path = "/var/www/static/" for...
from fabric.api import local, env, sudo env.hosts = ['nkhumphreys.co.uk'] env.user = 'root' NAME = "gobananas" def deploy(): base_cmd = "scp -r {local_path} root@{host}:{remote_path}" remote_path = "/tmp" template_path = "/var/www/templates/" static_path = "/var/www/nkhumphreys/assets/static/" ...
from fabric.api import local, env, sudo env.hosts = ['nkhumphreys.co.uk'] env.user = 'root' NAME = "gobananas" def deploy(): base_cmd = "scp -r {local_path} root@{host}:{remote_path}" remote_path = "/tmp" template_path = "/var/www/templates/" static_path = "/var/www/static/" for h in env.hosts...
<commit_before>from fabric.api import local, env, sudo env.hosts = ['nkhumphreys.co.uk'] env.user = 'root' NAME = "gobananas" def deploy(): base_cmd = "scp -r {local_path} root@{host}:{remote_path}" remote_path = "/tmp" template_path = "/var/www/templates/" static_path = "/var/www/static/" for...
92ca74258f0028bf3b12a84a7f7741f7b72ec45d
db/migrations/migration2.py
db/migrations/migration2.py
import sqlite3 from config import DATA_FOLDER def migrate(database_path): print "migrating to db version 2" conn = sqlite3.connect(database_path) conn.text_factory = str cursor = conn.cursor() # read hashmap from db cursor.execute('''SELECT * FROM hashmap''') mappings = cursor.fetchall() ...
import sqlite3 from config import DATA_FOLDER def migrate(database_path): print "migrating to db version 2" conn = sqlite3.connect(database_path) conn.text_factory = str cursor = conn.cursor() # read hashmap from db cursor.execute('''SELECT * FROM hashmap''') mappings = cursor.fetchall() ...
Remove exception in migration Some users moved their data folder despite the code not permitting it yet. This migration will fail for those users, but they will still be able to run the app.
Remove exception in migration Some users moved their data folder despite the code not permitting it yet. This migration will fail for those users, but they will still be able to run the app.
Python
mit
OpenBazaar/Network,OpenBazaar/OpenBazaar-Server,tomgalloway/OpenBazaar-Server,saltduck/OpenBazaar-Server,tomgalloway/OpenBazaar-Server,tyler-smith/OpenBazaar-Server,saltduck/OpenBazaar-Server,cpacia/OpenBazaar-Server,tyler-smith/OpenBazaar-Server,OpenBazaar/Network,OpenBazaar/OpenBazaar-Server,saltduck/OpenBazaar-Serve...
import sqlite3 from config import DATA_FOLDER def migrate(database_path): print "migrating to db version 2" conn = sqlite3.connect(database_path) conn.text_factory = str cursor = conn.cursor() # read hashmap from db cursor.execute('''SELECT * FROM hashmap''') mappings = cursor.fetchall() ...
import sqlite3 from config import DATA_FOLDER def migrate(database_path): print "migrating to db version 2" conn = sqlite3.connect(database_path) conn.text_factory = str cursor = conn.cursor() # read hashmap from db cursor.execute('''SELECT * FROM hashmap''') mappings = cursor.fetchall() ...
<commit_before>import sqlite3 from config import DATA_FOLDER def migrate(database_path): print "migrating to db version 2" conn = sqlite3.connect(database_path) conn.text_factory = str cursor = conn.cursor() # read hashmap from db cursor.execute('''SELECT * FROM hashmap''') mappings = cur...
import sqlite3 from config import DATA_FOLDER def migrate(database_path): print "migrating to db version 2" conn = sqlite3.connect(database_path) conn.text_factory = str cursor = conn.cursor() # read hashmap from db cursor.execute('''SELECT * FROM hashmap''') mappings = cursor.fetchall() ...
import sqlite3 from config import DATA_FOLDER def migrate(database_path): print "migrating to db version 2" conn = sqlite3.connect(database_path) conn.text_factory = str cursor = conn.cursor() # read hashmap from db cursor.execute('''SELECT * FROM hashmap''') mappings = cursor.fetchall() ...
<commit_before>import sqlite3 from config import DATA_FOLDER def migrate(database_path): print "migrating to db version 2" conn = sqlite3.connect(database_path) conn.text_factory = str cursor = conn.cursor() # read hashmap from db cursor.execute('''SELECT * FROM hashmap''') mappings = cur...
c441eee6acd694553e5ed79f4014eef387b9bd9e
s3file/checks.py
s3file/checks.py
from django.core.checks import Error from django.core.files.storage import FileSystemStorage, default_storage def storage_check(app_configs, **kwargs): if isinstance(default_storage, FileSystemStorage): return [ Error( 'FileSystemStorage should not be used in a production envir...
from django.core.checks import Error from django.core.files.storage import FileSystemStorage, default_storage def storage_check(app_configs, **kwargs): if isinstance(default_storage, FileSystemStorage): return [ Error( 'FileSystemStorage should not be used in a production envir...
Fix deployment check return value
Fix deployment check return value AssertionError: The function <function storage_check at 0x7f8571c1a048> did not return a list. All functions registered with the checks registry must return a list.
Python
mit
codingjoe/django-s3file,codingjoe/django-s3file,codingjoe/django-s3file
from django.core.checks import Error from django.core.files.storage import FileSystemStorage, default_storage def storage_check(app_configs, **kwargs): if isinstance(default_storage, FileSystemStorage): return [ Error( 'FileSystemStorage should not be used in a production envir...
from django.core.checks import Error from django.core.files.storage import FileSystemStorage, default_storage def storage_check(app_configs, **kwargs): if isinstance(default_storage, FileSystemStorage): return [ Error( 'FileSystemStorage should not be used in a production envir...
<commit_before>from django.core.checks import Error from django.core.files.storage import FileSystemStorage, default_storage def storage_check(app_configs, **kwargs): if isinstance(default_storage, FileSystemStorage): return [ Error( 'FileSystemStorage should not be used in a p...
from django.core.checks import Error from django.core.files.storage import FileSystemStorage, default_storage def storage_check(app_configs, **kwargs): if isinstance(default_storage, FileSystemStorage): return [ Error( 'FileSystemStorage should not be used in a production envir...
from django.core.checks import Error from django.core.files.storage import FileSystemStorage, default_storage def storage_check(app_configs, **kwargs): if isinstance(default_storage, FileSystemStorage): return [ Error( 'FileSystemStorage should not be used in a production envir...
<commit_before>from django.core.checks import Error from django.core.files.storage import FileSystemStorage, default_storage def storage_check(app_configs, **kwargs): if isinstance(default_storage, FileSystemStorage): return [ Error( 'FileSystemStorage should not be used in a p...
bb9116940ffba48a1a930e7c3203bd2d8b8bbb6e
docs/examples/compute/pricing.py
docs/examples/compute/pricing.py
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver EC2_ACCESS_ID = 'your access id' EC2_SECRET_KEY = 'your secret key' cls = get_driver(Provider.EC2) driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY) sizes = driver.list_sizes() >>> sizes[:5] [<NodeSize: id=t1.micro, name=Micro In...
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver EC2_ACCESS_ID = 'your access id' EC2_SECRET_KEY = 'your secret key' cls = get_driver(Provider.EC2) driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY) sizes = driver.list_sizes() # >>> sizes[:2] # [<NodeSize: id=t1.micro, name=Micr...
Fix pep8 violations in the doc examples.
Fix pep8 violations in the doc examples.
Python
apache-2.0
t-tran/libcloud,illfelder/libcloud,ByteInternet/libcloud,mgogoulos/libcloud,Scalr/libcloud,apache/libcloud,erjohnso/libcloud,jimbobhickville/libcloud,erjohnso/libcloud,sahildua2305/libcloud,curoverse/libcloud,sfriesel/libcloud,wrigri/libcloud,Scalr/libcloud,supertom/libcloud,sfriesel/libcloud,StackPointCloud/libcloud,a...
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver EC2_ACCESS_ID = 'your access id' EC2_SECRET_KEY = 'your secret key' cls = get_driver(Provider.EC2) driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY) sizes = driver.list_sizes() >>> sizes[:5] [<NodeSize: id=t1.micro, name=Micro In...
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver EC2_ACCESS_ID = 'your access id' EC2_SECRET_KEY = 'your secret key' cls = get_driver(Provider.EC2) driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY) sizes = driver.list_sizes() # >>> sizes[:2] # [<NodeSize: id=t1.micro, name=Micr...
<commit_before>from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver EC2_ACCESS_ID = 'your access id' EC2_SECRET_KEY = 'your secret key' cls = get_driver(Provider.EC2) driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY) sizes = driver.list_sizes() >>> sizes[:5] [<NodeSize: id=t1.micro...
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver EC2_ACCESS_ID = 'your access id' EC2_SECRET_KEY = 'your secret key' cls = get_driver(Provider.EC2) driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY) sizes = driver.list_sizes() # >>> sizes[:2] # [<NodeSize: id=t1.micro, name=Micr...
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver EC2_ACCESS_ID = 'your access id' EC2_SECRET_KEY = 'your secret key' cls = get_driver(Provider.EC2) driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY) sizes = driver.list_sizes() >>> sizes[:5] [<NodeSize: id=t1.micro, name=Micro In...
<commit_before>from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver EC2_ACCESS_ID = 'your access id' EC2_SECRET_KEY = 'your secret key' cls = get_driver(Provider.EC2) driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY) sizes = driver.list_sizes() >>> sizes[:5] [<NodeSize: id=t1.micro...
c069142d4d85cf134384d7c245469e961d600f47
project/apps/convention/signals.py
project/apps/convention/signals.py
from django.db.models.signals import pre_save from django.dispatch import receiver import logging log = logging.getLogger('apps.convention') from django.utils.text import slugify from .models import ( Contestant, ) @receiver(pre_save, sender=Contestant) def contestant_pre_save(sender, instance, **kwargs): ...
from django.db.models.signals import pre_save from django.dispatch import receiver import logging log = logging.getLogger('apps.convention') from django.utils.text import slugify from .models import ( Contestant, ) @receiver(pre_save, sender=Contestant) def contestant_pre_save(sender, instance, **kwargs): ...
Add unicode to slug creation
Add unicode to slug creation
Python
bsd-2-clause
dbinetti/barberscore,barberscore/barberscore-api,barberscore/barberscore-api,barberscore/barberscore-api,dbinetti/barberscore-django,barberscore/barberscore-api,dbinetti/barberscore,dbinetti/barberscore-django
from django.db.models.signals import pre_save from django.dispatch import receiver import logging log = logging.getLogger('apps.convention') from django.utils.text import slugify from .models import ( Contestant, ) @receiver(pre_save, sender=Contestant) def contestant_pre_save(sender, instance, **kwargs): ...
from django.db.models.signals import pre_save from django.dispatch import receiver import logging log = logging.getLogger('apps.convention') from django.utils.text import slugify from .models import ( Contestant, ) @receiver(pre_save, sender=Contestant) def contestant_pre_save(sender, instance, **kwargs): ...
<commit_before>from django.db.models.signals import pre_save from django.dispatch import receiver import logging log = logging.getLogger('apps.convention') from django.utils.text import slugify from .models import ( Contestant, ) @receiver(pre_save, sender=Contestant) def contestant_pre_save(sender, instance, ...
from django.db.models.signals import pre_save from django.dispatch import receiver import logging log = logging.getLogger('apps.convention') from django.utils.text import slugify from .models import ( Contestant, ) @receiver(pre_save, sender=Contestant) def contestant_pre_save(sender, instance, **kwargs): ...
from django.db.models.signals import pre_save from django.dispatch import receiver import logging log = logging.getLogger('apps.convention') from django.utils.text import slugify from .models import ( Contestant, ) @receiver(pre_save, sender=Contestant) def contestant_pre_save(sender, instance, **kwargs): ...
<commit_before>from django.db.models.signals import pre_save from django.dispatch import receiver import logging log = logging.getLogger('apps.convention') from django.utils.text import slugify from .models import ( Contestant, ) @receiver(pre_save, sender=Contestant) def contestant_pre_save(sender, instance, ...
4f9f23f26d4117763ad179b7de8f2e206d21c13b
server.py
server.py
"""This module runs the api server.""" import os from app import flask_app, db from app.models import User, BucketList, BucketListItem from flask.ext.script import Manager, Shell from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.restful import Resource, Api from app.api_v1.resources import TestResour...
"""This module runs the api server.""" import os from app import flask_app, db from app.models import User, BucketList, BucketListItem from flask.ext.script import Manager, Shell from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.restful import Resource, Api from app.api_v1.resources import TestResour...
Add Login, Registration, Bucketlists endpoints.
[Feature] Add Login, Registration, Bucketlists endpoints.
Python
mit
andela-akiura/bucketlist
"""This module runs the api server.""" import os from app import flask_app, db from app.models import User, BucketList, BucketListItem from flask.ext.script import Manager, Shell from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.restful import Resource, Api from app.api_v1.resources import TestResour...
"""This module runs the api server.""" import os from app import flask_app, db from app.models import User, BucketList, BucketListItem from flask.ext.script import Manager, Shell from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.restful import Resource, Api from app.api_v1.resources import TestResour...
<commit_before>"""This module runs the api server.""" import os from app import flask_app, db from app.models import User, BucketList, BucketListItem from flask.ext.script import Manager, Shell from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.restful import Resource, Api from app.api_v1.resources im...
"""This module runs the api server.""" import os from app import flask_app, db from app.models import User, BucketList, BucketListItem from flask.ext.script import Manager, Shell from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.restful import Resource, Api from app.api_v1.resources import TestResour...
"""This module runs the api server.""" import os from app import flask_app, db from app.models import User, BucketList, BucketListItem from flask.ext.script import Manager, Shell from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.restful import Resource, Api from app.api_v1.resources import TestResour...
<commit_before>"""This module runs the api server.""" import os from app import flask_app, db from app.models import User, BucketList, BucketListItem from flask.ext.script import Manager, Shell from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.restful import Resource, Api from app.api_v1.resources im...
f22beb7995fb20c477d837c0400b77480e5f1a13
yunity/users/tests/test_model.py
yunity/users/tests/test_model.py
from django.contrib.auth import get_user_model from django.db import DataError from django.db import IntegrityError from django.test import TestCase class TestUserModel(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.exampleuser = { 'display_name': 'bla', ...
from django.contrib.auth import get_user_model from django.db import DataError from django.db import IntegrityError from django.test import TestCase from yunity.users.factories import UserFactory class TestUserModel(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.user = ...
Add test for model representation
Add test for model representation
Python
agpl-3.0
yunity/foodsaving-backend,yunity/yunity-core,yunity/yunity-core,yunity/foodsaving-backend,yunity/foodsaving-backend
from django.contrib.auth import get_user_model from django.db import DataError from django.db import IntegrityError from django.test import TestCase class TestUserModel(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.exampleuser = { 'display_name': 'bla', ...
from django.contrib.auth import get_user_model from django.db import DataError from django.db import IntegrityError from django.test import TestCase from yunity.users.factories import UserFactory class TestUserModel(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.user = ...
<commit_before>from django.contrib.auth import get_user_model from django.db import DataError from django.db import IntegrityError from django.test import TestCase class TestUserModel(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.exampleuser = { 'display_nam...
from django.contrib.auth import get_user_model from django.db import DataError from django.db import IntegrityError from django.test import TestCase from yunity.users.factories import UserFactory class TestUserModel(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.user = ...
from django.contrib.auth import get_user_model from django.db import DataError from django.db import IntegrityError from django.test import TestCase class TestUserModel(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.exampleuser = { 'display_name': 'bla', ...
<commit_before>from django.contrib.auth import get_user_model from django.db import DataError from django.db import IntegrityError from django.test import TestCase class TestUserModel(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.exampleuser = { 'display_nam...
ea48f0fbe09fbcce843b6d380743ee65a31aa8f8
app/evolver.py
app/evolver.py
import app.selector as selector import app.applier as applier from app.rules import rules def rule_representation(rule): '''Takes a Rule and returns a list of strings which represent it, in the form [name, target, replacement, environment]''' return [rule.name, rule.target, rule.replacement, rule.environ...
import app.selector as selector import app.applier as applier from app.rules import rules def rule_representation(rule): '''Takes a Rule and returns a list of strings which represent it, in the form [name, target, replacement, environment]''' return [rule.name, rule.target, rule.replacement, rule.environ...
Add transcription to and from IPA
Add transcription to and from IPA
Python
mit
kdelwat/LangEvolve,kdelwat/LangEvolve,kdelwat/LangEvolve
import app.selector as selector import app.applier as applier from app.rules import rules def rule_representation(rule): '''Takes a Rule and returns a list of strings which represent it, in the form [name, target, replacement, environment]''' return [rule.name, rule.target, rule.replacement, rule.environ...
import app.selector as selector import app.applier as applier from app.rules import rules def rule_representation(rule): '''Takes a Rule and returns a list of strings which represent it, in the form [name, target, replacement, environment]''' return [rule.name, rule.target, rule.replacement, rule.environ...
<commit_before>import app.selector as selector import app.applier as applier from app.rules import rules def rule_representation(rule): '''Takes a Rule and returns a list of strings which represent it, in the form [name, target, replacement, environment]''' return [rule.name, rule.target, rule.replacemen...
import app.selector as selector import app.applier as applier from app.rules import rules def rule_representation(rule): '''Takes a Rule and returns a list of strings which represent it, in the form [name, target, replacement, environment]''' return [rule.name, rule.target, rule.replacement, rule.environ...
import app.selector as selector import app.applier as applier from app.rules import rules def rule_representation(rule): '''Takes a Rule and returns a list of strings which represent it, in the form [name, target, replacement, environment]''' return [rule.name, rule.target, rule.replacement, rule.environ...
<commit_before>import app.selector as selector import app.applier as applier from app.rules import rules def rule_representation(rule): '''Takes a Rule and returns a list of strings which represent it, in the form [name, target, replacement, environment]''' return [rule.name, rule.target, rule.replacemen...
7c679e019d455564f2f609799b33cab75bc361c8
modules/test.py
modules/test.py
import unirest def getTeam(summonerID): response = unirest.get("https://na.api.pvp.net/api/lol/na/v1.3/game/by-summoner/" + str(summonerID) + "/recent?api_key=4ef4ddb0-44e4-4757-8cd5-6aa9f512a813", headers={ } ) return(response.body) def getFellowPlayers(response): for games in range(10): for play...
import unirest def getTeam(summonerID): response = unirest.get("https://na.api.pvp.net/api/lol/na/v1.3/game/by-summoner/" + str(summonerID) + "/recent?api_key=4ef4ddb0-44e4-4757-8cd5-6aa9f512a813", headers={ } ) return(response.body) def winOrLose(championsID, response): wlRatio = 0 kdRatio = 0 ga...
Check W/L Ratio and K/D Ratio
Check W/L Ratio and K/D Ratio
Python
apache-2.0
Timothylock/league-carnage-notifier-Raspberry-Pi,Timothylock/league-carnage-notifier-Raspberry-Pi
import unirest def getTeam(summonerID): response = unirest.get("https://na.api.pvp.net/api/lol/na/v1.3/game/by-summoner/" + str(summonerID) + "/recent?api_key=4ef4ddb0-44e4-4757-8cd5-6aa9f512a813", headers={ } ) return(response.body) def getFellowPlayers(response): for games in range(10): for play...
import unirest def getTeam(summonerID): response = unirest.get("https://na.api.pvp.net/api/lol/na/v1.3/game/by-summoner/" + str(summonerID) + "/recent?api_key=4ef4ddb0-44e4-4757-8cd5-6aa9f512a813", headers={ } ) return(response.body) def winOrLose(championsID, response): wlRatio = 0 kdRatio = 0 ga...
<commit_before>import unirest def getTeam(summonerID): response = unirest.get("https://na.api.pvp.net/api/lol/na/v1.3/game/by-summoner/" + str(summonerID) + "/recent?api_key=4ef4ddb0-44e4-4757-8cd5-6aa9f512a813", headers={ } ) return(response.body) def getFellowPlayers(response): for games in range(10...
import unirest def getTeam(summonerID): response = unirest.get("https://na.api.pvp.net/api/lol/na/v1.3/game/by-summoner/" + str(summonerID) + "/recent?api_key=4ef4ddb0-44e4-4757-8cd5-6aa9f512a813", headers={ } ) return(response.body) def winOrLose(championsID, response): wlRatio = 0 kdRatio = 0 ga...
import unirest def getTeam(summonerID): response = unirest.get("https://na.api.pvp.net/api/lol/na/v1.3/game/by-summoner/" + str(summonerID) + "/recent?api_key=4ef4ddb0-44e4-4757-8cd5-6aa9f512a813", headers={ } ) return(response.body) def getFellowPlayers(response): for games in range(10): for play...
<commit_before>import unirest def getTeam(summonerID): response = unirest.get("https://na.api.pvp.net/api/lol/na/v1.3/game/by-summoner/" + str(summonerID) + "/recent?api_key=4ef4ddb0-44e4-4757-8cd5-6aa9f512a813", headers={ } ) return(response.body) def getFellowPlayers(response): for games in range(10...
7eed609f1ada212046bf1c5c18084b9a598089d8
addons/purchase/__terp__.py
addons/purchase/__terp__.py
{ "name" : "Purchase Management", "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com/module_purchase.html", "depends" : ["base", "account", "stock"], "category" : "Generic Modules/Sales & Purchases", "init_xml" : [], "demo_xml" : ["purchase_demo.xml", "purchase_unit_test.xml"], "update_xml" ...
{ "name" : "Purchase Management", "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com/module_purchase.html", "depends" : ["base", "account", "stock"], "category" : "Generic Modules/Sales & Purchases", "init_xml" : [], "demo_xml" : ["purchase_demo.xml", "purchase_unit_test.xml"], "update_xml" ...
Add purchase_security.xml file entry in update_xml section
Add purchase_security.xml file entry in update_xml section bzr revid: mga@tinyerp.com-231e8ef2a888ac261ce0278ca7f6c387760d8ea3
Python
agpl-3.0
BT-ojossen/odoo,CatsAndDogsbvba/odoo,Danisan/odoo-1,chiragjogi/odoo,nhomar/odoo-mirror,tarzan0820/odoo,klunwebale/odoo,shaufi/odoo,Bachaco-ve/odoo,gvb/odoo,patmcb/odoo,abdellatifkarroum/odoo,Ernesto99/odoo,papouso/odoo,ingadhoc/odoo,camptocamp/ngo-addons-backport,bplancher/odoo,credativUK/OCB,hubsaysnuaa/odoo,addition-...
{ "name" : "Purchase Management", "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com/module_purchase.html", "depends" : ["base", "account", "stock"], "category" : "Generic Modules/Sales & Purchases", "init_xml" : [], "demo_xml" : ["purchase_demo.xml", "purchase_unit_test.xml"], "update_xml" ...
{ "name" : "Purchase Management", "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com/module_purchase.html", "depends" : ["base", "account", "stock"], "category" : "Generic Modules/Sales & Purchases", "init_xml" : [], "demo_xml" : ["purchase_demo.xml", "purchase_unit_test.xml"], "update_xml" ...
<commit_before>{ "name" : "Purchase Management", "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com/module_purchase.html", "depends" : ["base", "account", "stock"], "category" : "Generic Modules/Sales & Purchases", "init_xml" : [], "demo_xml" : ["purchase_demo.xml", "purchase_unit_test.xml"],...
{ "name" : "Purchase Management", "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com/module_purchase.html", "depends" : ["base", "account", "stock"], "category" : "Generic Modules/Sales & Purchases", "init_xml" : [], "demo_xml" : ["purchase_demo.xml", "purchase_unit_test.xml"], "update_xml" ...
{ "name" : "Purchase Management", "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com/module_purchase.html", "depends" : ["base", "account", "stock"], "category" : "Generic Modules/Sales & Purchases", "init_xml" : [], "demo_xml" : ["purchase_demo.xml", "purchase_unit_test.xml"], "update_xml" ...
<commit_before>{ "name" : "Purchase Management", "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com/module_purchase.html", "depends" : ["base", "account", "stock"], "category" : "Generic Modules/Sales & Purchases", "init_xml" : [], "demo_xml" : ["purchase_demo.xml", "purchase_unit_test.xml"],...
2b1e61d5e24e31598a213614a6f78270474a3e60
source/bark/__init__.py
source/bark/__init__.py
# :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. from .handler.distribute import Distribute from .configurator import classic #: Top level handler responsible for relaying all logs to other handlers. handler = Distribute() handlers = handler.handlers #: Main han...
# :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. from .handler.distribute import Distribute from .configurator import classic #: Top level handler responsible for relaying all logs to other handlers. handler = Distribute() handlers = handler.handlers #: Main han...
Fix argument reference in docstring.
Fix argument reference in docstring.
Python
apache-2.0
4degrees/sawmill,4degrees/mill
# :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. from .handler.distribute import Distribute from .configurator import classic #: Top level handler responsible for relaying all logs to other handlers. handler = Distribute() handlers = handler.handlers #: Main han...
# :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. from .handler.distribute import Distribute from .configurator import classic #: Top level handler responsible for relaying all logs to other handlers. handler = Distribute() handlers = handler.handlers #: Main han...
<commit_before># :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. from .handler.distribute import Distribute from .configurator import classic #: Top level handler responsible for relaying all logs to other handlers. handler = Distribute() handlers = handler.handle...
# :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. from .handler.distribute import Distribute from .configurator import classic #: Top level handler responsible for relaying all logs to other handlers. handler = Distribute() handlers = handler.handlers #: Main han...
# :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. from .handler.distribute import Distribute from .configurator import classic #: Top level handler responsible for relaying all logs to other handlers. handler = Distribute() handlers = handler.handlers #: Main han...
<commit_before># :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. from .handler.distribute import Distribute from .configurator import classic #: Top level handler responsible for relaying all logs to other handlers. handler = Distribute() handlers = handler.handle...
87983a254ba1d1f036a555aab73fcc07c7f5882b
doc/pyplots/plot_density.py
doc/pyplots/plot_density.py
# -*- coding: utf-8 -*- """Plot to demonstrate the density colormap. """ import numpy as np import matplotlib.pyplot as plt from netCDF4 import Dataset from mpl_toolkits.basemap import Basemap import typhon nc = Dataset('_data/test_data.nc') lon, lat = np.meshgrid(nc.variables['lon'][:], nc.variables['lat'][:]) vm...
# -*- coding: utf-8 -*- """Plot to demonstrate the density colormap. """ import matplotlib.pyplot as plt import netCDF4 import numpy as np import cartopy.crs as ccrs from cartopy.mpl.gridliner import (LONGITUDE_FORMATTER, LATITUDE_FORMATTER) from typhon.plots.maps import get_cfeatures_at_scale # Read air temperatur...
Migrate density example to cartopy.
Migrate density example to cartopy.
Python
mit
atmtools/typhon,atmtools/typhon
# -*- coding: utf-8 -*- """Plot to demonstrate the density colormap. """ import numpy as np import matplotlib.pyplot as plt from netCDF4 import Dataset from mpl_toolkits.basemap import Basemap import typhon nc = Dataset('_data/test_data.nc') lon, lat = np.meshgrid(nc.variables['lon'][:], nc.variables['lat'][:]) vm...
# -*- coding: utf-8 -*- """Plot to demonstrate the density colormap. """ import matplotlib.pyplot as plt import netCDF4 import numpy as np import cartopy.crs as ccrs from cartopy.mpl.gridliner import (LONGITUDE_FORMATTER, LATITUDE_FORMATTER) from typhon.plots.maps import get_cfeatures_at_scale # Read air temperatur...
<commit_before># -*- coding: utf-8 -*- """Plot to demonstrate the density colormap. """ import numpy as np import matplotlib.pyplot as plt from netCDF4 import Dataset from mpl_toolkits.basemap import Basemap import typhon nc = Dataset('_data/test_data.nc') lon, lat = np.meshgrid(nc.variables['lon'][:], nc.variable...
# -*- coding: utf-8 -*- """Plot to demonstrate the density colormap. """ import matplotlib.pyplot as plt import netCDF4 import numpy as np import cartopy.crs as ccrs from cartopy.mpl.gridliner import (LONGITUDE_FORMATTER, LATITUDE_FORMATTER) from typhon.plots.maps import get_cfeatures_at_scale # Read air temperatur...
# -*- coding: utf-8 -*- """Plot to demonstrate the density colormap. """ import numpy as np import matplotlib.pyplot as plt from netCDF4 import Dataset from mpl_toolkits.basemap import Basemap import typhon nc = Dataset('_data/test_data.nc') lon, lat = np.meshgrid(nc.variables['lon'][:], nc.variables['lat'][:]) vm...
<commit_before># -*- coding: utf-8 -*- """Plot to demonstrate the density colormap. """ import numpy as np import matplotlib.pyplot as plt from netCDF4 import Dataset from mpl_toolkits.basemap import Basemap import typhon nc = Dataset('_data/test_data.nc') lon, lat = np.meshgrid(nc.variables['lon'][:], nc.variable...
e9a73945d57f93ef71d971aab5ae5cc501800c17
aslo/api/gh.py
aslo/api/gh.py
import hmac import hashlib from flask import current_app as app from urllib.parse import urlparse from github import Github def verify_signature(gh_signature, body, secret): sha1 = hmac.new(secret.encode(), body, hashlib.sha1).hexdigest() return hmac.compare_digest('sha1=' + sha1, gh_signature) def auth(): ...
import hmac import hashlib from flask import current_app as app from urllib.parse import urlparse from github import Github def verify_signature(gh_signature, body, secret): sha1 = hmac.new(secret.encode(), body, hashlib.sha1).hexdigest() return hmac.compare_digest('sha1=' + sha1, gh_signature) def auth(): ...
Improve performance of find tags function
Improve performance of find tags function
Python
mit
jatindhankhar/aslo-v3,jatindhankhar/aslo-v3,jatindhankhar/aslo-v3,jatindhankhar/aslo-v3
import hmac import hashlib from flask import current_app as app from urllib.parse import urlparse from github import Github def verify_signature(gh_signature, body, secret): sha1 = hmac.new(secret.encode(), body, hashlib.sha1).hexdigest() return hmac.compare_digest('sha1=' + sha1, gh_signature) def auth(): ...
import hmac import hashlib from flask import current_app as app from urllib.parse import urlparse from github import Github def verify_signature(gh_signature, body, secret): sha1 = hmac.new(secret.encode(), body, hashlib.sha1).hexdigest() return hmac.compare_digest('sha1=' + sha1, gh_signature) def auth(): ...
<commit_before>import hmac import hashlib from flask import current_app as app from urllib.parse import urlparse from github import Github def verify_signature(gh_signature, body, secret): sha1 = hmac.new(secret.encode(), body, hashlib.sha1).hexdigest() return hmac.compare_digest('sha1=' + sha1, gh_signature)...
import hmac import hashlib from flask import current_app as app from urllib.parse import urlparse from github import Github def verify_signature(gh_signature, body, secret): sha1 = hmac.new(secret.encode(), body, hashlib.sha1).hexdigest() return hmac.compare_digest('sha1=' + sha1, gh_signature) def auth(): ...
import hmac import hashlib from flask import current_app as app from urllib.parse import urlparse from github import Github def verify_signature(gh_signature, body, secret): sha1 = hmac.new(secret.encode(), body, hashlib.sha1).hexdigest() return hmac.compare_digest('sha1=' + sha1, gh_signature) def auth(): ...
<commit_before>import hmac import hashlib from flask import current_app as app from urllib.parse import urlparse from github import Github def verify_signature(gh_signature, body, secret): sha1 = hmac.new(secret.encode(), body, hashlib.sha1).hexdigest() return hmac.compare_digest('sha1=' + sha1, gh_signature)...
3be50d7b6f3cbd3bc5185257377efe9c39ebb01f
server_tracking/django/settings.py
server_tracking/django/settings.py
# -*- coding: utf-8 -*- from django.conf import settings from django.core.exceptions import ImproperlyConfigured from ..settings import SST_DEFAULT_SETTINGS, GA_DEFAULT_SETTINGS, update_default_settings SST_DEFAULT_SETTINGS.update( cookie_path=getattr(settings, 'SESSION_COOKIE_PATH', '/'), cookie_salt=getatt...
# -*- coding: utf-8 -*- from django.conf import settings from django.core.exceptions import ImproperlyConfigured from .. import DEFER_METHOD_CELERY from ..settings import SST_DEFAULT_SETTINGS, GA_DEFAULT_SETTINGS, update_default_settings SST_DEFAULT_SETTINGS.update( cookie_path=getattr(settings, 'SESSION_COOKIE_...
Load tasks module on app load.
Load tasks module on app load.
Python
mit
merll/server-side-tracking,merll/server-tracking
# -*- coding: utf-8 -*- from django.conf import settings from django.core.exceptions import ImproperlyConfigured from ..settings import SST_DEFAULT_SETTINGS, GA_DEFAULT_SETTINGS, update_default_settings SST_DEFAULT_SETTINGS.update( cookie_path=getattr(settings, 'SESSION_COOKIE_PATH', '/'), cookie_salt=getatt...
# -*- coding: utf-8 -*- from django.conf import settings from django.core.exceptions import ImproperlyConfigured from .. import DEFER_METHOD_CELERY from ..settings import SST_DEFAULT_SETTINGS, GA_DEFAULT_SETTINGS, update_default_settings SST_DEFAULT_SETTINGS.update( cookie_path=getattr(settings, 'SESSION_COOKIE_...
<commit_before># -*- coding: utf-8 -*- from django.conf import settings from django.core.exceptions import ImproperlyConfigured from ..settings import SST_DEFAULT_SETTINGS, GA_DEFAULT_SETTINGS, update_default_settings SST_DEFAULT_SETTINGS.update( cookie_path=getattr(settings, 'SESSION_COOKIE_PATH', '/'), coo...
# -*- coding: utf-8 -*- from django.conf import settings from django.core.exceptions import ImproperlyConfigured from .. import DEFER_METHOD_CELERY from ..settings import SST_DEFAULT_SETTINGS, GA_DEFAULT_SETTINGS, update_default_settings SST_DEFAULT_SETTINGS.update( cookie_path=getattr(settings, 'SESSION_COOKIE_...
# -*- coding: utf-8 -*- from django.conf import settings from django.core.exceptions import ImproperlyConfigured from ..settings import SST_DEFAULT_SETTINGS, GA_DEFAULT_SETTINGS, update_default_settings SST_DEFAULT_SETTINGS.update( cookie_path=getattr(settings, 'SESSION_COOKIE_PATH', '/'), cookie_salt=getatt...
<commit_before># -*- coding: utf-8 -*- from django.conf import settings from django.core.exceptions import ImproperlyConfigured from ..settings import SST_DEFAULT_SETTINGS, GA_DEFAULT_SETTINGS, update_default_settings SST_DEFAULT_SETTINGS.update( cookie_path=getattr(settings, 'SESSION_COOKIE_PATH', '/'), coo...
1d9217ae9652a152033f8691f2bc5e78d3600684
server/server.py
server/server.py
from killer import kill from log import logname import os import argparse import sys from version import version_info logger = logname() def start_server(): logger.info('Starting Turtle Control System... [PID:%s PPID:%s]', os.getpid(), os.getppid()) kill() logger.info('Starting new server instance...') ...
from killer import kill from log import logname import os import argparse import sys from version import version_info logger = logname() def start_server(): logger.info('Turtle Control Software v' + version_info) logger.info('[PID:%s PPID:%s]', os.getpid(), os.getppid()) kill() logger.info('Starting n...
Add info about version to log
Add info about version to log
Python
mit
TurtleRover/Turtle-Rover-Mission-Control,TurtleRover/Turtle-Rover-Mission-Control,TurtleRover/Turtle-Rover-Mission-Control,TurtleRover/Turtle-Rover-Mission-Control,TurtleRover/Turtle-Rover-Mission-Control,TurtleRover/Turtle-Rover-Mission-Control
from killer import kill from log import logname import os import argparse import sys from version import version_info logger = logname() def start_server(): logger.info('Starting Turtle Control System... [PID:%s PPID:%s]', os.getpid(), os.getppid()) kill() logger.info('Starting new server instance...') ...
from killer import kill from log import logname import os import argparse import sys from version import version_info logger = logname() def start_server(): logger.info('Turtle Control Software v' + version_info) logger.info('[PID:%s PPID:%s]', os.getpid(), os.getppid()) kill() logger.info('Starting n...
<commit_before>from killer import kill from log import logname import os import argparse import sys from version import version_info logger = logname() def start_server(): logger.info('Starting Turtle Control System... [PID:%s PPID:%s]', os.getpid(), os.getppid()) kill() logger.info('Starting new server i...
from killer import kill from log import logname import os import argparse import sys from version import version_info logger = logname() def start_server(): logger.info('Turtle Control Software v' + version_info) logger.info('[PID:%s PPID:%s]', os.getpid(), os.getppid()) kill() logger.info('Starting n...
from killer import kill from log import logname import os import argparse import sys from version import version_info logger = logname() def start_server(): logger.info('Starting Turtle Control System... [PID:%s PPID:%s]', os.getpid(), os.getppid()) kill() logger.info('Starting new server instance...') ...
<commit_before>from killer import kill from log import logname import os import argparse import sys from version import version_info logger = logname() def start_server(): logger.info('Starting Turtle Control System... [PID:%s PPID:%s]', os.getpid(), os.getppid()) kill() logger.info('Starting new server i...
7c1538c9991badf205214e9f4e567cc4f1879ce6
pasta/base/ast_constants.py
pasta/base/ast_constants.py
"""Constants relevant to ast code.""" import ast NODE_TYPE_TO_TOKENS = { ast.Add: ('+',), ast.Sub: ('-',), ast.Mult: ('*',), ast.Div: ('/',), ast.Mod: ('%',), ast.BitAnd: ('&',), ast.BitOr: ('|',), ast.BitXor: ('^',), ast.FloorDiv: ('//',), ast.Pow: ('**',), ast.LShift: ('<...
"""Constants relevant to ast code.""" import ast NODE_TYPE_TO_TOKENS = { ast.Add: ('+',), ast.And: ('and',), ast.BitAnd: ('&',), ast.BitOr: ('|',), ast.BitXor: ('^',), ast.Div: ('/',), ast.Eq: ('==',), ast.FloorDiv: ('//',), ast.Gt: ('>',), ast.GtE: ('>=',), ast.In: ('in',)...
Sort ast nodes in constants + remove duplicates
Sort ast nodes in constants + remove duplicates
Python
apache-2.0
google/pasta
"""Constants relevant to ast code.""" import ast NODE_TYPE_TO_TOKENS = { ast.Add: ('+',), ast.Sub: ('-',), ast.Mult: ('*',), ast.Div: ('/',), ast.Mod: ('%',), ast.BitAnd: ('&',), ast.BitOr: ('|',), ast.BitXor: ('^',), ast.FloorDiv: ('//',), ast.Pow: ('**',), ast.LShift: ('<...
"""Constants relevant to ast code.""" import ast NODE_TYPE_TO_TOKENS = { ast.Add: ('+',), ast.And: ('and',), ast.BitAnd: ('&',), ast.BitOr: ('|',), ast.BitXor: ('^',), ast.Div: ('/',), ast.Eq: ('==',), ast.FloorDiv: ('//',), ast.Gt: ('>',), ast.GtE: ('>=',), ast.In: ('in',)...
<commit_before>"""Constants relevant to ast code.""" import ast NODE_TYPE_TO_TOKENS = { ast.Add: ('+',), ast.Sub: ('-',), ast.Mult: ('*',), ast.Div: ('/',), ast.Mod: ('%',), ast.BitAnd: ('&',), ast.BitOr: ('|',), ast.BitXor: ('^',), ast.FloorDiv: ('//',), ast.Pow: ('**',), ...
"""Constants relevant to ast code.""" import ast NODE_TYPE_TO_TOKENS = { ast.Add: ('+',), ast.And: ('and',), ast.BitAnd: ('&',), ast.BitOr: ('|',), ast.BitXor: ('^',), ast.Div: ('/',), ast.Eq: ('==',), ast.FloorDiv: ('//',), ast.Gt: ('>',), ast.GtE: ('>=',), ast.In: ('in',)...
"""Constants relevant to ast code.""" import ast NODE_TYPE_TO_TOKENS = { ast.Add: ('+',), ast.Sub: ('-',), ast.Mult: ('*',), ast.Div: ('/',), ast.Mod: ('%',), ast.BitAnd: ('&',), ast.BitOr: ('|',), ast.BitXor: ('^',), ast.FloorDiv: ('//',), ast.Pow: ('**',), ast.LShift: ('<...
<commit_before>"""Constants relevant to ast code.""" import ast NODE_TYPE_TO_TOKENS = { ast.Add: ('+',), ast.Sub: ('-',), ast.Mult: ('*',), ast.Div: ('/',), ast.Mod: ('%',), ast.BitAnd: ('&',), ast.BitOr: ('|',), ast.BitXor: ('^',), ast.FloorDiv: ('//',), ast.Pow: ('**',), ...
373ce0f89a9253065114c757d3484849349a716d
tests/data_context/test_data_context_utils.py
tests/data_context/test_data_context_utils.py
import pytest import os from great_expectations.data_context.util import ( safe_mmkdir, ) def test_safe_mmkdir(tmp_path_factory): project_path = str(tmp_path_factory.mktemp('empty_dir')) first_path = os.path.join(project_path,"first_path") safe_mmkdir(first_path) assert os.path.isdir(first_path)...
import pytest import os import six from great_expectations.data_context.util import ( safe_mmkdir, ) def test_safe_mmkdir(tmp_path_factory): project_path = str(tmp_path_factory.mktemp('empty_dir')) first_path = os.path.join(project_path,"first_path") safe_mmkdir(first_path) assert os.path.isdir(...
Add test for the intended use case
Add test for the intended use case
Python
apache-2.0
great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations
import pytest import os from great_expectations.data_context.util import ( safe_mmkdir, ) def test_safe_mmkdir(tmp_path_factory): project_path = str(tmp_path_factory.mktemp('empty_dir')) first_path = os.path.join(project_path,"first_path") safe_mmkdir(first_path) assert os.path.isdir(first_path)...
import pytest import os import six from great_expectations.data_context.util import ( safe_mmkdir, ) def test_safe_mmkdir(tmp_path_factory): project_path = str(tmp_path_factory.mktemp('empty_dir')) first_path = os.path.join(project_path,"first_path") safe_mmkdir(first_path) assert os.path.isdir(...
<commit_before>import pytest import os from great_expectations.data_context.util import ( safe_mmkdir, ) def test_safe_mmkdir(tmp_path_factory): project_path = str(tmp_path_factory.mktemp('empty_dir')) first_path = os.path.join(project_path,"first_path") safe_mmkdir(first_path) assert os.path.is...
import pytest import os import six from great_expectations.data_context.util import ( safe_mmkdir, ) def test_safe_mmkdir(tmp_path_factory): project_path = str(tmp_path_factory.mktemp('empty_dir')) first_path = os.path.join(project_path,"first_path") safe_mmkdir(first_path) assert os.path.isdir(...
import pytest import os from great_expectations.data_context.util import ( safe_mmkdir, ) def test_safe_mmkdir(tmp_path_factory): project_path = str(tmp_path_factory.mktemp('empty_dir')) first_path = os.path.join(project_path,"first_path") safe_mmkdir(first_path) assert os.path.isdir(first_path)...
<commit_before>import pytest import os from great_expectations.data_context.util import ( safe_mmkdir, ) def test_safe_mmkdir(tmp_path_factory): project_path = str(tmp_path_factory.mktemp('empty_dir')) first_path = os.path.join(project_path,"first_path") safe_mmkdir(first_path) assert os.path.is...
44ff3a216c1f1e22862e1cac9c33a4e3a99860a7
pyramda/iterable/reject.py
pyramda/iterable/reject.py
from pyramda.function.curry import curry from . import filter @curry def reject(f, xs): """ Acts as a compliment of `filter` :param f: function :param xs: Iterable. A sequence, a container which supports iteration or an iterator :return: list """ return list(set(xs) - set(filter(f, xs)))
from pyramda.function.curry import curry from . import filter @curry def reject(p, xs): """ Acts as a complement of `filter` :param p: predicate :param xs: Iterable. A sequence, a container which supports iteration or an iterator :return: list """ return list(set(xs) - set(filter(p, xs))...
Rename function arg and spelling fix in docstring
Rename function arg and spelling fix in docstring
Python
mit
jackfirth/pyramda
from pyramda.function.curry import curry from . import filter @curry def reject(f, xs): """ Acts as a compliment of `filter` :param f: function :param xs: Iterable. A sequence, a container which supports iteration or an iterator :return: list """ return list(set(xs) - set(filter(f, xs))) ...
from pyramda.function.curry import curry from . import filter @curry def reject(p, xs): """ Acts as a complement of `filter` :param p: predicate :param xs: Iterable. A sequence, a container which supports iteration or an iterator :return: list """ return list(set(xs) - set(filter(p, xs))...
<commit_before>from pyramda.function.curry import curry from . import filter @curry def reject(f, xs): """ Acts as a compliment of `filter` :param f: function :param xs: Iterable. A sequence, a container which supports iteration or an iterator :return: list """ return list(set(xs) - set(f...
from pyramda.function.curry import curry from . import filter @curry def reject(p, xs): """ Acts as a complement of `filter` :param p: predicate :param xs: Iterable. A sequence, a container which supports iteration or an iterator :return: list """ return list(set(xs) - set(filter(p, xs))...
from pyramda.function.curry import curry from . import filter @curry def reject(f, xs): """ Acts as a compliment of `filter` :param f: function :param xs: Iterable. A sequence, a container which supports iteration or an iterator :return: list """ return list(set(xs) - set(filter(f, xs))) ...
<commit_before>from pyramda.function.curry import curry from . import filter @curry def reject(f, xs): """ Acts as a compliment of `filter` :param f: function :param xs: Iterable. A sequence, a container which supports iteration or an iterator :return: list """ return list(set(xs) - set(f...
39e7bbeadab2437b5dcfc3ffda685f07a3312206
polls/models.py
polls/models.py
from django.db import models from django.contrib.auth.models import User class Poll(models.Model): question = models.CharField(max_length=255) description = models.TextField(blank=True) def count_choices(self): return self.choice_set.count() def count_total_votes(self): result = 0 ...
from django.db import models from django.conf import settings class Poll(models.Model): question = models.CharField(max_length=255) description = models.TextField(blank=True) def count_choices(self): return self.choice_set.count() def count_total_votes(self): result = 0 for c...
Support for custom user model
Support for custom user model
Python
bsd-3-clause
byteweaver/django-polls,byteweaver/django-polls
from django.db import models from django.contrib.auth.models import User class Poll(models.Model): question = models.CharField(max_length=255) description = models.TextField(blank=True) def count_choices(self): return self.choice_set.count() def count_total_votes(self): result = 0 ...
from django.db import models from django.conf import settings class Poll(models.Model): question = models.CharField(max_length=255) description = models.TextField(blank=True) def count_choices(self): return self.choice_set.count() def count_total_votes(self): result = 0 for c...
<commit_before>from django.db import models from django.contrib.auth.models import User class Poll(models.Model): question = models.CharField(max_length=255) description = models.TextField(blank=True) def count_choices(self): return self.choice_set.count() def count_total_votes(self): ...
from django.db import models from django.conf import settings class Poll(models.Model): question = models.CharField(max_length=255) description = models.TextField(blank=True) def count_choices(self): return self.choice_set.count() def count_total_votes(self): result = 0 for c...
from django.db import models from django.contrib.auth.models import User class Poll(models.Model): question = models.CharField(max_length=255) description = models.TextField(blank=True) def count_choices(self): return self.choice_set.count() def count_total_votes(self): result = 0 ...
<commit_before>from django.db import models from django.contrib.auth.models import User class Poll(models.Model): question = models.CharField(max_length=255) description = models.TextField(blank=True) def count_choices(self): return self.choice_set.count() def count_total_votes(self): ...
5131e5d84c498c28ab26f4eae40ba8e0223dc33c
tests/unit/compat_tests.py
tests/unit/compat_tests.py
try: import unittest2 as unittest except ImportError: import unittest from pika import compat class UtilsTests(unittest.TestCase): def test_get_linux_version_normal(self): self.assertEqual(compat.get_linux_version("4.11.0-2-amd64"), (4, 11, 0)) def test_get_linux_version_short(self): ...
try: import unittest2 as unittest except ImportError: import unittest from pika import compat class UtilsTests(unittest.TestCase): def test_get_linux_version_normal(self): self.assertEqual(compat.get_linux_version("4.11.0-2-amd64"), (4, 11, 0)) def test_get_linux_version_short(self): ...
Add a test for `get_linux_version` for GCP
Add a test for `get_linux_version` for GCP
Python
bsd-3-clause
pika/pika,vitaly-krugl/pika
try: import unittest2 as unittest except ImportError: import unittest from pika import compat class UtilsTests(unittest.TestCase): def test_get_linux_version_normal(self): self.assertEqual(compat.get_linux_version("4.11.0-2-amd64"), (4, 11, 0)) def test_get_linux_version_short(self): ...
try: import unittest2 as unittest except ImportError: import unittest from pika import compat class UtilsTests(unittest.TestCase): def test_get_linux_version_normal(self): self.assertEqual(compat.get_linux_version("4.11.0-2-amd64"), (4, 11, 0)) def test_get_linux_version_short(self): ...
<commit_before>try: import unittest2 as unittest except ImportError: import unittest from pika import compat class UtilsTests(unittest.TestCase): def test_get_linux_version_normal(self): self.assertEqual(compat.get_linux_version("4.11.0-2-amd64"), (4, 11, 0)) def test_get_linux_version_shor...
try: import unittest2 as unittest except ImportError: import unittest from pika import compat class UtilsTests(unittest.TestCase): def test_get_linux_version_normal(self): self.assertEqual(compat.get_linux_version("4.11.0-2-amd64"), (4, 11, 0)) def test_get_linux_version_short(self): ...
try: import unittest2 as unittest except ImportError: import unittest from pika import compat class UtilsTests(unittest.TestCase): def test_get_linux_version_normal(self): self.assertEqual(compat.get_linux_version("4.11.0-2-amd64"), (4, 11, 0)) def test_get_linux_version_short(self): ...
<commit_before>try: import unittest2 as unittest except ImportError: import unittest from pika import compat class UtilsTests(unittest.TestCase): def test_get_linux_version_normal(self): self.assertEqual(compat.get_linux_version("4.11.0-2-amd64"), (4, 11, 0)) def test_get_linux_version_shor...
a02739581d6c9dbde900c226d121b4fb889b4e2d
window.py
window.py
from PySide import QtGui from editor import Editor class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) editor = Editor() self.setCentralWidget(editor) self.setWindowTitle("RST Previewer") self.showMaximized()
from PySide import QtGui, QtCore from editor import Editor class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) splitter = QtGui.QSplitter(QtCore.Qt.Horizontal) treeview = QtGui.QTreeView() editor = Editor() self.s...
Add splitter with treeview/editor split.
Add splitter with treeview/editor split.
Python
bsd-3-clause
audreyr/sphinx-gui,techdragon/sphinx-gui,audreyr/sphinx-gui,techdragon/sphinx-gui
from PySide import QtGui from editor import Editor class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) editor = Editor() self.setCentralWidget(editor) self.setWindowTitle("RST Previewer") self.showMaximized() Add s...
from PySide import QtGui, QtCore from editor import Editor class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) splitter = QtGui.QSplitter(QtCore.Qt.Horizontal) treeview = QtGui.QTreeView() editor = Editor() self.s...
<commit_before>from PySide import QtGui from editor import Editor class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) editor = Editor() self.setCentralWidget(editor) self.setWindowTitle("RST Previewer") self.showMa...
from PySide import QtGui, QtCore from editor import Editor class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) splitter = QtGui.QSplitter(QtCore.Qt.Horizontal) treeview = QtGui.QTreeView() editor = Editor() self.s...
from PySide import QtGui from editor import Editor class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) editor = Editor() self.setCentralWidget(editor) self.setWindowTitle("RST Previewer") self.showMaximized() Add s...
<commit_before>from PySide import QtGui from editor import Editor class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) editor = Editor() self.setCentralWidget(editor) self.setWindowTitle("RST Previewer") self.showMa...
92031812b77479fe9a3dbd3ca512ba97e700384e
fusion_index/test/test_lookup.py
fusion_index/test/test_lookup.py
from axiom.store import Store from hypothesis import given from hypothesis.strategies import binary, lists, text, tuples, characters from testtools import TestCase from testtools.matchers import Equals from fusion_index.lookup import LookupEntry def axiom_text(): return text( alphabet=characters( ...
import string from axiom.store import Store from hypothesis import given from hypothesis.strategies import binary, characters, lists, text, tuples from testtools import TestCase from testtools.matchers import Equals from fusion_index.lookup import LookupEntry def axiom_text(): return text( alphabet=char...
Fix test model to be case-insensitive.
Fix test model to be case-insensitive.
Python
mit
fusionapp/fusion-index
from axiom.store import Store from hypothesis import given from hypothesis.strategies import binary, lists, text, tuples, characters from testtools import TestCase from testtools.matchers import Equals from fusion_index.lookup import LookupEntry def axiom_text(): return text( alphabet=characters( ...
import string from axiom.store import Store from hypothesis import given from hypothesis.strategies import binary, characters, lists, text, tuples from testtools import TestCase from testtools.matchers import Equals from fusion_index.lookup import LookupEntry def axiom_text(): return text( alphabet=char...
<commit_before>from axiom.store import Store from hypothesis import given from hypothesis.strategies import binary, lists, text, tuples, characters from testtools import TestCase from testtools.matchers import Equals from fusion_index.lookup import LookupEntry def axiom_text(): return text( alphabet=char...
import string from axiom.store import Store from hypothesis import given from hypothesis.strategies import binary, characters, lists, text, tuples from testtools import TestCase from testtools.matchers import Equals from fusion_index.lookup import LookupEntry def axiom_text(): return text( alphabet=char...
from axiom.store import Store from hypothesis import given from hypothesis.strategies import binary, lists, text, tuples, characters from testtools import TestCase from testtools.matchers import Equals from fusion_index.lookup import LookupEntry def axiom_text(): return text( alphabet=characters( ...
<commit_before>from axiom.store import Store from hypothesis import given from hypothesis.strategies import binary, lists, text, tuples, characters from testtools import TestCase from testtools.matchers import Equals from fusion_index.lookup import LookupEntry def axiom_text(): return text( alphabet=char...
d86fe37bb29cc8c09c4659de579d4c370a59c40b
scripts/container_log_collector.py
scripts/container_log_collector.py
# stdlib import os from pathlib import Path from pathlib import PosixPath import subprocess # Make a log directory log_path = Path("logs") log_path.mkdir(exist_ok=True) # Get the github job name and create a directory for it job_name = os.getenv("GITHUB_JOB") job_path: PosixPath = log_path / job_name job_path.mkdir(e...
# stdlib import os from pathlib import Path from pathlib import PosixPath import subprocess # Make a log directory log_path = Path("logs") log_path.mkdir(exist_ok=True) # Get the github job name and create a directory for it job_name = os.getenv("GITHUB_JOB") job_path: PosixPath = log_path / job_name job_path.mkdir(e...
Set docker log encoding to utf-8
Set docker log encoding to utf-8
Python
apache-2.0
OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft
# stdlib import os from pathlib import Path from pathlib import PosixPath import subprocess # Make a log directory log_path = Path("logs") log_path.mkdir(exist_ok=True) # Get the github job name and create a directory for it job_name = os.getenv("GITHUB_JOB") job_path: PosixPath = log_path / job_name job_path.mkdir(e...
# stdlib import os from pathlib import Path from pathlib import PosixPath import subprocess # Make a log directory log_path = Path("logs") log_path.mkdir(exist_ok=True) # Get the github job name and create a directory for it job_name = os.getenv("GITHUB_JOB") job_path: PosixPath = log_path / job_name job_path.mkdir(e...
<commit_before># stdlib import os from pathlib import Path from pathlib import PosixPath import subprocess # Make a log directory log_path = Path("logs") log_path.mkdir(exist_ok=True) # Get the github job name and create a directory for it job_name = os.getenv("GITHUB_JOB") job_path: PosixPath = log_path / job_name j...
# stdlib import os from pathlib import Path from pathlib import PosixPath import subprocess # Make a log directory log_path = Path("logs") log_path.mkdir(exist_ok=True) # Get the github job name and create a directory for it job_name = os.getenv("GITHUB_JOB") job_path: PosixPath = log_path / job_name job_path.mkdir(e...
# stdlib import os from pathlib import Path from pathlib import PosixPath import subprocess # Make a log directory log_path = Path("logs") log_path.mkdir(exist_ok=True) # Get the github job name and create a directory for it job_name = os.getenv("GITHUB_JOB") job_path: PosixPath = log_path / job_name job_path.mkdir(e...
<commit_before># stdlib import os from pathlib import Path from pathlib import PosixPath import subprocess # Make a log directory log_path = Path("logs") log_path.mkdir(exist_ok=True) # Get the github job name and create a directory for it job_name = os.getenv("GITHUB_JOB") job_path: PosixPath = log_path / job_name j...
bd9a52bdf4d0d2a80467c144b21b13e77a7d92c2
examples/redis/src/bolts.py
examples/redis/src/bolts.py
from collections import Counter from redis import StrictRedis from streamparse import Bolt class WordCountBolt(Bolt): outputs = ['word', 'count'] def initialize(self, conf, ctx): self.counter = Counter() self.total = 0 def _increment(self, word, inc_by): self.counter[word] += i...
from collections import Counter from redis import StrictRedis from streamparse import Bolt class WordCountBolt(Bolt): outputs = ['word', 'count'] def initialize(self, conf, ctx): self.counter = Counter() self.total = 0 def _increment(self, word, inc_by): self.counter[word] += i...
Make RedisWordCountBolt inherit direclty from Bolt
Make RedisWordCountBolt inherit direclty from Bolt
Python
apache-2.0
Parsely/streamparse,codywilbourn/streamparse,codywilbourn/streamparse,Parsely/streamparse
from collections import Counter from redis import StrictRedis from streamparse import Bolt class WordCountBolt(Bolt): outputs = ['word', 'count'] def initialize(self, conf, ctx): self.counter = Counter() self.total = 0 def _increment(self, word, inc_by): self.counter[word] += i...
from collections import Counter from redis import StrictRedis from streamparse import Bolt class WordCountBolt(Bolt): outputs = ['word', 'count'] def initialize(self, conf, ctx): self.counter = Counter() self.total = 0 def _increment(self, word, inc_by): self.counter[word] += i...
<commit_before>from collections import Counter from redis import StrictRedis from streamparse import Bolt class WordCountBolt(Bolt): outputs = ['word', 'count'] def initialize(self, conf, ctx): self.counter = Counter() self.total = 0 def _increment(self, word, inc_by): self.cou...
from collections import Counter from redis import StrictRedis from streamparse import Bolt class WordCountBolt(Bolt): outputs = ['word', 'count'] def initialize(self, conf, ctx): self.counter = Counter() self.total = 0 def _increment(self, word, inc_by): self.counter[word] += i...
from collections import Counter from redis import StrictRedis from streamparse import Bolt class WordCountBolt(Bolt): outputs = ['word', 'count'] def initialize(self, conf, ctx): self.counter = Counter() self.total = 0 def _increment(self, word, inc_by): self.counter[word] += i...
<commit_before>from collections import Counter from redis import StrictRedis from streamparse import Bolt class WordCountBolt(Bolt): outputs = ['word', 'count'] def initialize(self, conf, ctx): self.counter = Counter() self.total = 0 def _increment(self, word, inc_by): self.cou...
15421e7e4a7964d77bcbed5549b9616cbb9de3c1
src/ansible/forms.py
src/ansible/forms.py
from django import forms from django.conf import settings from django.forms import ModelForm from ansible.models import Playbook class AnsibleForm1(ModelForm): class Meta: model = Playbook fields = ['repository', 'username'] class AnsibleForm2(ModelForm): class Meta: model = Playbook ...
from django import forms from django.conf import settings from django.forms import ModelForm from ansible.models import Playbook class AnsibleForm1(ModelForm): class Meta: model = Playbook fields = ['repository', 'username'] class AnsibleForm2(ModelForm): class Meta: model = Playbook ...
Add Field for Playbook filename
Add Field for Playbook filename
Python
bsd-3-clause
lozadaOmr/ansible-admin,lozadaOmr/ansible-admin,lozadaOmr/ansible-admin
from django import forms from django.conf import settings from django.forms import ModelForm from ansible.models import Playbook class AnsibleForm1(ModelForm): class Meta: model = Playbook fields = ['repository', 'username'] class AnsibleForm2(ModelForm): class Meta: model = Playbook ...
from django import forms from django.conf import settings from django.forms import ModelForm from ansible.models import Playbook class AnsibleForm1(ModelForm): class Meta: model = Playbook fields = ['repository', 'username'] class AnsibleForm2(ModelForm): class Meta: model = Playbook ...
<commit_before>from django import forms from django.conf import settings from django.forms import ModelForm from ansible.models import Playbook class AnsibleForm1(ModelForm): class Meta: model = Playbook fields = ['repository', 'username'] class AnsibleForm2(ModelForm): class Meta: mo...
from django import forms from django.conf import settings from django.forms import ModelForm from ansible.models import Playbook class AnsibleForm1(ModelForm): class Meta: model = Playbook fields = ['repository', 'username'] class AnsibleForm2(ModelForm): class Meta: model = Playbook ...
from django import forms from django.conf import settings from django.forms import ModelForm from ansible.models import Playbook class AnsibleForm1(ModelForm): class Meta: model = Playbook fields = ['repository', 'username'] class AnsibleForm2(ModelForm): class Meta: model = Playbook ...
<commit_before>from django import forms from django.conf import settings from django.forms import ModelForm from ansible.models import Playbook class AnsibleForm1(ModelForm): class Meta: model = Playbook fields = ['repository', 'username'] class AnsibleForm2(ModelForm): class Meta: mo...
655c2e6c91d70dd7985518ae19606ab407ce687f
lymph/core/declarations.py
lymph/core/declarations.py
def declaration(*args, **kwargs): def decorator(factory): return Declaration(factory, *args, **kwargs) return decorator class Declaration(object): def __init__(self, factory, *args, **kwargs): self.factory = factory self.args = args self.kwargs = kwargs def install(sel...
def declaration(*args, **kwargs): def decorator(factory): return Declaration(factory, *args, **kwargs) return decorator class Declaration(object): def __init__(self, factory, *args, **kwargs): self.factory = factory self.args = args self.kwargs = kwargs def install(sel...
Return component instance from Declaration.install()
Return component instance from Declaration.install()
Python
apache-2.0
kstrempel/lymph,alazaro/lymph,lyudmildrx/lymph,alazaro/lymph,mouadino/lymph,mouadino/lymph,emulbreh/lymph,vpikulik/lymph,mamachanko/lymph,itakouna/lymph,lyudmildrx/lymph,mamachanko/lymph,emulbreh/lymph,itakouna/lymph,alazaro/lymph,lyudmildrx/lymph,mouadino/lymph,Drahflow/lymph,dushyant88/lymph,itakouna/lymph,mamachanko...
def declaration(*args, **kwargs): def decorator(factory): return Declaration(factory, *args, **kwargs) return decorator class Declaration(object): def __init__(self, factory, *args, **kwargs): self.factory = factory self.args = args self.kwargs = kwargs def install(sel...
def declaration(*args, **kwargs): def decorator(factory): return Declaration(factory, *args, **kwargs) return decorator class Declaration(object): def __init__(self, factory, *args, **kwargs): self.factory = factory self.args = args self.kwargs = kwargs def install(sel...
<commit_before>def declaration(*args, **kwargs): def decorator(factory): return Declaration(factory, *args, **kwargs) return decorator class Declaration(object): def __init__(self, factory, *args, **kwargs): self.factory = factory self.args = args self.kwargs = kwargs ...
def declaration(*args, **kwargs): def decorator(factory): return Declaration(factory, *args, **kwargs) return decorator class Declaration(object): def __init__(self, factory, *args, **kwargs): self.factory = factory self.args = args self.kwargs = kwargs def install(sel...
def declaration(*args, **kwargs): def decorator(factory): return Declaration(factory, *args, **kwargs) return decorator class Declaration(object): def __init__(self, factory, *args, **kwargs): self.factory = factory self.args = args self.kwargs = kwargs def install(sel...
<commit_before>def declaration(*args, **kwargs): def decorator(factory): return Declaration(factory, *args, **kwargs) return decorator class Declaration(object): def __init__(self, factory, *args, **kwargs): self.factory = factory self.args = args self.kwargs = kwargs ...
7892fd7421c39df3190c0b1f7223a8f2083d1893
common/lib/xmodule/xmodule/util/date_utils.py
common/lib/xmodule/xmodule/util/date_utils.py
import datetime def get_default_time_display(dt, show_timezone=True): """ Converts a datetime to a string representation. This is the default representation used in Studio and LMS. It is of the form "Apr 09, 2013 at 16:00" or "Apr 09, 2013 at 16:00 UTC", depending on the value of show_timezone. ...
import datetime def get_default_time_display(dt, show_timezone=True): """ Converts a datetime to a string representation. This is the default representation used in Studio and LMS. It is of the form "Apr 09, 2013 at 16:00" or "Apr 09, 2013 at 16:00 UTC", depending on the value of show_timezone. ...
Remove extraneous test for already handled edge case
Remove extraneous test for already handled edge case
Python
agpl-3.0
EduPepperPD/pepper2013,pomegranited/edx-platform,dkarakats/edx-platform,B-MOOC/edx-platform,wwj718/edx-platform,ESOedX/edx-platform,mjirayu/sit_academy,abdoosh00/edraak,Edraak/edx-platform,Ayub-Khan/edx-platform,knehez/edx-platform,nikolas/edx-platform,Kalyzee/edx-platform,ahmadio/edx-platform,cognitiveclass/edx-platfo...
import datetime def get_default_time_display(dt, show_timezone=True): """ Converts a datetime to a string representation. This is the default representation used in Studio and LMS. It is of the form "Apr 09, 2013 at 16:00" or "Apr 09, 2013 at 16:00 UTC", depending on the value of show_timezone. ...
import datetime def get_default_time_display(dt, show_timezone=True): """ Converts a datetime to a string representation. This is the default representation used in Studio and LMS. It is of the form "Apr 09, 2013 at 16:00" or "Apr 09, 2013 at 16:00 UTC", depending on the value of show_timezone. ...
<commit_before>import datetime def get_default_time_display(dt, show_timezone=True): """ Converts a datetime to a string representation. This is the default representation used in Studio and LMS. It is of the form "Apr 09, 2013 at 16:00" or "Apr 09, 2013 at 16:00 UTC", depending on the value of show...
import datetime def get_default_time_display(dt, show_timezone=True): """ Converts a datetime to a string representation. This is the default representation used in Studio and LMS. It is of the form "Apr 09, 2013 at 16:00" or "Apr 09, 2013 at 16:00 UTC", depending on the value of show_timezone. ...
import datetime def get_default_time_display(dt, show_timezone=True): """ Converts a datetime to a string representation. This is the default representation used in Studio and LMS. It is of the form "Apr 09, 2013 at 16:00" or "Apr 09, 2013 at 16:00 UTC", depending on the value of show_timezone. ...
<commit_before>import datetime def get_default_time_display(dt, show_timezone=True): """ Converts a datetime to a string representation. This is the default representation used in Studio and LMS. It is of the form "Apr 09, 2013 at 16:00" or "Apr 09, 2013 at 16:00 UTC", depending on the value of show...
7a4d878dda0b9b947a5991be63183e247ad4e022
grammpy_transforms/UnreachableSymbolsRemove/unreachableSymbolsRemove.py
grammpy_transforms/UnreachableSymbolsRemove/unreachableSymbolsRemove.py
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 17.08.207 13:29 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar from copy import copy def remove_unreachable_symbols(grammar: Grammar, transform_grammar=False) -> Grammar: # Copy if required if transform_grammar is False: g...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 17.08.207 13:29 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar from grammpy.exceptions import NotNonterminalException from copy import copy class StartSymbolNotSpecifiedException(Exception): pass def remove_unreachable_symbol...
Implement removing of unreachable symbols
Implement removing of unreachable symbols
Python
mit
PatrikValkovic/grammpy
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 17.08.207 13:29 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar from copy import copy def remove_unreachable_symbols(grammar: Grammar, transform_grammar=False) -> Grammar: # Copy if required if transform_grammar is False: g...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 17.08.207 13:29 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar from grammpy.exceptions import NotNonterminalException from copy import copy class StartSymbolNotSpecifiedException(Exception): pass def remove_unreachable_symbol...
<commit_before>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 17.08.207 13:29 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar from copy import copy def remove_unreachable_symbols(grammar: Grammar, transform_grammar=False) -> Grammar: # Copy if required if transform_gram...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 17.08.207 13:29 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar from grammpy.exceptions import NotNonterminalException from copy import copy class StartSymbolNotSpecifiedException(Exception): pass def remove_unreachable_symbol...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 17.08.207 13:29 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar from copy import copy def remove_unreachable_symbols(grammar: Grammar, transform_grammar=False) -> Grammar: # Copy if required if transform_grammar is False: g...
<commit_before>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 17.08.207 13:29 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar from copy import copy def remove_unreachable_symbols(grammar: Grammar, transform_grammar=False) -> Grammar: # Copy if required if transform_gram...
02363de7bdd7a069243da09248816f3caf38b2e6
scripts/get-month.py
scripts/get-month.py
#!/usr/bin/env python import pandas as pd import pdfplumber import requests import datetime import re from io import BytesIO def parse_date(pdf): text = pdf.pages[0].extract_text(x_tolerance=5) date_pat = r"UPDATED:\s+As of (.+)\n" updated_date = re.search(date_pat, text).group(1) d = datetime.datetime...
#!/usr/bin/env python import pandas as pd import pdfplumber import requests import datetime import re from io import BytesIO def parse_date(pdf): text = pdf.pages[0].extract_text(x_tolerance=5) date_pat = r"UPDATED:\s+As of (.+)\n" updated_date = re.search(date_pat, text).group(1) d = datetime.datetime...
Update "Active Records" PDF URL
Update "Active Records" PDF URL
Python
mit
BuzzFeedNews/nics-firearm-background-checks
#!/usr/bin/env python import pandas as pd import pdfplumber import requests import datetime import re from io import BytesIO def parse_date(pdf): text = pdf.pages[0].extract_text(x_tolerance=5) date_pat = r"UPDATED:\s+As of (.+)\n" updated_date = re.search(date_pat, text).group(1) d = datetime.datetime...
#!/usr/bin/env python import pandas as pd import pdfplumber import requests import datetime import re from io import BytesIO def parse_date(pdf): text = pdf.pages[0].extract_text(x_tolerance=5) date_pat = r"UPDATED:\s+As of (.+)\n" updated_date = re.search(date_pat, text).group(1) d = datetime.datetime...
<commit_before>#!/usr/bin/env python import pandas as pd import pdfplumber import requests import datetime import re from io import BytesIO def parse_date(pdf): text = pdf.pages[0].extract_text(x_tolerance=5) date_pat = r"UPDATED:\s+As of (.+)\n" updated_date = re.search(date_pat, text).group(1) d = da...
#!/usr/bin/env python import pandas as pd import pdfplumber import requests import datetime import re from io import BytesIO def parse_date(pdf): text = pdf.pages[0].extract_text(x_tolerance=5) date_pat = r"UPDATED:\s+As of (.+)\n" updated_date = re.search(date_pat, text).group(1) d = datetime.datetime...
#!/usr/bin/env python import pandas as pd import pdfplumber import requests import datetime import re from io import BytesIO def parse_date(pdf): text = pdf.pages[0].extract_text(x_tolerance=5) date_pat = r"UPDATED:\s+As of (.+)\n" updated_date = re.search(date_pat, text).group(1) d = datetime.datetime...
<commit_before>#!/usr/bin/env python import pandas as pd import pdfplumber import requests import datetime import re from io import BytesIO def parse_date(pdf): text = pdf.pages[0].extract_text(x_tolerance=5) date_pat = r"UPDATED:\s+As of (.+)\n" updated_date = re.search(date_pat, text).group(1) d = da...
7f006958e97cf5cc972d9f8340b327ea7508e03d
packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
""" Test that LLDB correctly allows scripted commands to set an immediate output file """ from __future__ import print_function import os, time import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import * class CommandScriptImmediateOutputTestCase (PExpectTest): mydir = TestBase....
""" Test that LLDB correctly allows scripted commands to set an immediate output file """ from __future__ import print_function import os, time import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import * class CommandScriptImmediateOutputTestCase (PExpectTest): mydir = TestBase....
Mark these tests on FreeBSD and Linux as non-flakey. We don't know that they are
Mark these tests on FreeBSD and Linux as non-flakey. We don't know that they are git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@257656 91177308-0d34-0410-b5e6-96231b3b80d8
Python
apache-2.0
apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb
""" Test that LLDB correctly allows scripted commands to set an immediate output file """ from __future__ import print_function import os, time import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import * class CommandScriptImmediateOutputTestCase (PExpectTest): mydir = TestBase....
""" Test that LLDB correctly allows scripted commands to set an immediate output file """ from __future__ import print_function import os, time import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import * class CommandScriptImmediateOutputTestCase (PExpectTest): mydir = TestBase....
<commit_before>""" Test that LLDB correctly allows scripted commands to set an immediate output file """ from __future__ import print_function import os, time import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import * class CommandScriptImmediateOutputTestCase (PExpectTest): my...
""" Test that LLDB correctly allows scripted commands to set an immediate output file """ from __future__ import print_function import os, time import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import * class CommandScriptImmediateOutputTestCase (PExpectTest): mydir = TestBase....
""" Test that LLDB correctly allows scripted commands to set an immediate output file """ from __future__ import print_function import os, time import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import * class CommandScriptImmediateOutputTestCase (PExpectTest): mydir = TestBase....
<commit_before>""" Test that LLDB correctly allows scripted commands to set an immediate output file """ from __future__ import print_function import os, time import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.lldbpexpect import * class CommandScriptImmediateOutputTestCase (PExpectTest): my...
bab4f346cef626f29c67cc214b03db2475ef6b64
scriptcore/process/popen.py
scriptcore/process/popen.py
from subprocess import Popen as BasePopen class Popen(BasePopen): def communicate(self, input=None, timeout=None): """ Communicate :param input: Optional input :param timeout: Optional timeout :return: Out, err, exitcode """ out, err = super(Pope...
from subprocess import Popen as BasePopen class Popen(BasePopen): def communicate(self, input=None): """ Communicate :param input: Optional input :return: Out, err, exitcode """ out, err = super(Popen, self).communicate(input=input) out = out.st...
Fix error in communicate function.
Fix error in communicate function.
Python
apache-2.0
LowieHuyghe/script-core
from subprocess import Popen as BasePopen class Popen(BasePopen): def communicate(self, input=None, timeout=None): """ Communicate :param input: Optional input :param timeout: Optional timeout :return: Out, err, exitcode """ out, err = super(Pope...
from subprocess import Popen as BasePopen class Popen(BasePopen): def communicate(self, input=None): """ Communicate :param input: Optional input :return: Out, err, exitcode """ out, err = super(Popen, self).communicate(input=input) out = out.st...
<commit_before> from subprocess import Popen as BasePopen class Popen(BasePopen): def communicate(self, input=None, timeout=None): """ Communicate :param input: Optional input :param timeout: Optional timeout :return: Out, err, exitcode """ out, e...
from subprocess import Popen as BasePopen class Popen(BasePopen): def communicate(self, input=None): """ Communicate :param input: Optional input :return: Out, err, exitcode """ out, err = super(Popen, self).communicate(input=input) out = out.st...
from subprocess import Popen as BasePopen class Popen(BasePopen): def communicate(self, input=None, timeout=None): """ Communicate :param input: Optional input :param timeout: Optional timeout :return: Out, err, exitcode """ out, err = super(Pope...
<commit_before> from subprocess import Popen as BasePopen class Popen(BasePopen): def communicate(self, input=None, timeout=None): """ Communicate :param input: Optional input :param timeout: Optional timeout :return: Out, err, exitcode """ out, e...
fb9ca96431a4f72135245705359eb1f6d340a536
moksha/api/hub/__init__.py
moksha/api/hub/__init__.py
# This file is part of Moksha. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later...
# This file is part of Moksha. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later...
Make the MokshaHub and reactor available in the moksha.api.hub module
Make the MokshaHub and reactor available in the moksha.api.hub module
Python
apache-2.0
lmacken/moksha,pombredanne/moksha,mokshaproject/moksha,mokshaproject/moksha,ralphbean/moksha,lmacken/moksha,lmacken/moksha,mokshaproject/moksha,pombredanne/moksha,pombredanne/moksha,ralphbean/moksha,ralphbean/moksha,pombredanne/moksha,mokshaproject/moksha
# This file is part of Moksha. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later...
# This file is part of Moksha. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later...
<commit_before># This file is part of Moksha. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your op...
# This file is part of Moksha. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later...
# This file is part of Moksha. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later...
<commit_before># This file is part of Moksha. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your op...
fcff4e1d25abb173870fffdd0a0d1f63aca7fccf
numpy/_array_api/dtypes.py
numpy/_array_api/dtypes.py
from .. import int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64, bool __all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float32', 'float64', 'bool']
from .. import int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64 # Note: This name is changed from .. import bool_ as bool __all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float32', 'float64', 'bool']
Fix the bool name in the array API namespace
Fix the bool name in the array API namespace
Python
bsd-3-clause
mhvk/numpy,pdebuyl/numpy,mhvk/numpy,jakirkham/numpy,seberg/numpy,mattip/numpy,jakirkham/numpy,numpy/numpy,numpy/numpy,endolith/numpy,endolith/numpy,charris/numpy,rgommers/numpy,endolith/numpy,mattip/numpy,charris/numpy,pdebuyl/numpy,rgommers/numpy,simongibbons/numpy,charris/numpy,seberg/numpy,jakirkham/numpy,simongibbo...
from .. import int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64, bool __all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float32', 'float64', 'bool'] Fix the bool name in the array API namespace
from .. import int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64 # Note: This name is changed from .. import bool_ as bool __all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float32', 'float64', 'bool']
<commit_before>from .. import int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64, bool __all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float32', 'float64', 'bool'] <commit_msg>Fix the bool name in the array API namespace<commit_after>
from .. import int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64 # Note: This name is changed from .. import bool_ as bool __all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float32', 'float64', 'bool']
from .. import int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64, bool __all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float32', 'float64', 'bool'] Fix the bool name in the array API namespacefrom .. import int8, int16, int32, int64, uint8, uint16, uint32,...
<commit_before>from .. import int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64, bool __all__ = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float32', 'float64', 'bool'] <commit_msg>Fix the bool name in the array API namespace<commit_after>from .. import int8, in...
4af9f51da1557715a1eaaac1c2828de4dfe5b7c7
lib/globals.py
lib/globals.py
"""This module contains global constants that are used throughout the project. Module Constants: SCREEN_SIZE A tuple containing the width and height of the game screen, in pixels and with a 1x scale factor. FULL_SCALE An integer for the magnification factor that will cause ...
"""This module contains global constants that are used throughout the project. Module Constants: SCREEN_SIZE A tuple containing the width and height of the game screen, in pixels and with a 1x scale factor. FULL_SCALE An integer for the magnification factor that will cause ...
Add DEFAULT_NAMES as a global tuple constant
Add DEFAULT_NAMES as a global tuple constant They will be referenced in various places in the game and should not be subject to change. INPUT_NAMES was also changed into a tuple for guaranteed immutability.
Python
unlicense
MarquisLP/Sidewalk-Champion
"""This module contains global constants that are used throughout the project. Module Constants: SCREEN_SIZE A tuple containing the width and height of the game screen, in pixels and with a 1x scale factor. FULL_SCALE An integer for the magnification factor that will cause ...
"""This module contains global constants that are used throughout the project. Module Constants: SCREEN_SIZE A tuple containing the width and height of the game screen, in pixels and with a 1x scale factor. FULL_SCALE An integer for the magnification factor that will cause ...
<commit_before>"""This module contains global constants that are used throughout the project. Module Constants: SCREEN_SIZE A tuple containing the width and height of the game screen, in pixels and with a 1x scale factor. FULL_SCALE An integer for the magnification factor that will...
"""This module contains global constants that are used throughout the project. Module Constants: SCREEN_SIZE A tuple containing the width and height of the game screen, in pixels and with a 1x scale factor. FULL_SCALE An integer for the magnification factor that will cause ...
"""This module contains global constants that are used throughout the project. Module Constants: SCREEN_SIZE A tuple containing the width and height of the game screen, in pixels and with a 1x scale factor. FULL_SCALE An integer for the magnification factor that will cause ...
<commit_before>"""This module contains global constants that are used throughout the project. Module Constants: SCREEN_SIZE A tuple containing the width and height of the game screen, in pixels and with a 1x scale factor. FULL_SCALE An integer for the magnification factor that will...
cd3929203e758367c3ded00a554f531aedb79f05
blaze/tests/test_blfuncs.py
blaze/tests/test_blfuncs.py
from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.blaze_kernels import BlazeElementKernel import blaze def _add(a,b): return a + b def _mul(a,b): return a * b add = BlazeFunc('add',[(_add, 'f8(f8,f8)'), (_add, 'c16(c16,c16)')]) mul =...
from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.blaze_kernels import BlazeElementKernel import blaze def _add(a,b): return a + b def _mul(a,b): return a * b add = BlazeFunc('add',[('f8(f8,f8)', _add), ('c16(c16,c16)', _add)]) mul =...
Fix usage of urlparse. and re-order list of key, value dict specification.
Fix usage of urlparse. and re-order list of key, value dict specification.
Python
bsd-3-clause
xlhtc007/blaze,AbhiAgarwal/blaze,mrocklin/blaze,aterrel/blaze,markflorisson/blaze-core,AbhiAgarwal/blaze,jcrist/blaze,markflorisson/blaze-core,mwiebe/blaze,AbhiAgarwal/blaze,markflorisson/blaze-core,maxalbert/blaze,alexmojaki/blaze,scls19fr/blaze,cpcloud/blaze,aterrel/blaze,mrocklin/blaze,jcrist/blaze,xlhtc007/blaze,Fr...
from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.blaze_kernels import BlazeElementKernel import blaze def _add(a,b): return a + b def _mul(a,b): return a * b add = BlazeFunc('add',[(_add, 'f8(f8,f8)'), (_add, 'c16(c16,c16)')]) mul =...
from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.blaze_kernels import BlazeElementKernel import blaze def _add(a,b): return a + b def _mul(a,b): return a * b add = BlazeFunc('add',[('f8(f8,f8)', _add), ('c16(c16,c16)', _add)]) mul =...
<commit_before>from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.blaze_kernels import BlazeElementKernel import blaze def _add(a,b): return a + b def _mul(a,b): return a * b add = BlazeFunc('add',[(_add, 'f8(f8,f8)'), (_add, 'c16(c16,...
from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.blaze_kernels import BlazeElementKernel import blaze def _add(a,b): return a + b def _mul(a,b): return a * b add = BlazeFunc('add',[('f8(f8,f8)', _add), ('c16(c16,c16)', _add)]) mul =...
from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.blaze_kernels import BlazeElementKernel import blaze def _add(a,b): return a + b def _mul(a,b): return a * b add = BlazeFunc('add',[(_add, 'f8(f8,f8)'), (_add, 'c16(c16,c16)')]) mul =...
<commit_before>from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.blaze_kernels import BlazeElementKernel import blaze def _add(a,b): return a + b def _mul(a,b): return a * b add = BlazeFunc('add',[(_add, 'f8(f8,f8)'), (_add, 'c16(c16,...
a329770bdd5fdc6a646d6a0b298f0a67c789f86a
resolwe/flow/migrations/0029_storage_m2m.py
resolwe/flow/migrations/0029_storage_m2m.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-26 04:08 from __future__ import unicode_literals from django.db import migrations, models def set_data_relation(apps, schema_editor): Data = apps.get_model('flow', 'Data') Storage = apps.get_model('flow', 'Storage') for data in Data.object...
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-26 04:08 from __future__ import unicode_literals from django.db import migrations, models def set_data_relation(apps, schema_editor): Storage = apps.get_model('flow', 'Storage') for storage in Storage.objects.all(): storage.data.add(st...
Fix storage migration to process all storages
Fix storage migration to process all storages
Python
apache-2.0
genialis/resolwe,genialis/resolwe
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-26 04:08 from __future__ import unicode_literals from django.db import migrations, models def set_data_relation(apps, schema_editor): Data = apps.get_model('flow', 'Data') Storage = apps.get_model('flow', 'Storage') for data in Data.object...
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-26 04:08 from __future__ import unicode_literals from django.db import migrations, models def set_data_relation(apps, schema_editor): Storage = apps.get_model('flow', 'Storage') for storage in Storage.objects.all(): storage.data.add(st...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-26 04:08 from __future__ import unicode_literals from django.db import migrations, models def set_data_relation(apps, schema_editor): Data = apps.get_model('flow', 'Data') Storage = apps.get_model('flow', 'Storage') for data...
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-26 04:08 from __future__ import unicode_literals from django.db import migrations, models def set_data_relation(apps, schema_editor): Storage = apps.get_model('flow', 'Storage') for storage in Storage.objects.all(): storage.data.add(st...
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-26 04:08 from __future__ import unicode_literals from django.db import migrations, models def set_data_relation(apps, schema_editor): Data = apps.get_model('flow', 'Data') Storage = apps.get_model('flow', 'Storage') for data in Data.object...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-02-26 04:08 from __future__ import unicode_literals from django.db import migrations, models def set_data_relation(apps, schema_editor): Data = apps.get_model('flow', 'Data') Storage = apps.get_model('flow', 'Storage') for data...
e98b4f2a343643c513d8cd4cf8b34a446322b0de
watson/common/exception.py
watson/common/exception.py
"""Watson's base exception handling."""
"""Watson's base exception handling.""" class WatsonException(Exception): """Base watson exception To correctly use this class, inherit from it and define a `template` property. That `template` will be formated using the keyword arguments provided to the constructor. Example: :: ...
Add base exeption for Watson project
Add base exeption for Watson project
Python
mit
alexandrucoman/watson,c-square/watson,c-square/evorepo-common
"""Watson's base exception handling.""" Add base exeption for Watson project
"""Watson's base exception handling.""" class WatsonException(Exception): """Base watson exception To correctly use this class, inherit from it and define a `template` property. That `template` will be formated using the keyword arguments provided to the constructor. Example: :: ...
<commit_before>"""Watson's base exception handling.""" <commit_msg>Add base exeption for Watson project<commit_after>
"""Watson's base exception handling.""" class WatsonException(Exception): """Base watson exception To correctly use this class, inherit from it and define a `template` property. That `template` will be formated using the keyword arguments provided to the constructor. Example: :: ...
"""Watson's base exception handling.""" Add base exeption for Watson project"""Watson's base exception handling.""" class WatsonException(Exception): """Base watson exception To correctly use this class, inherit from it and define a `template` property. That `template` will be formated using the key...
<commit_before>"""Watson's base exception handling.""" <commit_msg>Add base exeption for Watson project<commit_after>"""Watson's base exception handling.""" class WatsonException(Exception): """Base watson exception To correctly use this class, inherit from it and define a `template` property. That ...
82973662e9cc8234e741d7595c95137df77296bb
tests/unit/utils/vt_test.py
tests/unit/utils/vt_test.py
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.vt_test ~~~~~~~~~~~~~~~~~~~~~~~~ VirtualTerminal tests ''' # Impor...
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.vt_test ~~~~~~~~~~~~~~~~~~~~~~~~ VirtualTerminal tests ''' # Impor...
Disable the VT test, the code ain't mature enough.
Disable the VT test, the code ain't mature enough.
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.vt_test ~~~~~~~~~~~~~~~~~~~~~~~~ VirtualTerminal tests ''' # Impor...
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.vt_test ~~~~~~~~~~~~~~~~~~~~~~~~ VirtualTerminal tests ''' # Impor...
<commit_before># -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.vt_test ~~~~~~~~~~~~~~~~~~~~~~~~ VirtualTerminal tes...
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.vt_test ~~~~~~~~~~~~~~~~~~~~~~~~ VirtualTerminal tests ''' # Impor...
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.vt_test ~~~~~~~~~~~~~~~~~~~~~~~~ VirtualTerminal tests ''' # Impor...
<commit_before># -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details. :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.vt_test ~~~~~~~~~~~~~~~~~~~~~~~~ VirtualTerminal tes...
9506fa3a0382ba7a156ba6188c8d05bff8be5da3
falcom/api/common/read_only_data_structure.py
falcom/api/common/read_only_data_structure.py
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class ReadOnlyDataStructure: def __init__ (self, **kwargs): self.__internal = kwargs self.__remove_null_keys() def ...
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class ReadOnlyDataStructure: def __init__ (self, **kwargs): self.__internal = kwargs self.__remove_null_keys() def ...
Add repr to data structures
Add repr to data structures
Python
bsd-3-clause
mlibrary/image-conversion-and-validation,mlibrary/image-conversion-and-validation
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class ReadOnlyDataStructure: def __init__ (self, **kwargs): self.__internal = kwargs self.__remove_null_keys() def ...
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class ReadOnlyDataStructure: def __init__ (self, **kwargs): self.__internal = kwargs self.__remove_null_keys() def ...
<commit_before># Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class ReadOnlyDataStructure: def __init__ (self, **kwargs): self.__internal = kwargs self.__remove_null_k...
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class ReadOnlyDataStructure: def __init__ (self, **kwargs): self.__internal = kwargs self.__remove_null_keys() def ...
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class ReadOnlyDataStructure: def __init__ (self, **kwargs): self.__internal = kwargs self.__remove_null_keys() def ...
<commit_before># Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class ReadOnlyDataStructure: def __init__ (self, **kwargs): self.__internal = kwargs self.__remove_null_k...
02ac9d6234ca00f3f5382fda9941d1e0dd0f734b
src/tenyksscripts/scripts/8ball.py
src/tenyksscripts/scripts/8ball.py
import random ateball = [ "It is certain", "It is decidedly so", "Without a doubt", "Yes definitely", "You may rely on it", "As I see it yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Reply hazy try again", ...
import random ateball = [ "It is certain.", "It is decidedly so.", "Without a doubt.", "Yes, definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try...
Revert "Revert "Added nickname and punct, removed parens""
Revert "Revert "Added nickname and punct, removed parens"" This reverts commit ab4e279a6866d432cd1f58a07879e219360b4911.
Python
mit
cblgh/tenyks-contrib,colby/tenyks-contrib,kyleterry/tenyks-contrib
import random ateball = [ "It is certain", "It is decidedly so", "Without a doubt", "Yes definitely", "You may rely on it", "As I see it yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Reply hazy try again", ...
import random ateball = [ "It is certain.", "It is decidedly so.", "Without a doubt.", "Yes, definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try...
<commit_before>import random ateball = [ "It is certain", "It is decidedly so", "Without a doubt", "Yes definitely", "You may rely on it", "As I see it yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Reply hazy t...
import random ateball = [ "It is certain.", "It is decidedly so.", "Without a doubt.", "Yes, definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try...
import random ateball = [ "It is certain", "It is decidedly so", "Without a doubt", "Yes definitely", "You may rely on it", "As I see it yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Reply hazy try again", ...
<commit_before>import random ateball = [ "It is certain", "It is decidedly so", "Without a doubt", "Yes definitely", "You may rely on it", "As I see it yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Reply hazy t...
19cc42cbaa39854131c907115548abdd2cfdfc1b
todoist/managers/generic.py
todoist/managers/generic.py
# -*- coding: utf-8 -*- class Manager(object): # should be re-defined in a subclass state_name = None object_type = None def __init__(self, api): self.api = api # shortcuts @property def state(self): return self.api.state @property def queue(self): return ...
# -*- coding: utf-8 -*- class Manager(object): # should be re-defined in a subclass state_name = None object_type = None def __init__(self, api): self.api = api # shortcuts @property def state(self): return self.api.state @property def queue(self): return ...
Fix gettatr object and name.
Fix gettatr object and name.
Python
mit
Doist/todoist-python
# -*- coding: utf-8 -*- class Manager(object): # should be re-defined in a subclass state_name = None object_type = None def __init__(self, api): self.api = api # shortcuts @property def state(self): return self.api.state @property def queue(self): return ...
# -*- coding: utf-8 -*- class Manager(object): # should be re-defined in a subclass state_name = None object_type = None def __init__(self, api): self.api = api # shortcuts @property def state(self): return self.api.state @property def queue(self): return ...
<commit_before># -*- coding: utf-8 -*- class Manager(object): # should be re-defined in a subclass state_name = None object_type = None def __init__(self, api): self.api = api # shortcuts @property def state(self): return self.api.state @property def queue(self): ...
# -*- coding: utf-8 -*- class Manager(object): # should be re-defined in a subclass state_name = None object_type = None def __init__(self, api): self.api = api # shortcuts @property def state(self): return self.api.state @property def queue(self): return ...
# -*- coding: utf-8 -*- class Manager(object): # should be re-defined in a subclass state_name = None object_type = None def __init__(self, api): self.api = api # shortcuts @property def state(self): return self.api.state @property def queue(self): return ...
<commit_before># -*- coding: utf-8 -*- class Manager(object): # should be re-defined in a subclass state_name = None object_type = None def __init__(self, api): self.api = api # shortcuts @property def state(self): return self.api.state @property def queue(self): ...
911fa61043cb034202aacc7ca3e92ceac048265c
greengraph/graph_command.py
greengraph/graph_command.py
#!/usr/bin/env python from .greengraph import GreenGraph from .googlemap import GoogleMap from argparse import ArgumentParser import IPython if __name__ == "__main__": parser = ArgumentParser(description = 'Generate pictures between 2 location') parser.add_argument('-f', '--from', required=True, help='Starting loca...
#!/usr/bin/env python from .greengraph import GreenGraph from .googlemap import GoogleMap from argparse import ArgumentParser from IPython.display import Image from IPython.display import display if __name__ == "__main__": parser = ArgumentParser(description = 'Generate pictures between 2 location') parser.add_argu...
Fix displaying multiple images command
Fix displaying multiple images command
Python
mit
manhdao/greengraph-MPHYSG001
#!/usr/bin/env python from .greengraph import GreenGraph from .googlemap import GoogleMap from argparse import ArgumentParser import IPython if __name__ == "__main__": parser = ArgumentParser(description = 'Generate pictures between 2 location') parser.add_argument('-f', '--from', required=True, help='Starting loca...
#!/usr/bin/env python from .greengraph import GreenGraph from .googlemap import GoogleMap from argparse import ArgumentParser from IPython.display import Image from IPython.display import display if __name__ == "__main__": parser = ArgumentParser(description = 'Generate pictures between 2 location') parser.add_argu...
<commit_before>#!/usr/bin/env python from .greengraph import GreenGraph from .googlemap import GoogleMap from argparse import ArgumentParser import IPython if __name__ == "__main__": parser = ArgumentParser(description = 'Generate pictures between 2 location') parser.add_argument('-f', '--from', required=True, help...
#!/usr/bin/env python from .greengraph import GreenGraph from .googlemap import GoogleMap from argparse import ArgumentParser from IPython.display import Image from IPython.display import display if __name__ == "__main__": parser = ArgumentParser(description = 'Generate pictures between 2 location') parser.add_argu...
#!/usr/bin/env python from .greengraph import GreenGraph from .googlemap import GoogleMap from argparse import ArgumentParser import IPython if __name__ == "__main__": parser = ArgumentParser(description = 'Generate pictures between 2 location') parser.add_argument('-f', '--from', required=True, help='Starting loca...
<commit_before>#!/usr/bin/env python from .greengraph import GreenGraph from .googlemap import GoogleMap from argparse import ArgumentParser import IPython if __name__ == "__main__": parser = ArgumentParser(description = 'Generate pictures between 2 location') parser.add_argument('-f', '--from', required=True, help...
e54b28430f7b301e04eb5b02ce667019df4434bf
chrome/test/chromeos/autotest/files/client/site_tests/desktopui_SyncIntegrationTests/desktopui_SyncIntegrationTests.py
chrome/test/chromeos/autotest/files/client/site_tests/desktopui_SyncIntegrationTests/desktopui_SyncIntegrationTests.py
# Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from autotest_lib.client.cros import chrome_test class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase): version = 1 def run_once(sel...
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from autotest_lib.client.cros import chrome_test class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase): version = 1 binary_to_run = ...
Make the sync integration tests self-contained on autotest
Make the sync integration tests self-contained on autotest In the past, the sync integration tests used to require a password file stored on every test device in order to do a gaia sign in using production gaia servers. This caused the tests to be brittle. As of today, the sync integration tests no longer rely on a p...
Python
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
# Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from autotest_lib.client.cros import chrome_test class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase): version = 1 def run_once(sel...
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from autotest_lib.client.cros import chrome_test class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase): version = 1 binary_to_run = ...
<commit_before># Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from autotest_lib.client.cros import chrome_test class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase): version = 1 d...
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from autotest_lib.client.cros import chrome_test class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase): version = 1 binary_to_run = ...
# Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from autotest_lib.client.cros import chrome_test class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase): version = 1 def run_once(sel...
<commit_before># Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from autotest_lib.client.cros import chrome_test class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase): version = 1 d...
1d866c7a66d0efde1b6a9beb5ecf89b9c6360b1e
spotpy/unittests/test_objectivefunctions.py
spotpy/unittests/test_objectivefunctions.py
import unittest from spotpy import objectivefunctions as of import numpy as np #https://docs.python.org/3/library/unittest.html class TestObjectiveFunctions(unittest.TestCase): # How many digits to match in case of floating point answers tolerance = 10 def setUp(self): np.random.seed(42) ...
import unittest from spotpy import objectivefunctions as of import numpy as np #https://docs.python.org/3/library/unittest.html class TestObjectiveFunctions(unittest.TestCase): # How many digits to match in case of floating point answers tolerance = 10 def setUp(self): np.random.seed(42) ...
Add tests for pbias and nashsutcliffe
Add tests for pbias and nashsutcliffe
Python
mit
bees4ever/spotpy,thouska/spotpy,thouska/spotpy,bees4ever/spotpy,bees4ever/spotpy,thouska/spotpy
import unittest from spotpy import objectivefunctions as of import numpy as np #https://docs.python.org/3/library/unittest.html class TestObjectiveFunctions(unittest.TestCase): # How many digits to match in case of floating point answers tolerance = 10 def setUp(self): np.random.seed(42) ...
import unittest from spotpy import objectivefunctions as of import numpy as np #https://docs.python.org/3/library/unittest.html class TestObjectiveFunctions(unittest.TestCase): # How many digits to match in case of floating point answers tolerance = 10 def setUp(self): np.random.seed(42) ...
<commit_before>import unittest from spotpy import objectivefunctions as of import numpy as np #https://docs.python.org/3/library/unittest.html class TestObjectiveFunctions(unittest.TestCase): # How many digits to match in case of floating point answers tolerance = 10 def setUp(self): np.random.s...
import unittest from spotpy import objectivefunctions as of import numpy as np #https://docs.python.org/3/library/unittest.html class TestObjectiveFunctions(unittest.TestCase): # How many digits to match in case of floating point answers tolerance = 10 def setUp(self): np.random.seed(42) ...
import unittest from spotpy import objectivefunctions as of import numpy as np #https://docs.python.org/3/library/unittest.html class TestObjectiveFunctions(unittest.TestCase): # How many digits to match in case of floating point answers tolerance = 10 def setUp(self): np.random.seed(42) ...
<commit_before>import unittest from spotpy import objectivefunctions as of import numpy as np #https://docs.python.org/3/library/unittest.html class TestObjectiveFunctions(unittest.TestCase): # How many digits to match in case of floating point answers tolerance = 10 def setUp(self): np.random.s...
ff42b726c107e75f96409894b610256068add8dc
spacy/tests/test_textcat.py
spacy/tests/test_textcat.py
import random from ..pipeline import TextCategorizer from ..lang.en import English from ..vocab import Vocab from ..tokens import Doc from ..gold import GoldParse def test_textcat_learns_multilabel(): docs = [] nlp = English() vocab = nlp.vocab letters = ['a', 'b', 'c'] for w1 in letters: ...
from __future__ import unicode_literals import random from ..pipeline import TextCategorizer from ..lang.en import English from ..vocab import Vocab from ..tokens import Doc from ..gold import GoldParse def test_textcat_learns_multilabel(): docs = [] nlp = English() vocab = nlp.vocab letters = ['a', ...
Fix unicode declaration on test
Fix unicode declaration on test
Python
mit
honnibal/spaCy,recognai/spaCy,recognai/spaCy,honnibal/spaCy,recognai/spaCy,aikramer2/spaCy,explosion/spaCy,aikramer2/spaCy,honnibal/spaCy,explosion/spaCy,aikramer2/spaCy,explosion/spaCy,explosion/spaCy,explosion/spaCy,recognai/spaCy,spacy-io/spaCy,spacy-io/spaCy,explosion/spaCy,spacy-io/spaCy,aikramer2/spaCy,spacy-io/s...
import random from ..pipeline import TextCategorizer from ..lang.en import English from ..vocab import Vocab from ..tokens import Doc from ..gold import GoldParse def test_textcat_learns_multilabel(): docs = [] nlp = English() vocab = nlp.vocab letters = ['a', 'b', 'c'] for w1 in letters: ...
from __future__ import unicode_literals import random from ..pipeline import TextCategorizer from ..lang.en import English from ..vocab import Vocab from ..tokens import Doc from ..gold import GoldParse def test_textcat_learns_multilabel(): docs = [] nlp = English() vocab = nlp.vocab letters = ['a', ...
<commit_before>import random from ..pipeline import TextCategorizer from ..lang.en import English from ..vocab import Vocab from ..tokens import Doc from ..gold import GoldParse def test_textcat_learns_multilabel(): docs = [] nlp = English() vocab = nlp.vocab letters = ['a', 'b', 'c'] for w1 in l...
from __future__ import unicode_literals import random from ..pipeline import TextCategorizer from ..lang.en import English from ..vocab import Vocab from ..tokens import Doc from ..gold import GoldParse def test_textcat_learns_multilabel(): docs = [] nlp = English() vocab = nlp.vocab letters = ['a', ...
import random from ..pipeline import TextCategorizer from ..lang.en import English from ..vocab import Vocab from ..tokens import Doc from ..gold import GoldParse def test_textcat_learns_multilabel(): docs = [] nlp = English() vocab = nlp.vocab letters = ['a', 'b', 'c'] for w1 in letters: ...
<commit_before>import random from ..pipeline import TextCategorizer from ..lang.en import English from ..vocab import Vocab from ..tokens import Doc from ..gold import GoldParse def test_textcat_learns_multilabel(): docs = [] nlp = English() vocab = nlp.vocab letters = ['a', 'b', 'c'] for w1 in l...
954cd7378c70ef433f5f2dc220991905fd779dc6
allauth/socialaccount/providers/eventbrite/provider.py
allauth/socialaccount/providers/eventbrite/provider.py
"""Customise Provider classes for Eventbrite API v3.""" from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EventbriteAccount(ProviderAccount): """ProviderAccount subclass for Eventbrite.""" def get_avatar_url(self...
"""Customise Provider classes for Eventbrite API v3.""" from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EventbriteAccount(ProviderAccount): """ProviderAccount subclass for Eventbrite.""" def get_avatar_url(self...
Remove unneeded get_default_scope from EventbriteProvider
Remove unneeded get_default_scope from EventbriteProvider
Python
mit
spool/django-allauth,spool/django-allauth,spool/django-allauth
"""Customise Provider classes for Eventbrite API v3.""" from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EventbriteAccount(ProviderAccount): """ProviderAccount subclass for Eventbrite.""" def get_avatar_url(self...
"""Customise Provider classes for Eventbrite API v3.""" from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EventbriteAccount(ProviderAccount): """ProviderAccount subclass for Eventbrite.""" def get_avatar_url(self...
<commit_before>"""Customise Provider classes for Eventbrite API v3.""" from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EventbriteAccount(ProviderAccount): """ProviderAccount subclass for Eventbrite.""" def get_...
"""Customise Provider classes for Eventbrite API v3.""" from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EventbriteAccount(ProviderAccount): """ProviderAccount subclass for Eventbrite.""" def get_avatar_url(self...
"""Customise Provider classes for Eventbrite API v3.""" from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EventbriteAccount(ProviderAccount): """ProviderAccount subclass for Eventbrite.""" def get_avatar_url(self...
<commit_before>"""Customise Provider classes for Eventbrite API v3.""" from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EventbriteAccount(ProviderAccount): """ProviderAccount subclass for Eventbrite.""" def get_...
73f9e0e3abd49746fd246f861f2897a8cd711d90
splunk_handler/__init__.py
splunk_handler/__init__.py
import logging import socket import traceback from threading import Thread import requests class SplunkHandler(logging.Handler): """ A logging handler to send events to a Splunk Enterprise instance """ def __init__(self, host, port, username, password, index): logging.Handler.__init__(self...
import logging import socket import traceback from threading import Thread import requests class SplunkHandler(logging.Handler): """ A logging handler to send events to a Splunk Enterprise instance """ def __init__(self, host, port, username, password, index, hostname=None, source=None, sourcetype=...
Add code to allow user to configure their own hostname, source, and sourcetype (with defaults)
Add code to allow user to configure their own hostname, source, and sourcetype (with defaults)
Python
mit
zach-taylor/splunk_handler,sullivanmatt/splunk_handler
import logging import socket import traceback from threading import Thread import requests class SplunkHandler(logging.Handler): """ A logging handler to send events to a Splunk Enterprise instance """ def __init__(self, host, port, username, password, index): logging.Handler.__init__(self...
import logging import socket import traceback from threading import Thread import requests class SplunkHandler(logging.Handler): """ A logging handler to send events to a Splunk Enterprise instance """ def __init__(self, host, port, username, password, index, hostname=None, source=None, sourcetype=...
<commit_before>import logging import socket import traceback from threading import Thread import requests class SplunkHandler(logging.Handler): """ A logging handler to send events to a Splunk Enterprise instance """ def __init__(self, host, port, username, password, index): logging.Handle...
import logging import socket import traceback from threading import Thread import requests class SplunkHandler(logging.Handler): """ A logging handler to send events to a Splunk Enterprise instance """ def __init__(self, host, port, username, password, index, hostname=None, source=None, sourcetype=...
import logging import socket import traceback from threading import Thread import requests class SplunkHandler(logging.Handler): """ A logging handler to send events to a Splunk Enterprise instance """ def __init__(self, host, port, username, password, index): logging.Handler.__init__(self...
<commit_before>import logging import socket import traceback from threading import Thread import requests class SplunkHandler(logging.Handler): """ A logging handler to send events to a Splunk Enterprise instance """ def __init__(self, host, port, username, password, index): logging.Handle...
a3103605f1d6b3979ad3c7fc4cdcb3ef71e0886f
fabfile/eg.py
fabfile/eg.py
from fabric.api import task, local, run, lcd, cd, env, shell_env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path PWD = path.join(path.dirname(__file__), '..') VENV_DIR = path.join(PWD, '.env') @task def mnist(): with virtualenv(VENV_DIR), lcd(PWD), shell_env(...
from fabric.api import task, local, run, lcd, cd, env, shell_env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path PWD = path.join(path.dirname(__file__), '..') VENV_DIR = path.join(PWD, '.env') @task def mnist(): with virtualenv(VENV_DIR), lcd(PWD), shell_env(...
Update fabfile for moved mnist example
Update fabfile for moved mnist example
Python
mit
explosion/thinc,spacy-io/thinc,explosion/thinc,explosion/thinc,spacy-io/thinc,spacy-io/thinc,explosion/thinc
from fabric.api import task, local, run, lcd, cd, env, shell_env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path PWD = path.join(path.dirname(__file__), '..') VENV_DIR = path.join(PWD, '.env') @task def mnist(): with virtualenv(VENV_DIR), lcd(PWD), shell_env(...
from fabric.api import task, local, run, lcd, cd, env, shell_env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path PWD = path.join(path.dirname(__file__), '..') VENV_DIR = path.join(PWD, '.env') @task def mnist(): with virtualenv(VENV_DIR), lcd(PWD), shell_env(...
<commit_before>from fabric.api import task, local, run, lcd, cd, env, shell_env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path PWD = path.join(path.dirname(__file__), '..') VENV_DIR = path.join(PWD, '.env') @task def mnist(): with virtualenv(VENV_DIR), lcd(P...
from fabric.api import task, local, run, lcd, cd, env, shell_env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path PWD = path.join(path.dirname(__file__), '..') VENV_DIR = path.join(PWD, '.env') @task def mnist(): with virtualenv(VENV_DIR), lcd(PWD), shell_env(...
from fabric.api import task, local, run, lcd, cd, env, shell_env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path PWD = path.join(path.dirname(__file__), '..') VENV_DIR = path.join(PWD, '.env') @task def mnist(): with virtualenv(VENV_DIR), lcd(PWD), shell_env(...
<commit_before>from fabric.api import task, local, run, lcd, cd, env, shell_env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path PWD = path.join(path.dirname(__file__), '..') VENV_DIR = path.join(PWD, '.env') @task def mnist(): with virtualenv(VENV_DIR), lcd(P...
8d316e6c29f0a65b038bceeb0d93aeca379b76cb
grid/views.py
grid/views.py
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect, render_to_response from django.template import RequestContext from django.template.loader import get_template import json from models import Game, Week def index(request): ...
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect, render_to_response from django.template import RequestContext from django.template.loader import get_template import json from models import Game, Week def index(request): ...
Use the correct syntax when iterating a week's games.
Use the correct syntax when iterating a week's games.
Python
mit
bschmeck/gnarl,bschmeck/gnarl,bschmeck/gnarl
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect, render_to_response from django.template import RequestContext from django.template.loader import get_template import json from models import Game, Week def index(request): ...
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect, render_to_response from django.template import RequestContext from django.template.loader import get_template import json from models import Game, Week def index(request): ...
<commit_before>from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect, render_to_response from django.template import RequestContext from django.template.loader import get_template import json from models import Game, Week def inde...
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect, render_to_response from django.template import RequestContext from django.template.loader import get_template import json from models import Game, Week def index(request): ...
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect, render_to_response from django.template import RequestContext from django.template.loader import get_template import json from models import Game, Week def index(request): ...
<commit_before>from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect, render_to_response from django.template import RequestContext from django.template.loader import get_template import json from models import Game, Week def inde...
24b8de9cfdcc36b1cc6001b84430411d32ac58a6
setup.py
setup.py
"""Mailmerge build and install configuration.""" import os try: from setuptools import setup except ImportError: from distutils.core import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme_file: README = readme_file.read() setup( name="mailmerge", description="A sim...
"""Mailmerge build and install configuration.""" import os try: from setuptools import setup except ImportError: from distutils.core import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme_file: README = readme_file.read() setup( name="mailmerge", description="A sim...
Add pdbpp to dev dependencies
Add pdbpp to dev dependencies
Python
mit
awdeorio/mailmerge
"""Mailmerge build and install configuration.""" import os try: from setuptools import setup except ImportError: from distutils.core import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme_file: README = readme_file.read() setup( name="mailmerge", description="A sim...
"""Mailmerge build and install configuration.""" import os try: from setuptools import setup except ImportError: from distutils.core import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme_file: README = readme_file.read() setup( name="mailmerge", description="A sim...
<commit_before>"""Mailmerge build and install configuration.""" import os try: from setuptools import setup except ImportError: from distutils.core import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme_file: README = readme_file.read() setup( name="mailmerge", des...
"""Mailmerge build and install configuration.""" import os try: from setuptools import setup except ImportError: from distutils.core import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme_file: README = readme_file.read() setup( name="mailmerge", description="A sim...
"""Mailmerge build and install configuration.""" import os try: from setuptools import setup except ImportError: from distutils.core import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme_file: README = readme_file.read() setup( name="mailmerge", description="A sim...
<commit_before>"""Mailmerge build and install configuration.""" import os try: from setuptools import setup except ImportError: from distutils.core import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme_file: README = readme_file.read() setup( name="mailmerge", des...
56bebcab933bbac89150937fe0b6b5adfdc0db26
setup.py
setup.py
import os from setuptools import setup PROJECT_DIR = os.path.dirname(__file__) setup( name = 'django-right-to-left', packages = ['rtl'], version = '0.1', license = 'BSD', keywords = 'Django, translation, internationalization, righ to left, bidi', description = 'A django template loader that l...
import os from setuptools import setup PROJECT_DIR = os.path.dirname(__file__) setup( name = 'django-right-to-left', packages = ['rtl'], version = '0.1', license = 'BSD', keywords = 'Django, translation, internationalization, righ to left, bidi', description = 'A Django template loader that l...
Update description for consistency with readme
Update description for consistency with readme
Python
bsd-3-clause
abbas123456/django-right-to-left
import os from setuptools import setup PROJECT_DIR = os.path.dirname(__file__) setup( name = 'django-right-to-left', packages = ['rtl'], version = '0.1', license = 'BSD', keywords = 'Django, translation, internationalization, righ to left, bidi', description = 'A django template loader that l...
import os from setuptools import setup PROJECT_DIR = os.path.dirname(__file__) setup( name = 'django-right-to-left', packages = ['rtl'], version = '0.1', license = 'BSD', keywords = 'Django, translation, internationalization, righ to left, bidi', description = 'A Django template loader that l...
<commit_before>import os from setuptools import setup PROJECT_DIR = os.path.dirname(__file__) setup( name = 'django-right-to-left', packages = ['rtl'], version = '0.1', license = 'BSD', keywords = 'Django, translation, internationalization, righ to left, bidi', description = 'A django templat...
import os from setuptools import setup PROJECT_DIR = os.path.dirname(__file__) setup( name = 'django-right-to-left', packages = ['rtl'], version = '0.1', license = 'BSD', keywords = 'Django, translation, internationalization, righ to left, bidi', description = 'A Django template loader that l...
import os from setuptools import setup PROJECT_DIR = os.path.dirname(__file__) setup( name = 'django-right-to-left', packages = ['rtl'], version = '0.1', license = 'BSD', keywords = 'Django, translation, internationalization, righ to left, bidi', description = 'A django template loader that l...
<commit_before>import os from setuptools import setup PROJECT_DIR = os.path.dirname(__file__) setup( name = 'django-right-to-left', packages = ['rtl'], version = '0.1', license = 'BSD', keywords = 'Django, translation, internationalization, righ to left, bidi', description = 'A django templat...
952704b93004e5763231ad3e64f32135474651b2
common/templatetags/uqam.py
common/templatetags/uqam.py
from django import template register = template.Library() @register.filter def dimension(value, arg): """ Dimension integers If value, append arg, otherwise output nothing """ if value: return str(value) + " " + arg return "" @register.filter def verbose_name(obj): """ Retu...
from django import template register = template.Library() @register.filter def dimension(value, arg): """ Dimension integers If value, append arg, otherwise output nothing """ if value: return str(value) + " " + arg return "" @register.filter def verbose_name(obj): """ Retu...
Order categories in search fields
Order categories in search fields
Python
bsd-3-clause
uq-eresearch/uqam,uq-eresearch/uqam,uq-eresearch/uqam,uq-eresearch/uqam
from django import template register = template.Library() @register.filter def dimension(value, arg): """ Dimension integers If value, append arg, otherwise output nothing """ if value: return str(value) + " " + arg return "" @register.filter def verbose_name(obj): """ Retu...
from django import template register = template.Library() @register.filter def dimension(value, arg): """ Dimension integers If value, append arg, otherwise output nothing """ if value: return str(value) + " " + arg return "" @register.filter def verbose_name(obj): """ Retu...
<commit_before>from django import template register = template.Library() @register.filter def dimension(value, arg): """ Dimension integers If value, append arg, otherwise output nothing """ if value: return str(value) + " " + arg return "" @register.filter def verbose_name(obj): ...
from django import template register = template.Library() @register.filter def dimension(value, arg): """ Dimension integers If value, append arg, otherwise output nothing """ if value: return str(value) + " " + arg return "" @register.filter def verbose_name(obj): """ Retu...
from django import template register = template.Library() @register.filter def dimension(value, arg): """ Dimension integers If value, append arg, otherwise output nothing """ if value: return str(value) + " " + arg return "" @register.filter def verbose_name(obj): """ Retu...
<commit_before>from django import template register = template.Library() @register.filter def dimension(value, arg): """ Dimension integers If value, append arg, otherwise output nothing """ if value: return str(value) + " " + arg return "" @register.filter def verbose_name(obj): ...
38669acc445dc4376968bf1bb885b8b205688a6e
syncplay/ui/sound.py
syncplay/ui/sound.py
try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(buzzPath, winso...
try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(buzzPath, winso...
Fix for exception due to missing buzzer.wav
Fix for exception due to missing buzzer.wav
Python
apache-2.0
NeverDecaf/syncplay,alby128/syncplay,Syncplay/syncplay,alby128/syncplay,NeverDecaf/syncplay,Syncplay/syncplay
try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(buzzPath, winso...
try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(buzzPath, winso...
<commit_before>try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(...
try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(buzzPath, winso...
try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(buzzPath, winso...
<commit_before>try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(...
da0ee7c58d4d21037bc73951591bcede9efa23da
setup.py
setup.py
"""Setup module for txrudp.""" import codecs from os import path import sys from setuptools import setup _HERE = path.abspath(path.dirname(__file__)) with codecs.open(path.join(_HERE, 'README.rst'), encoding='utf-8') as f: _LONG_DESCRIPTION = f.read() setup( name='txrudp', version='0.4.0', descript...
"""Setup module for txrudp.""" import codecs from os import path import sys from setuptools import setup _HERE = path.abspath(path.dirname(__file__)) with codecs.open(path.join(_HERE, 'README.rst'), encoding='utf-8') as f: _LONG_DESCRIPTION = f.read() setup( name='txrudp', version='0.4.0', descript...
Set pynacl as an optional requirement.
Set pynacl as an optional requirement.
Python
mit
Renelvon/txrudp,OpenBazaar/txrudp
"""Setup module for txrudp.""" import codecs from os import path import sys from setuptools import setup _HERE = path.abspath(path.dirname(__file__)) with codecs.open(path.join(_HERE, 'README.rst'), encoding='utf-8') as f: _LONG_DESCRIPTION = f.read() setup( name='txrudp', version='0.4.0', descript...
"""Setup module for txrudp.""" import codecs from os import path import sys from setuptools import setup _HERE = path.abspath(path.dirname(__file__)) with codecs.open(path.join(_HERE, 'README.rst'), encoding='utf-8') as f: _LONG_DESCRIPTION = f.read() setup( name='txrudp', version='0.4.0', descript...
<commit_before>"""Setup module for txrudp.""" import codecs from os import path import sys from setuptools import setup _HERE = path.abspath(path.dirname(__file__)) with codecs.open(path.join(_HERE, 'README.rst'), encoding='utf-8') as f: _LONG_DESCRIPTION = f.read() setup( name='txrudp', version='0.4.0...
"""Setup module for txrudp.""" import codecs from os import path import sys from setuptools import setup _HERE = path.abspath(path.dirname(__file__)) with codecs.open(path.join(_HERE, 'README.rst'), encoding='utf-8') as f: _LONG_DESCRIPTION = f.read() setup( name='txrudp', version='0.4.0', descript...
"""Setup module for txrudp.""" import codecs from os import path import sys from setuptools import setup _HERE = path.abspath(path.dirname(__file__)) with codecs.open(path.join(_HERE, 'README.rst'), encoding='utf-8') as f: _LONG_DESCRIPTION = f.read() setup( name='txrudp', version='0.4.0', descript...
<commit_before>"""Setup module for txrudp.""" import codecs from os import path import sys from setuptools import setup _HERE = path.abspath(path.dirname(__file__)) with codecs.open(path.join(_HERE, 'README.rst'), encoding='utf-8') as f: _LONG_DESCRIPTION = f.read() setup( name='txrudp', version='0.4.0...
bb96586af0aa0fcf6ca5b1891740fbc02f3758c8
setup.py
setup.py
from setuptools import setup, find_packages VERSION = '1.1.4' setup( name="puresnmp", version=VERSION, description="Pure Python SNMP implementation", long_description=open("README.rst").read(), author="Michel Albert", author_email="michel@albert.lu", provides=['puresnmp'], license="MIT...
from setuptools import setup, find_packages from os.path import dirname, abspath HERE = abspath(dirname(__file__)) VERSION = open(HERE + '/puresnmp/version.txt').read().strip() setup( name="puresnmp", version=VERSION, description="Pure Python SNMP implementation", long_description=open(HERE + "/README...
Revert "Another attempt to fix the RTD build."
Revert "Another attempt to fix the RTD build." This reverts commit 43807c085493962ca0f79105b64b3be8ddc6fc39. References #25
Python
mit
exhuma/puresnmp,exhuma/puresnmp
from setuptools import setup, find_packages VERSION = '1.1.4' setup( name="puresnmp", version=VERSION, description="Pure Python SNMP implementation", long_description=open("README.rst").read(), author="Michel Albert", author_email="michel@albert.lu", provides=['puresnmp'], license="MIT...
from setuptools import setup, find_packages from os.path import dirname, abspath HERE = abspath(dirname(__file__)) VERSION = open(HERE + '/puresnmp/version.txt').read().strip() setup( name="puresnmp", version=VERSION, description="Pure Python SNMP implementation", long_description=open(HERE + "/README...
<commit_before>from setuptools import setup, find_packages VERSION = '1.1.4' setup( name="puresnmp", version=VERSION, description="Pure Python SNMP implementation", long_description=open("README.rst").read(), author="Michel Albert", author_email="michel@albert.lu", provides=['puresnmp'], ...
from setuptools import setup, find_packages from os.path import dirname, abspath HERE = abspath(dirname(__file__)) VERSION = open(HERE + '/puresnmp/version.txt').read().strip() setup( name="puresnmp", version=VERSION, description="Pure Python SNMP implementation", long_description=open(HERE + "/README...
from setuptools import setup, find_packages VERSION = '1.1.4' setup( name="puresnmp", version=VERSION, description="Pure Python SNMP implementation", long_description=open("README.rst").read(), author="Michel Albert", author_email="michel@albert.lu", provides=['puresnmp'], license="MIT...
<commit_before>from setuptools import setup, find_packages VERSION = '1.1.4' setup( name="puresnmp", version=VERSION, description="Pure Python SNMP implementation", long_description=open("README.rst").read(), author="Michel Albert", author_email="michel@albert.lu", provides=['puresnmp'], ...
41bbcab67e691cf328b47bd23b91f841078a0c4c
setup.py
setup.py
#!/usr/bin/env python from __future__ import unicode_literals from csv_generator import __version__ from setuptools import setup, find_packages setup( name='csv_generator', version=__version__, description='Configurable CSV Generator for Django', author='Dan Stringer', author_email='dan.s...
#!/usr/bin/env python from __future__ import unicode_literals from csv_generator import __version__ from setuptools import setup, find_packages setup( name='csv_generator', version=__version__, description='Configurable CSV Generator for Django', author='Dan Stringer', author_email='dan.s...
Remove install requires and added download_url
Remove install requires and added download_url
Python
mit
fatboystring/csv_generator,fatboystring/csv_generator
#!/usr/bin/env python from __future__ import unicode_literals from csv_generator import __version__ from setuptools import setup, find_packages setup( name='csv_generator', version=__version__, description='Configurable CSV Generator for Django', author='Dan Stringer', author_email='dan.s...
#!/usr/bin/env python from __future__ import unicode_literals from csv_generator import __version__ from setuptools import setup, find_packages setup( name='csv_generator', version=__version__, description='Configurable CSV Generator for Django', author='Dan Stringer', author_email='dan.s...
<commit_before>#!/usr/bin/env python from __future__ import unicode_literals from csv_generator import __version__ from setuptools import setup, find_packages setup( name='csv_generator', version=__version__, description='Configurable CSV Generator for Django', author='Dan Stringer', auth...
#!/usr/bin/env python from __future__ import unicode_literals from csv_generator import __version__ from setuptools import setup, find_packages setup( name='csv_generator', version=__version__, description='Configurable CSV Generator for Django', author='Dan Stringer', author_email='dan.s...
#!/usr/bin/env python from __future__ import unicode_literals from csv_generator import __version__ from setuptools import setup, find_packages setup( name='csv_generator', version=__version__, description='Configurable CSV Generator for Django', author='Dan Stringer', author_email='dan.s...
<commit_before>#!/usr/bin/env python from __future__ import unicode_literals from csv_generator import __version__ from setuptools import setup, find_packages setup( name='csv_generator', version=__version__, description='Configurable CSV Generator for Django', author='Dan Stringer', auth...
8e2fe6bd486e7c105ef7cd6f061b41efd3e42b08
tasks/base.py
tasks/base.py
import os import invoke invoke.run = os.system class BaseTest(object): def download_mspec(self): if not os.path.isdir("../mspec"): invoke.run("cd .. && git clone --depth=100 --quiet https://github.com/ruby/mspec") def download_rubyspec(self): if not os.path.isdir("../rubyspec")...
import os import invoke if os.environ.get('TRAVIS_OS_NAME') == 'osx': invoke.run = os.system class BaseTest(object): def download_mspec(self): if not os.path.isdir("../mspec"): invoke.run("cd .. && git clone --depth=100 --quiet https://github.com/ruby/mspec") def download_rubyspec(s...
Use dirty macOS workaround only on OSX on Travis
Use dirty macOS workaround only on OSX on Travis
Python
bsd-3-clause
topazproject/topaz,topazproject/topaz,topazproject/topaz,topazproject/topaz
import os import invoke invoke.run = os.system class BaseTest(object): def download_mspec(self): if not os.path.isdir("../mspec"): invoke.run("cd .. && git clone --depth=100 --quiet https://github.com/ruby/mspec") def download_rubyspec(self): if not os.path.isdir("../rubyspec")...
import os import invoke if os.environ.get('TRAVIS_OS_NAME') == 'osx': invoke.run = os.system class BaseTest(object): def download_mspec(self): if not os.path.isdir("../mspec"): invoke.run("cd .. && git clone --depth=100 --quiet https://github.com/ruby/mspec") def download_rubyspec(s...
<commit_before>import os import invoke invoke.run = os.system class BaseTest(object): def download_mspec(self): if not os.path.isdir("../mspec"): invoke.run("cd .. && git clone --depth=100 --quiet https://github.com/ruby/mspec") def download_rubyspec(self): if not os.path.isdir...
import os import invoke if os.environ.get('TRAVIS_OS_NAME') == 'osx': invoke.run = os.system class BaseTest(object): def download_mspec(self): if not os.path.isdir("../mspec"): invoke.run("cd .. && git clone --depth=100 --quiet https://github.com/ruby/mspec") def download_rubyspec(s...
import os import invoke invoke.run = os.system class BaseTest(object): def download_mspec(self): if not os.path.isdir("../mspec"): invoke.run("cd .. && git clone --depth=100 --quiet https://github.com/ruby/mspec") def download_rubyspec(self): if not os.path.isdir("../rubyspec")...
<commit_before>import os import invoke invoke.run = os.system class BaseTest(object): def download_mspec(self): if not os.path.isdir("../mspec"): invoke.run("cd .. && git clone --depth=100 --quiet https://github.com/ruby/mspec") def download_rubyspec(self): if not os.path.isdir...
5f3ebbf3216144a79581e70f5397886b527339f1
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name="psycho", version="1.0", description="An ultra simple wrapper for Python psycopg2 with very basic functionality", author="Scott Clark", author_email="scott@usealloy.io", packages=['psycho'], download_url="http://github.com/usea...
#!/usr/bin/env python from setuptools import setup setup( name="psycho", version="0.0.2", description="An ultra simple wrapper for Python psycopg2 with very basic functionality", author="Scott Clark", author_email="scott@usealloy.io", packages=['psycho'], download_url="http://github.com/us...
Decrease version to bare minimum plus 0.0.1
Decrease version to bare minimum plus 0.0.1
Python
mit
UseAlloy/psycho
#!/usr/bin/env python from setuptools import setup setup( name="psycho", version="1.0", description="An ultra simple wrapper for Python psycopg2 with very basic functionality", author="Scott Clark", author_email="scott@usealloy.io", packages=['psycho'], download_url="http://github.com/usea...
#!/usr/bin/env python from setuptools import setup setup( name="psycho", version="0.0.2", description="An ultra simple wrapper for Python psycopg2 with very basic functionality", author="Scott Clark", author_email="scott@usealloy.io", packages=['psycho'], download_url="http://github.com/us...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name="psycho", version="1.0", description="An ultra simple wrapper for Python psycopg2 with very basic functionality", author="Scott Clark", author_email="scott@usealloy.io", packages=['psycho'], download_url="http://...
#!/usr/bin/env python from setuptools import setup setup( name="psycho", version="0.0.2", description="An ultra simple wrapper for Python psycopg2 with very basic functionality", author="Scott Clark", author_email="scott@usealloy.io", packages=['psycho'], download_url="http://github.com/us...
#!/usr/bin/env python from setuptools import setup setup( name="psycho", version="1.0", description="An ultra simple wrapper for Python psycopg2 with very basic functionality", author="Scott Clark", author_email="scott@usealloy.io", packages=['psycho'], download_url="http://github.com/usea...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name="psycho", version="1.0", description="An ultra simple wrapper for Python psycopg2 with very basic functionality", author="Scott Clark", author_email="scott@usealloy.io", packages=['psycho'], download_url="http://...
c16ce741af385497a2629fe41341c5a12a649672
helper/url.py
helper/url.py
import re urlExp = re.compile("(\w+)://[^ \t\"'<>]+[^ \t\"'<>,.]") def URLToTag(message): """ searches for an URL in message and sets an <a>-tag arround it, then returns the new string """ lastEnd = 0 while True: match = urlExp.search(message, lastEnd) if not match: break mStart = match.start() mE...
import re urlExp = re.compile("(\w+)://[^ \t\"'<>]+[^ \t\"'<>,.)]") def URLToTag(message): """ searches for an URL in message and sets an <a>-tag arround it, then returns the new string """ lastEnd = 0 while True: match = urlExp.search(message, lastEnd) if not match: break mStart = match.start() m...
Exclude more characters at the end of a link.
Exclude more characters at the end of a link.
Python
bsd-2-clause
sushi-irc/tekka
import re urlExp = re.compile("(\w+)://[^ \t\"'<>]+[^ \t\"'<>,.]") def URLToTag(message): """ searches for an URL in message and sets an <a>-tag arround it, then returns the new string """ lastEnd = 0 while True: match = urlExp.search(message, lastEnd) if not match: break mStart = match.start() mE...
import re urlExp = re.compile("(\w+)://[^ \t\"'<>]+[^ \t\"'<>,.)]") def URLToTag(message): """ searches for an URL in message and sets an <a>-tag arround it, then returns the new string """ lastEnd = 0 while True: match = urlExp.search(message, lastEnd) if not match: break mStart = match.start() m...
<commit_before>import re urlExp = re.compile("(\w+)://[^ \t\"'<>]+[^ \t\"'<>,.]") def URLToTag(message): """ searches for an URL in message and sets an <a>-tag arround it, then returns the new string """ lastEnd = 0 while True: match = urlExp.search(message, lastEnd) if not match: break mStart = mat...
import re urlExp = re.compile("(\w+)://[^ \t\"'<>]+[^ \t\"'<>,.)]") def URLToTag(message): """ searches for an URL in message and sets an <a>-tag arround it, then returns the new string """ lastEnd = 0 while True: match = urlExp.search(message, lastEnd) if not match: break mStart = match.start() m...
import re urlExp = re.compile("(\w+)://[^ \t\"'<>]+[^ \t\"'<>,.]") def URLToTag(message): """ searches for an URL in message and sets an <a>-tag arround it, then returns the new string """ lastEnd = 0 while True: match = urlExp.search(message, lastEnd) if not match: break mStart = match.start() mE...
<commit_before>import re urlExp = re.compile("(\w+)://[^ \t\"'<>]+[^ \t\"'<>,.]") def URLToTag(message): """ searches for an URL in message and sets an <a>-tag arround it, then returns the new string """ lastEnd = 0 while True: match = urlExp.search(message, lastEnd) if not match: break mStart = mat...
08b6c18dd92df542140dc0962cf0ddbbb2acb3df
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='paddingoracle', author='Marcin Wielgoszewski', author_email='marcin.wielgoszewski@gmail.com', version='0.2.1', url='https://github.com/mwielgoszewski/python-paddingoracle', py_modules=['...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='paddingoracle', author='Marcin Wielgoszewski', author_email='marcin.wielgoszewski@gmail.com', version='0.2.2', url='https://github.com/mwielgoszewski/python-paddingoracle', py_modules=['...
Bump minor release number, thanks to @lanjelot's fixes
Bump minor release number, thanks to @lanjelot's fixes
Python
bsd-2-clause
mwielgoszewski/python-paddingoracle
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='paddingoracle', author='Marcin Wielgoszewski', author_email='marcin.wielgoszewski@gmail.com', version='0.2.1', url='https://github.com/mwielgoszewski/python-paddingoracle', py_modules=['...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='paddingoracle', author='Marcin Wielgoszewski', author_email='marcin.wielgoszewski@gmail.com', version='0.2.2', url='https://github.com/mwielgoszewski/python-paddingoracle', py_modules=['...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='paddingoracle', author='Marcin Wielgoszewski', author_email='marcin.wielgoszewski@gmail.com', version='0.2.1', url='https://github.com/mwielgoszewski/python-paddingoracle', ...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='paddingoracle', author='Marcin Wielgoszewski', author_email='marcin.wielgoszewski@gmail.com', version='0.2.2', url='https://github.com/mwielgoszewski/python-paddingoracle', py_modules=['...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='paddingoracle', author='Marcin Wielgoszewski', author_email='marcin.wielgoszewski@gmail.com', version='0.2.1', url='https://github.com/mwielgoszewski/python-paddingoracle', py_modules=['...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='paddingoracle', author='Marcin Wielgoszewski', author_email='marcin.wielgoszewski@gmail.com', version='0.2.1', url='https://github.com/mwielgoszewski/python-paddingoracle', ...
bf7a6eb0e63eb323bed223af4adca793ea5e0f92
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 import io try: from setuptools import setup except ImportError: from distutils.core import setup description = "Manage and load dataprotocols.org Data Pac...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import io try: from setuptools import setup except ImportError: from distutils.core import setup description = "Manage and load dataprotocols.org Data Pac...
Update project url after github maintainer renaming
Update project url after github maintainer renaming
Python
mit
okfn/datapackage-py,datapackages/datapackage-py,okfn/datapackage-model-py,sirex/datapackage-py,okfn/datapackage-model-py,datapackages/datapackage-py,sirex/datapackage-py,okfn/datapackage-py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import io try: from setuptools import setup except ImportError: from distutils.core import setup description = "Manage and load dataprotocols.org Data Pac...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import io try: from setuptools import setup except ImportError: from distutils.core import setup description = "Manage and load dataprotocols.org Data Pac...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import io try: from setuptools import setup except ImportError: from distutils.core import setup description = "Manage and load dataprotoco...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import io try: from setuptools import setup except ImportError: from distutils.core import setup description = "Manage and load dataprotocols.org Data Pac...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import io try: from setuptools import setup except ImportError: from distutils.core import setup description = "Manage and load dataprotocols.org Data Pac...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import io try: from setuptools import setup except ImportError: from distutils.core import setup description = "Manage and load dataprotoco...
e29f250286411c0e1c6f084f9e3f1ab4cbdfa6ec
setup.py
setup.py
#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutils.errors import...
#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutils.errors import...
Make sure the code is rebuilt if quaternion.h changes
Make sure the code is rebuilt if quaternion.h changes
Python
mit
moble/quaternion,moble/quaternion
#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutils.errors import...
#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutils.errors import...
<commit_before>#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutil...
#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutils.errors import...
#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutils.errors import...
<commit_before>#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutil...
730c1050c66940ac935db098fdcaa55ac5be7026
setup.py
setup.py
#!/usr/bin/env python import glob import os import subprocess import platform from setuptools import setup, find_packages def make_docs(): if not os.path.exists('docs'): os.mkdir('docs') subprocess.call(['pydoc', '-w', 'riak']) for name in glob.glob('*.html'): os.rename(name, 'docs/%s' % na...
#!/usr/bin/env python import glob import os import subprocess import platform from setuptools import setup, find_packages def make_docs(): if not os.path.exists('docs'): os.mkdir('docs') subprocess.call(['pydoc', '-w', 'riak']) for name in glob.glob('*.html'): os.rename(name, 'docs/%s' % na...
Make sure protobuf comes from pypi
Make sure protobuf comes from pypi Without this, it gets the outdated zip package from googlecode and fail.
Python
apache-2.0
bmess/riak-python-client,basho/riak-python-client,bmess/riak-python-client,basho/riak-python-client,basho/riak-python-client,GabrielNicolasAvellaneda/riak-python-client,GabrielNicolasAvellaneda/riak-python-client
#!/usr/bin/env python import glob import os import subprocess import platform from setuptools import setup, find_packages def make_docs(): if not os.path.exists('docs'): os.mkdir('docs') subprocess.call(['pydoc', '-w', 'riak']) for name in glob.glob('*.html'): os.rename(name, 'docs/%s' % na...
#!/usr/bin/env python import glob import os import subprocess import platform from setuptools import setup, find_packages def make_docs(): if not os.path.exists('docs'): os.mkdir('docs') subprocess.call(['pydoc', '-w', 'riak']) for name in glob.glob('*.html'): os.rename(name, 'docs/%s' % na...
<commit_before>#!/usr/bin/env python import glob import os import subprocess import platform from setuptools import setup, find_packages def make_docs(): if not os.path.exists('docs'): os.mkdir('docs') subprocess.call(['pydoc', '-w', 'riak']) for name in glob.glob('*.html'): os.rename(name,...
#!/usr/bin/env python import glob import os import subprocess import platform from setuptools import setup, find_packages def make_docs(): if not os.path.exists('docs'): os.mkdir('docs') subprocess.call(['pydoc', '-w', 'riak']) for name in glob.glob('*.html'): os.rename(name, 'docs/%s' % na...
#!/usr/bin/env python import glob import os import subprocess import platform from setuptools import setup, find_packages def make_docs(): if not os.path.exists('docs'): os.mkdir('docs') subprocess.call(['pydoc', '-w', 'riak']) for name in glob.glob('*.html'): os.rename(name, 'docs/%s' % na...
<commit_before>#!/usr/bin/env python import glob import os import subprocess import platform from setuptools import setup, find_packages def make_docs(): if not os.path.exists('docs'): os.mkdir('docs') subprocess.call(['pydoc', '-w', 'riak']) for name in glob.glob('*.html'): os.rename(name,...
60b9273042d1448c07345c4032f52c224803af9d
setup.py
setup.py
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
Tweak output file name of source distribution.
Tweak output file name of source distribution.
Python
mit
sfu-rcg/python-ad,sfu-rcg/python-ad,geertj/python-ad,geertj/python-ad,theatlantic/python-active-directory,theatlantic/python-active-directory
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
<commit_before># # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for...
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
<commit_before># # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for...
bd823c76c5ada266060c93e45e470e35b0069806
setup.py
setup.py
from codecs import open as codecs_open from setuptools import setup, find_packages with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='gypsy', version='0.0.1', description=u"Controlling Gypsy modules, and outputs", long_description=long_description, ...
from codecs import open as codecs_open from setuptools import setup, find_packages with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='gypsy', version='0.0.1', description=u"Controlling Gypsy modules, and outputs", long_description=long_description, ...
Add pytest-cov and fix change requirements to >=
Add pytest-cov and fix change requirements to >=
Python
mit
tesera/pygypsy,tesera/pygypsy
from codecs import open as codecs_open from setuptools import setup, find_packages with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='gypsy', version='0.0.1', description=u"Controlling Gypsy modules, and outputs", long_description=long_description, ...
from codecs import open as codecs_open from setuptools import setup, find_packages with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='gypsy', version='0.0.1', description=u"Controlling Gypsy modules, and outputs", long_description=long_description, ...
<commit_before>from codecs import open as codecs_open from setuptools import setup, find_packages with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='gypsy', version='0.0.1', description=u"Controlling Gypsy modules, and outputs", long_description=long_...
from codecs import open as codecs_open from setuptools import setup, find_packages with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='gypsy', version='0.0.1', description=u"Controlling Gypsy modules, and outputs", long_description=long_description, ...
from codecs import open as codecs_open from setuptools import setup, find_packages with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='gypsy', version='0.0.1', description=u"Controlling Gypsy modules, and outputs", long_description=long_description, ...
<commit_before>from codecs import open as codecs_open from setuptools import setup, find_packages with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='gypsy', version='0.0.1', description=u"Controlling Gypsy modules, and outputs", long_description=long_...
a372416f846ab3b20b97c87f43bf1827a9b60136
setup.py
setup.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup try: from unittest import mock # noqa except: kwargs = { 'tests_require': 'mock', 'extras_require': { 'mock': 'mock' } } else: kwargs = {} with open('README.rst') as f: readme = f.re...
#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup try: from unittest import mock # noqa except ImportError: tests_require = ['mock'] else: tests_require = [] with open('README.rst') as f: readme = f.read() setup( name='syringe', version='0.3.0', author='Remc...
Implement PEP 246 compliant environment markers
Implement PEP 246 compliant environment markers
Python
mit
remcohaszing/python-syringe
#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup try: from unittest import mock # noqa except: kwargs = { 'tests_require': 'mock', 'extras_require': { 'mock': 'mock' } } else: kwargs = {} with open('README.rst') as f: readme = f.re...
#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup try: from unittest import mock # noqa except ImportError: tests_require = ['mock'] else: tests_require = [] with open('README.rst') as f: readme = f.read() setup( name='syringe', version='0.3.0', author='Remc...
<commit_before>#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup try: from unittest import mock # noqa except: kwargs = { 'tests_require': 'mock', 'extras_require': { 'mock': 'mock' } } else: kwargs = {} with open('README.rst') as f: ...
#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup try: from unittest import mock # noqa except ImportError: tests_require = ['mock'] else: tests_require = [] with open('README.rst') as f: readme = f.read() setup( name='syringe', version='0.3.0', author='Remc...
#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup try: from unittest import mock # noqa except: kwargs = { 'tests_require': 'mock', 'extras_require': { 'mock': 'mock' } } else: kwargs = {} with open('README.rst') as f: readme = f.re...
<commit_before>#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup try: from unittest import mock # noqa except: kwargs = { 'tests_require': 'mock', 'extras_require': { 'mock': 'mock' } } else: kwargs = {} with open('README.rst') as f: ...
b912181a35ed7c79fec34cd246aa527e5709e595
setup.py
setup.py
from setuptools import setup, find_packages requires = [ 'python-dateutil', 'pytz', 'requests', 'simplejson' ] setup( name='amaascore', version='0.1.7', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github.com/amaas-fintech/amaas...
from setuptools import setup, find_packages requires = [ 'configparser', 'python-dateutil', 'pytz', 'requests', 'simplejson' ] setup( name='amaascore', version='0.1.7', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github.com...
Add configparser to the install_requires list.
Add configparser to the install_requires list.
Python
apache-2.0
nedlowe/amaas-core-sdk-python,paul-rs/amaas-core-sdk-python,amaas-fintech/amaas-core-sdk-python,nedlowe/amaas-core-sdk-python,amaas-fintech/amaas-core-sdk-python,paul-rs/amaas-core-sdk-python
from setuptools import setup, find_packages requires = [ 'python-dateutil', 'pytz', 'requests', 'simplejson' ] setup( name='amaascore', version='0.1.7', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github.com/amaas-fintech/amaas...
from setuptools import setup, find_packages requires = [ 'configparser', 'python-dateutil', 'pytz', 'requests', 'simplejson' ] setup( name='amaascore', version='0.1.7', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github.com...
<commit_before>from setuptools import setup, find_packages requires = [ 'python-dateutil', 'pytz', 'requests', 'simplejson' ] setup( name='amaascore', version='0.1.7', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github.com/amaa...
from setuptools import setup, find_packages requires = [ 'configparser', 'python-dateutil', 'pytz', 'requests', 'simplejson' ] setup( name='amaascore', version='0.1.7', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github.com...
from setuptools import setup, find_packages requires = [ 'python-dateutil', 'pytz', 'requests', 'simplejson' ] setup( name='amaascore', version='0.1.7', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github.com/amaas-fintech/amaas...
<commit_before>from setuptools import setup, find_packages requires = [ 'python-dateutil', 'pytz', 'requests', 'simplejson' ] setup( name='amaascore', version='0.1.7', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github.com/amaa...
8c584840faacbd1409bda4b1be5525c297a72590
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='fortiosapi', version='0.10.5', description=('Python modules to use Fortigate APIs' 'full configuration, monitoring, lifecycle rest and ssh'), long_...
#!/usr/bin/env python from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='fortiosapi', version='0.10.6', description=('Python modules to use Fortigate APIs' 'full configuration, monitoring, lifecycle rest and ssh'), long_...
Fix having special characters in login/password field.
Fix having special characters in login/password field. Signed-off-by: thomnico <5d7b651831a7f5cf7c72a23146042589c88b16b7@googlemail.com>
Python
apache-2.0
thomnico/fortigateconf
#!/usr/bin/env python from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='fortiosapi', version='0.10.5', description=('Python modules to use Fortigate APIs' 'full configuration, monitoring, lifecycle rest and ssh'), long_...
#!/usr/bin/env python from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='fortiosapi', version='0.10.6', description=('Python modules to use Fortigate APIs' 'full configuration, monitoring, lifecycle rest and ssh'), long_...
<commit_before>#!/usr/bin/env python from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='fortiosapi', version='0.10.5', description=('Python modules to use Fortigate APIs' 'full configuration, monitoring, lifecycle rest and s...
#!/usr/bin/env python from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='fortiosapi', version='0.10.6', description=('Python modules to use Fortigate APIs' 'full configuration, monitoring, lifecycle rest and ssh'), long_...
#!/usr/bin/env python from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='fortiosapi', version='0.10.5', description=('Python modules to use Fortigate APIs' 'full configuration, monitoring, lifecycle rest and ssh'), long_...
<commit_before>#!/usr/bin/env python from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='fortiosapi', version='0.10.5', description=('Python modules to use Fortigate APIs' 'full configuration, monitoring, lifecycle rest and s...
aa7c1fce28cbfcc8face1abeeeaa1ee6d8421640
setup.py
setup.py
# -*- coding: utf-8 -*- """ pytest-pylint ============= Plugin for py.test for doing pylint tests """ from setuptools import setup setup( name='pytest-pylint', description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license='MIT', version='0.16.0'...
# -*- coding: utf-8 -*- """ pytest-pylint ============= Plugin for py.test for doing pylint tests """ from setuptools import setup setup( name='pytest-pylint', description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license='MIT', version='0.16.0'...
Fix install versions of pytest and pylint
Fix install versions of pytest and pylint
Python
mit
carsongee/pytest-pylint
# -*- coding: utf-8 -*- """ pytest-pylint ============= Plugin for py.test for doing pylint tests """ from setuptools import setup setup( name='pytest-pylint', description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license='MIT', version='0.16.0'...
# -*- coding: utf-8 -*- """ pytest-pylint ============= Plugin for py.test for doing pylint tests """ from setuptools import setup setup( name='pytest-pylint', description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license='MIT', version='0.16.0'...
<commit_before># -*- coding: utf-8 -*- """ pytest-pylint ============= Plugin for py.test for doing pylint tests """ from setuptools import setup setup( name='pytest-pylint', description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license='MIT', v...
# -*- coding: utf-8 -*- """ pytest-pylint ============= Plugin for py.test for doing pylint tests """ from setuptools import setup setup( name='pytest-pylint', description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license='MIT', version='0.16.0'...
# -*- coding: utf-8 -*- """ pytest-pylint ============= Plugin for py.test for doing pylint tests """ from setuptools import setup setup( name='pytest-pylint', description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license='MIT', version='0.16.0'...
<commit_before># -*- coding: utf-8 -*- """ pytest-pylint ============= Plugin for py.test for doing pylint tests """ from setuptools import setup setup( name='pytest-pylint', description='pytest plugin to check source code with pylint', long_description=open("README.rst").read(), license='MIT', v...
ed09ed41e2b9486f55f801eee47f08e2a9679b6c
tests/sequence/test_alignment.py
tests/sequence/test_alignment.py
import unittest from unittest import mock from io import StringIO from cref.sequence.alignment import Blast class AlignmentTestCase(unittest.TestCase): def test_blast_local(self): blast = Blast('data/blastdb/pdbseqres') results = blast.align('AASSF') pdbs = {result.pdb_code for result in ...
import unittest from unittest import mock from io import StringIO from cref.sequence.alignment import Blast class AlignmentTestCase(unittest.TestCase): def test_blast_local(self): blast = Blast('data/blastdb/pdbseqres') results = blast.align('AASSF') pdbs = {result.pdb_code for result in ...
Fix broken test after blast web removal
Fix broken test after blast web removal
Python
mit
mchelem/cref2,mchelem/cref2,mchelem/cref2
import unittest from unittest import mock from io import StringIO from cref.sequence.alignment import Blast class AlignmentTestCase(unittest.TestCase): def test_blast_local(self): blast = Blast('data/blastdb/pdbseqres') results = blast.align('AASSF') pdbs = {result.pdb_code for result in ...
import unittest from unittest import mock from io import StringIO from cref.sequence.alignment import Blast class AlignmentTestCase(unittest.TestCase): def test_blast_local(self): blast = Blast('data/blastdb/pdbseqres') results = blast.align('AASSF') pdbs = {result.pdb_code for result in ...
<commit_before>import unittest from unittest import mock from io import StringIO from cref.sequence.alignment import Blast class AlignmentTestCase(unittest.TestCase): def test_blast_local(self): blast = Blast('data/blastdb/pdbseqres') results = blast.align('AASSF') pdbs = {result.pdb_code...
import unittest from unittest import mock from io import StringIO from cref.sequence.alignment import Blast class AlignmentTestCase(unittest.TestCase): def test_blast_local(self): blast = Blast('data/blastdb/pdbseqres') results = blast.align('AASSF') pdbs = {result.pdb_code for result in ...
import unittest from unittest import mock from io import StringIO from cref.sequence.alignment import Blast class AlignmentTestCase(unittest.TestCase): def test_blast_local(self): blast = Blast('data/blastdb/pdbseqres') results = blast.align('AASSF') pdbs = {result.pdb_code for result in ...
<commit_before>import unittest from unittest import mock from io import StringIO from cref.sequence.alignment import Blast class AlignmentTestCase(unittest.TestCase): def test_blast_local(self): blast = Blast('data/blastdb/pdbseqres') results = blast.align('AASSF') pdbs = {result.pdb_code...
a6ac5c901a1b677992599d6aac231e01c5e7a39d
tests/test_thread_concurrency.py
tests/test_thread_concurrency.py
''' @author: Rahul Tanwani @summary: Test cases to make sure sequential execution and concurrent execution return the same response. ''' import json from tests.test_base import TestBase from batch_requests.settings import br_settings from batch_requests.concurrent.executor import ThreadBasedExecutor class ...
''' @author: Rahul Tanwani @summary: Test cases to make sure sequential execution and concurrent execution return the same response. ''' from tests.test_concurrency_base import TestBaseConcurrency from batch_requests.concurrent.executor import ThreadBasedExecutor class TestThreadConcurrency(TestBaseConcurr...
Refactor thread based concurrency tests
Refactor thread based concurrency tests
Python
mit
tanwanirahul/django-batch-requests
''' @author: Rahul Tanwani @summary: Test cases to make sure sequential execution and concurrent execution return the same response. ''' import json from tests.test_base import TestBase from batch_requests.settings import br_settings from batch_requests.concurrent.executor import ThreadBasedExecutor class ...
''' @author: Rahul Tanwani @summary: Test cases to make sure sequential execution and concurrent execution return the same response. ''' from tests.test_concurrency_base import TestBaseConcurrency from batch_requests.concurrent.executor import ThreadBasedExecutor class TestThreadConcurrency(TestBaseConcurr...
<commit_before>''' @author: Rahul Tanwani @summary: Test cases to make sure sequential execution and concurrent execution return the same response. ''' import json from tests.test_base import TestBase from batch_requests.settings import br_settings from batch_requests.concurrent.executor import ThreadBasedEx...
''' @author: Rahul Tanwani @summary: Test cases to make sure sequential execution and concurrent execution return the same response. ''' from tests.test_concurrency_base import TestBaseConcurrency from batch_requests.concurrent.executor import ThreadBasedExecutor class TestThreadConcurrency(TestBaseConcurr...
''' @author: Rahul Tanwani @summary: Test cases to make sure sequential execution and concurrent execution return the same response. ''' import json from tests.test_base import TestBase from batch_requests.settings import br_settings from batch_requests.concurrent.executor import ThreadBasedExecutor class ...
<commit_before>''' @author: Rahul Tanwani @summary: Test cases to make sure sequential execution and concurrent execution return the same response. ''' import json from tests.test_base import TestBase from batch_requests.settings import br_settings from batch_requests.concurrent.executor import ThreadBasedEx...
966f761a5dd971ecbdd15771091fdedb6299c3f4
setup.py
setup.py
import sys from setuptools import setup, find_packages # defines __version__ exec(open("h11/_version.py").read()) setup( name="h11", version=__version__, description= "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1", long_description=open("README.rst").read(), author="Nathani...
import sys from setuptools import setup, find_packages # defines __version__ exec(open("h11/_version.py").read()) setup( name="h11", version=__version__, description= "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1", long_description=open("README.rst").read(), author="Nathani...
Support for Python 2.7 and PyPy in the classifiers!
Support for Python 2.7 and PyPy in the classifiers! ✨
Python
mit
njsmith/h11,python-hyper/h11
import sys from setuptools import setup, find_packages # defines __version__ exec(open("h11/_version.py").read()) setup( name="h11", version=__version__, description= "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1", long_description=open("README.rst").read(), author="Nathani...
import sys from setuptools import setup, find_packages # defines __version__ exec(open("h11/_version.py").read()) setup( name="h11", version=__version__, description= "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1", long_description=open("README.rst").read(), author="Nathani...
<commit_before>import sys from setuptools import setup, find_packages # defines __version__ exec(open("h11/_version.py").read()) setup( name="h11", version=__version__, description= "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1", long_description=open("README.rst").read(), ...
import sys from setuptools import setup, find_packages # defines __version__ exec(open("h11/_version.py").read()) setup( name="h11", version=__version__, description= "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1", long_description=open("README.rst").read(), author="Nathani...
import sys from setuptools import setup, find_packages # defines __version__ exec(open("h11/_version.py").read()) setup( name="h11", version=__version__, description= "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1", long_description=open("README.rst").read(), author="Nathani...
<commit_before>import sys from setuptools import setup, find_packages # defines __version__ exec(open("h11/_version.py").read()) setup( name="h11", version=__version__, description= "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1", long_description=open("README.rst").read(), ...
c4b4d1f81b5536e87db0698c9f0418b56121ae7d
setup.py
setup.py
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='aws-wsgi', version='0.2.3', description='WSGI adapter for AWS...
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='aws-wsgi', version='0.2.4', description='WSGI adapter for AWS...
Increment version to trigger release of previous changes
Increment version to trigger release of previous changes
Python
mit
slank/awsgi
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='aws-wsgi', version='0.2.3', description='WSGI adapter for AWS...
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='aws-wsgi', version='0.2.4', description='WSGI adapter for AWS...
<commit_before>from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='aws-wsgi', version='0.2.3', description='WSGI ...
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='aws-wsgi', version='0.2.4', description='WSGI adapter for AWS...
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='aws-wsgi', version='0.2.3', description='WSGI adapter for AWS...
<commit_before>from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='aws-wsgi', version='0.2.3', description='WSGI ...
1096bc339caf0ba329332633d8b9170fb8940f6f
start.py
start.py
import cursingspock from spockbot import Client from spockbot.plugins import default_plugins as plugins from bat import bat, command plugins.extend([ ('bat', bat.BatPlugin), ('commands', command.CommandPlugin), ('curses', cursingspock.CursesPlugin), ]) # login_credentials should contain a dict with 'usern...
import cursingspock from spockbot import Client from spockbot.plugins import default_plugins from bat import bat, command plugins = default_plugins.copy() plugins.extend([ ('bat', bat.BatPlugin), ('commands', command.CommandPlugin), ('curses', cursingspock.CursesPlugin), ]) # login_credentials should cont...
Copy default plugins and extend
Copy default plugins and extend
Python
mit
Gjum/Bat
import cursingspock from spockbot import Client from spockbot.plugins import default_plugins as plugins from bat import bat, command plugins.extend([ ('bat', bat.BatPlugin), ('commands', command.CommandPlugin), ('curses', cursingspock.CursesPlugin), ]) # login_credentials should contain a dict with 'usern...
import cursingspock from spockbot import Client from spockbot.plugins import default_plugins from bat import bat, command plugins = default_plugins.copy() plugins.extend([ ('bat', bat.BatPlugin), ('commands', command.CommandPlugin), ('curses', cursingspock.CursesPlugin), ]) # login_credentials should cont...
<commit_before>import cursingspock from spockbot import Client from spockbot.plugins import default_plugins as plugins from bat import bat, command plugins.extend([ ('bat', bat.BatPlugin), ('commands', command.CommandPlugin), ('curses', cursingspock.CursesPlugin), ]) # login_credentials should contain a d...
import cursingspock from spockbot import Client from spockbot.plugins import default_plugins from bat import bat, command plugins = default_plugins.copy() plugins.extend([ ('bat', bat.BatPlugin), ('commands', command.CommandPlugin), ('curses', cursingspock.CursesPlugin), ]) # login_credentials should cont...
import cursingspock from spockbot import Client from spockbot.plugins import default_plugins as plugins from bat import bat, command plugins.extend([ ('bat', bat.BatPlugin), ('commands', command.CommandPlugin), ('curses', cursingspock.CursesPlugin), ]) # login_credentials should contain a dict with 'usern...
<commit_before>import cursingspock from spockbot import Client from spockbot.plugins import default_plugins as plugins from bat import bat, command plugins.extend([ ('bat', bat.BatPlugin), ('commands', command.CommandPlugin), ('curses', cursingspock.CursesPlugin), ]) # login_credentials should contain a d...
d1e3bfe83fb2a06ed6ff71c3b7c4242296f90f76
blog/views.py
blog/views.py
from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_list_or_404 from django.db.models import Q from .models import Entry @login_required def overview(request, category="Allgemein"): entries = Entry.objects.all().order_by('-created') ...
from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_list_or_404 from django.db.models import Q from .models import Entry @login_required def overview(request, category="Allgemein"): entries = Entry.objects.all().order_by('-created')[:5...
Reduce number of entries shown on index
Reduce number of entries shown on index
Python
mit
n2o/labbook,n2o/labbook,n2o/labbook
from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_list_or_404 from django.db.models import Q from .models import Entry @login_required def overview(request, category="Allgemein"): entries = Entry.objects.all().order_by('-created') ...
from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_list_or_404 from django.db.models import Q from .models import Entry @login_required def overview(request, category="Allgemein"): entries = Entry.objects.all().order_by('-created')[:5...
<commit_before>from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_list_or_404 from django.db.models import Q from .models import Entry @login_required def overview(request, category="Allgemein"): entries = Entry.objects.all().order_by...
from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_list_or_404 from django.db.models import Q from .models import Entry @login_required def overview(request, category="Allgemein"): entries = Entry.objects.all().order_by('-created')[:5...
from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_list_or_404 from django.db.models import Q from .models import Entry @login_required def overview(request, category="Allgemein"): entries = Entry.objects.all().order_by('-created') ...
<commit_before>from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_list_or_404 from django.db.models import Q from .models import Entry @login_required def overview(request, category="Allgemein"): entries = Entry.objects.all().order_by...
0f1d10f452066fb304f24006ac641860f4f6b7d9
bluebottle/utils/migrations/0007_auto_20210825_1018.py
bluebottle/utils/migrations/0007_auto_20210825_1018.py
# Generated by Django 2.2.20 on 2021-08-25 08:18 from django.db import migrations from bluebottle.clients import properties def set_default(apps, schema_editor): try: Language = apps.get_model('utils', 'Language') language = Language.objects.get(code=properties.LANGUAGE_CODE) except Language...
# Generated by Django 2.2.20 on 2021-08-25 08:18 from django.db import migrations from bluebottle.clients import properties def set_default(apps, schema_editor): try: Language = apps.get_model('utils', 'Language') language = Language.objects.get(code=properties.LANGUAGE_CODE) except Language...
Fix migration if no language exists
Fix migration if no language exists
Python
bsd-3-clause
onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle
# Generated by Django 2.2.20 on 2021-08-25 08:18 from django.db import migrations from bluebottle.clients import properties def set_default(apps, schema_editor): try: Language = apps.get_model('utils', 'Language') language = Language.objects.get(code=properties.LANGUAGE_CODE) except Language...
# Generated by Django 2.2.20 on 2021-08-25 08:18 from django.db import migrations from bluebottle.clients import properties def set_default(apps, schema_editor): try: Language = apps.get_model('utils', 'Language') language = Language.objects.get(code=properties.LANGUAGE_CODE) except Language...
<commit_before># Generated by Django 2.2.20 on 2021-08-25 08:18 from django.db import migrations from bluebottle.clients import properties def set_default(apps, schema_editor): try: Language = apps.get_model('utils', 'Language') language = Language.objects.get(code=properties.LANGUAGE_CODE) ...
# Generated by Django 2.2.20 on 2021-08-25 08:18 from django.db import migrations from bluebottle.clients import properties def set_default(apps, schema_editor): try: Language = apps.get_model('utils', 'Language') language = Language.objects.get(code=properties.LANGUAGE_CODE) except Language...
# Generated by Django 2.2.20 on 2021-08-25 08:18 from django.db import migrations from bluebottle.clients import properties def set_default(apps, schema_editor): try: Language = apps.get_model('utils', 'Language') language = Language.objects.get(code=properties.LANGUAGE_CODE) except Language...
<commit_before># Generated by Django 2.2.20 on 2021-08-25 08:18 from django.db import migrations from bluebottle.clients import properties def set_default(apps, schema_editor): try: Language = apps.get_model('utils', 'Language') language = Language.objects.get(code=properties.LANGUAGE_CODE) ...
d82b908721a9eaedee119f8cceab7eec1bec5f84
src/chime_dash/__init__.py
src/chime_dash/__init__.py
""" chime_dash/app dash instance defined here """ from dash import Dash from typing import TypeVar from chime_dash.app.config import from_object from penn_chime.settings import get_defaults from chime_dash.app.components import Body from chime_dash.app.utils.callbacks import wrap_callbacks DashAppInstance = TypeVar(...
""" chime_dash/app dash instance defined here """ from dash import Dash from typing import TypeVar from chime_dash.app.config import from_object from penn_chime.settings import get_defaults from chime_dash.app.pages.root import Root from chime_dash.app.utils.callbacks import wrap_callbacks DashAppInstance = TypeVar(...
Fix to use Root Page vs Body Component
Fix to use Root Page vs Body Component
Python
mit
CodeForPhilly/chime,CodeForPhilly/chime,CodeForPhilly/chime
""" chime_dash/app dash instance defined here """ from dash import Dash from typing import TypeVar from chime_dash.app.config import from_object from penn_chime.settings import get_defaults from chime_dash.app.components import Body from chime_dash.app.utils.callbacks import wrap_callbacks DashAppInstance = TypeVar(...
""" chime_dash/app dash instance defined here """ from dash import Dash from typing import TypeVar from chime_dash.app.config import from_object from penn_chime.settings import get_defaults from chime_dash.app.pages.root import Root from chime_dash.app.utils.callbacks import wrap_callbacks DashAppInstance = TypeVar(...
<commit_before>""" chime_dash/app dash instance defined here """ from dash import Dash from typing import TypeVar from chime_dash.app.config import from_object from penn_chime.settings import get_defaults from chime_dash.app.components import Body from chime_dash.app.utils.callbacks import wrap_callbacks DashAppInst...
""" chime_dash/app dash instance defined here """ from dash import Dash from typing import TypeVar from chime_dash.app.config import from_object from penn_chime.settings import get_defaults from chime_dash.app.pages.root import Root from chime_dash.app.utils.callbacks import wrap_callbacks DashAppInstance = TypeVar(...
""" chime_dash/app dash instance defined here """ from dash import Dash from typing import TypeVar from chime_dash.app.config import from_object from penn_chime.settings import get_defaults from chime_dash.app.components import Body from chime_dash.app.utils.callbacks import wrap_callbacks DashAppInstance = TypeVar(...
<commit_before>""" chime_dash/app dash instance defined here """ from dash import Dash from typing import TypeVar from chime_dash.app.config import from_object from penn_chime.settings import get_defaults from chime_dash.app.components import Body from chime_dash.app.utils.callbacks import wrap_callbacks DashAppInst...
1bc1c62b5d2bd5edd6c375c91540a6597b3c47cc
lc226_invert_binary_tree.py
lc226_invert_binary_tree.py
"""Leetcode 226. Invert Binary Tree Easy URL: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 """ # Definition for a binary tree node. class TreeNode(object): def ...
"""Leetcode 226. Invert Binary Tree Easy URL: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 """ # Definition for a binary tree node. class TreeNode(object): def ...
Complete recur w/ time/space complexity
Complete recur w/ time/space complexity
Python
bsd-2-clause
bowen0701/algorithms_data_structures
"""Leetcode 226. Invert Binary Tree Easy URL: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 """ # Definition for a binary tree node. class TreeNode(object): def ...
"""Leetcode 226. Invert Binary Tree Easy URL: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 """ # Definition for a binary tree node. class TreeNode(object): def ...
<commit_before>"""Leetcode 226. Invert Binary Tree Easy URL: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 """ # Definition for a binary tree node. class TreeNode(ob...
"""Leetcode 226. Invert Binary Tree Easy URL: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 """ # Definition for a binary tree node. class TreeNode(object): def ...
"""Leetcode 226. Invert Binary Tree Easy URL: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 """ # Definition for a binary tree node. class TreeNode(object): def ...
<commit_before>"""Leetcode 226. Invert Binary Tree Easy URL: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 """ # Definition for a binary tree node. class TreeNode(ob...
15479b3baea8d0f5cb58bf7d22321646ac4513bc
spacy/lang/nl/lex_attrs.py
spacy/lang/nl/lex_attrs.py
# coding: utf8 from __future__ import unicode_literals from ...attrs import LIKE_NUM _num_words = set(""" nul een één twee drie vier vijf zes zeven acht negen tien elf twaalf dertien veertien twintig dertig veertig vijftig zestig zeventig tachtig negentig honderd duizend miljoen miljard biljoen biljard triljoen tril...
# coding: utf8 from __future__ import unicode_literals from ...attrs import LIKE_NUM _num_words = set(""" nul een één twee drie vier vijf zes zeven acht negen tien elf twaalf dertien veertien twintig dertig veertig vijftig zestig zeventig tachtig negentig honderd duizend miljoen miljard biljoen biljard triljoen tril...
Add comment to like_num re: future work
Add comment to like_num re: future work
Python
mit
spacy-io/spaCy,spacy-io/spaCy,aikramer2/spaCy,recognai/spaCy,aikramer2/spaCy,aikramer2/spaCy,explosion/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy,honnibal/spaCy,aikramer2/spaCy,recognai/spaCy,honnibal/spaCy,recognai/spaCy,spacy-io/spaCy,explosion/spaCy,explosion/spaCy,spacy-io/spaCy,recognai/spaCy,aikramer2/s...
# coding: utf8 from __future__ import unicode_literals from ...attrs import LIKE_NUM _num_words = set(""" nul een één twee drie vier vijf zes zeven acht negen tien elf twaalf dertien veertien twintig dertig veertig vijftig zestig zeventig tachtig negentig honderd duizend miljoen miljard biljoen biljard triljoen tril...
# coding: utf8 from __future__ import unicode_literals from ...attrs import LIKE_NUM _num_words = set(""" nul een één twee drie vier vijf zes zeven acht negen tien elf twaalf dertien veertien twintig dertig veertig vijftig zestig zeventig tachtig negentig honderd duizend miljoen miljard biljoen biljard triljoen tril...
<commit_before># coding: utf8 from __future__ import unicode_literals from ...attrs import LIKE_NUM _num_words = set(""" nul een één twee drie vier vijf zes zeven acht negen tien elf twaalf dertien veertien twintig dertig veertig vijftig zestig zeventig tachtig negentig honderd duizend miljoen miljard biljoen biljar...
# coding: utf8 from __future__ import unicode_literals from ...attrs import LIKE_NUM _num_words = set(""" nul een één twee drie vier vijf zes zeven acht negen tien elf twaalf dertien veertien twintig dertig veertig vijftig zestig zeventig tachtig negentig honderd duizend miljoen miljard biljoen biljard triljoen tril...
# coding: utf8 from __future__ import unicode_literals from ...attrs import LIKE_NUM _num_words = set(""" nul een één twee drie vier vijf zes zeven acht negen tien elf twaalf dertien veertien twintig dertig veertig vijftig zestig zeventig tachtig negentig honderd duizend miljoen miljard biljoen biljard triljoen tril...
<commit_before># coding: utf8 from __future__ import unicode_literals from ...attrs import LIKE_NUM _num_words = set(""" nul een één twee drie vier vijf zes zeven acht negen tien elf twaalf dertien veertien twintig dertig veertig vijftig zestig zeventig tachtig negentig honderd duizend miljoen miljard biljoen biljar...
f23a3bbddaf3ab650b8833bbb23fb9666819567c
project/project_name/settings/staticmedia.py
project/project_name/settings/staticmedia.py
from os.path import join, normpath from .base import SITE_ROOT class LocalStatic(object): """ Static File Configuration """ # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root STATIC_ROOT = normpath(join(SITE_ROOT, 'assets')) # See: https://docs.djangoproject.com/en/dev/r...
from os.path import join, normpath from .base import SITE_ROOT class LocalStatic(object): """ Static File Configuration """ # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root STATIC_ROOT = normpath(join(SITE_ROOT, '.collectedstatic')) # See: https://docs.djangoproject.co...
Call a spade a spade.
Call a spade a spade.
Python
mit
bretth/django-pavlova-project,bretth/django-pavlova-project,bretth/django-pavlova-project
from os.path import join, normpath from .base import SITE_ROOT class LocalStatic(object): """ Static File Configuration """ # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root STATIC_ROOT = normpath(join(SITE_ROOT, 'assets')) # See: https://docs.djangoproject.com/en/dev/r...
from os.path import join, normpath from .base import SITE_ROOT class LocalStatic(object): """ Static File Configuration """ # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root STATIC_ROOT = normpath(join(SITE_ROOT, '.collectedstatic')) # See: https://docs.djangoproject.co...
<commit_before>from os.path import join, normpath from .base import SITE_ROOT class LocalStatic(object): """ Static File Configuration """ # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root STATIC_ROOT = normpath(join(SITE_ROOT, 'assets')) # See: https://docs.djangoproje...
from os.path import join, normpath from .base import SITE_ROOT class LocalStatic(object): """ Static File Configuration """ # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root STATIC_ROOT = normpath(join(SITE_ROOT, '.collectedstatic')) # See: https://docs.djangoproject.co...
from os.path import join, normpath from .base import SITE_ROOT class LocalStatic(object): """ Static File Configuration """ # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root STATIC_ROOT = normpath(join(SITE_ROOT, 'assets')) # See: https://docs.djangoproject.com/en/dev/r...
<commit_before>from os.path import join, normpath from .base import SITE_ROOT class LocalStatic(object): """ Static File Configuration """ # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root STATIC_ROOT = normpath(join(SITE_ROOT, 'assets')) # See: https://docs.djangoproje...
dad7508aa6fc3f0b97975f0985c666fdfc191035
api/__init__.py
api/__init__.py
from flask import Flask DB_CONNECTION = "host='localhost' port=5432 user='postgres' password='secret' dbname='antismash'" SQLALCHEMY_DATABASE_URI = 'postgres://postgres:secret@localhost:5432/antismash' app = Flask(__name__) app.config.from_object(__name__) from .models import db db.init_app(app) from . import api ...
import os from flask import Flask SQLALCHEMY_DATABASE_URI = os.getenv('AS_DB_URI', 'postgres://postgres:secret@localhost:5432/antismash') app = Flask(__name__) app.config.from_object(__name__) from .models import db db.init_app(app) from . import api from . import error_handlers
Allow overriding database URI from command line
api: Allow overriding database URI from command line Signed-off-by: Kai Blin <ad3597797f6179d503c382b2627cc19939309418@biosustain.dtu.dk>
Python
agpl-3.0
antismash/db-api,antismash/db-api
from flask import Flask DB_CONNECTION = "host='localhost' port=5432 user='postgres' password='secret' dbname='antismash'" SQLALCHEMY_DATABASE_URI = 'postgres://postgres:secret@localhost:5432/antismash' app = Flask(__name__) app.config.from_object(__name__) from .models import db db.init_app(app) from . import api ...
import os from flask import Flask SQLALCHEMY_DATABASE_URI = os.getenv('AS_DB_URI', 'postgres://postgres:secret@localhost:5432/antismash') app = Flask(__name__) app.config.from_object(__name__) from .models import db db.init_app(app) from . import api from . import error_handlers
<commit_before>from flask import Flask DB_CONNECTION = "host='localhost' port=5432 user='postgres' password='secret' dbname='antismash'" SQLALCHEMY_DATABASE_URI = 'postgres://postgres:secret@localhost:5432/antismash' app = Flask(__name__) app.config.from_object(__name__) from .models import db db.init_app(app) fro...
import os from flask import Flask SQLALCHEMY_DATABASE_URI = os.getenv('AS_DB_URI', 'postgres://postgres:secret@localhost:5432/antismash') app = Flask(__name__) app.config.from_object(__name__) from .models import db db.init_app(app) from . import api from . import error_handlers
from flask import Flask DB_CONNECTION = "host='localhost' port=5432 user='postgres' password='secret' dbname='antismash'" SQLALCHEMY_DATABASE_URI = 'postgres://postgres:secret@localhost:5432/antismash' app = Flask(__name__) app.config.from_object(__name__) from .models import db db.init_app(app) from . import api ...
<commit_before>from flask import Flask DB_CONNECTION = "host='localhost' port=5432 user='postgres' password='secret' dbname='antismash'" SQLALCHEMY_DATABASE_URI = 'postgres://postgres:secret@localhost:5432/antismash' app = Flask(__name__) app.config.from_object(__name__) from .models import db db.init_app(app) fro...
c08d322362fed3575033a438fc42fe9c3ee29145
vesper/external_urls.py
vesper/external_urls.py
""" Functions that return external URLs, for example for the Vesper documentation. """ import vesper.version as vesper_version _USE_LATEST_DOCUMENTATION_VERSION = True """Set this `True` during development, `False` for release.""" def _create_documentation_url(): if _USE_LATEST_DOCUMENTATION_VERSION: ...
""" Functions that return external URLs, for example for the Vesper documentation. """ import vesper.version as vesper_version _USE_LATEST_DOCUMENTATION_VERSION = False """Set this `True` during development, `False` for release.""" def _create_documentation_url(): if _USE_LATEST_DOCUMENTATION_VERSION: ...
Configure documentation version for release.
Configure documentation version for release.
Python
mit
HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper
""" Functions that return external URLs, for example for the Vesper documentation. """ import vesper.version as vesper_version _USE_LATEST_DOCUMENTATION_VERSION = True """Set this `True` during development, `False` for release.""" def _create_documentation_url(): if _USE_LATEST_DOCUMENTATION_VERSION: ...
""" Functions that return external URLs, for example for the Vesper documentation. """ import vesper.version as vesper_version _USE_LATEST_DOCUMENTATION_VERSION = False """Set this `True` during development, `False` for release.""" def _create_documentation_url(): if _USE_LATEST_DOCUMENTATION_VERSION: ...
<commit_before>""" Functions that return external URLs, for example for the Vesper documentation. """ import vesper.version as vesper_version _USE_LATEST_DOCUMENTATION_VERSION = True """Set this `True` during development, `False` for release.""" def _create_documentation_url(): if _USE_LATEST_DOCUMENTATI...
""" Functions that return external URLs, for example for the Vesper documentation. """ import vesper.version as vesper_version _USE_LATEST_DOCUMENTATION_VERSION = False """Set this `True` during development, `False` for release.""" def _create_documentation_url(): if _USE_LATEST_DOCUMENTATION_VERSION: ...
""" Functions that return external URLs, for example for the Vesper documentation. """ import vesper.version as vesper_version _USE_LATEST_DOCUMENTATION_VERSION = True """Set this `True` during development, `False` for release.""" def _create_documentation_url(): if _USE_LATEST_DOCUMENTATION_VERSION: ...
<commit_before>""" Functions that return external URLs, for example for the Vesper documentation. """ import vesper.version as vesper_version _USE_LATEST_DOCUMENTATION_VERSION = True """Set this `True` during development, `False` for release.""" def _create_documentation_url(): if _USE_LATEST_DOCUMENTATI...
a264754c177237e2cfd10a1eb96994a3d4b8fd4a
quizzes.py
quizzes.py
from database import QuizDB db = QuizDB(host=config.REDIS_HOST, port=config.REDIS_PORT) class Quiz(Base): def __init__(self, id): self.id = id QUESTION_HASH = "{0}:question".format(self.id) ANSWER_HASH = "{0}:answer".format(self.id) def new_card(self, question, answer): assert db.hl...
from database import QuizDB import config db = QuizDB(host=config.REDIS_HOST, port=config.REDIS_PORT) class Quiz: QUESTION_HASH = '' ANSWER_HASH = '' def __init__(self, id): self.id = id self.QUESTION_HASH = "{0}:question".format(self.id) self.ANSWER_HASH = "{0}:answer".format(se...
Fix problems w/ class variables and fix bug with max function on an empty set
Fix problems w/ class variables and fix bug with max function on an empty set
Python
bsd-2-clause
estreeper/quizalicious,estreeper/quizalicious,estreeper/quizalicious
from database import QuizDB db = QuizDB(host=config.REDIS_HOST, port=config.REDIS_PORT) class Quiz(Base): def __init__(self, id): self.id = id QUESTION_HASH = "{0}:question".format(self.id) ANSWER_HASH = "{0}:answer".format(self.id) def new_card(self, question, answer): assert db.hl...
from database import QuizDB import config db = QuizDB(host=config.REDIS_HOST, port=config.REDIS_PORT) class Quiz: QUESTION_HASH = '' ANSWER_HASH = '' def __init__(self, id): self.id = id self.QUESTION_HASH = "{0}:question".format(self.id) self.ANSWER_HASH = "{0}:answer".format(se...
<commit_before>from database import QuizDB db = QuizDB(host=config.REDIS_HOST, port=config.REDIS_PORT) class Quiz(Base): def __init__(self, id): self.id = id QUESTION_HASH = "{0}:question".format(self.id) ANSWER_HASH = "{0}:answer".format(self.id) def new_card(self, question, answer): ...
from database import QuizDB import config db = QuizDB(host=config.REDIS_HOST, port=config.REDIS_PORT) class Quiz: QUESTION_HASH = '' ANSWER_HASH = '' def __init__(self, id): self.id = id self.QUESTION_HASH = "{0}:question".format(self.id) self.ANSWER_HASH = "{0}:answer".format(se...
from database import QuizDB db = QuizDB(host=config.REDIS_HOST, port=config.REDIS_PORT) class Quiz(Base): def __init__(self, id): self.id = id QUESTION_HASH = "{0}:question".format(self.id) ANSWER_HASH = "{0}:answer".format(self.id) def new_card(self, question, answer): assert db.hl...
<commit_before>from database import QuizDB db = QuizDB(host=config.REDIS_HOST, port=config.REDIS_PORT) class Quiz(Base): def __init__(self, id): self.id = id QUESTION_HASH = "{0}:question".format(self.id) ANSWER_HASH = "{0}:answer".format(self.id) def new_card(self, question, answer): ...
0f6fc70278ce67dfcb0468d0913e349ec6b0a169
tndata_backend/utils/decorators.py
tndata_backend/utils/decorators.py
from django.conf import settings from django.core.cache import cache from functools import wraps def cached_method(cache_key, timeout=settings.CACHE_TIMEOUT): """Cache a method, using it's first argument to set a cache key. Params: * cache_key is a format string used to set a cache key, e.g. "{}-foo" ...
from django.conf import settings from django.core.cache import cache from functools import wraps def cached_method(cache_key, timeout=settings.CACHE_TIMEOUT): """Cache a method, using the ID attribute of it's first argument to set a cache key. NOTE: If this first argument for the cached method doesn't hav...
Update for cached_method so it doesn't try to do anythin if the first argument doesn't have an ID attribute
Update for cached_method so it doesn't try to do anythin if the first argument doesn't have an ID attribute
Python
mit
izzyalonso/tndata_backend,izzyalonso/tndata_backend,tndatacommons/tndata_backend,tndatacommons/tndata_backend,izzyalonso/tndata_backend,tndatacommons/tndata_backend,tndatacommons/tndata_backend,izzyalonso/tndata_backend
from django.conf import settings from django.core.cache import cache from functools import wraps def cached_method(cache_key, timeout=settings.CACHE_TIMEOUT): """Cache a method, using it's first argument to set a cache key. Params: * cache_key is a format string used to set a cache key, e.g. "{}-foo" ...
from django.conf import settings from django.core.cache import cache from functools import wraps def cached_method(cache_key, timeout=settings.CACHE_TIMEOUT): """Cache a method, using the ID attribute of it's first argument to set a cache key. NOTE: If this first argument for the cached method doesn't hav...
<commit_before>from django.conf import settings from django.core.cache import cache from functools import wraps def cached_method(cache_key, timeout=settings.CACHE_TIMEOUT): """Cache a method, using it's first argument to set a cache key. Params: * cache_key is a format string used to set a cache key, e...
from django.conf import settings from django.core.cache import cache from functools import wraps def cached_method(cache_key, timeout=settings.CACHE_TIMEOUT): """Cache a method, using the ID attribute of it's first argument to set a cache key. NOTE: If this first argument for the cached method doesn't hav...
from django.conf import settings from django.core.cache import cache from functools import wraps def cached_method(cache_key, timeout=settings.CACHE_TIMEOUT): """Cache a method, using it's first argument to set a cache key. Params: * cache_key is a format string used to set a cache key, e.g. "{}-foo" ...
<commit_before>from django.conf import settings from django.core.cache import cache from functools import wraps def cached_method(cache_key, timeout=settings.CACHE_TIMEOUT): """Cache a method, using it's first argument to set a cache key. Params: * cache_key is a format string used to set a cache key, e...
c1e3024527c372c09b77a97befbdf5a3d39a69ac
tests/test_status.py
tests/test_status.py
from ophyd.controls.ophydobj import StatusBase def _setup_st(): st = StatusBase() state = {} def cb(): state['done'] = True return st, state, cb def test_status_post(): st, state, cb = _setup_st() assert 'done' not in state st.finished_cb = cb assert 'done' not in state ...
from ophyd.ophydobj import StatusBase def _setup_st(): st = StatusBase() state = {} def cb(): state['done'] = True return st, state, cb def test_status_post(): st, state, cb = _setup_st() assert 'done' not in state st.finished_cb = cb assert 'done' not in state st._fin...
Remove new instnace of 'controls' from status test.
FIX: Remove new instnace of 'controls' from status test.
Python
bsd-3-clause
dchabot/ophyd,dchabot/ophyd
from ophyd.controls.ophydobj import StatusBase def _setup_st(): st = StatusBase() state = {} def cb(): state['done'] = True return st, state, cb def test_status_post(): st, state, cb = _setup_st() assert 'done' not in state st.finished_cb = cb assert 'done' not in state ...
from ophyd.ophydobj import StatusBase def _setup_st(): st = StatusBase() state = {} def cb(): state['done'] = True return st, state, cb def test_status_post(): st, state, cb = _setup_st() assert 'done' not in state st.finished_cb = cb assert 'done' not in state st._fin...
<commit_before>from ophyd.controls.ophydobj import StatusBase def _setup_st(): st = StatusBase() state = {} def cb(): state['done'] = True return st, state, cb def test_status_post(): st, state, cb = _setup_st() assert 'done' not in state st.finished_cb = cb assert 'done' ...
from ophyd.ophydobj import StatusBase def _setup_st(): st = StatusBase() state = {} def cb(): state['done'] = True return st, state, cb def test_status_post(): st, state, cb = _setup_st() assert 'done' not in state st.finished_cb = cb assert 'done' not in state st._fin...
from ophyd.controls.ophydobj import StatusBase def _setup_st(): st = StatusBase() state = {} def cb(): state['done'] = True return st, state, cb def test_status_post(): st, state, cb = _setup_st() assert 'done' not in state st.finished_cb = cb assert 'done' not in state ...
<commit_before>from ophyd.controls.ophydobj import StatusBase def _setup_st(): st = StatusBase() state = {} def cb(): state['done'] = True return st, state, cb def test_status_post(): st, state, cb = _setup_st() assert 'done' not in state st.finished_cb = cb assert 'done' ...
98b601953428fb4c77eafb4e06a018c4bb2b4391
isort/files.py
isort/files.py
import os from pathlib import Path from typing import Iterable, Iterator, List, Set from warnings import warn from isort.settings import Config def find( paths: Iterable[str], config: Config, skipped: List[str], broken: List[str] ) -> Iterator[str]: """Fines and provides an iterator for all Python source fil...
import os from pathlib import Path from typing import Iterable, Iterator, List, Set from isort.settings import Config def find( paths: Iterable[str], config: Config, skipped: List[str], broken: List[str] ) -> Iterator[str]: """Fines and provides an iterator for all Python source files defined in paths.""" ...
Remove "recursive symlink detected" UserWarning
Remove "recursive symlink detected" UserWarning
Python
mit
PyCQA/isort,PyCQA/isort
import os from pathlib import Path from typing import Iterable, Iterator, List, Set from warnings import warn from isort.settings import Config def find( paths: Iterable[str], config: Config, skipped: List[str], broken: List[str] ) -> Iterator[str]: """Fines and provides an iterator for all Python source fil...
import os from pathlib import Path from typing import Iterable, Iterator, List, Set from isort.settings import Config def find( paths: Iterable[str], config: Config, skipped: List[str], broken: List[str] ) -> Iterator[str]: """Fines and provides an iterator for all Python source files defined in paths.""" ...
<commit_before>import os from pathlib import Path from typing import Iterable, Iterator, List, Set from warnings import warn from isort.settings import Config def find( paths: Iterable[str], config: Config, skipped: List[str], broken: List[str] ) -> Iterator[str]: """Fines and provides an iterator for all Py...
import os from pathlib import Path from typing import Iterable, Iterator, List, Set from isort.settings import Config def find( paths: Iterable[str], config: Config, skipped: List[str], broken: List[str] ) -> Iterator[str]: """Fines and provides an iterator for all Python source files defined in paths.""" ...
import os from pathlib import Path from typing import Iterable, Iterator, List, Set from warnings import warn from isort.settings import Config def find( paths: Iterable[str], config: Config, skipped: List[str], broken: List[str] ) -> Iterator[str]: """Fines and provides an iterator for all Python source fil...
<commit_before>import os from pathlib import Path from typing import Iterable, Iterator, List, Set from warnings import warn from isort.settings import Config def find( paths: Iterable[str], config: Config, skipped: List[str], broken: List[str] ) -> Iterator[str]: """Fines and provides an iterator for all Py...
f80febf88c3f045493e75efc788d88058f021f0f
merge_sort.py
merge_sort.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- def merge_sort(lyst): buf = [len(lyst)] _merge_sort(lyst, buf, 0, len(lyst)-1) def _merge_sort(lyst, buf, low, high): if low < high: middle = (low + high) // 2 _merge_sort(lyst, buf, low, middle) _merge_sort(lyst, buf, middle+1, high)...
#!/usr/bin/env python # -*- coding: UTF-8 -*- def merge_sort(lyst): buf = [None for x in range(len(lyst))] _merge_sort(lyst, buf, 0, len(lyst)-1) def _merge_sort(lyst, buf, low, high): if low < high: middle = (low + high) // 2 _merge_sort(lyst, buf, low, middle) _merge_sort(lyst,...
Fix initial buf variable to act as an array
Fix initial buf variable to act as an array
Python
mit
nbeck90/data_structures_2
#!/usr/bin/env python # -*- coding: UTF-8 -*- def merge_sort(lyst): buf = [len(lyst)] _merge_sort(lyst, buf, 0, len(lyst)-1) def _merge_sort(lyst, buf, low, high): if low < high: middle = (low + high) // 2 _merge_sort(lyst, buf, low, middle) _merge_sort(lyst, buf, middle+1, high)...
#!/usr/bin/env python # -*- coding: UTF-8 -*- def merge_sort(lyst): buf = [None for x in range(len(lyst))] _merge_sort(lyst, buf, 0, len(lyst)-1) def _merge_sort(lyst, buf, low, high): if low < high: middle = (low + high) // 2 _merge_sort(lyst, buf, low, middle) _merge_sort(lyst,...
<commit_before>#!/usr/bin/env python # -*- coding: UTF-8 -*- def merge_sort(lyst): buf = [len(lyst)] _merge_sort(lyst, buf, 0, len(lyst)-1) def _merge_sort(lyst, buf, low, high): if low < high: middle = (low + high) // 2 _merge_sort(lyst, buf, low, middle) _merge_sort(lyst, buf, ...
#!/usr/bin/env python # -*- coding: UTF-8 -*- def merge_sort(lyst): buf = [None for x in range(len(lyst))] _merge_sort(lyst, buf, 0, len(lyst)-1) def _merge_sort(lyst, buf, low, high): if low < high: middle = (low + high) // 2 _merge_sort(lyst, buf, low, middle) _merge_sort(lyst,...
#!/usr/bin/env python # -*- coding: UTF-8 -*- def merge_sort(lyst): buf = [len(lyst)] _merge_sort(lyst, buf, 0, len(lyst)-1) def _merge_sort(lyst, buf, low, high): if low < high: middle = (low + high) // 2 _merge_sort(lyst, buf, low, middle) _merge_sort(lyst, buf, middle+1, high)...
<commit_before>#!/usr/bin/env python # -*- coding: UTF-8 -*- def merge_sort(lyst): buf = [len(lyst)] _merge_sort(lyst, buf, 0, len(lyst)-1) def _merge_sort(lyst, buf, low, high): if low < high: middle = (low + high) // 2 _merge_sort(lyst, buf, low, middle) _merge_sort(lyst, buf, ...
62634879192e51b9f938da301534b08cf49d2e85
methodMang.py
methodMang.py
#!python3 from methods import output, data import tokenz import interpreter intp = interpreter.Interpreter() class UndefinedFunctionError(Exception): pass class Call: def __init__(self, method, args): self.method = method self.a = args self.vals = [] for t in self.a: ...
#!python3 from methods import io, data import tokenz import interpreter intp = interpreter.Interpreter() class UndefinedFunctionError(Exception): pass def reg(it, c): it.valid = it.valid + [(c().methods, c())] class Call: def __init__(self, method, args): self.method = method self.a = args...
Rename Output + smaller Register
Rename Output + smaller Register
Python
mit
Icelys/Scotch-Language
#!python3 from methods import output, data import tokenz import interpreter intp = interpreter.Interpreter() class UndefinedFunctionError(Exception): pass class Call: def __init__(self, method, args): self.method = method self.a = args self.vals = [] for t in self.a: ...
#!python3 from methods import io, data import tokenz import interpreter intp = interpreter.Interpreter() class UndefinedFunctionError(Exception): pass def reg(it, c): it.valid = it.valid + [(c().methods, c())] class Call: def __init__(self, method, args): self.method = method self.a = args...
<commit_before>#!python3 from methods import output, data import tokenz import interpreter intp = interpreter.Interpreter() class UndefinedFunctionError(Exception): pass class Call: def __init__(self, method, args): self.method = method self.a = args self.vals = [] for t in se...
#!python3 from methods import io, data import tokenz import interpreter intp = interpreter.Interpreter() class UndefinedFunctionError(Exception): pass def reg(it, c): it.valid = it.valid + [(c().methods, c())] class Call: def __init__(self, method, args): self.method = method self.a = args...
#!python3 from methods import output, data import tokenz import interpreter intp = interpreter.Interpreter() class UndefinedFunctionError(Exception): pass class Call: def __init__(self, method, args): self.method = method self.a = args self.vals = [] for t in self.a: ...
<commit_before>#!python3 from methods import output, data import tokenz import interpreter intp = interpreter.Interpreter() class UndefinedFunctionError(Exception): pass class Call: def __init__(self, method, args): self.method = method self.a = args self.vals = [] for t in se...
b42dddaa45a8915a653f4b145f2a58eb6996f28a
home/openbox/lib/helpers.py
home/openbox/lib/helpers.py
import os.path, os def run_as_browser(fn): def wrapped(*args, **kwargs): rv = fn(*args, **kwargs) return 'sudo -Hiu browser %s' % rv return wrapped class Helpers: @property @run_as_browser def default_firefox_bin(self): candidates = [ '/usr/local/lib/firefox/fir...
import os.path, os def run_as_browser(fn): def wrapped(*args, **kwargs): rv = fn(*args, **kwargs) return 'sudo -Hiu browser env XAUTHORITY=/home/browser/.Xauthority %s' % rv return wrapped class Helpers: @property @run_as_browser def default_firefox_bin(self): candidates = ...
Fix firefox invocation as browser
Fix firefox invocation as browser
Python
bsd-2-clause
p/pubfiles,p/pubfiles,p/pubfiles,p/pubfiles,p/pubfiles
import os.path, os def run_as_browser(fn): def wrapped(*args, **kwargs): rv = fn(*args, **kwargs) return 'sudo -Hiu browser %s' % rv return wrapped class Helpers: @property @run_as_browser def default_firefox_bin(self): candidates = [ '/usr/local/lib/firefox/fir...
import os.path, os def run_as_browser(fn): def wrapped(*args, **kwargs): rv = fn(*args, **kwargs) return 'sudo -Hiu browser env XAUTHORITY=/home/browser/.Xauthority %s' % rv return wrapped class Helpers: @property @run_as_browser def default_firefox_bin(self): candidates = ...
<commit_before>import os.path, os def run_as_browser(fn): def wrapped(*args, **kwargs): rv = fn(*args, **kwargs) return 'sudo -Hiu browser %s' % rv return wrapped class Helpers: @property @run_as_browser def default_firefox_bin(self): candidates = [ '/usr/local/...
import os.path, os def run_as_browser(fn): def wrapped(*args, **kwargs): rv = fn(*args, **kwargs) return 'sudo -Hiu browser env XAUTHORITY=/home/browser/.Xauthority %s' % rv return wrapped class Helpers: @property @run_as_browser def default_firefox_bin(self): candidates = ...
import os.path, os def run_as_browser(fn): def wrapped(*args, **kwargs): rv = fn(*args, **kwargs) return 'sudo -Hiu browser %s' % rv return wrapped class Helpers: @property @run_as_browser def default_firefox_bin(self): candidates = [ '/usr/local/lib/firefox/fir...
<commit_before>import os.path, os def run_as_browser(fn): def wrapped(*args, **kwargs): rv = fn(*args, **kwargs) return 'sudo -Hiu browser %s' % rv return wrapped class Helpers: @property @run_as_browser def default_firefox_bin(self): candidates = [ '/usr/local/...
2e729b437434e6d355602f9fd74bc9bd3b42f120
core/tests.py
core/tests.py
from django.test import TestCase # Create your tests here.
from django.test import TestCase from core.models import Profile, User class ProfileTestCase(TestCase): """This class defines the test suite for the Person model.""" def setUp(self): """Define the test variables.""" self.username = "some-test-user" self.email = "some@test.user" ...
Add test to model Profile
Add test to model Profile
Python
mit
desenho-sw-g5/service_control,desenho-sw-g5/service_control
from django.test import TestCase # Create your tests here. Add test to model Profile
from django.test import TestCase from core.models import Profile, User class ProfileTestCase(TestCase): """This class defines the test suite for the Person model.""" def setUp(self): """Define the test variables.""" self.username = "some-test-user" self.email = "some@test.user" ...
<commit_before>from django.test import TestCase # Create your tests here. <commit_msg>Add test to model Profile<commit_after>
from django.test import TestCase from core.models import Profile, User class ProfileTestCase(TestCase): """This class defines the test suite for the Person model.""" def setUp(self): """Define the test variables.""" self.username = "some-test-user" self.email = "some@test.user" ...
from django.test import TestCase # Create your tests here. Add test to model Profilefrom django.test import TestCase from core.models import Profile, User class ProfileTestCase(TestCase): """This class defines the test suite for the Person model.""" def setUp(self): """Define the test variables.""" ...
<commit_before>from django.test import TestCase # Create your tests here. <commit_msg>Add test to model Profile<commit_after>from django.test import TestCase from core.models import Profile, User class ProfileTestCase(TestCase): """This class defines the test suite for the Person model.""" def setUp(self): ...
7dd0c64b4503ab32cf79864f4c23016518b1cdbd
electionleaflets/apps/api/tests/test_create_leaflet.py
electionleaflets/apps/api/tests/test_create_leaflet.py
import os import json from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase TEST_IMAGES = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '1.jpg',] BASE_PATH = os.path.join( os.path.dirname(__file__), 'test_images' ) IMAGES = [(name, os.pa...
import os import json from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase TEST_IMAGES = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '1.jpg',] BASE_PATH = os.path.join( os.path.dirname(__file__), 'test_images' ) IMAGES = [(name, os.pa...
Remove some API tests for now
Remove some API tests for now
Python
mit
JustinWingChungHui/electionleaflets,DemocracyClub/electionleaflets,DemocracyClub/electionleaflets,DemocracyClub/electionleaflets,JustinWingChungHui/electionleaflets,JustinWingChungHui/electionleaflets,JustinWingChungHui/electionleaflets
import os import json from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase TEST_IMAGES = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '1.jpg',] BASE_PATH = os.path.join( os.path.dirname(__file__), 'test_images' ) IMAGES = [(name, os.pa...
import os import json from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase TEST_IMAGES = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '1.jpg',] BASE_PATH = os.path.join( os.path.dirname(__file__), 'test_images' ) IMAGES = [(name, os.pa...
<commit_before>import os import json from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase TEST_IMAGES = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '1.jpg',] BASE_PATH = os.path.join( os.path.dirname(__file__), 'test_images' ) IMAGES ...
import os import json from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase TEST_IMAGES = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '1.jpg',] BASE_PATH = os.path.join( os.path.dirname(__file__), 'test_images' ) IMAGES = [(name, os.pa...
import os import json from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase TEST_IMAGES = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '1.jpg',] BASE_PATH = os.path.join( os.path.dirname(__file__), 'test_images' ) IMAGES = [(name, os.pa...
<commit_before>import os import json from django.core.urlresolvers import reverse from rest_framework import status from rest_framework.test import APITestCase TEST_IMAGES = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '1.jpg',] BASE_PATH = os.path.join( os.path.dirname(__file__), 'test_images' ) IMAGES ...
327c00fe5fe9211ac5ba3b33e807ec938ecc8311
configstore/tests/test_docker_secret.py
configstore/tests/test_docker_secret.py
from unittest import TestCase try: from unittest import mock except ImportError: import mock from configstore.backends.docker_secret import DockerSecretBackend from .test_data import DEFAULT_KEY, DEFAULT_VALUE, CUSTOM_PATH class TestDockerSecretBackend(TestCase): @mock.patch('configstore.backends.docker...
from unittest import TestCase try: from unittest import mock except ImportError: import mock from configstore.backends.docker_secret import DockerSecretBackend from .test_data import DEFAULT_KEY, DEFAULT_VALUE, CUSTOM_PATH class TestDockerSecretBackend(TestCase): @mock.patch('configstore.backends.docker...
Make sure exists always resturns None in the non-existant test case
Make sure exists always resturns None in the non-existant test case
Python
mit
caravancoop/configstore
from unittest import TestCase try: from unittest import mock except ImportError: import mock from configstore.backends.docker_secret import DockerSecretBackend from .test_data import DEFAULT_KEY, DEFAULT_VALUE, CUSTOM_PATH class TestDockerSecretBackend(TestCase): @mock.patch('configstore.backends.docker...
from unittest import TestCase try: from unittest import mock except ImportError: import mock from configstore.backends.docker_secret import DockerSecretBackend from .test_data import DEFAULT_KEY, DEFAULT_VALUE, CUSTOM_PATH class TestDockerSecretBackend(TestCase): @mock.patch('configstore.backends.docker...
<commit_before>from unittest import TestCase try: from unittest import mock except ImportError: import mock from configstore.backends.docker_secret import DockerSecretBackend from .test_data import DEFAULT_KEY, DEFAULT_VALUE, CUSTOM_PATH class TestDockerSecretBackend(TestCase): @mock.patch('configstore....
from unittest import TestCase try: from unittest import mock except ImportError: import mock from configstore.backends.docker_secret import DockerSecretBackend from .test_data import DEFAULT_KEY, DEFAULT_VALUE, CUSTOM_PATH class TestDockerSecretBackend(TestCase): @mock.patch('configstore.backends.docker...
from unittest import TestCase try: from unittest import mock except ImportError: import mock from configstore.backends.docker_secret import DockerSecretBackend from .test_data import DEFAULT_KEY, DEFAULT_VALUE, CUSTOM_PATH class TestDockerSecretBackend(TestCase): @mock.patch('configstore.backends.docker...
<commit_before>from unittest import TestCase try: from unittest import mock except ImportError: import mock from configstore.backends.docker_secret import DockerSecretBackend from .test_data import DEFAULT_KEY, DEFAULT_VALUE, CUSTOM_PATH class TestDockerSecretBackend(TestCase): @mock.patch('configstore....