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
0770c9fd014aff6fa2707014355b0200a8827f64
setup.py
setup.py
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-charm', version='0.1.0', description=( 'A small Python library for getting character matrices ' '(alignments) into and out of pandas'), long_description=open( join(dirname(__file__...
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-charm', version='0.1.0', description=( 'A small Python library for getting character matrices ' '(alignments) into and out of pandas'), long_description=open( join(dirname(__file__...
Remove dendropy from required packages
Remove dendropy from required packages Let the users decide for themselves whether to install DendroPy and/or BioPython.
Python
mit
jmenglund/pandas-charm
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-charm', version='0.1.0', description=( 'A small Python library for getting character matrices ' '(alignments) into and out of pandas'), long_description=open( join(dirname(__file__...
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-charm', version='0.1.0', description=( 'A small Python library for getting character matrices ' '(alignments) into and out of pandas'), long_description=open( join(dirname(__file__...
<commit_before>from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-charm', version='0.1.0', description=( 'A small Python library for getting character matrices ' '(alignments) into and out of pandas'), long_description=open( join(d...
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-charm', version='0.1.0', description=( 'A small Python library for getting character matrices ' '(alignments) into and out of pandas'), long_description=open( join(dirname(__file__...
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-charm', version='0.1.0', description=( 'A small Python library for getting character matrices ' '(alignments) into and out of pandas'), long_description=open( join(dirname(__file__...
<commit_before>from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-charm', version='0.1.0', description=( 'A small Python library for getting character matrices ' '(alignments) into and out of pandas'), long_description=open( join(d...
122f596f3568d1ee1031733344e7eebb057cc032
setup.py
setup.py
import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() sys.path.insert(0, here) from titlecase import __version__ setup(name='titlecase', version=__version__, description="Python Port of John G...
import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() sys.path.insert(0, here) from titlecase import __version__ setup(name='titlecase', version=__version__, description="Python Port of John G...
Add python3 support for nosetests
Add python3 support for nosetests
Python
mit
ppannuto/python-titlecase
import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() sys.path.insert(0, here) from titlecase import __version__ setup(name='titlecase', version=__version__, description="Python Port of John G...
import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() sys.path.insert(0, here) from titlecase import __version__ setup(name='titlecase', version=__version__, description="Python Port of John G...
<commit_before>import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() sys.path.insert(0, here) from titlecase import __version__ setup(name='titlecase', version=__version__, description="Python...
import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() sys.path.insert(0, here) from titlecase import __version__ setup(name='titlecase', version=__version__, description="Python Port of John G...
import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() sys.path.insert(0, here) from titlecase import __version__ setup(name='titlecase', version=__version__, description="Python Port of John G...
<commit_before>import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() sys.path.insert(0, here) from titlecase import __version__ setup(name='titlecase', version=__version__, description="Python...
6a0752d9a9d7b9687eeba3472a5df44d0fca1a0a
setup.py
setup.py
from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded ...
from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded ...
Revert "starting extra install params" and "almost there"
Revert "starting extra install params" and "almost there" This reverts commits 38992e13a9aa4dcdb4b33427436bc2d1f9f96a66 and c1cb41fd4505bd3a2ce7315a2813cb7509fcadcc.
Python
mit
gosquadron/squadron,gosquadron/squadron
from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded ...
from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded ...
<commit_before>from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't...
from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded ...
from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded ...
<commit_before>from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't...
1dfba0718c7a5166adc188a75b15fdf592ac584b
setup.py
setup.py
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.16.0", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "scri...
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.17.0_dev", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "...
Prepare for next dev cycle
Prepare for next dev cycle
Python
mit
ProgramFan/bentoo
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.16.0", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "scri...
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.17.0_dev", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "...
<commit_before>#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.16.0", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-colle...
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.17.0_dev", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "...
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.16.0", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "scri...
<commit_before>#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.16.0", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-colle...
25aba2beceda000d89aab969fec96fc1678e6f6a
websockets/test_uri.py
websockets/test_uri.py
import unittest from .exceptions import InvalidURI from .uri import * VALID_URIS = [ ('ws://localhost/', (False, 'localhost', 80, '/')), ('wss://localhost/', (True, 'localhost', 443, '/')), ('ws://localhost/path?query', (False, 'localhost', 80, '/path?query')), ('WS://LOCALHOST/PATH?QUERY', (False, '...
import unittest from .exceptions import InvalidURI from .uri import * VALID_URIS = [ ('ws://localhost/', (False, 'localhost', 80, '/')), ('wss://localhost/', (True, 'localhost', 443, '/')), ('ws://localhost/path?query', (False, 'localhost', 80, '/path?query')), ('WS://LOCALHOST/PATH?QUERY', (False, '...
Fix a test case and add another.
Fix a test case and add another.
Python
bsd-3-clause
aaugustin/websockets,aaugustin/websockets,dommert/pywebsockets,aaugustin/websockets,aaugustin/websockets,andrewyoung1991/websockets,biddyweb/websockets
import unittest from .exceptions import InvalidURI from .uri import * VALID_URIS = [ ('ws://localhost/', (False, 'localhost', 80, '/')), ('wss://localhost/', (True, 'localhost', 443, '/')), ('ws://localhost/path?query', (False, 'localhost', 80, '/path?query')), ('WS://LOCALHOST/PATH?QUERY', (False, '...
import unittest from .exceptions import InvalidURI from .uri import * VALID_URIS = [ ('ws://localhost/', (False, 'localhost', 80, '/')), ('wss://localhost/', (True, 'localhost', 443, '/')), ('ws://localhost/path?query', (False, 'localhost', 80, '/path?query')), ('WS://LOCALHOST/PATH?QUERY', (False, '...
<commit_before>import unittest from .exceptions import InvalidURI from .uri import * VALID_URIS = [ ('ws://localhost/', (False, 'localhost', 80, '/')), ('wss://localhost/', (True, 'localhost', 443, '/')), ('ws://localhost/path?query', (False, 'localhost', 80, '/path?query')), ('WS://LOCALHOST/PATH?QU...
import unittest from .exceptions import InvalidURI from .uri import * VALID_URIS = [ ('ws://localhost/', (False, 'localhost', 80, '/')), ('wss://localhost/', (True, 'localhost', 443, '/')), ('ws://localhost/path?query', (False, 'localhost', 80, '/path?query')), ('WS://LOCALHOST/PATH?QUERY', (False, '...
import unittest from .exceptions import InvalidURI from .uri import * VALID_URIS = [ ('ws://localhost/', (False, 'localhost', 80, '/')), ('wss://localhost/', (True, 'localhost', 443, '/')), ('ws://localhost/path?query', (False, 'localhost', 80, '/path?query')), ('WS://LOCALHOST/PATH?QUERY', (False, '...
<commit_before>import unittest from .exceptions import InvalidURI from .uri import * VALID_URIS = [ ('ws://localhost/', (False, 'localhost', 80, '/')), ('wss://localhost/', (True, 'localhost', 443, '/')), ('ws://localhost/path?query', (False, 'localhost', 80, '/path?query')), ('WS://LOCALHOST/PATH?QU...
cc3f475345a6a0885eea7bc7ba41ebabd2821488
src/damis/models.py
src/damis/models.py
from django.db import models from django.contrib.auth.models import User class DatasetLicence(models.Model): title = models.CharField(max_length=255) short_title = models.CharField(max_length=30) url = models.URLField() summary = models.TextField() updated = models.DatetimeField(auto_now=True) ...
from django.db import models from django.contrib.auth.models import User class DatasetLicence(models.Model): title = models.CharField(max_length=255) short_title = models.CharField(max_length=30) url = models.URLField() summary = models.TextField() updated = models.DateTimeField(auto_now=True) ...
Add dataset upload_to attribute. Fix DateTimeField name.
Add dataset upload_to attribute. Fix DateTimeField name.
Python
agpl-3.0
InScience/DAMIS-old,InScience/DAMIS-old
from django.db import models from django.contrib.auth.models import User class DatasetLicence(models.Model): title = models.CharField(max_length=255) short_title = models.CharField(max_length=30) url = models.URLField() summary = models.TextField() updated = models.DatetimeField(auto_now=True) ...
from django.db import models from django.contrib.auth.models import User class DatasetLicence(models.Model): title = models.CharField(max_length=255) short_title = models.CharField(max_length=30) url = models.URLField() summary = models.TextField() updated = models.DateTimeField(auto_now=True) ...
<commit_before>from django.db import models from django.contrib.auth.models import User class DatasetLicence(models.Model): title = models.CharField(max_length=255) short_title = models.CharField(max_length=30) url = models.URLField() summary = models.TextField() updated = models.DatetimeField(aut...
from django.db import models from django.contrib.auth.models import User class DatasetLicence(models.Model): title = models.CharField(max_length=255) short_title = models.CharField(max_length=30) url = models.URLField() summary = models.TextField() updated = models.DateTimeField(auto_now=True) ...
from django.db import models from django.contrib.auth.models import User class DatasetLicence(models.Model): title = models.CharField(max_length=255) short_title = models.CharField(max_length=30) url = models.URLField() summary = models.TextField() updated = models.DatetimeField(auto_now=True) ...
<commit_before>from django.db import models from django.contrib.auth.models import User class DatasetLicence(models.Model): title = models.CharField(max_length=255) short_title = models.CharField(max_length=30) url = models.URLField() summary = models.TextField() updated = models.DatetimeField(aut...
364aa00d3f97711e25654f63e5d4ab5d6b4e7d44
tests/mod_auth_tests.py
tests/mod_auth_tests.py
from tests.app_tests import BaseTestCase from app.mod_auth.models import * from app.mod_auth.views import user_is_logged_in from flask import url_for USERNAME = 'username' PASSWORD = 'password' INVALID_USERNAME = 'wrong_username' INVALID_PASSWORD = 'wrong_password' class TestAuth(BaseTestCase): def setUp(self): ...
from tests.app_tests import BaseTestCase from app.mod_auth.models import * from app.mod_auth.views import user_is_logged_in from flask import url_for USERNAME = 'username' PASSWORD = 'password' INVALID_USERNAME = 'wrong_username' INVALID_PASSWORD = 'wrong_password' class TestAuth(BaseTestCase): def setUp(self): ...
Use BaseModel.create to create a test user
Use BaseModel.create to create a test user
Python
mit
ziel980/website,ziel980/website
from tests.app_tests import BaseTestCase from app.mod_auth.models import * from app.mod_auth.views import user_is_logged_in from flask import url_for USERNAME = 'username' PASSWORD = 'password' INVALID_USERNAME = 'wrong_username' INVALID_PASSWORD = 'wrong_password' class TestAuth(BaseTestCase): def setUp(self): ...
from tests.app_tests import BaseTestCase from app.mod_auth.models import * from app.mod_auth.views import user_is_logged_in from flask import url_for USERNAME = 'username' PASSWORD = 'password' INVALID_USERNAME = 'wrong_username' INVALID_PASSWORD = 'wrong_password' class TestAuth(BaseTestCase): def setUp(self): ...
<commit_before>from tests.app_tests import BaseTestCase from app.mod_auth.models import * from app.mod_auth.views import user_is_logged_in from flask import url_for USERNAME = 'username' PASSWORD = 'password' INVALID_USERNAME = 'wrong_username' INVALID_PASSWORD = 'wrong_password' class TestAuth(BaseTestCase): de...
from tests.app_tests import BaseTestCase from app.mod_auth.models import * from app.mod_auth.views import user_is_logged_in from flask import url_for USERNAME = 'username' PASSWORD = 'password' INVALID_USERNAME = 'wrong_username' INVALID_PASSWORD = 'wrong_password' class TestAuth(BaseTestCase): def setUp(self): ...
from tests.app_tests import BaseTestCase from app.mod_auth.models import * from app.mod_auth.views import user_is_logged_in from flask import url_for USERNAME = 'username' PASSWORD = 'password' INVALID_USERNAME = 'wrong_username' INVALID_PASSWORD = 'wrong_password' class TestAuth(BaseTestCase): def setUp(self): ...
<commit_before>from tests.app_tests import BaseTestCase from app.mod_auth.models import * from app.mod_auth.views import user_is_logged_in from flask import url_for USERNAME = 'username' PASSWORD = 'password' INVALID_USERNAME = 'wrong_username' INVALID_PASSWORD = 'wrong_password' class TestAuth(BaseTestCase): de...
64d7ca9695eed6112c793fda3f2e7fea3751c3cc
tasks.py
tasks.py
from invoke import run from invoke import task @task def clean(docs=False, bytecode=True, extra=''): patterns = ['build'] if docs: patterns.append('docs/_build') if bytecode: patterns.append('**/*.pyc') if extra: patterns.append(extra) for pattern in patterns: run("...
from invoke import run from invoke import task @task def clean(all=False): if all: flag = "--all" else: flag = "" run("python setup.py clean {}".format(flag)) @task def build(docs=False): run("python setup.py build") if docs: run("sphinx-build docs docs/_build") @task d...
Change clean task to use setup.py
Change clean task to use setup.py
Python
bsd-3-clause
pando85/django-registration,allo-/django-registration,sergafts/django-registration,pando85/django-registration,allo-/django-registration,sergafts/django-registration
from invoke import run from invoke import task @task def clean(docs=False, bytecode=True, extra=''): patterns = ['build'] if docs: patterns.append('docs/_build') if bytecode: patterns.append('**/*.pyc') if extra: patterns.append(extra) for pattern in patterns: run("...
from invoke import run from invoke import task @task def clean(all=False): if all: flag = "--all" else: flag = "" run("python setup.py clean {}".format(flag)) @task def build(docs=False): run("python setup.py build") if docs: run("sphinx-build docs docs/_build") @task d...
<commit_before>from invoke import run from invoke import task @task def clean(docs=False, bytecode=True, extra=''): patterns = ['build'] if docs: patterns.append('docs/_build') if bytecode: patterns.append('**/*.pyc') if extra: patterns.append(extra) for pattern in patterns...
from invoke import run from invoke import task @task def clean(all=False): if all: flag = "--all" else: flag = "" run("python setup.py clean {}".format(flag)) @task def build(docs=False): run("python setup.py build") if docs: run("sphinx-build docs docs/_build") @task d...
from invoke import run from invoke import task @task def clean(docs=False, bytecode=True, extra=''): patterns = ['build'] if docs: patterns.append('docs/_build') if bytecode: patterns.append('**/*.pyc') if extra: patterns.append(extra) for pattern in patterns: run("...
<commit_before>from invoke import run from invoke import task @task def clean(docs=False, bytecode=True, extra=''): patterns = ['build'] if docs: patterns.append('docs/_build') if bytecode: patterns.append('**/*.pyc') if extra: patterns.append(extra) for pattern in patterns...
6bfd2d0cb6a92322391d7f5d5348594268e305b4
tilequeue/queue/file.py
tilequeue/queue/file.py
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self._lock = threading.RLock() def enqueue(self, coord): with self._lock: payload = serialize_coord(coord) ...
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self.lock = threading.RLock() def enqueue(self, coord): with self.lock: payload = serialize_coord(coord) ...
Revert "Rename lock to _lock to imply that it's private."
Revert "Rename lock to _lock to imply that it's private." tilequeue/queue/file.py -On second thought, the convention of prefixing private instance variables with an underscore isn't consistently adhered to elsewhere in the codebase, so don't bother using it, or we'll end up with a mix of classes that do and don't ...
Python
mit
mapzen/tilequeue,tilezen/tilequeue
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self._lock = threading.RLock() def enqueue(self, coord): with self._lock: payload = serialize_coord(coord) ...
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self.lock = threading.RLock() def enqueue(self, coord): with self.lock: payload = serialize_coord(coord) ...
<commit_before>from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self._lock = threading.RLock() def enqueue(self, coord): with self._lock: payload = serialize_co...
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self.lock = threading.RLock() def enqueue(self, coord): with self.lock: payload = serialize_coord(coord) ...
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self._lock = threading.RLock() def enqueue(self, coord): with self._lock: payload = serialize_coord(coord) ...
<commit_before>from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self._lock = threading.RLock() def enqueue(self, coord): with self._lock: payload = serialize_co...
b4fa43b85a162fa9bef3cb67c2dd523f25707b4d
mo/cli.py
mo/cli.py
from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) variables[name] ...
from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) variables[name] ...
Add a way of listing commands
Add a way of listing commands
Python
mit
thomasleese/mo
from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) variables[name] ...
from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) variables[name] ...
<commit_before>from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) v...
from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) variables[name] ...
from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) variables[name] ...
<commit_before>from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) v...
a6a59cc0fded7bd2f6dc1d0d01e68836f33726aa
mdotdevs/tests.py
mdotdevs/tests.py
from django.test import TestCase # Create your tests here.
from django.test import TestCase from django.test import Client from django.core.urlresolvers import resolve class MdotdevTest(TestCase): def setUp(self): self.client = Client() pass def test_url_home(self): resolver = resolve('/developers/') self.assertEqual('home', resolver....
Test the urls.py and views.py.
Test the urls.py and views.py.
Python
apache-2.0
uw-it-aca/mdot-developers,uw-it-aca/mdot-developers
from django.test import TestCase # Create your tests here. Test the urls.py and views.py.
from django.test import TestCase from django.test import Client from django.core.urlresolvers import resolve class MdotdevTest(TestCase): def setUp(self): self.client = Client() pass def test_url_home(self): resolver = resolve('/developers/') self.assertEqual('home', resolver....
<commit_before>from django.test import TestCase # Create your tests here. <commit_msg>Test the urls.py and views.py.<commit_after>
from django.test import TestCase from django.test import Client from django.core.urlresolvers import resolve class MdotdevTest(TestCase): def setUp(self): self.client = Client() pass def test_url_home(self): resolver = resolve('/developers/') self.assertEqual('home', resolver....
from django.test import TestCase # Create your tests here. Test the urls.py and views.py.from django.test import TestCase from django.test import Client from django.core.urlresolvers import resolve class MdotdevTest(TestCase): def setUp(self): self.client = Client() pass def test_url_home(se...
<commit_before>from django.test import TestCase # Create your tests here. <commit_msg>Test the urls.py and views.py.<commit_after>from django.test import TestCase from django.test import Client from django.core.urlresolvers import resolve class MdotdevTest(TestCase): def setUp(self): self.client = Client...
3e5e35aa85e656efbdddddf4c4d2accad964a42b
members/elections/serializers.py
members/elections/serializers.py
from rest_framework import serializers from .models import Election, Candidate class CandidatePublicSerializer(serializers.ModelSerializer): organization = serializers.CharField(source='organization.display_name') class Meta: model = Candidate fields = ('candidate_first_name', 'candidate_last_name', 'candidate_...
from rest_framework import serializers from .models import Election, Candidate class CandidatePublicSerializer(serializers.ModelSerializer): organization = serializers.CharField(source='organization.display_name') expertise = serializers.SerializerMethodField() class Meta: model = Candidate ...
Update elections with new apis
Update elections with new apis
Python
mit
ocwc/ocwc-members,ocwc/ocwc-members,ocwc/ocwc-members,ocwc/ocwc-members
from rest_framework import serializers from .models import Election, Candidate class CandidatePublicSerializer(serializers.ModelSerializer): organization = serializers.CharField(source='organization.display_name') class Meta: model = Candidate fields = ('candidate_first_name', 'candidate_last_name', 'candidate_...
from rest_framework import serializers from .models import Election, Candidate class CandidatePublicSerializer(serializers.ModelSerializer): organization = serializers.CharField(source='organization.display_name') expertise = serializers.SerializerMethodField() class Meta: model = Candidate ...
<commit_before>from rest_framework import serializers from .models import Election, Candidate class CandidatePublicSerializer(serializers.ModelSerializer): organization = serializers.CharField(source='organization.display_name') class Meta: model = Candidate fields = ('candidate_first_name', 'candidate_last_nam...
from rest_framework import serializers from .models import Election, Candidate class CandidatePublicSerializer(serializers.ModelSerializer): organization = serializers.CharField(source='organization.display_name') expertise = serializers.SerializerMethodField() class Meta: model = Candidate ...
from rest_framework import serializers from .models import Election, Candidate class CandidatePublicSerializer(serializers.ModelSerializer): organization = serializers.CharField(source='organization.display_name') class Meta: model = Candidate fields = ('candidate_first_name', 'candidate_last_name', 'candidate_...
<commit_before>from rest_framework import serializers from .models import Election, Candidate class CandidatePublicSerializer(serializers.ModelSerializer): organization = serializers.CharField(source='organization.display_name') class Meta: model = Candidate fields = ('candidate_first_name', 'candidate_last_nam...
743f8dd38869987570eba3ea4cf22c6ad5a50cd1
complaints/forms.py
complaints/forms.py
from django import forms from form_utils.forms import BetterForm # This specifies the fields that are in the complaint form class ComplaintForm(BetterForm): # Address for the complaints. civic = forms.CharField(label='Address', max_length=250, required=True) city = forms.CharField(label='City', max_lengt...
from django import forms from form_utils.forms import BetterForm # This specifies the fields that are in the complaint form class ComplaintForm(BetterForm): # Group fields into fieldsets. class Meta: fieldsets = [('address', {'fields': ['civic', 'city', 'province']}), ('complaint...
Add in stubs for further preview development
Add in stubs for further preview development
Python
mit
CSC301H-Fall2013/healthyhome,CSC301H-Fall2013/healthyhome
from django import forms from form_utils.forms import BetterForm # This specifies the fields that are in the complaint form class ComplaintForm(BetterForm): # Address for the complaints. civic = forms.CharField(label='Address', max_length=250, required=True) city = forms.CharField(label='City', max_lengt...
from django import forms from form_utils.forms import BetterForm # This specifies the fields that are in the complaint form class ComplaintForm(BetterForm): # Group fields into fieldsets. class Meta: fieldsets = [('address', {'fields': ['civic', 'city', 'province']}), ('complaint...
<commit_before>from django import forms from form_utils.forms import BetterForm # This specifies the fields that are in the complaint form class ComplaintForm(BetterForm): # Address for the complaints. civic = forms.CharField(label='Address', max_length=250, required=True) city = forms.CharField(label='C...
from django import forms from form_utils.forms import BetterForm # This specifies the fields that are in the complaint form class ComplaintForm(BetterForm): # Group fields into fieldsets. class Meta: fieldsets = [('address', {'fields': ['civic', 'city', 'province']}), ('complaint...
from django import forms from form_utils.forms import BetterForm # This specifies the fields that are in the complaint form class ComplaintForm(BetterForm): # Address for the complaints. civic = forms.CharField(label='Address', max_length=250, required=True) city = forms.CharField(label='City', max_lengt...
<commit_before>from django import forms from form_utils.forms import BetterForm # This specifies the fields that are in the complaint form class ComplaintForm(BetterForm): # Address for the complaints. civic = forms.CharField(label='Address', max_length=250, required=True) city = forms.CharField(label='C...
e3ed0f5e2aba0bcd2328c95f401cc17e2d63ba8f
molecule/default/tests/test_default.py
molecule/default/tests/test_default.py
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB package is installed def test_mongodb_is_installed(host): package = host.package('mongodb-org') assert package.is_ins...
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB package is installed def test_mongodb_is_installed(host): package = host.package('mongodb-org') assert package.is_ins...
Rename service name in default test
Rename service name in default test
Python
bsd-2-clause
jugatsu-infra/ansible-role-mongodb
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB package is installed def test_mongodb_is_installed(host): package = host.package('mongodb-org') assert package.is_ins...
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB package is installed def test_mongodb_is_installed(host): package = host.package('mongodb-org') assert package.is_ins...
<commit_before>import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB package is installed def test_mongodb_is_installed(host): package = host.package('mongodb-org') assert...
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB package is installed def test_mongodb_is_installed(host): package = host.package('mongodb-org') assert package.is_ins...
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB package is installed def test_mongodb_is_installed(host): package = host.package('mongodb-org') assert package.is_ins...
<commit_before>import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB package is installed def test_mongodb_is_installed(host): package = host.package('mongodb-org') assert...
7936ef73a786ac7b4d3a718d72e6d0e087b35e05
myFirstProgram.py
myFirstProgram.py
#! /usr/bin/env python num = 3 print num
#! /usr/bin/env python num = 3 print num # This is great! # Now, assign the value 88 to the variable "blanket". # blanket = ?? # print blanket
Add comments about blanket variable.
Add comments about blanket variable.
Python
mit
sk8boarder/my-first-program
#! /usr/bin/env python num = 3 print num Add comments about blanket variable.
#! /usr/bin/env python num = 3 print num # This is great! # Now, assign the value 88 to the variable "blanket". # blanket = ?? # print blanket
<commit_before>#! /usr/bin/env python num = 3 print num <commit_msg>Add comments about blanket variable.<commit_after>
#! /usr/bin/env python num = 3 print num # This is great! # Now, assign the value 88 to the variable "blanket". # blanket = ?? # print blanket
#! /usr/bin/env python num = 3 print num Add comments about blanket variable.#! /usr/bin/env python num = 3 print num # This is great! # Now, assign the value 88 to the variable "blanket". # blanket = ?? # print blanket
<commit_before>#! /usr/bin/env python num = 3 print num <commit_msg>Add comments about blanket variable.<commit_after>#! /usr/bin/env python num = 3 print num # This is great! # Now, assign the value 88 to the variable "blanket". # blanket = ?? # print blanket
0818f5e1471c6da24dbc55954ef4ad27ac289ada
tests/test_grammars.py
tests/test_grammars.py
from .generic import GrammarTest def test_np(): grammar = GrammarTest('grammars/test_np.fcfg', 'grammars/nounphrase.sample', 'grammars/nounphrase.sample.negative') grammar.check_positive() grammar.check_negative() def test_subject(): grammar = GrammarTest('grammars/test_subject.fcfg',...
from .generic import GrammarTest def add_grammar(grammar, positive_sample, negative_sample): grammar = GrammarTest(grammar, positive_sample, negative_sample) grammar.check_positive() grammar.check_negative() def test_np(): add_grammar('grammars/test_np.fcfg', 'grammars/nounphrase.sampl...
Refactor grammar tests to be easily extensible
Refactor grammar tests to be easily extensible
Python
mit
caninemwenja/marker,kmwenja/marker
from .generic import GrammarTest def test_np(): grammar = GrammarTest('grammars/test_np.fcfg', 'grammars/nounphrase.sample', 'grammars/nounphrase.sample.negative') grammar.check_positive() grammar.check_negative() def test_subject(): grammar = GrammarTest('grammars/test_subject.fcfg',...
from .generic import GrammarTest def add_grammar(grammar, positive_sample, negative_sample): grammar = GrammarTest(grammar, positive_sample, negative_sample) grammar.check_positive() grammar.check_negative() def test_np(): add_grammar('grammars/test_np.fcfg', 'grammars/nounphrase.sampl...
<commit_before>from .generic import GrammarTest def test_np(): grammar = GrammarTest('grammars/test_np.fcfg', 'grammars/nounphrase.sample', 'grammars/nounphrase.sample.negative') grammar.check_positive() grammar.check_negative() def test_subject(): grammar = GrammarTest('grammars/test...
from .generic import GrammarTest def add_grammar(grammar, positive_sample, negative_sample): grammar = GrammarTest(grammar, positive_sample, negative_sample) grammar.check_positive() grammar.check_negative() def test_np(): add_grammar('grammars/test_np.fcfg', 'grammars/nounphrase.sampl...
from .generic import GrammarTest def test_np(): grammar = GrammarTest('grammars/test_np.fcfg', 'grammars/nounphrase.sample', 'grammars/nounphrase.sample.negative') grammar.check_positive() grammar.check_negative() def test_subject(): grammar = GrammarTest('grammars/test_subject.fcfg',...
<commit_before>from .generic import GrammarTest def test_np(): grammar = GrammarTest('grammars/test_np.fcfg', 'grammars/nounphrase.sample', 'grammars/nounphrase.sample.negative') grammar.check_positive() grammar.check_negative() def test_subject(): grammar = GrammarTest('grammars/test...
7f5f4f95eabd1f70c82d336816ae2d17fb273af2
stronghold/middleware.py
stronghold/middleware.py
from django.contrib.auth.decorators import login_required from stronghold import conf, utils class LoginRequiredMiddleware(object): """ Force all views to use login required View is deemed to be public if the @public decorator is applied to the view View is also deemed to be Public if listed in in d...
from django.contrib.auth.decorators import login_required from stronghold import conf, utils class LoginRequiredMiddleware(object): """ Force all views to use login required View is deemed to be public if the @public decorator is applied to the view View is also deemed to be Public if listed in in d...
Refactor public_view_url check to be more pythonic
Refactor public_view_url check to be more pythonic In addition to this I also removed the is_public variable because the new utils function says the same thing so it is redundant.
Python
mit
SunilMohanAdapa/django-stronghold,mgrouchy/django-stronghold,SunilMohanAdapa/django-stronghold
from django.contrib.auth.decorators import login_required from stronghold import conf, utils class LoginRequiredMiddleware(object): """ Force all views to use login required View is deemed to be public if the @public decorator is applied to the view View is also deemed to be Public if listed in in d...
from django.contrib.auth.decorators import login_required from stronghold import conf, utils class LoginRequiredMiddleware(object): """ Force all views to use login required View is deemed to be public if the @public decorator is applied to the view View is also deemed to be Public if listed in in d...
<commit_before>from django.contrib.auth.decorators import login_required from stronghold import conf, utils class LoginRequiredMiddleware(object): """ Force all views to use login required View is deemed to be public if the @public decorator is applied to the view View is also deemed to be Public if...
from django.contrib.auth.decorators import login_required from stronghold import conf, utils class LoginRequiredMiddleware(object): """ Force all views to use login required View is deemed to be public if the @public decorator is applied to the view View is also deemed to be Public if listed in in d...
from django.contrib.auth.decorators import login_required from stronghold import conf, utils class LoginRequiredMiddleware(object): """ Force all views to use login required View is deemed to be public if the @public decorator is applied to the view View is also deemed to be Public if listed in in d...
<commit_before>from django.contrib.auth.decorators import login_required from stronghold import conf, utils class LoginRequiredMiddleware(object): """ Force all views to use login required View is deemed to be public if the @public decorator is applied to the view View is also deemed to be Public if...
6785f6ef2287bc161085bcca7f1cb8653b88a433
resolwe/flow/management/commands/cleantestdir.py
resolwe/flow/management/commands/cleantestdir.py
""".. Ignore pydocstyle D400. ==================== Clean test directory ==================== Command to run on local machine:: ./manage.py cleantestdir """ import re import shutil from itertools import chain from pathlib import Path from django.core.management.base import BaseCommand from resolwe.storage impo...
""".. Ignore pydocstyle D400. ==================== Clean test directory ==================== Command to run on local machine:: ./manage.py cleantestdir """ import re import shutil from itertools import chain from pathlib import Path from django.core.management.base import BaseCommand from resolwe.storage impo...
Clean only volumes of type host_path
Clean only volumes of type host_path
Python
apache-2.0
genialis/resolwe,genialis/resolwe
""".. Ignore pydocstyle D400. ==================== Clean test directory ==================== Command to run on local machine:: ./manage.py cleantestdir """ import re import shutil from itertools import chain from pathlib import Path from django.core.management.base import BaseCommand from resolwe.storage impo...
""".. Ignore pydocstyle D400. ==================== Clean test directory ==================== Command to run on local machine:: ./manage.py cleantestdir """ import re import shutil from itertools import chain from pathlib import Path from django.core.management.base import BaseCommand from resolwe.storage impo...
<commit_before>""".. Ignore pydocstyle D400. ==================== Clean test directory ==================== Command to run on local machine:: ./manage.py cleantestdir """ import re import shutil from itertools import chain from pathlib import Path from django.core.management.base import BaseCommand from resol...
""".. Ignore pydocstyle D400. ==================== Clean test directory ==================== Command to run on local machine:: ./manage.py cleantestdir """ import re import shutil from itertools import chain from pathlib import Path from django.core.management.base import BaseCommand from resolwe.storage impo...
""".. Ignore pydocstyle D400. ==================== Clean test directory ==================== Command to run on local machine:: ./manage.py cleantestdir """ import re import shutil from itertools import chain from pathlib import Path from django.core.management.base import BaseCommand from resolwe.storage impo...
<commit_before>""".. Ignore pydocstyle D400. ==================== Clean test directory ==================== Command to run on local machine:: ./manage.py cleantestdir """ import re import shutil from itertools import chain from pathlib import Path from django.core.management.base import BaseCommand from resol...
0fc8c56438acad93fc74868ef3bec694efe25246
heat/db/sqlalchemy/migrate_repo/versions/034_raw_template_files.py
heat/db/sqlalchemy/migrate_repo/versions/034_raw_template_files.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
Fix default raw_template files value in migration
Fix default raw_template files value in migration This was causing the following error when trying to do a stack-list: ERROR: Attribute 'files' does not accept objects of type <type 'unicode'> Change-Id: Ideee81e44e85fcd8d8f3c9c196702a6c78e5adfd Closes-Bug: #1277278
Python
apache-2.0
maestro-hybrid-cloud/heat,rh-s/heat,ntt-sic/heat,jasondunsmore/heat,rdo-management/heat,redhat-openstack/heat,rh-s/heat,srznew/heat,dragorosson/heat,steveb/heat,cryptickp/heat,pshchelo/heat,gonzolino/heat,pshchelo/heat,jasondunsmore/heat,ntt-sic/heat,miguelgrinberg/heat,redhat-openstack/heat,pratikmallya/heat,maestro-h...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 require...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 require...
0adc42bbcf77c284ed7fbbbed4e50a3640dfa0b5
masters/master.tryserver.chromium.angle/master_site_config.py
masters/master.tryserver.chromium.angle/master_site_config.py
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ActiveMaster definition.""" from config_bootstrap import Master class TryServerANGLE(Master.Master4a): project_name = 'ANGLE Try Server' master_port...
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ActiveMaster definition.""" from config_bootstrap import Master class TryServerANGLE(Master.Master4a): project_name = 'ANGLE Try Server' master_port...
Enable buildbucket builds to Angle tryserver.
Enable buildbucket builds to Angle tryserver. This is a re-land with a fix of https://codereview.chromium.org/1624703003/ R=nodir@chromium.org BUG=577560 Review URL: https://codereview.chromium.org/1614243005 git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@298382 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
eunchong/build,eunchong/build,eunchong/build,eunchong/build
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ActiveMaster definition.""" from config_bootstrap import Master class TryServerANGLE(Master.Master4a): project_name = 'ANGLE Try Server' master_port...
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ActiveMaster definition.""" from config_bootstrap import Master class TryServerANGLE(Master.Master4a): project_name = 'ANGLE Try Server' master_port...
<commit_before># Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ActiveMaster definition.""" from config_bootstrap import Master class TryServerANGLE(Master.Master4a): project_name = 'ANGLE Try Server...
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ActiveMaster definition.""" from config_bootstrap import Master class TryServerANGLE(Master.Master4a): project_name = 'ANGLE Try Server' master_port...
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ActiveMaster definition.""" from config_bootstrap import Master class TryServerANGLE(Master.Master4a): project_name = 'ANGLE Try Server' master_port...
<commit_before># Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ActiveMaster definition.""" from config_bootstrap import Master class TryServerANGLE(Master.Master4a): project_name = 'ANGLE Try Server...
8190da382e26998bf8bb7ac6b1670c9e6e29ceba
tests/test_datasources_testing_rc_bugs.py
tests/test_datasources_testing_rc_bugs.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from DebianChangesBot import Datasource from DebianChangesBot.datasources import TestingRCBugs class TestDatasourceTestingRCBugs(unittest.TestCase): def setU...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from DebianChangesBot import Datasource from DebianChangesBot.datasources import TestingRCBugs class TestDatasourceTestingRCBugs(unittest.TestCase): def setU...
Update TestingRCBugs datasource to new API
Update TestingRCBugs datasource to new API Signed-off-by: Chris Lamb <711c73f64afdce07b7e38039a96d2224209e9a6c@chris-lamb.co.uk>
Python
agpl-3.0
lamby/debian-devel-changes-bot,xtaran/debian-devel-changes-bot,lamby/debian-devel-changes-bot,xtaran/debian-devel-changes-bot,sebastinas/debian-devel-changes-bot,lamby/debian-devel-changes-bot
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from DebianChangesBot import Datasource from DebianChangesBot.datasources import TestingRCBugs class TestDatasourceTestingRCBugs(unittest.TestCase): def setU...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from DebianChangesBot import Datasource from DebianChangesBot.datasources import TestingRCBugs class TestDatasourceTestingRCBugs(unittest.TestCase): def setU...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from DebianChangesBot import Datasource from DebianChangesBot.datasources import TestingRCBugs class TestDatasourceTestingRCBugs(unittest.TestCase)...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from DebianChangesBot import Datasource from DebianChangesBot.datasources import TestingRCBugs class TestDatasourceTestingRCBugs(unittest.TestCase): def setU...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from DebianChangesBot import Datasource from DebianChangesBot.datasources import TestingRCBugs class TestDatasourceTestingRCBugs(unittest.TestCase): def setU...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from DebianChangesBot import Datasource from DebianChangesBot.datasources import TestingRCBugs class TestDatasourceTestingRCBugs(unittest.TestCase)...
9b53673771b8b185232cffad129036bbe084a169
api.py
api.py
from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.fields import ForeignKey from tastypie.resources import ModelResource from .models import APNSDevice, GCMDevice class APNSDeviceResource(ModelResource): class Meta: authorization = Authorization()...
from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.fields import ForeignKey from tastypie.resources import ModelResource from .models import APNSDevice, GCMDevice class APNSDeviceResource(ModelResource): class Meta: authorization = Authorization()...
Fix device-user linking in authenticated resources
Fix device-user linking in authenticated resources
Python
mit
Ian-Foote/django-push-notifications,matthewh/django-push-notifications,Ubiwhere/django-push-notifications,freakboy3742/django-push-notifications,gkirkpatrick/django-push-notifications,hylje/django-push-notifications,AndreasBackx/django-push-notifications,cristiano2lopes/django-push-notifications,jleclanche/django-push-...
from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.fields import ForeignKey from tastypie.resources import ModelResource from .models import APNSDevice, GCMDevice class APNSDeviceResource(ModelResource): class Meta: authorization = Authorization()...
from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.fields import ForeignKey from tastypie.resources import ModelResource from .models import APNSDevice, GCMDevice class APNSDeviceResource(ModelResource): class Meta: authorization = Authorization()...
<commit_before>from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.fields import ForeignKey from tastypie.resources import ModelResource from .models import APNSDevice, GCMDevice class APNSDeviceResource(ModelResource): class Meta: authorization = ...
from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.fields import ForeignKey from tastypie.resources import ModelResource from .models import APNSDevice, GCMDevice class APNSDeviceResource(ModelResource): class Meta: authorization = Authorization()...
from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.fields import ForeignKey from tastypie.resources import ModelResource from .models import APNSDevice, GCMDevice class APNSDeviceResource(ModelResource): class Meta: authorization = Authorization()...
<commit_before>from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.fields import ForeignKey from tastypie.resources import ModelResource from .models import APNSDevice, GCMDevice class APNSDeviceResource(ModelResource): class Meta: authorization = ...
0325d4d55e9f42d031edc66fe4dedfefea4c66e2
src/scripts/Main.py
src/scripts/Main.py
"""The WaveBlocks Project This file is main script for running simulations with WaveBlocks. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License """ import sys from WaveBlocksND import ParameterLoader # Read the path for the configuration file we use for this ...
"""The WaveBlocks Project This file is main script for running simulations with WaveBlocks. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License """ import sys from WaveBlocksND import ParameterLoader # Read the path for the configuration file we use for this ...
Enable inhomogeneous packets in the main simulation runner
Enable inhomogeneous packets in the main simulation runner
Python
bsd-3-clause
WaveBlocks/WaveBlocksND,WaveBlocks/WaveBlocksND
"""The WaveBlocks Project This file is main script for running simulations with WaveBlocks. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License """ import sys from WaveBlocksND import ParameterLoader # Read the path for the configuration file we use for this ...
"""The WaveBlocks Project This file is main script for running simulations with WaveBlocks. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License """ import sys from WaveBlocksND import ParameterLoader # Read the path for the configuration file we use for this ...
<commit_before>"""The WaveBlocks Project This file is main script for running simulations with WaveBlocks. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License """ import sys from WaveBlocksND import ParameterLoader # Read the path for the configuration file w...
"""The WaveBlocks Project This file is main script for running simulations with WaveBlocks. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License """ import sys from WaveBlocksND import ParameterLoader # Read the path for the configuration file we use for this ...
"""The WaveBlocks Project This file is main script for running simulations with WaveBlocks. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License """ import sys from WaveBlocksND import ParameterLoader # Read the path for the configuration file we use for this ...
<commit_before>"""The WaveBlocks Project This file is main script for running simulations with WaveBlocks. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License """ import sys from WaveBlocksND import ParameterLoader # Read the path for the configuration file w...
d19e4a358f1f81f72a02c3015fc4a0def2827e19
nibble_aes/find_dist/find_ids.py
nibble_aes/find_dist/find_ids.py
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
Optimize by using isdisjoint instead of finding intersection.
Optimize by using isdisjoint instead of finding intersection.
Python
mit
wei2912/idc,wei2912/idc,wei2912/aes-idc,wei2912/idc,wei2912/idc,wei2912/aes-idc
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
<commit_before>""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [b...
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
<commit_before>""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [b...
f95a42b0a9445a58e68fc83e9b1411bedef67904
wqflask/tests/base/test_general_object.py
wqflask/tests/base/test_general_object.py
import unittest from base.GeneralObject import GeneralObject class TestGeneralObjectTests(unittest.TestCase): """ Test the GeneralObject base class """ def test_object_contents(self): """Test whether base contents are stored properly""" test_obj = GeneralObject("a", "b", "c") ...
import unittest from base.GeneralObject import GeneralObject class TestGeneralObjectTests(unittest.TestCase): """ Test the GeneralObject base class """ def test_object_contents(self): """Test whether base contents are stored properly""" test_obj = GeneralObject("a", "b", "c") ...
Add more tests for GeneralObject
Add more tests for GeneralObject * wqflask/tests/base/test_general_object.py: test object's magic methods
Python
agpl-3.0
genenetwork/genenetwork2,zsloan/genenetwork2,zsloan/genenetwork2,zsloan/genenetwork2,pjotrp/genenetwork2,pjotrp/genenetwork2,pjotrp/genenetwork2,genenetwork/genenetwork2,pjotrp/genenetwork2,genenetwork/genenetwork2,pjotrp/genenetwork2,zsloan/genenetwork2,genenetwork/genenetwork2
import unittest from base.GeneralObject import GeneralObject class TestGeneralObjectTests(unittest.TestCase): """ Test the GeneralObject base class """ def test_object_contents(self): """Test whether base contents are stored properly""" test_obj = GeneralObject("a", "b", "c") ...
import unittest from base.GeneralObject import GeneralObject class TestGeneralObjectTests(unittest.TestCase): """ Test the GeneralObject base class """ def test_object_contents(self): """Test whether base contents are stored properly""" test_obj = GeneralObject("a", "b", "c") ...
<commit_before>import unittest from base.GeneralObject import GeneralObject class TestGeneralObjectTests(unittest.TestCase): """ Test the GeneralObject base class """ def test_object_contents(self): """Test whether base contents are stored properly""" test_obj = GeneralObject("a", "b...
import unittest from base.GeneralObject import GeneralObject class TestGeneralObjectTests(unittest.TestCase): """ Test the GeneralObject base class """ def test_object_contents(self): """Test whether base contents are stored properly""" test_obj = GeneralObject("a", "b", "c") ...
import unittest from base.GeneralObject import GeneralObject class TestGeneralObjectTests(unittest.TestCase): """ Test the GeneralObject base class """ def test_object_contents(self): """Test whether base contents are stored properly""" test_obj = GeneralObject("a", "b", "c") ...
<commit_before>import unittest from base.GeneralObject import GeneralObject class TestGeneralObjectTests(unittest.TestCase): """ Test the GeneralObject base class """ def test_object_contents(self): """Test whether base contents are stored properly""" test_obj = GeneralObject("a", "b...
dc38460e4e8ca70954f34bfffa99170a9ea437cb
scripts/helpers/utils.py
scripts/helpers/utils.py
from __future__ import division from time import time def normalize(val, _min, _max): return (val - _min) / (_max - _min) def countdown(initial_time, seconds): while time() - initial_time < seconds: return False return True
from __future__ import division from time import time def normalize(val, _min, _max): return (val - _min) / (_max - _min) def countdown(initial_time, seconds): if time() - initial_time < seconds: return False return True
Change while->if to improve readability
Change while->if to improve readability
Python
mit
richin13/nxt-scripts
from __future__ import division from time import time def normalize(val, _min, _max): return (val - _min) / (_max - _min) def countdown(initial_time, seconds): while time() - initial_time < seconds: return False return True Change while->if to improve readability
from __future__ import division from time import time def normalize(val, _min, _max): return (val - _min) / (_max - _min) def countdown(initial_time, seconds): if time() - initial_time < seconds: return False return True
<commit_before>from __future__ import division from time import time def normalize(val, _min, _max): return (val - _min) / (_max - _min) def countdown(initial_time, seconds): while time() - initial_time < seconds: return False return True <commit_msg>Change while->if to improve readability<commi...
from __future__ import division from time import time def normalize(val, _min, _max): return (val - _min) / (_max - _min) def countdown(initial_time, seconds): if time() - initial_time < seconds: return False return True
from __future__ import division from time import time def normalize(val, _min, _max): return (val - _min) / (_max - _min) def countdown(initial_time, seconds): while time() - initial_time < seconds: return False return True Change while->if to improve readabilityfrom __future__ import division f...
<commit_before>from __future__ import division from time import time def normalize(val, _min, _max): return (val - _min) / (_max - _min) def countdown(initial_time, seconds): while time() - initial_time < seconds: return False return True <commit_msg>Change while->if to improve readability<commi...
c062ae638a4c864e978a4adfcd7d8d830b99abc2
opentreemap/treemap/lib/dates.py
opentreemap/treemap/lib/dates.py
from datetime import datetime from django.utils import timezone import calendar import pytz DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' DATE_FORMAT = '%Y-%m-%d' def parse_date_string_with_or_without_time(date_string): try: return datetime.strptime(date_string.strip(), '%Y-%m-%d %H:%M:%S') except ValueError...
from datetime import datetime from django.utils import timezone import calendar import pytz DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' DATE_FORMAT = '%Y-%m-%d' def parse_date_string_with_or_without_time(date_string): try: return datetime.strptime(date_string.strip(), '%Y-%m-%d %H:%M:%S') except ValueError...
Add function for nullsafe, tzsafe comparison
Add function for nullsafe, tzsafe comparison
Python
agpl-3.0
clever-crow-consulting/otm-core,recklessromeo/otm-core,maurizi/otm-core,recklessromeo/otm-core,maurizi/otm-core,RickMohr/otm-core,RickMohr/otm-core,RickMohr/otm-core,clever-crow-consulting/otm-core,recklessromeo/otm-core,recklessromeo/otm-core,maurizi/otm-core,clever-crow-consulting/otm-core,clever-crow-consulting/otm-...
from datetime import datetime from django.utils import timezone import calendar import pytz DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' DATE_FORMAT = '%Y-%m-%d' def parse_date_string_with_or_without_time(date_string): try: return datetime.strptime(date_string.strip(), '%Y-%m-%d %H:%M:%S') except ValueError...
from datetime import datetime from django.utils import timezone import calendar import pytz DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' DATE_FORMAT = '%Y-%m-%d' def parse_date_string_with_or_without_time(date_string): try: return datetime.strptime(date_string.strip(), '%Y-%m-%d %H:%M:%S') except ValueError...
<commit_before>from datetime import datetime from django.utils import timezone import calendar import pytz DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' DATE_FORMAT = '%Y-%m-%d' def parse_date_string_with_or_without_time(date_string): try: return datetime.strptime(date_string.strip(), '%Y-%m-%d %H:%M:%S') ex...
from datetime import datetime from django.utils import timezone import calendar import pytz DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' DATE_FORMAT = '%Y-%m-%d' def parse_date_string_with_or_without_time(date_string): try: return datetime.strptime(date_string.strip(), '%Y-%m-%d %H:%M:%S') except ValueError...
from datetime import datetime from django.utils import timezone import calendar import pytz DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' DATE_FORMAT = '%Y-%m-%d' def parse_date_string_with_or_without_time(date_string): try: return datetime.strptime(date_string.strip(), '%Y-%m-%d %H:%M:%S') except ValueError...
<commit_before>from datetime import datetime from django.utils import timezone import calendar import pytz DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' DATE_FORMAT = '%Y-%m-%d' def parse_date_string_with_or_without_time(date_string): try: return datetime.strptime(date_string.strip(), '%Y-%m-%d %H:%M:%S') ex...
57bda16a1e948d81884277f35b77c16e50d4870e
scripts/slave/chromium/dart_buildbot_run.py
scripts/slave/chromium/dart_buildbot_run.py
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Entry point for the dartium buildbots. This script is called from buildbot and reports results using the buildbot annotation sc...
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Entry point for the dartium buildbots. This script is called from buildbot and reports results using the buildbot annotation sc...
Switch Dartium buildbot script to stable 1.6
Switch Dartium buildbot script to stable 1.6 BUG= Review URL: https://codereview.chromium.org/504383002 git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@291655 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
eunchong/build,eunchong/build,eunchong/build,eunchong/build
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Entry point for the dartium buildbots. This script is called from buildbot and reports results using the buildbot annotation sc...
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Entry point for the dartium buildbots. This script is called from buildbot and reports results using the buildbot annotation sc...
<commit_before>#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Entry point for the dartium buildbots. This script is called from buildbot and reports results using the buildbo...
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Entry point for the dartium buildbots. This script is called from buildbot and reports results using the buildbot annotation sc...
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Entry point for the dartium buildbots. This script is called from buildbot and reports results using the buildbot annotation sc...
<commit_before>#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Entry point for the dartium buildbots. This script is called from buildbot and reports results using the buildbo...
cd71b6b0a94c98966a7750f067eaa2dd044f5fec
spacy/tests/parser/test_parser_pickle.py
spacy/tests/parser/test_parser_pickle.py
import pytest import pickle import cloudpickle import io @pytest.mark.models def test_pickle(EN): file_ = io.BytesIO() cloudpickle.dump(EN.parser, file_) file_.seek(0) loaded = pickle.load(file_)
import pytest import pickle import cloudpickle import io #@pytest.mark.models #def test_pickle(EN): # file_ = io.BytesIO() # cloudpickle.dump(EN.parser, file_) # # file_.seek(0) # # loaded = pickle.load(file_) #
Remove test of parser pickle
Remove test of parser pickle
Python
mit
banglakit/spaCy,spacy-io/spaCy,aikramer2/spaCy,explosion/spaCy,raphael0202/spaCy,raphael0202/spaCy,recognai/spaCy,explosion/spaCy,raphael0202/spaCy,oroszgy/spaCy.hu,banglakit/spaCy,honnibal/spaCy,honnibal/spaCy,aikramer2/spaCy,Gregory-Howard/spaCy,banglakit/spaCy,oroszgy/spaCy.hu,aikramer2/spaCy,banglakit/spaCy,aikrame...
import pytest import pickle import cloudpickle import io @pytest.mark.models def test_pickle(EN): file_ = io.BytesIO() cloudpickle.dump(EN.parser, file_) file_.seek(0) loaded = pickle.load(file_) Remove test of parser pickle
import pytest import pickle import cloudpickle import io #@pytest.mark.models #def test_pickle(EN): # file_ = io.BytesIO() # cloudpickle.dump(EN.parser, file_) # # file_.seek(0) # # loaded = pickle.load(file_) #
<commit_before>import pytest import pickle import cloudpickle import io @pytest.mark.models def test_pickle(EN): file_ = io.BytesIO() cloudpickle.dump(EN.parser, file_) file_.seek(0) loaded = pickle.load(file_) <commit_msg>Remove test of parser pickle<commit_after>
import pytest import pickle import cloudpickle import io #@pytest.mark.models #def test_pickle(EN): # file_ = io.BytesIO() # cloudpickle.dump(EN.parser, file_) # # file_.seek(0) # # loaded = pickle.load(file_) #
import pytest import pickle import cloudpickle import io @pytest.mark.models def test_pickle(EN): file_ = io.BytesIO() cloudpickle.dump(EN.parser, file_) file_.seek(0) loaded = pickle.load(file_) Remove test of parser pickleimport pytest import pickle import cloudpickle import io #@pytest.mar...
<commit_before>import pytest import pickle import cloudpickle import io @pytest.mark.models def test_pickle(EN): file_ = io.BytesIO() cloudpickle.dump(EN.parser, file_) file_.seek(0) loaded = pickle.load(file_) <commit_msg>Remove test of parser pickle<commit_after>import pytest import pickle imp...
f3dcb7105049b9dcc8d6a1a97fbfe8968092a533
mesonwrap/inventory.py
mesonwrap/inventory.py
_ORGANIZATION = 'mesonbuild' _RESTRICTED_PROJECTS = [ 'meson', 'meson-ci', 'mesonwrap', 'wrapdevtools', 'wrapweb', ] _RESTRICTED_ORG_PROJECTS = [ _ORGANIZATION + '/' + proj for proj in _RESTRICTED_PROJECTS ] def is_wrap_project_name(project: str) -> bool: return project not in _RESTRICTED_...
_ORGANIZATION = 'mesonbuild' _RESTRICTED_PROJECTS = [ 'meson', 'meson-ci', 'mesonbuild.github.io', 'mesonwrap', 'wrapdb', 'wrapdevtools', 'wrapweb', ] _RESTRICTED_ORG_PROJECTS = [ _ORGANIZATION + '/' + proj for proj in _RESTRICTED_PROJECTS ] def is_wrap_project_name(project: str) -> bo...
Add mesonbuild.github.io and wrapdb to the list of restricted projects
Add mesonbuild.github.io and wrapdb to the list of restricted projects
Python
apache-2.0
mesonbuild/wrapweb,mesonbuild/wrapweb,mesonbuild/wrapweb
_ORGANIZATION = 'mesonbuild' _RESTRICTED_PROJECTS = [ 'meson', 'meson-ci', 'mesonwrap', 'wrapdevtools', 'wrapweb', ] _RESTRICTED_ORG_PROJECTS = [ _ORGANIZATION + '/' + proj for proj in _RESTRICTED_PROJECTS ] def is_wrap_project_name(project: str) -> bool: return project not in _RESTRICTED_...
_ORGANIZATION = 'mesonbuild' _RESTRICTED_PROJECTS = [ 'meson', 'meson-ci', 'mesonbuild.github.io', 'mesonwrap', 'wrapdb', 'wrapdevtools', 'wrapweb', ] _RESTRICTED_ORG_PROJECTS = [ _ORGANIZATION + '/' + proj for proj in _RESTRICTED_PROJECTS ] def is_wrap_project_name(project: str) -> bo...
<commit_before>_ORGANIZATION = 'mesonbuild' _RESTRICTED_PROJECTS = [ 'meson', 'meson-ci', 'mesonwrap', 'wrapdevtools', 'wrapweb', ] _RESTRICTED_ORG_PROJECTS = [ _ORGANIZATION + '/' + proj for proj in _RESTRICTED_PROJECTS ] def is_wrap_project_name(project: str) -> bool: return project not ...
_ORGANIZATION = 'mesonbuild' _RESTRICTED_PROJECTS = [ 'meson', 'meson-ci', 'mesonbuild.github.io', 'mesonwrap', 'wrapdb', 'wrapdevtools', 'wrapweb', ] _RESTRICTED_ORG_PROJECTS = [ _ORGANIZATION + '/' + proj for proj in _RESTRICTED_PROJECTS ] def is_wrap_project_name(project: str) -> bo...
_ORGANIZATION = 'mesonbuild' _RESTRICTED_PROJECTS = [ 'meson', 'meson-ci', 'mesonwrap', 'wrapdevtools', 'wrapweb', ] _RESTRICTED_ORG_PROJECTS = [ _ORGANIZATION + '/' + proj for proj in _RESTRICTED_PROJECTS ] def is_wrap_project_name(project: str) -> bool: return project not in _RESTRICTED_...
<commit_before>_ORGANIZATION = 'mesonbuild' _RESTRICTED_PROJECTS = [ 'meson', 'meson-ci', 'mesonwrap', 'wrapdevtools', 'wrapweb', ] _RESTRICTED_ORG_PROJECTS = [ _ORGANIZATION + '/' + proj for proj in _RESTRICTED_PROJECTS ] def is_wrap_project_name(project: str) -> bool: return project not ...
f48651eb780aa10d2cbe115126a0783c72b76e7e
tsscp/utils.py
tsscp/utils.py
from markdown import markdown import bleach import re from werkzeug.exceptions import NotFound from . import consts as c def md2html(md: str): allowed_tags = ('a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'li', 'ol', 'pre', 'strong', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p...
from markdown import markdown import bleach import re from werkzeug.exceptions import NotFound from . import consts as c def md2html(md: str): allowed_tags = ('a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'li', 'ol', 'pre', 'strong', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p...
Allow hyphens in page ID
Allow hyphens in page ID
Python
mit
Einbert-Xeride/tsscp,Einbert-Xeride/tsscp
from markdown import markdown import bleach import re from werkzeug.exceptions import NotFound from . import consts as c def md2html(md: str): allowed_tags = ('a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'li', 'ol', 'pre', 'strong', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p...
from markdown import markdown import bleach import re from werkzeug.exceptions import NotFound from . import consts as c def md2html(md: str): allowed_tags = ('a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'li', 'ol', 'pre', 'strong', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p...
<commit_before>from markdown import markdown import bleach import re from werkzeug.exceptions import NotFound from . import consts as c def md2html(md: str): allowed_tags = ('a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'li', 'ol', 'pre', 'strong', 'ul', 'h1', 'h2', 'h3', 'h4',...
from markdown import markdown import bleach import re from werkzeug.exceptions import NotFound from . import consts as c def md2html(md: str): allowed_tags = ('a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'li', 'ol', 'pre', 'strong', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p...
from markdown import markdown import bleach import re from werkzeug.exceptions import NotFound from . import consts as c def md2html(md: str): allowed_tags = ('a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'li', 'ol', 'pre', 'strong', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p...
<commit_before>from markdown import markdown import bleach import re from werkzeug.exceptions import NotFound from . import consts as c def md2html(md: str): allowed_tags = ('a', 'abbr', 'acronym', 'b', 'blockquote', 'code', 'em', 'i', 'li', 'ol', 'pre', 'strong', 'ul', 'h1', 'h2', 'h3', 'h4',...
67e16e13b6a4cc505758b3af26e287914ac8f335
demosys/context/__init__.py
demosys/context/__init__.py
import moderngl from demosys.conf import settings from demosys.utils.module_loading import import_string # Window instance shortcut WINDOW = None # noqa def window(raise_on_error=True) -> 'demosys.context.base.Window': """ The window instance we are rendering to :param raise_on_error: Raise an error if...
import moderngl from demosys.conf import settings from demosys.utils.module_loading import import_string from demosys.context.base import BaseWindow # Window instance shortcut WINDOW = None # noqa def window(raise_on_error=True) -> BaseWindow: """ The window instance we are rendering to :param raise_o...
Fix test issue related to pyflakes upgrade
Fix test issue related to pyflakes upgrade
Python
isc
Contraz/demosys-py
import moderngl from demosys.conf import settings from demosys.utils.module_loading import import_string # Window instance shortcut WINDOW = None # noqa def window(raise_on_error=True) -> 'demosys.context.base.Window': """ The window instance we are rendering to :param raise_on_error: Raise an error if...
import moderngl from demosys.conf import settings from demosys.utils.module_loading import import_string from demosys.context.base import BaseWindow # Window instance shortcut WINDOW = None # noqa def window(raise_on_error=True) -> BaseWindow: """ The window instance we are rendering to :param raise_o...
<commit_before>import moderngl from demosys.conf import settings from demosys.utils.module_loading import import_string # Window instance shortcut WINDOW = None # noqa def window(raise_on_error=True) -> 'demosys.context.base.Window': """ The window instance we are rendering to :param raise_on_error: Ra...
import moderngl from demosys.conf import settings from demosys.utils.module_loading import import_string from demosys.context.base import BaseWindow # Window instance shortcut WINDOW = None # noqa def window(raise_on_error=True) -> BaseWindow: """ The window instance we are rendering to :param raise_o...
import moderngl from demosys.conf import settings from demosys.utils.module_loading import import_string # Window instance shortcut WINDOW = None # noqa def window(raise_on_error=True) -> 'demosys.context.base.Window': """ The window instance we are rendering to :param raise_on_error: Raise an error if...
<commit_before>import moderngl from demosys.conf import settings from demosys.utils.module_loading import import_string # Window instance shortcut WINDOW = None # noqa def window(raise_on_error=True) -> 'demosys.context.base.Window': """ The window instance we are rendering to :param raise_on_error: Ra...
ab3cb8fb539d65cb3549d52ec34c7b533a98b2d4
byceps/blueprints/authorization/decorators.py
byceps/blueprints/authorization/decorators.py
# -*- coding: utf-8 -*- """ byceps.blueprints.authorization.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2016 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from functools import wraps from flask import abort, g def permission_required(permission): """Ensur...
# -*- coding: utf-8 -*- """ byceps.blueprints.authorization.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2016 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from functools import wraps from flask import abort, g def permission_required(permission): """Ensur...
Remove `role_required` decorator as only specific permissions, not roles, should be explicitly required
Remove `role_required` decorator as only specific permissions, not roles, should be explicitly required
Python
bsd-3-clause
homeworkprod/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps,m-ober/byceps,homeworkprod/byceps
# -*- coding: utf-8 -*- """ byceps.blueprints.authorization.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2016 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from functools import wraps from flask import abort, g def permission_required(permission): """Ensur...
# -*- coding: utf-8 -*- """ byceps.blueprints.authorization.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2016 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from functools import wraps from flask import abort, g def permission_required(permission): """Ensur...
<commit_before># -*- coding: utf-8 -*- """ byceps.blueprints.authorization.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2016 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from functools import wraps from flask import abort, g def permission_required(permission...
# -*- coding: utf-8 -*- """ byceps.blueprints.authorization.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2016 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from functools import wraps from flask import abort, g def permission_required(permission): """Ensur...
# -*- coding: utf-8 -*- """ byceps.blueprints.authorization.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2016 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from functools import wraps from flask import abort, g def permission_required(permission): """Ensur...
<commit_before># -*- coding: utf-8 -*- """ byceps.blueprints.authorization.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2016 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from functools import wraps from flask import abort, g def permission_required(permission...
0f62859abe1f6b0bedf4a3512b59f474536e1c78
setup.py
setup.py
from codecs import open as codecs_open from setuptools import setup, find_packages import sentinelsat # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='sentinelsat', version=sentinelsat.__version__, descr...
from codecs import open as codecs_open from setuptools import setup, find_packages import sentinelsat # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='sentinelsat', version=sentinelsat.__version__, descr...
Add vcrpy to testing-related dependencies
Add vcrpy to testing-related dependencies
Python
agpl-3.0
ibamacsr/sentinelsat
from codecs import open as codecs_open from setuptools import setup, find_packages import sentinelsat # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='sentinelsat', version=sentinelsat.__version__, descr...
from codecs import open as codecs_open from setuptools import setup, find_packages import sentinelsat # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='sentinelsat', version=sentinelsat.__version__, descr...
<commit_before>from codecs import open as codecs_open from setuptools import setup, find_packages import sentinelsat # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='sentinelsat', version=sentinelsat.__version...
from codecs import open as codecs_open from setuptools import setup, find_packages import sentinelsat # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='sentinelsat', version=sentinelsat.__version__, descr...
from codecs import open as codecs_open from setuptools import setup, find_packages import sentinelsat # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='sentinelsat', version=sentinelsat.__version__, descr...
<commit_before>from codecs import open as codecs_open from setuptools import setup, find_packages import sentinelsat # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='sentinelsat', version=sentinelsat.__version...
644912b4e4ef533db23b732a36e4dfc373f47540
FEZHAT.py
FEZHAT.py
import ADS7830 class FEZHAT: def __init__(self): self._ads = ADS7830.ADS7830(1, 0x48) def get_light(): return self._ads.read(5) / 255.0 # http://ww1.microchip.com/downloads/en/DeviceDoc/20001942F.pdf def get_temperature(): # see page 8 return (((3.3 / ...
import ADS7830 class FEZHAT: def __init__(self): self._ads = ADS7830.ADS7830(1, 0x48) def get_light(self): return self._ads.read(5) / 255.0 # http://ww1.microchip.com/downloads/en/DeviceDoc/20001942F.pdf def get_temperature(self): # see page 8 return (...
Use mV in temperature calculation
Use mV in temperature calculation
Python
apache-2.0
bechynsky/FEZHATPY
import ADS7830 class FEZHAT: def __init__(self): self._ads = ADS7830.ADS7830(1, 0x48) def get_light(): return self._ads.read(5) / 255.0 # http://ww1.microchip.com/downloads/en/DeviceDoc/20001942F.pdf def get_temperature(): # see page 8 return (((3.3 / ...
import ADS7830 class FEZHAT: def __init__(self): self._ads = ADS7830.ADS7830(1, 0x48) def get_light(self): return self._ads.read(5) / 255.0 # http://ww1.microchip.com/downloads/en/DeviceDoc/20001942F.pdf def get_temperature(self): # see page 8 return (...
<commit_before>import ADS7830 class FEZHAT: def __init__(self): self._ads = ADS7830.ADS7830(1, 0x48) def get_light(): return self._ads.read(5) / 255.0 # http://ww1.microchip.com/downloads/en/DeviceDoc/20001942F.pdf def get_temperature(): # see page 8 r...
import ADS7830 class FEZHAT: def __init__(self): self._ads = ADS7830.ADS7830(1, 0x48) def get_light(self): return self._ads.read(5) / 255.0 # http://ww1.microchip.com/downloads/en/DeviceDoc/20001942F.pdf def get_temperature(self): # see page 8 return (...
import ADS7830 class FEZHAT: def __init__(self): self._ads = ADS7830.ADS7830(1, 0x48) def get_light(): return self._ads.read(5) / 255.0 # http://ww1.microchip.com/downloads/en/DeviceDoc/20001942F.pdf def get_temperature(): # see page 8 return (((3.3 / ...
<commit_before>import ADS7830 class FEZHAT: def __init__(self): self._ads = ADS7830.ADS7830(1, 0x48) def get_light(): return self._ads.read(5) / 255.0 # http://ww1.microchip.com/downloads/en/DeviceDoc/20001942F.pdf def get_temperature(): # see page 8 r...
ed948b9206efb8329d9b0eac1814a9ae4945871a
setup.py
setup.py
from setuptools import setup, find_packages setup( name='ok', version='1.0.6', description=('ok.py supports programming projects by running tests, ' 'tracking progress, and assisting in debugging.'), # long_description=long_description, url='https://github.com/Cal-CS-61A-Staff/ok', ...
from setuptools import setup, find_packages setup( name='okpy', version='1.0.6', description=('ok.py supports programming projects by running tests, ' 'tracking progress, and assisting in debugging.'), # long_description=long_description, url='https://github.com/Cal-CS-61A-Staff/ok'...
Change pip name to okpy, since ok is taken
Change pip name to okpy, since ok is taken
Python
apache-2.0
jordonwii/ok,jordonwii/ok,Cal-CS-61A-Staff/ok,jordonwii/ok,jackzhao-mj/ok,jackzhao-mj/ok,Cal-CS-61A-Staff/ok,Cal-CS-61A-Staff/ok,Cal-CS-61A-Staff/ok,jordonwii/ok,Cal-CS-61A-Staff/ok,jackzhao-mj/ok,jackzhao-mj/ok
from setuptools import setup, find_packages setup( name='ok', version='1.0.6', description=('ok.py supports programming projects by running tests, ' 'tracking progress, and assisting in debugging.'), # long_description=long_description, url='https://github.com/Cal-CS-61A-Staff/ok', ...
from setuptools import setup, find_packages setup( name='okpy', version='1.0.6', description=('ok.py supports programming projects by running tests, ' 'tracking progress, and assisting in debugging.'), # long_description=long_description, url='https://github.com/Cal-CS-61A-Staff/ok'...
<commit_before>from setuptools import setup, find_packages setup( name='ok', version='1.0.6', description=('ok.py supports programming projects by running tests, ' 'tracking progress, and assisting in debugging.'), # long_description=long_description, url='https://github.com/Cal-CS-...
from setuptools import setup, find_packages setup( name='okpy', version='1.0.6', description=('ok.py supports programming projects by running tests, ' 'tracking progress, and assisting in debugging.'), # long_description=long_description, url='https://github.com/Cal-CS-61A-Staff/ok'...
from setuptools import setup, find_packages setup( name='ok', version='1.0.6', description=('ok.py supports programming projects by running tests, ' 'tracking progress, and assisting in debugging.'), # long_description=long_description, url='https://github.com/Cal-CS-61A-Staff/ok', ...
<commit_before>from setuptools import setup, find_packages setup( name='ok', version='1.0.6', description=('ok.py supports programming projects by running tests, ' 'tracking progress, and assisting in debugging.'), # long_description=long_description, url='https://github.com/Cal-CS-...
18033898775a0a481542d5e00c8f37d47e38decf
setup.py
setup.py
# -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages IS_PY3 = sys.version_info > (3,) install_requires = [ 'jinja2', 'lxml', ] tests_require = [ ] extras_require = { 'test': tests_require, } description = "Library for building and paring Connexions' EPUBs." if not ...
# -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages IS_PY3 = sys.version_info > (3,) install_requires = [ 'jinja2', 'lxml', ] tests_require = [ ] extras_require = { 'test': tests_require, } description = "Library for building and paring Connexions' EPUBs." if not ...
Fix package data to include styles.css
:bug: Fix package data to include styles.css
Python
agpl-3.0
Connexions/cnx-epub,Connexions/cnx-epub,Connexions/cnx-epub
# -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages IS_PY3 = sys.version_info > (3,) install_requires = [ 'jinja2', 'lxml', ] tests_require = [ ] extras_require = { 'test': tests_require, } description = "Library for building and paring Connexions' EPUBs." if not ...
# -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages IS_PY3 = sys.version_info > (3,) install_requires = [ 'jinja2', 'lxml', ] tests_require = [ ] extras_require = { 'test': tests_require, } description = "Library for building and paring Connexions' EPUBs." if not ...
<commit_before># -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages IS_PY3 = sys.version_info > (3,) install_requires = [ 'jinja2', 'lxml', ] tests_require = [ ] extras_require = { 'test': tests_require, } description = "Library for building and paring Connexions' E...
# -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages IS_PY3 = sys.version_info > (3,) install_requires = [ 'jinja2', 'lxml', ] tests_require = [ ] extras_require = { 'test': tests_require, } description = "Library for building and paring Connexions' EPUBs." if not ...
# -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages IS_PY3 = sys.version_info > (3,) install_requires = [ 'jinja2', 'lxml', ] tests_require = [ ] extras_require = { 'test': tests_require, } description = "Library for building and paring Connexions' EPUBs." if not ...
<commit_before># -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages IS_PY3 = sys.version_info > (3,) install_requires = [ 'jinja2', 'lxml', ] tests_require = [ ] extras_require = { 'test': tests_require, } description = "Library for building and paring Connexions' E...
6b32e3a379920557183effdddf977f21e2603159
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='celery-queued-once', version='0.1', description='Celery base task de-duplicating tasks', author='Corey Farwell', author_email='corey@educreations.com', packages=['queued_once'], install_requires=['celery', 'django >= 1.7'], )...
#!/usr/bin/env python from setuptools import setup setup( name='celery-queued-once', version='0.1', description='Celery base task de-duplicating tasks', author='Educreations Engineering', packages=['queued_once'], install_requires=['celery', 'django >= 1.7'], )
Make the credits appear less selfish
Make the credits appear less selfish Not to mention, I didn't write most of it
Python
mit
educreations/celery-queued-once
#!/usr/bin/env python from setuptools import setup setup( name='celery-queued-once', version='0.1', description='Celery base task de-duplicating tasks', author='Corey Farwell', author_email='corey@educreations.com', packages=['queued_once'], install_requires=['celery', 'django >= 1.7'], )...
#!/usr/bin/env python from setuptools import setup setup( name='celery-queued-once', version='0.1', description='Celery base task de-duplicating tasks', author='Educreations Engineering', packages=['queued_once'], install_requires=['celery', 'django >= 1.7'], )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='celery-queued-once', version='0.1', description='Celery base task de-duplicating tasks', author='Corey Farwell', author_email='corey@educreations.com', packages=['queued_once'], install_requires=['celery', 'dja...
#!/usr/bin/env python from setuptools import setup setup( name='celery-queued-once', version='0.1', description='Celery base task de-duplicating tasks', author='Educreations Engineering', packages=['queued_once'], install_requires=['celery', 'django >= 1.7'], )
#!/usr/bin/env python from setuptools import setup setup( name='celery-queued-once', version='0.1', description='Celery base task de-duplicating tasks', author='Corey Farwell', author_email='corey@educreations.com', packages=['queued_once'], install_requires=['celery', 'django >= 1.7'], )...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='celery-queued-once', version='0.1', description='Celery base task de-duplicating tasks', author='Corey Farwell', author_email='corey@educreations.com', packages=['queued_once'], install_requires=['celery', 'dja...
6740467a15a54d4ca0bf0a7e358e2e5c92e04344
setup.py
setup.py
from setuptools import setup, find_packages import re VERSIONFILE = "openomni/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: raise RuntimeError("Unable to find version string in %s." ...
from setuptools import setup, find_packages import re VERSIONFILE = "openomni/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: raise RuntimeError("Unable to find version string in %s." ...
Install enum34 if not provided
Install enum34 if not provided
Python
mit
openaps/openomni,openaps/openomni,openaps/openomni
from setuptools import setup, find_packages import re VERSIONFILE = "openomni/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: raise RuntimeError("Unable to find version string in %s." ...
from setuptools import setup, find_packages import re VERSIONFILE = "openomni/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: raise RuntimeError("Unable to find version string in %s." ...
<commit_before>from setuptools import setup, find_packages import re VERSIONFILE = "openomni/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: raise RuntimeError("Unable to find version ...
from setuptools import setup, find_packages import re VERSIONFILE = "openomni/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: raise RuntimeError("Unable to find version string in %s." ...
from setuptools import setup, find_packages import re VERSIONFILE = "openomni/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: raise RuntimeError("Unable to find version string in %s." ...
<commit_before>from setuptools import setup, find_packages import re VERSIONFILE = "openomni/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: raise RuntimeError("Unable to find version ...
168aac03b6d526836ec9768a505e732b41f1eefc
setup.py
setup.py
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mdot', version='0.1', packages=['mdot'], include_packa...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mdot', version='0.1', packages=['mdot'], include_packa...
Remove unused modules from the dependency list.
Remove unused modules from the dependency list.
Python
apache-2.0
uw-it-aca/mdot,uw-it-aca/mdot,uw-it-aca/mdot,charlon/mdot,charlon/mdot,uw-it-aca/mdot,charlon/mdot
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mdot', version='0.1', packages=['mdot'], include_packa...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mdot', version='0.1', packages=['mdot'], include_packa...
<commit_before>import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mdot', version='0.1', packages=['mdot'], ...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mdot', version='0.1', packages=['mdot'], include_packa...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mdot', version='0.1', packages=['mdot'], include_packa...
<commit_before>import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mdot', version='0.1', packages=['mdot'], ...
0751e67d5d7700e7280618ff2249e1573bc72144
setup.py
setup.py
#! /usr/bin/env python import sys import os import re try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] in ('submit', 'publish'): os.system('python setup.py sdist upload') sys.exit() __version__ = '' with open('collectr/__init__.py', 'r') as fd: ...
#! /usr/bin/env python import sys import os import re try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] in ('submit', 'publish'): os.system('python setup.py sdist upload') sys.exit() __version__ = '' with open('collectr/__init__.py', 'r') as fd: ...
Add History to the description.
Add History to the description.
Python
mit
Lukasa/collectr,Lukasa/collectr
#! /usr/bin/env python import sys import os import re try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] in ('submit', 'publish'): os.system('python setup.py sdist upload') sys.exit() __version__ = '' with open('collectr/__init__.py', 'r') as fd: ...
#! /usr/bin/env python import sys import os import re try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] in ('submit', 'publish'): os.system('python setup.py sdist upload') sys.exit() __version__ = '' with open('collectr/__init__.py', 'r') as fd: ...
<commit_before>#! /usr/bin/env python import sys import os import re try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] in ('submit', 'publish'): os.system('python setup.py sdist upload') sys.exit() __version__ = '' with open('collectr/__init__.py'...
#! /usr/bin/env python import sys import os import re try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] in ('submit', 'publish'): os.system('python setup.py sdist upload') sys.exit() __version__ = '' with open('collectr/__init__.py', 'r') as fd: ...
#! /usr/bin/env python import sys import os import re try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] in ('submit', 'publish'): os.system('python setup.py sdist upload') sys.exit() __version__ = '' with open('collectr/__init__.py', 'r') as fd: ...
<commit_before>#! /usr/bin/env python import sys import os import re try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] in ('submit', 'publish'): os.system('python setup.py sdist upload') sys.exit() __version__ = '' with open('collectr/__init__.py'...
b74be667803abed58c08a298d5a806692d2fab74
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf8 -*- import os.path from setuptools import setup, find_packages def get_version(): """ Loads the current module version from version.py and returns it. :returns: module version identifier. :rtype: str """ local_results = {} version_file_path = o...
#!/usr/bin/env python # -*- coding: utf8 -*- import os.path from setuptools import setup, find_packages def get_version(): """ Loads the current module version from version.py and returns it. :returns: module version identifier. :rtype: str """ local_results = {} version_file_path = o...
Use README.md for the long description.
Use README.md for the long description.
Python
mit
TkTech/pytextql
#!/usr/bin/env python # -*- coding: utf8 -*- import os.path from setuptools import setup, find_packages def get_version(): """ Loads the current module version from version.py and returns it. :returns: module version identifier. :rtype: str """ local_results = {} version_file_path = o...
#!/usr/bin/env python # -*- coding: utf8 -*- import os.path from setuptools import setup, find_packages def get_version(): """ Loads the current module version from version.py and returns it. :returns: module version identifier. :rtype: str """ local_results = {} version_file_path = o...
<commit_before>#!/usr/bin/env python # -*- coding: utf8 -*- import os.path from setuptools import setup, find_packages def get_version(): """ Loads the current module version from version.py and returns it. :returns: module version identifier. :rtype: str """ local_results = {} versio...
#!/usr/bin/env python # -*- coding: utf8 -*- import os.path from setuptools import setup, find_packages def get_version(): """ Loads the current module version from version.py and returns it. :returns: module version identifier. :rtype: str """ local_results = {} version_file_path = o...
#!/usr/bin/env python # -*- coding: utf8 -*- import os.path from setuptools import setup, find_packages def get_version(): """ Loads the current module version from version.py and returns it. :returns: module version identifier. :rtype: str """ local_results = {} version_file_path = o...
<commit_before>#!/usr/bin/env python # -*- coding: utf8 -*- import os.path from setuptools import setup, find_packages def get_version(): """ Loads the current module version from version.py and returns it. :returns: module version identifier. :rtype: str """ local_results = {} versio...
1303d1c14f7c3127b8fc87178f268d8b052ef503
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup def readfile(fname): with open(fname) as f: content = f.read() return content setup(name='sockjs-cyclone', version='1.0.2', author='Flavio Grossi', author_email='flaviogrossi@gmail.com', description='SockJS python server...
#!/usr/bin/env python from distutils.core import setup def readfile(fname): with open(fname) as f: content = f.read() return content setup(name='sockjs-cyclone', version='1.0.2', author='Flavio Grossi', author_email='flaviogrossi@gmail.com', description='SockJS python server...
Remove declaration of dependency on simplejson
Remove declaration of dependency on simplejson
Python
mit
flaviogrossi/sockjs-cyclone
#!/usr/bin/env python from distutils.core import setup def readfile(fname): with open(fname) as f: content = f.read() return content setup(name='sockjs-cyclone', version='1.0.2', author='Flavio Grossi', author_email='flaviogrossi@gmail.com', description='SockJS python server...
#!/usr/bin/env python from distutils.core import setup def readfile(fname): with open(fname) as f: content = f.read() return content setup(name='sockjs-cyclone', version='1.0.2', author='Flavio Grossi', author_email='flaviogrossi@gmail.com', description='SockJS python server...
<commit_before>#!/usr/bin/env python from distutils.core import setup def readfile(fname): with open(fname) as f: content = f.read() return content setup(name='sockjs-cyclone', version='1.0.2', author='Flavio Grossi', author_email='flaviogrossi@gmail.com', description='SockJ...
#!/usr/bin/env python from distutils.core import setup def readfile(fname): with open(fname) as f: content = f.read() return content setup(name='sockjs-cyclone', version='1.0.2', author='Flavio Grossi', author_email='flaviogrossi@gmail.com', description='SockJS python server...
#!/usr/bin/env python from distutils.core import setup def readfile(fname): with open(fname) as f: content = f.read() return content setup(name='sockjs-cyclone', version='1.0.2', author='Flavio Grossi', author_email='flaviogrossi@gmail.com', description='SockJS python server...
<commit_before>#!/usr/bin/env python from distutils.core import setup def readfile(fname): with open(fname) as f: content = f.read() return content setup(name='sockjs-cyclone', version='1.0.2', author='Flavio Grossi', author_email='flaviogrossi@gmail.com', description='SockJ...
d71a39e8721ff3764ac10dd368c9f00501290ea4
setup.py
setup.py
from setuptools import find_packages, setup REQUIREMENTS = [ 'beautifulsoup4<=4.3.2'] PACKAGES = [ 'pha'] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', 'Operating S...
from setuptools import find_packages, setup REQUIREMENTS = [ 'beautifulsoup4'] PACKAGES = [ 'pha'] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', 'Operating System :...
Remove restriction on old BeautifulSoup
Remove restriction on old BeautifulSoup
Python
mit
robjohncox/python-html-assert
from setuptools import find_packages, setup REQUIREMENTS = [ 'beautifulsoup4<=4.3.2'] PACKAGES = [ 'pha'] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', 'Operating S...
from setuptools import find_packages, setup REQUIREMENTS = [ 'beautifulsoup4'] PACKAGES = [ 'pha'] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', 'Operating System :...
<commit_before>from setuptools import find_packages, setup REQUIREMENTS = [ 'beautifulsoup4<=4.3.2'] PACKAGES = [ 'pha'] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', ...
from setuptools import find_packages, setup REQUIREMENTS = [ 'beautifulsoup4'] PACKAGES = [ 'pha'] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', 'Operating System :...
from setuptools import find_packages, setup REQUIREMENTS = [ 'beautifulsoup4<=4.3.2'] PACKAGES = [ 'pha'] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', 'Operating S...
<commit_before>from setuptools import find_packages, setup REQUIREMENTS = [ 'beautifulsoup4<=4.3.2'] PACKAGES = [ 'pha'] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS :: MacOS X', ...
41c5040795c036bdc64a796f97e2618edda2c534
setup.py
setup.py
from setuptools import setup from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errno...
from setuptools import setup from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errno...
Document Python 2.6, Python 2.7, CPython support. Document beta status.
Document Python 2.6, Python 2.7, CPython support. Document beta status.
Python
mit
bitly/pynsq,goller/pynsq,nsqio/pynsq,jonmorehouse/pynsq,protoss-player/pynsq,jehiah/pynsq,mreiferson/pynsq,protoss-player/pynsq,virtuald/pynsq,mreiferson/pynsq,bitly/pynsq,jonmorehouse/pynsq,virtuald/pynsq
from setuptools import setup from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errno...
from setuptools import setup from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errno...
<commit_before>from setuptools import setup from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytes...
from setuptools import setup from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errno...
from setuptools import setup from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errno...
<commit_before>from setuptools import setup from setuptools.command.test import test as TestCommand import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytes...
ed0e0db19c8bf14d5e58507234ad16497df7e79e
setup.py
setup.py
#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='ego.io', author='openego development group', description='ego input/output repository', packages=find_packages() )
#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='egoio', author='openego development group', description='ego input/output repository', packages=find_packages() )
Change name to make import feasible
Change name to make import feasible
Python
agpl-3.0
openego/ego.io,openego/ego.io
#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='ego.io', author='openego development group', description='ego input/output repository', packages=find_packages() )Change name to make import feasible
#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='egoio', author='openego development group', description='ego input/output repository', packages=find_packages() )
<commit_before>#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='ego.io', author='openego development group', description='ego input/output repository', packages=find_packages() )<commit_msg>Change name to make import feasible<commit_after>
#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='egoio', author='openego development group', description='ego input/output repository', packages=find_packages() )
#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='ego.io', author='openego development group', description='ego input/output repository', packages=find_packages() )Change name to make import feasible#! /usr/bin/env python # coding: utf-8 from setupt...
<commit_before>#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='ego.io', author='openego development group', description='ego input/output repository', packages=find_packages() )<commit_msg>Change name to make import feasible<commit_after>#! /usr/bi...
6461a9205fa7bdafadba6e23129f3989a07c7683
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['magento'] requires = [] setup( name='python-magento', version='0.2.1', author='Vikram Oberoi', author_email='voberoi@gmail.com', packages=['magento'], install_requires=requires, entr...
try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['magento'] requires = [] setup( name='python-magento', version='0.2.1', author='Vikram Oberoi', author_email='voberoi@gmail.com', packages=['magento'], install_requires=requires, entr...
Change license info to show name of license, not license text.
Change license info to show name of license, not license text.
Python
mit
Floship/python-magento,DanielOaks/python-magento,voberoi/python-magento,bernieke/python-magento
try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['magento'] requires = [] setup( name='python-magento', version='0.2.1', author='Vikram Oberoi', author_email='voberoi@gmail.com', packages=['magento'], install_requires=requires, entr...
try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['magento'] requires = [] setup( name='python-magento', version='0.2.1', author='Vikram Oberoi', author_email='voberoi@gmail.com', packages=['magento'], install_requires=requires, entr...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['magento'] requires = [] setup( name='python-magento', version='0.2.1', author='Vikram Oberoi', author_email='voberoi@gmail.com', packages=['magento'], install_requires=req...
try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['magento'] requires = [] setup( name='python-magento', version='0.2.1', author='Vikram Oberoi', author_email='voberoi@gmail.com', packages=['magento'], install_requires=requires, entr...
try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['magento'] requires = [] setup( name='python-magento', version='0.2.1', author='Vikram Oberoi', author_email='voberoi@gmail.com', packages=['magento'], install_requires=requires, entr...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['magento'] requires = [] setup( name='python-magento', version='0.2.1', author='Vikram Oberoi', author_email='voberoi@gmail.com', packages=['magento'], install_requires=req...
0d0201bc4f6c5164effd755300b98b8f86f1c541
setup.py
setup.py
from setuptools import setup from os import path current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, 'README.md'), 'r') as f: long_description = f.read() with open(path.join(current_dir, 'requirements.txt'), 'r') as f: install_requires = f.read().split('\n') setup( name=...
from setuptools import setup from os import path current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, 'README.md'), 'r') as f: long_description = f.read() with open(path.join(current_dir, 'requirements.txt'), 'r') as f: install_requires = f.read().split('\n') setup( name=...
Deal with GPys numpy dependency
Deal with GPys numpy dependency
Python
mit
befelix/SafeOpt,befelix/SafeOpt
from setuptools import setup from os import path current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, 'README.md'), 'r') as f: long_description = f.read() with open(path.join(current_dir, 'requirements.txt'), 'r') as f: install_requires = f.read().split('\n') setup( name=...
from setuptools import setup from os import path current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, 'README.md'), 'r') as f: long_description = f.read() with open(path.join(current_dir, 'requirements.txt'), 'r') as f: install_requires = f.read().split('\n') setup( name=...
<commit_before>from setuptools import setup from os import path current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, 'README.md'), 'r') as f: long_description = f.read() with open(path.join(current_dir, 'requirements.txt'), 'r') as f: install_requires = f.read().split('\n') s...
from setuptools import setup from os import path current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, 'README.md'), 'r') as f: long_description = f.read() with open(path.join(current_dir, 'requirements.txt'), 'r') as f: install_requires = f.read().split('\n') setup( name=...
from setuptools import setup from os import path current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, 'README.md'), 'r') as f: long_description = f.read() with open(path.join(current_dir, 'requirements.txt'), 'r') as f: install_requires = f.read().split('\n') setup( name=...
<commit_before>from setuptools import setup from os import path current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, 'README.md'), 'r') as f: long_description = f.read() with open(path.join(current_dir, 'requirements.txt'), 'r') as f: install_requires = f.read().split('\n') s...
ba4fe093399aa94ccfbf6d4b287f3230851df3fd
setup.py
setup.py
from setuptools import setup, find_packages setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A Django application to implent password policies.', long_description="""\ django-password-policies is an application for the Django framework that provi...
from setuptools import setup, find_packages setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A Django application to implent password policies.', long_description="""\ django-password-policies is an application for the Django framework that provi...
Remove upper limit on Django version
Remove upper limit on Django version
Python
bsd-3-clause
mjschultz/django-password-policies,tarak/django-password-policies,mjschultz/django-password-policies,tarak/django-password-policies
from setuptools import setup, find_packages setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A Django application to implent password policies.', long_description="""\ django-password-policies is an application for the Django framework that provi...
from setuptools import setup, find_packages setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A Django application to implent password policies.', long_description="""\ django-password-policies is an application for the Django framework that provi...
<commit_before>from setuptools import setup, find_packages setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A Django application to implent password policies.', long_description="""\ django-password-policies is an application for the Django frame...
from setuptools import setup, find_packages setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A Django application to implent password policies.', long_description="""\ django-password-policies is an application for the Django framework that provi...
from setuptools import setup, find_packages setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A Django application to implent password policies.', long_description="""\ django-password-policies is an application for the Django framework that provi...
<commit_before>from setuptools import setup, find_packages setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A Django application to implent password policies.', long_description="""\ django-password-policies is an application for the Django frame...
3dc525e109d5de1aacaf21c8ea1cdc1b627e206d
setup.py
setup.py
from distutils.core import setup long_description = open('README.rst').read() setup( name = 'lcboapi', packages = ['lcboapi'], version = '0.1.3', description = 'Python wrapper for the unofficial LCBO API', long_description = long_description, author = 'Shane Martin', author_email = 'dev.sh@nemart.in', ...
from distutils.core import setup long_description = open('README.rst').read() setup( name = 'lcboapi', packages = ['lcboapi'], version = '0.1.3', description = 'Python wrapper for the unofficial LCBO API', long_description = long_description, author = 'Shane Martin', author_email = 'dev.sh@nemart.in', ...
Remove package requirements (for testing only); add download URL
Remove package requirements (for testing only); add download URL
Python
mit
shamrt/LCBOAPI
from distutils.core import setup long_description = open('README.rst').read() setup( name = 'lcboapi', packages = ['lcboapi'], version = '0.1.3', description = 'Python wrapper for the unofficial LCBO API', long_description = long_description, author = 'Shane Martin', author_email = 'dev.sh@nemart.in', ...
from distutils.core import setup long_description = open('README.rst').read() setup( name = 'lcboapi', packages = ['lcboapi'], version = '0.1.3', description = 'Python wrapper for the unofficial LCBO API', long_description = long_description, author = 'Shane Martin', author_email = 'dev.sh@nemart.in', ...
<commit_before>from distutils.core import setup long_description = open('README.rst').read() setup( name = 'lcboapi', packages = ['lcboapi'], version = '0.1.3', description = 'Python wrapper for the unofficial LCBO API', long_description = long_description, author = 'Shane Martin', author_email = 'dev.s...
from distutils.core import setup long_description = open('README.rst').read() setup( name = 'lcboapi', packages = ['lcboapi'], version = '0.1.3', description = 'Python wrapper for the unofficial LCBO API', long_description = long_description, author = 'Shane Martin', author_email = 'dev.sh@nemart.in', ...
from distutils.core import setup long_description = open('README.rst').read() setup( name = 'lcboapi', packages = ['lcboapi'], version = '0.1.3', description = 'Python wrapper for the unofficial LCBO API', long_description = long_description, author = 'Shane Martin', author_email = 'dev.sh@nemart.in', ...
<commit_before>from distutils.core import setup long_description = open('README.rst').read() setup( name = 'lcboapi', packages = ['lcboapi'], version = '0.1.3', description = 'Python wrapper for the unofficial LCBO API', long_description = long_description, author = 'Shane Martin', author_email = 'dev.s...
8da4e9015df3e0e8ca03c0261c05970294451421
setup.py
setup.py
# -*- coding: utf-8 -*- # # © 2014 Ian Eure # Author: Ian Eure # from setuptools import setup, find_packages setup(name="yar", version="0.0.2", packages=find_packages(), tests_require=['nose'], install_requires=["pyserial==2.7"], test_suite="nose.collector", entry_points = { ...
# -*- coding: utf-8 -*- # # © 2014 Ian Eure # Author: Ian Eure # from setuptools import setup, find_packages # Dumb bug https://groups.google.com/forum/#!msg/nose-users/fnJ-kAUbYHQ/ngz3qjdnrioJ import multiprocessing setup(name="yar", version="0.0.2", packages=find_packages(), tests_require=['nose']...
Work around a dumb nose bug
Work around a dumb nose bug
Python
bsd-3-clause
ieure/yar
# -*- coding: utf-8 -*- # # © 2014 Ian Eure # Author: Ian Eure # from setuptools import setup, find_packages setup(name="yar", version="0.0.2", packages=find_packages(), tests_require=['nose'], install_requires=["pyserial==2.7"], test_suite="nose.collector", entry_points = { ...
# -*- coding: utf-8 -*- # # © 2014 Ian Eure # Author: Ian Eure # from setuptools import setup, find_packages # Dumb bug https://groups.google.com/forum/#!msg/nose-users/fnJ-kAUbYHQ/ngz3qjdnrioJ import multiprocessing setup(name="yar", version="0.0.2", packages=find_packages(), tests_require=['nose']...
<commit_before># -*- coding: utf-8 -*- # # © 2014 Ian Eure # Author: Ian Eure # from setuptools import setup, find_packages setup(name="yar", version="0.0.2", packages=find_packages(), tests_require=['nose'], install_requires=["pyserial==2.7"], test_suite="nose.collector", entry_po...
# -*- coding: utf-8 -*- # # © 2014 Ian Eure # Author: Ian Eure # from setuptools import setup, find_packages # Dumb bug https://groups.google.com/forum/#!msg/nose-users/fnJ-kAUbYHQ/ngz3qjdnrioJ import multiprocessing setup(name="yar", version="0.0.2", packages=find_packages(), tests_require=['nose']...
# -*- coding: utf-8 -*- # # © 2014 Ian Eure # Author: Ian Eure # from setuptools import setup, find_packages setup(name="yar", version="0.0.2", packages=find_packages(), tests_require=['nose'], install_requires=["pyserial==2.7"], test_suite="nose.collector", entry_points = { ...
<commit_before># -*- coding: utf-8 -*- # # © 2014 Ian Eure # Author: Ian Eure # from setuptools import setup, find_packages setup(name="yar", version="0.0.2", packages=find_packages(), tests_require=['nose'], install_requires=["pyserial==2.7"], test_suite="nose.collector", entry_po...
59a08fff34f095f601ced76cd7b2e27665824146
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup setup(name='webracer', version='0.2.0', description='Comprehensive web application testing library', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/webracer', packages=['webracer', 'webracer.utils'], ...
#!/usr/bin/env python from distutils.core import setup import os.path PACKAGE = "webracer" setup(name=PACKAGE, version='0.2.0', description='Comprehensive web application testing library', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/webracer', packages=['...
Put license and readme into share/doc/webracer rather than installation root
Put license and readme into share/doc/webracer rather than installation root
Python
bsd-2-clause
p/webracer
#!/usr/bin/env python from distutils.core import setup setup(name='webracer', version='0.2.0', description='Comprehensive web application testing library', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/webracer', packages=['webracer', 'webracer.utils'], ...
#!/usr/bin/env python from distutils.core import setup import os.path PACKAGE = "webracer" setup(name=PACKAGE, version='0.2.0', description='Comprehensive web application testing library', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/webracer', packages=['...
<commit_before>#!/usr/bin/env python from distutils.core import setup setup(name='webracer', version='0.2.0', description='Comprehensive web application testing library', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/webracer', packages=['webracer', 'webrace...
#!/usr/bin/env python from distutils.core import setup import os.path PACKAGE = "webracer" setup(name=PACKAGE, version='0.2.0', description='Comprehensive web application testing library', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/webracer', packages=['...
#!/usr/bin/env python from distutils.core import setup setup(name='webracer', version='0.2.0', description='Comprehensive web application testing library', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/webracer', packages=['webracer', 'webracer.utils'], ...
<commit_before>#!/usr/bin/env python from distutils.core import setup setup(name='webracer', version='0.2.0', description='Comprehensive web application testing library', author='Oleg Pudeyev', author_email='oleg@bsdpower.com', url='http://github.com/p/webracer', packages=['webracer', 'webrace...
f823467e4ead01c774c0c8c177d23b0b89b2d5b0
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='anymarkup-core', version='0.6.2', description='Core library for anymarkup', long_description=''.join(open('README.rst').readlines()), keywords='xml, yaml, json, ini', author='Slavek Kabrda',...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='anymarkup-core', version='0.6.2', description='Core library for anymarkup', long_description=''.join(open('README.rst').readlines()), keywords='xml, yaml, toml, json, json5, ini', author='Sl...
Add json5 and toml to supported formats, add Python 3.5 to supported Python versions
Add json5 and toml to supported formats, add Python 3.5 to supported Python versions
Python
bsd-3-clause
bkabrda/anymarkup-core
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='anymarkup-core', version='0.6.2', description='Core library for anymarkup', long_description=''.join(open('README.rst').readlines()), keywords='xml, yaml, json, ini', author='Slavek Kabrda',...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='anymarkup-core', version='0.6.2', description='Core library for anymarkup', long_description=''.join(open('README.rst').readlines()), keywords='xml, yaml, toml, json, json5, ini', author='Sl...
<commit_before>#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='anymarkup-core', version='0.6.2', description='Core library for anymarkup', long_description=''.join(open('README.rst').readlines()), keywords='xml, yaml, json, ini', author='...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='anymarkup-core', version='0.6.2', description='Core library for anymarkup', long_description=''.join(open('README.rst').readlines()), keywords='xml, yaml, toml, json, json5, ini', author='Sl...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='anymarkup-core', version='0.6.2', description='Core library for anymarkup', long_description=''.join(open('README.rst').readlines()), keywords='xml, yaml, json, ini', author='Slavek Kabrda',...
<commit_before>#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='anymarkup-core', version='0.6.2', description='Core library for anymarkup', long_description=''.join(open('README.rst').readlines()), keywords='xml, yaml, json, ini', author='...
5fa6b78a9f0ac668d0ad8a0544bbe9f0784a5a19
setup.py
setup.py
from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description = open("README")...
from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description = open("README")...
Update the URL for the move.
Update the URL for the move.
Python
bsd-3-clause
alex/django-templatetag-sugar,IRI-Research/django-templatetag-sugar
from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description = open("README")...
from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description = open("README")...
<commit_before>from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description =...
from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description = open("README")...
from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description = open("README")...
<commit_before>from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description =...
2dd974791de682fe80d7da98e81add9addd1033b
setup.py
setup.py
from setuptools import setup, find_packages setup( name='panoptescli', version='1.0.2', url='https://github.com/zooniverse/panoptes-cli', author='Adam McMaster', author_email='adam@zooniverse.org', description=( 'A command-line client for Panoptes, the API behind the Zooniverse' ), ...
from setuptools import setup, find_packages setup( name='panoptescli', version='1.0.2', url='https://github.com/zooniverse/panoptes-cli', author='Adam McMaster', author_email='adam@zooniverse.org', description=( 'A command-line client for Panoptes, the API behind the Zooniverse' ), ...
Update pyyaml requirement from <4.2,>=3.12 to >=3.12,<5.2
Update pyyaml requirement from <4.2,>=3.12 to >=3.12,<5.2 Updates the requirements on [pyyaml](https://github.com/yaml/pyyaml) to permit the latest version. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](https://github.com/yaml/p...
Python
apache-2.0
zooniverse/panoptes-cli
from setuptools import setup, find_packages setup( name='panoptescli', version='1.0.2', url='https://github.com/zooniverse/panoptes-cli', author='Adam McMaster', author_email='adam@zooniverse.org', description=( 'A command-line client for Panoptes, the API behind the Zooniverse' ), ...
from setuptools import setup, find_packages setup( name='panoptescli', version='1.0.2', url='https://github.com/zooniverse/panoptes-cli', author='Adam McMaster', author_email='adam@zooniverse.org', description=( 'A command-line client for Panoptes, the API behind the Zooniverse' ), ...
<commit_before>from setuptools import setup, find_packages setup( name='panoptescli', version='1.0.2', url='https://github.com/zooniverse/panoptes-cli', author='Adam McMaster', author_email='adam@zooniverse.org', description=( 'A command-line client for Panoptes, the API behind the Zoon...
from setuptools import setup, find_packages setup( name='panoptescli', version='1.0.2', url='https://github.com/zooniverse/panoptes-cli', author='Adam McMaster', author_email='adam@zooniverse.org', description=( 'A command-line client for Panoptes, the API behind the Zooniverse' ), ...
from setuptools import setup, find_packages setup( name='panoptescli', version='1.0.2', url='https://github.com/zooniverse/panoptes-cli', author='Adam McMaster', author_email='adam@zooniverse.org', description=( 'A command-line client for Panoptes, the API behind the Zooniverse' ), ...
<commit_before>from setuptools import setup, find_packages setup( name='panoptescli', version='1.0.2', url='https://github.com/zooniverse/panoptes-cli', author='Adam McMaster', author_email='adam@zooniverse.org', description=( 'A command-line client for Panoptes, the API behind the Zoon...
0d5beefe5a03754d540abb7710ccb4415b9abedf
setup.py
setup.py
from setuptools import setup, find_packages DESCRIPTION = "FFXI Linkshell Community Scraper" with open('README.md') as f: LONG_DESCRIPTION = f.read() with open('requirements.txt') as f: required = f.read().splitlines() VERSION = '0.1.10' CLASSIFIERS = [ 'Intended Audience :: Developers', 'License :...
from setuptools import setup, find_packages DESCRIPTION = "FFXI Linkshell Community Scraper" with open('README.md') as f: LONG_DESCRIPTION = f.read() with open('requirements.txt') as f: required = f.read().splitlines() VERSION = '0.1.11' CLASSIFIERS = [ 'Intended Audience :: Developers', 'License :...
Set a timeout of 5 seconds
Set a timeout of 5 seconds
Python
mit
scragg0x/FFXI-Scraper
from setuptools import setup, find_packages DESCRIPTION = "FFXI Linkshell Community Scraper" with open('README.md') as f: LONG_DESCRIPTION = f.read() with open('requirements.txt') as f: required = f.read().splitlines() VERSION = '0.1.10' CLASSIFIERS = [ 'Intended Audience :: Developers', 'License :...
from setuptools import setup, find_packages DESCRIPTION = "FFXI Linkshell Community Scraper" with open('README.md') as f: LONG_DESCRIPTION = f.read() with open('requirements.txt') as f: required = f.read().splitlines() VERSION = '0.1.11' CLASSIFIERS = [ 'Intended Audience :: Developers', 'License :...
<commit_before>from setuptools import setup, find_packages DESCRIPTION = "FFXI Linkshell Community Scraper" with open('README.md') as f: LONG_DESCRIPTION = f.read() with open('requirements.txt') as f: required = f.read().splitlines() VERSION = '0.1.10' CLASSIFIERS = [ 'Intended Audience :: Developers',...
from setuptools import setup, find_packages DESCRIPTION = "FFXI Linkshell Community Scraper" with open('README.md') as f: LONG_DESCRIPTION = f.read() with open('requirements.txt') as f: required = f.read().splitlines() VERSION = '0.1.11' CLASSIFIERS = [ 'Intended Audience :: Developers', 'License :...
from setuptools import setup, find_packages DESCRIPTION = "FFXI Linkshell Community Scraper" with open('README.md') as f: LONG_DESCRIPTION = f.read() with open('requirements.txt') as f: required = f.read().splitlines() VERSION = '0.1.10' CLASSIFIERS = [ 'Intended Audience :: Developers', 'License :...
<commit_before>from setuptools import setup, find_packages DESCRIPTION = "FFXI Linkshell Community Scraper" with open('README.md') as f: LONG_DESCRIPTION = f.read() with open('requirements.txt') as f: required = f.read().splitlines() VERSION = '0.1.10' CLASSIFIERS = [ 'Intended Audience :: Developers',...
0370554fccdd5a2f6d6fefe86e82ba3a4857ecbb
setup.py
setup.py
from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name="elyzer", entry_points={ 'console_s...
from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name="elyzer", entry_points={ 'console_s...
Revert dependencies for ES client
Revert dependencies for ES client
Python
apache-2.0
o19s/elyzer
from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name="elyzer", entry_points={ 'console_s...
from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name="elyzer", entry_points={ 'console_s...
<commit_before>from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name="elyzer", entry_points={ ...
from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name="elyzer", entry_points={ 'console_s...
from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name="elyzer", entry_points={ 'console_s...
<commit_before>from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name="elyzer", entry_points={ ...
fbb675f33933c2dd06f9853b042aea9613a0d602
setup.py
setup.py
import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) setup(name="van.contactology", version=...
import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) README = open(os.path.join(_here, 'README.txt...
Add contact information and readme in long description.
Add contact information and readme in long description.
Python
bsd-3-clause
jinty/van.contactology
import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) setup(name="van.contactology", version=...
import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) README = open(os.path.join(_here, 'README.txt...
<commit_before>import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) setup(name="van.contactology",...
import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) README = open(os.path.join(_here, 'README.txt...
import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) setup(name="van.contactology", version=...
<commit_before>import os import re from setuptools import setup, find_packages _here = os.path.dirname(__file__) _init = os.path.join(_here, 'van', 'contactology', '__init__.py') _init = open(_init, 'r').read() VERSION = re.search(r'^__version__ = "(.*)"', _init, re.MULTILINE).group(1) setup(name="van.contactology",...
d19472be5e3a920c41c33b52a4a43078cedcc26b
setup.py
setup.py
import os import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open return codecs.open(os.path.join(here, *parts), 'r').read() setup( name='repex', version="1.0.0", url='https://github.c...
import os import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open return codecs.open(os.path.join(here, *parts), 'r').read() setup( name='repex', version="1.0.0", url='https://github.c...
Update classifiers to show off supported python versions
Update classifiers to show off supported python versions
Python
apache-2.0
cloudify-cosmo/repex
import os import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open return codecs.open(os.path.join(here, *parts), 'r').read() setup( name='repex', version="1.0.0", url='https://github.c...
import os import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open return codecs.open(os.path.join(here, *parts), 'r').read() setup( name='repex', version="1.0.0", url='https://github.c...
<commit_before>import os import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open return codecs.open(os.path.join(here, *parts), 'r').read() setup( name='repex', version="1.0.0", url='h...
import os import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open return codecs.open(os.path.join(here, *parts), 'r').read() setup( name='repex', version="1.0.0", url='https://github.c...
import os import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open return codecs.open(os.path.join(here, *parts), 'r').read() setup( name='repex', version="1.0.0", url='https://github.c...
<commit_before>import os import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open return codecs.open(os.path.join(here, *parts), 'r').read() setup( name='repex', version="1.0.0", url='h...
fdb4a9acdc6f3df9912f76fa170508a71b35a2db
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', 'requests>=2.0.1', 'BeautifulSoup>=3.2.1', ] setup( name='sentry-youtrack', versio...
#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', ] setup( name='sentry-youtrack', version=VERSION, author='Adam Bogdal', author_ema...
Remove dependencies that Sentry has
Remove dependencies that Sentry has
Python
bsd-2-clause
bogdal/sentry-youtrack,bogdal/sentry-youtrack,bogdal/sentry-youtrack,bogdal/sentry-youtrack
#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', 'requests>=2.0.1', 'BeautifulSoup>=3.2.1', ] setup( name='sentry-youtrack', versio...
#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', ] setup( name='sentry-youtrack', version=VERSION, author='Adam Bogdal', author_ema...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', 'requests>=2.0.1', 'BeautifulSoup>=3.2.1', ] setup( name='sentry-youtra...
#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', ] setup( name='sentry-youtrack', version=VERSION, author='Adam Bogdal', author_ema...
#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', 'requests>=2.0.1', 'BeautifulSoup>=3.2.1', ] setup( name='sentry-youtrack', versio...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', 'requests>=2.0.1', 'BeautifulSoup>=3.2.1', ] setup( name='sentry-youtra...
1ca70dee87fbcbbbd6c267013c7be5f39999a6d9
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except: from distutils.core import setup long_description = "" with open('README.rst') as f: long_description = f.read() setup( name='ImageHash', version='4.2.1', author='Johannes Buchner', author_email='buchn...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except: from distutils.core import setup long_description = "" with open('README.rst') as f: long_description = f.read() setup( name='ImageHash', version='4.2.1', author='Johannes Buchner', author_email='buchn...
Use official OSI name in the license metadata
Use official OSI name in the license metadata This makes it easier for automatic license checkers to verify the license of this package. The license file is included in MANIFEST.in as is standard practice.
Python
bsd-2-clause
JohannesBuchner/imagehash,JohannesBuchner/imagehash
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except: from distutils.core import setup long_description = "" with open('README.rst') as f: long_description = f.read() setup( name='ImageHash', version='4.2.1', author='Johannes Buchner', author_email='buchn...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except: from distutils.core import setup long_description = "" with open('README.rst') as f: long_description = f.read() setup( name='ImageHash', version='4.2.1', author='Johannes Buchner', author_email='buchn...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except: from distutils.core import setup long_description = "" with open('README.rst') as f: long_description = f.read() setup( name='ImageHash', version='4.2.1', author='Johannes Buchner', auth...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except: from distutils.core import setup long_description = "" with open('README.rst') as f: long_description = f.read() setup( name='ImageHash', version='4.2.1', author='Johannes Buchner', author_email='buchn...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except: from distutils.core import setup long_description = "" with open('README.rst') as f: long_description = f.read() setup( name='ImageHash', version='4.2.1', author='Johannes Buchner', author_email='buchn...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except: from distutils.core import setup long_description = "" with open('README.rst') as f: long_description = f.read() setup( name='ImageHash', version='4.2.1', author='Johannes Buchner', auth...
85ccd327d085bc7822b53e9eec952cdbbf9caa12
setup.py
setup.py
from setuptools import setup, find_packages version = '0.3.2' setup( name='django-tagging-ext', version=version, description="Adds in new features to supplement django-tagging", long_description=open("README.rst").read(), classifiers=[ "Development Status :: 4 - Beta", "Programming...
from setuptools import setup, find_packages version = '0.3.2' setup( name='django-tagging-ext', version=version, description="Adds in new features to supplement django-tagging", long_description=open("README.rst").read(), classifiers=[ "Development Status :: 4 - Beta", "Programming...
Include data in release package
Include data in release package Closes #3
Python
mit
pydanny/django-tagging-ext
from setuptools import setup, find_packages version = '0.3.2' setup( name='django-tagging-ext', version=version, description="Adds in new features to supplement django-tagging", long_description=open("README.rst").read(), classifiers=[ "Development Status :: 4 - Beta", "Programming...
from setuptools import setup, find_packages version = '0.3.2' setup( name='django-tagging-ext', version=version, description="Adds in new features to supplement django-tagging", long_description=open("README.rst").read(), classifiers=[ "Development Status :: 4 - Beta", "Programming...
<commit_before>from setuptools import setup, find_packages version = '0.3.2' setup( name='django-tagging-ext', version=version, description="Adds in new features to supplement django-tagging", long_description=open("README.rst").read(), classifiers=[ "Development Status :: 4 - Beta", ...
from setuptools import setup, find_packages version = '0.3.2' setup( name='django-tagging-ext', version=version, description="Adds in new features to supplement django-tagging", long_description=open("README.rst").read(), classifiers=[ "Development Status :: 4 - Beta", "Programming...
from setuptools import setup, find_packages version = '0.3.2' setup( name='django-tagging-ext', version=version, description="Adds in new features to supplement django-tagging", long_description=open("README.rst").read(), classifiers=[ "Development Status :: 4 - Beta", "Programming...
<commit_before>from setuptools import setup, find_packages version = '0.3.2' setup( name='django-tagging-ext', version=version, description="Adds in new features to supplement django-tagging", long_description=open("README.rst").read(), classifiers=[ "Development Status :: 4 - Beta", ...
7fbaf4f8b6a2a034f3fcac3e70c19712ecc77de4
setup.py
setup.py
import os.path from setuptools import setup, find_packages def readme(): path = os.path.join(os.path.dirname(__file__), 'README.rst') return open(path, 'r').read() setup( name="txTwitter", version="0.1.1a", url='https://github.com/jerith/txTwitter', license='MIT', description="A Twisted...
import os.path from setuptools import setup, find_packages def readme(): path = os.path.join(os.path.dirname(__file__), 'README.rst') return open(path, 'r').read() setup( name="txTwitter", version="0.1.1a", url='https://github.com/jerith/txTwitter', license='MIT', description="A Twisted...
Update Twisted requirement to add a minimum version.
Update Twisted requirement to add a minimum version.
Python
mit
jerith/txTwitter
import os.path from setuptools import setup, find_packages def readme(): path = os.path.join(os.path.dirname(__file__), 'README.rst') return open(path, 'r').read() setup( name="txTwitter", version="0.1.1a", url='https://github.com/jerith/txTwitter', license='MIT', description="A Twisted...
import os.path from setuptools import setup, find_packages def readme(): path = os.path.join(os.path.dirname(__file__), 'README.rst') return open(path, 'r').read() setup( name="txTwitter", version="0.1.1a", url='https://github.com/jerith/txTwitter', license='MIT', description="A Twisted...
<commit_before>import os.path from setuptools import setup, find_packages def readme(): path = os.path.join(os.path.dirname(__file__), 'README.rst') return open(path, 'r').read() setup( name="txTwitter", version="0.1.1a", url='https://github.com/jerith/txTwitter', license='MIT', descrip...
import os.path from setuptools import setup, find_packages def readme(): path = os.path.join(os.path.dirname(__file__), 'README.rst') return open(path, 'r').read() setup( name="txTwitter", version="0.1.1a", url='https://github.com/jerith/txTwitter', license='MIT', description="A Twisted...
import os.path from setuptools import setup, find_packages def readme(): path = os.path.join(os.path.dirname(__file__), 'README.rst') return open(path, 'r').read() setup( name="txTwitter", version="0.1.1a", url='https://github.com/jerith/txTwitter', license='MIT', description="A Twisted...
<commit_before>import os.path from setuptools import setup, find_packages def readme(): path = os.path.join(os.path.dirname(__file__), 'README.rst') return open(path, 'r').read() setup( name="txTwitter", version="0.1.1a", url='https://github.com/jerith/txTwitter', license='MIT', descrip...
985df357ec039bcb28f6f260e64e9838204506f6
tasks.py
tasks.py
from os import mkdir from os.path import join from shutil import rmtree, copytree from invoke import Collection, ctask as task from invocations.docs import docs, www from invocations.packaging import publish # Until we move to spec-based testing @task def test(ctx, coverage=False): runner = "python" if cover...
from os import mkdir from os.path import join from shutil import rmtree, copytree from invoke import Collection, ctask as task from invocations.docs import docs, www from invocations.packaging import publish # Until we move to spec-based testing @task def test(ctx, coverage=False): runner = "python" if cover...
Fix dumb bug in release task
Fix dumb bug in release task
Python
lgpl-2.1
reaperhulk/paramiko,jaraco/paramiko,mirrorcoder/paramiko,dorianpula/paramiko,paramiko/paramiko,redixin/paramiko,SebastianDeiss/paramiko,ameily/paramiko
from os import mkdir from os.path import join from shutil import rmtree, copytree from invoke import Collection, ctask as task from invocations.docs import docs, www from invocations.packaging import publish # Until we move to spec-based testing @task def test(ctx, coverage=False): runner = "python" if cover...
from os import mkdir from os.path import join from shutil import rmtree, copytree from invoke import Collection, ctask as task from invocations.docs import docs, www from invocations.packaging import publish # Until we move to spec-based testing @task def test(ctx, coverage=False): runner = "python" if cover...
<commit_before>from os import mkdir from os.path import join from shutil import rmtree, copytree from invoke import Collection, ctask as task from invocations.docs import docs, www from invocations.packaging import publish # Until we move to spec-based testing @task def test(ctx, coverage=False): runner = "pytho...
from os import mkdir from os.path import join from shutil import rmtree, copytree from invoke import Collection, ctask as task from invocations.docs import docs, www from invocations.packaging import publish # Until we move to spec-based testing @task def test(ctx, coverage=False): runner = "python" if cover...
from os import mkdir from os.path import join from shutil import rmtree, copytree from invoke import Collection, ctask as task from invocations.docs import docs, www from invocations.packaging import publish # Until we move to spec-based testing @task def test(ctx, coverage=False): runner = "python" if cover...
<commit_before>from os import mkdir from os.path import join from shutil import rmtree, copytree from invoke import Collection, ctask as task from invocations.docs import docs, www from invocations.packaging import publish # Until we move to spec-based testing @task def test(ctx, coverage=False): runner = "pytho...
3d09d6e5a8717c4dee9422b9d84a66319a9bdc01
tests.py
tests.py
import json import unittest from pyunio import pyunio import urllib pyunio.use('httpbin') params_get = { 'params': { 'name': 'James Bond' } } params_body = { 'body': { 'name': 'James Bond' } ...
import json import unittest import sys if sys.version_info[0] == 2: from urllib import urlencode else: from urllib.parse import urlencode from pyunio import pyunio pyunio.use('httpbin') params_get = { 'params': { 'name': 'James Bond' } } params...
Fix unittest failure in python 3.x.
Fix unittest failure in python 3.x.
Python
mit
citruspi/PyUnio
import json import unittest from pyunio import pyunio import urllib pyunio.use('httpbin') params_get = { 'params': { 'name': 'James Bond' } } params_body = { 'body': { 'name': 'James Bond' } ...
import json import unittest import sys if sys.version_info[0] == 2: from urllib import urlencode else: from urllib.parse import urlencode from pyunio import pyunio pyunio.use('httpbin') params_get = { 'params': { 'name': 'James Bond' } } params...
<commit_before>import json import unittest from pyunio import pyunio import urllib pyunio.use('httpbin') params_get = { 'params': { 'name': 'James Bond' } } params_body = { 'body': { 'name': 'James Bond' ...
import json import unittest import sys if sys.version_info[0] == 2: from urllib import urlencode else: from urllib.parse import urlencode from pyunio import pyunio pyunio.use('httpbin') params_get = { 'params': { 'name': 'James Bond' } } params...
import json import unittest from pyunio import pyunio import urllib pyunio.use('httpbin') params_get = { 'params': { 'name': 'James Bond' } } params_body = { 'body': { 'name': 'James Bond' } ...
<commit_before>import json import unittest from pyunio import pyunio import urllib pyunio.use('httpbin') params_get = { 'params': { 'name': 'James Bond' } } params_body = { 'body': { 'name': 'James Bond' ...
d8d18b50c88e5099942cdb1545863585a8f141a6
top40.py
top40.py
#/usr/bin/env python # -*- coding: utf-8 -*- import click import requests import requests_cache # Cache the API calls and expire after 12 hours requests_cache.install_cache(expire_after=43200) url = 'http://ben-major.co.uk/labs/top40/api/singles/' @click.command() @click.option('--count', default=10, help='...
#/usr/bin/env python # -*- coding: utf-8 -*- import click import requests import requests_cache # Cache the API calls and expire after 12 hours requests_cache.install_cache(expire_after=43200) url = 'http://ben-major.co.uk/labs/top40/api/singles/' @click.command() @click.option('--count', type=click.IntRange(1,...
Implement range of possible values with clamping if values are outside range
Implement range of possible values with clamping if values are outside range
Python
mit
kevgathuku/top40,andela-kndungu/top40
#/usr/bin/env python # -*- coding: utf-8 -*- import click import requests import requests_cache # Cache the API calls and expire after 12 hours requests_cache.install_cache(expire_after=43200) url = 'http://ben-major.co.uk/labs/top40/api/singles/' @click.command() @click.option('--count', default=10, help='...
#/usr/bin/env python # -*- coding: utf-8 -*- import click import requests import requests_cache # Cache the API calls and expire after 12 hours requests_cache.install_cache(expire_after=43200) url = 'http://ben-major.co.uk/labs/top40/api/singles/' @click.command() @click.option('--count', type=click.IntRange(1,...
<commit_before>#/usr/bin/env python # -*- coding: utf-8 -*- import click import requests import requests_cache # Cache the API calls and expire after 12 hours requests_cache.install_cache(expire_after=43200) url = 'http://ben-major.co.uk/labs/top40/api/singles/' @click.command() @click.option('--count', default...
#/usr/bin/env python # -*- coding: utf-8 -*- import click import requests import requests_cache # Cache the API calls and expire after 12 hours requests_cache.install_cache(expire_after=43200) url = 'http://ben-major.co.uk/labs/top40/api/singles/' @click.command() @click.option('--count', type=click.IntRange(1,...
#/usr/bin/env python # -*- coding: utf-8 -*- import click import requests import requests_cache # Cache the API calls and expire after 12 hours requests_cache.install_cache(expire_after=43200) url = 'http://ben-major.co.uk/labs/top40/api/singles/' @click.command() @click.option('--count', default=10, help='...
<commit_before>#/usr/bin/env python # -*- coding: utf-8 -*- import click import requests import requests_cache # Cache the API calls and expire after 12 hours requests_cache.install_cache(expire_after=43200) url = 'http://ben-major.co.uk/labs/top40/api/singles/' @click.command() @click.option('--count', default...
b8906e596193bcdc22d5cdd6b4ce57347e262621
fancypages/defaults.py
fancypages/defaults.py
########## INSTALLED APPS FANCYPAGES_REQUIRED_APPS = ( 'rest_framework', 'model_utils', 'south', 'compressor', 'twitter_tag', 'sorl.thumbnail', ) FANCYPAGES_APPS = ( 'fancypages', 'fancypages.api', 'fancypages.assets', 'fancypages.dashboard', ) ########## END INSTALLED APPS ####...
########## FANCYPAGES SETTINGS FP_HOMEPAGE_NAME = 'Home' FP_DEFAULT_TEMPLATE = 'fancypages/pages/page.html' ########## END FANCYPAGES SETTINGS ########## TWITTER TAG SETTINGS TWITTER_OAUTH_TOKEN = '' TWITTER_OAUTH_SECRET = '' TWITTER_CONSUMER_KEY = '' TWITTER_CONSUMER_SECRET = '' ########## END TWITTER TAG SETTINGS
Clean up default FP settings
Clean up default FP settings
Python
bsd-3-clause
socradev/django-fancypages,tangentlabs/django-fancypages,socradev/django-fancypages,tangentlabs/django-fancypages,socradev/django-fancypages,tangentlabs/django-fancypages
########## INSTALLED APPS FANCYPAGES_REQUIRED_APPS = ( 'rest_framework', 'model_utils', 'south', 'compressor', 'twitter_tag', 'sorl.thumbnail', ) FANCYPAGES_APPS = ( 'fancypages', 'fancypages.api', 'fancypages.assets', 'fancypages.dashboard', ) ########## END INSTALLED APPS ####...
########## FANCYPAGES SETTINGS FP_HOMEPAGE_NAME = 'Home' FP_DEFAULT_TEMPLATE = 'fancypages/pages/page.html' ########## END FANCYPAGES SETTINGS ########## TWITTER TAG SETTINGS TWITTER_OAUTH_TOKEN = '' TWITTER_OAUTH_SECRET = '' TWITTER_CONSUMER_KEY = '' TWITTER_CONSUMER_SECRET = '' ########## END TWITTER TAG SETTINGS
<commit_before>########## INSTALLED APPS FANCYPAGES_REQUIRED_APPS = ( 'rest_framework', 'model_utils', 'south', 'compressor', 'twitter_tag', 'sorl.thumbnail', ) FANCYPAGES_APPS = ( 'fancypages', 'fancypages.api', 'fancypages.assets', 'fancypages.dashboard', ) ########## END INSTA...
########## FANCYPAGES SETTINGS FP_HOMEPAGE_NAME = 'Home' FP_DEFAULT_TEMPLATE = 'fancypages/pages/page.html' ########## END FANCYPAGES SETTINGS ########## TWITTER TAG SETTINGS TWITTER_OAUTH_TOKEN = '' TWITTER_OAUTH_SECRET = '' TWITTER_CONSUMER_KEY = '' TWITTER_CONSUMER_SECRET = '' ########## END TWITTER TAG SETTINGS
########## INSTALLED APPS FANCYPAGES_REQUIRED_APPS = ( 'rest_framework', 'model_utils', 'south', 'compressor', 'twitter_tag', 'sorl.thumbnail', ) FANCYPAGES_APPS = ( 'fancypages', 'fancypages.api', 'fancypages.assets', 'fancypages.dashboard', ) ########## END INSTALLED APPS ####...
<commit_before>########## INSTALLED APPS FANCYPAGES_REQUIRED_APPS = ( 'rest_framework', 'model_utils', 'south', 'compressor', 'twitter_tag', 'sorl.thumbnail', ) FANCYPAGES_APPS = ( 'fancypages', 'fancypages.api', 'fancypages.assets', 'fancypages.dashboard', ) ########## END INSTA...
d2b0aba3e13246193f37758e23f4d26b90552508
social_auth/middleware.py
social_auth/middleware.py
# -*- coding: utf-8 -*- from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from social_auth.backends.exceptions import AuthException class SocialAuthExceptionMiddleware(object): """Middleware that handles Social Auth AuthExceptions by providing the user ...
# -*- coding: utf-8 -*- from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from social_auth.backends.exceptions import AuthException class SocialAuthExceptionMiddleware(object): """Middleware that handles Social Auth AuthExceptions by providing the user ...
Correct access of backend name from AuthException
Correct access of backend name from AuthException
Python
bsd-3-clause
omab/django-social-auth,duoduo369/django-social-auth,MjAbuz/django-social-auth,beswarm/django-social-auth,getsentry/django-social-auth,omab/django-social-auth,lovehhf/django-social-auth,sk7/django-social-auth,WW-Digital/django-social-auth,qas612820704/django-social-auth,caktus/django-social-auth,gustavoam/django-social...
# -*- coding: utf-8 -*- from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from social_auth.backends.exceptions import AuthException class SocialAuthExceptionMiddleware(object): """Middleware that handles Social Auth AuthExceptions by providing the user ...
# -*- coding: utf-8 -*- from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from social_auth.backends.exceptions import AuthException class SocialAuthExceptionMiddleware(object): """Middleware that handles Social Auth AuthExceptions by providing the user ...
<commit_before># -*- coding: utf-8 -*- from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from social_auth.backends.exceptions import AuthException class SocialAuthExceptionMiddleware(object): """Middleware that handles Social Auth AuthExceptions by provi...
# -*- coding: utf-8 -*- from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from social_auth.backends.exceptions import AuthException class SocialAuthExceptionMiddleware(object): """Middleware that handles Social Auth AuthExceptions by providing the user ...
# -*- coding: utf-8 -*- from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from social_auth.backends.exceptions import AuthException class SocialAuthExceptionMiddleware(object): """Middleware that handles Social Auth AuthExceptions by providing the user ...
<commit_before># -*- coding: utf-8 -*- from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from social_auth.backends.exceptions import AuthException class SocialAuthExceptionMiddleware(object): """Middleware that handles Social Auth AuthExceptions by provi...
e608f1caad945e45a815d8ff37aa12bee41219ca
swf/__init__.py
swf/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 26) __title__ = "python-simple-workflow" __author__ = "Oleiade" __license__ = "MIT" __version__ = '.'.join(map(str, version))
#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 27) __title__ = "python-simple-workflow" __author__ = "Oleiade" __license__ = "MIT" __version__ = '.'.join(map(str, version))
Update : bump version 0.1.27
Update : bump version 0.1.27
Python
mit
botify-labs/python-simple-workflow,botify-labs/python-simple-workflow
#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 26) __title__ = "python-simple-workflow" __author__ = "Oleiade" __license__ = "MIT" __version__ = '.'.join(map(str, version)) Update : bump version 0.1.27
#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 27) __title__ = "python-simple-workflow" __author__ = "Oleiade" __license__ = "MIT" __version__ = '.'.join(map(str, version))
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 26) __title__ = "python-simple-workflow" __author__ = "Oleiade" __license__ = "MIT" __version__ = '.'.join(map(str, version)) <commit_msg>Update : bump version 0.1.27<commit_after>
#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 27) __title__ = "python-simple-workflow" __author__ = "Oleiade" __license__ = "MIT" __version__ = '.'.join(map(str, version))
#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 26) __title__ = "python-simple-workflow" __author__ = "Oleiade" __license__ = "MIT" __version__ = '.'.join(map(str, version)) Update : bump version 0.1.27#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 27) __title__ = "python-simple-work...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0, 1, 26) __title__ = "python-simple-workflow" __author__ = "Oleiade" __license__ = "MIT" __version__ = '.'.join(map(str, version)) <commit_msg>Update : bump version 0.1.27<commit_after>#!/usr/bin/env python # -*- coding: utf-8 -*- version = (0...
e6af345239f2778a2245d9f8be54bf754224aafd
tests/helper.py
tests/helper.py
def mock_api(path, file_path): from httmock import urlmatch, response @urlmatch(scheme = 'https', netloc = 'api.webpay.jp', path = '/v1' + path) def webpay_api_mock(url, request): from os import path import codecs dump = path.dirname(path.abspath(__file__)) + '/mock/' + file_path ...
def mock_api(path, file_path, query = None, data = None): from httmock import urlmatch, response import json @urlmatch(scheme = 'https', netloc = 'api.webpay.jp', path = '/v1' + path) def webpay_api_mock(url, request): assert query is None or url.query == query assert data is None or js...
Add assertion for query and data of request
Add assertion for query and data of request
Python
mit
yamaneko1212/webpay-python
def mock_api(path, file_path): from httmock import urlmatch, response @urlmatch(scheme = 'https', netloc = 'api.webpay.jp', path = '/v1' + path) def webpay_api_mock(url, request): from os import path import codecs dump = path.dirname(path.abspath(__file__)) + '/mock/' + file_path ...
def mock_api(path, file_path, query = None, data = None): from httmock import urlmatch, response import json @urlmatch(scheme = 'https', netloc = 'api.webpay.jp', path = '/v1' + path) def webpay_api_mock(url, request): assert query is None or url.query == query assert data is None or js...
<commit_before>def mock_api(path, file_path): from httmock import urlmatch, response @urlmatch(scheme = 'https', netloc = 'api.webpay.jp', path = '/v1' + path) def webpay_api_mock(url, request): from os import path import codecs dump = path.dirname(path.abspath(__file__)) + '/mock/' ...
def mock_api(path, file_path, query = None, data = None): from httmock import urlmatch, response import json @urlmatch(scheme = 'https', netloc = 'api.webpay.jp', path = '/v1' + path) def webpay_api_mock(url, request): assert query is None or url.query == query assert data is None or js...
def mock_api(path, file_path): from httmock import urlmatch, response @urlmatch(scheme = 'https', netloc = 'api.webpay.jp', path = '/v1' + path) def webpay_api_mock(url, request): from os import path import codecs dump = path.dirname(path.abspath(__file__)) + '/mock/' + file_path ...
<commit_before>def mock_api(path, file_path): from httmock import urlmatch, response @urlmatch(scheme = 'https', netloc = 'api.webpay.jp', path = '/v1' + path) def webpay_api_mock(url, request): from os import path import codecs dump = path.dirname(path.abspath(__file__)) + '/mock/' ...
05c4545c9165b7942a33956f055a320385fa5750
plugins/Tools/RotateTool/RotateToolHandle.py
plugins/Tools/RotateTool/RotateToolHandle.py
from UM.Scene.ToolHandle import ToolHandle from UM.Mesh.MeshData import MeshData from UM.Mesh.MeshBuilder import MeshBuilder from UM.Math.Vector import Vector class RotateToolHandle(ToolHandle): def __init__(self, parent = None): super().__init__(parent) mb = MeshBuilder() mb.addArc( ...
Implement proper rotation tool handles
Implement proper rotation tool handles
Python
agpl-3.0
onitake/Uranium,onitake/Uranium
Implement proper rotation tool handles
from UM.Scene.ToolHandle import ToolHandle from UM.Mesh.MeshData import MeshData from UM.Mesh.MeshBuilder import MeshBuilder from UM.Math.Vector import Vector class RotateToolHandle(ToolHandle): def __init__(self, parent = None): super().__init__(parent) mb = MeshBuilder() mb.addArc( ...
<commit_before> <commit_msg>Implement proper rotation tool handles<commit_after>
from UM.Scene.ToolHandle import ToolHandle from UM.Mesh.MeshData import MeshData from UM.Mesh.MeshBuilder import MeshBuilder from UM.Math.Vector import Vector class RotateToolHandle(ToolHandle): def __init__(self, parent = None): super().__init__(parent) mb = MeshBuilder() mb.addArc( ...
Implement proper rotation tool handlesfrom UM.Scene.ToolHandle import ToolHandle from UM.Mesh.MeshData import MeshData from UM.Mesh.MeshBuilder import MeshBuilder from UM.Math.Vector import Vector class RotateToolHandle(ToolHandle): def __init__(self, parent = None): super().__init__(parent) mb =...
<commit_before> <commit_msg>Implement proper rotation tool handles<commit_after>from UM.Scene.ToolHandle import ToolHandle from UM.Mesh.MeshData import MeshData from UM.Mesh.MeshBuilder import MeshBuilder from UM.Math.Vector import Vector class RotateToolHandle(ToolHandle): def __init__(self, parent = None): ...
3afee3ae9bc791b0b3ae084f4e53950ec1e32f48
apps/news/models.py
apps/news/models.py
from django.db import models from django.contrib.auth.models import User from thumbs import ImageWithThumbsField from apps.projects.models import Project class News(models.Model): title = models.CharField(max_length=200) summary = models.CharField(max_length=200, null=True, blank=True) body = models.TextF...
from datetime import datetime as dt from django.db import models from django.contrib.auth.models import User from thumbs import ImageWithThumbsField from apps.projects.models import Project class News(models.Model): class Meta: ordering = ('-date_and_time',) title = models.CharField(max_leng...
Change field name from datetime to date_and_time for avoid problems with datetime python's module
Change field name from datetime to date_and_time for avoid problems with datetime python's module
Python
mit
nsi-iff/nsi_site,nsi-iff/nsi_site,nsi-iff/nsi_site
from django.db import models from django.contrib.auth.models import User from thumbs import ImageWithThumbsField from apps.projects.models import Project class News(models.Model): title = models.CharField(max_length=200) summary = models.CharField(max_length=200, null=True, blank=True) body = models.TextF...
from datetime import datetime as dt from django.db import models from django.contrib.auth.models import User from thumbs import ImageWithThumbsField from apps.projects.models import Project class News(models.Model): class Meta: ordering = ('-date_and_time',) title = models.CharField(max_leng...
<commit_before>from django.db import models from django.contrib.auth.models import User from thumbs import ImageWithThumbsField from apps.projects.models import Project class News(models.Model): title = models.CharField(max_length=200) summary = models.CharField(max_length=200, null=True, blank=True) body...
from datetime import datetime as dt from django.db import models from django.contrib.auth.models import User from thumbs import ImageWithThumbsField from apps.projects.models import Project class News(models.Model): class Meta: ordering = ('-date_and_time',) title = models.CharField(max_leng...
from django.db import models from django.contrib.auth.models import User from thumbs import ImageWithThumbsField from apps.projects.models import Project class News(models.Model): title = models.CharField(max_length=200) summary = models.CharField(max_length=200, null=True, blank=True) body = models.TextF...
<commit_before>from django.db import models from django.contrib.auth.models import User from thumbs import ImageWithThumbsField from apps.projects.models import Project class News(models.Model): title = models.CharField(max_length=200) summary = models.CharField(max_length=200, null=True, blank=True) body...
0eb7e39c726ced0e802de925c7ce3b3ec35c61d9
src/billing/factories.py
src/billing/factories.py
import factory import random from billing.models import Billing, OrderBilling from member.factories import ClientFactory from order.factories import OrderFactory class BillingFactory(factory.DjangoModelFactory): class Meta: model = Billing client = factory.SubFactory(ClientFactory) total_amount...
import factory import random from billing.models import Billing, OrderBilling from member.factories import ClientFactory from order.factories import OrderFactory class BillingFactory(factory.DjangoModelFactory): class Meta: model = Billing client = factory.SubFactory(ClientFactory) total_amount...
Remove a BillingOrder factory class that wasn't use
Remove a BillingOrder factory class that wasn't use There was a problem with this class... but since I couldn't find code using it, I simply deleted it.
Python
agpl-3.0
savoirfairelinux/santropol-feast,madmath/sous-chef,savoirfairelinux/santropol-feast,savoirfairelinux/sous-chef,savoirfairelinux/sous-chef,madmath/sous-chef,savoirfairelinux/santropol-feast,madmath/sous-chef,savoirfairelinux/sous-chef
import factory import random from billing.models import Billing, OrderBilling from member.factories import ClientFactory from order.factories import OrderFactory class BillingFactory(factory.DjangoModelFactory): class Meta: model = Billing client = factory.SubFactory(ClientFactory) total_amount...
import factory import random from billing.models import Billing, OrderBilling from member.factories import ClientFactory from order.factories import OrderFactory class BillingFactory(factory.DjangoModelFactory): class Meta: model = Billing client = factory.SubFactory(ClientFactory) total_amount...
<commit_before>import factory import random from billing.models import Billing, OrderBilling from member.factories import ClientFactory from order.factories import OrderFactory class BillingFactory(factory.DjangoModelFactory): class Meta: model = Billing client = factory.SubFactory(ClientFactory) ...
import factory import random from billing.models import Billing, OrderBilling from member.factories import ClientFactory from order.factories import OrderFactory class BillingFactory(factory.DjangoModelFactory): class Meta: model = Billing client = factory.SubFactory(ClientFactory) total_amount...
import factory import random from billing.models import Billing, OrderBilling from member.factories import ClientFactory from order.factories import OrderFactory class BillingFactory(factory.DjangoModelFactory): class Meta: model = Billing client = factory.SubFactory(ClientFactory) total_amount...
<commit_before>import factory import random from billing.models import Billing, OrderBilling from member.factories import ClientFactory from order.factories import OrderFactory class BillingFactory(factory.DjangoModelFactory): class Meta: model = Billing client = factory.SubFactory(ClientFactory) ...
ce7e9b95a9faef242b66e9c551861986f311cdee
guardian/management/commands/clean_orphan_obj_perms.py
guardian/management/commands/clean_orphan_obj_perms.py
from __future__ import unicode_literals from django.core.management.base import NoArgsCommand from guardian.utils import clean_orphan_obj_perms class Command(NoArgsCommand): """ clean_orphan_obj_perms command is a tiny wrapper around :func:`guardian.utils.clean_orphan_obj_perms`. Usage:: $ ...
from __future__ import unicode_literals from django.core.management.base import BaseCommand from guardian.utils import clean_orphan_obj_perms class Command(BaseCommand): """ clean_orphan_obj_perms command is a tiny wrapper around :func:`guardian.utils.clean_orphan_obj_perms`. Usage:: $ pyth...
Drop django.core.management.base.NoArgsCommand (django 1.10 compat)
Drop django.core.management.base.NoArgsCommand (django 1.10 compat) See https://github.com/django/django/blob/stable/1.9.x/django/core/management/base.py#L574-L578
Python
bsd-2-clause
rmgorman/django-guardian,lukaszb/django-guardian,benkonrath/django-guardian,rmgorman/django-guardian,lukaszb/django-guardian,lukaszb/django-guardian,benkonrath/django-guardian,rmgorman/django-guardian,benkonrath/django-guardian
from __future__ import unicode_literals from django.core.management.base import NoArgsCommand from guardian.utils import clean_orphan_obj_perms class Command(NoArgsCommand): """ clean_orphan_obj_perms command is a tiny wrapper around :func:`guardian.utils.clean_orphan_obj_perms`. Usage:: $ ...
from __future__ import unicode_literals from django.core.management.base import BaseCommand from guardian.utils import clean_orphan_obj_perms class Command(BaseCommand): """ clean_orphan_obj_perms command is a tiny wrapper around :func:`guardian.utils.clean_orphan_obj_perms`. Usage:: $ pyth...
<commit_before>from __future__ import unicode_literals from django.core.management.base import NoArgsCommand from guardian.utils import clean_orphan_obj_perms class Command(NoArgsCommand): """ clean_orphan_obj_perms command is a tiny wrapper around :func:`guardian.utils.clean_orphan_obj_perms`. Usag...
from __future__ import unicode_literals from django.core.management.base import BaseCommand from guardian.utils import clean_orphan_obj_perms class Command(BaseCommand): """ clean_orphan_obj_perms command is a tiny wrapper around :func:`guardian.utils.clean_orphan_obj_perms`. Usage:: $ pyth...
from __future__ import unicode_literals from django.core.management.base import NoArgsCommand from guardian.utils import clean_orphan_obj_perms class Command(NoArgsCommand): """ clean_orphan_obj_perms command is a tiny wrapper around :func:`guardian.utils.clean_orphan_obj_perms`. Usage:: $ ...
<commit_before>from __future__ import unicode_literals from django.core.management.base import NoArgsCommand from guardian.utils import clean_orphan_obj_perms class Command(NoArgsCommand): """ clean_orphan_obj_perms command is a tiny wrapper around :func:`guardian.utils.clean_orphan_obj_perms`. Usag...
2404e11c06418cc72b1a486d7d62d9d719cfe263
regression/tests/studio/test_studio_login.py
regression/tests/studio/test_studio_login.py
""" End to end tests for Studio Login """ import os from flaky import flaky from bok_choy.web_app_test import WebAppTest from regression.pages.studio.studio_home import DashboardPageExtended from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.logout_studio import StudioLogout cla...
""" End to end tests for Studio Login """ import os from bok_choy.web_app_test import WebAppTest from regression.pages.studio.studio_home import DashboardPageExtended from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.logout_studio import StudioLogout class StudioUserLogin(Web...
Fix flaky logout on FF 45
Fix flaky logout on FF 45
Python
agpl-3.0
edx/edx-e2e-tests,edx/edx-e2e-tests
""" End to end tests for Studio Login """ import os from flaky import flaky from bok_choy.web_app_test import WebAppTest from regression.pages.studio.studio_home import DashboardPageExtended from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.logout_studio import StudioLogout cla...
""" End to end tests for Studio Login """ import os from bok_choy.web_app_test import WebAppTest from regression.pages.studio.studio_home import DashboardPageExtended from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.logout_studio import StudioLogout class StudioUserLogin(Web...
<commit_before>""" End to end tests for Studio Login """ import os from flaky import flaky from bok_choy.web_app_test import WebAppTest from regression.pages.studio.studio_home import DashboardPageExtended from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.logout_studio import Stu...
""" End to end tests for Studio Login """ import os from bok_choy.web_app_test import WebAppTest from regression.pages.studio.studio_home import DashboardPageExtended from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.logout_studio import StudioLogout class StudioUserLogin(Web...
""" End to end tests for Studio Login """ import os from flaky import flaky from bok_choy.web_app_test import WebAppTest from regression.pages.studio.studio_home import DashboardPageExtended from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.logout_studio import StudioLogout cla...
<commit_before>""" End to end tests for Studio Login """ import os from flaky import flaky from bok_choy.web_app_test import WebAppTest from regression.pages.studio.studio_home import DashboardPageExtended from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.logout_studio import Stu...
359a80897decd64a0d997005dc7cb731fc294133
setuptools/tests/test_build_ext.py
setuptools/tests/test_build_ext.py
"""build_ext tests """ import unittest import distutils.command.build_ext as orig from setuptools.command.build_ext import build_ext from setuptools.dist import Distribution class TestBuildExtTest(unittest.TestCase): def test_get_ext_filename(self): """ Setuptools needs to give back the same ...
"""build_ext tests """ import distutils.command.build_ext as orig from setuptools.command.build_ext import build_ext from setuptools.dist import Distribution class TestBuildExt: def test_get_ext_filename(self): """ Setuptools needs to give back the same result as distutils, even if the fu...
Use pytest for test discovery in build_ext
Use pytest for test discovery in build_ext
Python
mit
pypa/setuptools,pypa/setuptools,pypa/setuptools
"""build_ext tests """ import unittest import distutils.command.build_ext as orig from setuptools.command.build_ext import build_ext from setuptools.dist import Distribution class TestBuildExtTest(unittest.TestCase): def test_get_ext_filename(self): """ Setuptools needs to give back the same ...
"""build_ext tests """ import distutils.command.build_ext as orig from setuptools.command.build_ext import build_ext from setuptools.dist import Distribution class TestBuildExt: def test_get_ext_filename(self): """ Setuptools needs to give back the same result as distutils, even if the fu...
<commit_before>"""build_ext tests """ import unittest import distutils.command.build_ext as orig from setuptools.command.build_ext import build_ext from setuptools.dist import Distribution class TestBuildExtTest(unittest.TestCase): def test_get_ext_filename(self): """ Setuptools needs to give bac...
"""build_ext tests """ import distutils.command.build_ext as orig from setuptools.command.build_ext import build_ext from setuptools.dist import Distribution class TestBuildExt: def test_get_ext_filename(self): """ Setuptools needs to give back the same result as distutils, even if the fu...
"""build_ext tests """ import unittest import distutils.command.build_ext as orig from setuptools.command.build_ext import build_ext from setuptools.dist import Distribution class TestBuildExtTest(unittest.TestCase): def test_get_ext_filename(self): """ Setuptools needs to give back the same ...
<commit_before>"""build_ext tests """ import unittest import distutils.command.build_ext as orig from setuptools.command.build_ext import build_ext from setuptools.dist import Distribution class TestBuildExtTest(unittest.TestCase): def test_get_ext_filename(self): """ Setuptools needs to give bac...
e1b5ba70938decbebdc2c4115f2b27b1b8f45ecf
python/mms/__init__.py
python/mms/__init__.py
try: import sympy except ImportError: print("The 'mms' package requires sympy, it can be installed by running " \ "`pip install sympy --user`.") else: from fparser import FParserPrinter, fparser, print_fparser, build_hit, print_hit from moosefunction import MooseFunctionPrinter, moosefunctio...
try: import sympy except ImportError: print("The 'mms' package requires sympy, it can be installed by running " \ "`pip install sympy --user`.") else: from fparser import FParserPrinter, fparser, print_fparser, build_hit, print_hit from moosefunction import MooseFunctionPrinter, moosefunctio...
Support offscreen matplotlib plots in mms module
Support offscreen matplotlib plots in mms module (refs #13181)
Python
lgpl-2.1
lindsayad/moose,lindsayad/moose,andrsd/moose,jessecarterMOOSE/moose,harterj/moose,bwspenc/moose,permcody/moose,sapitts/moose,SudiptaBiswas/moose,dschwen/moose,sapitts/moose,lindsayad/moose,jessecarterMOOSE/moose,permcody/moose,SudiptaBiswas/moose,milljm/moose,lindsayad/moose,idaholab/moose,jessecarterMOOSE/moose,idahol...
try: import sympy except ImportError: print("The 'mms' package requires sympy, it can be installed by running " \ "`pip install sympy --user`.") else: from fparser import FParserPrinter, fparser, print_fparser, build_hit, print_hit from moosefunction import MooseFunctionPrinter, moosefunctio...
try: import sympy except ImportError: print("The 'mms' package requires sympy, it can be installed by running " \ "`pip install sympy --user`.") else: from fparser import FParserPrinter, fparser, print_fparser, build_hit, print_hit from moosefunction import MooseFunctionPrinter, moosefunctio...
<commit_before>try: import sympy except ImportError: print("The 'mms' package requires sympy, it can be installed by running " \ "`pip install sympy --user`.") else: from fparser import FParserPrinter, fparser, print_fparser, build_hit, print_hit from moosefunction import MooseFunctionPrinte...
try: import sympy except ImportError: print("The 'mms' package requires sympy, it can be installed by running " \ "`pip install sympy --user`.") else: from fparser import FParserPrinter, fparser, print_fparser, build_hit, print_hit from moosefunction import MooseFunctionPrinter, moosefunctio...
try: import sympy except ImportError: print("The 'mms' package requires sympy, it can be installed by running " \ "`pip install sympy --user`.") else: from fparser import FParserPrinter, fparser, print_fparser, build_hit, print_hit from moosefunction import MooseFunctionPrinter, moosefunctio...
<commit_before>try: import sympy except ImportError: print("The 'mms' package requires sympy, it can be installed by running " \ "`pip install sympy --user`.") else: from fparser import FParserPrinter, fparser, print_fparser, build_hit, print_hit from moosefunction import MooseFunctionPrinte...
59366a538564d8b1a756054b4c24c5d5a5fc2ae3
frigg/decorators.py
frigg/decorators.py
# -*- coding: utf8 -*- from functools import wraps from django.conf import settings from django.http import HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def token_required(view_func): @csrf_exempt @wraps(view_func) def _wrapped_view(request, *args, **kwargs): token =...
# -*- coding: utf8 -*- from functools import wraps from django.conf import settings from django.http import HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def token_required(view_func): @csrf_exempt @wraps(view_func) def _wrapped_view(request, *args, **kwargs): token =...
Fix typo in token decorator
Fix typo in token decorator
Python
mit
frigg/frigg-hq,frigg/frigg-hq,frigg/frigg-hq
# -*- coding: utf8 -*- from functools import wraps from django.conf import settings from django.http import HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def token_required(view_func): @csrf_exempt @wraps(view_func) def _wrapped_view(request, *args, **kwargs): token =...
# -*- coding: utf8 -*- from functools import wraps from django.conf import settings from django.http import HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def token_required(view_func): @csrf_exempt @wraps(view_func) def _wrapped_view(request, *args, **kwargs): token =...
<commit_before># -*- coding: utf8 -*- from functools import wraps from django.conf import settings from django.http import HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def token_required(view_func): @csrf_exempt @wraps(view_func) def _wrapped_view(request, *args, **kwargs): ...
# -*- coding: utf8 -*- from functools import wraps from django.conf import settings from django.http import HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def token_required(view_func): @csrf_exempt @wraps(view_func) def _wrapped_view(request, *args, **kwargs): token =...
# -*- coding: utf8 -*- from functools import wraps from django.conf import settings from django.http import HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def token_required(view_func): @csrf_exempt @wraps(view_func) def _wrapped_view(request, *args, **kwargs): token =...
<commit_before># -*- coding: utf8 -*- from functools import wraps from django.conf import settings from django.http import HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt def token_required(view_func): @csrf_exempt @wraps(view_func) def _wrapped_view(request, *args, **kwargs): ...
8f9615ebd7ae4802b1e44d6b8243aafb785a7fa3
pamqp/__init__.py
pamqp/__init__.py
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ '1.0.1' from header import ProtocolHeader from header import ContentHeader import body import codec import frame import specification
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ = '1.0.1' from pamqp.header import ProtocolHeader from pamqp.header import ContentHeader from pamqp import body from pamqp import codec from pamqp import frame from pamqp import sp...
Use absolute imports and fix the version string
Use absolute imports and fix the version string
Python
bsd-3-clause
gmr/pamqp
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ '1.0.1' from header import ProtocolHeader from header import ContentHeader import body import codec import frame import specification Use absolute imports and fix the version strin...
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ = '1.0.1' from pamqp.header import ProtocolHeader from pamqp.header import ContentHeader from pamqp import body from pamqp import codec from pamqp import frame from pamqp import sp...
<commit_before>"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ '1.0.1' from header import ProtocolHeader from header import ContentHeader import body import codec import frame import specification <commit_msg>Use absolute import...
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ = '1.0.1' from pamqp.header import ProtocolHeader from pamqp.header import ContentHeader from pamqp import body from pamqp import codec from pamqp import frame from pamqp import sp...
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ '1.0.1' from header import ProtocolHeader from header import ContentHeader import body import codec import frame import specification Use absolute imports and fix the version strin...
<commit_before>"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ '1.0.1' from header import ProtocolHeader from header import ContentHeader import body import codec import frame import specification <commit_msg>Use absolute import...
e40f3cfe77b09d63bce504dcce957bee7788028a
zadarapy/vpsa/__init__.py
zadarapy/vpsa/__init__.py
# Copyright 2019 Zadara Storage, Inc. # Originally authored by Jeremy Brown - https://github.com/jwbrown77 # # 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...
# Copyright 2019 Zadara Storage, Inc. # Originally authored by Jeremy Brown - https://github.com/jwbrown77 # # 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...
Create Base class for enum
Create Base class for enum Change-Id: Ia0de5c1c99cabcab38d1a64949b50e916fadd8b8
Python
apache-2.0
zadarastorage/zadarapy
# Copyright 2019 Zadara Storage, Inc. # Originally authored by Jeremy Brown - https://github.com/jwbrown77 # # 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...
# Copyright 2019 Zadara Storage, Inc. # Originally authored by Jeremy Brown - https://github.com/jwbrown77 # # 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...
<commit_before># Copyright 2019 Zadara Storage, Inc. # Originally authored by Jeremy Brown - https://github.com/jwbrown77 # # 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.apac...
# Copyright 2019 Zadara Storage, Inc. # Originally authored by Jeremy Brown - https://github.com/jwbrown77 # # 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...
# Copyright 2019 Zadara Storage, Inc. # Originally authored by Jeremy Brown - https://github.com/jwbrown77 # # 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...
<commit_before># Copyright 2019 Zadara Storage, Inc. # Originally authored by Jeremy Brown - https://github.com/jwbrown77 # # 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.apac...
07ab8c8bebdb712131cb0ccc4893f81b33d261cd
hackarena/player.py
hackarena/player.py
# -*- coding: utf-8 -*- import hackarena.constants from hackarena.constants import Classes from hackarena.constants import Spell from hackarena.game_objects import BaseGameObject AVAILABLE_SPELLS = { Classes.TANK: [Spell.TANK_ATTACK, Spell.TANK_AOE], Classes.MAGE: [Spell.MAGE_DIRECT_DAMAGE, Spell.MAGE_AOE], ...
# -*- coding: utf-8 -*- import hackarena.constants from hackarena.constants import Classes from hackarena.constants import Spell from hackarena.game_objects import BaseGameObject AVAILABLE_SPELLS = { Classes.TANK: [Spell.TANK_ATTACK, Spell.TANK_AOE], Classes.MAGE: [Spell.MAGE_DIRECT_DAMAGE, Spell.MAGE_AOE], ...
Add todo for hp stuff
Add todo for hp stuff
Python
mit
verekia/hackarena,verekia/hackarena,verekia/hackarena,verekia/hackarena
# -*- coding: utf-8 -*- import hackarena.constants from hackarena.constants import Classes from hackarena.constants import Spell from hackarena.game_objects import BaseGameObject AVAILABLE_SPELLS = { Classes.TANK: [Spell.TANK_ATTACK, Spell.TANK_AOE], Classes.MAGE: [Spell.MAGE_DIRECT_DAMAGE, Spell.MAGE_AOE], ...
# -*- coding: utf-8 -*- import hackarena.constants from hackarena.constants import Classes from hackarena.constants import Spell from hackarena.game_objects import BaseGameObject AVAILABLE_SPELLS = { Classes.TANK: [Spell.TANK_ATTACK, Spell.TANK_AOE], Classes.MAGE: [Spell.MAGE_DIRECT_DAMAGE, Spell.MAGE_AOE], ...
<commit_before># -*- coding: utf-8 -*- import hackarena.constants from hackarena.constants import Classes from hackarena.constants import Spell from hackarena.game_objects import BaseGameObject AVAILABLE_SPELLS = { Classes.TANK: [Spell.TANK_ATTACK, Spell.TANK_AOE], Classes.MAGE: [Spell.MAGE_DIRECT_DAMAGE, Spe...
# -*- coding: utf-8 -*- import hackarena.constants from hackarena.constants import Classes from hackarena.constants import Spell from hackarena.game_objects import BaseGameObject AVAILABLE_SPELLS = { Classes.TANK: [Spell.TANK_ATTACK, Spell.TANK_AOE], Classes.MAGE: [Spell.MAGE_DIRECT_DAMAGE, Spell.MAGE_AOE], ...
# -*- coding: utf-8 -*- import hackarena.constants from hackarena.constants import Classes from hackarena.constants import Spell from hackarena.game_objects import BaseGameObject AVAILABLE_SPELLS = { Classes.TANK: [Spell.TANK_ATTACK, Spell.TANK_AOE], Classes.MAGE: [Spell.MAGE_DIRECT_DAMAGE, Spell.MAGE_AOE], ...
<commit_before># -*- coding: utf-8 -*- import hackarena.constants from hackarena.constants import Classes from hackarena.constants import Spell from hackarena.game_objects import BaseGameObject AVAILABLE_SPELLS = { Classes.TANK: [Spell.TANK_ATTACK, Spell.TANK_AOE], Classes.MAGE: [Spell.MAGE_DIRECT_DAMAGE, Spe...
28fe6a0a1e5e5d8781854aad4f22d368d3d73b12
ld37/common/utils/libutils.py
ld37/common/utils/libutils.py
import math def update_image_rect(image, rect): image_rect = image.get_rect() image_rect.x = rect.x image_rect.y = rect.y def distance_between_rects(rect1, rect2): (r1_center_x, r1_center_y) = rect1.center (r2_center_x, r2_center_y) = rect2.center x_squared = (r1_center_x - r2_center_x)**2 ...
import math def update_image_rect(image, rect): image_rect = image.get_rect() image_rect.x = rect.x image_rect.y = rect.y def distance_between_rects(rect1, rect2): (r1_center_x, r1_center_y) = rect1.center (r2_center_x, r2_center_y) = rect2.center x_squared = (r2_center_x - r1_center_x)**2 ...
Update distance formula to be more standard
Update distance formula to be more standard
Python
mit
Daihiro/ldjam37,maximx1/ldjam37
import math def update_image_rect(image, rect): image_rect = image.get_rect() image_rect.x = rect.x image_rect.y = rect.y def distance_between_rects(rect1, rect2): (r1_center_x, r1_center_y) = rect1.center (r2_center_x, r2_center_y) = rect2.center x_squared = (r1_center_x - r2_center_x)**2 ...
import math def update_image_rect(image, rect): image_rect = image.get_rect() image_rect.x = rect.x image_rect.y = rect.y def distance_between_rects(rect1, rect2): (r1_center_x, r1_center_y) = rect1.center (r2_center_x, r2_center_y) = rect2.center x_squared = (r2_center_x - r1_center_x)**2 ...
<commit_before>import math def update_image_rect(image, rect): image_rect = image.get_rect() image_rect.x = rect.x image_rect.y = rect.y def distance_between_rects(rect1, rect2): (r1_center_x, r1_center_y) = rect1.center (r2_center_x, r2_center_y) = rect2.center x_squared = (r1_center_x - r2_c...
import math def update_image_rect(image, rect): image_rect = image.get_rect() image_rect.x = rect.x image_rect.y = rect.y def distance_between_rects(rect1, rect2): (r1_center_x, r1_center_y) = rect1.center (r2_center_x, r2_center_y) = rect2.center x_squared = (r2_center_x - r1_center_x)**2 ...
import math def update_image_rect(image, rect): image_rect = image.get_rect() image_rect.x = rect.x image_rect.y = rect.y def distance_between_rects(rect1, rect2): (r1_center_x, r1_center_y) = rect1.center (r2_center_x, r2_center_y) = rect2.center x_squared = (r1_center_x - r2_center_x)**2 ...
<commit_before>import math def update_image_rect(image, rect): image_rect = image.get_rect() image_rect.x = rect.x image_rect.y = rect.y def distance_between_rects(rect1, rect2): (r1_center_x, r1_center_y) = rect1.center (r2_center_x, r2_center_y) = rect2.center x_squared = (r1_center_x - r2_c...
b635aa57758f667a989039d8874111e5497a7ab7
smithers/smithers/conf/server.py
smithers/smithers/conf/server.py
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 1 # basically off
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500
Set country minimum vote filter back to 500.
Set country minimum vote filter back to 500.
Python
mpl-2.0
mozilla/mrburns,mozilla/mrburns,mozilla/mrburns
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 1 # basically off Set country minimum vote filter back to 500.
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500
<commit_before>from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 1 # basically off <commit_msg>Set country minimum vote filter...
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 1 # basically off Set country minimum vote filter back to 500.from os import...
<commit_before>from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 1 # basically off <commit_msg>Set country minimum vote filter...
244da6a4ffa5ff8de80d18baceedcf947ef6b68e
tensorflow/python/tf2.py
tensorflow/python/tf2.py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Make TF2_BEHAVIOR=0 disable TF2 behavior.
Make TF2_BEHAVIOR=0 disable TF2 behavior. Prior to this change, the mere presence of a TF2_BEHAVIOR environment variable would enable TF2 behavior. With this, setting that environment variable to "0" will disable it. PiperOrigin-RevId: 223804383
Python
apache-2.0
freedomtan/tensorflow,kevin-coder/tensorflow-fork,aldian/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,renyi533/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,cxxgtxy/tensorflow,hfp/tensorflow-xsmm,alsrgv/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,theflofly...
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
<commit_before># Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
<commit_before># Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
1a3db115de722a24780009683f36011e036e9086
tests/test_completion.py
tests/test_completion.py
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
Update completion tests, checking for printed message
:white_check_mark: Update completion tests, checking for printed message
Python
mit
tiangolo/typer,tiangolo/typer
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
<commit_before>import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
<commit_before>import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ ...
363184f27bfb6c181448486f0c3e9d6d5d6a21dc
core/utils.py
core/utils.py
import socket import os def getHostname(): """ Returns the current host hostname """ return socket.gethostname() def fail2banStatus(): """ Returns the status of fail2ban for init and systemd """ f = os.popen('service fail2ban status') status = f.read() if ("inactive" in statu...
import socket import os def getHostname(): """ Returns the current host hostname """ return socket.gethostname() def fail2banStatus(): """ Returns the status of fail2ban for init and systemd """ f = os.popen('service fail2ban status') status = f.read() if ("inactive" in statu...
Fix : bug in fail2ban status.
Fix : bug in fail2ban status.
Python
mit
nocternology/fail2dash,nocternology/fail2dash
import socket import os def getHostname(): """ Returns the current host hostname """ return socket.gethostname() def fail2banStatus(): """ Returns the status of fail2ban for init and systemd """ f = os.popen('service fail2ban status') status = f.read() if ("inactive" in statu...
import socket import os def getHostname(): """ Returns the current host hostname """ return socket.gethostname() def fail2banStatus(): """ Returns the status of fail2ban for init and systemd """ f = os.popen('service fail2ban status') status = f.read() if ("inactive" in statu...
<commit_before>import socket import os def getHostname(): """ Returns the current host hostname """ return socket.gethostname() def fail2banStatus(): """ Returns the status of fail2ban for init and systemd """ f = os.popen('service fail2ban status') status = f.read() if ("ina...
import socket import os def getHostname(): """ Returns the current host hostname """ return socket.gethostname() def fail2banStatus(): """ Returns the status of fail2ban for init and systemd """ f = os.popen('service fail2ban status') status = f.read() if ("inactive" in statu...
import socket import os def getHostname(): """ Returns the current host hostname """ return socket.gethostname() def fail2banStatus(): """ Returns the status of fail2ban for init and systemd """ f = os.popen('service fail2ban status') status = f.read() if ("inactive" in statu...
<commit_before>import socket import os def getHostname(): """ Returns the current host hostname """ return socket.gethostname() def fail2banStatus(): """ Returns the status of fail2ban for init and systemd """ f = os.popen('service fail2ban status') status = f.read() if ("ina...
481571daf8e89fb98424e1a068c64c7c1a6209fb
py3-test/tests.py
py3-test/tests.py
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) future = Future() ...
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) should_call = Future(...
Rename should_call future in test, raise exception on timeout
Rename should_call future in test, raise exception on timeout
Python
mit
jfhbrook/pyee
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) future = Future() ...
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) should_call = Future(...
<commit_before># -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) future...
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) should_call = Future(...
# -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) future = Future() ...
<commit_before># -*- coding: utf-8 -*- import nose.tools as nt from asyncio import Future, gather, get_event_loop, sleep from pyee import EventEmitter def test_async_emit(): """Test that event_emitters can handle wrapping coroutines """ loop = get_event_loop() ee = EventEmitter(loop=loop) future...
ad2ad7df04f9b6824a1e37505253fc513b851a06
abusehelper/contrib/accesslogbot/configuration.py
abusehelper/contrib/accesslogbot/configuration.py
service_room = "FIXME.lobby" accesslog_room = "FIXME.accesslog" combined_room = "FIXME.combined" path = "" xmpp_jid = "" xmpp_password = "FIXME" xmpp_ignore_cert = True xmpp_extra_ca_certs = None xmpp_rate_limit = 10
service_room = "FIXME.lobby" accesslog_room = service_room + ".accesslog" combined_room = service_room + ".combined" path = "" xmpp_jid = "" xmpp_password = "FIXME" xmpp_ignore_cert = True xmpp_extra_ca_certs = None xmpp_rate_limit = 10
Put all the rooms under lobby, so it will be easier to configure.
Put all the rooms under lobby, so it will be easier to configure.
Python
mit
abusesa/abusehelper
service_room = "FIXME.lobby" accesslog_room = "FIXME.accesslog" combined_room = "FIXME.combined" path = "" xmpp_jid = "" xmpp_password = "FIXME" xmpp_ignore_cert = True xmpp_extra_ca_certs = None xmpp_rate_limit = 10 Put all the rooms under lobby, so it will be easier to configure.
service_room = "FIXME.lobby" accesslog_room = service_room + ".accesslog" combined_room = service_room + ".combined" path = "" xmpp_jid = "" xmpp_password = "FIXME" xmpp_ignore_cert = True xmpp_extra_ca_certs = None xmpp_rate_limit = 10
<commit_before>service_room = "FIXME.lobby" accesslog_room = "FIXME.accesslog" combined_room = "FIXME.combined" path = "" xmpp_jid = "" xmpp_password = "FIXME" xmpp_ignore_cert = True xmpp_extra_ca_certs = None xmpp_rate_limit = 10 <commit_msg>Put all the rooms under lobby, so it will be easier to configure.<commit_aft...
service_room = "FIXME.lobby" accesslog_room = service_room + ".accesslog" combined_room = service_room + ".combined" path = "" xmpp_jid = "" xmpp_password = "FIXME" xmpp_ignore_cert = True xmpp_extra_ca_certs = None xmpp_rate_limit = 10
service_room = "FIXME.lobby" accesslog_room = "FIXME.accesslog" combined_room = "FIXME.combined" path = "" xmpp_jid = "" xmpp_password = "FIXME" xmpp_ignore_cert = True xmpp_extra_ca_certs = None xmpp_rate_limit = 10 Put all the rooms under lobby, so it will be easier to configure.service_room = "FIXME.lobby" accesslog...
<commit_before>service_room = "FIXME.lobby" accesslog_room = "FIXME.accesslog" combined_room = "FIXME.combined" path = "" xmpp_jid = "" xmpp_password = "FIXME" xmpp_ignore_cert = True xmpp_extra_ca_certs = None xmpp_rate_limit = 10 <commit_msg>Put all the rooms under lobby, so it will be easier to configure.<commit_aft...
e7149a488eaa85baecacfdf78a5d190b51dc46d7
tests/test_upgrade.py
tests/test_upgrade.py
import shutil import tempfile from os import path import unittest from libs.qpanel.upgrader import __first_line as firstline, get_current_version class UpgradeTestClass(unittest.TestCase): def setUp(self): # Create a temporary directory self.test_dir = tempfile.mkdtemp() def tearDown(self): ...
import shutil import tempfile from os import path import unittest from libs.qpanel.upgrader import __first_line as firstline, get_current_version class UpgradeTestClass(unittest.TestCase): def setUp(self): # Create a temporary directory self.test_dir = tempfile.mkdtemp() def tearDown(self): ...
Add not equals test for version function
Add not equals test for version function
Python
mit
roramirez/qpanel,skazancev/qpanel,roramirez/qpanel,skazancev/qpanel,roramirez/qpanel,skazancev/qpanel,skazancev/qpanel,roramirez/qpanel
import shutil import tempfile from os import path import unittest from libs.qpanel.upgrader import __first_line as firstline, get_current_version class UpgradeTestClass(unittest.TestCase): def setUp(self): # Create a temporary directory self.test_dir = tempfile.mkdtemp() def tearDown(self): ...
import shutil import tempfile from os import path import unittest from libs.qpanel.upgrader import __first_line as firstline, get_current_version class UpgradeTestClass(unittest.TestCase): def setUp(self): # Create a temporary directory self.test_dir = tempfile.mkdtemp() def tearDown(self): ...
<commit_before>import shutil import tempfile from os import path import unittest from libs.qpanel.upgrader import __first_line as firstline, get_current_version class UpgradeTestClass(unittest.TestCase): def setUp(self): # Create a temporary directory self.test_dir = tempfile.mkdtemp() def t...
import shutil import tempfile from os import path import unittest from libs.qpanel.upgrader import __first_line as firstline, get_current_version class UpgradeTestClass(unittest.TestCase): def setUp(self): # Create a temporary directory self.test_dir = tempfile.mkdtemp() def tearDown(self): ...
import shutil import tempfile from os import path import unittest from libs.qpanel.upgrader import __first_line as firstline, get_current_version class UpgradeTestClass(unittest.TestCase): def setUp(self): # Create a temporary directory self.test_dir = tempfile.mkdtemp() def tearDown(self): ...
<commit_before>import shutil import tempfile from os import path import unittest from libs.qpanel.upgrader import __first_line as firstline, get_current_version class UpgradeTestClass(unittest.TestCase): def setUp(self): # Create a temporary directory self.test_dir = tempfile.mkdtemp() def t...
2deb924aaa78329d11c40d487788dc027dbb07a0
dojo/views.py
dojo/views.py
import logging from django.conf import settings from django.http import Http404 from django.shortcuts import render from pytz import timezone from dojo.filters import LogEntryFilter from dojo.utils import get_page_items, add_breadcrumb localtz = timezone(settings.TIME_ZONE) logging.basicConfig( level=logging.DE...
import logging from django.conf import settings from django.http import Http404 from django.shortcuts import render from pytz import timezone from dojo.filters import LogEntryFilter from dojo.utils import get_page_items, add_breadcrumb localtz = timezone(settings.TIME_ZONE) logging.basicConfig( level=logging.DE...
Fix qs error in history
Fix qs error in history
Python
bsd-3-clause
grendel513/django-DefectDojo,OWASP/django-DefectDojo,OWASP/django-DefectDojo,grendel513/django-DefectDojo,OWASP/django-DefectDojo,OWASP/django-DefectDojo,rackerlabs/django-DefectDojo,yan99uic/django-DefectDojo,grendel513/django-DefectDojo,yan99uic/django-DefectDojo,rackerlabs/django-DefectDojo,yan99uic/django-DefectDoj...
import logging from django.conf import settings from django.http import Http404 from django.shortcuts import render from pytz import timezone from dojo.filters import LogEntryFilter from dojo.utils import get_page_items, add_breadcrumb localtz = timezone(settings.TIME_ZONE) logging.basicConfig( level=logging.DE...
import logging from django.conf import settings from django.http import Http404 from django.shortcuts import render from pytz import timezone from dojo.filters import LogEntryFilter from dojo.utils import get_page_items, add_breadcrumb localtz = timezone(settings.TIME_ZONE) logging.basicConfig( level=logging.DE...
<commit_before>import logging from django.conf import settings from django.http import Http404 from django.shortcuts import render from pytz import timezone from dojo.filters import LogEntryFilter from dojo.utils import get_page_items, add_breadcrumb localtz = timezone(settings.TIME_ZONE) logging.basicConfig( l...
import logging from django.conf import settings from django.http import Http404 from django.shortcuts import render from pytz import timezone from dojo.filters import LogEntryFilter from dojo.utils import get_page_items, add_breadcrumb localtz = timezone(settings.TIME_ZONE) logging.basicConfig( level=logging.DE...
import logging from django.conf import settings from django.http import Http404 from django.shortcuts import render from pytz import timezone from dojo.filters import LogEntryFilter from dojo.utils import get_page_items, add_breadcrumb localtz = timezone(settings.TIME_ZONE) logging.basicConfig( level=logging.DE...
<commit_before>import logging from django.conf import settings from django.http import Http404 from django.shortcuts import render from pytz import timezone from dojo.filters import LogEntryFilter from dojo.utils import get_page_items, add_breadcrumb localtz = timezone(settings.TIME_ZONE) logging.basicConfig( l...
95421d1b71d2f5847bcea439cde79af2a984eda6
src/sentry/api/endpoints/project_releases.py
src/sentry/api/endpoints/project_releases.py
from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import Release class ProjectReleasesEndpoint(ProjectEndpoint): doc_section = DocSection.RELEASES def get(self, re...
from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import Release class ProjectReleasesEndpoint(ProjectEndpoint): doc_section = DocSection.RELEASES def get(self, re...
Maintain project release sort order
Maintain project release sort order
Python
bsd-3-clause
zenefits/sentry,ewdurbin/sentry,fotinakis/sentry,wong2/sentry,alexm92/sentry,gencer/sentry,Natim/sentry,1tush/sentry,hongliang5623/sentry,daevaorn/sentry,BuildingLink/sentry,daevaorn/sentry,ngonzalvez/sentry,zenefits/sentry,JamesMura/sentry,ngonzalvez/sentry,pauloschilling/sentry,argonemyth/sentry,wong2/sentry,JamesMur...
from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import Release class ProjectReleasesEndpoint(ProjectEndpoint): doc_section = DocSection.RELEASES def get(self, re...
from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import Release class ProjectReleasesEndpoint(ProjectEndpoint): doc_section = DocSection.RELEASES def get(self, re...
<commit_before>from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import Release class ProjectReleasesEndpoint(ProjectEndpoint): doc_section = DocSection.RELEASES d...
from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import Release class ProjectReleasesEndpoint(ProjectEndpoint): doc_section = DocSection.RELEASES def get(self, re...
from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import Release class ProjectReleasesEndpoint(ProjectEndpoint): doc_section = DocSection.RELEASES def get(self, re...
<commit_before>from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import Release class ProjectReleasesEndpoint(ProjectEndpoint): doc_section = DocSection.RELEASES d...
6d663d1d0172b716e0dccc1f617b5a09b2905b67
script/upload-windows-pdb.py
script/upload-windows-pdb.py
#!/usr/bin/env python import os import glob from lib.util import execute, rm_rf, safe_mkdir, s3put, s3_config SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SYMBOLS_DIR = 'dist\\symbols' PDB_LIST = [ 'out\\Release\\atom.exe.pdb', 'vendor\\brightray\\vendor\\download\\libchromiumconten...
#!/usr/bin/env python import os import glob from lib.util import execute, rm_rf, safe_mkdir, s3put, s3_config SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SYMBOLS_DIR = 'dist\\symbols' PDB_LIST = [ 'out\\Release\\atom.exe.pdb', 'vendor\\brightray\\vendor\\download\\libchromiumconten...
Use lowercase for symbol paths
Use lowercase for symbol paths
Python
mit
wolfflow/electron,shockone/electron,ianscrivener/electron,oiledCode/electron,christian-bromann/electron,fffej/electron,darwin/electron,digideskio/electron,jannishuebl/electron,darwin/electron,lrlna/electron,faizalpribadi/electron,lzpfmh/electron,rsvip/electron,mubassirhayat/electron,bwiggs/electron,jiaz/electron,gstack...
#!/usr/bin/env python import os import glob from lib.util import execute, rm_rf, safe_mkdir, s3put, s3_config SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SYMBOLS_DIR = 'dist\\symbols' PDB_LIST = [ 'out\\Release\\atom.exe.pdb', 'vendor\\brightray\\vendor\\download\\libchromiumconten...
#!/usr/bin/env python import os import glob from lib.util import execute, rm_rf, safe_mkdir, s3put, s3_config SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SYMBOLS_DIR = 'dist\\symbols' PDB_LIST = [ 'out\\Release\\atom.exe.pdb', 'vendor\\brightray\\vendor\\download\\libchromiumconten...
<commit_before>#!/usr/bin/env python import os import glob from lib.util import execute, rm_rf, safe_mkdir, s3put, s3_config SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SYMBOLS_DIR = 'dist\\symbols' PDB_LIST = [ 'out\\Release\\atom.exe.pdb', 'vendor\\brightray\\vendor\\download\\li...
#!/usr/bin/env python import os import glob from lib.util import execute, rm_rf, safe_mkdir, s3put, s3_config SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SYMBOLS_DIR = 'dist\\symbols' PDB_LIST = [ 'out\\Release\\atom.exe.pdb', 'vendor\\brightray\\vendor\\download\\libchromiumconten...
#!/usr/bin/env python import os import glob from lib.util import execute, rm_rf, safe_mkdir, s3put, s3_config SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SYMBOLS_DIR = 'dist\\symbols' PDB_LIST = [ 'out\\Release\\atom.exe.pdb', 'vendor\\brightray\\vendor\\download\\libchromiumconten...
<commit_before>#!/usr/bin/env python import os import glob from lib.util import execute, rm_rf, safe_mkdir, s3put, s3_config SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) SYMBOLS_DIR = 'dist\\symbols' PDB_LIST = [ 'out\\Release\\atom.exe.pdb', 'vendor\\brightray\\vendor\\download\\li...
46be6053526da38ad9f8fdf40ebb870cd64ae88e
nefertari_sqla/serializers.py
nefertari_sqla/serializers.py
import datetime import decimal import logging import elasticsearch from nefertari.renderers import _JSONEncoder log = logging.getLogger(__name__) class JSONEncoder(_JSONEncoder): def default(self, obj): if isinstance(obj, (datetime.datetime, datetime.date)): return obj.strftime("%Y-%m-%dT%...
import datetime import decimal import logging import elasticsearch from nefertari.renderers import _JSONEncoder log = logging.getLogger(__name__) class JSONEncoderMixin(object): def default(self, obj): if isinstance(obj, (datetime.datetime, datetime.date)): return obj.strftime("%Y-%m-%dT%H...
Refactor encoders to have base class
Refactor encoders to have base class
Python
apache-2.0
ramses-tech/nefertari-sqla,geniusproject/nefertari-sqla,brandicted/nefertari-sqla,oleduc/nefertari-sqla
import datetime import decimal import logging import elasticsearch from nefertari.renderers import _JSONEncoder log = logging.getLogger(__name__) class JSONEncoder(_JSONEncoder): def default(self, obj): if isinstance(obj, (datetime.datetime, datetime.date)): return obj.strftime("%Y-%m-%dT%...
import datetime import decimal import logging import elasticsearch from nefertari.renderers import _JSONEncoder log = logging.getLogger(__name__) class JSONEncoderMixin(object): def default(self, obj): if isinstance(obj, (datetime.datetime, datetime.date)): return obj.strftime("%Y-%m-%dT%H...
<commit_before>import datetime import decimal import logging import elasticsearch from nefertari.renderers import _JSONEncoder log = logging.getLogger(__name__) class JSONEncoder(_JSONEncoder): def default(self, obj): if isinstance(obj, (datetime.datetime, datetime.date)): return obj.strft...
import datetime import decimal import logging import elasticsearch from nefertari.renderers import _JSONEncoder log = logging.getLogger(__name__) class JSONEncoderMixin(object): def default(self, obj): if isinstance(obj, (datetime.datetime, datetime.date)): return obj.strftime("%Y-%m-%dT%H...
import datetime import decimal import logging import elasticsearch from nefertari.renderers import _JSONEncoder log = logging.getLogger(__name__) class JSONEncoder(_JSONEncoder): def default(self, obj): if isinstance(obj, (datetime.datetime, datetime.date)): return obj.strftime("%Y-%m-%dT%...
<commit_before>import datetime import decimal import logging import elasticsearch from nefertari.renderers import _JSONEncoder log = logging.getLogger(__name__) class JSONEncoder(_JSONEncoder): def default(self, obj): if isinstance(obj, (datetime.datetime, datetime.date)): return obj.strft...
bcca20cecbc664422f72359ba4fba7d55e833b32
swampdragon/connections/sockjs_connection.py
swampdragon/connections/sockjs_connection.py
from sockjs.tornado import SockJSConnection from ..pubsub_providers.redis_pubsub_provider import RedisPubSubProvider from .. import route_handler import json pub_sub = RedisPubSubProvider() class ConnectionMixin(object): def to_json(self, data): if isinstance(data, dict): return data ...
from sockjs.tornado import SockJSConnection from ..pubsub_providers.redis_pubsub_provider import RedisPubSubProvider from .. import route_handler import json pub_sub = RedisPubSubProvider() class ConnectionMixin(object): def to_json(self, data): if isinstance(data, dict): return data ...
Include channel list in connection
Include channel list in connection
Python
bsd-3-clause
sahlinet/swampdragon,denizs/swampdragon,michael-k/swampdragon,seclinch/swampdragon,Manuel4131/swampdragon,aexeagmbh/swampdragon,Manuel4131/swampdragon,d9pouces/swampdragon,aexeagmbh/swampdragon,michael-k/swampdragon,d9pouces/swampdragon,boris-savic/swampdragon,boris-savic/swampdragon,jonashagstedt/swampdragon,jonashags...
from sockjs.tornado import SockJSConnection from ..pubsub_providers.redis_pubsub_provider import RedisPubSubProvider from .. import route_handler import json pub_sub = RedisPubSubProvider() class ConnectionMixin(object): def to_json(self, data): if isinstance(data, dict): return data ...
from sockjs.tornado import SockJSConnection from ..pubsub_providers.redis_pubsub_provider import RedisPubSubProvider from .. import route_handler import json pub_sub = RedisPubSubProvider() class ConnectionMixin(object): def to_json(self, data): if isinstance(data, dict): return data ...
<commit_before>from sockjs.tornado import SockJSConnection from ..pubsub_providers.redis_pubsub_provider import RedisPubSubProvider from .. import route_handler import json pub_sub = RedisPubSubProvider() class ConnectionMixin(object): def to_json(self, data): if isinstance(data, dict): retur...
from sockjs.tornado import SockJSConnection from ..pubsub_providers.redis_pubsub_provider import RedisPubSubProvider from .. import route_handler import json pub_sub = RedisPubSubProvider() class ConnectionMixin(object): def to_json(self, data): if isinstance(data, dict): return data ...
from sockjs.tornado import SockJSConnection from ..pubsub_providers.redis_pubsub_provider import RedisPubSubProvider from .. import route_handler import json pub_sub = RedisPubSubProvider() class ConnectionMixin(object): def to_json(self, data): if isinstance(data, dict): return data ...
<commit_before>from sockjs.tornado import SockJSConnection from ..pubsub_providers.redis_pubsub_provider import RedisPubSubProvider from .. import route_handler import json pub_sub = RedisPubSubProvider() class ConnectionMixin(object): def to_json(self, data): if isinstance(data, dict): retur...
cd90cf68f0f98f569bc8c2e1739e866eb0630893
test/test_dbserver_bdb.py
test/test_dbserver_bdb.py
#!/usr/bin/env python2 import unittest from socket import * from common import * from testdc import * from test_dbserver import DatabaseBaseTests CONFIG = """\ messagedirector: bind: 127.0.0.1:57123 general: dc_files: - %r roles: - type: database control: 777 generate: min: ...
#!/usr/bin/env python2 import unittest from socket import * from common import * from testdc import * from test_dbserver import DatabaseBaseTests CONFIG = """\ messagedirector: bind: 127.0.0.1:57123 general: dc_files: - %r roles: - type: database control: 777 generate: min: ...
Change BDB test to match naming scheme
DBServer: Change BDB test to match naming scheme
Python
bsd-3-clause
blindsighttf2/Astron,ketoo/Astron,pizcogirl/Astron,blindsighttf2/Astron,blindsighttf2/Astron,pizcogirl/Astron,pizcogirl/Astron,blindsighttf2/Astron,ketoo/Astron,ketoo/Astron,ketoo/Astron,pizcogirl/Astron
#!/usr/bin/env python2 import unittest from socket import * from common import * from testdc import * from test_dbserver import DatabaseBaseTests CONFIG = """\ messagedirector: bind: 127.0.0.1:57123 general: dc_files: - %r roles: - type: database control: 777 generate: min: ...
#!/usr/bin/env python2 import unittest from socket import * from common import * from testdc import * from test_dbserver import DatabaseBaseTests CONFIG = """\ messagedirector: bind: 127.0.0.1:57123 general: dc_files: - %r roles: - type: database control: 777 generate: min: ...
<commit_before>#!/usr/bin/env python2 import unittest from socket import * from common import * from testdc import * from test_dbserver import DatabaseBaseTests CONFIG = """\ messagedirector: bind: 127.0.0.1:57123 general: dc_files: - %r roles: - type: database control: 777 generate...
#!/usr/bin/env python2 import unittest from socket import * from common import * from testdc import * from test_dbserver import DatabaseBaseTests CONFIG = """\ messagedirector: bind: 127.0.0.1:57123 general: dc_files: - %r roles: - type: database control: 777 generate: min: ...
#!/usr/bin/env python2 import unittest from socket import * from common import * from testdc import * from test_dbserver import DatabaseBaseTests CONFIG = """\ messagedirector: bind: 127.0.0.1:57123 general: dc_files: - %r roles: - type: database control: 777 generate: min: ...
<commit_before>#!/usr/bin/env python2 import unittest from socket import * from common import * from testdc import * from test_dbserver import DatabaseBaseTests CONFIG = """\ messagedirector: bind: 127.0.0.1:57123 general: dc_files: - %r roles: - type: database control: 777 generate...
946212f26ff72ea89cb549dfd759572975a6b8ad
grammpy_transforms/EpsilonRulesRemove/findTerminalsRewritedToEps.py
grammpy_transforms/EpsilonRulesRemove/findTerminalsRewritedToEps.py
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 20.08.2017 15:42 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: raise NotImplementedError()
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 20.08.2017 15:42 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar, EPSILON def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: rewritable = {EPSILON} while True: working = rewritable.copy() fo...
Implement finding of nonterminals rewritable to epsilon
Implement finding of nonterminals rewritable to epsilon
Python
mit
PatrikValkovic/grammpy
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 20.08.2017 15:42 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: raise NotImplementedError() Implement finding of nonterminals rewritable to epsilon
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 20.08.2017 15:42 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar, EPSILON def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: rewritable = {EPSILON} while True: working = rewritable.copy() fo...
<commit_before>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 20.08.2017 15:42 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: raise NotImplementedError() <commit_msg>Implement finding of nonterminals rewri...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 20.08.2017 15:42 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar, EPSILON def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: rewritable = {EPSILON} while True: working = rewritable.copy() fo...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 20.08.2017 15:42 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: raise NotImplementedError() Implement finding of nonterminals rewritable to epsilon#!/usr/bin/...
<commit_before>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 20.08.2017 15:42 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: raise NotImplementedError() <commit_msg>Implement finding of nonterminals rewri...
0aa7830b3d841d9851521c14b8754f9101bc9a96
demo/views.py
demo/views.py
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query try: # Wagtail >= 1.1 from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotion except Import...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotion from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query def search(request): # Search sear...
Remove check for Wagtail 1.1
Remove check for Wagtail 1.1
Python
bsd-3-clause
torchbox/wagtaildemo,torchbox/wagtaildemo,torchbox/wagtaildemo,torchbox/wagtaildemo
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query try: # Wagtail >= 1.1 from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotion except Import...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotion from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query def search(request): # Search sear...
<commit_before>from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query try: # Wagtail >= 1.1 from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotio...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotion from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query def search(request): # Search sear...
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query try: # Wagtail >= 1.1 from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotion except Import...
<commit_before>from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query try: # Wagtail >= 1.1 from wagtail.contrib.wagtailsearchpromotions.models import SearchPromotio...
ff3a7ad122af4cc1cdfa0b882b2d1d7366d640f2
tests/unit/test_secret.py
tests/unit/test_secret.py
# Import libnacl libs import libnacl.secret # Import python libs import unittest class TestSecret(unittest.TestCase): ''' ''' def test_secret(self): msg = b'But then of course African swallows are not migratory.' box = libnacl.secret.SecretBox() ctxt = box.encrypt(msg) self....
# Import libnacl libs import libnacl.secret # Import python libs import unittest class TestSecret(unittest.TestCase): ''' ''' def test_secret(self): msg = b'But then of course African swallows are not migratory.' box = libnacl.secret.SecretBox() ctxt = box.encrypt(msg) self....
Add failing test for unicode string encryption
Add failing test for unicode string encryption
Python
apache-2.0
coinkite/libnacl
# Import libnacl libs import libnacl.secret # Import python libs import unittest class TestSecret(unittest.TestCase): ''' ''' def test_secret(self): msg = b'But then of course African swallows are not migratory.' box = libnacl.secret.SecretBox() ctxt = box.encrypt(msg) self....
# Import libnacl libs import libnacl.secret # Import python libs import unittest class TestSecret(unittest.TestCase): ''' ''' def test_secret(self): msg = b'But then of course African swallows are not migratory.' box = libnacl.secret.SecretBox() ctxt = box.encrypt(msg) self....
<commit_before># Import libnacl libs import libnacl.secret # Import python libs import unittest class TestSecret(unittest.TestCase): ''' ''' def test_secret(self): msg = b'But then of course African swallows are not migratory.' box = libnacl.secret.SecretBox() ctxt = box.encrypt(msg...
# Import libnacl libs import libnacl.secret # Import python libs import unittest class TestSecret(unittest.TestCase): ''' ''' def test_secret(self): msg = b'But then of course African swallows are not migratory.' box = libnacl.secret.SecretBox() ctxt = box.encrypt(msg) self....
# Import libnacl libs import libnacl.secret # Import python libs import unittest class TestSecret(unittest.TestCase): ''' ''' def test_secret(self): msg = b'But then of course African swallows are not migratory.' box = libnacl.secret.SecretBox() ctxt = box.encrypt(msg) self....
<commit_before># Import libnacl libs import libnacl.secret # Import python libs import unittest class TestSecret(unittest.TestCase): ''' ''' def test_secret(self): msg = b'But then of course African swallows are not migratory.' box = libnacl.secret.SecretBox() ctxt = box.encrypt(msg...
316bb319e5422e4fe35b5b0ae2e58617dddad6cd
scrape_symbols.py
scrape_symbols.py
#!/usr/bin/env python # encoding: utf-8 def main(): pass if __name__ == '__main__': main()
#!/usr/bin/env python # encoding: utf-8 from __future__ import unicode_literals import codecs import dshelpers import lxml def get_yahoo_ticker_xml(): """ Return Yahoo! Finance ticker company details as XML. """ url = "http://query.yahooapis.com/v1/public/yql?q=" \ "select%20*%20from%20yahoo.financ...
Implement conversion of Yahoo! tickers to CSV.
Implement conversion of Yahoo! tickers to CSV.
Python
agpl-3.0
scraperwiki/stock-tool,scraperwiki/stock-tool
#!/usr/bin/env python # encoding: utf-8 def main(): pass if __name__ == '__main__': main() Implement conversion of Yahoo! tickers to CSV.
#!/usr/bin/env python # encoding: utf-8 from __future__ import unicode_literals import codecs import dshelpers import lxml def get_yahoo_ticker_xml(): """ Return Yahoo! Finance ticker company details as XML. """ url = "http://query.yahooapis.com/v1/public/yql?q=" \ "select%20*%20from%20yahoo.financ...
<commit_before>#!/usr/bin/env python # encoding: utf-8 def main(): pass if __name__ == '__main__': main() <commit_msg>Implement conversion of Yahoo! tickers to CSV.<commit_after>
#!/usr/bin/env python # encoding: utf-8 from __future__ import unicode_literals import codecs import dshelpers import lxml def get_yahoo_ticker_xml(): """ Return Yahoo! Finance ticker company details as XML. """ url = "http://query.yahooapis.com/v1/public/yql?q=" \ "select%20*%20from%20yahoo.financ...
#!/usr/bin/env python # encoding: utf-8 def main(): pass if __name__ == '__main__': main() Implement conversion of Yahoo! tickers to CSV.#!/usr/bin/env python # encoding: utf-8 from __future__ import unicode_literals import codecs import dshelpers import lxml def get_yahoo_ticker_xml(): """ Return Yahoo...
<commit_before>#!/usr/bin/env python # encoding: utf-8 def main(): pass if __name__ == '__main__': main() <commit_msg>Implement conversion of Yahoo! tickers to CSV.<commit_after>#!/usr/bin/env python # encoding: utf-8 from __future__ import unicode_literals import codecs import dshelpers import lxml def get...
e981369f61cec6582b3b9b583639f519ab5f0106
deployments/prob140/image/ipython_config.py
deployments/prob140/image/ipython_config.py
# Disable history manager, we don't really use it # and by default it puts an sqlite file on NFS, which is not something we wanna do c.Historymanager.enabled = False # Use memory for notebook notary file to workaround corrupted files on nfs # https://www.sqlite.org/inmemorydb.html # https://github.com/jupyter/jupyter/...
# Disable history manager, we don't really use it # and by default it puts an sqlite file on NFS, which is not something we wanna do c.HistoryManager.enabled = False
Fix typo on ipython config
Fix typo on ipython config s/Historymanager/HistoryManager/
Python
bsd-3-clause
berkeley-dsep-infra/datahub,ryanlovett/datahub,berkeley-dsep-infra/datahub,berkeley-dsep-infra/datahub,ryanlovett/datahub,ryanlovett/datahub
# Disable history manager, we don't really use it # and by default it puts an sqlite file on NFS, which is not something we wanna do c.Historymanager.enabled = False # Use memory for notebook notary file to workaround corrupted files on nfs # https://www.sqlite.org/inmemorydb.html # https://github.com/jupyter/jupyter/...
# Disable history manager, we don't really use it # and by default it puts an sqlite file on NFS, which is not something we wanna do c.HistoryManager.enabled = False
<commit_before># Disable history manager, we don't really use it # and by default it puts an sqlite file on NFS, which is not something we wanna do c.Historymanager.enabled = False # Use memory for notebook notary file to workaround corrupted files on nfs # https://www.sqlite.org/inmemorydb.html # https://github.com/j...
# Disable history manager, we don't really use it # and by default it puts an sqlite file on NFS, which is not something we wanna do c.HistoryManager.enabled = False
# Disable history manager, we don't really use it # and by default it puts an sqlite file on NFS, which is not something we wanna do c.Historymanager.enabled = False # Use memory for notebook notary file to workaround corrupted files on nfs # https://www.sqlite.org/inmemorydb.html # https://github.com/jupyter/jupyter/...
<commit_before># Disable history manager, we don't really use it # and by default it puts an sqlite file on NFS, which is not something we wanna do c.Historymanager.enabled = False # Use memory for notebook notary file to workaround corrupted files on nfs # https://www.sqlite.org/inmemorydb.html # https://github.com/j...