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
886254938707035bbf404206cf62eabd29f54bb4
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup import toml with open("README.rst") as readme_file: readme_string = readme_file.read() setup( name="toml", version=toml.__version__, description="Python Library for Tom's Obvious, Minimal Language", aut...
try: from setuptools import setup except ImportError: from distutils.core import setup import toml with open("README.rst") as readme_file: readme_string = readme_file.read() setup( name="toml", version=toml.__version__, description="Python Library for Tom's Obvious, Minimal Language", aut...
Add trove classifiers for additional Python support
Add trove classifiers for additional Python support - Include classifier for general Python 2/3 support. - Include classifier for general PyPy support. - Include classifier for Python 3.7 support. Testing added in 0c1bbf6be93b2f0a110a9000fb514301c4d5ab89.
Python
mit
uiri/toml,uiri/toml
try: from setuptools import setup except ImportError: from distutils.core import setup import toml with open("README.rst") as readme_file: readme_string = readme_file.read() setup( name="toml", version=toml.__version__, description="Python Library for Tom's Obvious, Minimal Language", aut...
try: from setuptools import setup except ImportError: from distutils.core import setup import toml with open("README.rst") as readme_file: readme_string = readme_file.read() setup( name="toml", version=toml.__version__, description="Python Library for Tom's Obvious, Minimal Language", aut...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup import toml with open("README.rst") as readme_file: readme_string = readme_file.read() setup( name="toml", version=toml.__version__, description="Python Library for Tom's Obvious, Minimal Lan...
try: from setuptools import setup except ImportError: from distutils.core import setup import toml with open("README.rst") as readme_file: readme_string = readme_file.read() setup( name="toml", version=toml.__version__, description="Python Library for Tom's Obvious, Minimal Language", aut...
try: from setuptools import setup except ImportError: from distutils.core import setup import toml with open("README.rst") as readme_file: readme_string = readme_file.read() setup( name="toml", version=toml.__version__, description="Python Library for Tom's Obvious, Minimal Language", aut...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup import toml with open("README.rst") as readme_file: readme_string = readme_file.read() setup( name="toml", version=toml.__version__, description="Python Library for Tom's Obvious, Minimal Lan...
e5e2b270d7bdf1b8225405619908389319686146
tests/test_demos.py
tests/test_demos.py
import os from dallinger import db class TestBartlett1932(object): """Tests for the Bartlett1932 demo class""" def _make_one(self): from demos.bartlett1932.experiment import Bartlett1932 return Bartlett1932(self._db) def setup(self): self._db = db.init_db(drop_all=True) #...
import os import subprocess from dallinger import db class TestDemos(object): """Verify all the built-in demos.""" def test_verify_all_demos(self): demo_paths = os.listdir("demos") for demo_path in demo_paths: if os.path.isdir(demo_path): os.chdir(demo_path) ...
Test by verifying all demos
Test by verifying all demos
Python
mit
Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger
import os from dallinger import db class TestBartlett1932(object): """Tests for the Bartlett1932 demo class""" def _make_one(self): from demos.bartlett1932.experiment import Bartlett1932 return Bartlett1932(self._db) def setup(self): self._db = db.init_db(drop_all=True) #...
import os import subprocess from dallinger import db class TestDemos(object): """Verify all the built-in demos.""" def test_verify_all_demos(self): demo_paths = os.listdir("demos") for demo_path in demo_paths: if os.path.isdir(demo_path): os.chdir(demo_path) ...
<commit_before>import os from dallinger import db class TestBartlett1932(object): """Tests for the Bartlett1932 demo class""" def _make_one(self): from demos.bartlett1932.experiment import Bartlett1932 return Bartlett1932(self._db) def setup(self): self._db = db.init_db(drop_all=...
import os import subprocess from dallinger import db class TestDemos(object): """Verify all the built-in demos.""" def test_verify_all_demos(self): demo_paths = os.listdir("demos") for demo_path in demo_paths: if os.path.isdir(demo_path): os.chdir(demo_path) ...
import os from dallinger import db class TestBartlett1932(object): """Tests for the Bartlett1932 demo class""" def _make_one(self): from demos.bartlett1932.experiment import Bartlett1932 return Bartlett1932(self._db) def setup(self): self._db = db.init_db(drop_all=True) #...
<commit_before>import os from dallinger import db class TestBartlett1932(object): """Tests for the Bartlett1932 demo class""" def _make_one(self): from demos.bartlett1932.experiment import Bartlett1932 return Bartlett1932(self._db) def setup(self): self._db = db.init_db(drop_all=...
64b26ba9cab7d432d3e4185a8edb12f9257ab473
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'grades', packages = ['grades'], scripts = ['bin/grades'], version = '0.1', description = 'Minimalist grades management for teachers.', author = 'Loïc Séguin-C.', author_email = 'loicseguin@gmail.com', url = 'https:...
# -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'grades', packages = ['grades'], scripts = ['bin/grades'], version = '0.1', description = 'Minimalist grades management for teachers.', author = 'Loïc Séguin-C.', author_email = 'loicseguin@gmail.com', url = 'https:...
Use README.rst as long description.
Use README.rst as long description.
Python
bsd-3-clause
loicseguin/grades
# -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'grades', packages = ['grades'], scripts = ['bin/grades'], version = '0.1', description = 'Minimalist grades management for teachers.', author = 'Loïc Séguin-C.', author_email = 'loicseguin@gmail.com', url = 'https:...
# -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'grades', packages = ['grades'], scripts = ['bin/grades'], version = '0.1', description = 'Minimalist grades management for teachers.', author = 'Loïc Séguin-C.', author_email = 'loicseguin@gmail.com', url = 'https:...
<commit_before># -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'grades', packages = ['grades'], scripts = ['bin/grades'], version = '0.1', description = 'Minimalist grades management for teachers.', author = 'Loïc Séguin-C.', author_email = 'loicseguin@gmail.com', ...
# -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'grades', packages = ['grades'], scripts = ['bin/grades'], version = '0.1', description = 'Minimalist grades management for teachers.', author = 'Loïc Séguin-C.', author_email = 'loicseguin@gmail.com', url = 'https:...
# -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'grades', packages = ['grades'], scripts = ['bin/grades'], version = '0.1', description = 'Minimalist grades management for teachers.', author = 'Loïc Séguin-C.', author_email = 'loicseguin@gmail.com', url = 'https:...
<commit_before># -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'grades', packages = ['grades'], scripts = ['bin/grades'], version = '0.1', description = 'Minimalist grades management for teachers.', author = 'Loïc Séguin-C.', author_email = 'loicseguin@gmail.com', ...
0922c8d06264f02f9b8de59e3546e499c8599326
tests/test_views.py
tests/test_views.py
import unittest from flask import current_app, url_for, get_flashed_messages from app import create_app, db from app.models import * class TestCreateAdmissionView(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() self.app_contex...
import unittest from flask import current_app, url_for, get_flashed_messages from app import create_app, db from app.models import * class TestCreateAdmissionView(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() self.app_contex...
Change id_lvrs_internt to string. Test if there's only one created
:bug: Change id_lvrs_internt to string. Test if there's only one created
Python
mit
gems-uff/labsys,gems-uff/labsys,gems-uff/labsys
import unittest from flask import current_app, url_for, get_flashed_messages from app import create_app, db from app.models import * class TestCreateAdmissionView(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() self.app_contex...
import unittest from flask import current_app, url_for, get_flashed_messages from app import create_app, db from app.models import * class TestCreateAdmissionView(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() self.app_contex...
<commit_before>import unittest from flask import current_app, url_for, get_flashed_messages from app import create_app, db from app.models import * class TestCreateAdmissionView(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() ...
import unittest from flask import current_app, url_for, get_flashed_messages from app import create_app, db from app.models import * class TestCreateAdmissionView(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() self.app_contex...
import unittest from flask import current_app, url_for, get_flashed_messages from app import create_app, db from app.models import * class TestCreateAdmissionView(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() self.app_contex...
<commit_before>import unittest from flask import current_app, url_for, get_flashed_messages from app import create_app, db from app.models import * class TestCreateAdmissionView(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() ...
04534c096900ab09dda4caab5a4d5d6f00a340cb
setup.py
setup.py
from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsmerge', version='0.5.6', author='Open Contracting Partnership', author_email='data@open-contracting.org', url='https://github.com/open-contracting/ocds-merge', description...
from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsmerge', version='0.5.6', author='Open Contracting Partnership', author_email='data@open-contracting.org', url='https://github.com/open-contracting/ocds-merge', description...
Exclude any future tests sub-packages from build.
Exclude any future tests sub-packages from build.
Python
bsd-3-clause
open-contracting/ocds-merge
from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsmerge', version='0.5.6', author='Open Contracting Partnership', author_email='data@open-contracting.org', url='https://github.com/open-contracting/ocds-merge', description...
from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsmerge', version='0.5.6', author='Open Contracting Partnership', author_email='data@open-contracting.org', url='https://github.com/open-contracting/ocds-merge', description...
<commit_before>from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsmerge', version='0.5.6', author='Open Contracting Partnership', author_email='data@open-contracting.org', url='https://github.com/open-contracting/ocds-merge', ...
from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsmerge', version='0.5.6', author='Open Contracting Partnership', author_email='data@open-contracting.org', url='https://github.com/open-contracting/ocds-merge', description...
from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsmerge', version='0.5.6', author='Open Contracting Partnership', author_email='data@open-contracting.org', url='https://github.com/open-contracting/ocds-merge', description...
<commit_before>from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name='ocdsmerge', version='0.5.6', author='Open Contracting Partnership', author_email='data@open-contracting.org', url='https://github.com/open-contracting/ocds-merge', ...
6752007377e57850f21553e1aa2b85ca64c6e769
pesabot/client.py
pesabot/client.py
import requests from requests.auth import HTTPBasicAuth BASE_URL = 'https://pesabot.com/api/v1/' class Client(object): def __init__(self, email, password): self.auth = HTTPBasicAuth(email, password) def call(self, path, method='GET', payload={}): if method == 'POST': res = request...
import requests from requests.auth import HTTPBasicAuth BASE_URL = 'https://pesabot.com/api/v1/' class Client(object): def __init__(self, email, password): self.auth = None if email and password: self.auth = HTTPBasicAuth(email, password) def call(self, path, method='GET', payload...
Make auth optional for allow any routes to work
Make auth optional for allow any routes to work
Python
mit
pesabot/pesabot-py
import requests from requests.auth import HTTPBasicAuth BASE_URL = 'https://pesabot.com/api/v1/' class Client(object): def __init__(self, email, password): self.auth = HTTPBasicAuth(email, password) def call(self, path, method='GET', payload={}): if method == 'POST': res = request...
import requests from requests.auth import HTTPBasicAuth BASE_URL = 'https://pesabot.com/api/v1/' class Client(object): def __init__(self, email, password): self.auth = None if email and password: self.auth = HTTPBasicAuth(email, password) def call(self, path, method='GET', payload...
<commit_before>import requests from requests.auth import HTTPBasicAuth BASE_URL = 'https://pesabot.com/api/v1/' class Client(object): def __init__(self, email, password): self.auth = HTTPBasicAuth(email, password) def call(self, path, method='GET', payload={}): if method == 'POST': ...
import requests from requests.auth import HTTPBasicAuth BASE_URL = 'https://pesabot.com/api/v1/' class Client(object): def __init__(self, email, password): self.auth = None if email and password: self.auth = HTTPBasicAuth(email, password) def call(self, path, method='GET', payload...
import requests from requests.auth import HTTPBasicAuth BASE_URL = 'https://pesabot.com/api/v1/' class Client(object): def __init__(self, email, password): self.auth = HTTPBasicAuth(email, password) def call(self, path, method='GET', payload={}): if method == 'POST': res = request...
<commit_before>import requests from requests.auth import HTTPBasicAuth BASE_URL = 'https://pesabot.com/api/v1/' class Client(object): def __init__(self, email, password): self.auth = HTTPBasicAuth(email, password) def call(self, path, method='GET', payload={}): if method == 'POST': ...
cd92e7186d8b0e1f8103b6f622c0622e7db88fb8
thecodingloverss.py
thecodingloverss.py
import feedparser, sys, urllib2 from bs4 import BeautifulSoup as BS from feedgen.feed import FeedGenerator from flask import Flask app = Flask(__name__) @app.route('/') def index(): d = feedparser.parse('http://thecodinglove.com/rss') fg = FeedGenerator() fg.title('The coding love with images.') fg...
import feedparser, sys, urllib2 from bs4 import BeautifulSoup as BS from feedgen.feed import FeedGenerator from flask import Flask app = Flask(__name__) @app.route('/') def index(): d = feedparser.parse('http://thecodinglove.com/rss') fg = FeedGenerator() fg.title('The coding love with images.') fg...
Set published date so the posts come in order.
Set published date so the posts come in order.
Python
mit
chrillux/thecodingloverss
import feedparser, sys, urllib2 from bs4 import BeautifulSoup as BS from feedgen.feed import FeedGenerator from flask import Flask app = Flask(__name__) @app.route('/') def index(): d = feedparser.parse('http://thecodinglove.com/rss') fg = FeedGenerator() fg.title('The coding love with images.') fg...
import feedparser, sys, urllib2 from bs4 import BeautifulSoup as BS from feedgen.feed import FeedGenerator from flask import Flask app = Flask(__name__) @app.route('/') def index(): d = feedparser.parse('http://thecodinglove.com/rss') fg = FeedGenerator() fg.title('The coding love with images.') fg...
<commit_before>import feedparser, sys, urllib2 from bs4 import BeautifulSoup as BS from feedgen.feed import FeedGenerator from flask import Flask app = Flask(__name__) @app.route('/') def index(): d = feedparser.parse('http://thecodinglove.com/rss') fg = FeedGenerator() fg.title('The coding love with i...
import feedparser, sys, urllib2 from bs4 import BeautifulSoup as BS from feedgen.feed import FeedGenerator from flask import Flask app = Flask(__name__) @app.route('/') def index(): d = feedparser.parse('http://thecodinglove.com/rss') fg = FeedGenerator() fg.title('The coding love with images.') fg...
import feedparser, sys, urllib2 from bs4 import BeautifulSoup as BS from feedgen.feed import FeedGenerator from flask import Flask app = Flask(__name__) @app.route('/') def index(): d = feedparser.parse('http://thecodinglove.com/rss') fg = FeedGenerator() fg.title('The coding love with images.') fg...
<commit_before>import feedparser, sys, urllib2 from bs4 import BeautifulSoup as BS from feedgen.feed import FeedGenerator from flask import Flask app = Flask(__name__) @app.route('/') def index(): d = feedparser.parse('http://thecodinglove.com/rss') fg = FeedGenerator() fg.title('The coding love with i...
f71a166598ab35bc15f298226bb510d43f78c810
bids/analysis/transformations/__init__.py
bids/analysis/transformations/__init__.py
from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve_HRF) from .munge import (split, rename, assign, copy, factor, filter, select, remove, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve_HRF', 'copy',...
from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve) from .munge import (split, rename, assign, copy, factor, filter, select, delete, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve', 'copy', 'de...
Fix imports for renamed transformations
Fix imports for renamed transformations
Python
mit
INCF/pybids
from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve_HRF) from .munge import (split, rename, assign, copy, factor, filter, select, remove, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve_HRF', 'copy',...
from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve) from .munge import (split, rename, assign, copy, factor, filter, select, delete, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve', 'copy', 'de...
<commit_before>from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve_HRF) from .munge import (split, rename, assign, copy, factor, filter, select, remove, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve_HR...
from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve) from .munge import (split, rename, assign, copy, factor, filter, select, delete, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve', 'copy', 'de...
from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve_HRF) from .munge import (split, rename, assign, copy, factor, filter, select, remove, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve_HRF', 'copy',...
<commit_before>from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve_HRF) from .munge import (split, rename, assign, copy, factor, filter, select, remove, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve_HR...
b5bef82ea6eb4269a164eda3ba95d7212f1c76d1
lib/cli/run_worker.py
lib/cli/run_worker.py
import sys from rq import Queue, Connection, Worker import cli import worker class RunWorkerCli(cli.BaseCli): ''' A wrapper for RQ workers. Wrapping RQ is the only way to generate notifications when a job fails. ''' def _get_args(self, arg_parser): ''' Customize arguments. ''' ...
import sys from redis import Redis from rq import Queue, Connection, Worker import cli import worker class RunWorkerCli(cli.BaseCli): ''' A wrapper for RQ workers. Wrapping RQ is the only way to generate notifications when a job fails. ''' def _get_args(self, arg_parser): ''' Customize ...
Use connection settings from conf file.
Use connection settings from conf file.
Python
apache-2.0
TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler
import sys from rq import Queue, Connection, Worker import cli import worker class RunWorkerCli(cli.BaseCli): ''' A wrapper for RQ workers. Wrapping RQ is the only way to generate notifications when a job fails. ''' def _get_args(self, arg_parser): ''' Customize arguments. ''' ...
import sys from redis import Redis from rq import Queue, Connection, Worker import cli import worker class RunWorkerCli(cli.BaseCli): ''' A wrapper for RQ workers. Wrapping RQ is the only way to generate notifications when a job fails. ''' def _get_args(self, arg_parser): ''' Customize ...
<commit_before>import sys from rq import Queue, Connection, Worker import cli import worker class RunWorkerCli(cli.BaseCli): ''' A wrapper for RQ workers. Wrapping RQ is the only way to generate notifications when a job fails. ''' def _get_args(self, arg_parser): ''' Customize argument...
import sys from redis import Redis from rq import Queue, Connection, Worker import cli import worker class RunWorkerCli(cli.BaseCli): ''' A wrapper for RQ workers. Wrapping RQ is the only way to generate notifications when a job fails. ''' def _get_args(self, arg_parser): ''' Customize ...
import sys from rq import Queue, Connection, Worker import cli import worker class RunWorkerCli(cli.BaseCli): ''' A wrapper for RQ workers. Wrapping RQ is the only way to generate notifications when a job fails. ''' def _get_args(self, arg_parser): ''' Customize arguments. ''' ...
<commit_before>import sys from rq import Queue, Connection, Worker import cli import worker class RunWorkerCli(cli.BaseCli): ''' A wrapper for RQ workers. Wrapping RQ is the only way to generate notifications when a job fails. ''' def _get_args(self, arg_parser): ''' Customize argument...
621fc3e10ad296c21a27160a8a1263cf69e3079f
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import uuid from pip.req import parse_requirements from setuptools import setup, find_packages requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in requirements] readme = open('README.rst').read() setup(name='nuts', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import uuid from pip.req import parse_requirements from setuptools import setup, find_packages requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in requirements] readme = open('README.rst').read() setup(name='nuts', ...
Fix missing testSchema in package
Fix missing testSchema in package
Python
mit
HSRNetwork/Nuts
#!/usr/bin/env python # -*- coding: utf-8 -*- import uuid from pip.req import parse_requirements from setuptools import setup, find_packages requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in requirements] readme = open('README.rst').read() setup(name='nuts', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import uuid from pip.req import parse_requirements from setuptools import setup, find_packages requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in requirements] readme = open('README.rst').read() setup(name='nuts', ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import uuid from pip.req import parse_requirements from setuptools import setup, find_packages requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in requirements] readme = open('README.rst').read() setup...
#!/usr/bin/env python # -*- coding: utf-8 -*- import uuid from pip.req import parse_requirements from setuptools import setup, find_packages requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in requirements] readme = open('README.rst').read() setup(name='nuts', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import uuid from pip.req import parse_requirements from setuptools import setup, find_packages requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in requirements] readme = open('README.rst').read() setup(name='nuts', ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import uuid from pip.req import parse_requirements from setuptools import setup, find_packages requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in requirements] readme = open('README.rst').read() setup...
774f7ac425f0a16934dae12d474982c5916435b4
setup.py
setup.py
from setuptools import setup setup( name='slacker', version='0.6.1', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www.a...
from setuptools import setup setup( name='slacker', version='0.6.2', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www.a...
Set version number to 0.6.2.
Set version number to 0.6.2.
Python
apache-2.0
techartorg/slacker,olasitarska/slacker,wkentaro/slacker,kashyap32/slacker,STANAPO/slacker,dastergon/slacker,wasabi0522/slacker,BetterWorks/slacker,hreeder/slacker,os/slacker
from setuptools import setup setup( name='slacker', version='0.6.1', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www.a...
from setuptools import setup setup( name='slacker', version='0.6.2', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www.a...
<commit_before>from setuptools import setup setup( name='slacker', version='0.6.1', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], licens...
from setuptools import setup setup( name='slacker', version='0.6.2', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www.a...
from setuptools import setup setup( name='slacker', version='0.6.1', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www.a...
<commit_before>from setuptools import setup setup( name='slacker', version='0.6.1', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], licens...
cb08d632fac453403bc8b91391b14669dbe932cc
circonus/__init__.py
circonus/__init__.py
from __future__ import absolute_import __title__ = "circonus" __version__ = "0.0.0" from logging import NullHandler import logging from circonus.client import CirconusClient logging.getLogger(__name__).addHandler(NullHandler())
__title__ = "circonus" __version__ = "0.0.0" from logging import NullHandler import logging from circonus.client import CirconusClient logging.getLogger(__name__).addHandler(NullHandler())
Remove unnecessary absolute import statement.
Remove unnecessary absolute import statement.
Python
mit
monetate/circonus,monetate/circonus
from __future__ import absolute_import __title__ = "circonus" __version__ = "0.0.0" from logging import NullHandler import logging from circonus.client import CirconusClient logging.getLogger(__name__).addHandler(NullHandler()) Remove unnecessary absolute import statement.
__title__ = "circonus" __version__ = "0.0.0" from logging import NullHandler import logging from circonus.client import CirconusClient logging.getLogger(__name__).addHandler(NullHandler())
<commit_before>from __future__ import absolute_import __title__ = "circonus" __version__ = "0.0.0" from logging import NullHandler import logging from circonus.client import CirconusClient logging.getLogger(__name__).addHandler(NullHandler()) <commit_msg>Remove unnecessary absolute import statement.<commit_after...
__title__ = "circonus" __version__ = "0.0.0" from logging import NullHandler import logging from circonus.client import CirconusClient logging.getLogger(__name__).addHandler(NullHandler())
from __future__ import absolute_import __title__ = "circonus" __version__ = "0.0.0" from logging import NullHandler import logging from circonus.client import CirconusClient logging.getLogger(__name__).addHandler(NullHandler()) Remove unnecessary absolute import statement.__title__ = "circonus" __version__ = "0....
<commit_before>from __future__ import absolute_import __title__ = "circonus" __version__ = "0.0.0" from logging import NullHandler import logging from circonus.client import CirconusClient logging.getLogger(__name__).addHandler(NullHandler()) <commit_msg>Remove unnecessary absolute import statement.<commit_after...
3089eae072bd2e871c11251961ec35a09b83dd38
setup.py
setup.py
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
Change email address and home page.
Change email address and home page.
Python
mit
geertj/python-ad,theatlantic/python-active-directory,sfu-rcg/python-ad,geertj/python-ad,theatlantic/python-active-directory,sfu-rcg/python-ad
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
<commit_before># # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for...
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
<commit_before># # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for...
a55957996f3e6ae1b7b98bea477e14da2070733e
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='bandicoot', author='Yves-Alexandre de Montjoye', author_email='yvesalexandre@demontjoye.com', version="0.4", url="https://github.com/yvesalexandre/bandicoot", license="MIT", packages=[ 'bandicoot', 'bandicoot.h...
#!/usr/bin/env python from setuptools import setup setup( name='bandicoot', author='Yves-Alexandre de Montjoye', author_email='yvesalexandre@demontjoye.com', version="0.4", url="https://github.com/yvesalexandre/bandicoot", license="MIT", packages=[ 'bandicoot', 'bandicoot.h...
Update PyPI classifiers and test requirements
Update PyPI classifiers and test requirements
Python
mit
yvesalexandre/bandicoot,yvesalexandre/bandicoot,yvesalexandre/bandicoot
#!/usr/bin/env python from setuptools import setup setup( name='bandicoot', author='Yves-Alexandre de Montjoye', author_email='yvesalexandre@demontjoye.com', version="0.4", url="https://github.com/yvesalexandre/bandicoot", license="MIT", packages=[ 'bandicoot', 'bandicoot.h...
#!/usr/bin/env python from setuptools import setup setup( name='bandicoot', author='Yves-Alexandre de Montjoye', author_email='yvesalexandre@demontjoye.com', version="0.4", url="https://github.com/yvesalexandre/bandicoot", license="MIT", packages=[ 'bandicoot', 'bandicoot.h...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='bandicoot', author='Yves-Alexandre de Montjoye', author_email='yvesalexandre@demontjoye.com', version="0.4", url="https://github.com/yvesalexandre/bandicoot", license="MIT", packages=[ 'bandicoot', ...
#!/usr/bin/env python from setuptools import setup setup( name='bandicoot', author='Yves-Alexandre de Montjoye', author_email='yvesalexandre@demontjoye.com', version="0.4", url="https://github.com/yvesalexandre/bandicoot", license="MIT", packages=[ 'bandicoot', 'bandicoot.h...
#!/usr/bin/env python from setuptools import setup setup( name='bandicoot', author='Yves-Alexandre de Montjoye', author_email='yvesalexandre@demontjoye.com', version="0.4", url="https://github.com/yvesalexandre/bandicoot", license="MIT", packages=[ 'bandicoot', 'bandicoot.h...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='bandicoot', author='Yves-Alexandre de Montjoye', author_email='yvesalexandre@demontjoye.com', version="0.4", url="https://github.com/yvesalexandre/bandicoot", license="MIT", packages=[ 'bandicoot', ...
d1182f48c086a1a875a6cf1b489a8aa172032141
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import pypandoc setup( name='SVN-Ignore', py_modules=['sr', 'src.cli', 'src.svn_ignore'], version='1.1.1', description='An utility that provides .svnignore functionality similar to GIT', long_description=pypandoc.convert('README.md','rst',format=...
#!/usr/bin/env python from setuptools import setup def get_long_description(): try: import pypandoc long_description = pypandoc.convert('README.md','rst',format='markdown') except Exception: print('WARNING: Failed to convert README.md to rst, pypandoc was not present') f = open...
Add a fallback for when pypandoc is not present
Add a fallback for when pypandoc is not present Signed-off-by: Jord Nijhuis
Python
mit
Sidesplitter/SVN-Ignore
#!/usr/bin/env python from setuptools import setup import pypandoc setup( name='SVN-Ignore', py_modules=['sr', 'src.cli', 'src.svn_ignore'], version='1.1.1', description='An utility that provides .svnignore functionality similar to GIT', long_description=pypandoc.convert('README.md','rst',format=...
#!/usr/bin/env python from setuptools import setup def get_long_description(): try: import pypandoc long_description = pypandoc.convert('README.md','rst',format='markdown') except Exception: print('WARNING: Failed to convert README.md to rst, pypandoc was not present') f = open...
<commit_before>#!/usr/bin/env python from setuptools import setup import pypandoc setup( name='SVN-Ignore', py_modules=['sr', 'src.cli', 'src.svn_ignore'], version='1.1.1', description='An utility that provides .svnignore functionality similar to GIT', long_description=pypandoc.convert('README.md...
#!/usr/bin/env python from setuptools import setup def get_long_description(): try: import pypandoc long_description = pypandoc.convert('README.md','rst',format='markdown') except Exception: print('WARNING: Failed to convert README.md to rst, pypandoc was not present') f = open...
#!/usr/bin/env python from setuptools import setup import pypandoc setup( name='SVN-Ignore', py_modules=['sr', 'src.cli', 'src.svn_ignore'], version='1.1.1', description='An utility that provides .svnignore functionality similar to GIT', long_description=pypandoc.convert('README.md','rst',format=...
<commit_before>#!/usr/bin/env python from setuptools import setup import pypandoc setup( name='SVN-Ignore', py_modules=['sr', 'src.cli', 'src.svn_ignore'], version='1.1.1', description='An utility that provides .svnignore functionality similar to GIT', long_description=pypandoc.convert('README.md...
05196edc526d8843119ae0e8776ff1e02660251d
setup.py
setup.py
from setuptools import setup setup(name='solcast', version='0.2.1a', description='Client library for the Solcast API', license='MIT', url='https://github.com/cjtapper/solcast-py', author='Chris Tapper', author_email='cj.tapper@gmail.com', packages=['solcast'], install_req...
from setuptools import setup setup(name='solcast', version='0.2.1', description='Client library for the Solcast API', license='MIT', url='https://github.com/cjtapper/solcast-py', author='Chris Tapper', author_email='cj.tapper@gmail.com', packages=['solcast'], install_requ...
Prepare version 0.2.1 for merge
Prepare version 0.2.1 for merge
Python
mit
cjtapper/solcast-py
from setuptools import setup setup(name='solcast', version='0.2.1a', description='Client library for the Solcast API', license='MIT', url='https://github.com/cjtapper/solcast-py', author='Chris Tapper', author_email='cj.tapper@gmail.com', packages=['solcast'], install_req...
from setuptools import setup setup(name='solcast', version='0.2.1', description='Client library for the Solcast API', license='MIT', url='https://github.com/cjtapper/solcast-py', author='Chris Tapper', author_email='cj.tapper@gmail.com', packages=['solcast'], install_requ...
<commit_before>from setuptools import setup setup(name='solcast', version='0.2.1a', description='Client library for the Solcast API', license='MIT', url='https://github.com/cjtapper/solcast-py', author='Chris Tapper', author_email='cj.tapper@gmail.com', packages=['solcast'], ...
from setuptools import setup setup(name='solcast', version='0.2.1', description='Client library for the Solcast API', license='MIT', url='https://github.com/cjtapper/solcast-py', author='Chris Tapper', author_email='cj.tapper@gmail.com', packages=['solcast'], install_requ...
from setuptools import setup setup(name='solcast', version='0.2.1a', description='Client library for the Solcast API', license='MIT', url='https://github.com/cjtapper/solcast-py', author='Chris Tapper', author_email='cj.tapper@gmail.com', packages=['solcast'], install_req...
<commit_before>from setuptools import setup setup(name='solcast', version='0.2.1a', description='Client library for the Solcast API', license='MIT', url='https://github.com/cjtapper/solcast-py', author='Chris Tapper', author_email='cj.tapper@gmail.com', packages=['solcast'], ...
085ad8285e795019909b7fe58fe1c67b2f7bd92a
setup.py
setup.py
# encoding: utf-8 import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): re...
# encoding: utf-8 import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): re...
Revert "version 0.7.3 - fix DateFields"
Revert "version 0.7.3 - fix DateFields" This reverts commit ea9568f0c30cb0bffeaeb0bd4dd809a724f535ce.
Python
bsd-3-clause
multmeio/django-hstore-flattenfields,multmeio/django-hstore-flattenfields
# encoding: utf-8 import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): re...
# encoding: utf-8 import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): re...
<commit_before># encoding: utf-8 import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read...
# encoding: utf-8 import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): re...
# encoding: utf-8 import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): re...
<commit_before># encoding: utf-8 import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read...
4975df993b4c05cf8108a278d941852fa959cd2c
setup.py
setup.py
from setuptools import setup, find_packages try: from pyqt_distutils.build_ui import build_ui cmdclass={'build_ui': build_ui} except ImportError: cmdclass={} setup( name='gauges', version='0.1', description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo', url='http://github.com/...
from setuptools import setup, find_packages try: from pyqt_distutils.build_ui import build_ui cmdclass={'build_ui': build_ui} except ImportError: cmdclass={} setup( name='gauges', version='0.1', description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo', url='http://github.com/...
Change qt5reactor-fork dependency to qt5reactor.
Change qt5reactor-fork dependency to qt5reactor. The author of qt5reactor has now changed the name.
Python
mit
estan/gauges
from setuptools import setup, find_packages try: from pyqt_distutils.build_ui import build_ui cmdclass={'build_ui': build_ui} except ImportError: cmdclass={} setup( name='gauges', version='0.1', description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo', url='http://github.com/...
from setuptools import setup, find_packages try: from pyqt_distutils.build_ui import build_ui cmdclass={'build_ui': build_ui} except ImportError: cmdclass={} setup( name='gauges', version='0.1', description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo', url='http://github.com/...
<commit_before>from setuptools import setup, find_packages try: from pyqt_distutils.build_ui import build_ui cmdclass={'build_ui': build_ui} except ImportError: cmdclass={} setup( name='gauges', version='0.1', description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo', url='htt...
from setuptools import setup, find_packages try: from pyqt_distutils.build_ui import build_ui cmdclass={'build_ui': build_ui} except ImportError: cmdclass={} setup( name='gauges', version='0.1', description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo', url='http://github.com/...
from setuptools import setup, find_packages try: from pyqt_distutils.build_ui import build_ui cmdclass={'build_ui': build_ui} except ImportError: cmdclass={} setup( name='gauges', version='0.1', description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo', url='http://github.com/...
<commit_before>from setuptools import setup, find_packages try: from pyqt_distutils.build_ui import build_ui cmdclass={'build_ui': build_ui} except ImportError: cmdclass={} setup( name='gauges', version='0.1', description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo', url='htt...
75228cef16a6f2e135757475632f25ce3ef447fb
setup.py
setup.py
""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup from pip.req import parse_requirements setup( name='Flask-Ask', version='0.9.7', url='https://github.com/johnwheeler/flask-ask', license='Apache 2.0', author='John Wheeler', author_email='j...
""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup def parse_requirements(filename): """ load requirements from a pip requirements file """ lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.star...
Fix issue with PIP 10
Fix issue with PIP 10
Python
apache-2.0
johnwheeler/flask-ask
""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup from pip.req import parse_requirements setup( name='Flask-Ask', version='0.9.7', url='https://github.com/johnwheeler/flask-ask', license='Apache 2.0', author='John Wheeler', author_email='j...
""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup def parse_requirements(filename): """ load requirements from a pip requirements file """ lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.star...
<commit_before>""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup from pip.req import parse_requirements setup( name='Flask-Ask', version='0.9.7', url='https://github.com/johnwheeler/flask-ask', license='Apache 2.0', author='John Wheeler', ...
""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup def parse_requirements(filename): """ load requirements from a pip requirements file """ lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.star...
""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup from pip.req import parse_requirements setup( name='Flask-Ask', version='0.9.7', url='https://github.com/johnwheeler/flask-ask', license='Apache 2.0', author='John Wheeler', author_email='j...
<commit_before>""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup from pip.req import parse_requirements setup( name='Flask-Ask', version='0.9.7', url='https://github.com/johnwheeler/flask-ask', license='Apache 2.0', author='John Wheeler', ...
a39019b62a0281e7bd046fc614e42332fd3b92bd
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name = 'cloudsizzle', fullname = 'CloudSizzle', version = '0.1', author = '', author_email = '', license = 'MIT', url = 'http://cloudsizzle.cs.hut.fi', description = 'Social study...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name = 'cloudsizzle', fullname = 'CloudSizzle', version = '0.1', author = '', author_email = '', license = 'MIT', url = 'http://cloudsizzle.cs.hut.fi', description = 'Social study...
Add MiniMock to the list of unittest dependencies.
Add MiniMock to the list of unittest dependencies.
Python
mit
jpvanhal/cloudsizzle,jpvanhal/cloudsizzle
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name = 'cloudsizzle', fullname = 'CloudSizzle', version = '0.1', author = '', author_email = '', license = 'MIT', url = 'http://cloudsizzle.cs.hut.fi', description = 'Social study...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name = 'cloudsizzle', fullname = 'CloudSizzle', version = '0.1', author = '', author_email = '', license = 'MIT', url = 'http://cloudsizzle.cs.hut.fi', description = 'Social study...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name = 'cloudsizzle', fullname = 'CloudSizzle', version = '0.1', author = '', author_email = '', license = 'MIT', url = 'http://cloudsizzle.cs.hut.fi', description ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name = 'cloudsizzle', fullname = 'CloudSizzle', version = '0.1', author = '', author_email = '', license = 'MIT', url = 'http://cloudsizzle.cs.hut.fi', description = 'Social study...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name = 'cloudsizzle', fullname = 'CloudSizzle', version = '0.1', author = '', author_email = '', license = 'MIT', url = 'http://cloudsizzle.cs.hut.fi', description = 'Social study...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name = 'cloudsizzle', fullname = 'CloudSizzle', version = '0.1', author = '', author_email = '', license = 'MIT', url = 'http://cloudsizzle.cs.hut.fi', description ...
2706d3086eaff99538eacaafa58776393ab1f5d6
setup.py
setup.py
from setuptools import setup from storm import version # magic setup( name='tornado-storm', version=version, description='A simple ORM for Tornado', author='Craig Campbell', author_email='iamcraigcampbell@gmail.com', url='https://github.com/ccampbell/storm', download_url='https://github.com...
from setuptools import setup, find_packages from storm import version # magic setup( name='tornado-storm', version=version, description='A simple ORM for Tornado', author='Craig Campbell', author_email='iamcraigcampbell@gmail.com', url='https://github.com/ccampbell/storm', download_url='htt...
Make sure installation works locally
Make sure installation works locally
Python
mit
ccampbell/storm,liujiantong/storm
from setuptools import setup from storm import version # magic setup( name='tornado-storm', version=version, description='A simple ORM for Tornado', author='Craig Campbell', author_email='iamcraigcampbell@gmail.com', url='https://github.com/ccampbell/storm', download_url='https://github.com...
from setuptools import setup, find_packages from storm import version # magic setup( name='tornado-storm', version=version, description='A simple ORM for Tornado', author='Craig Campbell', author_email='iamcraigcampbell@gmail.com', url='https://github.com/ccampbell/storm', download_url='htt...
<commit_before>from setuptools import setup from storm import version # magic setup( name='tornado-storm', version=version, description='A simple ORM for Tornado', author='Craig Campbell', author_email='iamcraigcampbell@gmail.com', url='https://github.com/ccampbell/storm', download_url='htt...
from setuptools import setup, find_packages from storm import version # magic setup( name='tornado-storm', version=version, description='A simple ORM for Tornado', author='Craig Campbell', author_email='iamcraigcampbell@gmail.com', url='https://github.com/ccampbell/storm', download_url='htt...
from setuptools import setup from storm import version # magic setup( name='tornado-storm', version=version, description='A simple ORM for Tornado', author='Craig Campbell', author_email='iamcraigcampbell@gmail.com', url='https://github.com/ccampbell/storm', download_url='https://github.com...
<commit_before>from setuptools import setup from storm import version # magic setup( name='tornado-storm', version=version, description='A simple ORM for Tornado', author='Craig Campbell', author_email='iamcraigcampbell@gmail.com', url='https://github.com/ccampbell/storm', download_url='htt...
1cc218ca24574813408eb460b801fd0ecefe514b
setup.py
setup.py
from setuptools import setup, find_packages setup( name='django-mininews', version='0.1', packages=find_packages(exclude=['example_project']), license='MIT', description='Boilerplate for creating publishable lists of objects', long_description=open('README.rst').read(), install_requires=[ ...
from setuptools import setup, find_packages setup( name='django-mininews', version='0.1', packages=find_packages(exclude=['example_project']), license='MIT', description='Boilerplate for creating publishable lists of objects', long_description=open('README.rst').read(), install_requires=[ ...
Add version numbers to dependencies
Add version numbers to dependencies
Python
mit
richardbarran/django-mininews,richardbarran/django-mininews,richardbarran/django-minipub,richardbarran/django-minipub,richardbarran/django-mininews
from setuptools import setup, find_packages setup( name='django-mininews', version='0.1', packages=find_packages(exclude=['example_project']), license='MIT', description='Boilerplate for creating publishable lists of objects', long_description=open('README.rst').read(), install_requires=[ ...
from setuptools import setup, find_packages setup( name='django-mininews', version='0.1', packages=find_packages(exclude=['example_project']), license='MIT', description='Boilerplate for creating publishable lists of objects', long_description=open('README.rst').read(), install_requires=[ ...
<commit_before>from setuptools import setup, find_packages setup( name='django-mininews', version='0.1', packages=find_packages(exclude=['example_project']), license='MIT', description='Boilerplate for creating publishable lists of objects', long_description=open('README.rst').read(), insta...
from setuptools import setup, find_packages setup( name='django-mininews', version='0.1', packages=find_packages(exclude=['example_project']), license='MIT', description='Boilerplate for creating publishable lists of objects', long_description=open('README.rst').read(), install_requires=[ ...
from setuptools import setup, find_packages setup( name='django-mininews', version='0.1', packages=find_packages(exclude=['example_project']), license='MIT', description='Boilerplate for creating publishable lists of objects', long_description=open('README.rst').read(), install_requires=[ ...
<commit_before>from setuptools import setup, find_packages setup( name='django-mininews', version='0.1', packages=find_packages(exclude=['example_project']), license='MIT', description='Boilerplate for creating publishable lists of objects', long_description=open('README.rst').read(), insta...
226ee320cf35c530a6aa7f94bd64fc71908234e3
setup.py
setup.py
from setuptools import setup, find_packages setup( name="ducted", version='1.2', url='http://github.com/ducted/duct', license='MIT', description="A monitoring agent and event processor", author='Colin Alston', author_email='colin.alston@gmail.com', packages=find_packages() + [ ...
from setuptools import setup, find_packages setup( name="ducted", version='1.2', url='http://github.com/ducted/duct', license='MIT', description="A monitoring agent and event processor", author='Colin Alston', author_email='colin.alston@gmail.com', packages=find_packages() + [ ...
Add service identity package to quiet warnings
Add service identity package to quiet warnings
Python
mit
ducted/duct,ducted/duct,ducted/duct,ducted/duct
from setuptools import setup, find_packages setup( name="ducted", version='1.2', url='http://github.com/ducted/duct', license='MIT', description="A monitoring agent and event processor", author='Colin Alston', author_email='colin.alston@gmail.com', packages=find_packages() + [ ...
from setuptools import setup, find_packages setup( name="ducted", version='1.2', url='http://github.com/ducted/duct', license='MIT', description="A monitoring agent and event processor", author='Colin Alston', author_email='colin.alston@gmail.com', packages=find_packages() + [ ...
<commit_before>from setuptools import setup, find_packages setup( name="ducted", version='1.2', url='http://github.com/ducted/duct', license='MIT', description="A monitoring agent and event processor", author='Colin Alston', author_email='colin.alston@gmail.com', packages=find_packages...
from setuptools import setup, find_packages setup( name="ducted", version='1.2', url='http://github.com/ducted/duct', license='MIT', description="A monitoring agent and event processor", author='Colin Alston', author_email='colin.alston@gmail.com', packages=find_packages() + [ ...
from setuptools import setup, find_packages setup( name="ducted", version='1.2', url='http://github.com/ducted/duct', license='MIT', description="A monitoring agent and event processor", author='Colin Alston', author_email='colin.alston@gmail.com', packages=find_packages() + [ ...
<commit_before>from setuptools import setup, find_packages setup( name="ducted", version='1.2', url='http://github.com/ducted/duct', license='MIT', description="A monitoring agent and event processor", author='Colin Alston', author_email='colin.alston@gmail.com', packages=find_packages...
b1754f63327e641693a733afccd79dbf92666dec
setup.py
setup.py
from setuptools import find_packages, setup import os # Get version and release info, which is all stored in pulse2percept/version.py ver_file = os.path.join('pulse2percept', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, maintainer_ema...
from setuptools import find_packages, setup import os # Get version and release info, which is all stored in pulse2percept/version.py ver_file = os.path.join('pulse2percept', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, maintainer_ema...
Add install_requires for smoother pip installation
Add install_requires for smoother pip installation See also: https://github.com/uwescience/shablona/pull/54
Python
bsd-3-clause
mbeyeler/pulse2percept,uwescience/pulse2percept,uwescience/pulse2percept,uwescience/pulse2percept
from setuptools import find_packages, setup import os # Get version and release info, which is all stored in pulse2percept/version.py ver_file = os.path.join('pulse2percept', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, maintainer_ema...
from setuptools import find_packages, setup import os # Get version and release info, which is all stored in pulse2percept/version.py ver_file = os.path.join('pulse2percept', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, maintainer_ema...
<commit_before>from setuptools import find_packages, setup import os # Get version and release info, which is all stored in pulse2percept/version.py ver_file = os.path.join('pulse2percept', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, ...
from setuptools import find_packages, setup import os # Get version and release info, which is all stored in pulse2percept/version.py ver_file = os.path.join('pulse2percept', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, maintainer_ema...
from setuptools import find_packages, setup import os # Get version and release info, which is all stored in pulse2percept/version.py ver_file = os.path.join('pulse2percept', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, maintainer_ema...
<commit_before>from setuptools import find_packages, setup import os # Get version and release info, which is all stored in pulse2percept/version.py ver_file = os.path.join('pulse2percept', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, ...
0f9fa91b3aeba056f1c1153c7920f085f5a0788c
setup.py
setup.py
""" Flask-JWT-Extended ------------------- Flask-Login provides jwt endpoint protection for Flask. """ from setuptools import setup setup(name='Flask-JWT-Extended', version='1.5.0', url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland', author_...
""" Flask-JWT-Extended ------------------- Flask-Login provides jwt endpoint protection for Flask. """ from setuptools import setup setup(name='Flask-JWT-Extended', version='1.5.0', url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland', author_...
Make cryptography an optional install dependency
Make cryptography an optional install dependency
Python
mit
vimalloc/flask-jwt-extended
""" Flask-JWT-Extended ------------------- Flask-Login provides jwt endpoint protection for Flask. """ from setuptools import setup setup(name='Flask-JWT-Extended', version='1.5.0', url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland', author_...
""" Flask-JWT-Extended ------------------- Flask-Login provides jwt endpoint protection for Flask. """ from setuptools import setup setup(name='Flask-JWT-Extended', version='1.5.0', url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland', author_...
<commit_before>""" Flask-JWT-Extended ------------------- Flask-Login provides jwt endpoint protection for Flask. """ from setuptools import setup setup(name='Flask-JWT-Extended', version='1.5.0', url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland'...
""" Flask-JWT-Extended ------------------- Flask-Login provides jwt endpoint protection for Flask. """ from setuptools import setup setup(name='Flask-JWT-Extended', version='1.5.0', url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland', author_...
""" Flask-JWT-Extended ------------------- Flask-Login provides jwt endpoint protection for Flask. """ from setuptools import setup setup(name='Flask-JWT-Extended', version='1.5.0', url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland', author_...
<commit_before>""" Flask-JWT-Extended ------------------- Flask-Login provides jwt endpoint protection for Flask. """ from setuptools import setup setup(name='Flask-JWT-Extended', version='1.5.0', url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland'...
2a42a82d72d8bfbf11b605002bc4781fee320ea3
setup.py
setup.py
import sys try: from setuptools import setup except ImportError: from distutils import setup if sys.version_info[0] == 2: base_dir = 'python2' elif sys.version_info[0] == 3: base_dir = 'python3' readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( name='aniso8601', ...
import sys try: from setuptools import setup except ImportError: from distutils import setup if sys.version_info[0] == 2: base_dir = 'python2' elif sys.version_info[0] == 3: base_dir = 'python3' readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( name='aniso8601', ...
Add python2 specifically to classifier list.
Add python2 specifically to classifier list.
Python
bsd-3-clause
3stack-software/python-aniso8601-relativedelta
import sys try: from setuptools import setup except ImportError: from distutils import setup if sys.version_info[0] == 2: base_dir = 'python2' elif sys.version_info[0] == 3: base_dir = 'python3' readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( name='aniso8601', ...
import sys try: from setuptools import setup except ImportError: from distutils import setup if sys.version_info[0] == 2: base_dir = 'python2' elif sys.version_info[0] == 3: base_dir = 'python3' readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( name='aniso8601', ...
<commit_before>import sys try: from setuptools import setup except ImportError: from distutils import setup if sys.version_info[0] == 2: base_dir = 'python2' elif sys.version_info[0] == 3: base_dir = 'python3' readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( nam...
import sys try: from setuptools import setup except ImportError: from distutils import setup if sys.version_info[0] == 2: base_dir = 'python2' elif sys.version_info[0] == 3: base_dir = 'python3' readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( name='aniso8601', ...
import sys try: from setuptools import setup except ImportError: from distutils import setup if sys.version_info[0] == 2: base_dir = 'python2' elif sys.version_info[0] == 3: base_dir = 'python3' readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( name='aniso8601', ...
<commit_before>import sys try: from setuptools import setup except ImportError: from distutils import setup if sys.version_info[0] == 2: base_dir = 'python2' elif sys.version_info[0] == 3: base_dir = 'python3' readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( nam...
d3e20471497cad17d5f8a2c70d7be53f80efe000
setup.py
setup.py
from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.1.1', ...
from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.2.0', ...
Update download URL to match current version / tag.
Update download URL to match current version / tag.
Python
mit
BlasiusVonSzerencsi/pagerduty-events-api
from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.1.1', ...
from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.2.0', ...
<commit_before>from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tar...
from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.2.0', ...
from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.1.1', ...
<commit_before>from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tar...
0a1b387de5bcb1c7a8d223cce6f654a8bac5fed7
setup.py
setup.py
# encoding: utf-8 from setuptools import setup setup( name="django-minio-storage", license="MIT", use_scm_version=True, description="Django file storage using the minio python client", author="Tom Houlé", author_email="tom@kafunsho.be", url="https://github.com/py-pa/django-minio-storage", ...
# encoding: utf-8 from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name="django-minio-storage", license="MIT", use_scm_version=True, description="Django file storage using the minio python client", long_description=long_description, long_descript...
Add long_description to package metadata for display by PyPI
Add long_description to package metadata for display by PyPI
Python
apache-2.0
tomhoule/django-minio-storage
# encoding: utf-8 from setuptools import setup setup( name="django-minio-storage", license="MIT", use_scm_version=True, description="Django file storage using the minio python client", author="Tom Houlé", author_email="tom@kafunsho.be", url="https://github.com/py-pa/django-minio-storage", ...
# encoding: utf-8 from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name="django-minio-storage", license="MIT", use_scm_version=True, description="Django file storage using the minio python client", long_description=long_description, long_descript...
<commit_before># encoding: utf-8 from setuptools import setup setup( name="django-minio-storage", license="MIT", use_scm_version=True, description="Django file storage using the minio python client", author="Tom Houlé", author_email="tom@kafunsho.be", url="https://github.com/py-pa/django-mi...
# encoding: utf-8 from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name="django-minio-storage", license="MIT", use_scm_version=True, description="Django file storage using the minio python client", long_description=long_description, long_descript...
# encoding: utf-8 from setuptools import setup setup( name="django-minio-storage", license="MIT", use_scm_version=True, description="Django file storage using the minio python client", author="Tom Houlé", author_email="tom@kafunsho.be", url="https://github.com/py-pa/django-minio-storage", ...
<commit_before># encoding: utf-8 from setuptools import setup setup( name="django-minio-storage", license="MIT", use_scm_version=True, description="Django file storage using the minio python client", author="Tom Houlé", author_email="tom@kafunsho.be", url="https://github.com/py-pa/django-mi...
b5ee678115391885a00cfd1ee114c6b5b22f7a55
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup setup( name='facebook-python-sdk', version='0.2.0', description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authe...
#!/usr/bin/env python from distutils.core import setup setup( name='facebook-sdk', version='0.2.0', description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authentication.', author='Facebo...
Rename the package so we can push to PyPi
Rename the package so we can push to PyPi
Python
apache-2.0
Aloomaio/facebook-sdk,mobolic/facebook-sdk
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup setup( name='facebook-python-sdk', version='0.2.0', description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authe...
#!/usr/bin/env python from distutils.core import setup setup( name='facebook-sdk', version='0.2.0', description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authentication.', author='Facebo...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup setup( name='facebook-python-sdk', version='0.2.0', description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement...
#!/usr/bin/env python from distutils.core import setup setup( name='facebook-sdk', version='0.2.0', description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authentication.', author='Facebo...
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup setup( name='facebook-python-sdk', version='0.2.0', description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authe...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup setup( name='facebook-python-sdk', version='0.2.0', description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement...
6122a8488613bdd7d5aaf80e7238cd2d80687a91
stock.py
stock.py
class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): if price < 0: raise ValueError("price should not be negative") self.price = price
class Stock: def __init__(self, symbol): self.symbol = symbol self.price_history = [] @property def price(self): if self.price_history: return self.price_history[-1] else: return None def update(self, timestamp, price): if price < 0: ...
Update price attribute to price_history list as well as update function accordingly.
Update price attribute to price_history list as well as update function accordingly.
Python
mit
bsmukasa/stock_alerter
class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): if price < 0: raise ValueError("price should not be negative") self.price = price Update price attribute to price_history list as well as update functi...
class Stock: def __init__(self, symbol): self.symbol = symbol self.price_history = [] @property def price(self): if self.price_history: return self.price_history[-1] else: return None def update(self, timestamp, price): if price < 0: ...
<commit_before>class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): if price < 0: raise ValueError("price should not be negative") self.price = price <commit_msg>Update price attribute to price_history li...
class Stock: def __init__(self, symbol): self.symbol = symbol self.price_history = [] @property def price(self): if self.price_history: return self.price_history[-1] else: return None def update(self, timestamp, price): if price < 0: ...
class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): if price < 0: raise ValueError("price should not be negative") self.price = price Update price attribute to price_history list as well as update functi...
<commit_before>class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): if price < 0: raise ValueError("price should not be negative") self.price = price <commit_msg>Update price attribute to price_history li...
1583aaf429e252f32439759e1363f3908efa0b03
tasks.py
tasks.py
from celery import Celery from allsky import single_image_raspistill celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0') @celery.task def background_task(): # some long running task here (this simple example has no output) pid = single_image_raspistill(filename='st...
from celery import Celery from allsky import single_image_raspistill celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0') @celery.task def background_task(): # some long running task here (this simple example has no output) pid = single_image_raspistill(filename='st...
Set a higher default for darks
Set a higher default for darks
Python
mit
zemogle/raspberrysky
from celery import Celery from allsky import single_image_raspistill celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0') @celery.task def background_task(): # some long running task here (this simple example has no output) pid = single_image_raspistill(filename='st...
from celery import Celery from allsky import single_image_raspistill celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0') @celery.task def background_task(): # some long running task here (this simple example has no output) pid = single_image_raspistill(filename='st...
<commit_before>from celery import Celery from allsky import single_image_raspistill celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0') @celery.task def background_task(): # some long running task here (this simple example has no output) pid = single_image_raspisti...
from celery import Celery from allsky import single_image_raspistill celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0') @celery.task def background_task(): # some long running task here (this simple example has no output) pid = single_image_raspistill(filename='st...
from celery import Celery from allsky import single_image_raspistill celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0') @celery.task def background_task(): # some long running task here (this simple example has no output) pid = single_image_raspistill(filename='st...
<commit_before>from celery import Celery from allsky import single_image_raspistill celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0') @celery.task def background_task(): # some long running task here (this simple example has no output) pid = single_image_raspisti...
43c1f230382a3b7ad7776d28840c5305bb919ab9
jujugui/__init__.py
jujugui/__init__.py
# Copyright 2015 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyramid.config import Configurator def main(global_config, **settings): """Return a Pyramid WSGI application.""" config = Configurator(settings=settings) return ...
# Copyright 2015 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyramid.config import Configurator def main(global_config, **settings): """Return a Pyramid WSGI application.""" config = Configurator(settings=settings) return ...
Fix load order to fix routes.
Fix load order to fix routes.
Python
agpl-3.0
bac/juju-gui,bac/juju-gui,mitechie/juju-gui,mitechie/juju-gui,mitechie/juju-gui,mitechie/juju-gui,bac/juju-gui,bac/juju-gui
# Copyright 2015 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyramid.config import Configurator def main(global_config, **settings): """Return a Pyramid WSGI application.""" config = Configurator(settings=settings) return ...
# Copyright 2015 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyramid.config import Configurator def main(global_config, **settings): """Return a Pyramid WSGI application.""" config = Configurator(settings=settings) return ...
<commit_before># Copyright 2015 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyramid.config import Configurator def main(global_config, **settings): """Return a Pyramid WSGI application.""" config = Configurator(settings=settin...
# Copyright 2015 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyramid.config import Configurator def main(global_config, **settings): """Return a Pyramid WSGI application.""" config = Configurator(settings=settings) return ...
# Copyright 2015 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyramid.config import Configurator def main(global_config, **settings): """Return a Pyramid WSGI application.""" config = Configurator(settings=settings) return ...
<commit_before># Copyright 2015 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). from pyramid.config import Configurator def main(global_config, **settings): """Return a Pyramid WSGI application.""" config = Configurator(settings=settin...
75a4733d059f6aad758f93a9c6e4878093afd184
test-messages.py
test-messages.py
#!/usr/bin/python2 # # test-messages.py - This script publish a random MQTT messages every 2 s. # # Copyright (c) 2013-2015, Fabian Affolter <fabian@affolter-engineering.ch> # Released under the MIT license. See LICENSE file for details. # import random import time import mosquitto timestamp = int(time.time()) broke...
#!/usr/bin/python3 # # test-messages.py - This script publish a random MQTT messages every 2 s. # # Copyright (c) 2013-2016, Fabian Affolter <fabian@affolter-engineering.ch> # Released under the MIT license. See LICENSE file for details. # import random import time import paho.mqtt.client as mqtt timestamp = int(time...
Switch to paho-mqtt and make ready for py3
Switch to paho-mqtt and make ready for py3
Python
mit
fabaff/mqtt-panel,fabaff/mqtt-panel,fabaff/mqtt-panel
#!/usr/bin/python2 # # test-messages.py - This script publish a random MQTT messages every 2 s. # # Copyright (c) 2013-2015, Fabian Affolter <fabian@affolter-engineering.ch> # Released under the MIT license. See LICENSE file for details. # import random import time import mosquitto timestamp = int(time.time()) broke...
#!/usr/bin/python3 # # test-messages.py - This script publish a random MQTT messages every 2 s. # # Copyright (c) 2013-2016, Fabian Affolter <fabian@affolter-engineering.ch> # Released under the MIT license. See LICENSE file for details. # import random import time import paho.mqtt.client as mqtt timestamp = int(time...
<commit_before>#!/usr/bin/python2 # # test-messages.py - This script publish a random MQTT messages every 2 s. # # Copyright (c) 2013-2015, Fabian Affolter <fabian@affolter-engineering.ch> # Released under the MIT license. See LICENSE file for details. # import random import time import mosquitto timestamp = int(time...
#!/usr/bin/python3 # # test-messages.py - This script publish a random MQTT messages every 2 s. # # Copyright (c) 2013-2016, Fabian Affolter <fabian@affolter-engineering.ch> # Released under the MIT license. See LICENSE file for details. # import random import time import paho.mqtt.client as mqtt timestamp = int(time...
#!/usr/bin/python2 # # test-messages.py - This script publish a random MQTT messages every 2 s. # # Copyright (c) 2013-2015, Fabian Affolter <fabian@affolter-engineering.ch> # Released under the MIT license. See LICENSE file for details. # import random import time import mosquitto timestamp = int(time.time()) broke...
<commit_before>#!/usr/bin/python2 # # test-messages.py - This script publish a random MQTT messages every 2 s. # # Copyright (c) 2013-2015, Fabian Affolter <fabian@affolter-engineering.ch> # Released under the MIT license. See LICENSE file for details. # import random import time import mosquitto timestamp = int(time...
de1afc2feb1e7572ee7a59909247a2cde67492c9
tests/sample3.py
tests/sample3.py
class Bad(Exception): def __repr__(self): raise RuntimeError("I'm a bad class!") def a(): x = Bad() return x def b(): x = Bad() raise x a() try: b() except Exception as exc: print(exc)
class Bad(Exception): __slots__ = [] def __repr__(self): raise RuntimeError("I'm a bad class!") def a(): x = Bad() return x def b(): x = Bad() raise x a() try: b() except Exception as exc: print(exc)
Add __slots__ to satisfy tests (rudimentary_repr is still ordinary __repr__ if __slots__ are there).
Add __slots__ to satisfy tests (rudimentary_repr is still ordinary __repr__ if __slots__ are there).
Python
bsd-2-clause
ionelmc/python-hunter
class Bad(Exception): def __repr__(self): raise RuntimeError("I'm a bad class!") def a(): x = Bad() return x def b(): x = Bad() raise x a() try: b() except Exception as exc: print(exc) Add __slots__ to satisfy tests (rudimentary_repr is still ordinary __repr__ if __slots__ are th...
class Bad(Exception): __slots__ = [] def __repr__(self): raise RuntimeError("I'm a bad class!") def a(): x = Bad() return x def b(): x = Bad() raise x a() try: b() except Exception as exc: print(exc)
<commit_before>class Bad(Exception): def __repr__(self): raise RuntimeError("I'm a bad class!") def a(): x = Bad() return x def b(): x = Bad() raise x a() try: b() except Exception as exc: print(exc) <commit_msg>Add __slots__ to satisfy tests (rudimentary_repr is still ordinary _...
class Bad(Exception): __slots__ = [] def __repr__(self): raise RuntimeError("I'm a bad class!") def a(): x = Bad() return x def b(): x = Bad() raise x a() try: b() except Exception as exc: print(exc)
class Bad(Exception): def __repr__(self): raise RuntimeError("I'm a bad class!") def a(): x = Bad() return x def b(): x = Bad() raise x a() try: b() except Exception as exc: print(exc) Add __slots__ to satisfy tests (rudimentary_repr is still ordinary __repr__ if __slots__ are th...
<commit_before>class Bad(Exception): def __repr__(self): raise RuntimeError("I'm a bad class!") def a(): x = Bad() return x def b(): x = Bad() raise x a() try: b() except Exception as exc: print(exc) <commit_msg>Add __slots__ to satisfy tests (rudimentary_repr is still ordinary _...
9274cd94442b2507b2d83e2a3e305a0a3b5dc802
zhihudaily/utils.py
zhihudaily/utils.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import re import requests from zhihudaily.cache import cache @cache.memoize(timeout=1200) def make_request(url): session = requests.Session() session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Ubun...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import re import requests from zhihudaily.cache import cache @cache.memoize(timeout=1200) def make_request(url): session = requests.Session() session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Ubun...
Fix the unnecessary list comprehension
Fix the unnecessary list comprehension
Python
mit
lord63/zhihudaily,lord63/zhihudaily,lord63/zhihudaily
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import re import requests from zhihudaily.cache import cache @cache.memoize(timeout=1200) def make_request(url): session = requests.Session() session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Ubun...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import re import requests from zhihudaily.cache import cache @cache.memoize(timeout=1200) def make_request(url): session = requests.Session() session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Ubun...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import re import requests from zhihudaily.cache import cache @cache.memoize(timeout=1200) def make_request(url): session = requests.Session() session.headers.update({'User-Agent': 'Mozilla...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import re import requests from zhihudaily.cache import cache @cache.memoize(timeout=1200) def make_request(url): session = requests.Session() session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Ubun...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import re import requests from zhihudaily.cache import cache @cache.memoize(timeout=1200) def make_request(url): session = requests.Session() session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Ubun...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import re import requests from zhihudaily.cache import cache @cache.memoize(timeout=1200) def make_request(url): session = requests.Session() session.headers.update({'User-Agent': 'Mozilla...
9aa673593baa67d6e7fc861015041cfb6b69c6c3
bin/list_winconf.py
bin/list_winconf.py
#!/usr/bin/env python def main(): import argparse from ranwinconf.common import generate_host_config parser = argparse.ArgumentParser() parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from") parser.add_argument('--output', type=str, nargs='?', default='<stdo...
#!/usr/bin/env python def main(): import argparse from ranwinconf.common import generate_host_config parser = argparse.ArgumentParser() parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from") parser.add_argument('--output', type=str, nargs='?', default='<stdo...
Fix import of common module
Fix import of common module
Python
mit
sebbrochet/ranwinconf
#!/usr/bin/env python def main(): import argparse from ranwinconf.common import generate_host_config parser = argparse.ArgumentParser() parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from") parser.add_argument('--output', type=str, nargs='?', default='<stdo...
#!/usr/bin/env python def main(): import argparse from ranwinconf.common import generate_host_config parser = argparse.ArgumentParser() parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from") parser.add_argument('--output', type=str, nargs='?', default='<stdo...
<commit_before>#!/usr/bin/env python def main(): import argparse from ranwinconf.common import generate_host_config parser = argparse.ArgumentParser() parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from") parser.add_argument('--output', type=str, nargs='?',...
#!/usr/bin/env python def main(): import argparse from ranwinconf.common import generate_host_config parser = argparse.ArgumentParser() parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from") parser.add_argument('--output', type=str, nargs='?', default='<stdo...
#!/usr/bin/env python def main(): import argparse from ranwinconf.common import generate_host_config parser = argparse.ArgumentParser() parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from") parser.add_argument('--output', type=str, nargs='?', default='<stdo...
<commit_before>#!/usr/bin/env python def main(): import argparse from ranwinconf.common import generate_host_config parser = argparse.ArgumentParser() parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from") parser.add_argument('--output', type=str, nargs='?',...
c5127ec22cc5328baf829159a21c7bdf78044f55
webapp.py
webapp.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import json import traceback from bottle import route, run, get, request, response, abort from db import search, info @route('/v1/pois.json') def pois_v1(): global _db filter = request.query.get('filter', None) if filter i...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import json import re import traceback from bottle import route, run, get, request, response, abort from db import search, info @route('/v1/pois.json') def pois_v1(): global _db filter = request.query.get('filter', None) i...
Replace all extra characters with commas in queries; improves matching
Replace all extra characters with commas in queries; improves matching
Python
mit
guaq/paikkis
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import json import traceback from bottle import route, run, get, request, response, abort from db import search, info @route('/v1/pois.json') def pois_v1(): global _db filter = request.query.get('filter', None) if filter i...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import json import re import traceback from bottle import route, run, get, request, response, abort from db import search, info @route('/v1/pois.json') def pois_v1(): global _db filter = request.query.get('filter', None) i...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import json import traceback from bottle import route, run, get, request, response, abort from db import search, info @route('/v1/pois.json') def pois_v1(): global _db filter = request.query.get('filter', None) ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import json import re import traceback from bottle import route, run, get, request, response, abort from db import search, info @route('/v1/pois.json') def pois_v1(): global _db filter = request.query.get('filter', None) i...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import json import traceback from bottle import route, run, get, request, response, abort from db import search, info @route('/v1/pois.json') def pois_v1(): global _db filter = request.query.get('filter', None) if filter i...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import json import traceback from bottle import route, run, get, request, response, abort from db import search, info @route('/v1/pois.json') def pois_v1(): global _db filter = request.query.get('filter', None) ...
0004bde0d40dfea167d76a83c20acfffc0abfa28
poyo/__init__.py
poyo/__init__.py
# -*- coding: utf-8 -*- from .exceptions import PoyoException from .parser import parse_string __author__ = 'Raphael Pierzina' __email__ = 'raphael@hackebrot.de' __version__ = '0.3.0' __all__ = ['parse_string', 'PoyoException']
# -*- coding: utf-8 -*- import logging from .exceptions import PoyoException from .parser import parse_string __author__ = 'Raphael Pierzina' __email__ = 'raphael@hackebrot.de' __version__ = '0.3.0' logging.getLogger(__name__).addHandler(logging.NullHandler()) __all__ = ['parse_string', 'PoyoException']
Add NullHandler to poyo root logger
Add NullHandler to poyo root logger
Python
mit
hackebrot/poyo
# -*- coding: utf-8 -*- from .exceptions import PoyoException from .parser import parse_string __author__ = 'Raphael Pierzina' __email__ = 'raphael@hackebrot.de' __version__ = '0.3.0' __all__ = ['parse_string', 'PoyoException'] Add NullHandler to poyo root logger
# -*- coding: utf-8 -*- import logging from .exceptions import PoyoException from .parser import parse_string __author__ = 'Raphael Pierzina' __email__ = 'raphael@hackebrot.de' __version__ = '0.3.0' logging.getLogger(__name__).addHandler(logging.NullHandler()) __all__ = ['parse_string', 'PoyoException']
<commit_before># -*- coding: utf-8 -*- from .exceptions import PoyoException from .parser import parse_string __author__ = 'Raphael Pierzina' __email__ = 'raphael@hackebrot.de' __version__ = '0.3.0' __all__ = ['parse_string', 'PoyoException'] <commit_msg>Add NullHandler to poyo root logger<commit_after>
# -*- coding: utf-8 -*- import logging from .exceptions import PoyoException from .parser import parse_string __author__ = 'Raphael Pierzina' __email__ = 'raphael@hackebrot.de' __version__ = '0.3.0' logging.getLogger(__name__).addHandler(logging.NullHandler()) __all__ = ['parse_string', 'PoyoException']
# -*- coding: utf-8 -*- from .exceptions import PoyoException from .parser import parse_string __author__ = 'Raphael Pierzina' __email__ = 'raphael@hackebrot.de' __version__ = '0.3.0' __all__ = ['parse_string', 'PoyoException'] Add NullHandler to poyo root logger# -*- coding: utf-8 -*- import logging from .excepti...
<commit_before># -*- coding: utf-8 -*- from .exceptions import PoyoException from .parser import parse_string __author__ = 'Raphael Pierzina' __email__ = 'raphael@hackebrot.de' __version__ = '0.3.0' __all__ = ['parse_string', 'PoyoException'] <commit_msg>Add NullHandler to poyo root logger<commit_after># -*- coding:...
9ef86f0b5ff1b4e1521a3dc075ff16bc6aef2d0c
museum_site/scroll.py
museum_site/scroll.py
from django.db import models class Scroll(models.Model): # Constants SCROLL_TOP = """``` ╞╤═════════════════════════════════════════════╤╡ │ Scroll ### │ ╞═════════════════════════════════════════════╡ │ • • • • • • • • •│""" SCROLL_BOTTOM = ...
from django.db import models class Scroll(models.Model): # Constants SCROLL_TOP = """``` ╞╤═════════════════════════════════════════════╤╡ │ Scroll ### │ ╞═════════════════════════════════════════════╡ │ • • • • • • • • •│""" SCROLL_BOTTOM = ...
Fix for truncated whitespace on DB level
Fix for truncated whitespace on DB level
Python
mit
DrDos0016/z2,DrDos0016/z2,DrDos0016/z2
from django.db import models class Scroll(models.Model): # Constants SCROLL_TOP = """``` ╞╤═════════════════════════════════════════════╤╡ │ Scroll ### │ ╞═════════════════════════════════════════════╡ │ • • • • • • • • •│""" SCROLL_BOTTOM = ...
from django.db import models class Scroll(models.Model): # Constants SCROLL_TOP = """``` ╞╤═════════════════════════════════════════════╤╡ │ Scroll ### │ ╞═════════════════════════════════════════════╡ │ • • • • • • • • •│""" SCROLL_BOTTOM = ...
<commit_before>from django.db import models class Scroll(models.Model): # Constants SCROLL_TOP = """``` ╞╤═════════════════════════════════════════════╤╡ │ Scroll ### │ ╞═════════════════════════════════════════════╡ │ • • • • • • • • •│""" S...
from django.db import models class Scroll(models.Model): # Constants SCROLL_TOP = """``` ╞╤═════════════════════════════════════════════╤╡ │ Scroll ### │ ╞═════════════════════════════════════════════╡ │ • • • • • • • • •│""" SCROLL_BOTTOM = ...
from django.db import models class Scroll(models.Model): # Constants SCROLL_TOP = """``` ╞╤═════════════════════════════════════════════╤╡ │ Scroll ### │ ╞═════════════════════════════════════════════╡ │ • • • • • • • • •│""" SCROLL_BOTTOM = ...
<commit_before>from django.db import models class Scroll(models.Model): # Constants SCROLL_TOP = """``` ╞╤═════════════════════════════════════════════╤╡ │ Scroll ### │ ╞═════════════════════════════════════════════╡ │ • • • • • • • • •│""" S...
530f540b11959956c0cd08b95b2c7c373d829c8e
python/sherlock-and-valid-string.py
python/sherlock-and-valid-string.py
#!/bin/python3 import math import os import random import re import sys from collections import Counter def isValid(s): return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO" def containsOnlyOneDifferentCharacterCount(string): characterCounts = Counter(string) if allOccurencesAreEqual(char...
#!/bin/python3 import math import os import random import re import sys from collections import Counter import copy def isValid(s): return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO" def containsOnlyOneDifferentCharacterCount(string): characterCounts = Counter(string) if allOccurencesA...
Handle edge case with zero count
Handle edge case with zero count
Python
mit
rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank
#!/bin/python3 import math import os import random import re import sys from collections import Counter def isValid(s): return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO" def containsOnlyOneDifferentCharacterCount(string): characterCounts = Counter(string) if allOccurencesAreEqual(char...
#!/bin/python3 import math import os import random import re import sys from collections import Counter import copy def isValid(s): return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO" def containsOnlyOneDifferentCharacterCount(string): characterCounts = Counter(string) if allOccurencesA...
<commit_before>#!/bin/python3 import math import os import random import re import sys from collections import Counter def isValid(s): return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO" def containsOnlyOneDifferentCharacterCount(string): characterCounts = Counter(string) if allOccurenc...
#!/bin/python3 import math import os import random import re import sys from collections import Counter import copy def isValid(s): return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO" def containsOnlyOneDifferentCharacterCount(string): characterCounts = Counter(string) if allOccurencesA...
#!/bin/python3 import math import os import random import re import sys from collections import Counter def isValid(s): return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO" def containsOnlyOneDifferentCharacterCount(string): characterCounts = Counter(string) if allOccurencesAreEqual(char...
<commit_before>#!/bin/python3 import math import os import random import re import sys from collections import Counter def isValid(s): return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO" def containsOnlyOneDifferentCharacterCount(string): characterCounts = Counter(string) if allOccurenc...
a67b71ebadbffa864f60869878198ce4e2eb3fa3
class4/exercise7.py
class4/exercise7.py
from getpass import getpass from netmiko import ConnectHandler def main(): password = getpass() pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022} ssh_connection = ConnectHandler(**pynet_rtr2) ssh_connection.config_mode() lo...
# Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2. from getpass import getpass from netmiko import ConnectHandler def main(): password = getpass() pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022} ...
Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.
Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.
Python
apache-2.0
linkdebian/pynet_course
from getpass import getpass from netmiko import ConnectHandler def main(): password = getpass() pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022} ssh_connection = ConnectHandler(**pynet_rtr2) ssh_connection.config_mode() lo...
# Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2. from getpass import getpass from netmiko import ConnectHandler def main(): password = getpass() pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022} ...
<commit_before>from getpass import getpass from netmiko import ConnectHandler def main(): password = getpass() pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022} ssh_connection = ConnectHandler(**pynet_rtr2) ssh_connection.confi...
# Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2. from getpass import getpass from netmiko import ConnectHandler def main(): password = getpass() pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022} ...
from getpass import getpass from netmiko import ConnectHandler def main(): password = getpass() pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022} ssh_connection = ConnectHandler(**pynet_rtr2) ssh_connection.config_mode() lo...
<commit_before>from getpass import getpass from netmiko import ConnectHandler def main(): password = getpass() pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022} ssh_connection = ConnectHandler(**pynet_rtr2) ssh_connection.confi...
3fb1c14f750afa742f476e3b2fcc4d39662554e3
osf/models/subject.py
osf/models/subject.py
# -*- coding: utf-8 -*- from django.db import models from website.util import api_v2_url from osf.models.base import BaseModel, ObjectIDMixin class Subject(ObjectIDMixin, BaseModel): """A subject discipline that may be attached to a preprint.""" modm_model_path = 'website.project.taxonomies.Subject' mod...
# -*- coding: utf-8 -*- from django.db import models from website.util import api_v2_url from osf.models.base import BaseModel, ObjectIDMixin class Subject(ObjectIDMixin, BaseModel): """A subject discipline that may be attached to a preprint.""" modm_model_path = 'website.project.taxonomies.Subject' mod...
Change unicode rep to use Subject text
Change unicode rep to use Subject text
Python
apache-2.0
crcresearch/osf.io,Nesiehr/osf.io,CenterForOpenScience/osf.io,laurenrevere/osf.io,chrisseto/osf.io,icereval/osf.io,brianjgeiger/osf.io,CenterForOpenScience/osf.io,felliott/osf.io,aaxelb/osf.io,aaxelb/osf.io,chrisseto/osf.io,felliott/osf.io,cslzchen/osf.io,HalcyonChimera/osf.io,mfraezz/osf.io,leb2dg/osf.io,caseyrollins/...
# -*- coding: utf-8 -*- from django.db import models from website.util import api_v2_url from osf.models.base import BaseModel, ObjectIDMixin class Subject(ObjectIDMixin, BaseModel): """A subject discipline that may be attached to a preprint.""" modm_model_path = 'website.project.taxonomies.Subject' mod...
# -*- coding: utf-8 -*- from django.db import models from website.util import api_v2_url from osf.models.base import BaseModel, ObjectIDMixin class Subject(ObjectIDMixin, BaseModel): """A subject discipline that may be attached to a preprint.""" modm_model_path = 'website.project.taxonomies.Subject' mod...
<commit_before># -*- coding: utf-8 -*- from django.db import models from website.util import api_v2_url from osf.models.base import BaseModel, ObjectIDMixin class Subject(ObjectIDMixin, BaseModel): """A subject discipline that may be attached to a preprint.""" modm_model_path = 'website.project.taxonomies.S...
# -*- coding: utf-8 -*- from django.db import models from website.util import api_v2_url from osf.models.base import BaseModel, ObjectIDMixin class Subject(ObjectIDMixin, BaseModel): """A subject discipline that may be attached to a preprint.""" modm_model_path = 'website.project.taxonomies.Subject' mod...
# -*- coding: utf-8 -*- from django.db import models from website.util import api_v2_url from osf.models.base import BaseModel, ObjectIDMixin class Subject(ObjectIDMixin, BaseModel): """A subject discipline that may be attached to a preprint.""" modm_model_path = 'website.project.taxonomies.Subject' mod...
<commit_before># -*- coding: utf-8 -*- from django.db import models from website.util import api_v2_url from osf.models.base import BaseModel, ObjectIDMixin class Subject(ObjectIDMixin, BaseModel): """A subject discipline that may be attached to a preprint.""" modm_model_path = 'website.project.taxonomies.S...
49067acc356503f27b132183edc0884d8fd43af3
numba/exttypes/tests/test_type_recognition.py
numba/exttypes/tests/test_type_recognition.py
""" >>> test_typeof() """ import sys import numba from numba import * from nose.tools import raises @jit class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 @jit class Derived(Base): ...
""" >>> test_typeof() """ import numba from numba import * def make_base(compiler): @compiler class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 retur...
Test autojit specialized extension attribute type recognition
Test autojit specialized extension attribute type recognition
Python
bsd-2-clause
gdementen/numba,jriehl/numba,seibert/numba,stefanseefeld/numba,gmarkall/numba,numba/numba,sklam/numba,pitrou/numba,seibert/numba,pitrou/numba,gmarkall/numba,stefanseefeld/numba,cpcloud/numba,IntelLabs/numba,sklam/numba,IntelLabs/numba,gmarkall/numba,stuartarchibald/numba,IntelLabs/numba,jriehl/numba,pombredanne/numba,g...
""" >>> test_typeof() """ import sys import numba from numba import * from nose.tools import raises @jit class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 @jit class Derived(Base): ...
""" >>> test_typeof() """ import numba from numba import * def make_base(compiler): @compiler class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 retur...
<commit_before>""" >>> test_typeof() """ import sys import numba from numba import * from nose.tools import raises @jit class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 @jit class Deri...
""" >>> test_typeof() """ import numba from numba import * def make_base(compiler): @compiler class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 retur...
""" >>> test_typeof() """ import sys import numba from numba import * from nose.tools import raises @jit class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 @jit class Derived(Base): ...
<commit_before>""" >>> test_typeof() """ import sys import numba from numba import * from nose.tools import raises @jit class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): self.value1 = value1 self.value2 = value2 @jit class Deri...
6e67e2882c71e291dc1f161ffc7638f42c86ddbc
dmdlib/randpatterns/ephys_comms.py
dmdlib/randpatterns/ephys_comms.py
import zmq def send_message(msg, hostname='localhost', port=5556): """ sends a message to openephys ZMQ socket. :param msg: string :param hostname: ip address to send to :param port: zmq port number :return: none """ with zmq.Context() as ctx: with ctx.socket(zmq.REQ) as sock: ...
""" Module handling the communication with OpenEphys. """ import zmq TIMEOUT_MS = 250 # time to wait for ZMQ socket to respond before error. HOSTNAME = 'localhost' PORT = 5556 _ctx = zmq.Context() # should be only one made per process. def send_message(msg, hostname=HOSTNAME, port=PORT): """ sends a messa...
Fix zmq communications module Does not hang when connection is unavailable
Fix zmq communications module Does not hang when connection is unavailable
Python
mit
olfa-lab/DmdLib
import zmq def send_message(msg, hostname='localhost', port=5556): """ sends a message to openephys ZMQ socket. :param msg: string :param hostname: ip address to send to :param port: zmq port number :return: none """ with zmq.Context() as ctx: with ctx.socket(zmq.REQ) as sock: ...
""" Module handling the communication with OpenEphys. """ import zmq TIMEOUT_MS = 250 # time to wait for ZMQ socket to respond before error. HOSTNAME = 'localhost' PORT = 5556 _ctx = zmq.Context() # should be only one made per process. def send_message(msg, hostname=HOSTNAME, port=PORT): """ sends a messa...
<commit_before>import zmq def send_message(msg, hostname='localhost', port=5556): """ sends a message to openephys ZMQ socket. :param msg: string :param hostname: ip address to send to :param port: zmq port number :return: none """ with zmq.Context() as ctx: with ctx.socket(zmq...
""" Module handling the communication with OpenEphys. """ import zmq TIMEOUT_MS = 250 # time to wait for ZMQ socket to respond before error. HOSTNAME = 'localhost' PORT = 5556 _ctx = zmq.Context() # should be only one made per process. def send_message(msg, hostname=HOSTNAME, port=PORT): """ sends a messa...
import zmq def send_message(msg, hostname='localhost', port=5556): """ sends a message to openephys ZMQ socket. :param msg: string :param hostname: ip address to send to :param port: zmq port number :return: none """ with zmq.Context() as ctx: with ctx.socket(zmq.REQ) as sock: ...
<commit_before>import zmq def send_message(msg, hostname='localhost', port=5556): """ sends a message to openephys ZMQ socket. :param msg: string :param hostname: ip address to send to :param port: zmq port number :return: none """ with zmq.Context() as ctx: with ctx.socket(zmq...
3d3d6ef8393339f7246e6c6a9693d883ca3246f2
marconi/__init__.py
marconi/__init__.py
# Copyright (c) 2013 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
# Copyright (c) 2013 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Remove the __MARCONI_SETUP_ global from init
Remove the __MARCONI_SETUP_ global from init This was used to know when Marconi was being loaded and avoid registering configuration options and doing other things. This is not necessary anymore. Change-Id: Icf43302581eefb563b10ddec5831eeec0d068872 Partially-Implements: py3k-support
Python
apache-2.0
openstack/zaqar,openstack/zaqar,rackerlabs/marconi,openstack/zaqar,openstack/zaqar
# Copyright (c) 2013 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
# Copyright (c) 2013 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
<commit_before># Copyright (c) 2013 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# Copyright (c) 2013 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
# Copyright (c) 2013 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
<commit_before># Copyright (c) 2013 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
7a571230e9678f30e6178da01769424213471355
libapol/__init__.py
libapol/__init__.py
"""The SETools SELinux policy analysis library.""" # Copyright 2014, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 2...
"""The SETools SELinux policy analysis library.""" # Copyright 2014, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 2...
Add missing libapol rolequery import.
Add missing libapol rolequery import.
Python
lgpl-2.1
TresysTechnology/setools,TresysTechnology/setools,TresysTechnology/setools,TresysTechnology/setools
"""The SETools SELinux policy analysis library.""" # Copyright 2014, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 2...
"""The SETools SELinux policy analysis library.""" # Copyright 2014, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 2...
<commit_before>"""The SETools SELinux policy analysis library.""" # Copyright 2014, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, e...
"""The SETools SELinux policy analysis library.""" # Copyright 2014, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 2...
"""The SETools SELinux policy analysis library.""" # Copyright 2014, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 2...
<commit_before>"""The SETools SELinux policy analysis library.""" # Copyright 2014, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, e...
e6c41d8bd83b6710114a9d37915a0b3bbeb78d2a
sms_sponsorship/tests/load_tests.py
sms_sponsorship/tests/load_tests.py
# coding: utf-8 # pylint: disable=W7936 from locust import HttpLocust, TaskSet, task from random import randint class SmsSponsorWorkflow(TaskSet): @task(1) def send_sms(self): url = "/sms/mnc?sender=%2B41789364{}&service=compassion".format( randint(100, 999)) self.client.get(url) ...
# coding: utf-8 # pylint: disable=W7936 from locust import HttpLocust, TaskSet, task from random import randint class SmsSponsorWorkflow(TaskSet): @task(1) def send_sms(self): url = "/sms/mnc?sender=%2B4199{}&service=compassion&text=test".format( randint(1000000, 9999999)) self.cl...
Replace phone number and avoid sending SMS for load testing
Replace phone number and avoid sending SMS for load testing
Python
agpl-3.0
eicher31/compassion-modules,eicher31/compassion-modules,ecino/compassion-modules,ecino/compassion-modules,CompassionCH/compassion-modules,ecino/compassion-modules,CompassionCH/compassion-modules,CompassionCH/compassion-modules,eicher31/compassion-modules,eicher31/compassion-modules,ecino/compassion-modules,ecino/compas...
# coding: utf-8 # pylint: disable=W7936 from locust import HttpLocust, TaskSet, task from random import randint class SmsSponsorWorkflow(TaskSet): @task(1) def send_sms(self): url = "/sms/mnc?sender=%2B41789364{}&service=compassion".format( randint(100, 999)) self.client.get(url) ...
# coding: utf-8 # pylint: disable=W7936 from locust import HttpLocust, TaskSet, task from random import randint class SmsSponsorWorkflow(TaskSet): @task(1) def send_sms(self): url = "/sms/mnc?sender=%2B4199{}&service=compassion&text=test".format( randint(1000000, 9999999)) self.cl...
<commit_before># coding: utf-8 # pylint: disable=W7936 from locust import HttpLocust, TaskSet, task from random import randint class SmsSponsorWorkflow(TaskSet): @task(1) def send_sms(self): url = "/sms/mnc?sender=%2B41789364{}&service=compassion".format( randint(100, 999)) self.c...
# coding: utf-8 # pylint: disable=W7936 from locust import HttpLocust, TaskSet, task from random import randint class SmsSponsorWorkflow(TaskSet): @task(1) def send_sms(self): url = "/sms/mnc?sender=%2B4199{}&service=compassion&text=test".format( randint(1000000, 9999999)) self.cl...
# coding: utf-8 # pylint: disable=W7936 from locust import HttpLocust, TaskSet, task from random import randint class SmsSponsorWorkflow(TaskSet): @task(1) def send_sms(self): url = "/sms/mnc?sender=%2B41789364{}&service=compassion".format( randint(100, 999)) self.client.get(url) ...
<commit_before># coding: utf-8 # pylint: disable=W7936 from locust import HttpLocust, TaskSet, task from random import randint class SmsSponsorWorkflow(TaskSet): @task(1) def send_sms(self): url = "/sms/mnc?sender=%2B41789364{}&service=compassion".format( randint(100, 999)) self.c...
de69b88f47714848e4a73b6375d9665fb48faeda
climlab/__init__.py
climlab/__init__.py
__version__ = '0.5.0.dev0' # this should ensure that we can still import constants.py as climlab.constants from climlab.utils import constants from climlab.utils import thermo, legendre # some more useful shorcuts from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel from climlab.m...
__version__ = '0.5.0' # this should ensure that we can still import constants.py as climlab.constants from climlab.utils import constants from climlab.utils import thermo, legendre # some more useful shorcuts from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel from climlab.model....
Increment version number to 0.5.0
Increment version number to 0.5.0
Python
mit
cjcardinale/climlab,brian-rose/climlab,cjcardinale/climlab,cjcardinale/climlab,brian-rose/climlab
__version__ = '0.5.0.dev0' # this should ensure that we can still import constants.py as climlab.constants from climlab.utils import constants from climlab.utils import thermo, legendre # some more useful shorcuts from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel from climlab.m...
__version__ = '0.5.0' # this should ensure that we can still import constants.py as climlab.constants from climlab.utils import constants from climlab.utils import thermo, legendre # some more useful shorcuts from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel from climlab.model....
<commit_before>__version__ = '0.5.0.dev0' # this should ensure that we can still import constants.py as climlab.constants from climlab.utils import constants from climlab.utils import thermo, legendre # some more useful shorcuts from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel...
__version__ = '0.5.0' # this should ensure that we can still import constants.py as climlab.constants from climlab.utils import constants from climlab.utils import thermo, legendre # some more useful shorcuts from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel from climlab.model....
__version__ = '0.5.0.dev0' # this should ensure that we can still import constants.py as climlab.constants from climlab.utils import constants from climlab.utils import thermo, legendre # some more useful shorcuts from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel from climlab.m...
<commit_before>__version__ = '0.5.0.dev0' # this should ensure that we can still import constants.py as climlab.constants from climlab.utils import constants from climlab.utils import thermo, legendre # some more useful shorcuts from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel...
feb46fccee8f07d1ad563440cf52b344594f411c
cached_counts/models.py
cached_counts/models.py
from django.db import models from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify class CachedCount(models.Model): """ Fairly generic model for storing counts of various sorts. The object_id is used for linking through to the relevant URL. """ count_type...
from django.db import models from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify class CachedCount(models.Model): """ Fairly generic model for storing counts of various sorts. The object_id is used for linking through to the relevant URL. """ count_type...
Order by -count, name as there are duplicate names
Order by -count, name as there are duplicate names
Python
agpl-3.0
YoQuieroSaber/yournextrepresentative,mysociety/yournextrepresentative,openstate/yournextrepresentative,DemocracyClub/yournextrepresentative,openstate/yournextrepresentative,mysociety/yournextmp-popit,neavouli/yournextrepresentative,mysociety/yournextrepresentative,datamade/yournextmp-popit,datamade/yournextmp-popit,dat...
from django.db import models from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify class CachedCount(models.Model): """ Fairly generic model for storing counts of various sorts. The object_id is used for linking through to the relevant URL. """ count_type...
from django.db import models from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify class CachedCount(models.Model): """ Fairly generic model for storing counts of various sorts. The object_id is used for linking through to the relevant URL. """ count_type...
<commit_before>from django.db import models from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify class CachedCount(models.Model): """ Fairly generic model for storing counts of various sorts. The object_id is used for linking through to the relevant URL. """ ...
from django.db import models from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify class CachedCount(models.Model): """ Fairly generic model for storing counts of various sorts. The object_id is used for linking through to the relevant URL. """ count_type...
from django.db import models from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify class CachedCount(models.Model): """ Fairly generic model for storing counts of various sorts. The object_id is used for linking through to the relevant URL. """ count_type...
<commit_before>from django.db import models from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify class CachedCount(models.Model): """ Fairly generic model for storing counts of various sorts. The object_id is used for linking through to the relevant URL. """ ...
fdd57913aa11c29ecf160f32a9091e59de598899
plugins/YTranslate.py
plugins/YTranslate.py
""" Yandex Translation API """ import logging from urllib.parse import quote from telegram import Bot, Update from telegram.ext import Updater from requests import post import constants # pylint: disable=E0401 import settings LOGGER = logging.getLogger("YTranslate") YAURL = "https://translate.yandex.net/api/v1.5/tr....
""" Yandex Translation API """ import logging from urllib.parse import quote from telegram import Bot, Update from telegram.ext import Updater from requests import post import constants # pylint: disable=E0401 import settings import octeon LOGGER = logging.getLogger("YTranslate") YAURL = "https://translate.yandex.ne...
Update translate plugin to new message format
Update translate plugin to new message format
Python
mit
ProtoxiDe22/Octeon
""" Yandex Translation API """ import logging from urllib.parse import quote from telegram import Bot, Update from telegram.ext import Updater from requests import post import constants # pylint: disable=E0401 import settings LOGGER = logging.getLogger("YTranslate") YAURL = "https://translate.yandex.net/api/v1.5/tr....
""" Yandex Translation API """ import logging from urllib.parse import quote from telegram import Bot, Update from telegram.ext import Updater from requests import post import constants # pylint: disable=E0401 import settings import octeon LOGGER = logging.getLogger("YTranslate") YAURL = "https://translate.yandex.ne...
<commit_before>""" Yandex Translation API """ import logging from urllib.parse import quote from telegram import Bot, Update from telegram.ext import Updater from requests import post import constants # pylint: disable=E0401 import settings LOGGER = logging.getLogger("YTranslate") YAURL = "https://translate.yandex.n...
""" Yandex Translation API """ import logging from urllib.parse import quote from telegram import Bot, Update from telegram.ext import Updater from requests import post import constants # pylint: disable=E0401 import settings import octeon LOGGER = logging.getLogger("YTranslate") YAURL = "https://translate.yandex.ne...
""" Yandex Translation API """ import logging from urllib.parse import quote from telegram import Bot, Update from telegram.ext import Updater from requests import post import constants # pylint: disable=E0401 import settings LOGGER = logging.getLogger("YTranslate") YAURL = "https://translate.yandex.net/api/v1.5/tr....
<commit_before>""" Yandex Translation API """ import logging from urllib.parse import quote from telegram import Bot, Update from telegram.ext import Updater from requests import post import constants # pylint: disable=E0401 import settings LOGGER = logging.getLogger("YTranslate") YAURL = "https://translate.yandex.n...
7c08497e3e3e08f3ebf82eb594c25c1ab65b4d9d
SocialNPHS/language/tweet.py
SocialNPHS/language/tweet.py
""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tokenize import TweetTokenizer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet): """ Break up a tweet into individual word parts """ tknzr = TweetTokenizer() tokens = t...
""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tokenize import TweetTokenizer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet): """ Break up a tweet into individual word parts """ tknzr = TweetTokenizer() tokens = t...
Implement fallback for tokenizing non-nphs tagged users
Implement fallback for tokenizing non-nphs tagged users
Python
mit
SocialNPHS/SocialNPHS
""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tokenize import TweetTokenizer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet): """ Break up a tweet into individual word parts """ tknzr = TweetTokenizer() tokens = t...
""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tokenize import TweetTokenizer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet): """ Break up a tweet into individual word parts """ tknzr = TweetTokenizer() tokens = t...
<commit_before>""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tokenize import TweetTokenizer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet): """ Break up a tweet into individual word parts """ tknzr = TweetTokenizer()...
""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tokenize import TweetTokenizer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet): """ Break up a tweet into individual word parts """ tknzr = TweetTokenizer() tokens = t...
""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tokenize import TweetTokenizer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet): """ Break up a tweet into individual word parts """ tknzr = TweetTokenizer() tokens = t...
<commit_before>""" Given a tweet, tokenize it and shit. """ import nltk from nltk.tokenize import TweetTokenizer from SocialNPHS.sources.twitter.auth import api from SocialNPHS.sources.twitter import user def get_tweet_tags(tweet): """ Break up a tweet into individual word parts """ tknzr = TweetTokenizer()...
a212c5c859cef769bbe3d46c1da816bf6218b773
corehq/messaging/smsbackends/test/models.py
corehq/messaging/smsbackends/test/models.py
from django.conf import settings from corehq.apps.sms.mixin import SMSBackend from corehq.apps.sms.models import SQLSMSBackend from corehq.apps.sms.forms import BackendForm class TestSMSBackend(SMSBackend): @classmethod def get_api_id(cls): return "TEST" @classmethod def get_generic_name(cls)...
from django.conf import settings from corehq.apps.sms.mixin import SMSBackend from corehq.apps.sms.models import SQLSMSBackend from corehq.apps.sms.forms import BackendForm class TestSMSBackend(SMSBackend): @classmethod def get_api_id(cls): return "TEST" @classmethod def get_generic_name(cls)...
Copy test backend code from couch model to sql model
Copy test backend code from couch model to sql model
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq
from django.conf import settings from corehq.apps.sms.mixin import SMSBackend from corehq.apps.sms.models import SQLSMSBackend from corehq.apps.sms.forms import BackendForm class TestSMSBackend(SMSBackend): @classmethod def get_api_id(cls): return "TEST" @classmethod def get_generic_name(cls)...
from django.conf import settings from corehq.apps.sms.mixin import SMSBackend from corehq.apps.sms.models import SQLSMSBackend from corehq.apps.sms.forms import BackendForm class TestSMSBackend(SMSBackend): @classmethod def get_api_id(cls): return "TEST" @classmethod def get_generic_name(cls)...
<commit_before>from django.conf import settings from corehq.apps.sms.mixin import SMSBackend from corehq.apps.sms.models import SQLSMSBackend from corehq.apps.sms.forms import BackendForm class TestSMSBackend(SMSBackend): @classmethod def get_api_id(cls): return "TEST" @classmethod def get_ge...
from django.conf import settings from corehq.apps.sms.mixin import SMSBackend from corehq.apps.sms.models import SQLSMSBackend from corehq.apps.sms.forms import BackendForm class TestSMSBackend(SMSBackend): @classmethod def get_api_id(cls): return "TEST" @classmethod def get_generic_name(cls)...
from django.conf import settings from corehq.apps.sms.mixin import SMSBackend from corehq.apps.sms.models import SQLSMSBackend from corehq.apps.sms.forms import BackendForm class TestSMSBackend(SMSBackend): @classmethod def get_api_id(cls): return "TEST" @classmethod def get_generic_name(cls)...
<commit_before>from django.conf import settings from corehq.apps.sms.mixin import SMSBackend from corehq.apps.sms.models import SQLSMSBackend from corehq.apps.sms.forms import BackendForm class TestSMSBackend(SMSBackend): @classmethod def get_api_id(cls): return "TEST" @classmethod def get_ge...
68680b8b116e10ae4e35c39b8a62c0307ee65fe4
node/deduplicate.py
node/deduplicate.py
#!/usr/bin/env python from nodes import Node class Deduplicate(Node): char = "}" args = 1 results = 2 @Node.test_func([2], [4]) @Node.test_func([1.5], [3]) def double(self, inp: Node.number): """inp*2""" self.results = 1 return inp*2 def func(self, seq...
#!/usr/bin/env python from nodes import Node class Deduplicate(Node): char = "}" args = 1 results = 1 @Node.test_func([2], [4]) @Node.test_func([1.5], [3]) def double(self, inp: Node.number): """inp*2""" return inp*2 @Node.test_func([[1,2,3,1,1]], [[1,2,3]]) ...
Fix dedupe not preserving order
Fix dedupe not preserving order
Python
mit
muddyfish/PYKE,muddyfish/PYKE
#!/usr/bin/env python from nodes import Node class Deduplicate(Node): char = "}" args = 1 results = 2 @Node.test_func([2], [4]) @Node.test_func([1.5], [3]) def double(self, inp: Node.number): """inp*2""" self.results = 1 return inp*2 def func(self, seq...
#!/usr/bin/env python from nodes import Node class Deduplicate(Node): char = "}" args = 1 results = 1 @Node.test_func([2], [4]) @Node.test_func([1.5], [3]) def double(self, inp: Node.number): """inp*2""" return inp*2 @Node.test_func([[1,2,3,1,1]], [[1,2,3]]) ...
<commit_before>#!/usr/bin/env python from nodes import Node class Deduplicate(Node): char = "}" args = 1 results = 2 @Node.test_func([2], [4]) @Node.test_func([1.5], [3]) def double(self, inp: Node.number): """inp*2""" self.results = 1 return inp*2 def...
#!/usr/bin/env python from nodes import Node class Deduplicate(Node): char = "}" args = 1 results = 1 @Node.test_func([2], [4]) @Node.test_func([1.5], [3]) def double(self, inp: Node.number): """inp*2""" return inp*2 @Node.test_func([[1,2,3,1,1]], [[1,2,3]]) ...
#!/usr/bin/env python from nodes import Node class Deduplicate(Node): char = "}" args = 1 results = 2 @Node.test_func([2], [4]) @Node.test_func([1.5], [3]) def double(self, inp: Node.number): """inp*2""" self.results = 1 return inp*2 def func(self, seq...
<commit_before>#!/usr/bin/env python from nodes import Node class Deduplicate(Node): char = "}" args = 1 results = 2 @Node.test_func([2], [4]) @Node.test_func([1.5], [3]) def double(self, inp: Node.number): """inp*2""" self.results = 1 return inp*2 def...
3de1cdba6c438a5bc52c10fa469b675117b9ce45
src/trajectory/lissajous_trajectory.py
src/trajectory/lissajous_trajectory.py
#!/usr/bin/env python from math import pi, sin, cos from .trajectory import Trajectory class LissajousTrajectory(object, Trajectory): def __init__(self, A, B, a, b, period, delta=pi/2): Trajectory.__init__(self) self.A = A self.B = B self.a = a self.b = b self.peri...
#!/usr/bin/env python from math import pi, sin from .trajectory import Trajectory class LissajousTrajectory(object, Trajectory): def __init__(self, A, B, a, b, period, delta=pi/2): Trajectory.__init__(self) self.A = A self.B = B self.a = a self.b = b self.period = ...
Fix wrong formula for y position
fix: Fix wrong formula for y position
Python
mit
bit0001/trajectory_tracking,bit0001/trajectory_tracking
#!/usr/bin/env python from math import pi, sin, cos from .trajectory import Trajectory class LissajousTrajectory(object, Trajectory): def __init__(self, A, B, a, b, period, delta=pi/2): Trajectory.__init__(self) self.A = A self.B = B self.a = a self.b = b self.peri...
#!/usr/bin/env python from math import pi, sin from .trajectory import Trajectory class LissajousTrajectory(object, Trajectory): def __init__(self, A, B, a, b, period, delta=pi/2): Trajectory.__init__(self) self.A = A self.B = B self.a = a self.b = b self.period = ...
<commit_before>#!/usr/bin/env python from math import pi, sin, cos from .trajectory import Trajectory class LissajousTrajectory(object, Trajectory): def __init__(self, A, B, a, b, period, delta=pi/2): Trajectory.__init__(self) self.A = A self.B = B self.a = a self.b = b ...
#!/usr/bin/env python from math import pi, sin from .trajectory import Trajectory class LissajousTrajectory(object, Trajectory): def __init__(self, A, B, a, b, period, delta=pi/2): Trajectory.__init__(self) self.A = A self.B = B self.a = a self.b = b self.period = ...
#!/usr/bin/env python from math import pi, sin, cos from .trajectory import Trajectory class LissajousTrajectory(object, Trajectory): def __init__(self, A, B, a, b, period, delta=pi/2): Trajectory.__init__(self) self.A = A self.B = B self.a = a self.b = b self.peri...
<commit_before>#!/usr/bin/env python from math import pi, sin, cos from .trajectory import Trajectory class LissajousTrajectory(object, Trajectory): def __init__(self, A, B, a, b, period, delta=pi/2): Trajectory.__init__(self) self.A = A self.B = B self.a = a self.b = b ...
8f98b52ec670ecfe89f243348f7815b0ae71eed7
gog_utils/gol_connection.py
gog_utils/gol_connection.py
"""Module hosting class representing connection to GoL.""" import json import requests import os import stat WEBSITE_URL = "http://www.gogonlinux.com" AVAILABLE_GAMES = "/available" BETA_GAMES = "/available-beta" def obtain_available_games(): """Returns JSON list of all available games.""" resp = requests.ge...
"""Module hosting class representing connection to GoL.""" import json import requests import os import stat WEBSITE_URL = "http://www.gogonlinux.com" AVAILABLE_GAMES = "/available" BETA_GAMES = "/available-beta" def obtain_available_games(): """Returns JSON list of all available games.""" resp = requests.ge...
Disable falsely reported pylint errors due to unresolved library type
Disable falsely reported pylint errors due to unresolved library type Signed-off-by: Morgawr <528620cabbf4155b02d05fdb6013cd6bb6ad54b5@gmail.com>
Python
bsd-3-clause
Morgawr/gogonlinux,Morgawr/gogonlinux
"""Module hosting class representing connection to GoL.""" import json import requests import os import stat WEBSITE_URL = "http://www.gogonlinux.com" AVAILABLE_GAMES = "/available" BETA_GAMES = "/available-beta" def obtain_available_games(): """Returns JSON list of all available games.""" resp = requests.ge...
"""Module hosting class representing connection to GoL.""" import json import requests import os import stat WEBSITE_URL = "http://www.gogonlinux.com" AVAILABLE_GAMES = "/available" BETA_GAMES = "/available-beta" def obtain_available_games(): """Returns JSON list of all available games.""" resp = requests.ge...
<commit_before>"""Module hosting class representing connection to GoL.""" import json import requests import os import stat WEBSITE_URL = "http://www.gogonlinux.com" AVAILABLE_GAMES = "/available" BETA_GAMES = "/available-beta" def obtain_available_games(): """Returns JSON list of all available games.""" res...
"""Module hosting class representing connection to GoL.""" import json import requests import os import stat WEBSITE_URL = "http://www.gogonlinux.com" AVAILABLE_GAMES = "/available" BETA_GAMES = "/available-beta" def obtain_available_games(): """Returns JSON list of all available games.""" resp = requests.ge...
"""Module hosting class representing connection to GoL.""" import json import requests import os import stat WEBSITE_URL = "http://www.gogonlinux.com" AVAILABLE_GAMES = "/available" BETA_GAMES = "/available-beta" def obtain_available_games(): """Returns JSON list of all available games.""" resp = requests.ge...
<commit_before>"""Module hosting class representing connection to GoL.""" import json import requests import os import stat WEBSITE_URL = "http://www.gogonlinux.com" AVAILABLE_GAMES = "/available" BETA_GAMES = "/available-beta" def obtain_available_games(): """Returns JSON list of all available games.""" res...
31cf067f3e4da104551baf0e02332e22a75bb80a
tests/commit/field/test__field_math.py
tests/commit/field/test__field_math.py
from unittest import TestCase from phi import math from phi.geom import Box from phi import field from phi.physics import Domain class TestFieldMath(TestCase): def test_gradient(self): domain = Domain(x=4, y=3) phi = domain.grid() * (1, 2) grad = field.gradient(phi, stack_dim='gradient')...
from unittest import TestCase from phi import math from phi.field import StaggeredGrid, CenteredGrid from phi.geom import Box from phi import field from phi.physics import Domain class TestFieldMath(TestCase): def test_gradient(self): domain = Domain(x=4, y=3) phi = domain.grid() * (1, 2) ...
Add unit test, update documentation
Add unit test, update documentation
Python
mit
tum-pbs/PhiFlow,tum-pbs/PhiFlow
from unittest import TestCase from phi import math from phi.geom import Box from phi import field from phi.physics import Domain class TestFieldMath(TestCase): def test_gradient(self): domain = Domain(x=4, y=3) phi = domain.grid() * (1, 2) grad = field.gradient(phi, stack_dim='gradient')...
from unittest import TestCase from phi import math from phi.field import StaggeredGrid, CenteredGrid from phi.geom import Box from phi import field from phi.physics import Domain class TestFieldMath(TestCase): def test_gradient(self): domain = Domain(x=4, y=3) phi = domain.grid() * (1, 2) ...
<commit_before>from unittest import TestCase from phi import math from phi.geom import Box from phi import field from phi.physics import Domain class TestFieldMath(TestCase): def test_gradient(self): domain = Domain(x=4, y=3) phi = domain.grid() * (1, 2) grad = field.gradient(phi, stack_...
from unittest import TestCase from phi import math from phi.field import StaggeredGrid, CenteredGrid from phi.geom import Box from phi import field from phi.physics import Domain class TestFieldMath(TestCase): def test_gradient(self): domain = Domain(x=4, y=3) phi = domain.grid() * (1, 2) ...
from unittest import TestCase from phi import math from phi.geom import Box from phi import field from phi.physics import Domain class TestFieldMath(TestCase): def test_gradient(self): domain = Domain(x=4, y=3) phi = domain.grid() * (1, 2) grad = field.gradient(phi, stack_dim='gradient')...
<commit_before>from unittest import TestCase from phi import math from phi.geom import Box from phi import field from phi.physics import Domain class TestFieldMath(TestCase): def test_gradient(self): domain = Domain(x=4, y=3) phi = domain.grid() * (1, 2) grad = field.gradient(phi, stack_...
04cd17bb03f2b15cf37313cb3261dd37902d82b0
run_coveralls.py
run_coveralls.py
#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call if __name__ == '__main__': if 'TRAVIS' in os.environ: rc = call('coveralls') raise SystemExit(rc)
#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call if __name__ == '__main__': if 'TRAVIS' in os.environ: print("Calling coveralls") rc = call('coveralls') raise SystemExit(rc)
Add a check that coveralls is actually called
Add a check that coveralls is actually called
Python
mit
browniebroke/deezer-python,browniebroke/deezer-python,pfouque/deezer-python,browniebroke/deezer-python
#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call if __name__ == '__main__': if 'TRAVIS' in os.environ: rc = call('coveralls') raise SystemExit(rc) Add a check that coveralls is actually called
#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call if __name__ == '__main__': if 'TRAVIS' in os.environ: print("Calling coveralls") rc = call('coveralls') raise SystemExit(rc)
<commit_before>#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call if __name__ == '__main__': if 'TRAVIS' in os.environ: rc = call('coveralls') raise SystemExit(rc) <commit_msg>Add a check that coveralls is actually called<commit_after>
#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call if __name__ == '__main__': if 'TRAVIS' in os.environ: print("Calling coveralls") rc = call('coveralls') raise SystemExit(rc)
#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call if __name__ == '__main__': if 'TRAVIS' in os.environ: rc = call('coveralls') raise SystemExit(rc) Add a check that coveralls is actually called#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call ...
<commit_before>#!/bin/env/python # -*- coding: utf-8 import os from subprocess import call if __name__ == '__main__': if 'TRAVIS' in os.environ: rc = call('coveralls') raise SystemExit(rc) <commit_msg>Add a check that coveralls is actually called<commit_after>#!/bin/env/python # -*- coding: utf-8...
39161521ce75eddf3187a7412e4c22cbca88752d
logtacts/settings/heroku.py
logtacts/settings/heroku.py
from .base import * import dj_database_url DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL')) SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY") ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '.herokuapp.com', '.pebble.ink', ] STATI...
from .base import * import dj_database_url DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL')) SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY") ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '.herokuapp.com', '.pebble.ink', '.lo...
Add logtacts domain to allowed hosts
Add logtacts domain to allowed hosts
Python
mit
phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts
from .base import * import dj_database_url DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL')) SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY") ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '.herokuapp.com', '.pebble.ink', ] STATI...
from .base import * import dj_database_url DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL')) SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY") ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '.herokuapp.com', '.pebble.ink', '.lo...
<commit_before>from .base import * import dj_database_url DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL')) SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY") ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '.herokuapp.com', '.pebble...
from .base import * import dj_database_url DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL')) SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY") ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '.herokuapp.com', '.pebble.ink', '.lo...
from .base import * import dj_database_url DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL')) SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY") ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '.herokuapp.com', '.pebble.ink', ] STATI...
<commit_before>from .base import * import dj_database_url DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL')) SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY") ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '.herokuapp.com', '.pebble...
f13f14b134d76acac9cad8a93b47315fb0df1ba9
utils/stepvals.py
utils/stepvals.py
import math def get_range(val, step): stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:] if not stepvals[-1] == val: # if last element isn't the actual value stepvals += [val] # add it in return stepvals
import math def get_range(val, step): if args.step >= val: raise Exception("Step value is too large! Must be smaller than value.") stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:] if not stepvals[-1] == val: # if last element isn't the actual value stepvals += [val] # add it in return stepval...
Raise exception if step value is invalid.
Raise exception if step value is invalid.
Python
mit
wei2912/bce-simulation,wei2912/bce-simulation,wei2912/bce-simulation,wei2912/bce-simulation
import math def get_range(val, step): stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:] if not stepvals[-1] == val: # if last element isn't the actual value stepvals += [val] # add it in return stepvals Raise exception if step value is invalid.
import math def get_range(val, step): if args.step >= val: raise Exception("Step value is too large! Must be smaller than value.") stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:] if not stepvals[-1] == val: # if last element isn't the actual value stepvals += [val] # add it in return stepval...
<commit_before>import math def get_range(val, step): stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:] if not stepvals[-1] == val: # if last element isn't the actual value stepvals += [val] # add it in return stepvals <commit_msg>Raise exception if step value is invalid.<commit_after>
import math def get_range(val, step): if args.step >= val: raise Exception("Step value is too large! Must be smaller than value.") stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:] if not stepvals[-1] == val: # if last element isn't the actual value stepvals += [val] # add it in return stepval...
import math def get_range(val, step): stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:] if not stepvals[-1] == val: # if last element isn't the actual value stepvals += [val] # add it in return stepvals Raise exception if step value is invalid.import math def get_range(val, step): if args.step >...
<commit_before>import math def get_range(val, step): stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:] if not stepvals[-1] == val: # if last element isn't the actual value stepvals += [val] # add it in return stepvals <commit_msg>Raise exception if step value is invalid.<commit_after>import math ...
beac0323253454f343b32d42d8c065cfc4fcc04f
src/epiweb/apps/reminder/models.py
src/epiweb/apps/reminder/models.py
import datetime from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save class Reminder(models.Model): user = models.ForeignKey(User, unique=True) last_reminder = models.DateTimeField() next_reminder = models.DateField() wday = models.Inte...
import datetime from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save _ = lambda x: x # Reference: http://docs.python.org/library/time.html # - tm_wday => range [0,6], Monday is 0 MONDAY = 0 TUESDAY = 1 WEDNESDAY = 2 THURSDAY = 3 FRIDAY = 4 SATURDAY =...
Set available options for weekday field of reminder's model
Set available options for weekday field of reminder's model
Python
agpl-3.0
ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website
import datetime from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save class Reminder(models.Model): user = models.ForeignKey(User, unique=True) last_reminder = models.DateTimeField() next_reminder = models.DateField() wday = models.Inte...
import datetime from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save _ = lambda x: x # Reference: http://docs.python.org/library/time.html # - tm_wday => range [0,6], Monday is 0 MONDAY = 0 TUESDAY = 1 WEDNESDAY = 2 THURSDAY = 3 FRIDAY = 4 SATURDAY =...
<commit_before>import datetime from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save class Reminder(models.Model): user = models.ForeignKey(User, unique=True) last_reminder = models.DateTimeField() next_reminder = models.DateField() wda...
import datetime from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save _ = lambda x: x # Reference: http://docs.python.org/library/time.html # - tm_wday => range [0,6], Monday is 0 MONDAY = 0 TUESDAY = 1 WEDNESDAY = 2 THURSDAY = 3 FRIDAY = 4 SATURDAY =...
import datetime from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save class Reminder(models.Model): user = models.ForeignKey(User, unique=True) last_reminder = models.DateTimeField() next_reminder = models.DateField() wday = models.Inte...
<commit_before>import datetime from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save class Reminder(models.Model): user = models.ForeignKey(User, unique=True) last_reminder = models.DateTimeField() next_reminder = models.DateField() wda...
4f4d083ea8be7da6a4aecfd4bf15dc4e91a2d72d
palm/blink_model.py
palm/blink_model.py
import numpy from palm.aggregated_kinetic_model import AggregatedKineticModel from palm.probability_vector import make_prob_vec_from_state_ids from palm.state_collection import StateIDCollection class BlinkModel(AggregatedKineticModel): ''' BlinkModel is an AggregatedKineticModel. Two observation classes a...
import numpy from palm.aggregated_kinetic_model import AggregatedKineticModel from palm.probability_vector import make_prob_vec_from_state_ids from palm.state_collection import StateIDCollection class BlinkModel(AggregatedKineticModel): ''' BlinkModel is an AggregatedKineticModel. Two observation classes a...
Add method for final probability vector, which corresponds to all-photobleached collection.
Add method for final probability vector, which corresponds to all-photobleached collection.
Python
bsd-2-clause
grollins/palm
import numpy from palm.aggregated_kinetic_model import AggregatedKineticModel from palm.probability_vector import make_prob_vec_from_state_ids from palm.state_collection import StateIDCollection class BlinkModel(AggregatedKineticModel): ''' BlinkModel is an AggregatedKineticModel. Two observation classes a...
import numpy from palm.aggregated_kinetic_model import AggregatedKineticModel from palm.probability_vector import make_prob_vec_from_state_ids from palm.state_collection import StateIDCollection class BlinkModel(AggregatedKineticModel): ''' BlinkModel is an AggregatedKineticModel. Two observation classes a...
<commit_before>import numpy from palm.aggregated_kinetic_model import AggregatedKineticModel from palm.probability_vector import make_prob_vec_from_state_ids from palm.state_collection import StateIDCollection class BlinkModel(AggregatedKineticModel): ''' BlinkModel is an AggregatedKineticModel. Two observatio...
import numpy from palm.aggregated_kinetic_model import AggregatedKineticModel from palm.probability_vector import make_prob_vec_from_state_ids from palm.state_collection import StateIDCollection class BlinkModel(AggregatedKineticModel): ''' BlinkModel is an AggregatedKineticModel. Two observation classes a...
import numpy from palm.aggregated_kinetic_model import AggregatedKineticModel from palm.probability_vector import make_prob_vec_from_state_ids from palm.state_collection import StateIDCollection class BlinkModel(AggregatedKineticModel): ''' BlinkModel is an AggregatedKineticModel. Two observation classes a...
<commit_before>import numpy from palm.aggregated_kinetic_model import AggregatedKineticModel from palm.probability_vector import make_prob_vec_from_state_ids from palm.state_collection import StateIDCollection class BlinkModel(AggregatedKineticModel): ''' BlinkModel is an AggregatedKineticModel. Two observatio...
939a96a93d959bf2c26da37adb672f5538c1f222
mmmpaste/db.py
mmmpaste/db.py
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import md5 engine = create_engine("sqlite:///db/pastebin.db") session = scoped_session(sessionmaker(bind = engine, autoflush = False)) Base = declarative_b...
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import md5 engine = create_engine("sqlite:///db/pastebin.db") session = scoped_session(sessionmaker(bind = engine, autoflush = False)) Base = declarative_b...
Update base 62 id after paste creation.
Update base 62 id after paste creation.
Python
bsd-2-clause
ryanc/mmmpaste,ryanc/mmmpaste
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import md5 engine = create_engine("sqlite:///db/pastebin.db") session = scoped_session(sessionmaker(bind = engine, autoflush = False)) Base = declarative_b...
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import md5 engine = create_engine("sqlite:///db/pastebin.db") session = scoped_session(sessionmaker(bind = engine, autoflush = False)) Base = declarative_b...
<commit_before>from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import md5 engine = create_engine("sqlite:///db/pastebin.db") session = scoped_session(sessionmaker(bind = engine, autoflush = False)) Base ...
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import md5 engine = create_engine("sqlite:///db/pastebin.db") session = scoped_session(sessionmaker(bind = engine, autoflush = False)) Base = declarative_b...
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import md5 engine = create_engine("sqlite:///db/pastebin.db") session = scoped_session(sessionmaker(bind = engine, autoflush = False)) Base = declarative_b...
<commit_before>from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import md5 engine = create_engine("sqlite:///db/pastebin.db") session = scoped_session(sessionmaker(bind = engine, autoflush = False)) Base ...
25e4e89cf062375cf1a27e8697a7d79b5c662296
what_json/urls.py
what_json/urls.py
from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^checks$', 'what_json.views.checks'), url(r'^add_torrent$', 'what_json.views.add_torrent'), url(r'^sync$', 'what_json.views.sync'), url(r'^sync_replicas$', 'what_json.views.sync_replicas'), url(r'^upda...
from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'^checks$', 'what_json.views.checks'), url(r'^add_torrent$', 'what_json.views.add_torrent'), url(r'^sync$', 'what_json.views.sync'), url(r'^sync_replicas$', 'what_json.views.sync_replicas'), url(r'^update_freele...
Fix one more flake8 error.
Fix one more flake8 error.
Python
mit
karamanolev/WhatManager2,grandmasterchef/WhatManager2,grandmasterchef/WhatManager2,MADindustries/WhatManager2,karamanolev/WhatManager2,davols/WhatManager2,karamanolev/WhatManager2,karamanolev/WhatManager2,MADindustries/WhatManager2,davols/WhatManager2,grandmasterchef/WhatManager2,davols/WhatManager2,grandmasterchef/Wha...
from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^checks$', 'what_json.views.checks'), url(r'^add_torrent$', 'what_json.views.add_torrent'), url(r'^sync$', 'what_json.views.sync'), url(r'^sync_replicas$', 'what_json.views.sync_replicas'), url(r'^upda...
from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'^checks$', 'what_json.views.checks'), url(r'^add_torrent$', 'what_json.views.add_torrent'), url(r'^sync$', 'what_json.views.sync'), url(r'^sync_replicas$', 'what_json.views.sync_replicas'), url(r'^update_freele...
<commit_before>from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^checks$', 'what_json.views.checks'), url(r'^add_torrent$', 'what_json.views.add_torrent'), url(r'^sync$', 'what_json.views.sync'), url(r'^sync_replicas$', 'what_json.views.sync_replicas'), ...
from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'^checks$', 'what_json.views.checks'), url(r'^add_torrent$', 'what_json.views.add_torrent'), url(r'^sync$', 'what_json.views.sync'), url(r'^sync_replicas$', 'what_json.views.sync_replicas'), url(r'^update_freele...
from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^checks$', 'what_json.views.checks'), url(r'^add_torrent$', 'what_json.views.add_torrent'), url(r'^sync$', 'what_json.views.sync'), url(r'^sync_replicas$', 'what_json.views.sync_replicas'), url(r'^upda...
<commit_before>from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'^checks$', 'what_json.views.checks'), url(r'^add_torrent$', 'what_json.views.add_torrent'), url(r'^sync$', 'what_json.views.sync'), url(r'^sync_replicas$', 'what_json.views.sync_replicas'), ...
1ecc62d453a122443924b21cf04edf661f9d1878
mwikiircbot.py
mwikiircbot.py
import ircbotframe import sys class Handler: def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]): self.channels = channels self.bot = ircbotframe.ircBot(host, port, name, description) self.bot.bind("376", self.endMOTD) self....
import ircbotframe import sys class Handler: def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]): self.channels = channels self.bot = ircbotframe.ircBot(host, port, name, description) self.bot.bind("376", self.endMOTD) self....
Add command line argument to set bot name
Add command line argument to set bot name
Python
mit
fenhl/mwikiircbot
import ircbotframe import sys class Handler: def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]): self.channels = channels self.bot = ircbotframe.ircBot(host, port, name, description) self.bot.bind("376", self.endMOTD) self....
import ircbotframe import sys class Handler: def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]): self.channels = channels self.bot = ircbotframe.ircBot(host, port, name, description) self.bot.bind("376", self.endMOTD) self....
<commit_before>import ircbotframe import sys class Handler: def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]): self.channels = channels self.bot = ircbotframe.ircBot(host, port, name, description) self.bot.bind("376", self.endMOTD...
import ircbotframe import sys class Handler: def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]): self.channels = channels self.bot = ircbotframe.ircBot(host, port, name, description) self.bot.bind("376", self.endMOTD) self....
import ircbotframe import sys class Handler: def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]): self.channels = channels self.bot = ircbotframe.ircBot(host, port, name, description) self.bot.bind("376", self.endMOTD) self....
<commit_before>import ircbotframe import sys class Handler: def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]): self.channels = channels self.bot = ircbotframe.ircBot(host, port, name, description) self.bot.bind("376", self.endMOTD...
996cab9efe8c1bbc9a6922b76b1982ce37dcdccd
pigeonpost/tasks.py
pigeonpost/tasks.py
import datetime import logging from celery.task import task from django.core.mail.backends.smtp import EmailBackend from django.contrib.auth.models import User from pigeonpost.models import ContentQueue, Outbox logger = logging.getLogger('pigeonpost.tasks') def queue_to_send(sender, **kwargs): # Check to see i...
import datetime import logging from celery.task import task from django.core.mail.backends.smtp import EmailBackend from django.contrib.auth.models import User from pigeonpost.models import ContentQueue, Outbox logger = logging.getLogger('pigeonpost.tasks') @task def queue_to_send(sender, **kwargs): # Check to...
Make queue_to_send a celery task
Make queue_to_send a celery task
Python
mit
dragonfly-science/django-pigeonpost,dragonfly-science/django-pigeonpost
import datetime import logging from celery.task import task from django.core.mail.backends.smtp import EmailBackend from django.contrib.auth.models import User from pigeonpost.models import ContentQueue, Outbox logger = logging.getLogger('pigeonpost.tasks') def queue_to_send(sender, **kwargs): # Check to see i...
import datetime import logging from celery.task import task from django.core.mail.backends.smtp import EmailBackend from django.contrib.auth.models import User from pigeonpost.models import ContentQueue, Outbox logger = logging.getLogger('pigeonpost.tasks') @task def queue_to_send(sender, **kwargs): # Check to...
<commit_before>import datetime import logging from celery.task import task from django.core.mail.backends.smtp import EmailBackend from django.contrib.auth.models import User from pigeonpost.models import ContentQueue, Outbox logger = logging.getLogger('pigeonpost.tasks') def queue_to_send(sender, **kwargs): #...
import datetime import logging from celery.task import task from django.core.mail.backends.smtp import EmailBackend from django.contrib.auth.models import User from pigeonpost.models import ContentQueue, Outbox logger = logging.getLogger('pigeonpost.tasks') @task def queue_to_send(sender, **kwargs): # Check to...
import datetime import logging from celery.task import task from django.core.mail.backends.smtp import EmailBackend from django.contrib.auth.models import User from pigeonpost.models import ContentQueue, Outbox logger = logging.getLogger('pigeonpost.tasks') def queue_to_send(sender, **kwargs): # Check to see i...
<commit_before>import datetime import logging from celery.task import task from django.core.mail.backends.smtp import EmailBackend from django.contrib.auth.models import User from pigeonpost.models import ContentQueue, Outbox logger = logging.getLogger('pigeonpost.tasks') def queue_to_send(sender, **kwargs): #...
97f58ddc46946640870acf7d0f3d950c46d380d3
tests/conftest.py
tests/conftest.py
# -*- coding: utf-8 -*- ''' General-purpose fixtures for vdirsyncer's testsuite. ''' import logging import os import click_log from hypothesis import HealthCheck, Verbosity, settings import pytest @pytest.fixture(autouse=True) def setup_logging(): click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG) ...
# -*- coding: utf-8 -*- ''' General-purpose fixtures for vdirsyncer's testsuite. ''' import logging import os import click_log from hypothesis import HealthCheck, Verbosity, settings import pytest @pytest.fixture(autouse=True) def setup_logging(): click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG) ...
Disable health checks for distro builds
Disable health checks for distro builds
Python
mit
untitaker/vdirsyncer,untitaker/vdirsyncer,untitaker/vdirsyncer
# -*- coding: utf-8 -*- ''' General-purpose fixtures for vdirsyncer's testsuite. ''' import logging import os import click_log from hypothesis import HealthCheck, Verbosity, settings import pytest @pytest.fixture(autouse=True) def setup_logging(): click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG) ...
# -*- coding: utf-8 -*- ''' General-purpose fixtures for vdirsyncer's testsuite. ''' import logging import os import click_log from hypothesis import HealthCheck, Verbosity, settings import pytest @pytest.fixture(autouse=True) def setup_logging(): click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG) ...
<commit_before># -*- coding: utf-8 -*- ''' General-purpose fixtures for vdirsyncer's testsuite. ''' import logging import os import click_log from hypothesis import HealthCheck, Verbosity, settings import pytest @pytest.fixture(autouse=True) def setup_logging(): click_log.basic_config('vdirsyncer').setLevel(lo...
# -*- coding: utf-8 -*- ''' General-purpose fixtures for vdirsyncer's testsuite. ''' import logging import os import click_log from hypothesis import HealthCheck, Verbosity, settings import pytest @pytest.fixture(autouse=True) def setup_logging(): click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG) ...
# -*- coding: utf-8 -*- ''' General-purpose fixtures for vdirsyncer's testsuite. ''' import logging import os import click_log from hypothesis import HealthCheck, Verbosity, settings import pytest @pytest.fixture(autouse=True) def setup_logging(): click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG) ...
<commit_before># -*- coding: utf-8 -*- ''' General-purpose fixtures for vdirsyncer's testsuite. ''' import logging import os import click_log from hypothesis import HealthCheck, Verbosity, settings import pytest @pytest.fixture(autouse=True) def setup_logging(): click_log.basic_config('vdirsyncer').setLevel(lo...
e7ad2be6cdb87b84bfa77ff9824f2e9913c17599
tests/test_cmd.py
tests/test_cmd.py
import base64 import os from distutils.core import Command class TestCommand(Command): description = "Launch all tests under fusion_tables app" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def create_client_secret_file(self): clie...
import base64 import os from distutils.core import Command class TestCommand(Command): description = "Launch all tests under fusion_tables app" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def create_client_secret_file(self): clie...
Revert "Fix unit test python3 compatibility."
Revert "Fix unit test python3 compatibility." This reverts commit 6807e5a5966f1f37f69a54e255a9981918cc8fb6.
Python
mit
bsvetchine/django-fusion-tables
import base64 import os from distutils.core import Command class TestCommand(Command): description = "Launch all tests under fusion_tables app" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def create_client_secret_file(self): clie...
import base64 import os from distutils.core import Command class TestCommand(Command): description = "Launch all tests under fusion_tables app" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def create_client_secret_file(self): clie...
<commit_before>import base64 import os from distutils.core import Command class TestCommand(Command): description = "Launch all tests under fusion_tables app" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def create_client_secret_file(self...
import base64 import os from distutils.core import Command class TestCommand(Command): description = "Launch all tests under fusion_tables app" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def create_client_secret_file(self): clie...
import base64 import os from distutils.core import Command class TestCommand(Command): description = "Launch all tests under fusion_tables app" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def create_client_secret_file(self): clie...
<commit_before>import base64 import os from distutils.core import Command class TestCommand(Command): description = "Launch all tests under fusion_tables app" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def create_client_secret_file(self...
40a08503edef360bc2d07f1bfe5ecd37ffc4b1d1
oz/__init__.py
oz/__init__.py
""" Class for automated operating system installation. Oz is a set of classes to do automated operating system installation. It has built-in knowledge of the proper things to do for each of the supported operating systems, so the data that the user must provide is very minimal. This data is supplied in the form of an...
Add some basic pydoc documentation.
Add some basic pydoc documentation. Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>
Python
lgpl-2.1
nullr0ute/oz,cernops/oz,imcleod/oz,moofrank/oz,NeilBryant/oz,nullr0ute/oz,clalancette/oz,mgagne/oz,clalancette/oz,NeilBryant/oz,ndonegan/oz,ndonegan/oz,mgagne/oz,cernops/oz,moofrank/oz,imcleod/oz
Add some basic pydoc documentation. Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>
""" Class for automated operating system installation. Oz is a set of classes to do automated operating system installation. It has built-in knowledge of the proper things to do for each of the supported operating systems, so the data that the user must provide is very minimal. This data is supplied in the form of an...
<commit_before><commit_msg>Add some basic pydoc documentation. Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com><commit_after>
""" Class for automated operating system installation. Oz is a set of classes to do automated operating system installation. It has built-in knowledge of the proper things to do for each of the supported operating systems, so the data that the user must provide is very minimal. This data is supplied in the form of an...
Add some basic pydoc documentation. Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>""" Class for automated operating system installation. Oz is a set of classes to do automated operating system installation. It has built-in knowledge of the proper things to do for each of the su...
<commit_before><commit_msg>Add some basic pydoc documentation. Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com><commit_after>""" Class for automated operating system installation. Oz is a set of classes to do automated operating system installation. It has built-in knowledge of t...
dfa1424896b015fe376c523e13d0a59ceacca298
test/797-add-missing-boundaries.py
test/797-add-missing-boundaries.py
# NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' })
# NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 27, 44, 'boundaries', { 'kind': 'state' })
Test more than one thing
Test more than one thing The test _should_ have tested two boundaries with different `featurecla`, but ended up being a copy/paste error. This fixes that.
Python
mit
mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource
# NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) Test more ...
# NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 27, 44, 'boundaries', { 'kind': 'state' })
<commit_before># NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state...
# NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 27, 44, 'boundaries', { 'kind': 'state' })
# NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) Test more ...
<commit_before># NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state...
e42019c5648dddc2f705836401e422dd4077b55e
bottle_websocket/__init__.py
bottle_websocket/__init__.py
from plugin import websocket from server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8'
from .plugin import websocket from .server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8'
Update import syntax to fit python3
Update import syntax to fit python3
Python
mit
zeekay/bottle-websocket
from plugin import websocket from server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8' Update import syntax to fit python3
from .plugin import websocket from .server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8'
<commit_before>from plugin import websocket from server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8' <commit_msg>Update import syntax to fit python3<commit_after>
from .plugin import websocket from .server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8'
from plugin import websocket from server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8' Update import syntax to fit python3from .plugin import websocket from .server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8'...
<commit_before>from plugin import websocket from server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.8' <commit_msg>Update import syntax to fit python3<commit_after>from .plugin import websocket from .server import GeventWebSocketServer __all__ = ['websocket', 'Geve...
40d1645f4ad2aca18203ee5ebef1cbbecffa3c51
project/apps/api/signals.py
project/apps/api/signals.py
from django.db.models.signals import ( post_save, ) from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.conf import settings from .models import ( Contest, ) @receiver(post_save, sender=settings.AUTH_USER_MODEL) def user_post_save(sender, instance=None, creat...
from django.db.models.signals import ( post_save, ) from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.conf import settings from .models import ( Contest, ) @receiver(post_save, sender=settings.AUTH_USER_MODEL) def user_post_save(sender, instance=None, creat...
Add check for fixture loading
Add check for fixture loading
Python
bsd-2-clause
dbinetti/barberscore-django,barberscore/barberscore-api,dbinetti/barberscore-django,barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api
from django.db.models.signals import ( post_save, ) from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.conf import settings from .models import ( Contest, ) @receiver(post_save, sender=settings.AUTH_USER_MODEL) def user_post_save(sender, instance=None, creat...
from django.db.models.signals import ( post_save, ) from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.conf import settings from .models import ( Contest, ) @receiver(post_save, sender=settings.AUTH_USER_MODEL) def user_post_save(sender, instance=None, creat...
<commit_before>from django.db.models.signals import ( post_save, ) from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.conf import settings from .models import ( Contest, ) @receiver(post_save, sender=settings.AUTH_USER_MODEL) def user_post_save(sender, insta...
from django.db.models.signals import ( post_save, ) from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.conf import settings from .models import ( Contest, ) @receiver(post_save, sender=settings.AUTH_USER_MODEL) def user_post_save(sender, instance=None, creat...
from django.db.models.signals import ( post_save, ) from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.conf import settings from .models import ( Contest, ) @receiver(post_save, sender=settings.AUTH_USER_MODEL) def user_post_save(sender, instance=None, creat...
<commit_before>from django.db.models.signals import ( post_save, ) from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.conf import settings from .models import ( Contest, ) @receiver(post_save, sender=settings.AUTH_USER_MODEL) def user_post_save(sender, insta...
d48ae791364a0d29d60636adfde1f143858794cd
api/identifiers/serializers.py
api/identifiers/serializers.py
from rest_framework import serializers as ser from api.base.utils import absolute_reverse from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField class IdentifierSerializer(JSONAPISerializer): category = ser.CharField(read_only=True) filterable_fields = frozenset(['categor...
from rest_framework import serializers as ser from api.base.utils import absolute_reverse from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField class IdentifierSerializer(JSONAPISerializer): category = ser.CharField(read_only=True) filterable_fields = frozenset(['categor...
Remove rogue debugger how embarassing
Remove rogue debugger how embarassing
Python
apache-2.0
rdhyee/osf.io,alexschiller/osf.io,Johnetordoff/osf.io,caneruguz/osf.io,acshi/osf.io,abought/osf.io,amyshi188/osf.io,erinspace/osf.io,DanielSBrown/osf.io,chrisseto/osf.io,leb2dg/osf.io,mattclark/osf.io,samchrisinger/osf.io,alexschiller/osf.io,mluke93/osf.io,monikagrabowska/osf.io,mfraezz/osf.io,DanielSBrown/osf.io,crcre...
from rest_framework import serializers as ser from api.base.utils import absolute_reverse from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField class IdentifierSerializer(JSONAPISerializer): category = ser.CharField(read_only=True) filterable_fields = frozenset(['categor...
from rest_framework import serializers as ser from api.base.utils import absolute_reverse from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField class IdentifierSerializer(JSONAPISerializer): category = ser.CharField(read_only=True) filterable_fields = frozenset(['categor...
<commit_before>from rest_framework import serializers as ser from api.base.utils import absolute_reverse from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField class IdentifierSerializer(JSONAPISerializer): category = ser.CharField(read_only=True) filterable_fields = froz...
from rest_framework import serializers as ser from api.base.utils import absolute_reverse from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField class IdentifierSerializer(JSONAPISerializer): category = ser.CharField(read_only=True) filterable_fields = frozenset(['categor...
from rest_framework import serializers as ser from api.base.utils import absolute_reverse from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField class IdentifierSerializer(JSONAPISerializer): category = ser.CharField(read_only=True) filterable_fields = frozenset(['categor...
<commit_before>from rest_framework import serializers as ser from api.base.utils import absolute_reverse from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField class IdentifierSerializer(JSONAPISerializer): category = ser.CharField(read_only=True) filterable_fields = froz...
b375210cf7c6d6d327af61206b6ab36aaaeec6e0
posts/admin.py
posts/admin.py
from django.contrib import admin from reversion import VersionAdmin from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin from base.util import admin_commentable, editonly_fieldsets from .models import Post # Reversion-enabled Admin for problems @admin_commentable @editonly_fieldsets class PostA...
from django.contrib import admin from reversion import VersionAdmin from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin from base.util import admin_commentable, editonly_fieldsets from .models import Post # Reversion-enabled Admin for problems @admin_commentable @editonly_fieldsets class PostA...
Add ability to filter posts by site
posts: Add ability to filter posts by site
Python
mit
rtrembecky/roots,tbabej/roots,rtrembecky/roots,tbabej/roots,rtrembecky/roots,matus-stehlik/roots,matus-stehlik/roots,tbabej/roots,matus-stehlik/roots
from django.contrib import admin from reversion import VersionAdmin from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin from base.util import admin_commentable, editonly_fieldsets from .models import Post # Reversion-enabled Admin for problems @admin_commentable @editonly_fieldsets class PostA...
from django.contrib import admin from reversion import VersionAdmin from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin from base.util import admin_commentable, editonly_fieldsets from .models import Post # Reversion-enabled Admin for problems @admin_commentable @editonly_fieldsets class PostA...
<commit_before>from django.contrib import admin from reversion import VersionAdmin from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin from base.util import admin_commentable, editonly_fieldsets from .models import Post # Reversion-enabled Admin for problems @admin_commentable @editonly_fields...
from django.contrib import admin from reversion import VersionAdmin from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin from base.util import admin_commentable, editonly_fieldsets from .models import Post # Reversion-enabled Admin for problems @admin_commentable @editonly_fieldsets class PostA...
from django.contrib import admin from reversion import VersionAdmin from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin from base.util import admin_commentable, editonly_fieldsets from .models import Post # Reversion-enabled Admin for problems @admin_commentable @editonly_fieldsets class PostA...
<commit_before>from django.contrib import admin from reversion import VersionAdmin from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin from base.util import admin_commentable, editonly_fieldsets from .models import Post # Reversion-enabled Admin for problems @admin_commentable @editonly_fields...
cd201b193ae71c82f006d9532f926bbc49b6fce9
datacommons/__init__.py
datacommons/__init__.py
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Fix relative import that does not work with py 3.
Fix relative import that does not work with py 3.
Python
apache-2.0
datacommonsorg/api-python,datacommonsorg/api-python
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
<commit_before># Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
<commit_before># Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
4fde2d2c5ccd82373dab802f731d83cc2d3345df
tests/tests_core/test_core_util.py
tests/tests_core/test_core_util.py
import numpy as np from poliastro.core import util def test_rotation_matrix_x(): result = util.rotation_matrix(0.218, 0) expected = np.array( [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]] ) assert np.allclose(expected, result) def test_rotatio...
import numpy as np from poliastro.core import util def test_rotation_matrix_x(): result = util.rotation_matrix(0.218, 0) expected = np.array( [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]] ) assert np.allclose(expected, result) def test_rotation_matrix_y():...
Fix line endings in file
Fix line endings in file
Python
mit
Juanlu001/poliastro,Juanlu001/poliastro,Juanlu001/poliastro,poliastro/poliastro
import numpy as np from poliastro.core import util def test_rotation_matrix_x(): result = util.rotation_matrix(0.218, 0) expected = np.array( [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]] ) assert np.allclose(expected, result) def test_rotatio...
import numpy as np from poliastro.core import util def test_rotation_matrix_x(): result = util.rotation_matrix(0.218, 0) expected = np.array( [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]] ) assert np.allclose(expected, result) def test_rotation_matrix_y():...
<commit_before>import numpy as np from poliastro.core import util def test_rotation_matrix_x(): result = util.rotation_matrix(0.218, 0) expected = np.array( [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]] ) assert np.allclose(expected, result) d...
import numpy as np from poliastro.core import util def test_rotation_matrix_x(): result = util.rotation_matrix(0.218, 0) expected = np.array( [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]] ) assert np.allclose(expected, result) def test_rotation_matrix_y():...
import numpy as np from poliastro.core import util def test_rotation_matrix_x(): result = util.rotation_matrix(0.218, 0) expected = np.array( [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]] ) assert np.allclose(expected, result) def test_rotatio...
<commit_before>import numpy as np from poliastro.core import util def test_rotation_matrix_x(): result = util.rotation_matrix(0.218, 0) expected = np.array( [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]] ) assert np.allclose(expected, result) d...
ccdfafcf58fdf3dc1d95acc090445e56267bd4ab
numpy/distutils/__init__.py
numpy/distutils/__init__.py
from __version__ import version as __version__ # Must import local ccompiler ASAP in order to get # customized CCompiler.spawn effective. import ccompiler import unixccompiler from info import __doc__ from npy_pkg_config import * try: import __config__ _INSTALLED = True except ImportError: _INSTALLED = ...
import sys if sys.version_info[0] < 3: from __version__ import version as __version__ # Must import local ccompiler ASAP in order to get # customized CCompiler.spawn effective. import ccompiler import unixccompiler from info import __doc__ from npy_pkg_config import * try: imp...
Fix relative import in top numpy.distutils.
Fix relative import in top numpy.distutils.
Python
bsd-3-clause
stefanv/numpy,madphysicist/numpy,matthew-brett/numpy,githubmlai/numpy,Dapid/numpy,ahaldane/numpy,bringingheavendown/numpy,GrimDerp/numpy,matthew-brett/numpy,KaelChen/numpy,dwf/numpy,ewmoore/numpy,shoyer/numpy,GaZ3ll3/numpy,stefanv/numpy,gfyoung/numpy,mhvk/numpy,numpy/numpy,SunghanKim/numpy,Anwesh43/numpy,rgommers/numpy...
from __version__ import version as __version__ # Must import local ccompiler ASAP in order to get # customized CCompiler.spawn effective. import ccompiler import unixccompiler from info import __doc__ from npy_pkg_config import * try: import __config__ _INSTALLED = True except ImportError: _INSTALLED = ...
import sys if sys.version_info[0] < 3: from __version__ import version as __version__ # Must import local ccompiler ASAP in order to get # customized CCompiler.spawn effective. import ccompiler import unixccompiler from info import __doc__ from npy_pkg_config import * try: imp...
<commit_before> from __version__ import version as __version__ # Must import local ccompiler ASAP in order to get # customized CCompiler.spawn effective. import ccompiler import unixccompiler from info import __doc__ from npy_pkg_config import * try: import __config__ _INSTALLED = True except ImportError: ...
import sys if sys.version_info[0] < 3: from __version__ import version as __version__ # Must import local ccompiler ASAP in order to get # customized CCompiler.spawn effective. import ccompiler import unixccompiler from info import __doc__ from npy_pkg_config import * try: imp...
from __version__ import version as __version__ # Must import local ccompiler ASAP in order to get # customized CCompiler.spawn effective. import ccompiler import unixccompiler from info import __doc__ from npy_pkg_config import * try: import __config__ _INSTALLED = True except ImportError: _INSTALLED = ...
<commit_before> from __version__ import version as __version__ # Must import local ccompiler ASAP in order to get # customized CCompiler.spawn effective. import ccompiler import unixccompiler from info import __doc__ from npy_pkg_config import * try: import __config__ _INSTALLED = True except ImportError: ...
fa0821f49e26f508971c2f3c97b8696c98901e49
opensimplex_test.py
opensimplex_test.py
from PIL import Image # Depends on the Pillow lib from opensimplex import OpenSimplexNoise WIDTH = 512 HEIGHT = 512 FEATURE_SIZE = 24 def main(): simplex = OpenSimplexNoise() im = Image.new('L', (WIDTH, HEIGHT)) for y in range(0, HEIGHT): for x in range(0, WIDTH): #value = simplex.n...
from PIL import Image # Depends on the Pillow lib from opensimplex import OpenSimplexNoise WIDTH = 512 HEIGHT = 512 FEATURE_SIZE = 24 def main(): simplex = OpenSimplexNoise() im = Image.new('L', (WIDTH, HEIGHT)) for y in range(0, HEIGHT): for x in range(0, WIDTH): #value = simplex.n...
Save the generated noise image.
Save the generated noise image.
Python
mit
lmas/opensimplex,antiface/opensimplex
from PIL import Image # Depends on the Pillow lib from opensimplex import OpenSimplexNoise WIDTH = 512 HEIGHT = 512 FEATURE_SIZE = 24 def main(): simplex = OpenSimplexNoise() im = Image.new('L', (WIDTH, HEIGHT)) for y in range(0, HEIGHT): for x in range(0, WIDTH): #value = simplex.n...
from PIL import Image # Depends on the Pillow lib from opensimplex import OpenSimplexNoise WIDTH = 512 HEIGHT = 512 FEATURE_SIZE = 24 def main(): simplex = OpenSimplexNoise() im = Image.new('L', (WIDTH, HEIGHT)) for y in range(0, HEIGHT): for x in range(0, WIDTH): #value = simplex.n...
<commit_before> from PIL import Image # Depends on the Pillow lib from opensimplex import OpenSimplexNoise WIDTH = 512 HEIGHT = 512 FEATURE_SIZE = 24 def main(): simplex = OpenSimplexNoise() im = Image.new('L', (WIDTH, HEIGHT)) for y in range(0, HEIGHT): for x in range(0, WIDTH): #va...
from PIL import Image # Depends on the Pillow lib from opensimplex import OpenSimplexNoise WIDTH = 512 HEIGHT = 512 FEATURE_SIZE = 24 def main(): simplex = OpenSimplexNoise() im = Image.new('L', (WIDTH, HEIGHT)) for y in range(0, HEIGHT): for x in range(0, WIDTH): #value = simplex.n...
from PIL import Image # Depends on the Pillow lib from opensimplex import OpenSimplexNoise WIDTH = 512 HEIGHT = 512 FEATURE_SIZE = 24 def main(): simplex = OpenSimplexNoise() im = Image.new('L', (WIDTH, HEIGHT)) for y in range(0, HEIGHT): for x in range(0, WIDTH): #value = simplex.n...
<commit_before> from PIL import Image # Depends on the Pillow lib from opensimplex import OpenSimplexNoise WIDTH = 512 HEIGHT = 512 FEATURE_SIZE = 24 def main(): simplex = OpenSimplexNoise() im = Image.new('L', (WIDTH, HEIGHT)) for y in range(0, HEIGHT): for x in range(0, WIDTH): #va...
6da81cd09aa39d92e39b06bb2a65e1d1b1306b35
config.py
config.py
import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') class TestingConfig(Config): ...
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True if os.environ.get('DEV_DATABASE_URL'): ...
Use sqlite if no DEV_DATABASE specified in development env
Use sqlite if no DEV_DATABASE specified in development env
Python
mit
boltzj/movies-in-sf
import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') class TestingConfig(Config): ...
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True if os.environ.get('DEV_DATABASE_URL'): ...
<commit_before>import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') class TestingConfi...
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True if os.environ.get('DEV_DATABASE_URL'): ...
import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') class TestingConfig(Config): ...
<commit_before>import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') class TestingConfi...
e8ab72d069633aca71ae60d62ece3c0146289b18
xc7/utils/vivado_output_timing.py
xc7/utils/vivado_output_timing.py
""" Utility for generating TCL script to output timing information from a design checkpoint. """ import argparse def create_runme(f_out, args): print( """ report_timing_summary source {util_tcl} write_timing_info timing_{name}.json5 """.format(name=args.name, util_tcl=args.util_tcl), file=f_out ...
""" Utility for generating TCL script to output timing information from a design checkpoint. """ import argparse def create_output_timing(f_out, args): print( """ source {util_tcl} write_timing_info timing_{name}.json5 report_timing_summary """.format(name=args.name, util_tcl=args.util_tcl), file...
Correct function name and put report_timing_summary at end of script.
Correct function name and put report_timing_summary at end of script. Signed-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>
Python
isc
SymbiFlow/symbiflow-arch-defs,SymbiFlow/symbiflow-arch-defs
""" Utility for generating TCL script to output timing information from a design checkpoint. """ import argparse def create_runme(f_out, args): print( """ report_timing_summary source {util_tcl} write_timing_info timing_{name}.json5 """.format(name=args.name, util_tcl=args.util_tcl), file=f_out ...
""" Utility for generating TCL script to output timing information from a design checkpoint. """ import argparse def create_output_timing(f_out, args): print( """ source {util_tcl} write_timing_info timing_{name}.json5 report_timing_summary """.format(name=args.name, util_tcl=args.util_tcl), file...
<commit_before>""" Utility for generating TCL script to output timing information from a design checkpoint. """ import argparse def create_runme(f_out, args): print( """ report_timing_summary source {util_tcl} write_timing_info timing_{name}.json5 """.format(name=args.name, util_tcl=args.util_tcl), ...
""" Utility for generating TCL script to output timing information from a design checkpoint. """ import argparse def create_output_timing(f_out, args): print( """ source {util_tcl} write_timing_info timing_{name}.json5 report_timing_summary """.format(name=args.name, util_tcl=args.util_tcl), file...
""" Utility for generating TCL script to output timing information from a design checkpoint. """ import argparse def create_runme(f_out, args): print( """ report_timing_summary source {util_tcl} write_timing_info timing_{name}.json5 """.format(name=args.name, util_tcl=args.util_tcl), file=f_out ...
<commit_before>""" Utility for generating TCL script to output timing information from a design checkpoint. """ import argparse def create_runme(f_out, args): print( """ report_timing_summary source {util_tcl} write_timing_info timing_{name}.json5 """.format(name=args.name, util_tcl=args.util_tcl), ...
3bd8354db0931e8721e397a32bf696b023e692b7
test/664-raceway.py
test/664-raceway.py
# https://www.openstreetmap.org/way/28825404 assert_has_feature( 16, 10476, 25242, 'roads', { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' }) # Thunderoad Speedway Go-carts https://www.openstreetmap.org/way/59440900 assert_has_feature( 16, 10516, 25247, 'roads', { 'id': 59440900, 'kind': ...
# https://www.openstreetmap.org/way/28825404 assert_has_feature( 16, 10476, 25242, 'roads', { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' }) # https://www.openstreetmap.org/way/59440900 # Thunderoad Speedway Go-carts assert_has_feature( 16, 10516, 25247, 'roads', { 'id': 59440900, 'kind'...
Put weblink on separate line
Put weblink on separate line
Python
mit
mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource
# https://www.openstreetmap.org/way/28825404 assert_has_feature( 16, 10476, 25242, 'roads', { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' }) # Thunderoad Speedway Go-carts https://www.openstreetmap.org/way/59440900 assert_has_feature( 16, 10516, 25247, 'roads', { 'id': 59440900, 'kind': ...
# https://www.openstreetmap.org/way/28825404 assert_has_feature( 16, 10476, 25242, 'roads', { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' }) # https://www.openstreetmap.org/way/59440900 # Thunderoad Speedway Go-carts assert_has_feature( 16, 10516, 25247, 'roads', { 'id': 59440900, 'kind'...
<commit_before># https://www.openstreetmap.org/way/28825404 assert_has_feature( 16, 10476, 25242, 'roads', { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' }) # Thunderoad Speedway Go-carts https://www.openstreetmap.org/way/59440900 assert_has_feature( 16, 10516, 25247, 'roads', { 'id': 594...
# https://www.openstreetmap.org/way/28825404 assert_has_feature( 16, 10476, 25242, 'roads', { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' }) # https://www.openstreetmap.org/way/59440900 # Thunderoad Speedway Go-carts assert_has_feature( 16, 10516, 25247, 'roads', { 'id': 59440900, 'kind'...
# https://www.openstreetmap.org/way/28825404 assert_has_feature( 16, 10476, 25242, 'roads', { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' }) # Thunderoad Speedway Go-carts https://www.openstreetmap.org/way/59440900 assert_has_feature( 16, 10516, 25247, 'roads', { 'id': 59440900, 'kind': ...
<commit_before># https://www.openstreetmap.org/way/28825404 assert_has_feature( 16, 10476, 25242, 'roads', { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' }) # Thunderoad Speedway Go-carts https://www.openstreetmap.org/way/59440900 assert_has_feature( 16, 10516, 25247, 'roads', { 'id': 594...
0321d00276d803d5abee63f2a899681bd569235a
noisytweets/keywordsmanager.py
noisytweets/keywordsmanager.py
import time from noisytweets.tweetstreamer import TweetStreamer class KeywordsManager: max_keywords = 100 ping_timeout = 30 def __init__(self): self._keywords_tracking = [] self._keywords_info = {} self._tweetstreamer = TweetStreamer() def _get_dead_keywords(): dead...
import time from noisytweets.tweetstreamer import TweetStreamer class KeywordsManager: max_keywords = 100 ping_timeout = 30 def __init__(self): self._keywords_tracking = [] self._keywords_info = {} self._tweetstreamer = TweetStreamer() def _get_dead_keywords(): dead...
Return if keyword is already being tracked.
Return if keyword is already being tracked.
Python
agpl-3.0
musalbas/listentotwitter,musalbas/listentotwitter,musalbas/listentotwitter
import time from noisytweets.tweetstreamer import TweetStreamer class KeywordsManager: max_keywords = 100 ping_timeout = 30 def __init__(self): self._keywords_tracking = [] self._keywords_info = {} self._tweetstreamer = TweetStreamer() def _get_dead_keywords(): dead...
import time from noisytweets.tweetstreamer import TweetStreamer class KeywordsManager: max_keywords = 100 ping_timeout = 30 def __init__(self): self._keywords_tracking = [] self._keywords_info = {} self._tweetstreamer = TweetStreamer() def _get_dead_keywords(): dead...
<commit_before>import time from noisytweets.tweetstreamer import TweetStreamer class KeywordsManager: max_keywords = 100 ping_timeout = 30 def __init__(self): self._keywords_tracking = [] self._keywords_info = {} self._tweetstreamer = TweetStreamer() def _get_dead_keywords(...
import time from noisytweets.tweetstreamer import TweetStreamer class KeywordsManager: max_keywords = 100 ping_timeout = 30 def __init__(self): self._keywords_tracking = [] self._keywords_info = {} self._tweetstreamer = TweetStreamer() def _get_dead_keywords(): dead...
import time from noisytweets.tweetstreamer import TweetStreamer class KeywordsManager: max_keywords = 100 ping_timeout = 30 def __init__(self): self._keywords_tracking = [] self._keywords_info = {} self._tweetstreamer = TweetStreamer() def _get_dead_keywords(): dead...
<commit_before>import time from noisytweets.tweetstreamer import TweetStreamer class KeywordsManager: max_keywords = 100 ping_timeout = 30 def __init__(self): self._keywords_tracking = [] self._keywords_info = {} self._tweetstreamer = TweetStreamer() def _get_dead_keywords(...
998ab6f457a04ab24bbe062d9704242a207356fb
numpy/setupscons.py
numpy/setupscons.py
#!/usr/bin/env python def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py') config.add_subpackage('distutils') config.add_subpackage('testing') config.add_subpacka...
#!/usr/bin/env python from os.path import join as pjoin def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.misc_util import scons_generate_config_py pkgname = 'numpy' config = Configuration(pkgname,parent_package,top_path, setup...
Handle inplace generation of __config__.
Handle inplace generation of __config__. git-svn-id: 77a43f9646713b91fea7788fad5dfbf67e151ece@5583 94b884b6-d6fd-0310-90d3-974f1d3f35e1
Python
bsd-3-clause
efiring/numpy-work,Ademan/NumPy-GSoC,jasonmccampbell/numpy-refactor-sprint,efiring/numpy-work,illume/numpy3k,Ademan/NumPy-GSoC,illume/numpy3k,teoliphant/numpy-refactor,jasonmccampbell/numpy-refactor-sprint,chadnetzer/numpy-gaurdro,chadnetzer/numpy-gaurdro,efiring/numpy-work,jasonmccampbell/numpy-refactor-sprint,teoliph...
#!/usr/bin/env python def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py') config.add_subpackage('distutils') config.add_subpackage('testing') config.add_subpacka...
#!/usr/bin/env python from os.path import join as pjoin def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.misc_util import scons_generate_config_py pkgname = 'numpy' config = Configuration(pkgname,parent_package,top_path, setup...
<commit_before>#!/usr/bin/env python def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py') config.add_subpackage('distutils') config.add_subpackage('testing') conf...
#!/usr/bin/env python from os.path import join as pjoin def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.misc_util import scons_generate_config_py pkgname = 'numpy' config = Configuration(pkgname,parent_package,top_path, setup...
#!/usr/bin/env python def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py') config.add_subpackage('distutils') config.add_subpackage('testing') config.add_subpacka...
<commit_before>#!/usr/bin/env python def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py') config.add_subpackage('distutils') config.add_subpackage('testing') conf...
7644ed0e5f0fb3f57798ae65ecd87488d6a7cee1
sync_watchdog.py
sync_watchdog.py
from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": host}): # Does the proces...
from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": host}): # Does the proces...
Remove locking logic from sync watchdog
Remove locking logic from sync watchdog
Python
apache-2.0
abs0/tapiriik,marxin/tapiriik,cgourlay/tapiriik,cheatos101/tapiriik,brunoflores/tapiriik,olamy/tapiriik,abs0/tapiriik,abs0/tapiriik,cmgrote/tapiriik,marxin/tapiriik,cheatos101/tapiriik,mjnbike/tapiriik,cheatos101/tapiriik,campbellr/tapiriik,gavioto/tapiriik,abhijit86k/tapiriik,cpfair/tapiriik,dmschreiber/tapiriik,niosu...
from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": host}): # Does the proces...
from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": host}): # Does the proces...
<commit_before>from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": host}): # ...
from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": host}): # Does the proces...
from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": host}): # Does the proces...
<commit_before>from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": host}): # ...
67b83335956adc0892f32a21099e199dd2753a5d
todoman/__init__.py
todoman/__init__.py
from todoman import version __version__ = version.version __documentation__ = "https://todoman.rtfd.org/en/latest/"
from todoman import version # type: ignore __version__ = version.version __documentation__ = "https://todoman.rtfd.org/en/latest/"
Make mypy ignore auto-generated file
Make mypy ignore auto-generated file It won't be present in CI, and may not be present when developing.
Python
isc
pimutils/todoman
from todoman import version __version__ = version.version __documentation__ = "https://todoman.rtfd.org/en/latest/" Make mypy ignore auto-generated file It won't be present in CI, and may not be present when developing.
from todoman import version # type: ignore __version__ = version.version __documentation__ = "https://todoman.rtfd.org/en/latest/"
<commit_before>from todoman import version __version__ = version.version __documentation__ = "https://todoman.rtfd.org/en/latest/" <commit_msg>Make mypy ignore auto-generated file It won't be present in CI, and may not be present when developing.<commit_after>
from todoman import version # type: ignore __version__ = version.version __documentation__ = "https://todoman.rtfd.org/en/latest/"
from todoman import version __version__ = version.version __documentation__ = "https://todoman.rtfd.org/en/latest/" Make mypy ignore auto-generated file It won't be present in CI, and may not be present when developing.from todoman import version # type: ignore __version__ = version.version __documentation__ = "htt...
<commit_before>from todoman import version __version__ = version.version __documentation__ = "https://todoman.rtfd.org/en/latest/" <commit_msg>Make mypy ignore auto-generated file It won't be present in CI, and may not be present when developing.<commit_after>from todoman import version # type: ignore __version__ =...
4ad6f599cdcebc34e9f32a5ab8eaf44a3845ed21
pinry/pins/forms.py
pinry/pins/forms.py
from django import forms from .models import Pin class PinForm(forms.ModelForm): url = forms.CharField(required=False) image = forms.ImageField(label='or Upload', required=False) class Meta: model = Pin fields = ['url', 'image', 'description', 'tags'] def clean(self): cleane...
from django import forms from .models import Pin class PinForm(forms.ModelForm): url = forms.CharField(required=False) image = forms.ImageField(label='or Upload', required=False) _errors = { 'not_image': 'Requested URL is not an image file. Only images are currently supported.', 'pinned'...
Move ValidationError messages to a dictionary that can be accessed from PinForm.clean
Move ValidationError messages to a dictionary that can be accessed from PinForm.clean
Python
bsd-2-clause
supervacuo/pinry,Stackato-Apps/pinry,wangjun/pinry,dotcom900825/xishi,QLGu/pinry,pinry/pinry,lapo-luchini/pinry,dotcom900825/xishi,supervacuo/pinry,MSylvia/pinry,Stackato-Apps/pinry,lapo-luchini/pinry,wangjun/pinry,QLGu/pinry,pinry/pinry,MSylvia/pinry,MSylvia/pinry,pinry/pinry,Stackato-Apps/pinry,pinry/pinry,supervacuo...
from django import forms from .models import Pin class PinForm(forms.ModelForm): url = forms.CharField(required=False) image = forms.ImageField(label='or Upload', required=False) class Meta: model = Pin fields = ['url', 'image', 'description', 'tags'] def clean(self): cleane...
from django import forms from .models import Pin class PinForm(forms.ModelForm): url = forms.CharField(required=False) image = forms.ImageField(label='or Upload', required=False) _errors = { 'not_image': 'Requested URL is not an image file. Only images are currently supported.', 'pinned'...
<commit_before>from django import forms from .models import Pin class PinForm(forms.ModelForm): url = forms.CharField(required=False) image = forms.ImageField(label='or Upload', required=False) class Meta: model = Pin fields = ['url', 'image', 'description', 'tags'] def clean(self):...
from django import forms from .models import Pin class PinForm(forms.ModelForm): url = forms.CharField(required=False) image = forms.ImageField(label='or Upload', required=False) _errors = { 'not_image': 'Requested URL is not an image file. Only images are currently supported.', 'pinned'...
from django import forms from .models import Pin class PinForm(forms.ModelForm): url = forms.CharField(required=False) image = forms.ImageField(label='or Upload', required=False) class Meta: model = Pin fields = ['url', 'image', 'description', 'tags'] def clean(self): cleane...
<commit_before>from django import forms from .models import Pin class PinForm(forms.ModelForm): url = forms.CharField(required=False) image = forms.ImageField(label='or Upload', required=False) class Meta: model = Pin fields = ['url', 'image', 'description', 'tags'] def clean(self):...
b8bad6cda4bdc78d15303002db6687fbae447e51
openacademy/model/openacademy_course.py
openacademy/model/openacademy_course.py
from openerp import models, fields, api class Course(models.Model): _name = 'openacademy.course' # Model odoo name name = fields.Char(string='Title', required=True) # Field reserved to identified name record description = fields.Text(string='Description') responsible_id = fields.Many2one('res.use...
from openerp import models, fields, api class Course(models.Model): _name = 'openacademy.course' # Model odoo name name = fields.Char(string='Title', required=True) # Field reserved to identified name record description = fields.Text(string='Description') responsible_id = fields.Many2one('res.use...
Modify copy method into inherit
[REF] openacademy: Modify copy method into inherit
Python
apache-2.0
felipejta/openacademy-project_072015
from openerp import models, fields, api class Course(models.Model): _name = 'openacademy.course' # Model odoo name name = fields.Char(string='Title', required=True) # Field reserved to identified name record description = fields.Text(string='Description') responsible_id = fields.Many2one('res.use...
from openerp import models, fields, api class Course(models.Model): _name = 'openacademy.course' # Model odoo name name = fields.Char(string='Title', required=True) # Field reserved to identified name record description = fields.Text(string='Description') responsible_id = fields.Many2one('res.use...
<commit_before>from openerp import models, fields, api class Course(models.Model): _name = 'openacademy.course' # Model odoo name name = fields.Char(string='Title', required=True) # Field reserved to identified name record description = fields.Text(string='Description') responsible_id = fields.Ma...
from openerp import models, fields, api class Course(models.Model): _name = 'openacademy.course' # Model odoo name name = fields.Char(string='Title', required=True) # Field reserved to identified name record description = fields.Text(string='Description') responsible_id = fields.Many2one('res.use...
from openerp import models, fields, api class Course(models.Model): _name = 'openacademy.course' # Model odoo name name = fields.Char(string='Title', required=True) # Field reserved to identified name record description = fields.Text(string='Description') responsible_id = fields.Many2one('res.use...
<commit_before>from openerp import models, fields, api class Course(models.Model): _name = 'openacademy.course' # Model odoo name name = fields.Char(string='Title', required=True) # Field reserved to identified name record description = fields.Text(string='Description') responsible_id = fields.Ma...
f80bd7dbb1b66f3fec52200ecfbc50d779caca05
src/tmlib/workflow/jterator/args.py
src/tmlib/workflow/jterator/args.py
from tmlib.workflow.args import Argument from tmlib.workflow.args import BatchArguments from tmlib.workflow.args import SubmissionArguments from tmlib.workflow.args import ExtraArguments from tmlib.workflow.registry import batch_args from tmlib.workflow.registry import submission_args from tmlib.workflow.registry impor...
from tmlib.workflow.args import Argument from tmlib.workflow.args import BatchArguments from tmlib.workflow.args import SubmissionArguments from tmlib.workflow.args import ExtraArguments from tmlib.workflow.registry import batch_args from tmlib.workflow.registry import submission_args from tmlib.workflow.registry impor...
Fix bug in function that lists existing jterator projects
Fix bug in function that lists existing jterator projects
Python
agpl-3.0
TissueMAPS/TmLibrary,TissueMAPS/TmLibrary,TissueMAPS/TmLibrary,TissueMAPS/TmLibrary,TissueMAPS/TmLibrary
from tmlib.workflow.args import Argument from tmlib.workflow.args import BatchArguments from tmlib.workflow.args import SubmissionArguments from tmlib.workflow.args import ExtraArguments from tmlib.workflow.registry import batch_args from tmlib.workflow.registry import submission_args from tmlib.workflow.registry impor...
from tmlib.workflow.args import Argument from tmlib.workflow.args import BatchArguments from tmlib.workflow.args import SubmissionArguments from tmlib.workflow.args import ExtraArguments from tmlib.workflow.registry import batch_args from tmlib.workflow.registry import submission_args from tmlib.workflow.registry impor...
<commit_before>from tmlib.workflow.args import Argument from tmlib.workflow.args import BatchArguments from tmlib.workflow.args import SubmissionArguments from tmlib.workflow.args import ExtraArguments from tmlib.workflow.registry import batch_args from tmlib.workflow.registry import submission_args from tmlib.workflow...
from tmlib.workflow.args import Argument from tmlib.workflow.args import BatchArguments from tmlib.workflow.args import SubmissionArguments from tmlib.workflow.args import ExtraArguments from tmlib.workflow.registry import batch_args from tmlib.workflow.registry import submission_args from tmlib.workflow.registry impor...
from tmlib.workflow.args import Argument from tmlib.workflow.args import BatchArguments from tmlib.workflow.args import SubmissionArguments from tmlib.workflow.args import ExtraArguments from tmlib.workflow.registry import batch_args from tmlib.workflow.registry import submission_args from tmlib.workflow.registry impor...
<commit_before>from tmlib.workflow.args import Argument from tmlib.workflow.args import BatchArguments from tmlib.workflow.args import SubmissionArguments from tmlib.workflow.args import ExtraArguments from tmlib.workflow.registry import batch_args from tmlib.workflow.registry import submission_args from tmlib.workflow...
86df5fe205e3a913f5048bef3aa29804dd731d4b
docdown/__init__.py
docdown/__init__.py
# -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '__version__ = '__version__ = '__version__ = '0.2.7''''
# -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '0.2.7'
Fix (another) syntax error. Thanks, bumpversion
Fix (another) syntax error. Thanks, bumpversion
Python
bsd-3-clause
livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python
# -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '__version__ = '__version__ = '__version__ = '0.2.7'''' Fix (another) syntax error. Thanks, bumpversion
# -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '0.2.7'
<commit_before># -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '__version__ = '__version__ = '__version__ = '0.2.7'''' <commit_msg>Fix (another) syntax error. Thanks, bumpversion<commit_after>
# -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '0.2.7'
# -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '__version__ = '__version__ = '__version__ = '0.2.7'''' Fix (another) syntax error. Thanks, bumpversion# -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '0.2.7'
<commit_before># -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'jason@mobelux.com' __version__ = '__version__ = '__version__ = '__version__ = '0.2.7'''' <commit_msg>Fix (another) syntax error. Thanks, bumpversion<commit_after># -*- coding: utf-8 -*- __author__ = """Jason Emerick""" __email__ = 'j...
7e1d42e6730336296ef3b702eb4cde64ce8410c5
dockerpuller/app.py
dockerpuller/app.py
from flask import Flask from flask import request from flask import jsonify import json import subprocess app = Flask(__name__) config = None @app.route('/', methods=['POST']) def hook_listen(): if request.method == 'POST': token = request.args.get('token') if token == config['token']: ...
from flask import Flask from flask import request from flask import jsonify import json import subprocess app = Flask(__name__) config = None @app.route('/', methods=['POST']) def hook_listen(): if request.method == 'POST': token = request.args.get('token') if token == config['token']: ...
Define default values for host and port
Define default values for host and port
Python
mit
glowdigitalmedia/docker-puller,nicocoffo/docker-puller,nicocoffo/docker-puller,glowdigitalmedia/docker-puller
from flask import Flask from flask import request from flask import jsonify import json import subprocess app = Flask(__name__) config = None @app.route('/', methods=['POST']) def hook_listen(): if request.method == 'POST': token = request.args.get('token') if token == config['token']: ...
from flask import Flask from flask import request from flask import jsonify import json import subprocess app = Flask(__name__) config = None @app.route('/', methods=['POST']) def hook_listen(): if request.method == 'POST': token = request.args.get('token') if token == config['token']: ...
<commit_before>from flask import Flask from flask import request from flask import jsonify import json import subprocess app = Flask(__name__) config = None @app.route('/', methods=['POST']) def hook_listen(): if request.method == 'POST': token = request.args.get('token') if token == config['token...
from flask import Flask from flask import request from flask import jsonify import json import subprocess app = Flask(__name__) config = None @app.route('/', methods=['POST']) def hook_listen(): if request.method == 'POST': token = request.args.get('token') if token == config['token']: ...
from flask import Flask from flask import request from flask import jsonify import json import subprocess app = Flask(__name__) config = None @app.route('/', methods=['POST']) def hook_listen(): if request.method == 'POST': token = request.args.get('token') if token == config['token']: ...
<commit_before>from flask import Flask from flask import request from flask import jsonify import json import subprocess app = Flask(__name__) config = None @app.route('/', methods=['POST']) def hook_listen(): if request.method == 'POST': token = request.args.get('token') if token == config['token...
9808e97747785c27387ad1ce9ffc3e9a05c80f08
enigma.py
enigma.py
import string class Steckerbrett: def __init__(self): pass class Walzen: def __init__(self): pass class Enigma: def __init__(self): pass def cipher(self, message): pass
import string class Steckerbrett: def __init__(self): pass class Umkehrwalze: def __init__(self, wiring): self.wiring = wiring def encode(self, letter): return self.wiring[string.ascii_uppercase.index(letter)] class Walzen: def __init__(self): pass class Enigma: ...
Create class for the reflectors
Create class for the reflectors
Python
mit
ranisalt/enigma
import string class Steckerbrett: def __init__(self): pass class Walzen: def __init__(self): pass class Enigma: def __init__(self): pass def cipher(self, message): passCreate class for the reflectors
import string class Steckerbrett: def __init__(self): pass class Umkehrwalze: def __init__(self, wiring): self.wiring = wiring def encode(self, letter): return self.wiring[string.ascii_uppercase.index(letter)] class Walzen: def __init__(self): pass class Enigma: ...
<commit_before>import string class Steckerbrett: def __init__(self): pass class Walzen: def __init__(self): pass class Enigma: def __init__(self): pass def cipher(self, message): pass<commit_msg>Create class for the reflectors<commit_after>
import string class Steckerbrett: def __init__(self): pass class Umkehrwalze: def __init__(self, wiring): self.wiring = wiring def encode(self, letter): return self.wiring[string.ascii_uppercase.index(letter)] class Walzen: def __init__(self): pass class Enigma: ...
import string class Steckerbrett: def __init__(self): pass class Walzen: def __init__(self): pass class Enigma: def __init__(self): pass def cipher(self, message): passCreate class for the reflectorsimport string class Steckerbrett: def __init__(self): ...
<commit_before>import string class Steckerbrett: def __init__(self): pass class Walzen: def __init__(self): pass class Enigma: def __init__(self): pass def cipher(self, message): pass<commit_msg>Create class for the reflectors<commit_after>import string class Ste...
e7cb98a1006d292a96670a11c807d0bbf9075ebd
scenario/_consts.py
scenario/_consts.py
from collections import OrderedDict ACTORS = list('NRAIOVF') FILE_COMMANDS = ['copy', 'compare'] VERBOSITY = OrderedDict( [ ('RETURN_CODE', 0), ('RESULT' , 1), ('ERROR' , 2), ('EXECUTION' , 3), ('DEBUG' , 4), ]) VERBOSITY_DEFAULT...
from collections import OrderedDict ACTORS = list('NRAIOVF') FILE_COMMANDS = ['copy', 'compare'] VERBOSITY = OrderedDict( [ ('RETURN_CODE', 0), ('RESULT' , 1), ('ERROR' , 2), ('EXECUTION' , 3), ('DEBUG' , 4), ]) VERBOSITY_DEFAULT...
Update timeout to 10 seconds
Update timeout to 10 seconds
Python
mit
shlomihod/scenario,shlomihod/scenario,shlomihod/scenario
from collections import OrderedDict ACTORS = list('NRAIOVF') FILE_COMMANDS = ['copy', 'compare'] VERBOSITY = OrderedDict( [ ('RETURN_CODE', 0), ('RESULT' , 1), ('ERROR' , 2), ('EXECUTION' , 3), ('DEBUG' , 4), ]) VERBOSITY_DEFAULT...
from collections import OrderedDict ACTORS = list('NRAIOVF') FILE_COMMANDS = ['copy', 'compare'] VERBOSITY = OrderedDict( [ ('RETURN_CODE', 0), ('RESULT' , 1), ('ERROR' , 2), ('EXECUTION' , 3), ('DEBUG' , 4), ]) VERBOSITY_DEFAULT...
<commit_before>from collections import OrderedDict ACTORS = list('NRAIOVF') FILE_COMMANDS = ['copy', 'compare'] VERBOSITY = OrderedDict( [ ('RETURN_CODE', 0), ('RESULT' , 1), ('ERROR' , 2), ('EXECUTION' , 3), ('DEBUG' , 4), ]) VE...
from collections import OrderedDict ACTORS = list('NRAIOVF') FILE_COMMANDS = ['copy', 'compare'] VERBOSITY = OrderedDict( [ ('RETURN_CODE', 0), ('RESULT' , 1), ('ERROR' , 2), ('EXECUTION' , 3), ('DEBUG' , 4), ]) VERBOSITY_DEFAULT...
from collections import OrderedDict ACTORS = list('NRAIOVF') FILE_COMMANDS = ['copy', 'compare'] VERBOSITY = OrderedDict( [ ('RETURN_CODE', 0), ('RESULT' , 1), ('ERROR' , 2), ('EXECUTION' , 3), ('DEBUG' , 4), ]) VERBOSITY_DEFAULT...
<commit_before>from collections import OrderedDict ACTORS = list('NRAIOVF') FILE_COMMANDS = ['copy', 'compare'] VERBOSITY = OrderedDict( [ ('RETURN_CODE', 0), ('RESULT' , 1), ('ERROR' , 2), ('EXECUTION' , 3), ('DEBUG' , 4), ]) VE...
f710479e01d50dad03133d76b349398ab11e8675
backend/constants.py
backend/constants.py
# Fill out with value from # https://firebase.corp.google.com/project/trogdors-29fa4/settings/database FIREBASE_SECRET = "ZiD9uLhDnrLq2n416MjWjn0JOrci6H0oGm7bKyVN" FIREBASE_EMAIL = "" ALLEGIANCES = ('horde', 'resistance', 'none') TEST_ENDPOINT = 'http://localhost:8080' PLAYER_VOLUNTEER_ARGS = ( 'helpAdvertising', '...
# Fill out with value from # https://console.firebase.google.com/project/trogdors-29fa4/settings/serviceaccounts/databasesecrets FIREBASE_SECRET = "" FIREBASE_EMAIL = "" ALLEGIANCES = ('horde', 'resistance', 'none') TEST_ENDPOINT = 'http://localhost:8080' PLAYER_VOLUNTEER_ARGS = ( 'helpAdvertising', 'helpLogistics'...
Drop FIREBASE_SECRET (since been revoked)
Drop FIREBASE_SECRET (since been revoked)
Python
apache-2.0
google/playhvz,google/playhvz,google/playhvz,google/playhvz,google/playhvz,google/playhvz,google/playhvz,google/playhvz
# Fill out with value from # https://firebase.corp.google.com/project/trogdors-29fa4/settings/database FIREBASE_SECRET = "ZiD9uLhDnrLq2n416MjWjn0JOrci6H0oGm7bKyVN" FIREBASE_EMAIL = "" ALLEGIANCES = ('horde', 'resistance', 'none') TEST_ENDPOINT = 'http://localhost:8080' PLAYER_VOLUNTEER_ARGS = ( 'helpAdvertising', '...
# Fill out with value from # https://console.firebase.google.com/project/trogdors-29fa4/settings/serviceaccounts/databasesecrets FIREBASE_SECRET = "" FIREBASE_EMAIL = "" ALLEGIANCES = ('horde', 'resistance', 'none') TEST_ENDPOINT = 'http://localhost:8080' PLAYER_VOLUNTEER_ARGS = ( 'helpAdvertising', 'helpLogistics'...
<commit_before># Fill out with value from # https://firebase.corp.google.com/project/trogdors-29fa4/settings/database FIREBASE_SECRET = "ZiD9uLhDnrLq2n416MjWjn0JOrci6H0oGm7bKyVN" FIREBASE_EMAIL = "" ALLEGIANCES = ('horde', 'resistance', 'none') TEST_ENDPOINT = 'http://localhost:8080' PLAYER_VOLUNTEER_ARGS = ( 'help...
# Fill out with value from # https://console.firebase.google.com/project/trogdors-29fa4/settings/serviceaccounts/databasesecrets FIREBASE_SECRET = "" FIREBASE_EMAIL = "" ALLEGIANCES = ('horde', 'resistance', 'none') TEST_ENDPOINT = 'http://localhost:8080' PLAYER_VOLUNTEER_ARGS = ( 'helpAdvertising', 'helpLogistics'...
# Fill out with value from # https://firebase.corp.google.com/project/trogdors-29fa4/settings/database FIREBASE_SECRET = "ZiD9uLhDnrLq2n416MjWjn0JOrci6H0oGm7bKyVN" FIREBASE_EMAIL = "" ALLEGIANCES = ('horde', 'resistance', 'none') TEST_ENDPOINT = 'http://localhost:8080' PLAYER_VOLUNTEER_ARGS = ( 'helpAdvertising', '...
<commit_before># Fill out with value from # https://firebase.corp.google.com/project/trogdors-29fa4/settings/database FIREBASE_SECRET = "ZiD9uLhDnrLq2n416MjWjn0JOrci6H0oGm7bKyVN" FIREBASE_EMAIL = "" ALLEGIANCES = ('horde', 'resistance', 'none') TEST_ENDPOINT = 'http://localhost:8080' PLAYER_VOLUNTEER_ARGS = ( 'help...
b85751e356c091d2dffe8366a94fbb42bfcad34e
src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py
src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py
import SMESH def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") aFilterMgr = aMeshGen.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom() aLyingOnGeom.SetGeom(th...
from meshpy import * def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aFilterMgr = smesh.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom() aLyingOnGeom.SetGeom(theShape) aLyingOnGeom.SetElementType(theElemType) aFilte...
Fix a bug - salome.py is not imported here and this causes run-time Python exception
Fix a bug - salome.py is not imported here and this causes run-time Python exception
Python
lgpl-2.1
FedoraScientific/salome-smesh,FedoraScientific/salome-smesh,FedoraScientific/salome-smesh,FedoraScientific/salome-smesh
import SMESH def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") aFilterMgr = aMeshGen.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom() aLyingOnGeom.SetGeom(th...
from meshpy import * def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aFilterMgr = smesh.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom() aLyingOnGeom.SetGeom(theShape) aLyingOnGeom.SetElementType(theElemType) aFilte...
<commit_before>import SMESH def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") aFilterMgr = aMeshGen.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom() aLyingOn...
from meshpy import * def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aFilterMgr = smesh.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom() aLyingOnGeom.SetGeom(theShape) aLyingOnGeom.SetElementType(theElemType) aFilte...
import SMESH def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") aFilterMgr = aMeshGen.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom() aLyingOnGeom.SetGeom(th...
<commit_before>import SMESH def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") aFilterMgr = aMeshGen.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom() aLyingOn...
c3957dbb25a8b5eeeccd37f218976721249b93e2
src/competition/tests/validator_tests.py
src/competition/tests/validator_tests.py
from django.test import TestCase from django.template.defaultfilters import slugify from django.core.exceptions import ValidationError from competition.validators import greater_than_zero, non_negative, validate_name class ValidationFunctionTest(TestCase): def test_greater_than_zero(self): """Check grea...
from django.test import TestCase from django.template.defaultfilters import slugify from django.core.exceptions import ValidationError from competition.validators import greater_than_zero, non_negative, validate_name class ValidationFunctionTest(TestCase): def test_greater_than_zero(self): """Check grea...
Correct unit tests to comply with new team name RE
Correct unit tests to comply with new team name RE
Python
bsd-3-clause
michaelwisely/django-competition,michaelwisely/django-competition,michaelwisely/django-competition
from django.test import TestCase from django.template.defaultfilters import slugify from django.core.exceptions import ValidationError from competition.validators import greater_than_zero, non_negative, validate_name class ValidationFunctionTest(TestCase): def test_greater_than_zero(self): """Check grea...
from django.test import TestCase from django.template.defaultfilters import slugify from django.core.exceptions import ValidationError from competition.validators import greater_than_zero, non_negative, validate_name class ValidationFunctionTest(TestCase): def test_greater_than_zero(self): """Check grea...
<commit_before>from django.test import TestCase from django.template.defaultfilters import slugify from django.core.exceptions import ValidationError from competition.validators import greater_than_zero, non_negative, validate_name class ValidationFunctionTest(TestCase): def test_greater_than_zero(self): ...
from django.test import TestCase from django.template.defaultfilters import slugify from django.core.exceptions import ValidationError from competition.validators import greater_than_zero, non_negative, validate_name class ValidationFunctionTest(TestCase): def test_greater_than_zero(self): """Check grea...
from django.test import TestCase from django.template.defaultfilters import slugify from django.core.exceptions import ValidationError from competition.validators import greater_than_zero, non_negative, validate_name class ValidationFunctionTest(TestCase): def test_greater_than_zero(self): """Check grea...
<commit_before>from django.test import TestCase from django.template.defaultfilters import slugify from django.core.exceptions import ValidationError from competition.validators import greater_than_zero, non_negative, validate_name class ValidationFunctionTest(TestCase): def test_greater_than_zero(self): ...
5ab6c21bbcaaf9b919c9a796ec00d1a805ec1b0d
apps/bplan/emails.py
apps/bplan/emails.py
from adhocracy4.emails import Email class OfficeWorkerNotification(Email): template_name = 'meinberlin_bplan/emails/office_worker_notification' @property def office_worker_email(self): project = self.object.project return project.externalproject.bplan.office_worker_email def get_rece...
from adhocracy4.emails import Email class OfficeWorkerNotification(Email): template_name = 'meinberlin_bplan/emails/office_worker_notification' @property def office_worker_email(self): project = self.object.project return project.externalproject.bplan.office_worker_email def get_rece...
Set bplan default email to english as default
Set bplan default email to english as default
Python
agpl-3.0
liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin
from adhocracy4.emails import Email class OfficeWorkerNotification(Email): template_name = 'meinberlin_bplan/emails/office_worker_notification' @property def office_worker_email(self): project = self.object.project return project.externalproject.bplan.office_worker_email def get_rece...
from adhocracy4.emails import Email class OfficeWorkerNotification(Email): template_name = 'meinberlin_bplan/emails/office_worker_notification' @property def office_worker_email(self): project = self.object.project return project.externalproject.bplan.office_worker_email def get_rece...
<commit_before>from adhocracy4.emails import Email class OfficeWorkerNotification(Email): template_name = 'meinberlin_bplan/emails/office_worker_notification' @property def office_worker_email(self): project = self.object.project return project.externalproject.bplan.office_worker_email ...
from adhocracy4.emails import Email class OfficeWorkerNotification(Email): template_name = 'meinberlin_bplan/emails/office_worker_notification' @property def office_worker_email(self): project = self.object.project return project.externalproject.bplan.office_worker_email def get_rece...
from adhocracy4.emails import Email class OfficeWorkerNotification(Email): template_name = 'meinberlin_bplan/emails/office_worker_notification' @property def office_worker_email(self): project = self.object.project return project.externalproject.bplan.office_worker_email def get_rece...
<commit_before>from adhocracy4.emails import Email class OfficeWorkerNotification(Email): template_name = 'meinberlin_bplan/emails/office_worker_notification' @property def office_worker_email(self): project = self.object.project return project.externalproject.bplan.office_worker_email ...
fa86706ae6cf77ef71402bb86d12cdd3cb79dafc
shub/logout.py
shub/logout.py
import re, click from shub.utils import get_key_netrc, NETRC_FILE @click.command(help='remove Scrapinghug API key from the netrc file') @click.pass_context def cli(context): if not get_key_netrc(): context.fail('Key not found in netrc file') with open(NETRC_FILE, 'r+') as out: key_re = r'machin...
import re, click from shub.utils import get_key_netrc, NETRC_FILE @click.command(help='remove Scrapinghug API key from the netrc file') @click.pass_context def cli(context): if not get_key_netrc(): context.fail('Key not found in netrc file') error, msg = remove_sh_key() if error: context.fa...
Add verification for removing key from netrc file
Add verification for removing key from netrc file
Python
bsd-3-clause
scrapinghub/shub
import re, click from shub.utils import get_key_netrc, NETRC_FILE @click.command(help='remove Scrapinghug API key from the netrc file') @click.pass_context def cli(context): if not get_key_netrc(): context.fail('Key not found in netrc file') with open(NETRC_FILE, 'r+') as out: key_re = r'machin...
import re, click from shub.utils import get_key_netrc, NETRC_FILE @click.command(help='remove Scrapinghug API key from the netrc file') @click.pass_context def cli(context): if not get_key_netrc(): context.fail('Key not found in netrc file') error, msg = remove_sh_key() if error: context.fa...
<commit_before>import re, click from shub.utils import get_key_netrc, NETRC_FILE @click.command(help='remove Scrapinghug API key from the netrc file') @click.pass_context def cli(context): if not get_key_netrc(): context.fail('Key not found in netrc file') with open(NETRC_FILE, 'r+') as out: ke...
import re, click from shub.utils import get_key_netrc, NETRC_FILE @click.command(help='remove Scrapinghug API key from the netrc file') @click.pass_context def cli(context): if not get_key_netrc(): context.fail('Key not found in netrc file') error, msg = remove_sh_key() if error: context.fa...
import re, click from shub.utils import get_key_netrc, NETRC_FILE @click.command(help='remove Scrapinghug API key from the netrc file') @click.pass_context def cli(context): if not get_key_netrc(): context.fail('Key not found in netrc file') with open(NETRC_FILE, 'r+') as out: key_re = r'machin...
<commit_before>import re, click from shub.utils import get_key_netrc, NETRC_FILE @click.command(help='remove Scrapinghug API key from the netrc file') @click.pass_context def cli(context): if not get_key_netrc(): context.fail('Key not found in netrc file') with open(NETRC_FILE, 'r+') as out: ke...
5ff35d282b61cfdfc53deaa0f1bc0f83850ff7a5
downstream_node/lib/utils.py
downstream_node/lib/utils.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json def model_to_json(model): """ Returns a JSON representation of an SQLAlchemy-backed object. From Zato: https://github.com/zatosource/zato """ _json = {} _json['fields'] = {} _json['pk'] = getattr(model, 'id') for col in model._sa...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json def model_to_json(model): """ Returns a JSON representation of an SQLAlchemy-backed object. From Zato: https://github.com/zatosource/zato """ _json = {} _json['fields'] = {} _json['pk'] = getattr(model, 'id') for col in model._sa...
Add helper method to turn queries into json-serializable lists
Add helper method to turn queries into json-serializable lists
Python
mit
Storj/downstream-node,Storj/downstream-node
#!/usr/bin/env python # -*- coding: utf-8 -*- import json def model_to_json(model): """ Returns a JSON representation of an SQLAlchemy-backed object. From Zato: https://github.com/zatosource/zato """ _json = {} _json['fields'] = {} _json['pk'] = getattr(model, 'id') for col in model._sa...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json def model_to_json(model): """ Returns a JSON representation of an SQLAlchemy-backed object. From Zato: https://github.com/zatosource/zato """ _json = {} _json['fields'] = {} _json['pk'] = getattr(model, 'id') for col in model._sa...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import json def model_to_json(model): """ Returns a JSON representation of an SQLAlchemy-backed object. From Zato: https://github.com/zatosource/zato """ _json = {} _json['fields'] = {} _json['pk'] = getattr(model, 'id') for c...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json def model_to_json(model): """ Returns a JSON representation of an SQLAlchemy-backed object. From Zato: https://github.com/zatosource/zato """ _json = {} _json['fields'] = {} _json['pk'] = getattr(model, 'id') for col in model._sa...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json def model_to_json(model): """ Returns a JSON representation of an SQLAlchemy-backed object. From Zato: https://github.com/zatosource/zato """ _json = {} _json['fields'] = {} _json['pk'] = getattr(model, 'id') for col in model._sa...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import json def model_to_json(model): """ Returns a JSON representation of an SQLAlchemy-backed object. From Zato: https://github.com/zatosource/zato """ _json = {} _json['fields'] = {} _json['pk'] = getattr(model, 'id') for c...
bafef6a175116aff519579822f2382e8fbbd8808
spotipy/__init__.py
spotipy/__init__.py
VERSION='2.4.5' from client import * from oauth2 import * from util import *
VERSION='2.4.5' from .client import * from .oauth2 import * from .util import *
Make import statements explicit relative imports
Make import statements explicit relative imports
Python
mit
plamere/spotipy
VERSION='2.4.5' from client import * from oauth2 import * from util import * Make import statements explicit relative imports
VERSION='2.4.5' from .client import * from .oauth2 import * from .util import *
<commit_before>VERSION='2.4.5' from client import * from oauth2 import * from util import * <commit_msg>Make import statements explicit relative imports<commit_after>
VERSION='2.4.5' from .client import * from .oauth2 import * from .util import *
VERSION='2.4.5' from client import * from oauth2 import * from util import * Make import statements explicit relative importsVERSION='2.4.5' from .client import * from .oauth2 import * from .util import *
<commit_before>VERSION='2.4.5' from client import * from oauth2 import * from util import * <commit_msg>Make import statements explicit relative imports<commit_after>VERSION='2.4.5' from .client import * from .oauth2 import * from .util import *
a589aa63f250a347ab24b7309e65ef25c7281437
src/sentry/utils/imports.py
src/sentry/utils/imports.py
""" sentry.utils.imports ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pkgutil import six class ModuleProxyCache(dict): def __missing__(self, key): if '.' not...
""" sentry.utils.imports ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pkgutil import six class ModuleProxyCache(dict): def __missing__(self, key): if '.' not...
Correct import behavior to prevent Runtime error
Correct import behavior to prevent Runtime error
Python
bsd-3-clause
gencer/sentry,jean/sentry,fotinakis/sentry,gencer/sentry,looker/sentry,BuildingLink/sentry,gencer/sentry,jean/sentry,JackDanger/sentry,fotinakis/sentry,BuildingLink/sentry,beeftornado/sentry,zenefits/sentry,beeftornado/sentry,looker/sentry,ifduyue/sentry,ifduyue/sentry,JamesMura/sentry,ifduyue/sentry,JamesMura/sentry,B...
""" sentry.utils.imports ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pkgutil import six class ModuleProxyCache(dict): def __missing__(self, key): if '.' not...
""" sentry.utils.imports ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pkgutil import six class ModuleProxyCache(dict): def __missing__(self, key): if '.' not...
<commit_before>""" sentry.utils.imports ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pkgutil import six class ModuleProxyCache(dict): def __missing__(self, key): ...
""" sentry.utils.imports ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pkgutil import six class ModuleProxyCache(dict): def __missing__(self, key): if '.' not...
""" sentry.utils.imports ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pkgutil import six class ModuleProxyCache(dict): def __missing__(self, key): if '.' not...
<commit_before>""" sentry.utils.imports ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pkgutil import six class ModuleProxyCache(dict): def __missing__(self, key): ...
d35aa7344ed96c8e1e17ea74ba14a760a3c8a418
spacy/about.py
spacy/about.py
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' __version__ = '1.0.0+a' __summary__ = 'Industrial-strength NLP' __uri__ = 'https://spacy.io' __author__ = 'Matthew Honnibal...
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' __version__ = '1.0.0-a' __summary__ = 'Industrial-strength NLP' __uri__ = 'https://spacy.io' __author__ = 'Matthew Honnibal...
Change version ID to make PyPi happy
Change version ID to make PyPi happy
Python
mit
banglakit/spaCy,recognai/spaCy,spacy-io/spaCy,honnibal/spaCy,honnibal/spaCy,oroszgy/spaCy.hu,oroszgy/spaCy.hu,aikramer2/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy,banglakit/spaCy,recognai/spaCy,Gregory-Howard/spaCy,raphael0202/spaCy,honnibal/spaCy,explosion/spaCy,spacy-io/spaCy,banglakit/spaCy,spacy-io/spaCy,...
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' __version__ = '1.0.0+a' __summary__ = 'Industrial-strength NLP' __uri__ = 'https://spacy.io' __author__ = 'Matthew Honnibal...
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' __version__ = '1.0.0-a' __summary__ = 'Industrial-strength NLP' __uri__ = 'https://spacy.io' __author__ = 'Matthew Honnibal...
<commit_before># inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' __version__ = '1.0.0+a' __summary__ = 'Industrial-strength NLP' __uri__ = 'https://spacy.io' __author__ = 'M...
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' __version__ = '1.0.0-a' __summary__ = 'Industrial-strength NLP' __uri__ = 'https://spacy.io' __author__ = 'Matthew Honnibal...
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' __version__ = '1.0.0+a' __summary__ = 'Industrial-strength NLP' __uri__ = 'https://spacy.io' __author__ = 'Matthew Honnibal...
<commit_before># inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' __version__ = '1.0.0+a' __summary__ = 'Industrial-strength NLP' __uri__ = 'https://spacy.io' __author__ = 'M...