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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd5b4f0b091963c197e36ea20b3ce4249e7fadc4 | tests/test_ffi.py | tests/test_ffi.py | import six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
bs = six.b('these are some bytes')
assert bs == bytes(ffi.buffer(bytes_to_cdata(bs), len(bs)))
| import six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
bs = six.b('these are some bytes')
assert bs == ffi.buffer(bytes_to_cdata(bs), len(bs))[:]
| Fix pypy by using alternate cffi minibuffer syntax | Fix pypy by using alternate cffi minibuffer syntax
| Python | apache-2.0 | tych0/xcffib | import six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
bs = six.b('these are some bytes')
assert bs == bytes(ffi.buffer(bytes_to_cdata(bs), len(bs)))
Fix pypy by using alternate cffi minibuffer syntax | import six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
bs = six.b('these are some bytes')
assert bs == ffi.buffer(bytes_to_cdata(bs), len(bs))[:]
| <commit_before>import six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
bs = six.b('these are some bytes')
assert bs == bytes(ffi.buffer(bytes_to_cdata(bs), len(bs)))
<commit_msg>Fix pypy by using alternate cffi minibuffer syntax<commit_after> | import six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
bs = six.b('these are some bytes')
assert bs == ffi.buffer(bytes_to_cdata(bs), len(bs))[:]
| import six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
bs = six.b('these are some bytes')
assert bs == bytes(ffi.buffer(bytes_to_cdata(bs), len(bs)))
Fix pypy by using alternate cffi minibuffer syntaximport six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
... | <commit_before>import six
from xcffib.ffi import ffi, bytes_to_cdata
def test_bytes_to_cdata():
bs = six.b('these are some bytes')
assert bs == bytes(ffi.buffer(bytes_to_cdata(bs), len(bs)))
<commit_msg>Fix pypy by using alternate cffi minibuffer syntax<commit_after>import six
from xcffib.ffi import ffi, bytes... |
f3e076dae625cebee779757abd030f4b6c08167d | src/engine/SCons/Tool/MSVCCommon/netframework.py | src/engine/SCons/Tool/MSVCCommon/netframework.py | import os
from common import read_reg, debug
_FRAMEWORKDIR_HKEY_ROOT = r'Software\Microsoft\.NETFramework\InstallRoot'
def find_framework_root():
# XXX: find it from environment (FrameworkDir)
try:
froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT)
debug("Found framework install root in registry: %s" ... | import os
import re
from common import read_reg, debug
_FRAMEWORKDIR_HKEY_ROOT = r'Software\Microsoft\.NETFramework\InstallRoot'
def find_framework_root():
# XXX: find it from environment (FrameworkDir)
try:
froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT)
debug("Found framework install root in regi... | Add a function to query available .net frameworks. | Add a function to query available .net frameworks.
| Python | mit | azatoth/scons,azatoth/scons,azatoth/scons,azatoth/scons,azatoth/scons | import os
from common import read_reg, debug
_FRAMEWORKDIR_HKEY_ROOT = r'Software\Microsoft\.NETFramework\InstallRoot'
def find_framework_root():
# XXX: find it from environment (FrameworkDir)
try:
froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT)
debug("Found framework install root in registry: %s" ... | import os
import re
from common import read_reg, debug
_FRAMEWORKDIR_HKEY_ROOT = r'Software\Microsoft\.NETFramework\InstallRoot'
def find_framework_root():
# XXX: find it from environment (FrameworkDir)
try:
froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT)
debug("Found framework install root in regi... | <commit_before>import os
from common import read_reg, debug
_FRAMEWORKDIR_HKEY_ROOT = r'Software\Microsoft\.NETFramework\InstallRoot'
def find_framework_root():
# XXX: find it from environment (FrameworkDir)
try:
froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT)
debug("Found framework install root in... | import os
import re
from common import read_reg, debug
_FRAMEWORKDIR_HKEY_ROOT = r'Software\Microsoft\.NETFramework\InstallRoot'
def find_framework_root():
# XXX: find it from environment (FrameworkDir)
try:
froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT)
debug("Found framework install root in regi... | import os
from common import read_reg, debug
_FRAMEWORKDIR_HKEY_ROOT = r'Software\Microsoft\.NETFramework\InstallRoot'
def find_framework_root():
# XXX: find it from environment (FrameworkDir)
try:
froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT)
debug("Found framework install root in registry: %s" ... | <commit_before>import os
from common import read_reg, debug
_FRAMEWORKDIR_HKEY_ROOT = r'Software\Microsoft\.NETFramework\InstallRoot'
def find_framework_root():
# XXX: find it from environment (FrameworkDir)
try:
froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT)
debug("Found framework install root in... |
c46ff58eb52f5610c858940c8159dfce7b73dc7b | panoptes_client/avatar.py | panoptes_client/avatar.py | from panoptes_client.panoptes import (
Panoptes,
PanoptesObject,
LinkResolver,
)
from panoptes_client.project import Project
class Avatar(PanoptesObject):
_api_slug = 'avatar'
_link_slug = 'avatars'
_edit_attributes = ()
@classmethod
def http_get(cls, path, params={}, headers={}):
... | from panoptes_client.panoptes import (
Panoptes,
PanoptesObject,
LinkResolver,
)
from panoptes_client.project import Project
class ProjectAvatar(PanoptesObject):
_api_slug = 'avatar'
_link_slug = 'avatars'
_edit_attributes = ()
@classmethod
def http_get(cls, path, params={}, headers={... | Rename the 'Avatar' class to 'ProjectAvatar' | Rename the 'Avatar' class to 'ProjectAvatar'
| Python | apache-2.0 | zooniverse/panoptes-python-client | from panoptes_client.panoptes import (
Panoptes,
PanoptesObject,
LinkResolver,
)
from panoptes_client.project import Project
class Avatar(PanoptesObject):
_api_slug = 'avatar'
_link_slug = 'avatars'
_edit_attributes = ()
@classmethod
def http_get(cls, path, params={}, headers={}):
... | from panoptes_client.panoptes import (
Panoptes,
PanoptesObject,
LinkResolver,
)
from panoptes_client.project import Project
class ProjectAvatar(PanoptesObject):
_api_slug = 'avatar'
_link_slug = 'avatars'
_edit_attributes = ()
@classmethod
def http_get(cls, path, params={}, headers={... | <commit_before>from panoptes_client.panoptes import (
Panoptes,
PanoptesObject,
LinkResolver,
)
from panoptes_client.project import Project
class Avatar(PanoptesObject):
_api_slug = 'avatar'
_link_slug = 'avatars'
_edit_attributes = ()
@classmethod
def http_get(cls, path, params={}, h... | from panoptes_client.panoptes import (
Panoptes,
PanoptesObject,
LinkResolver,
)
from panoptes_client.project import Project
class ProjectAvatar(PanoptesObject):
_api_slug = 'avatar'
_link_slug = 'avatars'
_edit_attributes = ()
@classmethod
def http_get(cls, path, params={}, headers={... | from panoptes_client.panoptes import (
Panoptes,
PanoptesObject,
LinkResolver,
)
from panoptes_client.project import Project
class Avatar(PanoptesObject):
_api_slug = 'avatar'
_link_slug = 'avatars'
_edit_attributes = ()
@classmethod
def http_get(cls, path, params={}, headers={}):
... | <commit_before>from panoptes_client.panoptes import (
Panoptes,
PanoptesObject,
LinkResolver,
)
from panoptes_client.project import Project
class Avatar(PanoptesObject):
_api_slug = 'avatar'
_link_slug = 'avatars'
_edit_attributes = ()
@classmethod
def http_get(cls, path, params={}, h... |
27b059a0e478d0c7a71c9695f5861eb28b905e7c | tomviz/python/setup.py | tomviz/python/setup.py | from setuptools import setup, find_packages
setup(
name='tomviz-pipeline',
version='0.0.1',
description='Tomviz python external pipeline execution infrastructure.',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://www.tomviz.org/',
license='BSD 3-Clause',
classif... | from setuptools import setup, find_packages
setup(
name='tomviz-pipeline',
version='0.0.1',
description='Tomviz python external pipeline execution infrastructure.',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://www.tomviz.org/',
license='BSD 3-Clause',
classif... | Use PEP 508 URL dependencies to specify patched jsonpatch | Use PEP 508 URL dependencies to specify patched jsonpatch
Signed-off-by: Chris Harris <[email protected]>
| Python | bsd-3-clause | OpenChemistry/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz | from setuptools import setup, find_packages
setup(
name='tomviz-pipeline',
version='0.0.1',
description='Tomviz python external pipeline execution infrastructure.',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://www.tomviz.org/',
license='BSD 3-Clause',
classif... | from setuptools import setup, find_packages
setup(
name='tomviz-pipeline',
version='0.0.1',
description='Tomviz python external pipeline execution infrastructure.',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://www.tomviz.org/',
license='BSD 3-Clause',
classif... | <commit_before>from setuptools import setup, find_packages
setup(
name='tomviz-pipeline',
version='0.0.1',
description='Tomviz python external pipeline execution infrastructure.',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://www.tomviz.org/',
license='BSD 3-Claus... | from setuptools import setup, find_packages
setup(
name='tomviz-pipeline',
version='0.0.1',
description='Tomviz python external pipeline execution infrastructure.',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://www.tomviz.org/',
license='BSD 3-Clause',
classif... | from setuptools import setup, find_packages
setup(
name='tomviz-pipeline',
version='0.0.1',
description='Tomviz python external pipeline execution infrastructure.',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://www.tomviz.org/',
license='BSD 3-Clause',
classif... | <commit_before>from setuptools import setup, find_packages
setup(
name='tomviz-pipeline',
version='0.0.1',
description='Tomviz python external pipeline execution infrastructure.',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://www.tomviz.org/',
license='BSD 3-Claus... |
25b84238204d3970c72d0ac133b0ff59ae4696bd | social/models.py | social/models.py | from django.db import models
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=20)
display_name = models.CharField(max_length=30)
password = models.TextField()
join_date = models.DateField('date joined')
def __str__(self):
return self.display_name... | from django.contrib.auth.models import AbstractBaseUser
from django.db import models
# Create your models here.
class User(AbstractBaseUser):
username = models.CharField(max_length=20)
display_name = models.CharField(max_length=30)
join_date = models.DateField('date joined')
USERNAME_FIELD = 'usernam... | Implement User that extends Django's AbstractBaseUser. | Implement User that extends Django's AbstractBaseUser.
| Python | mit | eyohansa/temu,eyohansa/temu,eyohansa/temu | from django.db import models
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=20)
display_name = models.CharField(max_length=30)
password = models.TextField()
join_date = models.DateField('date joined')
def __str__(self):
return self.display_name... | from django.contrib.auth.models import AbstractBaseUser
from django.db import models
# Create your models here.
class User(AbstractBaseUser):
username = models.CharField(max_length=20)
display_name = models.CharField(max_length=30)
join_date = models.DateField('date joined')
USERNAME_FIELD = 'usernam... | <commit_before>from django.db import models
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=20)
display_name = models.CharField(max_length=30)
password = models.TextField()
join_date = models.DateField('date joined')
def __str__(self):
return se... | from django.contrib.auth.models import AbstractBaseUser
from django.db import models
# Create your models here.
class User(AbstractBaseUser):
username = models.CharField(max_length=20)
display_name = models.CharField(max_length=30)
join_date = models.DateField('date joined')
USERNAME_FIELD = 'usernam... | from django.db import models
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=20)
display_name = models.CharField(max_length=30)
password = models.TextField()
join_date = models.DateField('date joined')
def __str__(self):
return self.display_name... | <commit_before>from django.db import models
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=20)
display_name = models.CharField(max_length=30)
password = models.TextField()
join_date = models.DateField('date joined')
def __str__(self):
return se... |
fc85f8846c188992438c935b9ba1ff0394bbc866 | deployment/cfn/utils/constants.py | deployment/cfn/utils/constants.py | EC2_INSTANCE_TYPES = [
't2.micro',
't2.small',
't2.medium'
]
RDS_INSTANCE_TYPES = [
'db.t2.micro'
]
ELASTICACHE_INSTANCE_TYPES = [
'cache.m1.small'
]
ALLOW_ALL_CIDR = '0.0.0.0/0'
VPC_CIDR = '10.0.0.0/16'
GRAPHITE = 2003
GRAPHITE_WEB = 8080
HTTP = 80
HTTPS = 443
KIBANA = 5601
POSTGRESQL = 5432
RE... | EC2_INSTANCE_TYPES = [
't2.micro',
't2.small',
't2.medium',
't2.large'
]
RDS_INSTANCE_TYPES = [
'db.t2.micro',
'db.t2.small',
'db.t2.medium',
'db.t2.large'
]
ELASTICACHE_INSTANCE_TYPES = [
'cache.m1.small'
]
ALLOW_ALL_CIDR = '0.0.0.0/0'
VPC_CIDR = '10.0.0.0/16'
GRAPHITE = 2003
GR... | Increase options for EC2 and RDS instance types | Increase options for EC2 and RDS instance types
Adding small through large for both.
| Python | apache-2.0 | project-icp/bee-pollinator-app,WikiWatershed/model-my-watershed,kdeloach/model-my-watershed,lliss/model-my-watershed,project-icp/bee-pollinator-app,lliss/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,lliss/model-my-watershed,kdeloach/model-my-water... | EC2_INSTANCE_TYPES = [
't2.micro',
't2.small',
't2.medium'
]
RDS_INSTANCE_TYPES = [
'db.t2.micro'
]
ELASTICACHE_INSTANCE_TYPES = [
'cache.m1.small'
]
ALLOW_ALL_CIDR = '0.0.0.0/0'
VPC_CIDR = '10.0.0.0/16'
GRAPHITE = 2003
GRAPHITE_WEB = 8080
HTTP = 80
HTTPS = 443
KIBANA = 5601
POSTGRESQL = 5432
RE... | EC2_INSTANCE_TYPES = [
't2.micro',
't2.small',
't2.medium',
't2.large'
]
RDS_INSTANCE_TYPES = [
'db.t2.micro',
'db.t2.small',
'db.t2.medium',
'db.t2.large'
]
ELASTICACHE_INSTANCE_TYPES = [
'cache.m1.small'
]
ALLOW_ALL_CIDR = '0.0.0.0/0'
VPC_CIDR = '10.0.0.0/16'
GRAPHITE = 2003
GR... | <commit_before>EC2_INSTANCE_TYPES = [
't2.micro',
't2.small',
't2.medium'
]
RDS_INSTANCE_TYPES = [
'db.t2.micro'
]
ELASTICACHE_INSTANCE_TYPES = [
'cache.m1.small'
]
ALLOW_ALL_CIDR = '0.0.0.0/0'
VPC_CIDR = '10.0.0.0/16'
GRAPHITE = 2003
GRAPHITE_WEB = 8080
HTTP = 80
HTTPS = 443
KIBANA = 5601
POSTG... | EC2_INSTANCE_TYPES = [
't2.micro',
't2.small',
't2.medium',
't2.large'
]
RDS_INSTANCE_TYPES = [
'db.t2.micro',
'db.t2.small',
'db.t2.medium',
'db.t2.large'
]
ELASTICACHE_INSTANCE_TYPES = [
'cache.m1.small'
]
ALLOW_ALL_CIDR = '0.0.0.0/0'
VPC_CIDR = '10.0.0.0/16'
GRAPHITE = 2003
GR... | EC2_INSTANCE_TYPES = [
't2.micro',
't2.small',
't2.medium'
]
RDS_INSTANCE_TYPES = [
'db.t2.micro'
]
ELASTICACHE_INSTANCE_TYPES = [
'cache.m1.small'
]
ALLOW_ALL_CIDR = '0.0.0.0/0'
VPC_CIDR = '10.0.0.0/16'
GRAPHITE = 2003
GRAPHITE_WEB = 8080
HTTP = 80
HTTPS = 443
KIBANA = 5601
POSTGRESQL = 5432
RE... | <commit_before>EC2_INSTANCE_TYPES = [
't2.micro',
't2.small',
't2.medium'
]
RDS_INSTANCE_TYPES = [
'db.t2.micro'
]
ELASTICACHE_INSTANCE_TYPES = [
'cache.m1.small'
]
ALLOW_ALL_CIDR = '0.0.0.0/0'
VPC_CIDR = '10.0.0.0/16'
GRAPHITE = 2003
GRAPHITE_WEB = 8080
HTTP = 80
HTTPS = 443
KIBANA = 5601
POSTG... |
f70eec24ef936db6318464da27dc9c619da339d3 | scratch/asb/experiment_json_to_cbf_def.py | scratch/asb/experiment_json_to_cbf_def.py | from __future__ import division
# Script to convert the output from refine_quadrants to a header file
# Apply the header file to the cbfs with cxi.apply_metrology
# Note hardcoded distance of 105
from dials.util.command_line import Importer
from xfel.cftbx.detector.cspad_cbf_tbx import write_cspad_cbf, map_detector_t... | from __future__ import division
# Script to convert the output from refine_quadrants to a header file
# Note hardcoded distance of 100 isn't relevant for just a cbf header
from dials.util.options import OptionParser
from dials.util.options import flatten_experiments
from xfel.cftbx.detector.cspad_cbf_tbx import write... | Refactor for new OptionParser interface | Refactor for new OptionParser interface
| Python | bsd-3-clause | dials/dials,dials/dials,dials/dials,dials/dials,dials/dials | from __future__ import division
# Script to convert the output from refine_quadrants to a header file
# Apply the header file to the cbfs with cxi.apply_metrology
# Note hardcoded distance of 105
from dials.util.command_line import Importer
from xfel.cftbx.detector.cspad_cbf_tbx import write_cspad_cbf, map_detector_t... | from __future__ import division
# Script to convert the output from refine_quadrants to a header file
# Note hardcoded distance of 100 isn't relevant for just a cbf header
from dials.util.options import OptionParser
from dials.util.options import flatten_experiments
from xfel.cftbx.detector.cspad_cbf_tbx import write... | <commit_before>from __future__ import division
# Script to convert the output from refine_quadrants to a header file
# Apply the header file to the cbfs with cxi.apply_metrology
# Note hardcoded distance of 105
from dials.util.command_line import Importer
from xfel.cftbx.detector.cspad_cbf_tbx import write_cspad_cbf,... | from __future__ import division
# Script to convert the output from refine_quadrants to a header file
# Note hardcoded distance of 100 isn't relevant for just a cbf header
from dials.util.options import OptionParser
from dials.util.options import flatten_experiments
from xfel.cftbx.detector.cspad_cbf_tbx import write... | from __future__ import division
# Script to convert the output from refine_quadrants to a header file
# Apply the header file to the cbfs with cxi.apply_metrology
# Note hardcoded distance of 105
from dials.util.command_line import Importer
from xfel.cftbx.detector.cspad_cbf_tbx import write_cspad_cbf, map_detector_t... | <commit_before>from __future__ import division
# Script to convert the output from refine_quadrants to a header file
# Apply the header file to the cbfs with cxi.apply_metrology
# Note hardcoded distance of 105
from dials.util.command_line import Importer
from xfel.cftbx.detector.cspad_cbf_tbx import write_cspad_cbf,... |
ed9635ab7ca086bb79a48daae8a390887b7bf78f | datadict/datadict_utils.py | datadict/datadict_utils.py | import pandas as pd
def load_datadict(filepath, trim_index=True, trim_all=False):
df = pd.read_csv(filepath, index_col=0)
if trim_index:
df.index = df.index.to_series().str.strip()
if trim_all:
df = df.applymap(lambda x: x.strip() if type(x) is str else x)
return df
def insert_rows_at(... | import pandas as pd
def load_datadict(filepath, trim_index=True, trim_all=False):
df = pd.read_csv(filepath, index_col=0, dtype=object)
if trim_index:
df.index = df.index.to_series().str.strip()
if trim_all:
df = df.applymap(lambda x: x.strip() if type(x) is str else x)
return df
def i... | Read datadict file as-is, without type-guessing | Read datadict file as-is, without type-guessing
| Python | bsd-3-clause | sibis-platform/ncanda-datacore,sibis-platform/ncanda-datacore,sibis-platform/ncanda-data-integration,sibis-platform/ncanda-datacore,sibis-platform/ncanda-data-integration | import pandas as pd
def load_datadict(filepath, trim_index=True, trim_all=False):
df = pd.read_csv(filepath, index_col=0)
if trim_index:
df.index = df.index.to_series().str.strip()
if trim_all:
df = df.applymap(lambda x: x.strip() if type(x) is str else x)
return df
def insert_rows_at(... | import pandas as pd
def load_datadict(filepath, trim_index=True, trim_all=False):
df = pd.read_csv(filepath, index_col=0, dtype=object)
if trim_index:
df.index = df.index.to_series().str.strip()
if trim_all:
df = df.applymap(lambda x: x.strip() if type(x) is str else x)
return df
def i... | <commit_before>import pandas as pd
def load_datadict(filepath, trim_index=True, trim_all=False):
df = pd.read_csv(filepath, index_col=0)
if trim_index:
df.index = df.index.to_series().str.strip()
if trim_all:
df = df.applymap(lambda x: x.strip() if type(x) is str else x)
return df
def ... | import pandas as pd
def load_datadict(filepath, trim_index=True, trim_all=False):
df = pd.read_csv(filepath, index_col=0, dtype=object)
if trim_index:
df.index = df.index.to_series().str.strip()
if trim_all:
df = df.applymap(lambda x: x.strip() if type(x) is str else x)
return df
def i... | import pandas as pd
def load_datadict(filepath, trim_index=True, trim_all=False):
df = pd.read_csv(filepath, index_col=0)
if trim_index:
df.index = df.index.to_series().str.strip()
if trim_all:
df = df.applymap(lambda x: x.strip() if type(x) is str else x)
return df
def insert_rows_at(... | <commit_before>import pandas as pd
def load_datadict(filepath, trim_index=True, trim_all=False):
df = pd.read_csv(filepath, index_col=0)
if trim_index:
df.index = df.index.to_series().str.strip()
if trim_all:
df = df.applymap(lambda x: x.strip() if type(x) is str else x)
return df
def ... |
d7697891f86603d9901f02209bb4921fc1e2d209 | smif/http_api/app.py | smif/http_api/app.py | """Provide APP constant for the purposes of manually running the flask app
For example, set up environment variables then run the app::
export FLASK_APP=smif.http_api.app
export FLASK_DEBUG=1
flask run
"""
import os
from smif.data_layer import DatafileInterface
from smif.http_api import create... | """Provide APP constant for the purposes of manually running the flask app
For example, build the front end, then run the app with environment variables::
cd smif/app/
npm run build
cd ../http_api/
FLASK_APP=smif.http_api.app FLASK_DEBUG=1 flask run
"""
import os
from smif.data_layer i... | Add front end build step to comment on running manually | Add front end build step to comment on running manually
| Python | mit | willu47/smif,nismod/smif,willu47/smif,nismod/smif,nismod/smif,nismod/smif,tomalrussell/smif,willu47/smif,tomalrussell/smif,tomalrussell/smif,tomalrussell/smif,willu47/smif | """Provide APP constant for the purposes of manually running the flask app
For example, set up environment variables then run the app::
export FLASK_APP=smif.http_api.app
export FLASK_DEBUG=1
flask run
"""
import os
from smif.data_layer import DatafileInterface
from smif.http_api import create... | """Provide APP constant for the purposes of manually running the flask app
For example, build the front end, then run the app with environment variables::
cd smif/app/
npm run build
cd ../http_api/
FLASK_APP=smif.http_api.app FLASK_DEBUG=1 flask run
"""
import os
from smif.data_layer i... | <commit_before>"""Provide APP constant for the purposes of manually running the flask app
For example, set up environment variables then run the app::
export FLASK_APP=smif.http_api.app
export FLASK_DEBUG=1
flask run
"""
import os
from smif.data_layer import DatafileInterface
from smif.http_ap... | """Provide APP constant for the purposes of manually running the flask app
For example, build the front end, then run the app with environment variables::
cd smif/app/
npm run build
cd ../http_api/
FLASK_APP=smif.http_api.app FLASK_DEBUG=1 flask run
"""
import os
from smif.data_layer i... | """Provide APP constant for the purposes of manually running the flask app
For example, set up environment variables then run the app::
export FLASK_APP=smif.http_api.app
export FLASK_DEBUG=1
flask run
"""
import os
from smif.data_layer import DatafileInterface
from smif.http_api import create... | <commit_before>"""Provide APP constant for the purposes of manually running the flask app
For example, set up environment variables then run the app::
export FLASK_APP=smif.http_api.app
export FLASK_DEBUG=1
flask run
"""
import os
from smif.data_layer import DatafileInterface
from smif.http_ap... |
0f55195f4461c80e85d132026a70049b36b8cc0b | sub_numbers_lambda/handle.py | sub_numbers_lambda/handle.py | import json
import time
def lambda_handler(event,context):
number_1 = event['key1']
number_2 = event['key2']
return {"number" : abs(number_1 - number_2)} | import json
def lambda_handler(event, context):
number_1 = int(event['key1'])
number_2 = int(event['key2'])
return {"number" : abs(number_1 - number_2)}
| Add int() function for casting from string to integer | Add int() function for casting from string to integer
| Python | mit | OsamaJBR/teach-me-aws-stepfunctions | import json
import time
def lambda_handler(event,context):
number_1 = event['key1']
number_2 = event['key2']
return {"number" : abs(number_1 - number_2)}Add int() function for casting from string to integer | import json
def lambda_handler(event, context):
number_1 = int(event['key1'])
number_2 = int(event['key2'])
return {"number" : abs(number_1 - number_2)}
| <commit_before>import json
import time
def lambda_handler(event,context):
number_1 = event['key1']
number_2 = event['key2']
return {"number" : abs(number_1 - number_2)}<commit_msg>Add int() function for casting from string to integer<commit_after> | import json
def lambda_handler(event, context):
number_1 = int(event['key1'])
number_2 = int(event['key2'])
return {"number" : abs(number_1 - number_2)}
| import json
import time
def lambda_handler(event,context):
number_1 = event['key1']
number_2 = event['key2']
return {"number" : abs(number_1 - number_2)}Add int() function for casting from string to integerimport json
def lambda_handler(event, context):
number_1 = int(event['key1'])
number_2 = int... | <commit_before>import json
import time
def lambda_handler(event,context):
number_1 = event['key1']
number_2 = event['key2']
return {"number" : abs(number_1 - number_2)}<commit_msg>Add int() function for casting from string to integer<commit_after>import json
def lambda_handler(event, context):
number_... |
99aa2f415659e73329982110cc9bead50a856226 | zsl/__init__.py | zsl/__init__.py | """
:mod:`zsl` -- zsl module
========================
Main service module.
:platform: Unix, Windows
:synopsis: The Atteq Service Layer. Service for exposing data to clients. Just provides DB access, feeds access and \
other various aspects of service applications.
.. moduleauthor:: Martin Babka <babka@atte... | """
:mod:`zsl` -- zsl module
========================
Main service module.
:platform: Unix, Windows
:synopsis: The Atteq Service Layer. Service for exposing data to clients. Just provides DB access, feeds access and \
other various aspects of service applications.
.. moduleauthor:: Martin Babka <babka@atte... | Increment version after unit testing refactoring | Increment version after unit testing refactoring
| Python | mit | AtteqCom/zsl,AtteqCom/zsl | """
:mod:`zsl` -- zsl module
========================
Main service module.
:platform: Unix, Windows
:synopsis: The Atteq Service Layer. Service for exposing data to clients. Just provides DB access, feeds access and \
other various aspects of service applications.
.. moduleauthor:: Martin Babka <babka@atte... | """
:mod:`zsl` -- zsl module
========================
Main service module.
:platform: Unix, Windows
:synopsis: The Atteq Service Layer. Service for exposing data to clients. Just provides DB access, feeds access and \
other various aspects of service applications.
.. moduleauthor:: Martin Babka <babka@atte... | <commit_before>"""
:mod:`zsl` -- zsl module
========================
Main service module.
:platform: Unix, Windows
:synopsis: The Atteq Service Layer. Service for exposing data to clients. Just provides DB access, feeds access and \
other various aspects of service applications.
.. moduleauthor:: Martin Ba... | """
:mod:`zsl` -- zsl module
========================
Main service module.
:platform: Unix, Windows
:synopsis: The Atteq Service Layer. Service for exposing data to clients. Just provides DB access, feeds access and \
other various aspects of service applications.
.. moduleauthor:: Martin Babka <babka@atte... | """
:mod:`zsl` -- zsl module
========================
Main service module.
:platform: Unix, Windows
:synopsis: The Atteq Service Layer. Service for exposing data to clients. Just provides DB access, feeds access and \
other various aspects of service applications.
.. moduleauthor:: Martin Babka <babka@atte... | <commit_before>"""
:mod:`zsl` -- zsl module
========================
Main service module.
:platform: Unix, Windows
:synopsis: The Atteq Service Layer. Service for exposing data to clients. Just provides DB access, feeds access and \
other various aspects of service applications.
.. moduleauthor:: Martin Ba... |
2448e6ab81f8a2a0b320a07b42a3f8707ec918cb | chartflo/apps.py | chartflo/apps.py | from __future__ import unicode_literals
import importlib
from goerr import err
from django.apps import AppConfig
GENERATORS = {}
cf = None
def load_generator(modname, subgenerator=None):
try:
path = modname + ".chartflo"
if subgenerator is not None:
path = path + "." + subgenerator
... | from __future__ import unicode_literals
import importlib
from goerr import err
from django.apps import AppConfig
from chartflo.engine import ChartFlo
GENERATORS = {}
cf = ChartFlo()
def load_generator(modname, subgenerator=None):
try:
path = modname + ".chartflo"
if subgenerator is not None:
... | Fix in app initialization for generators | Fix in app initialization for generators
| Python | mit | synw/django-chartflo,synw/django-chartflo,synw/django-chartflo | from __future__ import unicode_literals
import importlib
from goerr import err
from django.apps import AppConfig
GENERATORS = {}
cf = None
def load_generator(modname, subgenerator=None):
try:
path = modname + ".chartflo"
if subgenerator is not None:
path = path + "." + subgenerator
... | from __future__ import unicode_literals
import importlib
from goerr import err
from django.apps import AppConfig
from chartflo.engine import ChartFlo
GENERATORS = {}
cf = ChartFlo()
def load_generator(modname, subgenerator=None):
try:
path = modname + ".chartflo"
if subgenerator is not None:
... | <commit_before>from __future__ import unicode_literals
import importlib
from goerr import err
from django.apps import AppConfig
GENERATORS = {}
cf = None
def load_generator(modname, subgenerator=None):
try:
path = modname + ".chartflo"
if subgenerator is not None:
path = path + "." +... | from __future__ import unicode_literals
import importlib
from goerr import err
from django.apps import AppConfig
from chartflo.engine import ChartFlo
GENERATORS = {}
cf = ChartFlo()
def load_generator(modname, subgenerator=None):
try:
path = modname + ".chartflo"
if subgenerator is not None:
... | from __future__ import unicode_literals
import importlib
from goerr import err
from django.apps import AppConfig
GENERATORS = {}
cf = None
def load_generator(modname, subgenerator=None):
try:
path = modname + ".chartflo"
if subgenerator is not None:
path = path + "." + subgenerator
... | <commit_before>from __future__ import unicode_literals
import importlib
from goerr import err
from django.apps import AppConfig
GENERATORS = {}
cf = None
def load_generator(modname, subgenerator=None):
try:
path = modname + ".chartflo"
if subgenerator is not None:
path = path + "." +... |
758315053a4aaa4ad027f8edd71ec6953d058300 | config/urls.py | config/urls.py | """All available endpoints of the chaospizza web project."""
# pylint: disable=C0111
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
from django.contrib import admin
from django.http import HttpResponse
# from django.views.generic import TemplateVi... | # pylint: disable=C0111
"""All available endpoints of the chaospizza web project."""
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
from django.contrib import admin
from django.http import HttpResponse
# from django.views.generic import TemplateVi... | Fix module docstring for url config | docs(project): Fix module docstring for url config
| Python | mit | chaosdorf/chaospizza,chaosdorf/chaospizza,chaosdorf/chaospizza | """All available endpoints of the chaospizza web project."""
# pylint: disable=C0111
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
from django.contrib import admin
from django.http import HttpResponse
# from django.views.generic import TemplateVi... | # pylint: disable=C0111
"""All available endpoints of the chaospizza web project."""
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
from django.contrib import admin
from django.http import HttpResponse
# from django.views.generic import TemplateVi... | <commit_before>"""All available endpoints of the chaospizza web project."""
# pylint: disable=C0111
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
from django.contrib import admin
from django.http import HttpResponse
# from django.views.generic im... | # pylint: disable=C0111
"""All available endpoints of the chaospizza web project."""
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
from django.contrib import admin
from django.http import HttpResponse
# from django.views.generic import TemplateVi... | """All available endpoints of the chaospizza web project."""
# pylint: disable=C0111
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
from django.contrib import admin
from django.http import HttpResponse
# from django.views.generic import TemplateVi... | <commit_before>"""All available endpoints of the chaospizza web project."""
# pylint: disable=C0111
from django.conf import settings
from django.conf.urls import include, url
# from django.conf.urls.static import static
from django.contrib import admin
from django.http import HttpResponse
# from django.views.generic im... |
462397f86c72d8746daa35756d7a26694c2cb557 | huxley/settings/conference.py | huxley/settings/conference.py | # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
SESSION = 66
| # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
SESSION = 67
| Change to the current session for registration opening | Change to the current session for registration opening
| Python | bsd-3-clause | bmun/huxley,bmun/huxley,bmun/huxley,bmun/huxley | # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
SESSION = 66
Change to the current session for registration opening | # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
SESSION = 67
| <commit_before># Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
SESSION = 66
<commit_msg>Change to the current session for registration opening<commit_after> | # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
SESSION = 67
| # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
SESSION = 66
Change to the current session for registration opening# Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code ... | <commit_before># Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
SESSION = 66
<commit_msg>Change to the current session for registration opening<commit_after># Copyright (c) 2011-2015 Berkeley Model United Nations. All ri... |
43bc1f2670b722d5fb1b0e34a0b098fd2f41bd77 | icekit/plugins/image/admin.py | icekit/plugins/image/admin.py | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['description', 'title', 'thumbnail']
list_display_links = ['description', 'thumbnail']
filter_horizontal = ['categories... | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'alt_text', 'title', ]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]... | Add search options for images, reorder field listing, use field names in list display rather than properties. | Add search options for images, reorder field listing, use field names in list display rather than properties.
| Python | mit | ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['description', 'title', 'thumbnail']
list_display_links = ['description', 'thumbnail']
filter_horizontal = ['categories... | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'alt_text', 'title', ]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]... | <commit_before>from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['description', 'title', 'thumbnail']
list_display_links = ['description', 'thumbnail']
filter_horizontal... | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'alt_text', 'title', ]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]... | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['description', 'title', 'thumbnail']
list_display_links = ['description', 'thumbnail']
filter_horizontal = ['categories... | <commit_before>from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['description', 'title', 'thumbnail']
list_display_links = ['description', 'thumbnail']
filter_horizontal... |
5f01b9da3cfa899037ac9f7c3262a08c074b5bf9 | bedrock/stories/urls.py | bedrock/stories/urls.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from bedrock.mozorg.util import page
urlpatterns = (
page("", "stories/landing.html"),
page("art-of-engagemen... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from bedrock.mozorg.util import page
from bedrock.redirects.util import redirect
urlpatterns = (
page("", "storie... | Add temporary redirect for stories URL | Add temporary redirect for stories URL
| Python | mpl-2.0 | mozilla/bedrock,mozilla/bedrock,alexgibson/bedrock,craigcook/bedrock,craigcook/bedrock,alexgibson/bedrock,craigcook/bedrock,alexgibson/bedrock,craigcook/bedrock,alexgibson/bedrock,mozilla/bedrock,mozilla/bedrock | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from bedrock.mozorg.util import page
urlpatterns = (
page("", "stories/landing.html"),
page("art-of-engagemen... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from bedrock.mozorg.util import page
from bedrock.redirects.util import redirect
urlpatterns = (
page("", "storie... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from bedrock.mozorg.util import page
urlpatterns = (
page("", "stories/landing.html"),
page("a... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from bedrock.mozorg.util import page
from bedrock.redirects.util import redirect
urlpatterns = (
page("", "storie... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from bedrock.mozorg.util import page
urlpatterns = (
page("", "stories/landing.html"),
page("art-of-engagemen... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from bedrock.mozorg.util import page
urlpatterns = (
page("", "stories/landing.html"),
page("a... |
6cda221478d3f67bc10ed13eb57854b493f6dbe2 | integration-test/366-beaches.py | integration-test/366-beaches.py | # Baker beach, SF
# https://www.openstreetmap.org/way/195638009
assert_has_feature(
18, 41881, 101308, 'landuse',
{ 'kind': 'beach' })
| # Baker beach, SF
# https://www.openstreetmap.org/relation/6260732
assert_has_feature(
18, 41881, 101308, 'landuse',
{ 'kind': 'beach' })
| Update test - Baker beach was turned into a relation. | Update test - Baker beach was turned into a relation.
| Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | # Baker beach, SF
# https://www.openstreetmap.org/way/195638009
assert_has_feature(
18, 41881, 101308, 'landuse',
{ 'kind': 'beach' })
Update test - Baker beach was turned into a relation. | # Baker beach, SF
# https://www.openstreetmap.org/relation/6260732
assert_has_feature(
18, 41881, 101308, 'landuse',
{ 'kind': 'beach' })
| <commit_before># Baker beach, SF
# https://www.openstreetmap.org/way/195638009
assert_has_feature(
18, 41881, 101308, 'landuse',
{ 'kind': 'beach' })
<commit_msg>Update test - Baker beach was turned into a relation.<commit_after> | # Baker beach, SF
# https://www.openstreetmap.org/relation/6260732
assert_has_feature(
18, 41881, 101308, 'landuse',
{ 'kind': 'beach' })
| # Baker beach, SF
# https://www.openstreetmap.org/way/195638009
assert_has_feature(
18, 41881, 101308, 'landuse',
{ 'kind': 'beach' })
Update test - Baker beach was turned into a relation.# Baker beach, SF
# https://www.openstreetmap.org/relation/6260732
assert_has_feature(
18, 41881, 101308, 'landuse',
... | <commit_before># Baker beach, SF
# https://www.openstreetmap.org/way/195638009
assert_has_feature(
18, 41881, 101308, 'landuse',
{ 'kind': 'beach' })
<commit_msg>Update test - Baker beach was turned into a relation.<commit_after># Baker beach, SF
# https://www.openstreetmap.org/relation/6260732
assert_has_featu... |
f1a6025fb7ba8e69ec52e868ec0f6fc7783aa688 | qipipe/helpers/xnat_config.py | qipipe/helpers/xnat_config.py | import os
__all__ = ['default_configuration']
def default_configuration():
"""
Returns the XNAT configuration file location determined as the first file
found in the following precedence order:
1. ``xnat.cfg`` in the home ``.xnat`` subdirectory
2. ``xnat.cfg`` in the home directory
... | import os
__all__ = ['default_configuration']
def default_configuration():
"""
Returns the XNAT configuration file location determined as the first file
found in the following precedence order:
1. The ``XNAT_CFG`` environment variable, if it is set.
1. ``xnat.cfg`` in the current workin... | Add XNAT_CFG env var to config list. | Add XNAT_CFG env var to config list.
| Python | bsd-2-clause | ohsu-qin/qipipe | import os
__all__ = ['default_configuration']
def default_configuration():
"""
Returns the XNAT configuration file location determined as the first file
found in the following precedence order:
1. ``xnat.cfg`` in the home ``.xnat`` subdirectory
2. ``xnat.cfg`` in the home directory
... | import os
__all__ = ['default_configuration']
def default_configuration():
"""
Returns the XNAT configuration file location determined as the first file
found in the following precedence order:
1. The ``XNAT_CFG`` environment variable, if it is set.
1. ``xnat.cfg`` in the current workin... | <commit_before>import os
__all__ = ['default_configuration']
def default_configuration():
"""
Returns the XNAT configuration file location determined as the first file
found in the following precedence order:
1. ``xnat.cfg`` in the home ``.xnat`` subdirectory
2. ``xnat.cfg`` in the home... | import os
__all__ = ['default_configuration']
def default_configuration():
"""
Returns the XNAT configuration file location determined as the first file
found in the following precedence order:
1. The ``XNAT_CFG`` environment variable, if it is set.
1. ``xnat.cfg`` in the current workin... | import os
__all__ = ['default_configuration']
def default_configuration():
"""
Returns the XNAT configuration file location determined as the first file
found in the following precedence order:
1. ``xnat.cfg`` in the home ``.xnat`` subdirectory
2. ``xnat.cfg`` in the home directory
... | <commit_before>import os
__all__ = ['default_configuration']
def default_configuration():
"""
Returns the XNAT configuration file location determined as the first file
found in the following precedence order:
1. ``xnat.cfg`` in the home ``.xnat`` subdirectory
2. ``xnat.cfg`` in the home... |
9921b6bd73c5256a3b65c2a5106717ce0fc8f0cf | djangorestframework/utils/breadcrumbs.py | djangorestframework/utils/breadcrumbs.py | from django.core.urlresolvers import resolve
def get_breadcrumbs(url):
"""Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
from djangorestframework.views import APIView
def breadcrumbs_recursive(url, breadcrumbs_list):
"""Add tuples of (name, url) to the bread... | from django.core.urlresolvers import resolve, get_script_prefix
def get_breadcrumbs(url):
"""Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
from djangorestframework.views import APIView
def breadcrumbs_recursive(url, breadcrumbs_list, prefix):
"""Add tuples ... | Use get_script_prefix to play nicely if not installed at the root. | Use get_script_prefix to play nicely if not installed at the root.
| Python | bsd-2-clause | rafaelcaricio/django-rest-framework,maryokhin/django-rest-framework,jtiai/django-rest-framework,cheif/django-rest-framework,vstoykov/django-rest-framework,wwj718/django-rest-framework,ebsaral/django-rest-framework,jpadilla/django-rest-framework,damycra/django-rest-framework,kezabelle/django-rest-framework,cyberj/django... | from django.core.urlresolvers import resolve
def get_breadcrumbs(url):
"""Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
from djangorestframework.views import APIView
def breadcrumbs_recursive(url, breadcrumbs_list):
"""Add tuples of (name, url) to the bread... | from django.core.urlresolvers import resolve, get_script_prefix
def get_breadcrumbs(url):
"""Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
from djangorestframework.views import APIView
def breadcrumbs_recursive(url, breadcrumbs_list, prefix):
"""Add tuples ... | <commit_before>from django.core.urlresolvers import resolve
def get_breadcrumbs(url):
"""Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
from djangorestframework.views import APIView
def breadcrumbs_recursive(url, breadcrumbs_list):
"""Add tuples of (name, ur... | from django.core.urlresolvers import resolve, get_script_prefix
def get_breadcrumbs(url):
"""Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
from djangorestframework.views import APIView
def breadcrumbs_recursive(url, breadcrumbs_list, prefix):
"""Add tuples ... | from django.core.urlresolvers import resolve
def get_breadcrumbs(url):
"""Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
from djangorestframework.views import APIView
def breadcrumbs_recursive(url, breadcrumbs_list):
"""Add tuples of (name, url) to the bread... | <commit_before>from django.core.urlresolvers import resolve
def get_breadcrumbs(url):
"""Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
from djangorestframework.views import APIView
def breadcrumbs_recursive(url, breadcrumbs_list):
"""Add tuples of (name, ur... |
d34311cf7bc4dd33e020913538b28a1f5727ed92 | kafka_influxdb/tests/encoder_test/test_echo_encoder.py | kafka_influxdb/tests/encoder_test/test_echo_encoder.py | import unittest
from kafka_influxdb.encoder import echo_encoder
class TestEchoEncoder(unittest.TestCase):
def setUp(self):
self.encoder = echo_encoder.Encoder()
self.messages = [
"yeaal",
["this", "is", "a", "list"],
{'hash': {'maps': 'rule'}},
42,
... | import unittest
from kafka_influxdb.encoder import echo_encoder
class TestEchoEncoder(unittest.TestCase):
def setUp(self):
self.encoder = echo_encoder.Encoder()
self.messages = [
"yeaal",
["this", "is", "a", "list"],
{'hash': {'maps': 'rule'}},
42,
... | Fix unit test for echo encoder | Fix unit test for echo encoder
| Python | apache-2.0 | mre/kafka-influxdb,mre/kafka-influxdb | import unittest
from kafka_influxdb.encoder import echo_encoder
class TestEchoEncoder(unittest.TestCase):
def setUp(self):
self.encoder = echo_encoder.Encoder()
self.messages = [
"yeaal",
["this", "is", "a", "list"],
{'hash': {'maps': 'rule'}},
42,
... | import unittest
from kafka_influxdb.encoder import echo_encoder
class TestEchoEncoder(unittest.TestCase):
def setUp(self):
self.encoder = echo_encoder.Encoder()
self.messages = [
"yeaal",
["this", "is", "a", "list"],
{'hash': {'maps': 'rule'}},
42,
... | <commit_before>import unittest
from kafka_influxdb.encoder import echo_encoder
class TestEchoEncoder(unittest.TestCase):
def setUp(self):
self.encoder = echo_encoder.Encoder()
self.messages = [
"yeaal",
["this", "is", "a", "list"],
{'hash': {'maps': 'rule'}},
... | import unittest
from kafka_influxdb.encoder import echo_encoder
class TestEchoEncoder(unittest.TestCase):
def setUp(self):
self.encoder = echo_encoder.Encoder()
self.messages = [
"yeaal",
["this", "is", "a", "list"],
{'hash': {'maps': 'rule'}},
42,
... | import unittest
from kafka_influxdb.encoder import echo_encoder
class TestEchoEncoder(unittest.TestCase):
def setUp(self):
self.encoder = echo_encoder.Encoder()
self.messages = [
"yeaal",
["this", "is", "a", "list"],
{'hash': {'maps': 'rule'}},
42,
... | <commit_before>import unittest
from kafka_influxdb.encoder import echo_encoder
class TestEchoEncoder(unittest.TestCase):
def setUp(self):
self.encoder = echo_encoder.Encoder()
self.messages = [
"yeaal",
["this", "is", "a", "list"],
{'hash': {'maps': 'rule'}},
... |
3557c8f2ab3f7b3e1ca5468b322e81022355e40c | interage/api/models/metadata.py | interage/api/models/metadata.py | from . import APIMetadataModel
from .properties import PropertyDescriptor
class InteracaoMetadata(APIMetadataModel):
@property
@PropertyDescriptor.serializable('evidencia')
def evidencias(self):
return self.__evidencias
@evidencias.setter
@PropertyDescriptor.list
def evidencias(self, v... | from . import APIMetadataModel
from .properties import PropertyDescriptor
class InteracaoMetadata(APIMetadataModel):
@property
@PropertyDescriptor.serializable('evidencia')
def evidencias(self):
return self.__evidencias
@evidencias.setter
@PropertyDescriptor.list
def evidencias(self, v... | Fix atributo serializable de gravidades | Fix atributo serializable de gravidades
| Python | mit | IntMed/interage_python_sdk | from . import APIMetadataModel
from .properties import PropertyDescriptor
class InteracaoMetadata(APIMetadataModel):
@property
@PropertyDescriptor.serializable('evidencia')
def evidencias(self):
return self.__evidencias
@evidencias.setter
@PropertyDescriptor.list
def evidencias(self, v... | from . import APIMetadataModel
from .properties import PropertyDescriptor
class InteracaoMetadata(APIMetadataModel):
@property
@PropertyDescriptor.serializable('evidencia')
def evidencias(self):
return self.__evidencias
@evidencias.setter
@PropertyDescriptor.list
def evidencias(self, v... | <commit_before>from . import APIMetadataModel
from .properties import PropertyDescriptor
class InteracaoMetadata(APIMetadataModel):
@property
@PropertyDescriptor.serializable('evidencia')
def evidencias(self):
return self.__evidencias
@evidencias.setter
@PropertyDescriptor.list
def evi... | from . import APIMetadataModel
from .properties import PropertyDescriptor
class InteracaoMetadata(APIMetadataModel):
@property
@PropertyDescriptor.serializable('evidencia')
def evidencias(self):
return self.__evidencias
@evidencias.setter
@PropertyDescriptor.list
def evidencias(self, v... | from . import APIMetadataModel
from .properties import PropertyDescriptor
class InteracaoMetadata(APIMetadataModel):
@property
@PropertyDescriptor.serializable('evidencia')
def evidencias(self):
return self.__evidencias
@evidencias.setter
@PropertyDescriptor.list
def evidencias(self, v... | <commit_before>from . import APIMetadataModel
from .properties import PropertyDescriptor
class InteracaoMetadata(APIMetadataModel):
@property
@PropertyDescriptor.serializable('evidencia')
def evidencias(self):
return self.__evidencias
@evidencias.setter
@PropertyDescriptor.list
def evi... |
c2ae6fb563b1ecc20b11ec6d693bad8a7f9e8945 | scrapple/utils/exceptions.py | scrapple/utils/exceptions.py | """
scrapple.utils.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to handling exceptions in the input arguments
"""
import re
def handle_exceptions(args):
"""
Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module
:return: None... | """
scrapple.utils.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to handling exceptions in the input arguments
"""
import re
def handle_exceptions(args):
"""
Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module
:return: None... | Update exception handling for levels argument | Update exception handling for levels argument
| Python | mit | scrappleapp/scrapple,AlexMathew/scrapple,AlexMathew/scrapple,scrappleapp/scrapple,AlexMathew/scrapple | """
scrapple.utils.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to handling exceptions in the input arguments
"""
import re
def handle_exceptions(args):
"""
Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module
:return: None... | """
scrapple.utils.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to handling exceptions in the input arguments
"""
import re
def handle_exceptions(args):
"""
Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module
:return: None... | <commit_before>"""
scrapple.utils.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to handling exceptions in the input arguments
"""
import re
def handle_exceptions(args):
"""
Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module... | """
scrapple.utils.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to handling exceptions in the input arguments
"""
import re
def handle_exceptions(args):
"""
Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module
:return: None... | """
scrapple.utils.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to handling exceptions in the input arguments
"""
import re
def handle_exceptions(args):
"""
Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module
:return: None... | <commit_before>"""
scrapple.utils.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~
Functions related to handling exceptions in the input arguments
"""
import re
def handle_exceptions(args):
"""
Validates the arguments passed through the CLI commands.
:param args: The arguments passed in the CLI, parsed by the docopt module... |
b1a9f626b81082123e4df448ed12f992d005d0cc | flaskext/debugtoolbar/panels/template.py | flaskext/debugtoolbar/panels/template.py | from flask import template_rendered
from flaskext.debugtoolbar.panels import DebugPanel
_ = lambda x: x
class TemplateDebugPanel(DebugPanel):
"""
Panel that displays the time a response took in milliseconds.
"""
name = 'Timer'
has_content = True
def __init__(self, *args, **kwargs):
su... | from flask import template_rendered
from flaskext.debugtoolbar.panels import DebugPanel
_ = lambda x: x
class TemplateDebugPanel(DebugPanel):
"""
Panel that displays the time a response took in milliseconds.
"""
name = 'Template'
has_content = True
def __init__(self, *args, **kwargs):
... | Fix bug in timer panel display | Fix bug in timer panel display | Python | bsd-3-clause | lepture/flask-debugtoolbar,lepture/flask-debugtoolbar,dianchang/flask-debugtoolbar,dianchang/flask-debugtoolbar,dianchang/flask-debugtoolbar | from flask import template_rendered
from flaskext.debugtoolbar.panels import DebugPanel
_ = lambda x: x
class TemplateDebugPanel(DebugPanel):
"""
Panel that displays the time a response took in milliseconds.
"""
name = 'Timer'
has_content = True
def __init__(self, *args, **kwargs):
su... | from flask import template_rendered
from flaskext.debugtoolbar.panels import DebugPanel
_ = lambda x: x
class TemplateDebugPanel(DebugPanel):
"""
Panel that displays the time a response took in milliseconds.
"""
name = 'Template'
has_content = True
def __init__(self, *args, **kwargs):
... | <commit_before>from flask import template_rendered
from flaskext.debugtoolbar.panels import DebugPanel
_ = lambda x: x
class TemplateDebugPanel(DebugPanel):
"""
Panel that displays the time a response took in milliseconds.
"""
name = 'Timer'
has_content = True
def __init__(self, *args, **kwar... | from flask import template_rendered
from flaskext.debugtoolbar.panels import DebugPanel
_ = lambda x: x
class TemplateDebugPanel(DebugPanel):
"""
Panel that displays the time a response took in milliseconds.
"""
name = 'Template'
has_content = True
def __init__(self, *args, **kwargs):
... | from flask import template_rendered
from flaskext.debugtoolbar.panels import DebugPanel
_ = lambda x: x
class TemplateDebugPanel(DebugPanel):
"""
Panel that displays the time a response took in milliseconds.
"""
name = 'Timer'
has_content = True
def __init__(self, *args, **kwargs):
su... | <commit_before>from flask import template_rendered
from flaskext.debugtoolbar.panels import DebugPanel
_ = lambda x: x
class TemplateDebugPanel(DebugPanel):
"""
Panel that displays the time a response took in milliseconds.
"""
name = 'Timer'
has_content = True
def __init__(self, *args, **kwar... |
0041b029cc9b55084c89a9875de5e85728b9083c | src/birding/spout.py | src/birding/spout.py | from __future__ import absolute_import, print_function
import datetime
import itertools
from streamparse.spout import Spout
class SimpleSimulationSpout(Spout):
urls = [
'http://www.parsely.com/',
'http://streamparse.readthedocs.org/',
'https://pypi.python.org/pypi/streamparse',
]
... | from __future__ import absolute_import, print_function
import datetime
import itertools
from streamparse.spout import Spout
class SimpleSimulationSpout(Spout):
terms = [
'real-time analytics',
'apache storm',
'pypi',
]
def initialize(self, stormconf, context):
self.term_... | Change simulation to search terms. | Change simulation to search terms.
| Python | apache-2.0 | Parsely/birding,Parsely/birding | from __future__ import absolute_import, print_function
import datetime
import itertools
from streamparse.spout import Spout
class SimpleSimulationSpout(Spout):
urls = [
'http://www.parsely.com/',
'http://streamparse.readthedocs.org/',
'https://pypi.python.org/pypi/streamparse',
]
... | from __future__ import absolute_import, print_function
import datetime
import itertools
from streamparse.spout import Spout
class SimpleSimulationSpout(Spout):
terms = [
'real-time analytics',
'apache storm',
'pypi',
]
def initialize(self, stormconf, context):
self.term_... | <commit_before>from __future__ import absolute_import, print_function
import datetime
import itertools
from streamparse.spout import Spout
class SimpleSimulationSpout(Spout):
urls = [
'http://www.parsely.com/',
'http://streamparse.readthedocs.org/',
'https://pypi.python.org/pypi/streampa... | from __future__ import absolute_import, print_function
import datetime
import itertools
from streamparse.spout import Spout
class SimpleSimulationSpout(Spout):
terms = [
'real-time analytics',
'apache storm',
'pypi',
]
def initialize(self, stormconf, context):
self.term_... | from __future__ import absolute_import, print_function
import datetime
import itertools
from streamparse.spout import Spout
class SimpleSimulationSpout(Spout):
urls = [
'http://www.parsely.com/',
'http://streamparse.readthedocs.org/',
'https://pypi.python.org/pypi/streamparse',
]
... | <commit_before>from __future__ import absolute_import, print_function
import datetime
import itertools
from streamparse.spout import Spout
class SimpleSimulationSpout(Spout):
urls = [
'http://www.parsely.com/',
'http://streamparse.readthedocs.org/',
'https://pypi.python.org/pypi/streampa... |
80650a2f32ce8e3de4c26f2bc3fce4bab34cb36f | test/__init__.py | test/__init__.py | # -*- coding: utf-8 -*-
import os
from betamax import Betamax
from betamax_serializers import pretty_json
URL = os.environ.get('CONTENT_SERVICE_URL', 'http://dockerdev:9000')
APIKEY = os.environ.get('CONTENT_SERVICE_APIKEY', '12341234')
Betamax.register_serializer(pretty_json.PrettyJSONSerializer)
with Betamax.conf... | # -*- coding: utf-8 -*-
import os
from betamax import Betamax
from betamax_serializers import pretty_json
URL = os.environ.get('CONTENT_SERVICE_URL', 'http://dockerdev:9000')
APIKEY = os.environ.get('CONTENT_SERVICE_APIKEY', '12341234')
if URL.endswith('/'):
URL = URL[:-1]
Betamax.register_serializer(pretty_js... | Normalize URL for test cases. | Normalize URL for test cases.
| Python | apache-2.0 | deconst/submitter,deconst/submitter | # -*- coding: utf-8 -*-
import os
from betamax import Betamax
from betamax_serializers import pretty_json
URL = os.environ.get('CONTENT_SERVICE_URL', 'http://dockerdev:9000')
APIKEY = os.environ.get('CONTENT_SERVICE_APIKEY', '12341234')
Betamax.register_serializer(pretty_json.PrettyJSONSerializer)
with Betamax.conf... | # -*- coding: utf-8 -*-
import os
from betamax import Betamax
from betamax_serializers import pretty_json
URL = os.environ.get('CONTENT_SERVICE_URL', 'http://dockerdev:9000')
APIKEY = os.environ.get('CONTENT_SERVICE_APIKEY', '12341234')
if URL.endswith('/'):
URL = URL[:-1]
Betamax.register_serializer(pretty_js... | <commit_before># -*- coding: utf-8 -*-
import os
from betamax import Betamax
from betamax_serializers import pretty_json
URL = os.environ.get('CONTENT_SERVICE_URL', 'http://dockerdev:9000')
APIKEY = os.environ.get('CONTENT_SERVICE_APIKEY', '12341234')
Betamax.register_serializer(pretty_json.PrettyJSONSerializer)
wi... | # -*- coding: utf-8 -*-
import os
from betamax import Betamax
from betamax_serializers import pretty_json
URL = os.environ.get('CONTENT_SERVICE_URL', 'http://dockerdev:9000')
APIKEY = os.environ.get('CONTENT_SERVICE_APIKEY', '12341234')
if URL.endswith('/'):
URL = URL[:-1]
Betamax.register_serializer(pretty_js... | # -*- coding: utf-8 -*-
import os
from betamax import Betamax
from betamax_serializers import pretty_json
URL = os.environ.get('CONTENT_SERVICE_URL', 'http://dockerdev:9000')
APIKEY = os.environ.get('CONTENT_SERVICE_APIKEY', '12341234')
Betamax.register_serializer(pretty_json.PrettyJSONSerializer)
with Betamax.conf... | <commit_before># -*- coding: utf-8 -*-
import os
from betamax import Betamax
from betamax_serializers import pretty_json
URL = os.environ.get('CONTENT_SERVICE_URL', 'http://dockerdev:9000')
APIKEY = os.environ.get('CONTENT_SERVICE_APIKEY', '12341234')
Betamax.register_serializer(pretty_json.PrettyJSONSerializer)
wi... |
36a915d5c116ac9c1067ba1cdd079d0c27054b7e | skimage/exposure/__init__.py | skimage/exposure/__init__.py | from .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribution
from ._adapthist import equalize_adapthist
| from .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribution
from ._adapthist import equalize_adapthist
__all__ = ['histogram',
'equalize',
'equalize_hist',
'equalize_adapthist',
'rescale_intensity',
... | Add __all__ to exposure package | Add __all__ to exposure package
| Python | bsd-3-clause | blink1073/scikit-image,SamHames/scikit-image,almarklein/scikit-image,jwiggins/scikit-image,vighneshbirodkar/scikit-image,warmspringwinds/scikit-image,keflavich/scikit-image,vighneshbirodkar/scikit-image,pratapvardhan/scikit-image,michaelaye/scikit-image,emon10005/scikit-image,ofgulban/scikit-image,chintak/scikit-image,... | from .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribution
from ._adapthist import equalize_adapthist
Add __all__ to exposure package | from .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribution
from ._adapthist import equalize_adapthist
__all__ = ['histogram',
'equalize',
'equalize_hist',
'equalize_adapthist',
'rescale_intensity',
... | <commit_before>from .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribution
from ._adapthist import equalize_adapthist
<commit_msg>Add __all__ to exposure package<commit_after> | from .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribution
from ._adapthist import equalize_adapthist
__all__ = ['histogram',
'equalize',
'equalize_hist',
'equalize_adapthist',
'rescale_intensity',
... | from .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribution
from ._adapthist import equalize_adapthist
Add __all__ to exposure packagefrom .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribut... | <commit_before>from .exposure import histogram, equalize, equalize_hist, \
rescale_intensity, cumulative_distribution
from ._adapthist import equalize_adapthist
<commit_msg>Add __all__ to exposure package<commit_after>from .exposure import histogram, equalize, equalize_hist, \
... |
81e3425bc6b2b9b35071afd7c14322f0dd52b418 | oneanddone/tests/functional/tests/test_task_assignment.py | oneanddone/tests/functional/tests/test_task_assignment.py | # This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
class TestAvailableTasks():
@pytest.mark.no... | # This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
class TestAvailableTasks():
@pytest.mark.no... | Add positive test for search | Add positive test for search
| Python | mpl-2.0 | VarnaSuresh/oneanddone,VarnaSuresh/oneanddone,VarnaSuresh/oneanddone,VarnaSuresh/oneanddone | # This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
class TestAvailableTasks():
@pytest.mark.no... | # This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
class TestAvailableTasks():
@pytest.mark.no... | <commit_before># This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
class TestAvailableTasks():
... | # This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
class TestAvailableTasks():
@pytest.mark.no... | # This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
class TestAvailableTasks():
@pytest.mark.no... | <commit_before># This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.home import HomePage
class TestAvailableTasks():
... |
62047d430b1eef61999599b4848237a31f28deae | testprodapp/testapp/admin.py | testprodapp/testapp/admin.py | from django.contrib import admin
from django.http import HttpResponseRedirect, Http404
from django.conf.urls import patterns
from django.conf.urls import url
from django.shortcuts import redirect
from .models import TestResult
from .prod_tests.entity_counting_test import test_entity_count_vs_length
class TestResult... | from django.contrib import admin
from django.http import HttpResponseRedirect, Http404
from django.conf.urls import url
from django.utils.decorators import method_decorator
from django.contrib.admin.views.decorators import staff_member_required
from .models import TestResult
from .prod_tests.entity_counting_test impo... | Make sure the trigger view is locked down | Make sure the trigger view is locked down
| Python | bsd-3-clause | grzes/djangae,potatolondon/djangae,grzes/djangae,potatolondon/djangae,grzes/djangae | from django.contrib import admin
from django.http import HttpResponseRedirect, Http404
from django.conf.urls import patterns
from django.conf.urls import url
from django.shortcuts import redirect
from .models import TestResult
from .prod_tests.entity_counting_test import test_entity_count_vs_length
class TestResult... | from django.contrib import admin
from django.http import HttpResponseRedirect, Http404
from django.conf.urls import url
from django.utils.decorators import method_decorator
from django.contrib.admin.views.decorators import staff_member_required
from .models import TestResult
from .prod_tests.entity_counting_test impo... | <commit_before>from django.contrib import admin
from django.http import HttpResponseRedirect, Http404
from django.conf.urls import patterns
from django.conf.urls import url
from django.shortcuts import redirect
from .models import TestResult
from .prod_tests.entity_counting_test import test_entity_count_vs_length
c... | from django.contrib import admin
from django.http import HttpResponseRedirect, Http404
from django.conf.urls import url
from django.utils.decorators import method_decorator
from django.contrib.admin.views.decorators import staff_member_required
from .models import TestResult
from .prod_tests.entity_counting_test impo... | from django.contrib import admin
from django.http import HttpResponseRedirect, Http404
from django.conf.urls import patterns
from django.conf.urls import url
from django.shortcuts import redirect
from .models import TestResult
from .prod_tests.entity_counting_test import test_entity_count_vs_length
class TestResult... | <commit_before>from django.contrib import admin
from django.http import HttpResponseRedirect, Http404
from django.conf.urls import patterns
from django.conf.urls import url
from django.shortcuts import redirect
from .models import TestResult
from .prod_tests.entity_counting_test import test_entity_count_vs_length
c... |
4ca4cfde2daceced65aa0dd4a7bf0226f23efc33 | byceps/config_defaults.py | byceps/config_defaults.py | """
byceps.config_defaults
~~~~~~~~~~~~~~~~~~~~~~
Default configuration values
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import timedelta
# database connection
SQLALCHEMY_ECHO = False
# Disable Flask-SQLAlchemy's tracking of object modifications.... | """
byceps.config_defaults
~~~~~~~~~~~~~~~~~~~~~~
Default configuration values
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import timedelta
from pathlib import Path
# database connection
SQLALCHEMY_ECHO = False
# Disable Flask-SQLAlchemy's tracking... | Add missing import of `Path` | Add missing import of `Path`
| Python | bsd-3-clause | homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps | """
byceps.config_defaults
~~~~~~~~~~~~~~~~~~~~~~
Default configuration values
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import timedelta
# database connection
SQLALCHEMY_ECHO = False
# Disable Flask-SQLAlchemy's tracking of object modifications.... | """
byceps.config_defaults
~~~~~~~~~~~~~~~~~~~~~~
Default configuration values
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import timedelta
from pathlib import Path
# database connection
SQLALCHEMY_ECHO = False
# Disable Flask-SQLAlchemy's tracking... | <commit_before>"""
byceps.config_defaults
~~~~~~~~~~~~~~~~~~~~~~
Default configuration values
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import timedelta
# database connection
SQLALCHEMY_ECHO = False
# Disable Flask-SQLAlchemy's tracking of object... | """
byceps.config_defaults
~~~~~~~~~~~~~~~~~~~~~~
Default configuration values
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import timedelta
from pathlib import Path
# database connection
SQLALCHEMY_ECHO = False
# Disable Flask-SQLAlchemy's tracking... | """
byceps.config_defaults
~~~~~~~~~~~~~~~~~~~~~~
Default configuration values
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import timedelta
# database connection
SQLALCHEMY_ECHO = False
# Disable Flask-SQLAlchemy's tracking of object modifications.... | <commit_before>"""
byceps.config_defaults
~~~~~~~~~~~~~~~~~~~~~~
Default configuration values
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import timedelta
# database connection
SQLALCHEMY_ECHO = False
# Disable Flask-SQLAlchemy's tracking of object... |
bde67aa0ad7aec9c281da65a59e8e8ab82b75918 | app/cogs/admin.py | app/cogs/admin.py | from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Context
import checks
class Admin:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
@checks.is_owner()
async def my_id(self, ctx: Context):
"""Temporary ... | import logging
from discord import ClientException
from discord.ext import commands
from discord.ext.commands import Bot, Context
from discord.ext.commands import UserInputError
import checks
logger = logging.getLogger(__name__)
class Admin:
def __init__(self, bot: Bot):
self.bot = bot
@commands.g... | Add extension load/unload commands (owner only) | Add extension load/unload commands (owner only)
| Python | mit | andrewlin16/duckbot,andrewlin16/duckbot | from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Context
import checks
class Admin:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
@checks.is_owner()
async def my_id(self, ctx: Context):
"""Temporary ... | import logging
from discord import ClientException
from discord.ext import commands
from discord.ext.commands import Bot, Context
from discord.ext.commands import UserInputError
import checks
logger = logging.getLogger(__name__)
class Admin:
def __init__(self, bot: Bot):
self.bot = bot
@commands.g... | <commit_before>from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Context
import checks
class Admin:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
@checks.is_owner()
async def my_id(self, ctx: Context):
... | import logging
from discord import ClientException
from discord.ext import commands
from discord.ext.commands import Bot, Context
from discord.ext.commands import UserInputError
import checks
logger = logging.getLogger(__name__)
class Admin:
def __init__(self, bot: Bot):
self.bot = bot
@commands.g... | from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Context
import checks
class Admin:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
@checks.is_owner()
async def my_id(self, ctx: Context):
"""Temporary ... | <commit_before>from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Context
import checks
class Admin:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
@checks.is_owner()
async def my_id(self, ctx: Context):
... |
f9af714b63f4c3c8370a5f2cffbbd7dfb6dc3181 | nova/tests/scheduler/__init__.py | nova/tests/scheduler/__init__.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Openstack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | Make sure test setup is run for subdirectories | Make sure test setup is run for subdirectories | Python | apache-2.0 | n0ano/gantt,n0ano/gantt | Make sure test setup is run for subdirectories | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Openstack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | <commit_before><commit_msg>Make sure test setup is run for subdirectories<commit_after> | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Openstack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | Make sure test setup is run for subdirectories# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Openstack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the... | <commit_before><commit_msg>Make sure test setup is run for subdirectories<commit_after># vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Openstack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the L... | |
483ba69bca57899054270cb24c41b0d2c01e7ff0 | opentreemap/stormwater/models.py | opentreemap/stormwater/models.py | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.gis.db import models
from treemap.models import MapFeature
class PolygonalMapFeature(MapFeature):
area_field_name = 'polygon'
skip_detail_form = True
... | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.gis.db import models
from treemap.models import MapFeature
class PolygonalMapFeature(MapFeature):
area_field_name = 'polygon'
skip_detail_form = True
... | Add placeholder defaults for bioswale stewardship | Add placeholder defaults for bioswale stewardship
| Python | agpl-3.0 | clever-crow-consulting/otm-core,clever-crow-consulting/otm-core,recklessromeo/otm-core,maurizi/otm-core,recklessromeo/otm-core,RickMohr/otm-core,RickMohr/otm-core,RickMohr/otm-core,clever-crow-consulting/otm-core,clever-crow-consulting/otm-core,RickMohr/otm-core,recklessromeo/otm-core,maurizi/otm-core,maurizi/otm-core,... | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.gis.db import models
from treemap.models import MapFeature
class PolygonalMapFeature(MapFeature):
area_field_name = 'polygon'
skip_detail_form = True
... | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.gis.db import models
from treemap.models import MapFeature
class PolygonalMapFeature(MapFeature):
area_field_name = 'polygon'
skip_detail_form = True
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.gis.db import models
from treemap.models import MapFeature
class PolygonalMapFeature(MapFeature):
area_field_name = 'polygon'
skip_detail_f... | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.gis.db import models
from treemap.models import MapFeature
class PolygonalMapFeature(MapFeature):
area_field_name = 'polygon'
skip_detail_form = True
... | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.gis.db import models
from treemap.models import MapFeature
class PolygonalMapFeature(MapFeature):
area_field_name = 'polygon'
skip_detail_form = True
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.gis.db import models
from treemap.models import MapFeature
class PolygonalMapFeature(MapFeature):
area_field_name = 'polygon'
skip_detail_f... |
7481aede4fffc9bc6cf307a70d6d96f2eabbe0be | floo/shared.py | floo/shared.py | __VERSION__ = '0.02'
DEBUG = False
PLUGIN_PATH = None
MAX_RETRIES = 20
INITIAL_RECONNECT_DELAY = 500 # milliseconds
CONNECTED = False
COLAB_DIR = ''
PROJECT_PATH = ''
DEFAULT_HOST = ''
DEFAULT_PORT = ''
SECURE = True
USERNAME = ''
SECRET = ''
ALERT_ON_MSG = True
PERMS = []
WORKSPACE_WINDOW = None
CHAT_VIEW =... | __VERSION__ = '0.02'
DEBUG = False
PLUGIN_PATH = None
MAX_RETRIES = 20
INITIAL_RECONNECT_DELAY = 500 # milliseconds
CONNECTED = False
COLAB_DIR = ''
PROJECT_PATH = ''
DEFAULT_HOST = ''
DEFAULT_PORT = ''
SECURE = True
USERNAME = ''
SECRET = ''
ALERT_ON_MSG = True
PERMS = []
WORKSPACE_WINDOW = None
CHAT_VIEW =... | Make tick time a global | Make tick time a global
| Python | apache-2.0 | Floobits/floobits-sublime,Floobits/floobits-sublime | __VERSION__ = '0.02'
DEBUG = False
PLUGIN_PATH = None
MAX_RETRIES = 20
INITIAL_RECONNECT_DELAY = 500 # milliseconds
CONNECTED = False
COLAB_DIR = ''
PROJECT_PATH = ''
DEFAULT_HOST = ''
DEFAULT_PORT = ''
SECURE = True
USERNAME = ''
SECRET = ''
ALERT_ON_MSG = True
PERMS = []
WORKSPACE_WINDOW = None
CHAT_VIEW =... | __VERSION__ = '0.02'
DEBUG = False
PLUGIN_PATH = None
MAX_RETRIES = 20
INITIAL_RECONNECT_DELAY = 500 # milliseconds
CONNECTED = False
COLAB_DIR = ''
PROJECT_PATH = ''
DEFAULT_HOST = ''
DEFAULT_PORT = ''
SECURE = True
USERNAME = ''
SECRET = ''
ALERT_ON_MSG = True
PERMS = []
WORKSPACE_WINDOW = None
CHAT_VIEW =... | <commit_before>__VERSION__ = '0.02'
DEBUG = False
PLUGIN_PATH = None
MAX_RETRIES = 20
INITIAL_RECONNECT_DELAY = 500 # milliseconds
CONNECTED = False
COLAB_DIR = ''
PROJECT_PATH = ''
DEFAULT_HOST = ''
DEFAULT_PORT = ''
SECURE = True
USERNAME = ''
SECRET = ''
ALERT_ON_MSG = True
PERMS = []
WORKSPACE_WINDOW = No... | __VERSION__ = '0.02'
DEBUG = False
PLUGIN_PATH = None
MAX_RETRIES = 20
INITIAL_RECONNECT_DELAY = 500 # milliseconds
CONNECTED = False
COLAB_DIR = ''
PROJECT_PATH = ''
DEFAULT_HOST = ''
DEFAULT_PORT = ''
SECURE = True
USERNAME = ''
SECRET = ''
ALERT_ON_MSG = True
PERMS = []
WORKSPACE_WINDOW = None
CHAT_VIEW =... | __VERSION__ = '0.02'
DEBUG = False
PLUGIN_PATH = None
MAX_RETRIES = 20
INITIAL_RECONNECT_DELAY = 500 # milliseconds
CONNECTED = False
COLAB_DIR = ''
PROJECT_PATH = ''
DEFAULT_HOST = ''
DEFAULT_PORT = ''
SECURE = True
USERNAME = ''
SECRET = ''
ALERT_ON_MSG = True
PERMS = []
WORKSPACE_WINDOW = None
CHAT_VIEW =... | <commit_before>__VERSION__ = '0.02'
DEBUG = False
PLUGIN_PATH = None
MAX_RETRIES = 20
INITIAL_RECONNECT_DELAY = 500 # milliseconds
CONNECTED = False
COLAB_DIR = ''
PROJECT_PATH = ''
DEFAULT_HOST = ''
DEFAULT_PORT = ''
SECURE = True
USERNAME = ''
SECRET = ''
ALERT_ON_MSG = True
PERMS = []
WORKSPACE_WINDOW = No... |
d637df6df273c2d07cbb834cf2729a4251ee2ff1 | cyder/base/forms.py | cyder/base/forms.py | from django import forms
class BugReportForm(forms.Form):
bug = forms.CharField(label="Bug: - (required)", required=True)
description = forms.CharField(
label="Description: - (required)",
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50}), required=True)
reproduce = forms.CharField(
... | from django import forms
class BugReportForm(forms.Form):
bug = forms.CharField(label="Bug (required)", required=True)
description = forms.CharField(
label="Description (required)",
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50}), required=True)
reproduce = forms.CharField(
l... | Remove redundant colons and superfluous hyphens | Remove redundant colons and superfluous hyphens
| Python | bsd-3-clause | OSU-Net/cyder,akeym/cyder,zeeman/cyder,zeeman/cyder,drkitty/cyder,murrown/cyder,drkitty/cyder,drkitty/cyder,murrown/cyder,akeym/cyder,akeym/cyder,OSU-Net/cyder,murrown/cyder,OSU-Net/cyder,drkitty/cyder,akeym/cyder,OSU-Net/cyder,murrown/cyder,zeeman/cyder,zeeman/cyder | from django import forms
class BugReportForm(forms.Form):
bug = forms.CharField(label="Bug: - (required)", required=True)
description = forms.CharField(
label="Description: - (required)",
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50}), required=True)
reproduce = forms.CharField(
... | from django import forms
class BugReportForm(forms.Form):
bug = forms.CharField(label="Bug (required)", required=True)
description = forms.CharField(
label="Description (required)",
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50}), required=True)
reproduce = forms.CharField(
l... | <commit_before>from django import forms
class BugReportForm(forms.Form):
bug = forms.CharField(label="Bug: - (required)", required=True)
description = forms.CharField(
label="Description: - (required)",
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50}), required=True)
reproduce = forms... | from django import forms
class BugReportForm(forms.Form):
bug = forms.CharField(label="Bug (required)", required=True)
description = forms.CharField(
label="Description (required)",
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50}), required=True)
reproduce = forms.CharField(
l... | from django import forms
class BugReportForm(forms.Form):
bug = forms.CharField(label="Bug: - (required)", required=True)
description = forms.CharField(
label="Description: - (required)",
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50}), required=True)
reproduce = forms.CharField(
... | <commit_before>from django import forms
class BugReportForm(forms.Form):
bug = forms.CharField(label="Bug: - (required)", required=True)
description = forms.CharField(
label="Description: - (required)",
widget=forms.Textarea(attrs={'rows': 4, 'cols': 50}), required=True)
reproduce = forms... |
36b771ce3028200f57255633dbfa4f6b991e1674 | fuckit_commit.py | fuckit_commit.py | '''
This module will send SMS reminders periodically, using Twilio.
The aim is to encourage user to code, commit and push to GitHub everyday
'''
import requests
from twilio.rest import TwilioRestClient
def get_configuration():
'''
Set Twilio configuration
'''
pass
def get_twilio_client(config):
'... | '''
This module will send SMS reminders periodically, using Twilio.
The aim is to encourage user to code, commit and push to GitHub everyday
'''
import requests
from twilio.rest import TwilioRestClient
def send_sms():
'''
Send SMS reminder
'''
config = {'account_sid' : '', 'auth_token' : ''}
clien... | Add code to send sms | Add code to send sms
| Python | mit | ueg1990/fuckit_commit | '''
This module will send SMS reminders periodically, using Twilio.
The aim is to encourage user to code, commit and push to GitHub everyday
'''
import requests
from twilio.rest import TwilioRestClient
def get_configuration():
'''
Set Twilio configuration
'''
pass
def get_twilio_client(config):
'... | '''
This module will send SMS reminders periodically, using Twilio.
The aim is to encourage user to code, commit and push to GitHub everyday
'''
import requests
from twilio.rest import TwilioRestClient
def send_sms():
'''
Send SMS reminder
'''
config = {'account_sid' : '', 'auth_token' : ''}
clien... | <commit_before>'''
This module will send SMS reminders periodically, using Twilio.
The aim is to encourage user to code, commit and push to GitHub everyday
'''
import requests
from twilio.rest import TwilioRestClient
def get_configuration():
'''
Set Twilio configuration
'''
pass
def get_twilio_client... | '''
This module will send SMS reminders periodically, using Twilio.
The aim is to encourage user to code, commit and push to GitHub everyday
'''
import requests
from twilio.rest import TwilioRestClient
def send_sms():
'''
Send SMS reminder
'''
config = {'account_sid' : '', 'auth_token' : ''}
clien... | '''
This module will send SMS reminders periodically, using Twilio.
The aim is to encourage user to code, commit and push to GitHub everyday
'''
import requests
from twilio.rest import TwilioRestClient
def get_configuration():
'''
Set Twilio configuration
'''
pass
def get_twilio_client(config):
'... | <commit_before>'''
This module will send SMS reminders periodically, using Twilio.
The aim is to encourage user to code, commit and push to GitHub everyday
'''
import requests
from twilio.rest import TwilioRestClient
def get_configuration():
'''
Set Twilio configuration
'''
pass
def get_twilio_client... |
945d64464857581052e18d79e62a6fde8bdecb9b | fabfile.py | fabfile.py | import sys
from fabric.api import local, task
@task
def start_db():
if sys.platform.startswith('darwin'):
# Mac OSX
local('postgres -D /usr/local/var/postgres -s')
| import sys
from pathlib import Path
from fabric.api import local, task, lcd, env
from fabric.contrib.console import confirm
from fabric.utils import abort
src_p = Path(env.real_fabfile).parent / 'src'
@task
def start_db():
if sys.platform.startswith('darwin'):
# Mac OSX
local('postgres -D /usr/lo... | Add fab command to backup and destroy database | Add fab command to backup and destroy database
| Python | mit | ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai | import sys
from fabric.api import local, task
@task
def start_db():
if sys.platform.startswith('darwin'):
# Mac OSX
local('postgres -D /usr/local/var/postgres -s')
Add fab command to backup and destroy database | import sys
from pathlib import Path
from fabric.api import local, task, lcd, env
from fabric.contrib.console import confirm
from fabric.utils import abort
src_p = Path(env.real_fabfile).parent / 'src'
@task
def start_db():
if sys.platform.startswith('darwin'):
# Mac OSX
local('postgres -D /usr/lo... | <commit_before>import sys
from fabric.api import local, task
@task
def start_db():
if sys.platform.startswith('darwin'):
# Mac OSX
local('postgres -D /usr/local/var/postgres -s')
<commit_msg>Add fab command to backup and destroy database<commit_after> | import sys
from pathlib import Path
from fabric.api import local, task, lcd, env
from fabric.contrib.console import confirm
from fabric.utils import abort
src_p = Path(env.real_fabfile).parent / 'src'
@task
def start_db():
if sys.platform.startswith('darwin'):
# Mac OSX
local('postgres -D /usr/lo... | import sys
from fabric.api import local, task
@task
def start_db():
if sys.platform.startswith('darwin'):
# Mac OSX
local('postgres -D /usr/local/var/postgres -s')
Add fab command to backup and destroy databaseimport sys
from pathlib import Path
from fabric.api import local, task, lcd, env
from fab... | <commit_before>import sys
from fabric.api import local, task
@task
def start_db():
if sys.platform.startswith('darwin'):
# Mac OSX
local('postgres -D /usr/local/var/postgres -s')
<commit_msg>Add fab command to backup and destroy database<commit_after>import sys
from pathlib import Path
from fabric.... |
b9ef360f5ff1b24c274e1194c1272d953e780683 | pymt/printers/nc/tests/test_ugrid_read.py | pymt/printers/nc/tests/test_ugrid_read.py | import os
from pymt.printers.nc.read import field_fromfile
_BASE_URL_FOR_TEST_FILES = ('http://csdms.colorado.edu/thredds/fileServer'
'/benchmark/ugrid/')
_TMP_DIR = 'tmp'
def setup():
import tempfile
globals().update({
'_TMP_DIR': tempfile.mkdtemp(dir='.')
})
def... | import os
from pymt.printers.nc.read import field_fromfile
_BASE_URL_FOR_TEST_FILES = ('https://csdms.colorado.edu/thredds/fileServer'
'/benchmark/ugrid/')
_TMP_DIR = 'tmp'
def setup():
import tempfile
globals().update({
'_TMP_DIR': tempfile.mkdtemp(dir='.')
})
de... | Use HTTPS for base URL to THREDDS server | Use HTTPS for base URL to THREDDS server
Last week OIT made csdms.colorado.edu only accessible by HTTPS, which
caused the HTTP URL for the THREDDS server to fail.
| Python | mit | csdms/pymt,csdms/coupling,csdms/coupling | import os
from pymt.printers.nc.read import field_fromfile
_BASE_URL_FOR_TEST_FILES = ('http://csdms.colorado.edu/thredds/fileServer'
'/benchmark/ugrid/')
_TMP_DIR = 'tmp'
def setup():
import tempfile
globals().update({
'_TMP_DIR': tempfile.mkdtemp(dir='.')
})
def... | import os
from pymt.printers.nc.read import field_fromfile
_BASE_URL_FOR_TEST_FILES = ('https://csdms.colorado.edu/thredds/fileServer'
'/benchmark/ugrid/')
_TMP_DIR = 'tmp'
def setup():
import tempfile
globals().update({
'_TMP_DIR': tempfile.mkdtemp(dir='.')
})
de... | <commit_before>import os
from pymt.printers.nc.read import field_fromfile
_BASE_URL_FOR_TEST_FILES = ('http://csdms.colorado.edu/thredds/fileServer'
'/benchmark/ugrid/')
_TMP_DIR = 'tmp'
def setup():
import tempfile
globals().update({
'_TMP_DIR': tempfile.mkdtemp(dir='.... | import os
from pymt.printers.nc.read import field_fromfile
_BASE_URL_FOR_TEST_FILES = ('https://csdms.colorado.edu/thredds/fileServer'
'/benchmark/ugrid/')
_TMP_DIR = 'tmp'
def setup():
import tempfile
globals().update({
'_TMP_DIR': tempfile.mkdtemp(dir='.')
})
de... | import os
from pymt.printers.nc.read import field_fromfile
_BASE_URL_FOR_TEST_FILES = ('http://csdms.colorado.edu/thredds/fileServer'
'/benchmark/ugrid/')
_TMP_DIR = 'tmp'
def setup():
import tempfile
globals().update({
'_TMP_DIR': tempfile.mkdtemp(dir='.')
})
def... | <commit_before>import os
from pymt.printers.nc.read import field_fromfile
_BASE_URL_FOR_TEST_FILES = ('http://csdms.colorado.edu/thredds/fileServer'
'/benchmark/ugrid/')
_TMP_DIR = 'tmp'
def setup():
import tempfile
globals().update({
'_TMP_DIR': tempfile.mkdtemp(dir='.... |
54f027ec79d9d819a23854dcd79d4f79848ff3ef | tokens/models.py | tokens/models.py | from django.db import models
# Create your models here.
| from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
class Token(models.Model):
public_name = models.CharField(max_length=200)
symbol = models.CharField(max_length=4)
decimals = models.IntergerField(
default=18,
validators=[MaxValueValidator(... | Create a dead simple Django model for storing token information | Create a dead simple Django model for storing token information
| Python | apache-2.0 | onyb/ethane,onyb/ethane,onyb/ethane,onyb/ethane | from django.db import models
# Create your models here.
Create a dead simple Django model for storing token information | from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
class Token(models.Model):
public_name = models.CharField(max_length=200)
symbol = models.CharField(max_length=4)
decimals = models.IntergerField(
default=18,
validators=[MaxValueValidator(... | <commit_before>from django.db import models
# Create your models here.
<commit_msg>Create a dead simple Django model for storing token information<commit_after> | from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
class Token(models.Model):
public_name = models.CharField(max_length=200)
symbol = models.CharField(max_length=4)
decimals = models.IntergerField(
default=18,
validators=[MaxValueValidator(... | from django.db import models
# Create your models here.
Create a dead simple Django model for storing token informationfrom django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
class Token(models.Model):
public_name = models.CharField(max_length=200)
symbol = models... | <commit_before>from django.db import models
# Create your models here.
<commit_msg>Create a dead simple Django model for storing token information<commit_after>from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
class Token(models.Model):
public_name = models.Char... |
65fff1f471b132b97f7a5ef556603e8c2f511503 | mail_optional_autofollow/__manifest__.py | mail_optional_autofollow/__manifest__.py | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail optional autofollow",
"summary": """
Choose if you want to automatically add new recipients as followers
on mail.compose.message""",
"author": "ACSONE SA/NV... | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail optional autofollow",
"summary": """
Choose if you want to automatically add new recipients as followers
on mail.compose.message""",
"author": "ACSONE SA/NV... | Apply pre-commit changes: Resolve conflicts | [IMP] Apply pre-commit changes: Resolve conflicts
| Python | agpl-3.0 | OCA/social,OCA/social,OCA/social | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail optional autofollow",
"summary": """
Choose if you want to automatically add new recipients as followers
on mail.compose.message""",
"author": "ACSONE SA/NV... | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail optional autofollow",
"summary": """
Choose if you want to automatically add new recipients as followers
on mail.compose.message""",
"author": "ACSONE SA/NV... | <commit_before># Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail optional autofollow",
"summary": """
Choose if you want to automatically add new recipients as followers
on mail.compose.message""",
"author"... | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail optional autofollow",
"summary": """
Choose if you want to automatically add new recipients as followers
on mail.compose.message""",
"author": "ACSONE SA/NV... | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail optional autofollow",
"summary": """
Choose if you want to automatically add new recipients as followers
on mail.compose.message""",
"author": "ACSONE SA/NV... | <commit_before># Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail optional autofollow",
"summary": """
Choose if you want to automatically add new recipients as followers
on mail.compose.message""",
"author"... |
c1b6357c4d6876caa081af0799ec6c7a189ad13f | fabfile.py | fabfile.py | from fabric.api import *
from fabric.contrib.console import confirm
appengine_dir='appengine-web/src'
goldquest_dir='src'
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir))
# jslint
# pychecker
... | from fabric.api import *
from fabric.contrib.console import confirm
cfg = dict(
appengine_dir='appengine-web/src',
goldquest_dir='src',
appengine_token='',
)
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(goldquest_dir)s" %... | Add support for appengine update oauth2 token in deploy script. | NEW: Add support for appengine update oauth2 token in deploy script.
| Python | mit | ollej/GoldQuest,ollej/GoldQuest,ollej/GoldQuest,ollej/GoldQuest | from fabric.api import *
from fabric.contrib.console import confirm
appengine_dir='appengine-web/src'
goldquest_dir='src'
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir))
# jslint
# pychecker
... | from fabric.api import *
from fabric.contrib.console import confirm
cfg = dict(
appengine_dir='appengine-web/src',
goldquest_dir='src',
appengine_token='',
)
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(goldquest_dir)s" %... | <commit_before>from fabric.api import *
from fabric.contrib.console import confirm
appengine_dir='appengine-web/src'
goldquest_dir='src'
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir))
# jslint
... | from fabric.api import *
from fabric.contrib.console import confirm
cfg = dict(
appengine_dir='appengine-web/src',
goldquest_dir='src',
appengine_token='',
)
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(goldquest_dir)s" %... | from fabric.api import *
from fabric.contrib.console import confirm
appengine_dir='appengine-web/src'
goldquest_dir='src'
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir))
# jslint
# pychecker
... | <commit_before>from fabric.api import *
from fabric.contrib.console import confirm
appengine_dir='appengine-web/src'
goldquest_dir='src'
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir))
# jslint
... |
1eeb6061cfc945ea84485e10fcf39062270c8945 | hooks.py | hooks.py | #!/usr/bin/python
def get_secret_for_user(user, ipparam):
print "Looking up user %s with ipparam %s" % (user, ipparam)
return "user_secret"
def allowed_address_hook(ip):
return True
def chap_check_hook():
return True
def ip_up_notifier(ifname, ouraddr, hisaddr):
print "ip_up_notifier"
def ip_do... | #!/usr/bin/env python
def get_secret_for_user(user, ipparam):
print("Looking up user %s with ipparam %s" % (user, ipparam))
return "user_secret"
def allowed_address_hook(ip):
return True
def chap_check_hook():
return True
def ip_up_notifier(ifname, localip, remoteip):
print("ip_up_notifier")
de... | Fix print statements for Python 3 | Fix print statements for Python 3
Although I haven't tested Python 3 for this, all print statements have
been updated to use parenthesis. There are also some minor fixes to the
names of the ip-up hook arguments.
| Python | mit | metricube/pppd_pyhook,metricube/pppd_pyhook | #!/usr/bin/python
def get_secret_for_user(user, ipparam):
print "Looking up user %s with ipparam %s" % (user, ipparam)
return "user_secret"
def allowed_address_hook(ip):
return True
def chap_check_hook():
return True
def ip_up_notifier(ifname, ouraddr, hisaddr):
print "ip_up_notifier"
def ip_do... | #!/usr/bin/env python
def get_secret_for_user(user, ipparam):
print("Looking up user %s with ipparam %s" % (user, ipparam))
return "user_secret"
def allowed_address_hook(ip):
return True
def chap_check_hook():
return True
def ip_up_notifier(ifname, localip, remoteip):
print("ip_up_notifier")
de... | <commit_before>#!/usr/bin/python
def get_secret_for_user(user, ipparam):
print "Looking up user %s with ipparam %s" % (user, ipparam)
return "user_secret"
def allowed_address_hook(ip):
return True
def chap_check_hook():
return True
def ip_up_notifier(ifname, ouraddr, hisaddr):
print "ip_up_notif... | #!/usr/bin/env python
def get_secret_for_user(user, ipparam):
print("Looking up user %s with ipparam %s" % (user, ipparam))
return "user_secret"
def allowed_address_hook(ip):
return True
def chap_check_hook():
return True
def ip_up_notifier(ifname, localip, remoteip):
print("ip_up_notifier")
de... | #!/usr/bin/python
def get_secret_for_user(user, ipparam):
print "Looking up user %s with ipparam %s" % (user, ipparam)
return "user_secret"
def allowed_address_hook(ip):
return True
def chap_check_hook():
return True
def ip_up_notifier(ifname, ouraddr, hisaddr):
print "ip_up_notifier"
def ip_do... | <commit_before>#!/usr/bin/python
def get_secret_for_user(user, ipparam):
print "Looking up user %s with ipparam %s" % (user, ipparam)
return "user_secret"
def allowed_address_hook(ip):
return True
def chap_check_hook():
return True
def ip_up_notifier(ifname, ouraddr, hisaddr):
print "ip_up_notif... |
e53d012e95434d2857c4998c161fc71abd30acc7 | django_extensions/management/commands/_private.py | django_extensions/management/commands/_private.py | from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Settings that are ... | from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Settings that are ... | Fix trailing line style violation | Fix trailing line style violation
| Python | mit | haakenlid/django-extensions,linuxmaniac/django-extensions,dpetzold/django-extensions,haakenlid/django-extensions,django-extensions/django-extensions,levic/django-extensions,linuxmaniac/django-extensions,kevgathuku/django-extensions,levic/django-extensions,dpetzold/django-extensions,jpadilla/django-extensions,kevgathuku... | from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Settings that are ... | from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Settings that are ... | <commit_before>from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Set... | from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Settings that are ... | from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Settings that are ... | <commit_before>from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Set... |
5495913d43606407c7fb646b2a0eb4b5d4b80ba1 | network/admin.py | network/admin.py | from django.contrib import admin
from .models.device import Device
from .models.interface import Interface
admin.site.register(Device)
admin.site.register(Interface)
| from django.contrib import admin
from .models.device import Device
from .models.interface import Interface
from members.settings import MAX_INTERFACE_PER_DEVICE
class InterfaceAdmin(admin.TabularInline):
model = Interface
max_num = MAX_INTERFACE_PER_DEVICE
display = ('interface', 'mac_address', 'descript... | Add search box, show devices list in table, show interfaces in device detail | Add search box, show devices list in table, show interfaces in device detail
| Python | mit | Atilla106/members.atilla.org,Atilla106/members.atilla.org,Atilla106/members.atilla.org,Atilla106/members.atilla.org,Atilla106/members.atilla.org | from django.contrib import admin
from .models.device import Device
from .models.interface import Interface
admin.site.register(Device)
admin.site.register(Interface)
Add search box, show devices list in table, show interfaces in device detail | from django.contrib import admin
from .models.device import Device
from .models.interface import Interface
from members.settings import MAX_INTERFACE_PER_DEVICE
class InterfaceAdmin(admin.TabularInline):
model = Interface
max_num = MAX_INTERFACE_PER_DEVICE
display = ('interface', 'mac_address', 'descript... | <commit_before>from django.contrib import admin
from .models.device import Device
from .models.interface import Interface
admin.site.register(Device)
admin.site.register(Interface)
<commit_msg>Add search box, show devices list in table, show interfaces in device detail<commit_after> | from django.contrib import admin
from .models.device import Device
from .models.interface import Interface
from members.settings import MAX_INTERFACE_PER_DEVICE
class InterfaceAdmin(admin.TabularInline):
model = Interface
max_num = MAX_INTERFACE_PER_DEVICE
display = ('interface', 'mac_address', 'descript... | from django.contrib import admin
from .models.device import Device
from .models.interface import Interface
admin.site.register(Device)
admin.site.register(Interface)
Add search box, show devices list in table, show interfaces in device detailfrom django.contrib import admin
from .models.device import Device
from .m... | <commit_before>from django.contrib import admin
from .models.device import Device
from .models.interface import Interface
admin.site.register(Device)
admin.site.register(Interface)
<commit_msg>Add search box, show devices list in table, show interfaces in device detail<commit_after>from django.contrib import admin
... |
6d928da6c3848c2fd9f34772033fb645767ae4c3 | dbaas/workflow/steps/util/resize/check_database_status.py | dbaas/workflow/steps/util/resize/check_database_status.py | # -*- coding: utf-8 -*-
import logging
from ...util.base import BaseStep
LOG = logging.getLogger(__name__)
class CheckDatabaseStatus(BaseStep):
def __unicode__(self):
return "Checking database status..."
def do(self, workflow_dict):
try:
if not 'database' in workflow_dict:
... | # -*- coding: utf-8 -*-
import logging
from ...util.base import BaseStep
LOG = logging.getLogger(__name__)
class CheckDatabaseStatus(BaseStep):
def __unicode__(self):
return "Checking database status..."
def do(self, workflow_dict):
try:
if 'database' not in workflow_dict:
... | Change check database status to return even when it is false | Change check database status to return even when it is false
| Python | bsd-3-clause | globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service | # -*- coding: utf-8 -*-
import logging
from ...util.base import BaseStep
LOG = logging.getLogger(__name__)
class CheckDatabaseStatus(BaseStep):
def __unicode__(self):
return "Checking database status..."
def do(self, workflow_dict):
try:
if not 'database' in workflow_dict:
... | # -*- coding: utf-8 -*-
import logging
from ...util.base import BaseStep
LOG = logging.getLogger(__name__)
class CheckDatabaseStatus(BaseStep):
def __unicode__(self):
return "Checking database status..."
def do(self, workflow_dict):
try:
if 'database' not in workflow_dict:
... | <commit_before># -*- coding: utf-8 -*-
import logging
from ...util.base import BaseStep
LOG = logging.getLogger(__name__)
class CheckDatabaseStatus(BaseStep):
def __unicode__(self):
return "Checking database status..."
def do(self, workflow_dict):
try:
if not 'database' in workf... | # -*- coding: utf-8 -*-
import logging
from ...util.base import BaseStep
LOG = logging.getLogger(__name__)
class CheckDatabaseStatus(BaseStep):
def __unicode__(self):
return "Checking database status..."
def do(self, workflow_dict):
try:
if 'database' not in workflow_dict:
... | # -*- coding: utf-8 -*-
import logging
from ...util.base import BaseStep
LOG = logging.getLogger(__name__)
class CheckDatabaseStatus(BaseStep):
def __unicode__(self):
return "Checking database status..."
def do(self, workflow_dict):
try:
if not 'database' in workflow_dict:
... | <commit_before># -*- coding: utf-8 -*-
import logging
from ...util.base import BaseStep
LOG = logging.getLogger(__name__)
class CheckDatabaseStatus(BaseStep):
def __unicode__(self):
return "Checking database status..."
def do(self, workflow_dict):
try:
if not 'database' in workf... |
d117d924a684e0ec651d9f91b5fa7fcdfceb8777 | server.py | server.py | #!/usr/bin/env python
import os
import sys
import requests
import re
from bot import RandomBot
SERVER_HOST = 'http://localhost:9000'
trainingState = requests.post(SERVER_HOST + '/api/training/alone').json()
state = trainingState
bot = RandomBot()
def move(url, direction):
r = requests.post(url, {'dir': directi... | #!/usr/bin/env python
import os
import sys
import requests
import re
from bot import RandomBot
SERVER_HOST = 'http://localhost:9000'
trainingState = requests.post(SERVER_HOST + '/api/training/alone').json()
state = trainingState
bot = RandomBot()
def move(url, direction):
r = requests.post(url, {'dir': directi... | Add some debug when playing | Add some debug when playing
| Python | apache-2.0 | miguel89/vinidium | #!/usr/bin/env python
import os
import sys
import requests
import re
from bot import RandomBot
SERVER_HOST = 'http://localhost:9000'
trainingState = requests.post(SERVER_HOST + '/api/training/alone').json()
state = trainingState
bot = RandomBot()
def move(url, direction):
r = requests.post(url, {'dir': directi... | #!/usr/bin/env python
import os
import sys
import requests
import re
from bot import RandomBot
SERVER_HOST = 'http://localhost:9000'
trainingState = requests.post(SERVER_HOST + '/api/training/alone').json()
state = trainingState
bot = RandomBot()
def move(url, direction):
r = requests.post(url, {'dir': directi... | <commit_before>#!/usr/bin/env python
import os
import sys
import requests
import re
from bot import RandomBot
SERVER_HOST = 'http://localhost:9000'
trainingState = requests.post(SERVER_HOST + '/api/training/alone').json()
state = trainingState
bot = RandomBot()
def move(url, direction):
r = requests.post(url, ... | #!/usr/bin/env python
import os
import sys
import requests
import re
from bot import RandomBot
SERVER_HOST = 'http://localhost:9000'
trainingState = requests.post(SERVER_HOST + '/api/training/alone').json()
state = trainingState
bot = RandomBot()
def move(url, direction):
r = requests.post(url, {'dir': directi... | #!/usr/bin/env python
import os
import sys
import requests
import re
from bot import RandomBot
SERVER_HOST = 'http://localhost:9000'
trainingState = requests.post(SERVER_HOST + '/api/training/alone').json()
state = trainingState
bot = RandomBot()
def move(url, direction):
r = requests.post(url, {'dir': directi... | <commit_before>#!/usr/bin/env python
import os
import sys
import requests
import re
from bot import RandomBot
SERVER_HOST = 'http://localhost:9000'
trainingState = requests.post(SERVER_HOST + '/api/training/alone').json()
state = trainingState
bot = RandomBot()
def move(url, direction):
r = requests.post(url, ... |
a0dda9abaebd154c8e4fd68206c0f10d796ae75d | tests/property/app_test.py | tests/property/app_test.py | # -*- coding: utf-8 -*-
"""
Property Test: orchard.app
"""
import hypothesis
import hypothesis.strategies as st
import unittest
import orchard
class AppPropertyTest(unittest.TestCase):
def setUp(self):
self.app_context = orchard.app.app_context()
self.app_context.push()
self.client... | # -*- coding: utf-8 -*-
"""
Property Test: orchard.app
"""
import hypothesis
import hypothesis.strategies as st
import unittest
import orchard
class AppPropertyTest(unittest.TestCase):
def setUp(self):
self.app_context = orchard.app.app_context()
self.app_context.push()
self.client... | Remove blank line at end of file. | Remove blank line at end of file.
| Python | mit | BMeu/Orchard,BMeu/Orchard | # -*- coding: utf-8 -*-
"""
Property Test: orchard.app
"""
import hypothesis
import hypothesis.strategies as st
import unittest
import orchard
class AppPropertyTest(unittest.TestCase):
def setUp(self):
self.app_context = orchard.app.app_context()
self.app_context.push()
self.client... | # -*- coding: utf-8 -*-
"""
Property Test: orchard.app
"""
import hypothesis
import hypothesis.strategies as st
import unittest
import orchard
class AppPropertyTest(unittest.TestCase):
def setUp(self):
self.app_context = orchard.app.app_context()
self.app_context.push()
self.client... | <commit_before># -*- coding: utf-8 -*-
"""
Property Test: orchard.app
"""
import hypothesis
import hypothesis.strategies as st
import unittest
import orchard
class AppPropertyTest(unittest.TestCase):
def setUp(self):
self.app_context = orchard.app.app_context()
self.app_context.push()
... | # -*- coding: utf-8 -*-
"""
Property Test: orchard.app
"""
import hypothesis
import hypothesis.strategies as st
import unittest
import orchard
class AppPropertyTest(unittest.TestCase):
def setUp(self):
self.app_context = orchard.app.app_context()
self.app_context.push()
self.client... | # -*- coding: utf-8 -*-
"""
Property Test: orchard.app
"""
import hypothesis
import hypothesis.strategies as st
import unittest
import orchard
class AppPropertyTest(unittest.TestCase):
def setUp(self):
self.app_context = orchard.app.app_context()
self.app_context.push()
self.client... | <commit_before># -*- coding: utf-8 -*-
"""
Property Test: orchard.app
"""
import hypothesis
import hypothesis.strategies as st
import unittest
import orchard
class AppPropertyTest(unittest.TestCase):
def setUp(self):
self.app_context = orchard.app.app_context()
self.app_context.push()
... |
d66a6325d210b075ed9aed7b2446aaf079df7936 | blackbelt/tasks.py | blackbelt/tasks.py | import click
import os
plugin_folder = os.path.join(os.path.dirname(__file__), 'commands')
class BlackBelt(click.MultiCommand):
def list_commands(self, ctx):
rv = []
for filename in os.listdir(plugin_folder):
if filename.endswith('.py') and filename != '__init__.py':
... | import click
import os
plugin_folder = os.path.join(os.path.dirname(__file__), 'commands')
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
class BlackBelt(click.MultiCommand):
def list_commands(self, ctx):
rv = []
for filename in os.listdir(plugin_folder):
if filename.end... | Add alias -h to --help | Add alias -h to --help
| Python | mit | apiaryio/black-belt | import click
import os
plugin_folder = os.path.join(os.path.dirname(__file__), 'commands')
class BlackBelt(click.MultiCommand):
def list_commands(self, ctx):
rv = []
for filename in os.listdir(plugin_folder):
if filename.endswith('.py') and filename != '__init__.py':
... | import click
import os
plugin_folder = os.path.join(os.path.dirname(__file__), 'commands')
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
class BlackBelt(click.MultiCommand):
def list_commands(self, ctx):
rv = []
for filename in os.listdir(plugin_folder):
if filename.end... | <commit_before>import click
import os
plugin_folder = os.path.join(os.path.dirname(__file__), 'commands')
class BlackBelt(click.MultiCommand):
def list_commands(self, ctx):
rv = []
for filename in os.listdir(plugin_folder):
if filename.endswith('.py') and filename != '__init__.py':
... | import click
import os
plugin_folder = os.path.join(os.path.dirname(__file__), 'commands')
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
class BlackBelt(click.MultiCommand):
def list_commands(self, ctx):
rv = []
for filename in os.listdir(plugin_folder):
if filename.end... | import click
import os
plugin_folder = os.path.join(os.path.dirname(__file__), 'commands')
class BlackBelt(click.MultiCommand):
def list_commands(self, ctx):
rv = []
for filename in os.listdir(plugin_folder):
if filename.endswith('.py') and filename != '__init__.py':
... | <commit_before>import click
import os
plugin_folder = os.path.join(os.path.dirname(__file__), 'commands')
class BlackBelt(click.MultiCommand):
def list_commands(self, ctx):
rv = []
for filename in os.listdir(plugin_folder):
if filename.endswith('.py') and filename != '__init__.py':
... |
424588f4cdad2dd063b15895198611703b187bec | pynpact/tests/steps/conftest.py | pynpact/tests/steps/conftest.py | import pytest
import taskqueue
@pytest.fixture(scope="session")
def async_executor(request):
taskqueue.LISTEN_ADDRESS = ('127.0.1.1', 57129)
sm = taskqueue.get_ServerManager(make_server=True)
sm.start()
request.addfinalizer(sm.shutdown)
return sm.Server()
class NullExecutor(object):
"An exec... | import pytest
def taskqueue_executor():
import taskqueue
taskqueue.LISTEN_ADDRESS = ('127.0.1.1', 57129)
sm = taskqueue.get_ServerManager(make_server=True)
sm.start()
request.addfinalizer(sm.shutdown)
return sm.Server()
@pytest.fixture(scope="session")
def async_executor(request):
from p... | Make pynpact tests use GeventExecutor | Make pynpact tests use GeventExecutor
We've almost completely deprecated taskqueue at this point; lets test
the new pieces instead of th old.
| Python | bsd-3-clause | NProfileAnalysisComputationalTool/npact,NProfileAnalysisComputationalTool/npact,NProfileAnalysisComputationalTool/npact,NProfileAnalysisComputationalTool/npact,NProfileAnalysisComputationalTool/npact | import pytest
import taskqueue
@pytest.fixture(scope="session")
def async_executor(request):
taskqueue.LISTEN_ADDRESS = ('127.0.1.1', 57129)
sm = taskqueue.get_ServerManager(make_server=True)
sm.start()
request.addfinalizer(sm.shutdown)
return sm.Server()
class NullExecutor(object):
"An exec... | import pytest
def taskqueue_executor():
import taskqueue
taskqueue.LISTEN_ADDRESS = ('127.0.1.1', 57129)
sm = taskqueue.get_ServerManager(make_server=True)
sm.start()
request.addfinalizer(sm.shutdown)
return sm.Server()
@pytest.fixture(scope="session")
def async_executor(request):
from p... | <commit_before>import pytest
import taskqueue
@pytest.fixture(scope="session")
def async_executor(request):
taskqueue.LISTEN_ADDRESS = ('127.0.1.1', 57129)
sm = taskqueue.get_ServerManager(make_server=True)
sm.start()
request.addfinalizer(sm.shutdown)
return sm.Server()
class NullExecutor(object... | import pytest
def taskqueue_executor():
import taskqueue
taskqueue.LISTEN_ADDRESS = ('127.0.1.1', 57129)
sm = taskqueue.get_ServerManager(make_server=True)
sm.start()
request.addfinalizer(sm.shutdown)
return sm.Server()
@pytest.fixture(scope="session")
def async_executor(request):
from p... | import pytest
import taskqueue
@pytest.fixture(scope="session")
def async_executor(request):
taskqueue.LISTEN_ADDRESS = ('127.0.1.1', 57129)
sm = taskqueue.get_ServerManager(make_server=True)
sm.start()
request.addfinalizer(sm.shutdown)
return sm.Server()
class NullExecutor(object):
"An exec... | <commit_before>import pytest
import taskqueue
@pytest.fixture(scope="session")
def async_executor(request):
taskqueue.LISTEN_ADDRESS = ('127.0.1.1', 57129)
sm = taskqueue.get_ServerManager(make_server=True)
sm.start()
request.addfinalizer(sm.shutdown)
return sm.Server()
class NullExecutor(object... |
3cdff0baeb349bcf4761269cc289cf2722ecbe62 | rasp/base.py | rasp/base.py | import urllib
import urllib.error
import urllib.request
from rasp.constants import DEFAULT_USER_AGENT
from rasp.errors import EngineError
class Engine(object):
def get_page_source(self, url):
raise NotImplemented("get_page_source not implemented for {}"
.format(str(self.__cla... | import urllib
import urllib.error
import urllib.request
from rasp.constants import DEFAULT_USER_AGENT
from rasp.errors import EngineError
class Engine(object):
def get_page_source(self, url):
raise NotImplemented("get_page_source not implemented for {}"
.format(str(self.__cla... | Use more pythonic pattern for default attributes | Use more pythonic pattern for default attributes
| Python | bsd-3-clause | anidata/rasp | import urllib
import urllib.error
import urllib.request
from rasp.constants import DEFAULT_USER_AGENT
from rasp.errors import EngineError
class Engine(object):
def get_page_source(self, url):
raise NotImplemented("get_page_source not implemented for {}"
.format(str(self.__cla... | import urllib
import urllib.error
import urllib.request
from rasp.constants import DEFAULT_USER_AGENT
from rasp.errors import EngineError
class Engine(object):
def get_page_source(self, url):
raise NotImplemented("get_page_source not implemented for {}"
.format(str(self.__cla... | <commit_before>import urllib
import urllib.error
import urllib.request
from rasp.constants import DEFAULT_USER_AGENT
from rasp.errors import EngineError
class Engine(object):
def get_page_source(self, url):
raise NotImplemented("get_page_source not implemented for {}"
.format... | import urllib
import urllib.error
import urllib.request
from rasp.constants import DEFAULT_USER_AGENT
from rasp.errors import EngineError
class Engine(object):
def get_page_source(self, url):
raise NotImplemented("get_page_source not implemented for {}"
.format(str(self.__cla... | import urllib
import urllib.error
import urllib.request
from rasp.constants import DEFAULT_USER_AGENT
from rasp.errors import EngineError
class Engine(object):
def get_page_source(self, url):
raise NotImplemented("get_page_source not implemented for {}"
.format(str(self.__cla... | <commit_before>import urllib
import urllib.error
import urllib.request
from rasp.constants import DEFAULT_USER_AGENT
from rasp.errors import EngineError
class Engine(object):
def get_page_source(self, url):
raise NotImplemented("get_page_source not implemented for {}"
.format... |
097bbde9aabc09d6bca679663c0ece3e12802414 | utils/esicog.py | utils/esicog.py | import asyncio
import esipy
from discord.ext import commands
from requests.adapters import DEFAULT_POOLSIZE
from utils.log import get_logger
ESI_SWAGGER_JSON = 'https://esi.evetech.net/dev/swagger.json'
class EsiCog:
_esi_app_task: asyncio.Task = None
_semaphore = asyncio.Semaphore(DEFAULT_POOLSIZE)
d... | import asyncio
import esipy
from discord.ext import commands
from requests.adapters import DEFAULT_POOLSIZE
from utils.log import get_logger
ESI_SWAGGER_JSON = 'https://esi.evetech.net/dev/swagger.json'
class EsiCog:
_esi_app_task: asyncio.Task = None
_semaphore = asyncio.Semaphore(DEFAULT_POOLSIZE)
d... | Fix reference to class attribute | Fix reference to class attribute
| Python | mit | randomic/antinub-gregbot | import asyncio
import esipy
from discord.ext import commands
from requests.adapters import DEFAULT_POOLSIZE
from utils.log import get_logger
ESI_SWAGGER_JSON = 'https://esi.evetech.net/dev/swagger.json'
class EsiCog:
_esi_app_task: asyncio.Task = None
_semaphore = asyncio.Semaphore(DEFAULT_POOLSIZE)
d... | import asyncio
import esipy
from discord.ext import commands
from requests.adapters import DEFAULT_POOLSIZE
from utils.log import get_logger
ESI_SWAGGER_JSON = 'https://esi.evetech.net/dev/swagger.json'
class EsiCog:
_esi_app_task: asyncio.Task = None
_semaphore = asyncio.Semaphore(DEFAULT_POOLSIZE)
d... | <commit_before>import asyncio
import esipy
from discord.ext import commands
from requests.adapters import DEFAULT_POOLSIZE
from utils.log import get_logger
ESI_SWAGGER_JSON = 'https://esi.evetech.net/dev/swagger.json'
class EsiCog:
_esi_app_task: asyncio.Task = None
_semaphore = asyncio.Semaphore(DEFAULT_P... | import asyncio
import esipy
from discord.ext import commands
from requests.adapters import DEFAULT_POOLSIZE
from utils.log import get_logger
ESI_SWAGGER_JSON = 'https://esi.evetech.net/dev/swagger.json'
class EsiCog:
_esi_app_task: asyncio.Task = None
_semaphore = asyncio.Semaphore(DEFAULT_POOLSIZE)
d... | import asyncio
import esipy
from discord.ext import commands
from requests.adapters import DEFAULT_POOLSIZE
from utils.log import get_logger
ESI_SWAGGER_JSON = 'https://esi.evetech.net/dev/swagger.json'
class EsiCog:
_esi_app_task: asyncio.Task = None
_semaphore = asyncio.Semaphore(DEFAULT_POOLSIZE)
d... | <commit_before>import asyncio
import esipy
from discord.ext import commands
from requests.adapters import DEFAULT_POOLSIZE
from utils.log import get_logger
ESI_SWAGGER_JSON = 'https://esi.evetech.net/dev/swagger.json'
class EsiCog:
_esi_app_task: asyncio.Task = None
_semaphore = asyncio.Semaphore(DEFAULT_P... |
52240f7712026332121597fbb8f0ad0e62bdb5e0 | yolk/__init__.py | yolk/__init__.py | """yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7'
| """yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7.1'
| Increment patch version to 0.7.1 | Increment patch version to 0.7.1
| Python | bsd-3-clause | myint/yolk,myint/yolk | """yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7'
Increment patch version to 0.7.1 | """yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7.1'
| <commit_before>"""yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7'
<commit_msg>Increment patch version to 0.7.1<commit_after> | """yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7.1'
| """yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7'
Increment patch version to 0.7.1"""yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7.1'
| <commit_before>"""yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7'
<commit_msg>Increment patch version to 0.7.1<commit_after>"""yolk.
Author: Rob Cakebread <cakebread at gmail>
License : BSD
"""
__version__ = '0.7.1'
|
2d4a3b82d982017fe51e2dd23eca7f1d83ad115f | plugoo/assets.py | plugoo/assets.py | class Asset:
"""
This is an ooni-probe asset. It is a python
iterator object, allowing it to be efficiently looped.
To create your own custom asset your should subclass this
and override the next_asset method and the len method for
computing the length of the asset.
"""
def __init__(self... | class Asset:
"""
This is an ooni-probe asset. It is a python
iterator object, allowing it to be efficiently looped.
To create your own custom asset your should subclass this
and override the next_asset method and the len method for
computing the length of the asset.
"""
def __init__(self... | Add a method for line by line asset parsing | Add a method for line by line asset parsing
| Python | bsd-2-clause | Karthikeyan-kkk/ooni-probe,lordappsec/ooni-probe,lordappsec/ooni-probe,0xPoly/ooni-probe,kdmurray91/ooni-probe,juga0/ooni-probe,Karthikeyan-kkk/ooni-probe,0xPoly/ooni-probe,juga0/ooni-probe,0xPoly/ooni-probe,kdmurray91/ooni-probe,juga0/ooni-probe,Karthikeyan-kkk/ooni-probe,juga0/ooni-probe,kdmurray91/ooni-probe,hackerb... | class Asset:
"""
This is an ooni-probe asset. It is a python
iterator object, allowing it to be efficiently looped.
To create your own custom asset your should subclass this
and override the next_asset method and the len method for
computing the length of the asset.
"""
def __init__(self... | class Asset:
"""
This is an ooni-probe asset. It is a python
iterator object, allowing it to be efficiently looped.
To create your own custom asset your should subclass this
and override the next_asset method and the len method for
computing the length of the asset.
"""
def __init__(self... | <commit_before>class Asset:
"""
This is an ooni-probe asset. It is a python
iterator object, allowing it to be efficiently looped.
To create your own custom asset your should subclass this
and override the next_asset method and the len method for
computing the length of the asset.
"""
de... | class Asset:
"""
This is an ooni-probe asset. It is a python
iterator object, allowing it to be efficiently looped.
To create your own custom asset your should subclass this
and override the next_asset method and the len method for
computing the length of the asset.
"""
def __init__(self... | class Asset:
"""
This is an ooni-probe asset. It is a python
iterator object, allowing it to be efficiently looped.
To create your own custom asset your should subclass this
and override the next_asset method and the len method for
computing the length of the asset.
"""
def __init__(self... | <commit_before>class Asset:
"""
This is an ooni-probe asset. It is a python
iterator object, allowing it to be efficiently looped.
To create your own custom asset your should subclass this
and override the next_asset method and the len method for
computing the length of the asset.
"""
de... |
93dd1f0e19f2483d4f699f5c59f5f2eb1d5079b0 | comrade/views/simple.py | comrade/views/simple.py | from django.http import HttpResponse, HttpResponseServerError
from django.template import RequestContext, loader
from django.conf import settings
from maintenancemode.http import HttpResponseTemporaryUnavailable
import logging
logger = logging.getLogger('comrade.views.simple')
def status(request):
logger.info("R... | from django.http import HttpResponse, HttpResponseServerError
from django.template import RequestContext, loader
from django.conf import settings
from maintenancemode.http import HttpResponseTemporaryUnavailable
import logging
logger = logging.getLogger('comrade.views.simple')
def status(request):
logger.debug("... | Add version view, since we want all apps to provide this. | Add version view, since we want all apps to provide this.
| Python | mit | bueda/django-comrade | from django.http import HttpResponse, HttpResponseServerError
from django.template import RequestContext, loader
from django.conf import settings
from maintenancemode.http import HttpResponseTemporaryUnavailable
import logging
logger = logging.getLogger('comrade.views.simple')
def status(request):
logger.info("R... | from django.http import HttpResponse, HttpResponseServerError
from django.template import RequestContext, loader
from django.conf import settings
from maintenancemode.http import HttpResponseTemporaryUnavailable
import logging
logger = logging.getLogger('comrade.views.simple')
def status(request):
logger.debug("... | <commit_before>from django.http import HttpResponse, HttpResponseServerError
from django.template import RequestContext, loader
from django.conf import settings
from maintenancemode.http import HttpResponseTemporaryUnavailable
import logging
logger = logging.getLogger('comrade.views.simple')
def status(request):
... | from django.http import HttpResponse, HttpResponseServerError
from django.template import RequestContext, loader
from django.conf import settings
from maintenancemode.http import HttpResponseTemporaryUnavailable
import logging
logger = logging.getLogger('comrade.views.simple')
def status(request):
logger.debug("... | from django.http import HttpResponse, HttpResponseServerError
from django.template import RequestContext, loader
from django.conf import settings
from maintenancemode.http import HttpResponseTemporaryUnavailable
import logging
logger = logging.getLogger('comrade.views.simple')
def status(request):
logger.info("R... | <commit_before>from django.http import HttpResponse, HttpResponseServerError
from django.template import RequestContext, loader
from django.conf import settings
from maintenancemode.http import HttpResponseTemporaryUnavailable
import logging
logger = logging.getLogger('comrade.views.simple')
def status(request):
... |
d51b7bf7766dc4d56158fcc7e072e27f275f57e8 | skyfield/__init__.py | skyfield/__init__.py | """Elegant astronomy for Python
Most users will use Skyfield by importing ``skyfield.api`` and using the
functions and classes there.
"""
__version_info__ = (0, 2)
__version__ = '%s.%s' % __version_info__
| """Elegant astronomy for Python
Most users will use Skyfield by importing ``skyfield.api`` and using the
functions and classes there.
"""
VERSION = (0, 2)
__version__ = '.'.join(map(str, VERSION))
| Rename silly __version_info__ symbol to VERSION | Rename silly __version_info__ symbol to VERSION
Django uses the name VERSION and it always seems good to rid ourselves
of another faux-dunder symbol that really means nothing to the Python
runtime and therefore should not enjoy the (in-?)dignity of a dunder.
| Python | mit | GuidoBR/python-skyfield,ozialien/python-skyfield,exoanalytic/python-skyfield,ozialien/python-skyfield,exoanalytic/python-skyfield,skyfielders/python-skyfield,GuidoBR/python-skyfield,skyfielders/python-skyfield | """Elegant astronomy for Python
Most users will use Skyfield by importing ``skyfield.api`` and using the
functions and classes there.
"""
__version_info__ = (0, 2)
__version__ = '%s.%s' % __version_info__
Rename silly __version_info__ symbol to VERSION
Django uses the name VERSION and it always seems good to rid our... | """Elegant astronomy for Python
Most users will use Skyfield by importing ``skyfield.api`` and using the
functions and classes there.
"""
VERSION = (0, 2)
__version__ = '.'.join(map(str, VERSION))
| <commit_before>"""Elegant astronomy for Python
Most users will use Skyfield by importing ``skyfield.api`` and using the
functions and classes there.
"""
__version_info__ = (0, 2)
__version__ = '%s.%s' % __version_info__
<commit_msg>Rename silly __version_info__ symbol to VERSION
Django uses the name VERSION and it a... | """Elegant astronomy for Python
Most users will use Skyfield by importing ``skyfield.api`` and using the
functions and classes there.
"""
VERSION = (0, 2)
__version__ = '.'.join(map(str, VERSION))
| """Elegant astronomy for Python
Most users will use Skyfield by importing ``skyfield.api`` and using the
functions and classes there.
"""
__version_info__ = (0, 2)
__version__ = '%s.%s' % __version_info__
Rename silly __version_info__ symbol to VERSION
Django uses the name VERSION and it always seems good to rid our... | <commit_before>"""Elegant astronomy for Python
Most users will use Skyfield by importing ``skyfield.api`` and using the
functions and classes there.
"""
__version_info__ = (0, 2)
__version__ = '%s.%s' % __version_info__
<commit_msg>Rename silly __version_info__ symbol to VERSION
Django uses the name VERSION and it a... |
1d924ad8d47260b90f71d7f805cdd1a6aa734c2c | conda_build/external.py | conda_build/external.py | from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import isfile, join, expanduser
import conda.config as cc
from conda_build.config import config
def find_executable(executable):
if sys.platform == 'win32':
dir_paths = [join(config.build_prefix, 'Scripts')... | from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import isfile, join, expanduser
import conda.config as cc
from conda_build.config import config
def find_executable(executable):
# dir_paths is referenced as a module-level variable
# in other code
global... | Fix error message when patch is missing. | Fix error message when patch is missing.
| Python | bsd-3-clause | shastings517/conda-build,dan-blanchard/conda-build,ilastik/conda-build,takluyver/conda-build,takluyver/conda-build,rmcgibbo/conda-build,ilastik/conda-build,frol/conda-build,sandhujasmine/conda-build,dan-blanchard/conda-build,dan-blanchard/conda-build,takluyver/conda-build,sandhujasmine/conda-build,sandhujasmine/conda-b... | from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import isfile, join, expanduser
import conda.config as cc
from conda_build.config import config
def find_executable(executable):
if sys.platform == 'win32':
dir_paths = [join(config.build_prefix, 'Scripts')... | from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import isfile, join, expanduser
import conda.config as cc
from conda_build.config import config
def find_executable(executable):
# dir_paths is referenced as a module-level variable
# in other code
global... | <commit_before>from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import isfile, join, expanduser
import conda.config as cc
from conda_build.config import config
def find_executable(executable):
if sys.platform == 'win32':
dir_paths = [join(config.build_pre... | from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import isfile, join, expanduser
import conda.config as cc
from conda_build.config import config
def find_executable(executable):
# dir_paths is referenced as a module-level variable
# in other code
global... | from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import isfile, join, expanduser
import conda.config as cc
from conda_build.config import config
def find_executable(executable):
if sys.platform == 'win32':
dir_paths = [join(config.build_prefix, 'Scripts')... | <commit_before>from __future__ import absolute_import, division, print_function
import os
import sys
from os.path import isfile, join, expanduser
import conda.config as cc
from conda_build.config import config
def find_executable(executable):
if sys.platform == 'win32':
dir_paths = [join(config.build_pre... |
683a3727fc5363c2a2a53fabfde555207e8bab66 | brains/orders/models.py | brains/orders/models.py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
striketime = m... | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
striketime = m... | Allow strike time to be blank. | Allow strike time to be blank.
| Python | bsd-3-clause | crisisking/udbraaains,crisisking/udbraaains,crisisking/udbraaains,crisisking/udbraaains | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
striketime = m... | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
striketime = m... | <commit_before>from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
... | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
striketime = m... | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
striketime = m... | <commit_before>from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
... |
88263748a1ec742e514b6f321002d06e6e79b36e | plim/adapters/babelplugin.py | plim/adapters/babelplugin.py | """gettext message extraction via Babel: http://babel.edgewall.org/"""
from mako.ext.babelplugin import extract as _extract_mako
from .. import lexer
from ..util import StringIO
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: the file-like obj... | """gettext message extraction via Babel: http://babel.edgewall.org/"""
from mako.ext.babelplugin import extract as _extract_mako
from .. import lexer
from ..util import StringIO, PY3K
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: the file-lik... | Fix Babel plugin in Python3 environment | Fix Babel plugin in Python3 environment
| Python | mit | kxxoling/Plim | """gettext message extraction via Babel: http://babel.edgewall.org/"""
from mako.ext.babelplugin import extract as _extract_mako
from .. import lexer
from ..util import StringIO
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: the file-like obj... | """gettext message extraction via Babel: http://babel.edgewall.org/"""
from mako.ext.babelplugin import extract as _extract_mako
from .. import lexer
from ..util import StringIO, PY3K
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: the file-lik... | <commit_before>"""gettext message extraction via Babel: http://babel.edgewall.org/"""
from mako.ext.babelplugin import extract as _extract_mako
from .. import lexer
from ..util import StringIO
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: th... | """gettext message extraction via Babel: http://babel.edgewall.org/"""
from mako.ext.babelplugin import extract as _extract_mako
from .. import lexer
from ..util import StringIO, PY3K
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: the file-lik... | """gettext message extraction via Babel: http://babel.edgewall.org/"""
from mako.ext.babelplugin import extract as _extract_mako
from .. import lexer
from ..util import StringIO
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: the file-like obj... | <commit_before>"""gettext message extraction via Babel: http://babel.edgewall.org/"""
from mako.ext.babelplugin import extract as _extract_mako
from .. import lexer
from ..util import StringIO
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: th... |
b730fc84e07994d0a12357b70a1e912d0a032832 | Lib/vanilla/test/testTools.py | Lib/vanilla/test/testTools.py | from AppKit import *
from PyObjCTools import AppHelper
class _VanillaMiniAppDelegate(NSObject):
def applicationShouldTerminateAfterLastWindowClosed_(self, notification):
return True
def executeVanillaTest(cls, **kwargs):
"""
Execute a Vanilla UI class in a mini application.
"""
app = NS... | from AppKit import *
from PyObjCTools import AppHelper
class _VanillaMiniAppDelegate(NSObject):
def applicationShouldTerminateAfterLastWindowClosed_(self, notification):
return True
def executeVanillaTest(cls, **kwargs):
"""
Execute a Vanilla UI class in a mini application.
"""
app = NS... | Add a menu to the test runner. | Add a menu to the test runner.
| Python | mit | typemytype/vanilla,typesupply/vanilla,moyogo/vanilla | from AppKit import *
from PyObjCTools import AppHelper
class _VanillaMiniAppDelegate(NSObject):
def applicationShouldTerminateAfterLastWindowClosed_(self, notification):
return True
def executeVanillaTest(cls, **kwargs):
"""
Execute a Vanilla UI class in a mini application.
"""
app = NS... | from AppKit import *
from PyObjCTools import AppHelper
class _VanillaMiniAppDelegate(NSObject):
def applicationShouldTerminateAfterLastWindowClosed_(self, notification):
return True
def executeVanillaTest(cls, **kwargs):
"""
Execute a Vanilla UI class in a mini application.
"""
app = NS... | <commit_before>from AppKit import *
from PyObjCTools import AppHelper
class _VanillaMiniAppDelegate(NSObject):
def applicationShouldTerminateAfterLastWindowClosed_(self, notification):
return True
def executeVanillaTest(cls, **kwargs):
"""
Execute a Vanilla UI class in a mini application.
"... | from AppKit import *
from PyObjCTools import AppHelper
class _VanillaMiniAppDelegate(NSObject):
def applicationShouldTerminateAfterLastWindowClosed_(self, notification):
return True
def executeVanillaTest(cls, **kwargs):
"""
Execute a Vanilla UI class in a mini application.
"""
app = NS... | from AppKit import *
from PyObjCTools import AppHelper
class _VanillaMiniAppDelegate(NSObject):
def applicationShouldTerminateAfterLastWindowClosed_(self, notification):
return True
def executeVanillaTest(cls, **kwargs):
"""
Execute a Vanilla UI class in a mini application.
"""
app = NS... | <commit_before>from AppKit import *
from PyObjCTools import AppHelper
class _VanillaMiniAppDelegate(NSObject):
def applicationShouldTerminateAfterLastWindowClosed_(self, notification):
return True
def executeVanillaTest(cls, **kwargs):
"""
Execute a Vanilla UI class in a mini application.
"... |
0dc45239dde56ec7f1406646de4749a5cf43303e | proj_name/app_name/models.py | proj_name/app_name/models.py | from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Admin:
pass
def __unicode__(self):
return "<Poll '%s'>" % self.question
class Tag(models.Model):
name = models.CharField(max_length=200)
class Choice... | from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Admin:
pass
def __unicode__(self):
return "<Poll '%s'>" % self.question
class Tag(models.Model):
name = models.CharField(max_length=200)
class Choice... | Add a test for django model inheritance of the foreign key kind. | Add a test for django model inheritance of the foreign key kind.
| Python | bsd-3-clause | g2p/tranquil | from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Admin:
pass
def __unicode__(self):
return "<Poll '%s'>" % self.question
class Tag(models.Model):
name = models.CharField(max_length=200)
class Choice... | from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Admin:
pass
def __unicode__(self):
return "<Poll '%s'>" % self.question
class Tag(models.Model):
name = models.CharField(max_length=200)
class Choice... | <commit_before>from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Admin:
pass
def __unicode__(self):
return "<Poll '%s'>" % self.question
class Tag(models.Model):
name = models.CharField(max_length=200... | from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Admin:
pass
def __unicode__(self):
return "<Poll '%s'>" % self.question
class Tag(models.Model):
name = models.CharField(max_length=200)
class Choice... | from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Admin:
pass
def __unicode__(self):
return "<Poll '%s'>" % self.question
class Tag(models.Model):
name = models.CharField(max_length=200)
class Choice... | <commit_before>from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
class Admin:
pass
def __unicode__(self):
return "<Poll '%s'>" % self.question
class Tag(models.Model):
name = models.CharField(max_length=200... |
16dda42316176f0ad9c747731764855792fe88d6 | lymph/utils/observables.py | lymph/utils/observables.py | # Taken from https://github.com/delivero/lymph-storage/blob/master/lymph/storage/observables.py
class Observable(object):
def __init__(self):
self.observers = {}
def notify_observers(self, action, *args, **kwargs):
for callback in self.observers.get(action, ()):
callback(*args, **kw... |
class Observable(object):
def __init__(self):
self.observers = {}
def notify_observers(self, action, *args, **kwargs):
kwargs.setdefault('action', action)
for callback in self.observers.get(action, ()):
callback(*args, **kwargs)
def observe(self, actions, callback):
... | Allow observing more than one action at once | Allow observing more than one action at once
| Python | apache-2.0 | lyudmildrx/lymph,mouadino/lymph,Drahflow/lymph,itakouna/lymph,vpikulik/lymph,deliveryhero/lymph,kstrempel/lymph,alazaro/lymph,lyudmildrx/lymph,itakouna/lymph,mamachanko/lymph,torte/lymph,mamachanko/lymph,lyudmildrx/lymph,alazaro/lymph,mouadino/lymph,mamachanko/lymph,mouadino/lymph,alazaro/lymph,itakouna/lymph,dushyant8... | # Taken from https://github.com/delivero/lymph-storage/blob/master/lymph/storage/observables.py
class Observable(object):
def __init__(self):
self.observers = {}
def notify_observers(self, action, *args, **kwargs):
for callback in self.observers.get(action, ()):
callback(*args, **kw... |
class Observable(object):
def __init__(self):
self.observers = {}
def notify_observers(self, action, *args, **kwargs):
kwargs.setdefault('action', action)
for callback in self.observers.get(action, ()):
callback(*args, **kwargs)
def observe(self, actions, callback):
... | <commit_before># Taken from https://github.com/delivero/lymph-storage/blob/master/lymph/storage/observables.py
class Observable(object):
def __init__(self):
self.observers = {}
def notify_observers(self, action, *args, **kwargs):
for callback in self.observers.get(action, ()):
callb... |
class Observable(object):
def __init__(self):
self.observers = {}
def notify_observers(self, action, *args, **kwargs):
kwargs.setdefault('action', action)
for callback in self.observers.get(action, ()):
callback(*args, **kwargs)
def observe(self, actions, callback):
... | # Taken from https://github.com/delivero/lymph-storage/blob/master/lymph/storage/observables.py
class Observable(object):
def __init__(self):
self.observers = {}
def notify_observers(self, action, *args, **kwargs):
for callback in self.observers.get(action, ()):
callback(*args, **kw... | <commit_before># Taken from https://github.com/delivero/lymph-storage/blob/master/lymph/storage/observables.py
class Observable(object):
def __init__(self):
self.observers = {}
def notify_observers(self, action, *args, **kwargs):
for callback in self.observers.get(action, ()):
callb... |
8061c40275fb803952a9d0eec2f58788f07673c7 | src/presence_analyzer/main.py | src/presence_analyzer/main.py | # -*- coding: utf-8 -*-
"""
Flask app initialization.
"""
import os.path
from flask import Flask
MAIN_DATA_CSV = os.path.join(
os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'sample_data.csv'
)
app = Flask(__name__) # pylint: disable=invalid-name
app.config.update(
DEBUG = True,
DATA_CSV = M... | # -*- coding: utf-8 -*-
"""
Flask app initialization.
"""
import os.path
from flask import Flask
MAIN_DATA_CSV = os.path.join(
os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'sample_data.csv'
)
app = Flask(__name__) # pylint: disable=invalid-name
app.config.update(
DEBUG=True,
DATA_CSV=MAIN_... | Remove spaces in function named arguments | Remove spaces in function named arguments
| Python | mit | stxnext-kindergarten/presence-analyzer-pburniak,stxnext-kindergarten/presence-analyzer-pburniak | # -*- coding: utf-8 -*-
"""
Flask app initialization.
"""
import os.path
from flask import Flask
MAIN_DATA_CSV = os.path.join(
os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'sample_data.csv'
)
app = Flask(__name__) # pylint: disable=invalid-name
app.config.update(
DEBUG = True,
DATA_CSV = M... | # -*- coding: utf-8 -*-
"""
Flask app initialization.
"""
import os.path
from flask import Flask
MAIN_DATA_CSV = os.path.join(
os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'sample_data.csv'
)
app = Flask(__name__) # pylint: disable=invalid-name
app.config.update(
DEBUG=True,
DATA_CSV=MAIN_... | <commit_before># -*- coding: utf-8 -*-
"""
Flask app initialization.
"""
import os.path
from flask import Flask
MAIN_DATA_CSV = os.path.join(
os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'sample_data.csv'
)
app = Flask(__name__) # pylint: disable=invalid-name
app.config.update(
DEBUG = True,
... | # -*- coding: utf-8 -*-
"""
Flask app initialization.
"""
import os.path
from flask import Flask
MAIN_DATA_CSV = os.path.join(
os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'sample_data.csv'
)
app = Flask(__name__) # pylint: disable=invalid-name
app.config.update(
DEBUG=True,
DATA_CSV=MAIN_... | # -*- coding: utf-8 -*-
"""
Flask app initialization.
"""
import os.path
from flask import Flask
MAIN_DATA_CSV = os.path.join(
os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'sample_data.csv'
)
app = Flask(__name__) # pylint: disable=invalid-name
app.config.update(
DEBUG = True,
DATA_CSV = M... | <commit_before># -*- coding: utf-8 -*-
"""
Flask app initialization.
"""
import os.path
from flask import Flask
MAIN_DATA_CSV = os.path.join(
os.path.dirname(__file__), '..', '..', 'runtime', 'data', 'sample_data.csv'
)
app = Flask(__name__) # pylint: disable=invalid-name
app.config.update(
DEBUG = True,
... |
383480592964f5b1f9fd0bb31672464d94ee46e5 | test/integration/022_bigquery_test/test_bigquery_adapter_specific.py | test/integration/022_bigquery_test/test_bigquery_adapter_specific.py | """"Test adapter specific config options."""
from test.integration.base import DBTIntegrationTest, use_profile
import textwrap
import yaml
class TestBigqueryAdapterSpecific(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
return ... | """"Test adapter specific config options."""
from test.integration.base import DBTIntegrationTest, use_profile
import textwrap
import yaml
class TestBigqueryAdapterSpecific(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
return ... | Use injected sql from results | Use injected sql from results
| Python | apache-2.0 | analyst-collective/dbt,analyst-collective/dbt | """"Test adapter specific config options."""
from test.integration.base import DBTIntegrationTest, use_profile
import textwrap
import yaml
class TestBigqueryAdapterSpecific(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
return ... | """"Test adapter specific config options."""
from test.integration.base import DBTIntegrationTest, use_profile
import textwrap
import yaml
class TestBigqueryAdapterSpecific(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
return ... | <commit_before>""""Test adapter specific config options."""
from test.integration.base import DBTIntegrationTest, use_profile
import textwrap
import yaml
class TestBigqueryAdapterSpecific(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
... | """"Test adapter specific config options."""
from test.integration.base import DBTIntegrationTest, use_profile
import textwrap
import yaml
class TestBigqueryAdapterSpecific(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
return ... | """"Test adapter specific config options."""
from test.integration.base import DBTIntegrationTest, use_profile
import textwrap
import yaml
class TestBigqueryAdapterSpecific(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
return ... | <commit_before>""""Test adapter specific config options."""
from test.integration.base import DBTIntegrationTest, use_profile
import textwrap
import yaml
class TestBigqueryAdapterSpecific(DBTIntegrationTest):
@property
def schema(self):
return "bigquery_test_022"
@property
def models(self):
... |
8f97399b10b99ea132c9928ff8a852f0b06d2064 | api/api/setup.py | api/api/setup.py | """
Setup for the API
"""
import api
log = api.logger.use(__name__)
def index_mongo():
"""
Ensure the mongo collections are indexed.
"""
db = api.common.get_conn()
log.debug("Ensuring mongo is indexed.")
db.users.ensure_index("uid", unique=True, name="unique uid")
db.groups.ensure_inde... | """
Setup for the API
"""
import api
log = api.logger.use(__name__)
def index_mongo():
"""
Ensure the mongo collections are indexed.
"""
db = api.common.get_conn()
log.debug("Ensuring mongo is indexed.")
db.users.ensure_index("uid", unique=True, name="unique uid")
db.groups.ensure_inde... | Index on the cache collection. More work could be done here | Index on the cache collection. More work could be done here
| Python | mit | IceCTF/ctf-platform,IceCTF/ctf-platform,IceCTF/ctf-platform | """
Setup for the API
"""
import api
log = api.logger.use(__name__)
def index_mongo():
"""
Ensure the mongo collections are indexed.
"""
db = api.common.get_conn()
log.debug("Ensuring mongo is indexed.")
db.users.ensure_index("uid", unique=True, name="unique uid")
db.groups.ensure_inde... | """
Setup for the API
"""
import api
log = api.logger.use(__name__)
def index_mongo():
"""
Ensure the mongo collections are indexed.
"""
db = api.common.get_conn()
log.debug("Ensuring mongo is indexed.")
db.users.ensure_index("uid", unique=True, name="unique uid")
db.groups.ensure_inde... | <commit_before>"""
Setup for the API
"""
import api
log = api.logger.use(__name__)
def index_mongo():
"""
Ensure the mongo collections are indexed.
"""
db = api.common.get_conn()
log.debug("Ensuring mongo is indexed.")
db.users.ensure_index("uid", unique=True, name="unique uid")
db.gro... | """
Setup for the API
"""
import api
log = api.logger.use(__name__)
def index_mongo():
"""
Ensure the mongo collections are indexed.
"""
db = api.common.get_conn()
log.debug("Ensuring mongo is indexed.")
db.users.ensure_index("uid", unique=True, name="unique uid")
db.groups.ensure_inde... | """
Setup for the API
"""
import api
log = api.logger.use(__name__)
def index_mongo():
"""
Ensure the mongo collections are indexed.
"""
db = api.common.get_conn()
log.debug("Ensuring mongo is indexed.")
db.users.ensure_index("uid", unique=True, name="unique uid")
db.groups.ensure_inde... | <commit_before>"""
Setup for the API
"""
import api
log = api.logger.use(__name__)
def index_mongo():
"""
Ensure the mongo collections are indexed.
"""
db = api.common.get_conn()
log.debug("Ensuring mongo is indexed.")
db.users.ensure_index("uid", unique=True, name="unique uid")
db.gro... |
ab63a427361ef72f0e573654cf6100754b268616 | l10n_es_facturae/components/edi_output_l10n_es_facturae.py | l10n_es_facturae/components/edi_output_l10n_es_facturae.py | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class EdiOutputL10nEsFacturae(Component):
_name = "edi.output.generate.l10n_es_facturae"
_inherit = "edi.component.output.mixin"
_usage = ... | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class EdiOutputL10nEsFacturae(Component):
_name = "edi.output.generate.l10n_es_facturae"
_inherit = "edi.component.output.mixin"
_usage = ... | Fix components names using the new logic | [FIX] l10n_es_facturae: Fix components names using the new logic
| Python | agpl-3.0 | OCA/l10n-spain,OCA/l10n-spain,OCA/l10n-spain | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class EdiOutputL10nEsFacturae(Component):
_name = "edi.output.generate.l10n_es_facturae"
_inherit = "edi.component.output.mixin"
_usage = ... | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class EdiOutputL10nEsFacturae(Component):
_name = "edi.output.generate.l10n_es_facturae"
_inherit = "edi.component.output.mixin"
_usage = ... | <commit_before># Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class EdiOutputL10nEsFacturae(Component):
_name = "edi.output.generate.l10n_es_facturae"
_inherit = "edi.component.output.mixin... | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class EdiOutputL10nEsFacturae(Component):
_name = "edi.output.generate.l10n_es_facturae"
_inherit = "edi.component.output.mixin"
_usage = ... | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class EdiOutputL10nEsFacturae(Component):
_name = "edi.output.generate.l10n_es_facturae"
_inherit = "edi.component.output.mixin"
_usage = ... | <commit_before># Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.component.core import Component
class EdiOutputL10nEsFacturae(Component):
_name = "edi.output.generate.l10n_es_facturae"
_inherit = "edi.component.output.mixin... |
277065e53aa58bac3bad3c2511ffc867984b010b | scoring_engine/config_loader.py | scoring_engine/config_loader.py | import configparser
import os
class ConfigLoader(object):
def __init__(self, location=None):
if location is None:
location = "../engine.conf"
config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)
self.parser = configparser.ConfigParser()
... | import configparser
import os
class ConfigLoader(object):
def __init__(self, location="../engine.conf"):
config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)
self.parser = configparser.ConfigParser()
self.parser.read(config_location)
self.web_debu... | Improve config loader init function | Improve config loader init function
| Python | mit | pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine | import configparser
import os
class ConfigLoader(object):
def __init__(self, location=None):
if location is None:
location = "../engine.conf"
config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)
self.parser = configparser.ConfigParser()
... | import configparser
import os
class ConfigLoader(object):
def __init__(self, location="../engine.conf"):
config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)
self.parser = configparser.ConfigParser()
self.parser.read(config_location)
self.web_debu... | <commit_before>import configparser
import os
class ConfigLoader(object):
def __init__(self, location=None):
if location is None:
location = "../engine.conf"
config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)
self.parser = configparser.ConfigP... | import configparser
import os
class ConfigLoader(object):
def __init__(self, location="../engine.conf"):
config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)
self.parser = configparser.ConfigParser()
self.parser.read(config_location)
self.web_debu... | import configparser
import os
class ConfigLoader(object):
def __init__(self, location=None):
if location is None:
location = "../engine.conf"
config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)
self.parser = configparser.ConfigParser()
... | <commit_before>import configparser
import os
class ConfigLoader(object):
def __init__(self, location=None):
if location is None:
location = "../engine.conf"
config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)
self.parser = configparser.ConfigP... |
d09e2831d95a2bc045da75496c70337246e77d5f | BoxAndWhisker.py | BoxAndWhisker.py | from matplotlib import pyplot
from PlotInfo import *
class BoxAndWhisker(PlotInfo):
"""
Box and whisker plots
"""
def __init__(self):
super(BoxAndWhisker,self).__init__("boxplot")
self.width=None
self.color="black"
self.label = None
self.xSequence = []
def ... | from matplotlib import pyplot
from PlotInfo import *
from Marker import Marker
class BoxAndWhisker(PlotInfo):
"""
Box and whisker plots
"""
def __init__(self):
super(BoxAndWhisker,self).__init__("boxplot")
self.width=None
self.color="black"
self.label = None
sel... | Allow flier markers in box-and-whisker plots to be modified. | Allow flier markers in box-and-whisker plots to be modified.
| Python | bsd-3-clause | alexras/boomslang | from matplotlib import pyplot
from PlotInfo import *
class BoxAndWhisker(PlotInfo):
"""
Box and whisker plots
"""
def __init__(self):
super(BoxAndWhisker,self).__init__("boxplot")
self.width=None
self.color="black"
self.label = None
self.xSequence = []
def ... | from matplotlib import pyplot
from PlotInfo import *
from Marker import Marker
class BoxAndWhisker(PlotInfo):
"""
Box and whisker plots
"""
def __init__(self):
super(BoxAndWhisker,self).__init__("boxplot")
self.width=None
self.color="black"
self.label = None
sel... | <commit_before>from matplotlib import pyplot
from PlotInfo import *
class BoxAndWhisker(PlotInfo):
"""
Box and whisker plots
"""
def __init__(self):
super(BoxAndWhisker,self).__init__("boxplot")
self.width=None
self.color="black"
self.label = None
self.xSequence... | from matplotlib import pyplot
from PlotInfo import *
from Marker import Marker
class BoxAndWhisker(PlotInfo):
"""
Box and whisker plots
"""
def __init__(self):
super(BoxAndWhisker,self).__init__("boxplot")
self.width=None
self.color="black"
self.label = None
sel... | from matplotlib import pyplot
from PlotInfo import *
class BoxAndWhisker(PlotInfo):
"""
Box and whisker plots
"""
def __init__(self):
super(BoxAndWhisker,self).__init__("boxplot")
self.width=None
self.color="black"
self.label = None
self.xSequence = []
def ... | <commit_before>from matplotlib import pyplot
from PlotInfo import *
class BoxAndWhisker(PlotInfo):
"""
Box and whisker plots
"""
def __init__(self):
super(BoxAndWhisker,self).__init__("boxplot")
self.width=None
self.color="black"
self.label = None
self.xSequence... |
04d5fef36b778d2a2d1f217e85ed919e50c75c9a | es_enas/controllers/regularized_evolution_controller.py | es_enas/controllers/regularized_evolution_controller.py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | Replace deprecated PyGlove symbols to new ones. | Replace deprecated PyGlove symbols to new ones.
PiperOrigin-RevId: 408683720
| Python | apache-2.0 | google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,... | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | <commit_before># coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | <commit_before># coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... |
abbae774903165f19d144905ad77553ec913c78d | saves.py | saves.py | import os
import json
from serializable import Serializable
class Saves: #Only partially implemembted- only works for PlayerCharacters
#Because we want the user to be able to play on whatever world they want with whatever character
#they want, characters have to be stored independently of everything else
#We nee... | import os
import json
from serializable import Serializable
class Saves: #Only partially implemembted- only works for PlayerCharacters
#Because we want the user to be able to play on whatever world they want with whatever character
#they want, characters have to be stored independently of everything else
#We nee... | Fix for non-existent character folder bug | Fix for non-existent character folder bug
| Python | mit | benjamincongdon/adept | import os
import json
from serializable import Serializable
class Saves: #Only partially implemembted- only works for PlayerCharacters
#Because we want the user to be able to play on whatever world they want with whatever character
#they want, characters have to be stored independently of everything else
#We nee... | import os
import json
from serializable import Serializable
class Saves: #Only partially implemembted- only works for PlayerCharacters
#Because we want the user to be able to play on whatever world they want with whatever character
#they want, characters have to be stored independently of everything else
#We nee... | <commit_before>import os
import json
from serializable import Serializable
class Saves: #Only partially implemembted- only works for PlayerCharacters
#Because we want the user to be able to play on whatever world they want with whatever character
#they want, characters have to be stored independently of everythin... | import os
import json
from serializable import Serializable
class Saves: #Only partially implemembted- only works for PlayerCharacters
#Because we want the user to be able to play on whatever world they want with whatever character
#they want, characters have to be stored independently of everything else
#We nee... | import os
import json
from serializable import Serializable
class Saves: #Only partially implemembted- only works for PlayerCharacters
#Because we want the user to be able to play on whatever world they want with whatever character
#they want, characters have to be stored independently of everything else
#We nee... | <commit_before>import os
import json
from serializable import Serializable
class Saves: #Only partially implemembted- only works for PlayerCharacters
#Because we want the user to be able to play on whatever world they want with whatever character
#they want, characters have to be stored independently of everythin... |
c4f7530da8d0a94d8fc7d51a5f0d6ad653d16196 | stack-builder/hiera_config.py | stack-builder/hiera_config.py | #!/usr/bin/env python
"""
stack-builder.hiera_config
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module will read metadata set during instance
launch and override any yaml under the /etc/puppet/data
directory (except data_mappings) that has a key matching
the metadata
"""
import yaml
import os
hiera_dir ... | #!/usr/bin/env python
"""
stack-builder.hiera_config
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module will read metadata set during instance
launch and override any yaml under the /etc/puppet/data
directory (except data_mappings) that has a key matching
the metadata
"""
import yaml
import os
hiera_dir ... | Revert "Wrap fact exports in quotes" | Revert "Wrap fact exports in quotes"
This reverts commit bf5b568b05066b3d31b3c7c1f56ef86d4c5c3dca.
Conflicts:
stack-builder/hiera_config.py
| Python | apache-2.0 | CiscoSystems/puppet_openstack_builder--to-be-deleted,michaeltchapman/vagrant-consul,CiscoSystems/puppet_openstack_builder--to-be-deleted,michaeltchapman/puppet_openstack_builder,CiscoSystems/puppet_openstack_builder--to-be-deleted,michaeltchapman/vagrant-consul,CiscoSystems/openstack-installer--to-be-replaced-by-puppet... | #!/usr/bin/env python
"""
stack-builder.hiera_config
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module will read metadata set during instance
launch and override any yaml under the /etc/puppet/data
directory (except data_mappings) that has a key matching
the metadata
"""
import yaml
import os
hiera_dir ... | #!/usr/bin/env python
"""
stack-builder.hiera_config
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module will read metadata set during instance
launch and override any yaml under the /etc/puppet/data
directory (except data_mappings) that has a key matching
the metadata
"""
import yaml
import os
hiera_dir ... | <commit_before>#!/usr/bin/env python
"""
stack-builder.hiera_config
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module will read metadata set during instance
launch and override any yaml under the /etc/puppet/data
directory (except data_mappings) that has a key matching
the metadata
"""
import yaml
import... | #!/usr/bin/env python
"""
stack-builder.hiera_config
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module will read metadata set during instance
launch and override any yaml under the /etc/puppet/data
directory (except data_mappings) that has a key matching
the metadata
"""
import yaml
import os
hiera_dir ... | #!/usr/bin/env python
"""
stack-builder.hiera_config
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module will read metadata set during instance
launch and override any yaml under the /etc/puppet/data
directory (except data_mappings) that has a key matching
the metadata
"""
import yaml
import os
hiera_dir ... | <commit_before>#!/usr/bin/env python
"""
stack-builder.hiera_config
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module will read metadata set during instance
launch and override any yaml under the /etc/puppet/data
directory (except data_mappings) that has a key matching
the metadata
"""
import yaml
import... |
474eda82f332a645193c1806dbaf840b8d506a65 | sigma_core/serializers/cluster.py | sigma_core/serializers/cluster.py | from rest_framework import serializers
from sigma_core.models.cluster import Cluster
from sigma_core.serializers.group import GroupSerializer
class BasicClusterSerializer(serializers.ModelSerializer):
"""
Serialize Cluster model without memberships.
"""
class Meta:
model = Cluster
excl... | from rest_framework import serializers
from sigma_core.models.cluster import Cluster
from sigma_core.serializers.group import GroupSerializer
class BasicClusterSerializer(serializers.ModelSerializer):
"""
Serialize Cluster model without memberships.
"""
class Meta:
model = Cluster
excl... | Use only foreign keys in Cluster serialisation and add _id suffixes | Use only foreign keys in Cluster serialisation and add _id suffixes
| Python | agpl-3.0 | ProjetSigma/backend,ProjetSigma/backend | from rest_framework import serializers
from sigma_core.models.cluster import Cluster
from sigma_core.serializers.group import GroupSerializer
class BasicClusterSerializer(serializers.ModelSerializer):
"""
Serialize Cluster model without memberships.
"""
class Meta:
model = Cluster
excl... | from rest_framework import serializers
from sigma_core.models.cluster import Cluster
from sigma_core.serializers.group import GroupSerializer
class BasicClusterSerializer(serializers.ModelSerializer):
"""
Serialize Cluster model without memberships.
"""
class Meta:
model = Cluster
excl... | <commit_before>from rest_framework import serializers
from sigma_core.models.cluster import Cluster
from sigma_core.serializers.group import GroupSerializer
class BasicClusterSerializer(serializers.ModelSerializer):
"""
Serialize Cluster model without memberships.
"""
class Meta:
model = Clust... | from rest_framework import serializers
from sigma_core.models.cluster import Cluster
from sigma_core.serializers.group import GroupSerializer
class BasicClusterSerializer(serializers.ModelSerializer):
"""
Serialize Cluster model without memberships.
"""
class Meta:
model = Cluster
excl... | from rest_framework import serializers
from sigma_core.models.cluster import Cluster
from sigma_core.serializers.group import GroupSerializer
class BasicClusterSerializer(serializers.ModelSerializer):
"""
Serialize Cluster model without memberships.
"""
class Meta:
model = Cluster
excl... | <commit_before>from rest_framework import serializers
from sigma_core.models.cluster import Cluster
from sigma_core.serializers.group import GroupSerializer
class BasicClusterSerializer(serializers.ModelSerializer):
"""
Serialize Cluster model without memberships.
"""
class Meta:
model = Clust... |
11c3a7a9cfc2f86bc6df06d16caf0950cbedf6d6 | setup.py | setup.py | from setuptools import find_packages
from setuptools import setup
setup(
name='Sukimu',
version='0.0.4',
url='https://github.com/xethorn/sukimu',
author='Michael Ortali',
author_email='[email protected]',
description=(
'Standardized way to perform CRUD operations with Field validation... | from setuptools import find_packages
from setuptools import setup
setup(
name='Sukimu',
version='0.0.5',
url='https://github.com/xethorn/sukimu',
author='Michael Ortali',
author_email='[email protected]',
description=(
'Standardized way to perform CRUD operations with Field validation... | Update the version to 0.0.5 | Update the version to 0.0.5
| Python | mit | xethorn/sukimu | from setuptools import find_packages
from setuptools import setup
setup(
name='Sukimu',
version='0.0.4',
url='https://github.com/xethorn/sukimu',
author='Michael Ortali',
author_email='[email protected]',
description=(
'Standardized way to perform CRUD operations with Field validation... | from setuptools import find_packages
from setuptools import setup
setup(
name='Sukimu',
version='0.0.5',
url='https://github.com/xethorn/sukimu',
author='Michael Ortali',
author_email='[email protected]',
description=(
'Standardized way to perform CRUD operations with Field validation... | <commit_before>from setuptools import find_packages
from setuptools import setup
setup(
name='Sukimu',
version='0.0.4',
url='https://github.com/xethorn/sukimu',
author='Michael Ortali',
author_email='[email protected]',
description=(
'Standardized way to perform CRUD operations with F... | from setuptools import find_packages
from setuptools import setup
setup(
name='Sukimu',
version='0.0.5',
url='https://github.com/xethorn/sukimu',
author='Michael Ortali',
author_email='[email protected]',
description=(
'Standardized way to perform CRUD operations with Field validation... | from setuptools import find_packages
from setuptools import setup
setup(
name='Sukimu',
version='0.0.4',
url='https://github.com/xethorn/sukimu',
author='Michael Ortali',
author_email='[email protected]',
description=(
'Standardized way to perform CRUD operations with Field validation... | <commit_before>from setuptools import find_packages
from setuptools import setup
setup(
name='Sukimu',
version='0.0.4',
url='https://github.com/xethorn/sukimu',
author='Michael Ortali',
author_email='[email protected]',
description=(
'Standardized way to perform CRUD operations with F... |
ec25dc5bbca6a652ca39616ffc780e200cd29257 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='cosmo',
version='0.0.1',
description='Monitors for HST/COS',
keywords=['astronomy'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: BSD-3 :: Association of Universities for Research in Astronomy',
'Op... | from setuptools import setup, find_packages
setup(
name='cosmo',
version='0.0.1',
description='Monitors for HST/COS',
keywords=['astronomy'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: BSD-3 :: Association of Universities for Research in Astronomy',
'Op... | Update plotly requirement to >=4.0.0 | Update plotly requirement to >=4.0.0
| Python | bsd-3-clause | justincely/cos_monitoring | from setuptools import setup, find_packages
setup(
name='cosmo',
version='0.0.1',
description='Monitors for HST/COS',
keywords=['astronomy'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: BSD-3 :: Association of Universities for Research in Astronomy',
'Op... | from setuptools import setup, find_packages
setup(
name='cosmo',
version='0.0.1',
description='Monitors for HST/COS',
keywords=['astronomy'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: BSD-3 :: Association of Universities for Research in Astronomy',
'Op... | <commit_before>from setuptools import setup, find_packages
setup(
name='cosmo',
version='0.0.1',
description='Monitors for HST/COS',
keywords=['astronomy'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: BSD-3 :: Association of Universities for Research in Astronom... | from setuptools import setup, find_packages
setup(
name='cosmo',
version='0.0.1',
description='Monitors for HST/COS',
keywords=['astronomy'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: BSD-3 :: Association of Universities for Research in Astronomy',
'Op... | from setuptools import setup, find_packages
setup(
name='cosmo',
version='0.0.1',
description='Monitors for HST/COS',
keywords=['astronomy'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: BSD-3 :: Association of Universities for Research in Astronomy',
'Op... | <commit_before>from setuptools import setup, find_packages
setup(
name='cosmo',
version='0.0.1',
description='Monitors for HST/COS',
keywords=['astronomy'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: BSD-3 :: Association of Universities for Research in Astronom... |
4f8379370b67d4ac25fd9538571cdc541091e97d | reviewboard/accounts/urls.py | reviewboard/accounts/urls.py | from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
"reviewboard.accounts.views",
url(r'^register/$', 'account_register',
{'next_url': 'dashboard'}, name="register"),
url(r'^preferences/$', 'user_preferences', name="user-preferences"),
)
ur... | from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
"reviewboard.accounts.views",
url(r'^register/$', 'account_register',
{'next_url': 'dashboard'}, name="register"),
url(r'^preferences/$', 'user_preferences', name="user-preferences"),
)
ur... | Fix password_reset_confirm URL for django change. | Fix password_reset_confirm URL for django change.
Django changed the uid parameter to the password_reset_confirm view to be
base64-encoded instead of base36. This means our URL had to change a bit.
Trivial change.
| Python | mit | custode/reviewboard,bkochendorfer/reviewboard,davidt/reviewboard,reviewboard/reviewboard,1tush/reviewboard,KnowNo/reviewboard,custode/reviewboard,reviewboard/reviewboard,1tush/reviewboard,KnowNo/reviewboard,reviewboard/reviewboard,brennie/reviewboard,bkochendorfer/reviewboard,beol/reviewboard,sgallagher/reviewboard,rev... | from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
"reviewboard.accounts.views",
url(r'^register/$', 'account_register',
{'next_url': 'dashboard'}, name="register"),
url(r'^preferences/$', 'user_preferences', name="user-preferences"),
)
ur... | from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
"reviewboard.accounts.views",
url(r'^register/$', 'account_register',
{'next_url': 'dashboard'}, name="register"),
url(r'^preferences/$', 'user_preferences', name="user-preferences"),
)
ur... | <commit_before>from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
"reviewboard.accounts.views",
url(r'^register/$', 'account_register',
{'next_url': 'dashboard'}, name="register"),
url(r'^preferences/$', 'user_preferences', name="user-prefe... | from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
"reviewboard.accounts.views",
url(r'^register/$', 'account_register',
{'next_url': 'dashboard'}, name="register"),
url(r'^preferences/$', 'user_preferences', name="user-preferences"),
)
ur... | from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
"reviewboard.accounts.views",
url(r'^register/$', 'account_register',
{'next_url': 'dashboard'}, name="register"),
url(r'^preferences/$', 'user_preferences', name="user-preferences"),
)
ur... | <commit_before>from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
"reviewboard.accounts.views",
url(r'^register/$', 'account_register',
{'next_url': 'dashboard'}, name="register"),
url(r'^preferences/$', 'user_preferences', name="user-prefe... |
9df2bae691e8613794be3713194db2420fc75385 | gapipy/resources/dossier/transport_dossier.py | gapipy/resources/dossier/transport_dossier.py | from __future__ import unicode_literals
from ..base import Resource
from .details import DossierDetail, DossierDetailsMixin
from .dossier_features import DossierFeature
class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'
_as_is_fields = [
'id', 'href', 'featu... | from __future__ import unicode_literals
from ..base import Resource
from .details import DossierDetail, DossierDetailsMixin
from .dossier_features import DossierFeature
class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'
_as_is_fields = [
'id', 'href', 'capac... | Remove features from as-is fields on TransportDossier | Remove features from as-is fields on TransportDossier
Reflected as a model_collection_field
| Python | mit | gadventures/gapipy | from __future__ import unicode_literals
from ..base import Resource
from .details import DossierDetail, DossierDetailsMixin
from .dossier_features import DossierFeature
class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'
_as_is_fields = [
'id', 'href', 'featu... | from __future__ import unicode_literals
from ..base import Resource
from .details import DossierDetail, DossierDetailsMixin
from .dossier_features import DossierFeature
class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'
_as_is_fields = [
'id', 'href', 'capac... | <commit_before>from __future__ import unicode_literals
from ..base import Resource
from .details import DossierDetail, DossierDetailsMixin
from .dossier_features import DossierFeature
class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'
_as_is_fields = [
'id',... | from __future__ import unicode_literals
from ..base import Resource
from .details import DossierDetail, DossierDetailsMixin
from .dossier_features import DossierFeature
class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'
_as_is_fields = [
'id', 'href', 'capac... | from __future__ import unicode_literals
from ..base import Resource
from .details import DossierDetail, DossierDetailsMixin
from .dossier_features import DossierFeature
class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'
_as_is_fields = [
'id', 'href', 'featu... | <commit_before>from __future__ import unicode_literals
from ..base import Resource
from .details import DossierDetail, DossierDetailsMixin
from .dossier_features import DossierFeature
class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'
_as_is_fields = [
'id',... |
94d7dc0a116ff089ac5943dd795c9f02bc040788 | waterbutler/providers/dropbox/settings.py | waterbutler/providers/dropbox/settings.py | try:
from waterbutler import settings
except ImportError:
settings = {}
config = settings.get('DROPBOX_PROVIDER_CONFIG', {})
BASE_URL = config.get('BASE_URL', 'https://api.dropboxapi.com/1/')
BASE_CONTENT_URL = config.get('BASE_CONTENT_URL', 'https://content.dropboxapi.com/1/')
| try:
from waterbutler import settings
except ImportError:
settings = {}
config = settings.get('DROPBOX_PROVIDER_CONFIG', {})
BASE_URL = config.get('BASE_URL', 'https://api.dropbox.com/1/')
BASE_CONTENT_URL = config.get('BASE_CONTENT_URL', 'https://api-content.dropbox.com/1/')
| Revert "Update drobox api urls h/t @felliott" | Revert "Update drobox api urls h/t @felliott"
This reverts commit 6d1612698c2e42ab60d521915f31ff08832e3745.
| Python | apache-2.0 | RCOSDP/waterbutler,CenterForOpenScience/waterbutler,felliott/waterbutler,Johnetordoff/waterbutler,rdhyee/waterbutler,TomBaxter/waterbutler | try:
from waterbutler import settings
except ImportError:
settings = {}
config = settings.get('DROPBOX_PROVIDER_CONFIG', {})
BASE_URL = config.get('BASE_URL', 'https://api.dropboxapi.com/1/')
BASE_CONTENT_URL = config.get('BASE_CONTENT_URL', 'https://content.dropboxapi.com/1/')
Revert "Update drobox api urls... | try:
from waterbutler import settings
except ImportError:
settings = {}
config = settings.get('DROPBOX_PROVIDER_CONFIG', {})
BASE_URL = config.get('BASE_URL', 'https://api.dropbox.com/1/')
BASE_CONTENT_URL = config.get('BASE_CONTENT_URL', 'https://api-content.dropbox.com/1/')
| <commit_before>try:
from waterbutler import settings
except ImportError:
settings = {}
config = settings.get('DROPBOX_PROVIDER_CONFIG', {})
BASE_URL = config.get('BASE_URL', 'https://api.dropboxapi.com/1/')
BASE_CONTENT_URL = config.get('BASE_CONTENT_URL', 'https://content.dropboxapi.com/1/')
<commit_msg>Rev... | try:
from waterbutler import settings
except ImportError:
settings = {}
config = settings.get('DROPBOX_PROVIDER_CONFIG', {})
BASE_URL = config.get('BASE_URL', 'https://api.dropbox.com/1/')
BASE_CONTENT_URL = config.get('BASE_CONTENT_URL', 'https://api-content.dropbox.com/1/')
| try:
from waterbutler import settings
except ImportError:
settings = {}
config = settings.get('DROPBOX_PROVIDER_CONFIG', {})
BASE_URL = config.get('BASE_URL', 'https://api.dropboxapi.com/1/')
BASE_CONTENT_URL = config.get('BASE_CONTENT_URL', 'https://content.dropboxapi.com/1/')
Revert "Update drobox api urls... | <commit_before>try:
from waterbutler import settings
except ImportError:
settings = {}
config = settings.get('DROPBOX_PROVIDER_CONFIG', {})
BASE_URL = config.get('BASE_URL', 'https://api.dropboxapi.com/1/')
BASE_CONTENT_URL = config.get('BASE_CONTENT_URL', 'https://content.dropboxapi.com/1/')
<commit_msg>Rev... |
b6db1edc503222d3e954168d12e2a17b9387fc5b | bddbot/dealer.py | bddbot/dealer.py | from os import mkdir, getcwd
from bank import split_bank
from errors import BotError
class Dealer(object):
def __init__(self):
self.__feature = ""
self.__scenarios = []
def assign(self):
try:
with open("features.bank", "rb") as bank_input:
(header, self.__fe... | from os.path import join
from os import mkdir, getcwd
from bank import split_bank
from errors import BotError
FEATURE_BANK_FILENAME = "features.bank"
FEATURES_DIRECTORY = "features"
OUTPUT_FEATURES_FILENAME = join(FEATURES_DIRECTORY, "all.feature")
class Dealer(object):
def __init__(self):
self.__feature ... | Replace magic strings with constants | Replace magic strings with constants
| Python | mit | nivbend/bdd_bot | from os import mkdir, getcwd
from bank import split_bank
from errors import BotError
class Dealer(object):
def __init__(self):
self.__feature = ""
self.__scenarios = []
def assign(self):
try:
with open("features.bank", "rb") as bank_input:
(header, self.__fe... | from os.path import join
from os import mkdir, getcwd
from bank import split_bank
from errors import BotError
FEATURE_BANK_FILENAME = "features.bank"
FEATURES_DIRECTORY = "features"
OUTPUT_FEATURES_FILENAME = join(FEATURES_DIRECTORY, "all.feature")
class Dealer(object):
def __init__(self):
self.__feature ... | <commit_before>from os import mkdir, getcwd
from bank import split_bank
from errors import BotError
class Dealer(object):
def __init__(self):
self.__feature = ""
self.__scenarios = []
def assign(self):
try:
with open("features.bank", "rb") as bank_input:
(he... | from os.path import join
from os import mkdir, getcwd
from bank import split_bank
from errors import BotError
FEATURE_BANK_FILENAME = "features.bank"
FEATURES_DIRECTORY = "features"
OUTPUT_FEATURES_FILENAME = join(FEATURES_DIRECTORY, "all.feature")
class Dealer(object):
def __init__(self):
self.__feature ... | from os import mkdir, getcwd
from bank import split_bank
from errors import BotError
class Dealer(object):
def __init__(self):
self.__feature = ""
self.__scenarios = []
def assign(self):
try:
with open("features.bank", "rb") as bank_input:
(header, self.__fe... | <commit_before>from os import mkdir, getcwd
from bank import split_bank
from errors import BotError
class Dealer(object):
def __init__(self):
self.__feature = ""
self.__scenarios = []
def assign(self):
try:
with open("features.bank", "rb") as bank_input:
(he... |
77541e5b3956d9e6b130810211fcae10de29eb85 | tests/integration/base.py | tests/integration/base.py | import righteous
from ConfigParser import SafeConfigParser
from ..compat import unittest
class RighteousIntegrationTestCase(unittest.TestCase):
def setUp(self):
config = SafeConfigParser()
config.read('righteous.config')
if not config.has_section('auth'):
raise Exception('Pleas... | import righteous
from ConfigParser import SafeConfigParser
from ..compat import unittest
class RighteousIntegrationTestCase(unittest.TestCase):
def setUp(self):
config = SafeConfigParser()
config.read('righteous.config')
if not config.has_section('auth'):
raise Exception('Pleas... | Make the integration test fail, so we can see the request / response | Make the integration test fail, so we can see the request / response
| Python | unlicense | michaeljoseph/righteous,michaeljoseph/righteous | import righteous
from ConfigParser import SafeConfigParser
from ..compat import unittest
class RighteousIntegrationTestCase(unittest.TestCase):
def setUp(self):
config = SafeConfigParser()
config.read('righteous.config')
if not config.has_section('auth'):
raise Exception('Pleas... | import righteous
from ConfigParser import SafeConfigParser
from ..compat import unittest
class RighteousIntegrationTestCase(unittest.TestCase):
def setUp(self):
config = SafeConfigParser()
config.read('righteous.config')
if not config.has_section('auth'):
raise Exception('Pleas... | <commit_before>import righteous
from ConfigParser import SafeConfigParser
from ..compat import unittest
class RighteousIntegrationTestCase(unittest.TestCase):
def setUp(self):
config = SafeConfigParser()
config.read('righteous.config')
if not config.has_section('auth'):
raise E... | import righteous
from ConfigParser import SafeConfigParser
from ..compat import unittest
class RighteousIntegrationTestCase(unittest.TestCase):
def setUp(self):
config = SafeConfigParser()
config.read('righteous.config')
if not config.has_section('auth'):
raise Exception('Pleas... | import righteous
from ConfigParser import SafeConfigParser
from ..compat import unittest
class RighteousIntegrationTestCase(unittest.TestCase):
def setUp(self):
config = SafeConfigParser()
config.read('righteous.config')
if not config.has_section('auth'):
raise Exception('Pleas... | <commit_before>import righteous
from ConfigParser import SafeConfigParser
from ..compat import unittest
class RighteousIntegrationTestCase(unittest.TestCase):
def setUp(self):
config = SafeConfigParser()
config.read('righteous.config')
if not config.has_section('auth'):
raise E... |
bc5a78c0ddd635e27fe1f1daf3907094e7ba71cc | ain7/organizations/filters.py | ain7/organizations/filters.py | # -*- coding: utf-8
"""
ain7/organizations/filters.py
"""
#
# Copyright © 2007-2016 AIn7 Devel Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | # -*- coding: utf-8
"""
ain7/organizations/filters.py
"""
#
# Copyright © 2007-2016 AIn7 Devel Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | Fix incorrect search on activity fields | Fix incorrect search on activity fields
| Python | lgpl-2.1 | ain7/www.ain7.org,ain7/www.ain7.org,ain7/www.ain7.org,ain7/www.ain7.org | # -*- coding: utf-8
"""
ain7/organizations/filters.py
"""
#
# Copyright © 2007-2016 AIn7 Devel Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | # -*- coding: utf-8
"""
ain7/organizations/filters.py
"""
#
# Copyright © 2007-2016 AIn7 Devel Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | <commit_before># -*- coding: utf-8
"""
ain7/organizations/filters.py
"""
#
# Copyright © 2007-2016 AIn7 Devel Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of ... | # -*- coding: utf-8
"""
ain7/organizations/filters.py
"""
#
# Copyright © 2007-2016 AIn7 Devel Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | # -*- coding: utf-8
"""
ain7/organizations/filters.py
"""
#
# Copyright © 2007-2016 AIn7 Devel Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | <commit_before># -*- coding: utf-8
"""
ain7/organizations/filters.py
"""
#
# Copyright © 2007-2016 AIn7 Devel Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of ... |
643e04ec09612d6f36dcd98dba44e00011674353 | fito/data_store/dict_ds.py | fito/data_store/dict_ds.py | from fito.data_store.base import BaseDataStore
class DictDataStore(BaseDataStore):
def __init__(self, *args, **kwargs):
super(DictDataStore, self).__init__(*args, **kwargs)
self.data = {}
def iteritems(self):
return self.data.iteritems()
def save(self, spec, object):
self... | from fito.data_store.base import BaseDataStore
class DictDataStore(BaseDataStore):
def __init__(self, *args, **kwargs):
super(DictDataStore, self).__init__(*args, **kwargs)
self.data = {}
def iteritems(self):
return self.data.iteritems()
def save(self, spec, object):
self... | Clean method for dict ds | Clean method for dict ds
| Python | mit | elsonidoq/fito | from fito.data_store.base import BaseDataStore
class DictDataStore(BaseDataStore):
def __init__(self, *args, **kwargs):
super(DictDataStore, self).__init__(*args, **kwargs)
self.data = {}
def iteritems(self):
return self.data.iteritems()
def save(self, spec, object):
self... | from fito.data_store.base import BaseDataStore
class DictDataStore(BaseDataStore):
def __init__(self, *args, **kwargs):
super(DictDataStore, self).__init__(*args, **kwargs)
self.data = {}
def iteritems(self):
return self.data.iteritems()
def save(self, spec, object):
self... | <commit_before>from fito.data_store.base import BaseDataStore
class DictDataStore(BaseDataStore):
def __init__(self, *args, **kwargs):
super(DictDataStore, self).__init__(*args, **kwargs)
self.data = {}
def iteritems(self):
return self.data.iteritems()
def save(self, spec, object... | from fito.data_store.base import BaseDataStore
class DictDataStore(BaseDataStore):
def __init__(self, *args, **kwargs):
super(DictDataStore, self).__init__(*args, **kwargs)
self.data = {}
def iteritems(self):
return self.data.iteritems()
def save(self, spec, object):
self... | from fito.data_store.base import BaseDataStore
class DictDataStore(BaseDataStore):
def __init__(self, *args, **kwargs):
super(DictDataStore, self).__init__(*args, **kwargs)
self.data = {}
def iteritems(self):
return self.data.iteritems()
def save(self, spec, object):
self... | <commit_before>from fito.data_store.base import BaseDataStore
class DictDataStore(BaseDataStore):
def __init__(self, *args, **kwargs):
super(DictDataStore, self).__init__(*args, **kwargs)
self.data = {}
def iteritems(self):
return self.data.iteritems()
def save(self, spec, object... |
d12916352166f8c3fcff37a9a3cdd58b0ed3aa5c | setup.py | setup.py | import os
import re
import sys
from os.path import dirname, join as pjoin
from sys import version_info
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)
if sys.argv... | import os
import re
import sys
from sys import version_info
from os.path import dirname, join as pjoin
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)
if sys.argv... | Upgrade orderedmultidict dependency to v0.7.2. | Upgrade orderedmultidict dependency to v0.7.2.
| Python | unlicense | Gerhut/furl,guiquanz/furl,lastfm/furl,penyatree/furl | import os
import re
import sys
from os.path import dirname, join as pjoin
from sys import version_info
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)
if sys.argv... | import os
import re
import sys
from sys import version_info
from os.path import dirname, join as pjoin
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)
if sys.argv... | <commit_before>import os
import re
import sys
from os.path import dirname, join as pjoin
from sys import version_info
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(... | import os
import re
import sys
from sys import version_info
from os.path import dirname, join as pjoin
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)
if sys.argv... | import os
import re
import sys
from os.path import dirname, join as pjoin
from sys import version_info
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)
if sys.argv... | <commit_before>import os
import re
import sys
from os.path import dirname, join as pjoin
from sys import version_info
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(... |
72e6a282f5669a420fe68069149a51b91f7c93fe | setup.py | setup.py | import os
from setuptools import setup
setup(
name="pcanet",
version="0.0.1",
author="Takeshi Ishita",
py_modules=["pcanet"],
install_requires=[
'chainer',
'numpy',
'psutil',
'recommonmark',
'scikit-learn',
'scipy',
'sphinx',
],
)
| import os
from setuptools import setup
setup(
name="pcanet",
version="0.0.1",
author="Takeshi Ishita",
py_modules=["pcanet"],
install_requires=[
'chainer',
'numpy',
'psutil',
'recommonmark',
'scikit-learn',
'scipy',
'sphinx'
],
depend... | Add a dependency link for cupy | Add a dependency link for cupy
| Python | mit | IshitaTakeshi/PCANet | import os
from setuptools import setup
setup(
name="pcanet",
version="0.0.1",
author="Takeshi Ishita",
py_modules=["pcanet"],
install_requires=[
'chainer',
'numpy',
'psutil',
'recommonmark',
'scikit-learn',
'scipy',
'sphinx',
],
)
Add a de... | import os
from setuptools import setup
setup(
name="pcanet",
version="0.0.1",
author="Takeshi Ishita",
py_modules=["pcanet"],
install_requires=[
'chainer',
'numpy',
'psutil',
'recommonmark',
'scikit-learn',
'scipy',
'sphinx'
],
depend... | <commit_before>import os
from setuptools import setup
setup(
name="pcanet",
version="0.0.1",
author="Takeshi Ishita",
py_modules=["pcanet"],
install_requires=[
'chainer',
'numpy',
'psutil',
'recommonmark',
'scikit-learn',
'scipy',
'sphinx',
... | import os
from setuptools import setup
setup(
name="pcanet",
version="0.0.1",
author="Takeshi Ishita",
py_modules=["pcanet"],
install_requires=[
'chainer',
'numpy',
'psutil',
'recommonmark',
'scikit-learn',
'scipy',
'sphinx'
],
depend... | import os
from setuptools import setup
setup(
name="pcanet",
version="0.0.1",
author="Takeshi Ishita",
py_modules=["pcanet"],
install_requires=[
'chainer',
'numpy',
'psutil',
'recommonmark',
'scikit-learn',
'scipy',
'sphinx',
],
)
Add a de... | <commit_before>import os
from setuptools import setup
setup(
name="pcanet",
version="0.0.1",
author="Takeshi Ishita",
py_modules=["pcanet"],
install_requires=[
'chainer',
'numpy',
'psutil',
'recommonmark',
'scikit-learn',
'scipy',
'sphinx',
... |
876a6ff5f09786ba42cf6a354c0acc77265840ca | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author='Matthias Kest... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author='Matthias Kest... | Change the development status classifier to beta | Change the development status classifier to beta
| Python | bsd-3-clause | armicron/plata,stefanklug/plata,allink/plata,armicron/plata,armicron/plata | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author='Matthias Kest... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author='Matthias Kest... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author='Matthias Kest... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author='Matthias Kest... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author... |
c4cf302fc3799bef800615f5c744b015c9ae5f75 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
long_desc = open('README.rst').read()
setup(
name='dredd-hooks-python',
version='0.1.3',
url='https://github.com/apiaryio/dredd-hooks-python/',
download_url='http://pypi.python.org/pypi/dredd_hooks',
license='MIT License',
au... | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
long_desc = open('README.rst').read()
setup(
name='dredd_hooks',
version='0.1.3',
url='https://github.com/apiaryio/dredd-hooks-python/',
download_url='http://pypi.python.org/pypi/dredd_hooks',
license='MIT License',
author='V... | Change name back to dredd_hooks | Change name back to dredd_hooks
| Python | mit | apiaryio/dredd-hooks-python | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
long_desc = open('README.rst').read()
setup(
name='dredd-hooks-python',
version='0.1.3',
url='https://github.com/apiaryio/dredd-hooks-python/',
download_url='http://pypi.python.org/pypi/dredd_hooks',
license='MIT License',
au... | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
long_desc = open('README.rst').read()
setup(
name='dredd_hooks',
version='0.1.3',
url='https://github.com/apiaryio/dredd-hooks-python/',
download_url='http://pypi.python.org/pypi/dredd_hooks',
license='MIT License',
author='V... | <commit_before># -*- coding: utf-8 -*-
from setuptools import find_packages, setup
long_desc = open('README.rst').read()
setup(
name='dredd-hooks-python',
version='0.1.3',
url='https://github.com/apiaryio/dredd-hooks-python/',
download_url='http://pypi.python.org/pypi/dredd_hooks',
license='MIT L... | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
long_desc = open('README.rst').read()
setup(
name='dredd_hooks',
version='0.1.3',
url='https://github.com/apiaryio/dredd-hooks-python/',
download_url='http://pypi.python.org/pypi/dredd_hooks',
license='MIT License',
author='V... | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
long_desc = open('README.rst').read()
setup(
name='dredd-hooks-python',
version='0.1.3',
url='https://github.com/apiaryio/dredd-hooks-python/',
download_url='http://pypi.python.org/pypi/dredd_hooks',
license='MIT License',
au... | <commit_before># -*- coding: utf-8 -*-
from setuptools import find_packages, setup
long_desc = open('README.rst').read()
setup(
name='dredd-hooks-python',
version='0.1.3',
url='https://github.com/apiaryio/dredd-hooks-python/',
download_url='http://pypi.python.org/pypi/dredd_hooks',
license='MIT L... |
c09bd08d5f46b2831dc5af94cd97f614f7ed3d59 | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-handlebars',
version='0.1.2',
url='https://github.com/gears/gears-handlebars',
license='ISC',
author='Mike Yumatov',
author_e... | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-handlebars',
version='0.1.2',
url='https://github.com/gears/gears-handlebars',
license='ISC',
author='Mike Yumatov',
author_e... | Add Python 3.2 to package classifiers | Add Python 3.2 to package classifiers
| Python | isc | gears/gears-handlebars,gears/gears-handlebars | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-handlebars',
version='0.1.2',
url='https://github.com/gears/gears-handlebars',
license='ISC',
author='Mike Yumatov',
author_e... | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-handlebars',
version='0.1.2',
url='https://github.com/gears/gears-handlebars',
license='ISC',
author='Mike Yumatov',
author_e... | <commit_before>import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-handlebars',
version='0.1.2',
url='https://github.com/gears/gears-handlebars',
license='ISC',
author='Mike Yumatov... | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-handlebars',
version='0.1.2',
url='https://github.com/gears/gears-handlebars',
license='ISC',
author='Mike Yumatov',
author_e... | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-handlebars',
version='0.1.2',
url='https://github.com/gears/gears-handlebars',
license='ISC',
author='Mike Yumatov',
author_e... | <commit_before>import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-handlebars',
version='0.1.2',
url='https://github.com/gears/gears-handlebars',
license='ISC',
author='Mike Yumatov... |
0b29388834077eb0c8f9292c2f7ec28fc7f36dde | setup.py | setup.py | #!/usr/bin/env python
"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='0.4.1',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/its-dirg/SATOSA',
packages=... | #!/usr/bin/env python
"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='0.4.1',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/its-dirg/SATOSA',
packages=... | Update pysaml2 dependency to resolve bugs related to attribute filtering. | Update pysaml2 dependency to resolve bugs related to attribute filtering.
| Python | apache-2.0 | irtnog/SATOSA,irtnog/SATOSA,its-dirg/SATOSA,SUNET/SATOSA,SUNET/SATOSA | #!/usr/bin/env python
"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='0.4.1',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/its-dirg/SATOSA',
packages=... | #!/usr/bin/env python
"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='0.4.1',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/its-dirg/SATOSA',
packages=... | <commit_before>#!/usr/bin/env python
"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='0.4.1',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/its-dirg/SATOSA'... | #!/usr/bin/env python
"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='0.4.1',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/its-dirg/SATOSA',
packages=... | #!/usr/bin/env python
"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='0.4.1',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/its-dirg/SATOSA',
packages=... | <commit_before>#!/usr/bin/env python
"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='0.4.1',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/its-dirg/SATOSA'... |
ac0a337f5d3b65af2b96e772a00d06c73626454c | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = ['contextlib2', 'pysam', 'six', 'shutilwhich']
ENTRY_POINTS = '''
[console_scripts]
tag_reads=tag_reads.tag_reads:main
allow_dovetailing=tag_reads.allow_dovetailing:main
'''
setup(
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = ['contextlib2', 'pysam', 'six', 'shutilwhich']
ENTRY_POINTS = '''
[console_scripts]
tag_reads=tag_reads.tag_reads:main
allow_dovetailing=tag_reads.allow_dovetailing:main
'''
setup(
... | Add extra-requirements for release management | Add extra-requirements for release management
| Python | mit | bardin-lab/readtagger,bardin-lab/readtagger | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = ['contextlib2', 'pysam', 'six', 'shutilwhich']
ENTRY_POINTS = '''
[console_scripts]
tag_reads=tag_reads.tag_reads:main
allow_dovetailing=tag_reads.allow_dovetailing:main
'''
setup(
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = ['contextlib2', 'pysam', 'six', 'shutilwhich']
ENTRY_POINTS = '''
[console_scripts]
tag_reads=tag_reads.tag_reads:main
allow_dovetailing=tag_reads.allow_dovetailing:main
'''
setup(
... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = ['contextlib2', 'pysam', 'six', 'shutilwhich']
ENTRY_POINTS = '''
[console_scripts]
tag_reads=tag_reads.tag_reads:main
allow_dovetailing=tag_reads.allow_dovetailing:main... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = ['contextlib2', 'pysam', 'six', 'shutilwhich']
ENTRY_POINTS = '''
[console_scripts]
tag_reads=tag_reads.tag_reads:main
allow_dovetailing=tag_reads.allow_dovetailing:main
'''
setup(
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = ['contextlib2', 'pysam', 'six', 'shutilwhich']
ENTRY_POINTS = '''
[console_scripts]
tag_reads=tag_reads.tag_reads:main
allow_dovetailing=tag_reads.allow_dovetailing:main
'''
setup(
... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requirements = ['contextlib2', 'pysam', 'six', 'shutilwhich']
ENTRY_POINTS = '''
[console_scripts]
tag_reads=tag_reads.tag_reads:main
allow_dovetailing=tag_reads.allow_dovetailing:main... |
42e3fb06868211a01884108ff404a5318002d498 | setup.py | setup.py | from setuptools import setup
setup(
name = 'upstox',
packages = ['upstox_api'],
version = '1.5.2',
include_package_data=True,
description = 'Official Python library for Upstox APIs',
author = 'Upstox Development Team',
author_email = '[email protected]',
url = 'https://github.com/upstox/upstox-python',... | from setuptools import setup
setup(
name = 'upstox',
packages = ['upstox_api'],
version = '1.5.3',
include_package_data=True,
description = 'Official Python library for Upstox APIs',
author = 'Upstox Development Team',
author_email = '[email protected]',
url = 'https://github.com/upstox/upstox-python',... | Change the version to tag it. | [Feature] : Change the version to tag it.
| Python | mit | upstox/upstox-python | from setuptools import setup
setup(
name = 'upstox',
packages = ['upstox_api'],
version = '1.5.2',
include_package_data=True,
description = 'Official Python library for Upstox APIs',
author = 'Upstox Development Team',
author_email = '[email protected]',
url = 'https://github.com/upstox/upstox-python',... | from setuptools import setup
setup(
name = 'upstox',
packages = ['upstox_api'],
version = '1.5.3',
include_package_data=True,
description = 'Official Python library for Upstox APIs',
author = 'Upstox Development Team',
author_email = '[email protected]',
url = 'https://github.com/upstox/upstox-python',... | <commit_before>from setuptools import setup
setup(
name = 'upstox',
packages = ['upstox_api'],
version = '1.5.2',
include_package_data=True,
description = 'Official Python library for Upstox APIs',
author = 'Upstox Development Team',
author_email = '[email protected]',
url = 'https://github.com/upstox/... | from setuptools import setup
setup(
name = 'upstox',
packages = ['upstox_api'],
version = '1.5.3',
include_package_data=True,
description = 'Official Python library for Upstox APIs',
author = 'Upstox Development Team',
author_email = '[email protected]',
url = 'https://github.com/upstox/upstox-python',... | from setuptools import setup
setup(
name = 'upstox',
packages = ['upstox_api'],
version = '1.5.2',
include_package_data=True,
description = 'Official Python library for Upstox APIs',
author = 'Upstox Development Team',
author_email = '[email protected]',
url = 'https://github.com/upstox/upstox-python',... | <commit_before>from setuptools import setup
setup(
name = 'upstox',
packages = ['upstox_api'],
version = '1.5.2',
include_package_data=True,
description = 'Official Python library for Upstox APIs',
author = 'Upstox Development Team',
author_email = '[email protected]',
url = 'https://github.com/upstox/... |
4a8ac74a4d32379eb6a366308e238452b6ba53b0 | openstack_dashboard/dashboards/project/routers/forms.py | openstack_dashboard/dashboards/project/routers/forms.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All rights reserved.
"""
Views for managing Quantum Routers.
"""
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import forms
from horizon imp... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All rights reserved.
"""
Views for managing Quantum Routers.
"""
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import forms
from horizon imp... | Make 'Router created' message translatable | Make 'Router created' message translatable
Change-Id: If0e246157a72fd1cabdbbde77e0c057d9d611eaa
| Python | apache-2.0 | nvoron23/avos,henaras/horizon,tellesnobrega/horizon,CiscoSystems/avos,kaiweifan/horizon,eayunstack/horizon,Tesora/tesora-horizon,redhat-cip/horizon,redhat-openstack/horizon,yeming233/horizon,idjaw/horizon,BiznetGIO/horizon,wolverineav/horizon,damien-dg/horizon,openstack/horizon,kaiweifan/horizon,coreycb/horizon,citrix-... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All rights reserved.
"""
Views for managing Quantum Routers.
"""
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import forms
from horizon imp... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All rights reserved.
"""
Views for managing Quantum Routers.
"""
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import forms
from horizon imp... | <commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All rights reserved.
"""
Views for managing Quantum Routers.
"""
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import forms
f... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All rights reserved.
"""
Views for managing Quantum Routers.
"""
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import forms
from horizon imp... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All rights reserved.
"""
Views for managing Quantum Routers.
"""
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import forms
from horizon imp... | <commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All rights reserved.
"""
Views for managing Quantum Routers.
"""
import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import forms
f... |
a8fd1f8a7e690e68abaaaee60d45ab556d3f015c | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="libcdmi-python",
version='1.0alpha',
description="""CDMI client library""",
author="Ilja Livenson and Co",
author_email="[email protected]",
packages=find_packages(),
namespace_packages=['stoxy'],
zip_safe=False, # martian... | from setuptools import setup, find_packages
setup(
name="libcdmi-python",
version='1.0alpha',
description="""CDMI client library""",
author="Ilja Livenson and Co",
author_email="[email protected]",
packages=find_packages(),
zip_safe=False, # martian grok scan is incompatible with zi... | Remove arguably unneeded namespace declaration (STOX-10) | Remove arguably unneeded namespace declaration (STOX-10)
| Python | apache-2.0 | stoxy/libcdmi-python,stoxy/libcdmi-python | from setuptools import setup, find_packages
setup(
name="libcdmi-python",
version='1.0alpha',
description="""CDMI client library""",
author="Ilja Livenson and Co",
author_email="[email protected]",
packages=find_packages(),
namespace_packages=['stoxy'],
zip_safe=False, # martian... | from setuptools import setup, find_packages
setup(
name="libcdmi-python",
version='1.0alpha',
description="""CDMI client library""",
author="Ilja Livenson and Co",
author_email="[email protected]",
packages=find_packages(),
zip_safe=False, # martian grok scan is incompatible with zi... | <commit_before>from setuptools import setup, find_packages
setup(
name="libcdmi-python",
version='1.0alpha',
description="""CDMI client library""",
author="Ilja Livenson and Co",
author_email="[email protected]",
packages=find_packages(),
namespace_packages=['stoxy'],
zip_safe=Fa... | from setuptools import setup, find_packages
setup(
name="libcdmi-python",
version='1.0alpha',
description="""CDMI client library""",
author="Ilja Livenson and Co",
author_email="[email protected]",
packages=find_packages(),
zip_safe=False, # martian grok scan is incompatible with zi... | from setuptools import setup, find_packages
setup(
name="libcdmi-python",
version='1.0alpha',
description="""CDMI client library""",
author="Ilja Livenson and Co",
author_email="[email protected]",
packages=find_packages(),
namespace_packages=['stoxy'],
zip_safe=False, # martian... | <commit_before>from setuptools import setup, find_packages
setup(
name="libcdmi-python",
version='1.0alpha',
description="""CDMI client library""",
author="Ilja Livenson and Co",
author_email="[email protected]",
packages=find_packages(),
namespace_packages=['stoxy'],
zip_safe=Fa... |
7693bf3d0529c3688f8ed35f095a5a0fafea36a1 | setup.py | setup.py | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | Add missing files to package | Add missing files to package
| Python | mit | andrasmaroy/pconf | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | <commit_before>from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return op... | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | <commit_before>from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return op... |
91489b5a8e940f90c3aa70c6c8ed2dcf98c8ca9c | setup.py | setup.py | from setuptools import setup
setup(
name = "python-builtwith",
version = "0.2.2",
description = "BuiltWith API versions 1, 2 and 7 client",
author = "Clay McClure, Jon Gaulding, Andrew Harris",
author_email = "[email protected]",
url = "https://github.com/claymation/python-builtwith",
classi... | from setuptools import setup
setup(
name = "python-builtwith",
version = "0.2.2",
description = "BuiltWith API versions 1, 2 and 7 client",
author = "Clay McClure, Jon Gaulding, Andrew Harris",
author_email = "[email protected]",
url = "https://github.com/claymation/python-builtwith",
classi... | Bump requests from 1.1.0 to 2.20.0 | Bump requests from 1.1.0 to 2.20.0
Bumps [requests](https://github.com/requests/requests) from 1.1.0 to 2.20.0.
- [Release notes](https://github.com/requests/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://github.com/requests/requests/compare/v1.1.0...v2.20.... | Python | mit | claymation/python-builtwith | from setuptools import setup
setup(
name = "python-builtwith",
version = "0.2.2",
description = "BuiltWith API versions 1, 2 and 7 client",
author = "Clay McClure, Jon Gaulding, Andrew Harris",
author_email = "[email protected]",
url = "https://github.com/claymation/python-builtwith",
classi... | from setuptools import setup
setup(
name = "python-builtwith",
version = "0.2.2",
description = "BuiltWith API versions 1, 2 and 7 client",
author = "Clay McClure, Jon Gaulding, Andrew Harris",
author_email = "[email protected]",
url = "https://github.com/claymation/python-builtwith",
classi... | <commit_before>from setuptools import setup
setup(
name = "python-builtwith",
version = "0.2.2",
description = "BuiltWith API versions 1, 2 and 7 client",
author = "Clay McClure, Jon Gaulding, Andrew Harris",
author_email = "[email protected]",
url = "https://github.com/claymation/python-builtwi... | from setuptools import setup
setup(
name = "python-builtwith",
version = "0.2.2",
description = "BuiltWith API versions 1, 2 and 7 client",
author = "Clay McClure, Jon Gaulding, Andrew Harris",
author_email = "[email protected]",
url = "https://github.com/claymation/python-builtwith",
classi... | from setuptools import setup
setup(
name = "python-builtwith",
version = "0.2.2",
description = "BuiltWith API versions 1, 2 and 7 client",
author = "Clay McClure, Jon Gaulding, Andrew Harris",
author_email = "[email protected]",
url = "https://github.com/claymation/python-builtwith",
classi... | <commit_before>from setuptools import setup
setup(
name = "python-builtwith",
version = "0.2.2",
description = "BuiltWith API versions 1, 2 and 7 client",
author = "Clay McClure, Jon Gaulding, Andrew Harris",
author_email = "[email protected]",
url = "https://github.com/claymation/python-builtwi... |
e2d27eba4c751b63a3e25daef8f22d910fa47cdc | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='wagtail_embed_videos',
version='0.0.5',
description='Embed Videos for Wagtail CMS.',
long_description=README,
author='Diogo Marques',
author_email='[email protected]',
maintainer='Diogo Marques',
maintainer_e... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='wagtail_embed_videos',
version='0.0.5',
description='Embed Videos for Wagtail CMS.',
long_description=(
'Simple app that works similar to wagtailimages,'
'but for embedding YouTube and Vimeo videos and music from Soun... | Fix NameError: name 'README' is not defined | Fix NameError: name 'README' is not defined
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-g43cf6a2-build/setup.py", line 9, in <module>
long_description=README,
NameError: name 'README' is not defined | Python | bsd-3-clause | SalahAdDin/wagtail-embedvideos,SalahAdDin/wagtail-embedvideos,infoportugal/wagtail-embedvideos,SalahAdDin/wagtail-embedvideos,infoportugal/wagtail-embedvideos,infoportugal/wagtail-embedvideos | #!/usr/bin/env python
from distutils.core import setup
setup(
name='wagtail_embed_videos',
version='0.0.5',
description='Embed Videos for Wagtail CMS.',
long_description=README,
author='Diogo Marques',
author_email='[email protected]',
maintainer='Diogo Marques',
maintainer_e... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='wagtail_embed_videos',
version='0.0.5',
description='Embed Videos for Wagtail CMS.',
long_description=(
'Simple app that works similar to wagtailimages,'
'but for embedding YouTube and Vimeo videos and music from Soun... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name='wagtail_embed_videos',
version='0.0.5',
description='Embed Videos for Wagtail CMS.',
long_description=README,
author='Diogo Marques',
author_email='[email protected]',
maintainer='Diogo Marques',
... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='wagtail_embed_videos',
version='0.0.5',
description='Embed Videos for Wagtail CMS.',
long_description=(
'Simple app that works similar to wagtailimages,'
'but for embedding YouTube and Vimeo videos and music from Soun... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='wagtail_embed_videos',
version='0.0.5',
description='Embed Videos for Wagtail CMS.',
long_description=README,
author='Diogo Marques',
author_email='[email protected]',
maintainer='Diogo Marques',
maintainer_e... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name='wagtail_embed_videos',
version='0.0.5',
description='Embed Videos for Wagtail CMS.',
long_description=README,
author='Diogo Marques',
author_email='[email protected]',
maintainer='Diogo Marques',
... |
98d3fa0705b25468ce606ba309085f2da7c476b6 | setup.py | setup.py | from setuptools import setup
import subprocess, os
version = open('pymoku/version.txt').read().strip()
setup(
name='pymoku',
version=version,
author='Ben Nizette',
author_email='[email protected]',
packages=['pymoku'],
package_dir={'pymoku': 'pymoku/'},
package_data={
'pymoku' : ['version.txt... | from setuptools import setup
import subprocess, os
version = open('pymoku/version.txt').read().strip()
setup(
name='pymoku',
version=version,
author='Ben Nizette',
author_email='[email protected]',
packages=['pymoku', 'pymoku.tools'],
package_dir={'pymoku': 'pymoku/'},
package_data={
'pymoku'... | Fix missing tools package install | HG-1871: Fix missing tools package install
| Python | mit | liquidinstruments/pymoku | from setuptools import setup
import subprocess, os
version = open('pymoku/version.txt').read().strip()
setup(
name='pymoku',
version=version,
author='Ben Nizette',
author_email='[email protected]',
packages=['pymoku'],
package_dir={'pymoku': 'pymoku/'},
package_data={
'pymoku' : ['version.txt... | from setuptools import setup
import subprocess, os
version = open('pymoku/version.txt').read().strip()
setup(
name='pymoku',
version=version,
author='Ben Nizette',
author_email='[email protected]',
packages=['pymoku', 'pymoku.tools'],
package_dir={'pymoku': 'pymoku/'},
package_data={
'pymoku'... | <commit_before>from setuptools import setup
import subprocess, os
version = open('pymoku/version.txt').read().strip()
setup(
name='pymoku',
version=version,
author='Ben Nizette',
author_email='[email protected]',
packages=['pymoku'],
package_dir={'pymoku': 'pymoku/'},
package_data={
'pymoku' ... | from setuptools import setup
import subprocess, os
version = open('pymoku/version.txt').read().strip()
setup(
name='pymoku',
version=version,
author='Ben Nizette',
author_email='[email protected]',
packages=['pymoku', 'pymoku.tools'],
package_dir={'pymoku': 'pymoku/'},
package_data={
'pymoku'... | from setuptools import setup
import subprocess, os
version = open('pymoku/version.txt').read().strip()
setup(
name='pymoku',
version=version,
author='Ben Nizette',
author_email='[email protected]',
packages=['pymoku'],
package_dir={'pymoku': 'pymoku/'},
package_data={
'pymoku' : ['version.txt... | <commit_before>from setuptools import setup
import subprocess, os
version = open('pymoku/version.txt').read().strip()
setup(
name='pymoku',
version=version,
author='Ben Nizette',
author_email='[email protected]',
packages=['pymoku'],
package_dir={'pymoku': 'pymoku/'},
package_data={
'pymoku' ... |
31c7be100ed36a39231b302d6306df51375384d1 | setup.py | setup.py | from setuptools import setup
setup(
name='braubuddy',
version='0.2.0',
author='James Stewart',
author_email='[email protected]',
packages=['braubuddy'],
scripts=[],
url='http://pypi.python.org/pypi/Braubuddy/',
license='LICENSE.txt',
description='An extensile thermostat framewor... | from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.2.0',
author='James Stewart',
author_email='[email protected]',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(... | Add automagic package finding and classifiers. | Add automagic package finding and classifiers.
| Python | bsd-3-clause | amorphic/braubuddy,amorphic/braubuddy,amorphic/braubuddy | from setuptools import setup
setup(
name='braubuddy',
version='0.2.0',
author='James Stewart',
author_email='[email protected]',
packages=['braubuddy'],
scripts=[],
url='http://pypi.python.org/pypi/Braubuddy/',
license='LICENSE.txt',
description='An extensile thermostat framewor... | from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.2.0',
author='James Stewart',
author_email='[email protected]',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(... | <commit_before>from setuptools import setup
setup(
name='braubuddy',
version='0.2.0',
author='James Stewart',
author_email='[email protected]',
packages=['braubuddy'],
scripts=[],
url='http://pypi.python.org/pypi/Braubuddy/',
license='LICENSE.txt',
description='An extensile ther... | from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.2.0',
author='James Stewart',
author_email='[email protected]',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(... | from setuptools import setup
setup(
name='braubuddy',
version='0.2.0',
author='James Stewart',
author_email='[email protected]',
packages=['braubuddy'],
scripts=[],
url='http://pypi.python.org/pypi/Braubuddy/',
license='LICENSE.txt',
description='An extensile thermostat framewor... | <commit_before>from setuptools import setup
setup(
name='braubuddy',
version='0.2.0',
author='James Stewart',
author_email='[email protected]',
packages=['braubuddy'],
scripts=[],
url='http://pypi.python.org/pypi/Braubuddy/',
license='LICENSE.txt',
description='An extensile ther... |
7f3efb14c41cdc9fcfda28fa67046eecc18c6f34 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
setup(
name='ptpython',
author='Jonathan Slenders',
version='0.34',
url='https://github.com/jonathanslenders/pt... | #!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
setup(
name='ptpython',
author='Jonathan Slenders',
version='0.34',
url='https://github.com/jonathan... | Add `pt[i]pythonX` and `pt[i]pythonX.X` commands | Add `pt[i]pythonX` and `pt[i]pythonX.X` commands
| Python | bsd-3-clause | jonathanslenders/ptpython | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
setup(
name='ptpython',
author='Jonathan Slenders',
version='0.34',
url='https://github.com/jonathanslenders/pt... | #!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
setup(
name='ptpython',
author='Jonathan Slenders',
version='0.34',
url='https://github.com/jonathan... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
setup(
name='ptpython',
author='Jonathan Slenders',
version='0.34',
url='https://github.com/jona... | #!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
setup(
name='ptpython',
author='Jonathan Slenders',
version='0.34',
url='https://github.com/jonathan... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
setup(
name='ptpython',
author='Jonathan Slenders',
version='0.34',
url='https://github.com/jonathanslenders/pt... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
setup(
name='ptpython',
author='Jonathan Slenders',
version='0.34',
url='https://github.com/jona... |
e2462e51f760d0f22d52ae3c758c5a2bf34d4b63 | setup.py | setup.py | import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from distutils.core import setup
import wtforms
setup(
name='WTForms',
version=wtforms.__version__,
url='http://wtforms.simplecodes.com/',
license='BSD',
author='Thomas Johansson, James Crasta',
author_email='wtforms... | import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from distutils.core import setup
import wtforms
setup(
name='WTForms',
version=wtforms.__version__,
url='http://wtforms.simplecodes.com/',
license='BSD',
author='Thomas Johansson, James Crasta',
author_email='wtforms... | Make sure ext.csrf is installed with WTForms | Make sure ext.csrf is installed with WTForms
| Python | bsd-3-clause | pawl/wtforms,pawl/wtforms,wtforms/wtforms,subyraman/wtforms,crast/wtforms,skytreader/wtforms,Aaron1992/wtforms,jmagnusson/wtforms,hsum/wtforms,Xender/wtforms,cklein/wtforms,Aaron1992/wtforms | import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from distutils.core import setup
import wtforms
setup(
name='WTForms',
version=wtforms.__version__,
url='http://wtforms.simplecodes.com/',
license='BSD',
author='Thomas Johansson, James Crasta',
author_email='wtforms... | import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from distutils.core import setup
import wtforms
setup(
name='WTForms',
version=wtforms.__version__,
url='http://wtforms.simplecodes.com/',
license='BSD',
author='Thomas Johansson, James Crasta',
author_email='wtforms... | <commit_before>import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from distutils.core import setup
import wtforms
setup(
name='WTForms',
version=wtforms.__version__,
url='http://wtforms.simplecodes.com/',
license='BSD',
author='Thomas Johansson, James Crasta',
author... | import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from distutils.core import setup
import wtforms
setup(
name='WTForms',
version=wtforms.__version__,
url='http://wtforms.simplecodes.com/',
license='BSD',
author='Thomas Johansson, James Crasta',
author_email='wtforms... | import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from distutils.core import setup
import wtforms
setup(
name='WTForms',
version=wtforms.__version__,
url='http://wtforms.simplecodes.com/',
license='BSD',
author='Thomas Johansson, James Crasta',
author_email='wtforms... | <commit_before>import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from distutils.core import setup
import wtforms
setup(
name='WTForms',
version=wtforms.__version__,
url='http://wtforms.simplecodes.com/',
license='BSD',
author='Thomas Johansson, James Crasta',
author... |
90818970d8f8a14bb110ada4e524b874688e9770 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
setup(
name='gnsq',
version='1.0.0',
description='... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
setup(
name='gnsq',
version='1.0.0',
description='A gevent based python client for NSQ.',
long_description=readme,
long_description_content_type='tex... | Remove history from long description | Remove history from long description
| Python | bsd-3-clause | wtolson/gnsq,wtolson/gnsq | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
setup(
name='gnsq',
version='1.0.0',
description='... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
setup(
name='gnsq',
version='1.0.0',
description='A gevent based python client for NSQ.',
long_description=readme,
long_description_content_type='tex... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
setup(
name='gnsq',
version='1.0.0',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
setup(
name='gnsq',
version='1.0.0',
description='A gevent based python client for NSQ.',
long_description=readme,
long_description_content_type='tex... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
setup(
name='gnsq',
version='1.0.0',
description='... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
setup(
name='gnsq',
version='1.0.0',
... |
aac2d31f5ae03628d70b71f7d9e87654aef1bdd5 | setup.py | setup.py | #!/usr/bin/env python3
# -*- mode: python -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as path
modules = [Extension("pypolycomp._bindings",
sources=["pypolycomp/_bindings.pyx"],
li... | #!/usr/bin/env python3
# -*- mode: python -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as path
modules = [Extension("pypolycomp._bindings",
sources=["pypolycomp/_bindings.pyx"],
li... | Add pyfits dependence and remove pytoml | Add pyfits dependence and remove pytoml
| Python | bsd-3-clause | ziotom78/polycomp | #!/usr/bin/env python3
# -*- mode: python -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as path
modules = [Extension("pypolycomp._bindings",
sources=["pypolycomp/_bindings.pyx"],
li... | #!/usr/bin/env python3
# -*- mode: python -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as path
modules = [Extension("pypolycomp._bindings",
sources=["pypolycomp/_bindings.pyx"],
li... | <commit_before>#!/usr/bin/env python3
# -*- mode: python -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as path
modules = [Extension("pypolycomp._bindings",
sources=["pypolycomp/_bindings.pyx"],
... | #!/usr/bin/env python3
# -*- mode: python -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as path
modules = [Extension("pypolycomp._bindings",
sources=["pypolycomp/_bindings.pyx"],
li... | #!/usr/bin/env python3
# -*- mode: python -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as path
modules = [Extension("pypolycomp._bindings",
sources=["pypolycomp/_bindings.pyx"],
li... | <commit_before>#!/usr/bin/env python3
# -*- mode: python -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as path
modules = [Extension("pypolycomp._bindings",
sources=["pypolycomp/_bindings.pyx"],
... |
422420cc2a0f63e204d7589e58a6deac5fb90f1f | setup.py | setup.py | from setuptools import setup, find_packages
from os import path
from dice import __version__
here = path.abspath(path.dirname(__file__))
try:
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
except:
requirements = []
# Get the long description from the README ... | from setuptools import setup, find_packages
from os import path
from dice import __version__
here = path.abspath(path.dirname(__file__))
try:
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
except:
requirements = []
# Get the long description from the README ... | Set package name to 'dice-sim' | Set package name to 'dice-sim'
| Python | lgpl-2.1 | samuller/dice | from setuptools import setup, find_packages
from os import path
from dice import __version__
here = path.abspath(path.dirname(__file__))
try:
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
except:
requirements = []
# Get the long description from the README ... | from setuptools import setup, find_packages
from os import path
from dice import __version__
here = path.abspath(path.dirname(__file__))
try:
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
except:
requirements = []
# Get the long description from the README ... | <commit_before>from setuptools import setup, find_packages
from os import path
from dice import __version__
here = path.abspath(path.dirname(__file__))
try:
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
except:
requirements = []
# Get the long description f... | from setuptools import setup, find_packages
from os import path
from dice import __version__
here = path.abspath(path.dirname(__file__))
try:
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
except:
requirements = []
# Get the long description from the README ... | from setuptools import setup, find_packages
from os import path
from dice import __version__
here = path.abspath(path.dirname(__file__))
try:
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
except:
requirements = []
# Get the long description from the README ... | <commit_before>from setuptools import setup, find_packages
from os import path
from dice import __version__
here = path.abspath(path.dirname(__file__))
try:
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
except:
requirements = []
# Get the long description f... |
94c5b819f66201090df1b66d439050449c23ac6e | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Command line tool to run simulations."""
import numpy as np
from Cython.Build import cythonize
from setuptools import find_packages, setup
from... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Command line tool to run simulations."""
from pathlib import Path
from sysconfig import get_path
import numpy as np
from Cython.Build import c... | Add include path for voro++ | Add include path for voro++
| Python | mit | malramsay64/MD-Molecules-Hoomd,malramsay64/MD-Molecules-Hoomd | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Command line tool to run simulations."""
import numpy as np
from Cython.Build import cythonize
from setuptools import find_packages, setup
from... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Command line tool to run simulations."""
from pathlib import Path
from sysconfig import get_path
import numpy as np
from Cython.Build import c... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Command line tool to run simulations."""
import numpy as np
from Cython.Build import cythonize
from setuptools import find_packa... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Command line tool to run simulations."""
from pathlib import Path
from sysconfig import get_path
import numpy as np
from Cython.Build import c... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Command line tool to run simulations."""
import numpy as np
from Cython.Build import cythonize
from setuptools import find_packages, setup
from... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""Command line tool to run simulations."""
import numpy as np
from Cython.Build import cythonize
from setuptools import find_packa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.