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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f97d30c16de2b0e57a3ffb96c803bcafc3b0dca7 | emission/core/wrapper/modestattimesummary.py | emission/core/wrapper/modestattimesummary.py | import logging
import emission.core.wrapper.wrapperbase as ecwb
import emission.core.wrapper.motionactivity as ecwm
# Used for various metrics such as count, distance, mean speed calorie consumption,
# median speed calorie consumption
# Should come later: carbon footprint
# Optimal doesn't look like it fits this, beca... | import logging
import emission.core.wrapper.wrapperbase as ecwb
import emission.core.wrapper.motionactivity as ecwm
# Used for various metrics such as count, distance, mean speed calorie consumption,
# median speed calorie consumption
# Should come later: carbon footprint
# Optimal doesn't look like it fits this, beca... | Fix the list of local_date objects in the ModeStatTimeSummary | Fix the list of local_date objects in the ModeStatTimeSummary
| Python | bsd-3-clause | yw374cornell/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server,yw374cornell/e-mission-server,sunil07t/e-mission-server,sunil07t/e-mission-server,e-mission/e-mission-server,yw374cornell/e-mission-server,shankari/e-mission-server,sunil07t/e-mission-server,sunil07t/e-mission-server,shankari/e-mission-s... | import logging
import emission.core.wrapper.wrapperbase as ecwb
import emission.core.wrapper.motionactivity as ecwm
# Used for various metrics such as count, distance, mean speed calorie consumption,
# median speed calorie consumption
# Should come later: carbon footprint
# Optimal doesn't look like it fits this, beca... | import logging
import emission.core.wrapper.wrapperbase as ecwb
import emission.core.wrapper.motionactivity as ecwm
# Used for various metrics such as count, distance, mean speed calorie consumption,
# median speed calorie consumption
# Should come later: carbon footprint
# Optimal doesn't look like it fits this, beca... | <commit_before>import logging
import emission.core.wrapper.wrapperbase as ecwb
import emission.core.wrapper.motionactivity as ecwm
# Used for various metrics such as count, distance, mean speed calorie consumption,
# median speed calorie consumption
# Should come later: carbon footprint
# Optimal doesn't look like it ... | import logging
import emission.core.wrapper.wrapperbase as ecwb
import emission.core.wrapper.motionactivity as ecwm
# Used for various metrics such as count, distance, mean speed calorie consumption,
# median speed calorie consumption
# Should come later: carbon footprint
# Optimal doesn't look like it fits this, beca... | import logging
import emission.core.wrapper.wrapperbase as ecwb
import emission.core.wrapper.motionactivity as ecwm
# Used for various metrics such as count, distance, mean speed calorie consumption,
# median speed calorie consumption
# Should come later: carbon footprint
# Optimal doesn't look like it fits this, beca... | <commit_before>import logging
import emission.core.wrapper.wrapperbase as ecwb
import emission.core.wrapper.motionactivity as ecwm
# Used for various metrics such as count, distance, mean speed calorie consumption,
# median speed calorie consumption
# Should come later: carbon footprint
# Optimal doesn't look like it ... |
e4a3d3c273a1b7e26e9fdcf7f8da060bf127f27e | examples/django_project/django_project/tests.py | examples/django_project/django_project/tests.py | import unittest
from datetime import datetime
from snapshottest.django import TestCase
def api_client_get(url):
return {
'url': url,
}
class TestDemo(TestCase):
def test_api_me(self):
now = datetime.now().isoformat()
my_api_response = api_client_get('/' + now)
self.asse... | import unittest
from datetime import datetime
from snapshottest.django import TestCase
def api_client_get(url):
return {
'url': url,
}
class TestDemo(TestCase):
def test_api_me(self):
# Note this tests should fail unless the snapshot-update command line
# option is specified. R... | Add note for test_api_me django-project test | Add note for test_api_me django-project test
| Python | mit | syrusakbary/snapshottest | import unittest
from datetime import datetime
from snapshottest.django import TestCase
def api_client_get(url):
return {
'url': url,
}
class TestDemo(TestCase):
def test_api_me(self):
now = datetime.now().isoformat()
my_api_response = api_client_get('/' + now)
self.asse... | import unittest
from datetime import datetime
from snapshottest.django import TestCase
def api_client_get(url):
return {
'url': url,
}
class TestDemo(TestCase):
def test_api_me(self):
# Note this tests should fail unless the snapshot-update command line
# option is specified. R... | <commit_before>import unittest
from datetime import datetime
from snapshottest.django import TestCase
def api_client_get(url):
return {
'url': url,
}
class TestDemo(TestCase):
def test_api_me(self):
now = datetime.now().isoformat()
my_api_response = api_client_get('/' + now)
... | import unittest
from datetime import datetime
from snapshottest.django import TestCase
def api_client_get(url):
return {
'url': url,
}
class TestDemo(TestCase):
def test_api_me(self):
# Note this tests should fail unless the snapshot-update command line
# option is specified. R... | import unittest
from datetime import datetime
from snapshottest.django import TestCase
def api_client_get(url):
return {
'url': url,
}
class TestDemo(TestCase):
def test_api_me(self):
now = datetime.now().isoformat()
my_api_response = api_client_get('/' + now)
self.asse... | <commit_before>import unittest
from datetime import datetime
from snapshottest.django import TestCase
def api_client_get(url):
return {
'url': url,
}
class TestDemo(TestCase):
def test_api_me(self):
now = datetime.now().isoformat()
my_api_response = api_client_get('/' + now)
... |
c1d906da71571552de92f028c91b3fc2ec2d28de | test/unit/registration/test_ants.py | test/unit/registration/test_ants.py | from nose.tools import *
import os, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.registration import ants
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..... | from nose.tools import *
import os, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.registration import ants
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..... | Standardize the fixture directory names. | Standardize the fixture directory names.
| Python | bsd-2-clause | ohsu-qin/qipipe | from nose.tools import *
import os, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.registration import ants
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..... | from nose.tools import *
import os, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.registration import ants
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..... | <commit_before>from nose.tools import *
import os, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.registration import ants
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname... | from nose.tools import *
import os, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.registration import ants
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..... | from nose.tools import *
import os, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.registration import ants
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..... | <commit_before>from nose.tools import *
import os, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.registration import ants
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname... |
857ff014ea7e889f75f741b191d82fadb09cd48d | integration_tests/telecommand/program_upload.py | integration_tests/telecommand/program_upload.py | import struct
from telecommand import Telecommand
class EraseBootTableEntry(Telecommand):
def apid(self):
return 0xB0
def payload(self):
mask = 0
for e in self._entries:
mask |= 1 << e
return [mask]
def __init__(self, entries):
self.... | import struct
from telecommand import Telecommand
class EraseBootTableEntry(Telecommand):
def apid(self):
return 0xB0
def payload(self):
mask = 0
for e in self._entries:
mask |= 1 << e
return [mask]
def __init__(self, entries):
self.... | Fix write program telecommand part size | Fix write program telecommand part size
| Python | agpl-3.0 | PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC,PW-Sat2/PWSat2OBC | import struct
from telecommand import Telecommand
class EraseBootTableEntry(Telecommand):
def apid(self):
return 0xB0
def payload(self):
mask = 0
for e in self._entries:
mask |= 1 << e
return [mask]
def __init__(self, entries):
self.... | import struct
from telecommand import Telecommand
class EraseBootTableEntry(Telecommand):
def apid(self):
return 0xB0
def payload(self):
mask = 0
for e in self._entries:
mask |= 1 << e
return [mask]
def __init__(self, entries):
self.... | <commit_before>import struct
from telecommand import Telecommand
class EraseBootTableEntry(Telecommand):
def apid(self):
return 0xB0
def payload(self):
mask = 0
for e in self._entries:
mask |= 1 << e
return [mask]
def __init__(self, entries):... | import struct
from telecommand import Telecommand
class EraseBootTableEntry(Telecommand):
def apid(self):
return 0xB0
def payload(self):
mask = 0
for e in self._entries:
mask |= 1 << e
return [mask]
def __init__(self, entries):
self.... | import struct
from telecommand import Telecommand
class EraseBootTableEntry(Telecommand):
def apid(self):
return 0xB0
def payload(self):
mask = 0
for e in self._entries:
mask |= 1 << e
return [mask]
def __init__(self, entries):
self.... | <commit_before>import struct
from telecommand import Telecommand
class EraseBootTableEntry(Telecommand):
def apid(self):
return 0xB0
def payload(self):
mask = 0
for e in self._entries:
mask |= 1 << e
return [mask]
def __init__(self, entries):... |
c43fbdf1c0a4e976297f9fa75f97a2cfe4a0bee3 | app/__init__.py | app/__init__.py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_oauthlib.client import OAuth
from config import config
db = SQLAlchemy()
oauth = OAuth()
lm = LoginManager()
lm.login_view = "views.login"
from app.models import User
@lm.user_loader
def load_user(id):
... | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_oauthlib.client import OAuth
from config import config
db = SQLAlchemy()
oa = OAuth()
lm = LoginManager()
lm.login_view = "views.login"
from app.models import User
@lm.user_loader
def load_user(id):
... | Rename OAuth var to avoid naming conflicts | Rename OAuth var to avoid naming conflicts
| Python | mit | Encrylize/MyDictionary,Encrylize/MyDictionary,Encrylize/MyDictionary | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_oauthlib.client import OAuth
from config import config
db = SQLAlchemy()
oauth = OAuth()
lm = LoginManager()
lm.login_view = "views.login"
from app.models import User
@lm.user_loader
def load_user(id):
... | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_oauthlib.client import OAuth
from config import config
db = SQLAlchemy()
oa = OAuth()
lm = LoginManager()
lm.login_view = "views.login"
from app.models import User
@lm.user_loader
def load_user(id):
... | <commit_before>from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_oauthlib.client import OAuth
from config import config
db = SQLAlchemy()
oauth = OAuth()
lm = LoginManager()
lm.login_view = "views.login"
from app.models import User
@lm.user_loader
def l... | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_oauthlib.client import OAuth
from config import config
db = SQLAlchemy()
oa = OAuth()
lm = LoginManager()
lm.login_view = "views.login"
from app.models import User
@lm.user_loader
def load_user(id):
... | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_oauthlib.client import OAuth
from config import config
db = SQLAlchemy()
oauth = OAuth()
lm = LoginManager()
lm.login_view = "views.login"
from app.models import User
@lm.user_loader
def load_user(id):
... | <commit_before>from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_oauthlib.client import OAuth
from config import config
db = SQLAlchemy()
oauth = OAuth()
lm = LoginManager()
lm.login_view = "views.login"
from app.models import User
@lm.user_loader
def l... |
18a133cc3b56fdc1a5185bf3da3bed001e1b5c64 | dictionary.py | dictionary.py | # Import non-standard modules
import json
def definition(word):
'''This function returns the available definitions(s) of the input'''
return data[word]
# Load dictionary data from data.json to python dictionary
data = json.load(open('data.json', 'r'))
while True:
ip = input("Enter word:")
if ip in... | # Import non-standard modules
import json
from difflib import get_close_matches
def definition(word):
'''This function returns the available definitions(s) of the input'''
return data[word]
# Load dictionary data from data.json to python dictionary
data = json.load(open('data.json', 'r'))
# Infinite loop f... | Add feature to process user input and provide automatic suggestions | Add feature to process user input and provide automatic suggestions
| Python | mit | jojenreed/Python-CLI-Dictionary | # Import non-standard modules
import json
def definition(word):
'''This function returns the available definitions(s) of the input'''
return data[word]
# Load dictionary data from data.json to python dictionary
data = json.load(open('data.json', 'r'))
while True:
ip = input("Enter word:")
if ip in... | # Import non-standard modules
import json
from difflib import get_close_matches
def definition(word):
'''This function returns the available definitions(s) of the input'''
return data[word]
# Load dictionary data from data.json to python dictionary
data = json.load(open('data.json', 'r'))
# Infinite loop f... | <commit_before># Import non-standard modules
import json
def definition(word):
'''This function returns the available definitions(s) of the input'''
return data[word]
# Load dictionary data from data.json to python dictionary
data = json.load(open('data.json', 'r'))
while True:
ip = input("Enter word:... | # Import non-standard modules
import json
from difflib import get_close_matches
def definition(word):
'''This function returns the available definitions(s) of the input'''
return data[word]
# Load dictionary data from data.json to python dictionary
data = json.load(open('data.json', 'r'))
# Infinite loop f... | # Import non-standard modules
import json
def definition(word):
'''This function returns the available definitions(s) of the input'''
return data[word]
# Load dictionary data from data.json to python dictionary
data = json.load(open('data.json', 'r'))
while True:
ip = input("Enter word:")
if ip in... | <commit_before># Import non-standard modules
import json
def definition(word):
'''This function returns the available definitions(s) of the input'''
return data[word]
# Load dictionary data from data.json to python dictionary
data = json.load(open('data.json', 'r'))
while True:
ip = input("Enter word:... |
cc838a311e891294da10ca7465782d71e622b5ef | dodge.py | dodge.py | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
pass
def select_applications(self... | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_is_macintosh()
def select... | Add class method to check if PC is a Mac | Add class method to check if PC is a Mac
| Python | mit | yoda-yoda/osx-dock-dodger,denisKaranja/osx-dock-dodger | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
pass
def select_applications(self... | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_is_macintosh()
def select... | <commit_before>import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
pass
def select_ap... | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_is_macintosh()
def select... | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
pass
def select_applications(self... | <commit_before>import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
pass
def select_ap... |
967f9363872ff64847e4b93a7c1ea75869eaabd9 | benchmarks/benchmarks.py | benchmarks/benchmarks.py | # Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os.path as osp
import numpy as np
from tempfile import TemporaryDirectory
import h5py
class TimeSuite:
"""
An example benchmark that times the performance of various kinds
of iterating over dict... | # Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os.path as osp
import numpy as np
from tempfile import TemporaryDirectory
import h5py
class TimeSuite:
"""
An example benchmark that times the performance of various kinds
of iterating over dict... | Add benchmark for writing with index of last dimension | Add benchmark for writing with index of last dimension
| Python | bsd-3-clause | h5py/h5py,h5py/h5py,h5py/h5py | # Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os.path as osp
import numpy as np
from tempfile import TemporaryDirectory
import h5py
class TimeSuite:
"""
An example benchmark that times the performance of various kinds
of iterating over dict... | # Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os.path as osp
import numpy as np
from tempfile import TemporaryDirectory
import h5py
class TimeSuite:
"""
An example benchmark that times the performance of various kinds
of iterating over dict... | <commit_before># Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os.path as osp
import numpy as np
from tempfile import TemporaryDirectory
import h5py
class TimeSuite:
"""
An example benchmark that times the performance of various kinds
of iter... | # Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os.path as osp
import numpy as np
from tempfile import TemporaryDirectory
import h5py
class TimeSuite:
"""
An example benchmark that times the performance of various kinds
of iterating over dict... | # Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os.path as osp
import numpy as np
from tempfile import TemporaryDirectory
import h5py
class TimeSuite:
"""
An example benchmark that times the performance of various kinds
of iterating over dict... | <commit_before># Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
import os.path as osp
import numpy as np
from tempfile import TemporaryDirectory
import h5py
class TimeSuite:
"""
An example benchmark that times the performance of various kinds
of iter... |
3b0432edc1a9e55e6e7da5955a1ecbeea8000371 | openpassword/keychain.py | openpassword/keychain.py | from openpassword.exceptions import InvalidPasswordException
class Keychain:
def __init__(self, encryption_key):
self.encryption_key = encryption_key
self._locked = True
def unlock(self, password):
try:
self.encryption_key.decrypt(password)
self._locked = Fals... | from openpassword.exceptions import InvalidPasswordException
class Keychain:
def __init__(self, encryption_key):
self.encryption_key = encryption_key
self._locked = True
def unlock(self, password):
try:
self.encryption_key.decrypt(password)
self._locked = Fals... | Remove unecessary parentesis from raise call | Remove unecessary parentesis from raise call
| Python | mit | openpassword/blimey,openpassword/blimey | from openpassword.exceptions import InvalidPasswordException
class Keychain:
def __init__(self, encryption_key):
self.encryption_key = encryption_key
self._locked = True
def unlock(self, password):
try:
self.encryption_key.decrypt(password)
self._locked = Fals... | from openpassword.exceptions import InvalidPasswordException
class Keychain:
def __init__(self, encryption_key):
self.encryption_key = encryption_key
self._locked = True
def unlock(self, password):
try:
self.encryption_key.decrypt(password)
self._locked = Fals... | <commit_before>from openpassword.exceptions import InvalidPasswordException
class Keychain:
def __init__(self, encryption_key):
self.encryption_key = encryption_key
self._locked = True
def unlock(self, password):
try:
self.encryption_key.decrypt(password)
self... | from openpassword.exceptions import InvalidPasswordException
class Keychain:
def __init__(self, encryption_key):
self.encryption_key = encryption_key
self._locked = True
def unlock(self, password):
try:
self.encryption_key.decrypt(password)
self._locked = Fals... | from openpassword.exceptions import InvalidPasswordException
class Keychain:
def __init__(self, encryption_key):
self.encryption_key = encryption_key
self._locked = True
def unlock(self, password):
try:
self.encryption_key.decrypt(password)
self._locked = Fals... | <commit_before>from openpassword.exceptions import InvalidPasswordException
class Keychain:
def __init__(self, encryption_key):
self.encryption_key = encryption_key
self._locked = True
def unlock(self, password):
try:
self.encryption_key.decrypt(password)
self... |
7613fc5c3ef1cc552d39e5fde533e8f9af7cc931 | form_designer/tests/test_cms_plugin.py | form_designer/tests/test_cms_plugin.py | import django
from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import get_random_string
import pytest
from cms import api
from cms.page_rendering import render_page
from form_designer.contrib.cms_plugins.form_designer_form.cms_plugins import FormDesignerPlugin
from form_designer.models imp... | from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import get_random_string
import pytest
from cms import api
from cms.page_rendering import render_page
from form_designer.contrib.cms_plugins.form_designer_form.cms_plugins import FormDesignerPlugin
from form_designer.models import FormDefini... | Revert "Disable Django-CMS test on Django 1.10+" | Revert "Disable Django-CMS test on Django 1.10+"
Django CMS tests should work now with Django 1.10 and 1.11 too, since
the Django CMS version 3.4.5 supports them.
This reverts commit fcfe2513fc8532dc2212a254da42d75048e76de7.
| Python | bsd-3-clause | kcsry/django-form-designer,andersinno/django-form-designer-ai,kcsry/django-form-designer,andersinno/django-form-designer,andersinno/django-form-designer-ai,andersinno/django-form-designer | import django
from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import get_random_string
import pytest
from cms import api
from cms.page_rendering import render_page
from form_designer.contrib.cms_plugins.form_designer_form.cms_plugins import FormDesignerPlugin
from form_designer.models imp... | from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import get_random_string
import pytest
from cms import api
from cms.page_rendering import render_page
from form_designer.contrib.cms_plugins.form_designer_form.cms_plugins import FormDesignerPlugin
from form_designer.models import FormDefini... | <commit_before>import django
from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import get_random_string
import pytest
from cms import api
from cms.page_rendering import render_page
from form_designer.contrib.cms_plugins.form_designer_form.cms_plugins import FormDesignerPlugin
from form_desi... | from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import get_random_string
import pytest
from cms import api
from cms.page_rendering import render_page
from form_designer.contrib.cms_plugins.form_designer_form.cms_plugins import FormDesignerPlugin
from form_designer.models import FormDefini... | import django
from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import get_random_string
import pytest
from cms import api
from cms.page_rendering import render_page
from form_designer.contrib.cms_plugins.form_designer_form.cms_plugins import FormDesignerPlugin
from form_designer.models imp... | <commit_before>import django
from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import get_random_string
import pytest
from cms import api
from cms.page_rendering import render_page
from form_designer.contrib.cms_plugins.form_designer_form.cms_plugins import FormDesignerPlugin
from form_desi... |
e1da1e7e8fedd288e9ac3a41b529c5bfe3e0612b | orchestrator/__init__.py | orchestrator/__init__.py | from __future__ import absolute_import
from celery.signals import setup_logging
import orchestrator.logger
__version__ = '0.3.10'
__author__ = 'sukrit'
orchestrator.logger.init_logging()
setup_logging.connect(orchestrator.logger.init_celery_logging)
| from __future__ import absolute_import
from celery.signals import setup_logging
import orchestrator.logger
__version__ = '0.4.0'
__author__ = 'sukrit'
orchestrator.logger.init_logging()
setup_logging.connect(orchestrator.logger.init_celery_logging)
| Prepare for next development version | Prepare for next development version
| Python | mit | totem/cluster-orchestrator,totem/cluster-orchestrator,totem/cluster-orchestrator | from __future__ import absolute_import
from celery.signals import setup_logging
import orchestrator.logger
__version__ = '0.3.10'
__author__ = 'sukrit'
orchestrator.logger.init_logging()
setup_logging.connect(orchestrator.logger.init_celery_logging)
Prepare for next development version | from __future__ import absolute_import
from celery.signals import setup_logging
import orchestrator.logger
__version__ = '0.4.0'
__author__ = 'sukrit'
orchestrator.logger.init_logging()
setup_logging.connect(orchestrator.logger.init_celery_logging)
| <commit_before>from __future__ import absolute_import
from celery.signals import setup_logging
import orchestrator.logger
__version__ = '0.3.10'
__author__ = 'sukrit'
orchestrator.logger.init_logging()
setup_logging.connect(orchestrator.logger.init_celery_logging)
<commit_msg>Prepare for next development version<comm... | from __future__ import absolute_import
from celery.signals import setup_logging
import orchestrator.logger
__version__ = '0.4.0'
__author__ = 'sukrit'
orchestrator.logger.init_logging()
setup_logging.connect(orchestrator.logger.init_celery_logging)
| from __future__ import absolute_import
from celery.signals import setup_logging
import orchestrator.logger
__version__ = '0.3.10'
__author__ = 'sukrit'
orchestrator.logger.init_logging()
setup_logging.connect(orchestrator.logger.init_celery_logging)
Prepare for next development versionfrom __future__ import absolute_... | <commit_before>from __future__ import absolute_import
from celery.signals import setup_logging
import orchestrator.logger
__version__ = '0.3.10'
__author__ = 'sukrit'
orchestrator.logger.init_logging()
setup_logging.connect(orchestrator.logger.init_celery_logging)
<commit_msg>Prepare for next development version<comm... |
39a1212508c27a5c21f8b027fef3fb409a28657f | app/commands.py | app/commands.py | from flask import current_app
def list_routes():
"""List URLs of all application routes."""
for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule):
print("{:10} {}".format(", ".join(rule.methods - set(['OPTIONS', 'HEAD'])), rule.rule)) # noqa
def setup_commands(application):
... | import click
from flask import current_app
from flask.cli import with_appcontext
@click.command('list-routes')
@with_appcontext
def list_routes():
"""List URLs of all application routes."""
for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule):
print("{:10} {}".format(", ".join(ru... | Switch existing command to standard approach | Switch existing command to standard approach
This is the suggested approach in the documentation [1] and using
it makes it clearer what's going on and to add other commands with
arguments, which we'll do in the next commit.
[1]: https://flask.palletsprojects.com/en/2.0.x/cli/#custom-commands
| Python | mit | alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin | from flask import current_app
def list_routes():
"""List URLs of all application routes."""
for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule):
print("{:10} {}".format(", ".join(rule.methods - set(['OPTIONS', 'HEAD'])), rule.rule)) # noqa
def setup_commands(application):
... | import click
from flask import current_app
from flask.cli import with_appcontext
@click.command('list-routes')
@with_appcontext
def list_routes():
"""List URLs of all application routes."""
for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule):
print("{:10} {}".format(", ".join(ru... | <commit_before>from flask import current_app
def list_routes():
"""List URLs of all application routes."""
for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule):
print("{:10} {}".format(", ".join(rule.methods - set(['OPTIONS', 'HEAD'])), rule.rule)) # noqa
def setup_commands(ap... | import click
from flask import current_app
from flask.cli import with_appcontext
@click.command('list-routes')
@with_appcontext
def list_routes():
"""List URLs of all application routes."""
for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule):
print("{:10} {}".format(", ".join(ru... | from flask import current_app
def list_routes():
"""List URLs of all application routes."""
for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule):
print("{:10} {}".format(", ".join(rule.methods - set(['OPTIONS', 'HEAD'])), rule.rule)) # noqa
def setup_commands(application):
... | <commit_before>from flask import current_app
def list_routes():
"""List URLs of all application routes."""
for rule in sorted(current_app.url_map.iter_rules(), key=lambda r: r.rule):
print("{:10} {}".format(", ".join(rule.methods - set(['OPTIONS', 'HEAD'])), rule.rule)) # noqa
def setup_commands(ap... |
79a2f5ddc1d6d05dca0d44ee6586b2d8809ee1c0 | deep_q_rl/ale_run.py | deep_q_rl/ale_run.py | """This script launches all of the processes necessary to train a
deep Q-network on an ALE game.
Usage:
ale_run.py [--glue_port GLUE_PORT]
All unrecognized command line arguments will be passed on to
rl_glue_ale_agent.py
"""
import subprocess
import sys
import os
import argparse
ROM_PATH = "/home/spragunr/neural_rl... | """This script launches all of the processes necessary to train a
deep Q-network on an ALE game.
Usage:
ale_run.py [--glue_port GLUE_PORT]
All unrecognized command line arguments will be passed on to
rl_glue_ale_agent.py
"""
import subprocess
import sys
import os
import argparse
# Put your binaries under the direct... | Make the position of the roms work for everybody. | Make the position of the roms work for everybody.
Here you previously used a directory that mentions your particular setting. Substitute it by a relative directory so it works for everybody. Also, suggest at the read file to create a 'rome' directory with 'breakout.bin' in it. | Python | bsd-3-clause | r0k3/deep_q_rl,aaannndddyyy/deep_q_rl,davidsj/deep_q_rl,spragunr/deep_q_rl,gogobebe2/deep_q_rl,aaannndddyyy/deep_q_rl,omnivert/deep_q_rl,npow/deep_q_rl,vvw/deep_q_rl,codeaudit/deep_q_rl,alito/deep_q_rl,jleni/deep_q_rl,peterzcc/deep_q_rl,davidsj/deep_q_rl,spragunr/deep_q_rl,codeaudit/deep_q_rl,udibr/deep_q_rl,udibr/deep... | """This script launches all of the processes necessary to train a
deep Q-network on an ALE game.
Usage:
ale_run.py [--glue_port GLUE_PORT]
All unrecognized command line arguments will be passed on to
rl_glue_ale_agent.py
"""
import subprocess
import sys
import os
import argparse
ROM_PATH = "/home/spragunr/neural_rl... | """This script launches all of the processes necessary to train a
deep Q-network on an ALE game.
Usage:
ale_run.py [--glue_port GLUE_PORT]
All unrecognized command line arguments will be passed on to
rl_glue_ale_agent.py
"""
import subprocess
import sys
import os
import argparse
# Put your binaries under the direct... | <commit_before>"""This script launches all of the processes necessary to train a
deep Q-network on an ALE game.
Usage:
ale_run.py [--glue_port GLUE_PORT]
All unrecognized command line arguments will be passed on to
rl_glue_ale_agent.py
"""
import subprocess
import sys
import os
import argparse
ROM_PATH = "/home/spr... | """This script launches all of the processes necessary to train a
deep Q-network on an ALE game.
Usage:
ale_run.py [--glue_port GLUE_PORT]
All unrecognized command line arguments will be passed on to
rl_glue_ale_agent.py
"""
import subprocess
import sys
import os
import argparse
# Put your binaries under the direct... | """This script launches all of the processes necessary to train a
deep Q-network on an ALE game.
Usage:
ale_run.py [--glue_port GLUE_PORT]
All unrecognized command line arguments will be passed on to
rl_glue_ale_agent.py
"""
import subprocess
import sys
import os
import argparse
ROM_PATH = "/home/spragunr/neural_rl... | <commit_before>"""This script launches all of the processes necessary to train a
deep Q-network on an ALE game.
Usage:
ale_run.py [--glue_port GLUE_PORT]
All unrecognized command line arguments will be passed on to
rl_glue_ale_agent.py
"""
import subprocess
import sys
import os
import argparse
ROM_PATH = "/home/spr... |
8b16084a4fe72a369ada80969f6b728abf611d8f | marathon_itests/environment.py | marathon_itests/environment.py | import time
from itest_utils import wait_for_marathon
from itest_utils import print_container_logs
def before_all(context):
wait_for_marathon()
def after_scenario(context, scenario):
"""If a marathon client object exists in our context, delete any apps in Marathon and wait until they die."""
print_cont... | import time
from itest_utils import wait_for_marathon
from itest_utils import print_container_logs
def before_all(context):
wait_for_marathon()
def after_scenario(context, scenario):
"""If a marathon client object exists in our context, delete any apps in Marathon and wait until they die."""
if scenari... | Print container logs only in case of failed scenario | Print container logs only in case of failed scenario
| Python | apache-2.0 | somic/paasta,gstarnberger/paasta,Yelp/paasta,gstarnberger/paasta,somic/paasta,Yelp/paasta | import time
from itest_utils import wait_for_marathon
from itest_utils import print_container_logs
def before_all(context):
wait_for_marathon()
def after_scenario(context, scenario):
"""If a marathon client object exists in our context, delete any apps in Marathon and wait until they die."""
print_cont... | import time
from itest_utils import wait_for_marathon
from itest_utils import print_container_logs
def before_all(context):
wait_for_marathon()
def after_scenario(context, scenario):
"""If a marathon client object exists in our context, delete any apps in Marathon and wait until they die."""
if scenari... | <commit_before>import time
from itest_utils import wait_for_marathon
from itest_utils import print_container_logs
def before_all(context):
wait_for_marathon()
def after_scenario(context, scenario):
"""If a marathon client object exists in our context, delete any apps in Marathon and wait until they die."""... | import time
from itest_utils import wait_for_marathon
from itest_utils import print_container_logs
def before_all(context):
wait_for_marathon()
def after_scenario(context, scenario):
"""If a marathon client object exists in our context, delete any apps in Marathon and wait until they die."""
if scenari... | import time
from itest_utils import wait_for_marathon
from itest_utils import print_container_logs
def before_all(context):
wait_for_marathon()
def after_scenario(context, scenario):
"""If a marathon client object exists in our context, delete any apps in Marathon and wait until they die."""
print_cont... | <commit_before>import time
from itest_utils import wait_for_marathon
from itest_utils import print_container_logs
def before_all(context):
wait_for_marathon()
def after_scenario(context, scenario):
"""If a marathon client object exists in our context, delete any apps in Marathon and wait until they die."""... |
692dd2d6563f75ff1a421c81037f7654cababafa | tests/pages/internet_health.py | tests/pages/internet_health.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from pages.base import BasePage
from pages.regions.download_button import D... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from pages.base import BasePage
from pages.regions.download_button import D... | Fix failing integration test on /internet-health/ | Fix failing integration test on /internet-health/
| Python | mpl-2.0 | mozilla/bedrock,alexgibson/bedrock,craigcook/bedrock,MichaelKohler/bedrock,sylvestre/bedrock,MichaelKohler/bedrock,pascalchevrel/bedrock,craigcook/bedrock,alexgibson/bedrock,ericawright/bedrock,pascalchevrel/bedrock,sgarrity/bedrock,mozilla/bedrock,alexgibson/bedrock,MichaelKohler/bedrock,hoosteeno/bedrock,flodolo/bedr... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from pages.base import BasePage
from pages.regions.download_button import D... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from pages.base import BasePage
from pages.regions.download_button import D... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from pages.base import BasePage
from pages.regions.download_... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from pages.base import BasePage
from pages.regions.download_button import D... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from pages.base import BasePage
from pages.regions.download_button import D... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from selenium.webdriver.common.by import By
from pages.base import BasePage
from pages.regions.download_... |
413c0b7f2df43543fd360bca1a9a6b9de4f6f5e8 | integration-tests/features/steps/user_intent.py | integration-tests/features/steps/user_intent.py | """Basic checks for the server API."""
from behave import then, when
from urllib.parse import urljoin
import requests
from src.authorization_tokens import authorization
from src.parsing import parse_token_clause
def post_data_to_user_intent_endpoint(context, payload=None):
"""Post data into the REST API endpoin... | """Basic checks for the server API."""
from behave import then, when
from urllib.parse import urljoin
import requests
from src.authorization_tokens import authorization
from src.parsing import parse_token_clause
def post_data_to_user_intent_endpoint(context, payload=None):
"""Post data into the REST API endpoin... | Fix - send JSON to the API, not raw data | Fix - send JSON to the API, not raw data
| Python | apache-2.0 | tisnik/fabric8-analytics-common,tisnik/fabric8-analytics-common,tisnik/fabric8-analytics-common | """Basic checks for the server API."""
from behave import then, when
from urllib.parse import urljoin
import requests
from src.authorization_tokens import authorization
from src.parsing import parse_token_clause
def post_data_to_user_intent_endpoint(context, payload=None):
"""Post data into the REST API endpoin... | """Basic checks for the server API."""
from behave import then, when
from urllib.parse import urljoin
import requests
from src.authorization_tokens import authorization
from src.parsing import parse_token_clause
def post_data_to_user_intent_endpoint(context, payload=None):
"""Post data into the REST API endpoin... | <commit_before>"""Basic checks for the server API."""
from behave import then, when
from urllib.parse import urljoin
import requests
from src.authorization_tokens import authorization
from src.parsing import parse_token_clause
def post_data_to_user_intent_endpoint(context, payload=None):
"""Post data into the R... | """Basic checks for the server API."""
from behave import then, when
from urllib.parse import urljoin
import requests
from src.authorization_tokens import authorization
from src.parsing import parse_token_clause
def post_data_to_user_intent_endpoint(context, payload=None):
"""Post data into the REST API endpoin... | """Basic checks for the server API."""
from behave import then, when
from urllib.parse import urljoin
import requests
from src.authorization_tokens import authorization
from src.parsing import parse_token_clause
def post_data_to_user_intent_endpoint(context, payload=None):
"""Post data into the REST API endpoin... | <commit_before>"""Basic checks for the server API."""
from behave import then, when
from urllib.parse import urljoin
import requests
from src.authorization_tokens import authorization
from src.parsing import parse_token_clause
def post_data_to_user_intent_endpoint(context, payload=None):
"""Post data into the R... |
a8af7cd7918322615a342c2fd662f394866da55f | tests/sentry/metrics/test_datadog.py | tests/sentry/metrics/test_datadog.py | from __future__ import absolute_import
import socket
from mock import patch
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestCase):
def setUp(self):
self.backend = DatadogMetricsBackend(prefix='sentrytest.')
@patch('... | from __future__ import absolute_import
from mock import patch
from datadog.util.hostname import get_hostname
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestCase):
def setUp(self):
self.backend = DatadogMetricsBackend(pr... | Test DatadogMetricsBackend against datadog's get_hostname | Test DatadogMetricsBackend against datadog's get_hostname
This fixes tests in Travis since the hostname returned is different
| Python | bsd-3-clause | pauloschilling/sentry,pauloschilling/sentry,pauloschilling/sentry | from __future__ import absolute_import
import socket
from mock import patch
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestCase):
def setUp(self):
self.backend = DatadogMetricsBackend(prefix='sentrytest.')
@patch('... | from __future__ import absolute_import
from mock import patch
from datadog.util.hostname import get_hostname
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestCase):
def setUp(self):
self.backend = DatadogMetricsBackend(pr... | <commit_before>from __future__ import absolute_import
import socket
from mock import patch
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestCase):
def setUp(self):
self.backend = DatadogMetricsBackend(prefix='sentrytest.'... | from __future__ import absolute_import
from mock import patch
from datadog.util.hostname import get_hostname
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestCase):
def setUp(self):
self.backend = DatadogMetricsBackend(pr... | from __future__ import absolute_import
import socket
from mock import patch
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestCase):
def setUp(self):
self.backend = DatadogMetricsBackend(prefix='sentrytest.')
@patch('... | <commit_before>from __future__ import absolute_import
import socket
from mock import patch
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestCase):
def setUp(self):
self.backend = DatadogMetricsBackend(prefix='sentrytest.'... |
7c117c4555fdf30b3d98a453c7e28245dca0c9b9 | tests/test_stack/test_stack.py | tests/test_stack/test_stack.py | import unittest
from aids.stack.stack import Stack
class StackTestCase(unittest.TestCase):
'''
Unit tests for the Stack data structure
'''
def setUp(self):
pass
def test_stack_initialization(self):
test_stack = Stack()
self.assertTrue(isinstance(test_stack, Stack))
def test_stack_is_em... | import unittest
from aids.stack.stack import Stack
class StackTestCase(unittest.TestCase):
'''
Unit tests for the Stack data structure
'''
def setUp(self):
self.test_stack = Stack()
def test_stack_initialization(self):
self.assertTrue(isinstance(self.test_stack, Stack))
def test_stack... | Add unit tests for push, peek, pop and size | Add unit tests for push, peek, pop and size | Python | mit | ueg1990/aids | import unittest
from aids.stack.stack import Stack
class StackTestCase(unittest.TestCase):
'''
Unit tests for the Stack data structure
'''
def setUp(self):
pass
def test_stack_initialization(self):
test_stack = Stack()
self.assertTrue(isinstance(test_stack, Stack))
def test_stack_is_em... | import unittest
from aids.stack.stack import Stack
class StackTestCase(unittest.TestCase):
'''
Unit tests for the Stack data structure
'''
def setUp(self):
self.test_stack = Stack()
def test_stack_initialization(self):
self.assertTrue(isinstance(self.test_stack, Stack))
def test_stack... | <commit_before>import unittest
from aids.stack.stack import Stack
class StackTestCase(unittest.TestCase):
'''
Unit tests for the Stack data structure
'''
def setUp(self):
pass
def test_stack_initialization(self):
test_stack = Stack()
self.assertTrue(isinstance(test_stack, Stack))
def t... | import unittest
from aids.stack.stack import Stack
class StackTestCase(unittest.TestCase):
'''
Unit tests for the Stack data structure
'''
def setUp(self):
self.test_stack = Stack()
def test_stack_initialization(self):
self.assertTrue(isinstance(self.test_stack, Stack))
def test_stack... | import unittest
from aids.stack.stack import Stack
class StackTestCase(unittest.TestCase):
'''
Unit tests for the Stack data structure
'''
def setUp(self):
pass
def test_stack_initialization(self):
test_stack = Stack()
self.assertTrue(isinstance(test_stack, Stack))
def test_stack_is_em... | <commit_before>import unittest
from aids.stack.stack import Stack
class StackTestCase(unittest.TestCase):
'''
Unit tests for the Stack data structure
'''
def setUp(self):
pass
def test_stack_initialization(self):
test_stack = Stack()
self.assertTrue(isinstance(test_stack, Stack))
def t... |
1ef1851e508295f6d4bf01289591f42c21656df7 | test/on_yubikey/test_interfaces.py | test/on_yubikey/test_interfaces.py | import unittest
from .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from ykman.device import connect_to_device
from time import sleep
@unittest.ski... | import unittest
from .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from ykman.base import YUBIKEY
from ykman.device import connect_to_device
from ti... | Test handling of reclaim timeout. | Test handling of reclaim timeout.
| Python | bsd-2-clause | Yubico/yubikey-manager,Yubico/yubikey-manager | import unittest
from .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from ykman.device import connect_to_device
from time import sleep
@unittest.ski... | import unittest
from .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from ykman.base import YUBIKEY
from ykman.device import connect_to_device
from ti... | <commit_before>import unittest
from .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from ykman.device import connect_to_device
from time import sleep
... | import unittest
from .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from ykman.base import YUBIKEY
from ykman.device import connect_to_device
from ti... | import unittest
from .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from ykman.device import connect_to_device
from time import sleep
@unittest.ski... | <commit_before>import unittest
from .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from ykman.device import connect_to_device
from time import sleep
... |
300cbd3ff4d0e5021892f7c9940635695cb017a3 | integration-test/197-clip-buildings.py | integration-test/197-clip-buildings.py | from shapely.geometry import shape
# this is mid way along the High Line in NYC, which is a huge long
# "building". we should be clipping it to a buffer of 3x the tile
# dimensions.
# http://www.openstreetmap.org/way/37054313
with features_in_tile_layer(16, 19295, 24631, 'buildings') as buildings:
# max width and ... | from shapely.geometry import shape
# this is mid way along the High Line in NYC, which is a huge long
# "building". we should be clipping it to a buffer of 3x the tile
# dimensions.
# http://www.openstreetmap.org/relation/7141751
with features_in_tile_layer(16, 19295, 24631, 'buildings') as buildings:
# max width ... | Update data for the High Line, NYC | Update data for the High Line, NYC
Looks like it was turned into a multipolygon relation in [this changeset](http://www.openstreetmap.org/changeset/47542769).
| Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | from shapely.geometry import shape
# this is mid way along the High Line in NYC, which is a huge long
# "building". we should be clipping it to a buffer of 3x the tile
# dimensions.
# http://www.openstreetmap.org/way/37054313
with features_in_tile_layer(16, 19295, 24631, 'buildings') as buildings:
# max width and ... | from shapely.geometry import shape
# this is mid way along the High Line in NYC, which is a huge long
# "building". we should be clipping it to a buffer of 3x the tile
# dimensions.
# http://www.openstreetmap.org/relation/7141751
with features_in_tile_layer(16, 19295, 24631, 'buildings') as buildings:
# max width ... | <commit_before>from shapely.geometry import shape
# this is mid way along the High Line in NYC, which is a huge long
# "building". we should be clipping it to a buffer of 3x the tile
# dimensions.
# http://www.openstreetmap.org/way/37054313
with features_in_tile_layer(16, 19295, 24631, 'buildings') as buildings:
#... | from shapely.geometry import shape
# this is mid way along the High Line in NYC, which is a huge long
# "building". we should be clipping it to a buffer of 3x the tile
# dimensions.
# http://www.openstreetmap.org/relation/7141751
with features_in_tile_layer(16, 19295, 24631, 'buildings') as buildings:
# max width ... | from shapely.geometry import shape
# this is mid way along the High Line in NYC, which is a huge long
# "building". we should be clipping it to a buffer of 3x the tile
# dimensions.
# http://www.openstreetmap.org/way/37054313
with features_in_tile_layer(16, 19295, 24631, 'buildings') as buildings:
# max width and ... | <commit_before>from shapely.geometry import shape
# this is mid way along the High Line in NYC, which is a huge long
# "building". we should be clipping it to a buffer of 3x the tile
# dimensions.
# http://www.openstreetmap.org/way/37054313
with features_in_tile_layer(16, 19295, 24631, 'buildings') as buildings:
#... |
86446c6d1b0b8583562e0fccf1745e95ce7003c2 | util/__init__.py | util/__init__.py | #!/usr/bin/env python
#
# dials.util.__init__.py
#
# Copyright (C) 2013 Diamond Light Source
#
# Author: James Parkhurst
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
from __future__ import division
class HalError(RuntimeError):
def _... | #!/usr/bin/env python
#
# dials.util.__init__.py
#
# Copyright (C) 2013 Diamond Light Source
#
# Author: James Parkhurst
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
from __future__ import division
class HalError(RuntimeError):
def _... | Print out errors to log. | Print out errors to log. | Python | bsd-3-clause | dials/dials,dials/dials,dials/dials,dials/dials,dials/dials | #!/usr/bin/env python
#
# dials.util.__init__.py
#
# Copyright (C) 2013 Diamond Light Source
#
# Author: James Parkhurst
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
from __future__ import division
class HalError(RuntimeError):
def _... | #!/usr/bin/env python
#
# dials.util.__init__.py
#
# Copyright (C) 2013 Diamond Light Source
#
# Author: James Parkhurst
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
from __future__ import division
class HalError(RuntimeError):
def _... | <commit_before>#!/usr/bin/env python
#
# dials.util.__init__.py
#
# Copyright (C) 2013 Diamond Light Source
#
# Author: James Parkhurst
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
from __future__ import division
class HalError(RuntimeEr... | #!/usr/bin/env python
#
# dials.util.__init__.py
#
# Copyright (C) 2013 Diamond Light Source
#
# Author: James Parkhurst
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
from __future__ import division
class HalError(RuntimeError):
def _... | #!/usr/bin/env python
#
# dials.util.__init__.py
#
# Copyright (C) 2013 Diamond Light Source
#
# Author: James Parkhurst
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
from __future__ import division
class HalError(RuntimeError):
def _... | <commit_before>#!/usr/bin/env python
#
# dials.util.__init__.py
#
# Copyright (C) 2013 Diamond Light Source
#
# Author: James Parkhurst
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
from __future__ import division
class HalError(RuntimeEr... |
aa3134912af3e57362310eb486d0f4e1d8660d0c | grains/grains.py | grains/grains.py | # File: grains.py
# Purpose: Write a program that calculates the number of grains of wheat
# on a chessboard given that the number on each square doubles.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Sunday 18 September 2016, 05:25 PM
import itertools
square = [x for x in r... | # File: grains.py
# Purpose: Write a program that calculates the number of grains of wheat
# on a chessboard given that the number on each square doubles.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Sunday 18 September 2016, 05:25 PM
square = [x for x in range(1, 65)]
grai... | Reformat total_after function + Remove itertools | Reformat total_after function + Remove itertools
| Python | mit | amalshehu/exercism-python | # File: grains.py
# Purpose: Write a program that calculates the number of grains of wheat
# on a chessboard given that the number on each square doubles.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Sunday 18 September 2016, 05:25 PM
import itertools
square = [x for x in r... | # File: grains.py
# Purpose: Write a program that calculates the number of grains of wheat
# on a chessboard given that the number on each square doubles.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Sunday 18 September 2016, 05:25 PM
square = [x for x in range(1, 65)]
grai... | <commit_before># File: grains.py
# Purpose: Write a program that calculates the number of grains of wheat
# on a chessboard given that the number on each square doubles.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Sunday 18 September 2016, 05:25 PM
import itertools
square ... | # File: grains.py
# Purpose: Write a program that calculates the number of grains of wheat
# on a chessboard given that the number on each square doubles.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Sunday 18 September 2016, 05:25 PM
square = [x for x in range(1, 65)]
grai... | # File: grains.py
# Purpose: Write a program that calculates the number of grains of wheat
# on a chessboard given that the number on each square doubles.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Sunday 18 September 2016, 05:25 PM
import itertools
square = [x for x in r... | <commit_before># File: grains.py
# Purpose: Write a program that calculates the number of grains of wheat
# on a chessboard given that the number on each square doubles.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Sunday 18 September 2016, 05:25 PM
import itertools
square ... |
5188861fb873ea301eb5ec386f1df65c0707e146 | openstack/tests/functional/object/v1/test_container.py | openstack/tests/functional/object/v1/test_container.py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | Add functional tests for container metadata and delete | Add functional tests for container metadata and delete
Change-Id: Id13073b37d19482ca6ff6e53e315aaa424c3f1b9
| Python | apache-2.0 | openstack/python-openstacksdk,dtroyer/python-openstacksdk,mtougeron/python-openstacksdk,briancurtin/python-openstacksdk,dudymas/python-openstacksdk,briancurtin/python-openstacksdk,dudymas/python-openstacksdk,openstack/python-openstacksdk,stackforge/python-openstacksdk,dtroyer/python-openstacksdk,mtougeron/python-openst... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... |
6b84688c1b5a7f2e8c9e5007455b88cbaa845e9f | tests/test_track_output/results.py | tests/test_track_output/results.py | #!/usr/bin/env python
import os
import sys
import glob
import shutil
from subprocess import call
# If vtk python module is not available, we can't run track.py so skip this
# test
cwd = os.getcwd()
try:
import vtk
except ImportError:
print('----------------Skipping test-------------')
shutil.copy('results... | #!/usr/bin/env python
import os
import sys
import glob
import shutil
from subprocess import call
# If vtk python module is not available, we can't run track.py so skip this
# test
cwd = os.getcwd()
try:
import vtk
except ImportError:
print('----------------Skipping test-------------')
shutil.copy('results... | Fix path to script in test_track_output | Fix path to script in test_track_output
| Python | mit | mjlong/openmc,wbinventor/openmc,bhermanmit/openmc,wbinventor/openmc,johnnyliu27/openmc,paulromano/openmc,mjlong/openmc,smharper/openmc,lilulu/openmc,johnnyliu27/openmc,amandalund/openmc,samuelshaner/openmc,mit-crpg/openmc,shikhar413/openmc,johnnyliu27/openmc,mit-crpg/openmc,liangjg/openmc,kellyrowland/openmc,amandalund... | #!/usr/bin/env python
import os
import sys
import glob
import shutil
from subprocess import call
# If vtk python module is not available, we can't run track.py so skip this
# test
cwd = os.getcwd()
try:
import vtk
except ImportError:
print('----------------Skipping test-------------')
shutil.copy('results... | #!/usr/bin/env python
import os
import sys
import glob
import shutil
from subprocess import call
# If vtk python module is not available, we can't run track.py so skip this
# test
cwd = os.getcwd()
try:
import vtk
except ImportError:
print('----------------Skipping test-------------')
shutil.copy('results... | <commit_before>#!/usr/bin/env python
import os
import sys
import glob
import shutil
from subprocess import call
# If vtk python module is not available, we can't run track.py so skip this
# test
cwd = os.getcwd()
try:
import vtk
except ImportError:
print('----------------Skipping test-------------')
shuti... | #!/usr/bin/env python
import os
import sys
import glob
import shutil
from subprocess import call
# If vtk python module is not available, we can't run track.py so skip this
# test
cwd = os.getcwd()
try:
import vtk
except ImportError:
print('----------------Skipping test-------------')
shutil.copy('results... | #!/usr/bin/env python
import os
import sys
import glob
import shutil
from subprocess import call
# If vtk python module is not available, we can't run track.py so skip this
# test
cwd = os.getcwd()
try:
import vtk
except ImportError:
print('----------------Skipping test-------------')
shutil.copy('results... | <commit_before>#!/usr/bin/env python
import os
import sys
import glob
import shutil
from subprocess import call
# If vtk python module is not available, we can't run track.py so skip this
# test
cwd = os.getcwd()
try:
import vtk
except ImportError:
print('----------------Skipping test-------------')
shuti... |
85cb348dab356386362fe7657dee3e31aa1f92bf | rep.py | rep.py | """
The top level of the APL Read-Evaluate-Print loop
UNDER DEVELOPMENT
This version adds a dummy evaluate routine.
"""
import sys
# ------------------------------
def evaluate(expression):
"""
Evaluate an APL expression - dummy version
"""
return (expression)
def read_evaluate... | """
The top level of the APL Read-Evaluate-Print loop
UNDER DEVELOPMENT
This version adds simple APL exception handling
"""
import sys
from apl_exception import APL_Exception as apl_exception
# ------------------------------
def evaluate(expression):
"""
Evaluate an APL expression - dummy ... | Add exception handling to the read-evaluate-loop | Add exception handling to the read-evaluate-loop
| Python | apache-2.0 | NewForester/apl-py,NewForester/apl-py | """
The top level of the APL Read-Evaluate-Print loop
UNDER DEVELOPMENT
This version adds a dummy evaluate routine.
"""
import sys
# ------------------------------
def evaluate(expression):
"""
Evaluate an APL expression - dummy version
"""
return (expression)
def read_evaluate... | """
The top level of the APL Read-Evaluate-Print loop
UNDER DEVELOPMENT
This version adds simple APL exception handling
"""
import sys
from apl_exception import APL_Exception as apl_exception
# ------------------------------
def evaluate(expression):
"""
Evaluate an APL expression - dummy ... | <commit_before>"""
The top level of the APL Read-Evaluate-Print loop
UNDER DEVELOPMENT
This version adds a dummy evaluate routine.
"""
import sys
# ------------------------------
def evaluate(expression):
"""
Evaluate an APL expression - dummy version
"""
return (expression)
def ... | """
The top level of the APL Read-Evaluate-Print loop
UNDER DEVELOPMENT
This version adds simple APL exception handling
"""
import sys
from apl_exception import APL_Exception as apl_exception
# ------------------------------
def evaluate(expression):
"""
Evaluate an APL expression - dummy ... | """
The top level of the APL Read-Evaluate-Print loop
UNDER DEVELOPMENT
This version adds a dummy evaluate routine.
"""
import sys
# ------------------------------
def evaluate(expression):
"""
Evaluate an APL expression - dummy version
"""
return (expression)
def read_evaluate... | <commit_before>"""
The top level of the APL Read-Evaluate-Print loop
UNDER DEVELOPMENT
This version adds a dummy evaluate routine.
"""
import sys
# ------------------------------
def evaluate(expression):
"""
Evaluate an APL expression - dummy version
"""
return (expression)
def ... |
574fba0650e4c68b7a31533207c26d8d57ed49c2 | run.py | run.py | from sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
if argv[1] == 'connect4':
Connect4Network().play()
| from sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
if len(argv) > 1:
if argv[1] == 'connect4':
Connect4Network().play()
| Check length of argv before accessing it | Check length of argv before accessing it
| Python | mit | tysonzero/py-ann | from sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
if argv[1] == 'connect4':
Connect4Network().play()
Check length of argv before accessing it | from sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
if len(argv) > 1:
if argv[1] == 'connect4':
Connect4Network().play()
| <commit_before>from sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
if argv[1] == 'connect4':
Connect4Network().play()
<commit_msg>Check length of argv before accessing it<commit_after> | from sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
if len(argv) > 1:
if argv[1] == 'connect4':
Connect4Network().play()
| from sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
if argv[1] == 'connect4':
Connect4Network().play()
Check length of argv before accessing itfrom sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
i... | <commit_before>from sys import argv
from examples.connect4.connect4 import Connect4Network
if __name__ == '__main__':
if argv[1] == 'connect4':
Connect4Network().play()
<commit_msg>Check length of argv before accessing it<commit_after>from sys import argv
from examples.connect4.connect4 import Connect4N... |
a7867806a6bd3abfd6bf2bcac6c490965be000e2 | tests/test_completeness.py | tests/test_completeness.py | import unittest as unittest
from syntax import Syntax
from jscodegen import CodeGenerator
def add_cases(generator):
def class_decorator(cls):
"""Add tests to `cls` generated by `generator()`."""
for f, token in generator():
test = lambda self, i=token, f=f: f(self, i)
test.... | import unittest as unittest
from jscodegen.syntax import Syntax
from jscodegen import CodeGenerator
def add_cases(generator):
def class_decorator(cls):
"""Add tests to `cls` generated by `generator()`."""
for f, token in generator():
test = lambda self, i=token, f=f: f(self, i)
... | Fix an issue in the tests | Fix an issue in the tests
| Python | mit | ksons/jscodegen.py | import unittest as unittest
from syntax import Syntax
from jscodegen import CodeGenerator
def add_cases(generator):
def class_decorator(cls):
"""Add tests to `cls` generated by `generator()`."""
for f, token in generator():
test = lambda self, i=token, f=f: f(self, i)
test.... | import unittest as unittest
from jscodegen.syntax import Syntax
from jscodegen import CodeGenerator
def add_cases(generator):
def class_decorator(cls):
"""Add tests to `cls` generated by `generator()`."""
for f, token in generator():
test = lambda self, i=token, f=f: f(self, i)
... | <commit_before>import unittest as unittest
from syntax import Syntax
from jscodegen import CodeGenerator
def add_cases(generator):
def class_decorator(cls):
"""Add tests to `cls` generated by `generator()`."""
for f, token in generator():
test = lambda self, i=token, f=f: f(self, i)
... | import unittest as unittest
from jscodegen.syntax import Syntax
from jscodegen import CodeGenerator
def add_cases(generator):
def class_decorator(cls):
"""Add tests to `cls` generated by `generator()`."""
for f, token in generator():
test = lambda self, i=token, f=f: f(self, i)
... | import unittest as unittest
from syntax import Syntax
from jscodegen import CodeGenerator
def add_cases(generator):
def class_decorator(cls):
"""Add tests to `cls` generated by `generator()`."""
for f, token in generator():
test = lambda self, i=token, f=f: f(self, i)
test.... | <commit_before>import unittest as unittest
from syntax import Syntax
from jscodegen import CodeGenerator
def add_cases(generator):
def class_decorator(cls):
"""Add tests to `cls` generated by `generator()`."""
for f, token in generator():
test = lambda self, i=token, f=f: f(self, i)
... |
eb0a5e5768c2f699cbc1f6395d3c14320d8e730d | template/__init__.py | template/__init__.py | #!/usr/bin/env python
# pylint: disable=import-error
"""Generate files from Jinja2 templates and environment variables."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
) # pylint: disable=duplicate-code
from os import environ
from sys import stdin, stdout
impor... | #!/usr/bin/env python
# pylint: disable=import-error
"""A CLI tool for generating files from Jinja2 templates and environment
variables."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
) # pylint: disable=duplicate-code
from os import environ
from sys import st... | Use the docstring as the CLI description. | Use the docstring as the CLI description.
| Python | agpl-3.0 | adarnimrod/template,adarnimrod/template | #!/usr/bin/env python
# pylint: disable=import-error
"""Generate files from Jinja2 templates and environment variables."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
) # pylint: disable=duplicate-code
from os import environ
from sys import stdin, stdout
impor... | #!/usr/bin/env python
# pylint: disable=import-error
"""A CLI tool for generating files from Jinja2 templates and environment
variables."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
) # pylint: disable=duplicate-code
from os import environ
from sys import st... | <commit_before>#!/usr/bin/env python
# pylint: disable=import-error
"""Generate files from Jinja2 templates and environment variables."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
) # pylint: disable=duplicate-code
from os import environ
from sys import stdi... | #!/usr/bin/env python
# pylint: disable=import-error
"""A CLI tool for generating files from Jinja2 templates and environment
variables."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
) # pylint: disable=duplicate-code
from os import environ
from sys import st... | #!/usr/bin/env python
# pylint: disable=import-error
"""Generate files from Jinja2 templates and environment variables."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
) # pylint: disable=duplicate-code
from os import environ
from sys import stdin, stdout
impor... | <commit_before>#!/usr/bin/env python
# pylint: disable=import-error
"""Generate files from Jinja2 templates and environment variables."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
) # pylint: disable=duplicate-code
from os import environ
from sys import stdi... |
3aa7dd8d1247fe9d426049c8b09db0a5b1af9067 | prediction/test_tuner.py | prediction/test_tuner.py | from .tuner import Hyperband
import unittest
class HyperbandTestCase(unittest.TestCase):
def test_run(self):
observed_ns = []
observed_rs = []
observed_cs = []
def _get(n):
observed_ns.append(n)
return list(range(n))
def _test(r, c):
obse... | from .tuner import Hyperband
import unittest
class HyperbandTestCase(unittest.TestCase):
def test_run(self):
observed_ns = []
observed_rs = []
observed_cs = []
def _get(n):
observed_ns.append(n)
return list(range(n))
def _test(r, c):
obse... | Fix a typo in Hyperband’s test | Fix a typo in Hyperband’s test
| Python | mit | learning-on-chip/google-cluster-prediction | from .tuner import Hyperband
import unittest
class HyperbandTestCase(unittest.TestCase):
def test_run(self):
observed_ns = []
observed_rs = []
observed_cs = []
def _get(n):
observed_ns.append(n)
return list(range(n))
def _test(r, c):
obse... | from .tuner import Hyperband
import unittest
class HyperbandTestCase(unittest.TestCase):
def test_run(self):
observed_ns = []
observed_rs = []
observed_cs = []
def _get(n):
observed_ns.append(n)
return list(range(n))
def _test(r, c):
obse... | <commit_before>from .tuner import Hyperband
import unittest
class HyperbandTestCase(unittest.TestCase):
def test_run(self):
observed_ns = []
observed_rs = []
observed_cs = []
def _get(n):
observed_ns.append(n)
return list(range(n))
def _test(r, c):
... | from .tuner import Hyperband
import unittest
class HyperbandTestCase(unittest.TestCase):
def test_run(self):
observed_ns = []
observed_rs = []
observed_cs = []
def _get(n):
observed_ns.append(n)
return list(range(n))
def _test(r, c):
obse... | from .tuner import Hyperband
import unittest
class HyperbandTestCase(unittest.TestCase):
def test_run(self):
observed_ns = []
observed_rs = []
observed_cs = []
def _get(n):
observed_ns.append(n)
return list(range(n))
def _test(r, c):
obse... | <commit_before>from .tuner import Hyperband
import unittest
class HyperbandTestCase(unittest.TestCase):
def test_run(self):
observed_ns = []
observed_rs = []
observed_cs = []
def _get(n):
observed_ns.append(n)
return list(range(n))
def _test(r, c):
... |
14ef0cc78c327c67a2acdb68915d427e4babdd4b | run_tests.py | run_tests.py | from os import getcwd
from sys import path as ppath
ppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)
import unittest
from lifegame.test.LifeGameTestSuite import LifeGameTestSuite
from tests.TestSuite import TestSuite
# TODO: Lister les tests ailleurs ? Recuperer les suite de tests de modu... | from os import getcwd
from sys import path as ppath
ppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)
import unittest
from lifegame.test.LifeGameTestSuite import LifeGameTestSuite
from tests.TestSuite import TestSuite
# TODO: Lister les tests ailleurs ? Recuperer les suite de tests de modu... | Test running: exit with run test status | Test running: exit with run test status
| Python | apache-2.0 | buxx/synergine | from os import getcwd
from sys import path as ppath
ppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)
import unittest
from lifegame.test.LifeGameTestSuite import LifeGameTestSuite
from tests.TestSuite import TestSuite
# TODO: Lister les tests ailleurs ? Recuperer les suite de tests de modu... | from os import getcwd
from sys import path as ppath
ppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)
import unittest
from lifegame.test.LifeGameTestSuite import LifeGameTestSuite
from tests.TestSuite import TestSuite
# TODO: Lister les tests ailleurs ? Recuperer les suite de tests de modu... | <commit_before>from os import getcwd
from sys import path as ppath
ppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)
import unittest
from lifegame.test.LifeGameTestSuite import LifeGameTestSuite
from tests.TestSuite import TestSuite
# TODO: Lister les tests ailleurs ? Recuperer les suite d... | from os import getcwd
from sys import path as ppath
ppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)
import unittest
from lifegame.test.LifeGameTestSuite import LifeGameTestSuite
from tests.TestSuite import TestSuite
# TODO: Lister les tests ailleurs ? Recuperer les suite de tests de modu... | from os import getcwd
from sys import path as ppath
ppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)
import unittest
from lifegame.test.LifeGameTestSuite import LifeGameTestSuite
from tests.TestSuite import TestSuite
# TODO: Lister les tests ailleurs ? Recuperer les suite de tests de modu... | <commit_before>from os import getcwd
from sys import path as ppath
ppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)
import unittest
from lifegame.test.LifeGameTestSuite import LifeGameTestSuite
from tests.TestSuite import TestSuite
# TODO: Lister les tests ailleurs ? Recuperer les suite d... |
ae593fd5de74a123b5064ef2e018b4955dc9e6c9 | runserver.py | runserver.py | #!/usr/local/bin/python2.7
import sys
from datetime import date
from main import app
from upload_s3 import set_metadata
from flask_frozen import Freezer
# cron is called with 3 arguments, should only run in the first week of month
cron_condition = len(sys.argv) == 3 and date.today().day > 8
force_update = len(sys.ar... | #!/usr/local/bin/python2.7
import sys
from datetime import date
from main import app
from upload_s3 import set_metadata
from flask_frozen import Freezer
# cron is called with 3 arguments, should only run in the first week of month
cron_condition = len(sys.argv) == 3 and date.today().day < 8
force_update = len(sys.ar... | Complete testing, change back to production code | Complete testing, change back to production code
| Python | apache-2.0 | vprnet/dorothys-list,vprnet/dorothys-list,vprnet/dorothys-list | #!/usr/local/bin/python2.7
import sys
from datetime import date
from main import app
from upload_s3 import set_metadata
from flask_frozen import Freezer
# cron is called with 3 arguments, should only run in the first week of month
cron_condition = len(sys.argv) == 3 and date.today().day > 8
force_update = len(sys.ar... | #!/usr/local/bin/python2.7
import sys
from datetime import date
from main import app
from upload_s3 import set_metadata
from flask_frozen import Freezer
# cron is called with 3 arguments, should only run in the first week of month
cron_condition = len(sys.argv) == 3 and date.today().day < 8
force_update = len(sys.ar... | <commit_before>#!/usr/local/bin/python2.7
import sys
from datetime import date
from main import app
from upload_s3 import set_metadata
from flask_frozen import Freezer
# cron is called with 3 arguments, should only run in the first week of month
cron_condition = len(sys.argv) == 3 and date.today().day > 8
force_upda... | #!/usr/local/bin/python2.7
import sys
from datetime import date
from main import app
from upload_s3 import set_metadata
from flask_frozen import Freezer
# cron is called with 3 arguments, should only run in the first week of month
cron_condition = len(sys.argv) == 3 and date.today().day < 8
force_update = len(sys.ar... | #!/usr/local/bin/python2.7
import sys
from datetime import date
from main import app
from upload_s3 import set_metadata
from flask_frozen import Freezer
# cron is called with 3 arguments, should only run in the first week of month
cron_condition = len(sys.argv) == 3 and date.today().day > 8
force_update = len(sys.ar... | <commit_before>#!/usr/local/bin/python2.7
import sys
from datetime import date
from main import app
from upload_s3 import set_metadata
from flask_frozen import Freezer
# cron is called with 3 arguments, should only run in the first week of month
cron_condition = len(sys.argv) == 3 and date.today().day > 8
force_upda... |
3cef3e4774923b81e622f03aee44a933293c6a8d | modelview/migrations/0036_auto_20170322_1622.py | modelview/migrations/0036_auto_20170322_1622.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-22 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('modelview', '0035_auto_20160426_1721'),
]
operations = [
migrations.AlterFi... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-22 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
#('modelview', '0035_auto_20160426_1721'),
('modelview', '0035_auto_20170724_1801'),
... | Change reference from modelview/0035_auto_20160426 to 0035_auto_20170724 | Change reference from modelview/0035_auto_20160426 to 0035_auto_20170724
| Python | agpl-3.0 | openego/oeplatform,tom-heimbrodt/oeplatform,tom-heimbrodt/oeplatform,openego/oeplatform,tom-heimbrodt/oeplatform,openego/oeplatform,openego/oeplatform | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-22 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('modelview', '0035_auto_20160426_1721'),
]
operations = [
migrations.AlterFi... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-22 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
#('modelview', '0035_auto_20160426_1721'),
('modelview', '0035_auto_20170724_1801'),
... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-22 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('modelview', '0035_auto_20160426_1721'),
]
operations = [
mig... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-22 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
#('modelview', '0035_auto_20160426_1721'),
('modelview', '0035_auto_20170724_1801'),
... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-22 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('modelview', '0035_auto_20160426_1721'),
]
operations = [
migrations.AlterFi... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-22 15:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('modelview', '0035_auto_20160426_1721'),
]
operations = [
mig... |
c50d9efe011417162ab6e99e19973dcde6b3ddfa | utils/get_collection_object_count.py | utils/get_collection_object_count.py | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import argparse
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(
description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to coll... | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import argparse
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(
description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to coll... | Change default arg value for pynuxrc | Change default arg value for pynuxrc
| Python | bsd-3-clause | barbarahui/nuxeo-calisphere,barbarahui/nuxeo-calisphere | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import argparse
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(
description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to coll... | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import argparse
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(
description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to coll... | <commit_before>#!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import argparse
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(
description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nux... | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import argparse
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(
description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to coll... | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import argparse
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(
description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to coll... | <commit_before>#!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import argparse
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(
description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nux... |
dad05c2eff78383e3179fd1f4a4502fe553afecd | tests/lib/docker_compose_tools.py | tests/lib/docker_compose_tools.py | # pylint: disable=line-too-long
""" Handles docker compose """
from lib.docker_tools import docker_compose
from lib.tools import show_status
def set_up(pg_version, es_version):
""" Start containers """
compose = docker_compose(pg_version, es_version)
show_status(
"Starting testing environment f... | # pylint: disable=line-too-long
""" Handles docker compose """
import sys
from sh import ErrorReturnCode
from lib.docker_tools import docker_compose
from lib.tools import show_status
def set_up(pg_version, es_version):
""" Start containers """
compose = docker_compose(pg_version, es_version)
show_sta... | Print full stdout / stderr when image build fails | Print full stdout / stderr when image build fails
| Python | mit | matthewfranglen/postgres-elasticsearch-fdw | # pylint: disable=line-too-long
""" Handles docker compose """
from lib.docker_tools import docker_compose
from lib.tools import show_status
def set_up(pg_version, es_version):
""" Start containers """
compose = docker_compose(pg_version, es_version)
show_status(
"Starting testing environment f... | # pylint: disable=line-too-long
""" Handles docker compose """
import sys
from sh import ErrorReturnCode
from lib.docker_tools import docker_compose
from lib.tools import show_status
def set_up(pg_version, es_version):
""" Start containers """
compose = docker_compose(pg_version, es_version)
show_sta... | <commit_before># pylint: disable=line-too-long
""" Handles docker compose """
from lib.docker_tools import docker_compose
from lib.tools import show_status
def set_up(pg_version, es_version):
""" Start containers """
compose = docker_compose(pg_version, es_version)
show_status(
"Starting testin... | # pylint: disable=line-too-long
""" Handles docker compose """
import sys
from sh import ErrorReturnCode
from lib.docker_tools import docker_compose
from lib.tools import show_status
def set_up(pg_version, es_version):
""" Start containers """
compose = docker_compose(pg_version, es_version)
show_sta... | # pylint: disable=line-too-long
""" Handles docker compose """
from lib.docker_tools import docker_compose
from lib.tools import show_status
def set_up(pg_version, es_version):
""" Start containers """
compose = docker_compose(pg_version, es_version)
show_status(
"Starting testing environment f... | <commit_before># pylint: disable=line-too-long
""" Handles docker compose """
from lib.docker_tools import docker_compose
from lib.tools import show_status
def set_up(pg_version, es_version):
""" Start containers """
compose = docker_compose(pg_version, es_version)
show_status(
"Starting testin... |
482bcbaeddf3d18c445b780a083d723a85a6dd88 | wok/renderers.py | wok/renderers.py | from markdown import markdown
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
class Renderer(object):
extensions = []
@classmethod
def render(cls, plain):
return plain
class Markdown(Renderer):
extensions = ['markdown', 'mkd']
@classmethod
def re... | from markdown import markdown
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
class Renderer(object):
extensions = []
@classmethod
def render(cls, plain):
return plain
class Markdown(Renderer):
extensions = ['markdown', 'mkd']
@classmethod
def re... | Enable syntax highlighting with Markdown. | Enable syntax highlighting with Markdown.
| Python | mit | wummel/wok,mythmon/wok,ngokevin/wok,matt-garman/wok,Avaren/wok,algor512/wok,edunham/wok,ngokevin/wok,chrplace/wok,moreati/wok,mythmon/wok,algor512/wok,vaygr/wok,vaygr/wok,edunham/wok,algor512/wok,moreati/wok,abbgrade/wok,edunham/wok,gchriz/wok,abbgrade/wok,matt-garman/wok,chrplace/wok,chrplace/wok,matt-garman/wok,jneve... | from markdown import markdown
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
class Renderer(object):
extensions = []
@classmethod
def render(cls, plain):
return plain
class Markdown(Renderer):
extensions = ['markdown', 'mkd']
@classmethod
def re... | from markdown import markdown
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
class Renderer(object):
extensions = []
@classmethod
def render(cls, plain):
return plain
class Markdown(Renderer):
extensions = ['markdown', 'mkd']
@classmethod
def re... | <commit_before>from markdown import markdown
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
class Renderer(object):
extensions = []
@classmethod
def render(cls, plain):
return plain
class Markdown(Renderer):
extensions = ['markdown', 'mkd']
@classme... | from markdown import markdown
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
class Renderer(object):
extensions = []
@classmethod
def render(cls, plain):
return plain
class Markdown(Renderer):
extensions = ['markdown', 'mkd']
@classmethod
def re... | from markdown import markdown
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
class Renderer(object):
extensions = []
@classmethod
def render(cls, plain):
return plain
class Markdown(Renderer):
extensions = ['markdown', 'mkd']
@classmethod
def re... | <commit_before>from markdown import markdown
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
class Renderer(object):
extensions = []
@classmethod
def render(cls, plain):
return plain
class Markdown(Renderer):
extensions = ['markdown', 'mkd']
@classme... |
7fd5db30d8ce8b6ecc8fdb87f695f484e5e9f38f | jacquard/wsgi.py | jacquard/wsgi.py | """
WSGI application target.
This module is designed for use when running the Jacquard server from a WSGI
web server such as waitress or gunicorn. `jacquard.wsgi` would be the module
to target, picking up the WSGI application from `app`.
In this case, the configuration file can be specified through the environment
va... | """
WSGI application target.
This module is designed for use when running the Jacquard server from a WSGI
web server such as waitress or gunicorn. `jacquard.wsgi` would be the module
to target, picking up the WSGI application from `app`.
In this case, the configuration file can be specified through the environment
va... | Add environment variable for configuring logging | Add environment variable for configuring logging
| Python | mit | prophile/jacquard,prophile/jacquard | """
WSGI application target.
This module is designed for use when running the Jacquard server from a WSGI
web server such as waitress or gunicorn. `jacquard.wsgi` would be the module
to target, picking up the WSGI application from `app`.
In this case, the configuration file can be specified through the environment
va... | """
WSGI application target.
This module is designed for use when running the Jacquard server from a WSGI
web server such as waitress or gunicorn. `jacquard.wsgi` would be the module
to target, picking up the WSGI application from `app`.
In this case, the configuration file can be specified through the environment
va... | <commit_before>"""
WSGI application target.
This module is designed for use when running the Jacquard server from a WSGI
web server such as waitress or gunicorn. `jacquard.wsgi` would be the module
to target, picking up the WSGI application from `app`.
In this case, the configuration file can be specified through the... | """
WSGI application target.
This module is designed for use when running the Jacquard server from a WSGI
web server such as waitress or gunicorn. `jacquard.wsgi` would be the module
to target, picking up the WSGI application from `app`.
In this case, the configuration file can be specified through the environment
va... | """
WSGI application target.
This module is designed for use when running the Jacquard server from a WSGI
web server such as waitress or gunicorn. `jacquard.wsgi` would be the module
to target, picking up the WSGI application from `app`.
In this case, the configuration file can be specified through the environment
va... | <commit_before>"""
WSGI application target.
This module is designed for use when running the Jacquard server from a WSGI
web server such as waitress or gunicorn. `jacquard.wsgi` would be the module
to target, picking up the WSGI application from `app`.
In this case, the configuration file can be specified through the... |
eef8498388c672b25344a3f6fd8c05166e4ed4f6 | xea_core/urls.py | xea_core/urls.py | """xea_core URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | """xea_core URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | Add namespace to jwt_knox URLs | Add namespace to jwt_knox URLs
| Python | agpl-3.0 | gpul-org/xea-core | """xea_core URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | """xea_core URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | <commit_before>"""xea_core URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='... | """xea_core URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | """xea_core URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | <commit_before>"""xea_core URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='... |
6cce924d849f209fb8251acd4c21d65ad0daa24c | plugins/basic_info_plugin.py | plugins/basic_info_plugin.py | import string
import textwrap
from veryprettytable import VeryPrettyTable
from plugins import BasePlugin
__author__ = 'peter'
class BasicInfoPlugin(BasePlugin):
short_description = 'List some basic info about the string in a table'
header = 'Basic info:'
default = True
description = textwrap.deden... | import string
import textwrap
from veryprettytable import VeryPrettyTable
from plugins import BasePlugin
from plugins.util import green, red
__author__ = 'peter'
class BasicInfoPlugin(BasePlugin):
short_description = 'List some basic info about the string in a table'
header = 'Basic info:'
default = T... | Add hex check to basic info | Add hex check to basic info
| Python | mit | Sakartu/stringinfo | import string
import textwrap
from veryprettytable import VeryPrettyTable
from plugins import BasePlugin
__author__ = 'peter'
class BasicInfoPlugin(BasePlugin):
short_description = 'List some basic info about the string in a table'
header = 'Basic info:'
default = True
description = textwrap.deden... | import string
import textwrap
from veryprettytable import VeryPrettyTable
from plugins import BasePlugin
from plugins.util import green, red
__author__ = 'peter'
class BasicInfoPlugin(BasePlugin):
short_description = 'List some basic info about the string in a table'
header = 'Basic info:'
default = T... | <commit_before>import string
import textwrap
from veryprettytable import VeryPrettyTable
from plugins import BasePlugin
__author__ = 'peter'
class BasicInfoPlugin(BasePlugin):
short_description = 'List some basic info about the string in a table'
header = 'Basic info:'
default = True
description =... | import string
import textwrap
from veryprettytable import VeryPrettyTable
from plugins import BasePlugin
from plugins.util import green, red
__author__ = 'peter'
class BasicInfoPlugin(BasePlugin):
short_description = 'List some basic info about the string in a table'
header = 'Basic info:'
default = T... | import string
import textwrap
from veryprettytable import VeryPrettyTable
from plugins import BasePlugin
__author__ = 'peter'
class BasicInfoPlugin(BasePlugin):
short_description = 'List some basic info about the string in a table'
header = 'Basic info:'
default = True
description = textwrap.deden... | <commit_before>import string
import textwrap
from veryprettytable import VeryPrettyTable
from plugins import BasePlugin
__author__ = 'peter'
class BasicInfoPlugin(BasePlugin):
short_description = 'List some basic info about the string in a table'
header = 'Basic info:'
default = True
description =... |
1e82bf0e23775dfc2541dc8c2dec4447c20f2cda | tests/submitsaved.py | tests/submitsaved.py | #!/usr/bin/env python2
import pickle, sys
sys.path.append('../')
from lewas.parsers import UnitParser, AttrParser, field_rangler
import lewas.datastores
import lewas.models
config = "../config"
config = lewas.readConfig(config)
lewas.datastores.submitRequest(pickle.load(open(sys.argv[1])), config, False)
| #!/usr/bin/env python2
import pickle, sys
sys.path.append('../')
from lewas.parsers import UnitParser, AttrParser, field_rangler
import lewas.datastores
import lewas.models
config = "../config"
config = lewas.readConfig(config)
for fn in sys.argv[1:]:
lewas.datastores.submitRequest(pickle.load(open(fn)), config, ... | Add capability to resubmit multiple files | Add capability to resubmit multiple files
| Python | mit | LEWASatVT/lewas | #!/usr/bin/env python2
import pickle, sys
sys.path.append('../')
from lewas.parsers import UnitParser, AttrParser, field_rangler
import lewas.datastores
import lewas.models
config = "../config"
config = lewas.readConfig(config)
lewas.datastores.submitRequest(pickle.load(open(sys.argv[1])), config, False)
Add capabili... | #!/usr/bin/env python2
import pickle, sys
sys.path.append('../')
from lewas.parsers import UnitParser, AttrParser, field_rangler
import lewas.datastores
import lewas.models
config = "../config"
config = lewas.readConfig(config)
for fn in sys.argv[1:]:
lewas.datastores.submitRequest(pickle.load(open(fn)), config, ... | <commit_before>#!/usr/bin/env python2
import pickle, sys
sys.path.append('../')
from lewas.parsers import UnitParser, AttrParser, field_rangler
import lewas.datastores
import lewas.models
config = "../config"
config = lewas.readConfig(config)
lewas.datastores.submitRequest(pickle.load(open(sys.argv[1])), config, Fals... | #!/usr/bin/env python2
import pickle, sys
sys.path.append('../')
from lewas.parsers import UnitParser, AttrParser, field_rangler
import lewas.datastores
import lewas.models
config = "../config"
config = lewas.readConfig(config)
for fn in sys.argv[1:]:
lewas.datastores.submitRequest(pickle.load(open(fn)), config, ... | #!/usr/bin/env python2
import pickle, sys
sys.path.append('../')
from lewas.parsers import UnitParser, AttrParser, field_rangler
import lewas.datastores
import lewas.models
config = "../config"
config = lewas.readConfig(config)
lewas.datastores.submitRequest(pickle.load(open(sys.argv[1])), config, False)
Add capabili... | <commit_before>#!/usr/bin/env python2
import pickle, sys
sys.path.append('../')
from lewas.parsers import UnitParser, AttrParser, field_rangler
import lewas.datastores
import lewas.models
config = "../config"
config = lewas.readConfig(config)
lewas.datastores.submitRequest(pickle.load(open(sys.argv[1])), config, Fals... |
d8a2eb66521f49c535d54cfa8a66965bc0fc8caf | tests/test_client.py | tests/test_client.py | from __future__ import unicode_literals
import pytest
from bugbuzz import BugBuzzClient
@pytest.fixture
def bugbuzz_client(base_url='http://localhost'):
return BugBuzzClient(base_url)
def test_random_access_key():
keys = set()
for _ in range(100):
client = bugbuzz_client()
keys.add(cli... | from __future__ import unicode_literals
import pytest
from Crypto.Cipher import AES
from bugbuzz import BugBuzzClient
from bugbuzz import pkcs5_unpad
@pytest.fixture
def bugbuzz_client(base_url='http://localhost'):
return BugBuzzClient(base_url)
def test_random_access_key():
keys = set()
for _ in rang... | Add test for encrypt and decrypt | Add test for encrypt and decrypt
| Python | mit | victorlin/bugbuzz-python,victorlin/bugbuzz-python | from __future__ import unicode_literals
import pytest
from bugbuzz import BugBuzzClient
@pytest.fixture
def bugbuzz_client(base_url='http://localhost'):
return BugBuzzClient(base_url)
def test_random_access_key():
keys = set()
for _ in range(100):
client = bugbuzz_client()
keys.add(cli... | from __future__ import unicode_literals
import pytest
from Crypto.Cipher import AES
from bugbuzz import BugBuzzClient
from bugbuzz import pkcs5_unpad
@pytest.fixture
def bugbuzz_client(base_url='http://localhost'):
return BugBuzzClient(base_url)
def test_random_access_key():
keys = set()
for _ in rang... | <commit_before>from __future__ import unicode_literals
import pytest
from bugbuzz import BugBuzzClient
@pytest.fixture
def bugbuzz_client(base_url='http://localhost'):
return BugBuzzClient(base_url)
def test_random_access_key():
keys = set()
for _ in range(100):
client = bugbuzz_client()
... | from __future__ import unicode_literals
import pytest
from Crypto.Cipher import AES
from bugbuzz import BugBuzzClient
from bugbuzz import pkcs5_unpad
@pytest.fixture
def bugbuzz_client(base_url='http://localhost'):
return BugBuzzClient(base_url)
def test_random_access_key():
keys = set()
for _ in rang... | from __future__ import unicode_literals
import pytest
from bugbuzz import BugBuzzClient
@pytest.fixture
def bugbuzz_client(base_url='http://localhost'):
return BugBuzzClient(base_url)
def test_random_access_key():
keys = set()
for _ in range(100):
client = bugbuzz_client()
keys.add(cli... | <commit_before>from __future__ import unicode_literals
import pytest
from bugbuzz import BugBuzzClient
@pytest.fixture
def bugbuzz_client(base_url='http://localhost'):
return BugBuzzClient(base_url)
def test_random_access_key():
keys = set()
for _ in range(100):
client = bugbuzz_client()
... |
5d44e71da2835ff9cdeb9fa21d0fcd8645c4365a | fjord/urls.py | fjord/urls.py | from django.conf import settings
from django.conf.urls.defaults import patterns, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus import AdminSitePlus
adm... | from django.conf import settings
from django.conf.urls.defaults import patterns, include
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.con... | Revert "Nix helpful admin login requirement" | Revert "Nix helpful admin login requirement"
This reverts commit 684dc38622d6cbe70879fb900ce5d73146a0cb40.
We can put it back in because we're going to stick with LDAP basic
auth.
| Python | bsd-3-clause | lgp171188/fjord,rlr/fjord,DESHRAJ/fjord,hoosteeno/fjord,lgp171188/fjord,staranjeet/fjord,lgp171188/fjord,mozilla/fjord,Ritsyy/fjord,DESHRAJ/fjord,mozilla/fjord,mozilla/fjord,hoosteeno/fjord,rlr/fjord,mozilla/fjord,hoosteeno/fjord,rlr/fjord,staranjeet/fjord,Ritsyy/fjord,DESHRAJ/fjord,Ritsyy/fjord,hoosteeno/fjord,staranj... | from django.conf import settings
from django.conf.urls.defaults import patterns, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus import AdminSitePlus
adm... | from django.conf import settings
from django.conf.urls.defaults import patterns, include
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.con... | <commit_before>from django.conf import settings
from django.conf.urls.defaults import patterns, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus import Adm... | from django.conf import settings
from django.conf.urls.defaults import patterns, include
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.con... | from django.conf import settings
from django.conf.urls.defaults import patterns, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus import AdminSitePlus
adm... | <commit_before>from django.conf import settings
from django.conf.urls.defaults import patterns, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from funfactory.monkeypatches import patch
patch()
from django.contrib import admin
from adminplus import Adm... |
904644ba540fbf6dcd47fb5a006d03a64d299fb2 | src/yoi/pages.py | src/yoi/pages.py | from flask import request
from flaskext.genshi import render_response
from yoi.app import app
@app.route('/')
def get_index():
return render_response('index.html')
@app.route('/home')
def get_home():
return render_response('home.html')
@app.route('/journal')
def get_journal():
return render_response('jo... | from flask import request
from flaskext.genshi import render_response
from yoi.app import app
@app.route('/')
def index():
return render_response('index.html')
@app.route('/home')
def home():
return render_response('home.html')
@app.route('/journal')
def journal():
return render_response('journal.html')... | Remove `get_` prefix on page functions. | Remove `get_` prefix on page functions.
| Python | mit | doptio/you-owe-it,doptio/you-owe-it,doptio/you-owe-it,doptio/you-owe-it | from flask import request
from flaskext.genshi import render_response
from yoi.app import app
@app.route('/')
def get_index():
return render_response('index.html')
@app.route('/home')
def get_home():
return render_response('home.html')
@app.route('/journal')
def get_journal():
return render_response('jo... | from flask import request
from flaskext.genshi import render_response
from yoi.app import app
@app.route('/')
def index():
return render_response('index.html')
@app.route('/home')
def home():
return render_response('home.html')
@app.route('/journal')
def journal():
return render_response('journal.html')... | <commit_before>from flask import request
from flaskext.genshi import render_response
from yoi.app import app
@app.route('/')
def get_index():
return render_response('index.html')
@app.route('/home')
def get_home():
return render_response('home.html')
@app.route('/journal')
def get_journal():
return rend... | from flask import request
from flaskext.genshi import render_response
from yoi.app import app
@app.route('/')
def index():
return render_response('index.html')
@app.route('/home')
def home():
return render_response('home.html')
@app.route('/journal')
def journal():
return render_response('journal.html')... | from flask import request
from flaskext.genshi import render_response
from yoi.app import app
@app.route('/')
def get_index():
return render_response('index.html')
@app.route('/home')
def get_home():
return render_response('home.html')
@app.route('/journal')
def get_journal():
return render_response('jo... | <commit_before>from flask import request
from flaskext.genshi import render_response
from yoi.app import app
@app.route('/')
def get_index():
return render_response('index.html')
@app.route('/home')
def get_home():
return render_response('home.html')
@app.route('/journal')
def get_journal():
return rend... |
8365945ef62b8f9cd37022302e8ee6299716720d | masterfirefoxos/base/helpers.py | masterfirefoxos/base/helpers.py | from feincms.templatetags.feincms_tags import feincms_render_region
from jingo import register
from jinja2 import Markup
@register.function
def render_region(feincms_page, region, request):
return Markup(feincms_render_region(None, feincms_page, region, request))
| from django.contrib.staticfiles.templatetags.staticfiles import static as static_helper
from feincms.templatetags.feincms_tags import feincms_render_region
from jingo import register
from jinja2 import Markup
static = register.function(static_helper)
@register.function
def render_region(feincms_page, region, reques... | Add static helper for jinja2 | Add static helper for jinja2
| Python | mpl-2.0 | craigcook/masterfirefoxos,glogiotatidis/masterfirefoxos,mozilla/masterfirefoxos,craigcook/masterfirefoxos,enng0227/masterfirefoxos,glogiotatidis/masterfirefoxos,mozilla/masterfirefoxos,liu21st/masterfirefoxos,enng0227/masterfirefoxos,enng0227/masterfirefoxos,mozilla/masterfirefoxos,glogiotatidis/masterfirefoxos,glogiot... | from feincms.templatetags.feincms_tags import feincms_render_region
from jingo import register
from jinja2 import Markup
@register.function
def render_region(feincms_page, region, request):
return Markup(feincms_render_region(None, feincms_page, region, request))
Add static helper for jinja2 | from django.contrib.staticfiles.templatetags.staticfiles import static as static_helper
from feincms.templatetags.feincms_tags import feincms_render_region
from jingo import register
from jinja2 import Markup
static = register.function(static_helper)
@register.function
def render_region(feincms_page, region, reques... | <commit_before>from feincms.templatetags.feincms_tags import feincms_render_region
from jingo import register
from jinja2 import Markup
@register.function
def render_region(feincms_page, region, request):
return Markup(feincms_render_region(None, feincms_page, region, request))
<commit_msg>Add static helper for j... | from django.contrib.staticfiles.templatetags.staticfiles import static as static_helper
from feincms.templatetags.feincms_tags import feincms_render_region
from jingo import register
from jinja2 import Markup
static = register.function(static_helper)
@register.function
def render_region(feincms_page, region, reques... | from feincms.templatetags.feincms_tags import feincms_render_region
from jingo import register
from jinja2 import Markup
@register.function
def render_region(feincms_page, region, request):
return Markup(feincms_render_region(None, feincms_page, region, request))
Add static helper for jinja2from django.contrib.st... | <commit_before>from feincms.templatetags.feincms_tags import feincms_render_region
from jingo import register
from jinja2 import Markup
@register.function
def render_region(feincms_page, region, request):
return Markup(feincms_render_region(None, feincms_page, region, request))
<commit_msg>Add static helper for j... |
538a48b0ec6589d4d8fcf1c4253898a0fd3367e3 | hello.py | hello.py | # Based on "Flask is Fun" demo from Flask documentation.
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.config.update(
SERVER_NAME='127.0.0.1:%d' % int(os.environ.get('PORT', 5000)),
)
app.run()
| # Based on "Flask is Fun" demo from Flask documentation.
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.config.update(
SERVER_NAME='127.0.0.1:%d' % int(os.environ.get('PORT', 5000)),
)
app.run(host='0.... | Add external access for demo process | Add external access for demo process
Avoid using Lynx web browser on a Raspberry pi for reaching localhost on console :-) | Python | mit | smartmob-project/strawboss-demo,smartmob-project/strawboss-demo | # Based on "Flask is Fun" demo from Flask documentation.
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.config.update(
SERVER_NAME='127.0.0.1:%d' % int(os.environ.get('PORT', 5000)),
)
app.run()
Add ex... | # Based on "Flask is Fun" demo from Flask documentation.
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.config.update(
SERVER_NAME='127.0.0.1:%d' % int(os.environ.get('PORT', 5000)),
)
app.run(host='0.... | <commit_before># Based on "Flask is Fun" demo from Flask documentation.
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.config.update(
SERVER_NAME='127.0.0.1:%d' % int(os.environ.get('PORT', 5000)),
)
a... | # Based on "Flask is Fun" demo from Flask documentation.
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.config.update(
SERVER_NAME='127.0.0.1:%d' % int(os.environ.get('PORT', 5000)),
)
app.run(host='0.... | # Based on "Flask is Fun" demo from Flask documentation.
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.config.update(
SERVER_NAME='127.0.0.1:%d' % int(os.environ.get('PORT', 5000)),
)
app.run()
Add ex... | <commit_before># Based on "Flask is Fun" demo from Flask documentation.
import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.config.update(
SERVER_NAME='127.0.0.1:%d' % int(os.environ.get('PORT', 5000)),
)
a... |
1598c699dc6bdf5d6edd700b70e11df207412dcd | hackernews.py | hackernews.py | import requests
class HackerNews():
def __init__(self):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url)
def item(self, item_id):
r = self.request('GET', 'item/{it... | from datetime import datetime
import requests
class HackerNews():
def __init__(self, timeout=5):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
self.timeout = timeout
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url... | Convert timestamps to native datetime objects (breaking change) | Convert timestamps to native datetime objects (breaking change)
| Python | mit | abrinsmead/hackernews-python | import requests
class HackerNews():
def __init__(self):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url)
def item(self, item_id):
r = self.request('GET', 'item/{it... | from datetime import datetime
import requests
class HackerNews():
def __init__(self, timeout=5):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
self.timeout = timeout
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url... | <commit_before>import requests
class HackerNews():
def __init__(self):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url)
def item(self, item_id):
r = self.request('... | from datetime import datetime
import requests
class HackerNews():
def __init__(self, timeout=5):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
self.timeout = timeout
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url... | import requests
class HackerNews():
def __init__(self):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url)
def item(self, item_id):
r = self.request('GET', 'item/{it... | <commit_before>import requests
class HackerNews():
def __init__(self):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url)
def item(self, item_id):
r = self.request('... |
8b7a7e09a53d23b37266c67995756cf1dadf520d | conanfile.py | conanfile.py | from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.1.2"
class CMakeIncludeGuardConan(ConanFile):
name = "cmake-include-guard"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
requires = ("cmake-module-common/master@smspillaz/cmake-module-common", )
... | from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.1.2"
class CMakeIncludeGuardConan(ConanFile):
name = "cmake-include-guard"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
generators = "cmake"
url = "http://github.com/polysquare/cmake-include-gu... | Make cmake-module-common a dev-only requirement | conan: Make cmake-module-common a dev-only requirement
| Python | mit | polysquare/cmake-include-guard | from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.1.2"
class CMakeIncludeGuardConan(ConanFile):
name = "cmake-include-guard"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
requires = ("cmake-module-common/master@smspillaz/cmake-module-common", )
... | from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.1.2"
class CMakeIncludeGuardConan(ConanFile):
name = "cmake-include-guard"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
generators = "cmake"
url = "http://github.com/polysquare/cmake-include-gu... | <commit_before>from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.1.2"
class CMakeIncludeGuardConan(ConanFile):
name = "cmake-include-guard"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
requires = ("cmake-module-common/master@smspillaz/cmake-module... | from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.1.2"
class CMakeIncludeGuardConan(ConanFile):
name = "cmake-include-guard"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
generators = "cmake"
url = "http://github.com/polysquare/cmake-include-gu... | from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.1.2"
class CMakeIncludeGuardConan(ConanFile):
name = "cmake-include-guard"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
requires = ("cmake-module-common/master@smspillaz/cmake-module-common", )
... | <commit_before>from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.1.2"
class CMakeIncludeGuardConan(ConanFile):
name = "cmake-include-guard"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
requires = ("cmake-module-common/master@smspillaz/cmake-module... |
70686bc62b85d36894b6e7909ceaa25d122ffe95 | users/serializers.py | users/serializers.py | from rest_framework import serializers
from django.contrib.auth.models import User, Group
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
class UserSerializer(serializers.ModelSerializer):
groups_complete = GroupSerializer(source='groups', rea... | from rest_framework import serializers
from django.contrib.auth.models import User, Group
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id... | Remove nested serializer for groups, make password optional in serializer for user edition | Remove nested serializer for groups, make password optional in serializer for user edition
| Python | mit | fernandolobato/balarco,fernandolobato/balarco,fernandolobato/balarco | from rest_framework import serializers
from django.contrib.auth.models import User, Group
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
class UserSerializer(serializers.ModelSerializer):
groups_complete = GroupSerializer(source='groups', rea... | from rest_framework import serializers
from django.contrib.auth.models import User, Group
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id... | <commit_before>from rest_framework import serializers
from django.contrib.auth.models import User, Group
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
class UserSerializer(serializers.ModelSerializer):
groups_complete = GroupSerializer(sourc... | from rest_framework import serializers
from django.contrib.auth.models import User, Group
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id... | from rest_framework import serializers
from django.contrib.auth.models import User, Group
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
class UserSerializer(serializers.ModelSerializer):
groups_complete = GroupSerializer(source='groups', rea... | <commit_before>from rest_framework import serializers
from django.contrib.auth.models import User, Group
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
class UserSerializer(serializers.ModelSerializer):
groups_complete = GroupSerializer(sourc... |
7d266a2e0f9d636272f60636d79703166b6377d2 | tests/test_exceptions.py | tests/test_exceptions.py | # Tests for SecretStorage
# Author: Dmitry Shachnev, 2013
# License: BSD
# Various exception tests
import unittest
import secretstorage
from secretstorage.exceptions import ItemNotFoundException
class ExceptionsTest(unittest.TestCase):
"""A test case that ensures that all SecretStorage exceptions
are raised correc... | # Tests for SecretStorage
# Author: Dmitry Shachnev, 2013
# License: BSD
# Various exception tests
import unittest
import secretstorage
from secretstorage.exceptions import ItemNotFoundException
class ExceptionsTest(unittest.TestCase):
"""A test case that ensures that all SecretStorage exceptions
are raised correc... | Remove unwanted whitespace in tests | Remove unwanted whitespace in tests
| Python | bsd-3-clause | mitya57/secretstorage | # Tests for SecretStorage
# Author: Dmitry Shachnev, 2013
# License: BSD
# Various exception tests
import unittest
import secretstorage
from secretstorage.exceptions import ItemNotFoundException
class ExceptionsTest(unittest.TestCase):
"""A test case that ensures that all SecretStorage exceptions
are raised correc... | # Tests for SecretStorage
# Author: Dmitry Shachnev, 2013
# License: BSD
# Various exception tests
import unittest
import secretstorage
from secretstorage.exceptions import ItemNotFoundException
class ExceptionsTest(unittest.TestCase):
"""A test case that ensures that all SecretStorage exceptions
are raised correc... | <commit_before># Tests for SecretStorage
# Author: Dmitry Shachnev, 2013
# License: BSD
# Various exception tests
import unittest
import secretstorage
from secretstorage.exceptions import ItemNotFoundException
class ExceptionsTest(unittest.TestCase):
"""A test case that ensures that all SecretStorage exceptions
ar... | # Tests for SecretStorage
# Author: Dmitry Shachnev, 2013
# License: BSD
# Various exception tests
import unittest
import secretstorage
from secretstorage.exceptions import ItemNotFoundException
class ExceptionsTest(unittest.TestCase):
"""A test case that ensures that all SecretStorage exceptions
are raised correc... | # Tests for SecretStorage
# Author: Dmitry Shachnev, 2013
# License: BSD
# Various exception tests
import unittest
import secretstorage
from secretstorage.exceptions import ItemNotFoundException
class ExceptionsTest(unittest.TestCase):
"""A test case that ensures that all SecretStorage exceptions
are raised correc... | <commit_before># Tests for SecretStorage
# Author: Dmitry Shachnev, 2013
# License: BSD
# Various exception tests
import unittest
import secretstorage
from secretstorage.exceptions import ItemNotFoundException
class ExceptionsTest(unittest.TestCase):
"""A test case that ensures that all SecretStorage exceptions
ar... |
c86ccf75fdf49115697548bb046bc83f348a1aba | tests/test_exceptions.py | tests/test_exceptions.py | from framewirc import exceptions
class MissingAttributesTest:
def test_message(self):
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
| from framewirc import exceptions
def test_message():
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
| Fix test that wasn't running | Fix test that wasn't running
| Python | bsd-2-clause | meshy/framewirc | from framewirc import exceptions
class MissingAttributesTest:
def test_message(self):
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
Fix test that wasn't runn... | from framewirc import exceptions
def test_message():
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
| <commit_before>from framewirc import exceptions
class MissingAttributesTest:
def test_message(self):
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
<commit_ms... | from framewirc import exceptions
def test_message():
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
| from framewirc import exceptions
class MissingAttributesTest:
def test_message(self):
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
Fix test that wasn't runn... | <commit_before>from framewirc import exceptions
class MissingAttributesTest:
def test_message(self):
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
<commit_ms... |
4b926ab5de00bc4885021fff0b2ac3679703707a | nova/db/sqlalchemy/migrate_repo/versions/034_change_instance_id_in_migrations.py | nova/db/sqlalchemy/migrate_repo/versions/034_change_instance_id_in_migrations.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | Drop FK before dropping instance_id column. | Drop FK before dropping instance_id column. | Python | apache-2.0 | klmitch/nova,hanlind/nova,aristanetworks/arista-ovs-nova,fajoy/nova,dawnpower/nova,gooddata/openstack-nova,joker946/nova,shail2810/nova,orbitfp7/nova,jeffrey4l/nova,zaina/nova,tianweizhang/nova,ruslanloman/nova,mgagne/nova,yosshy/nova,cloudbase/nova,paulmathews/nova,JioCloud/nova_test_latest,savi-dev/nova,russellb/nova... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | <commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | <commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://... |
cd9c6f96f68391cf333b68e1ea28e513e869aca3 | troposphere/detective.py | troposphere/detective.py | # Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
class Graph(AWSObject):
resource_type = "AWS::Detective::Graph"
props = {
}
class MemberInvitation(AWSObject):
resource_type = "AWS::Detective::MemberInvitation"
... | # Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
from .validators import boolean
class Graph(AWSObject):
resource_type = "AWS::Detective::Graph"
props = {
}
class MemberInvitation(AWSObject):
resource_type = "AWS:... | Update Detective per 2021-03-15 changes | Update Detective per 2021-03-15 changes
| Python | bsd-2-clause | cloudtools/troposphere,cloudtools/troposphere | # Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
class Graph(AWSObject):
resource_type = "AWS::Detective::Graph"
props = {
}
class MemberInvitation(AWSObject):
resource_type = "AWS::Detective::MemberInvitation"
... | # Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
from .validators import boolean
class Graph(AWSObject):
resource_type = "AWS::Detective::Graph"
props = {
}
class MemberInvitation(AWSObject):
resource_type = "AWS:... | <commit_before># Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
class Graph(AWSObject):
resource_type = "AWS::Detective::Graph"
props = {
}
class MemberInvitation(AWSObject):
resource_type = "AWS::Detective::Membe... | # Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
from .validators import boolean
class Graph(AWSObject):
resource_type = "AWS::Detective::Graph"
props = {
}
class MemberInvitation(AWSObject):
resource_type = "AWS:... | # Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
class Graph(AWSObject):
resource_type = "AWS::Detective::Graph"
props = {
}
class MemberInvitation(AWSObject):
resource_type = "AWS::Detective::MemberInvitation"
... | <commit_before># Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
class Graph(AWSObject):
resource_type = "AWS::Detective::Graph"
props = {
}
class MemberInvitation(AWSObject):
resource_type = "AWS::Detective::Membe... |
08a1bfc233dc44f40ee0b8a5950eda19bca1d6a6 | quran_tafseer/serializers.py | quran_tafseer/serializers.py | from django.urls import reverse
from rest_framework import serializers
from .models import Tafseer, TafseerText
class TafseerSerializer(serializers.ModelSerializer):
class Meta:
model = Tafseer
fields = ['id', 'name']
class TafseerTextSerializer(serializers.ModelSerializer):
tafseer_id = ... | from django.urls import reverse
from rest_framework import serializers
from .models import Tafseer, TafseerText
class TafseerSerializer(serializers.ModelSerializer):
class Meta:
model = Tafseer
fields = ['id', 'name']
class TafseerTextSerializer(serializers.ModelSerializer):
tafseer_id = ... | Change serializer field name from ayah to ayah_number | Change serializer field name from ayah to ayah_number
| Python | mit | EmadMokhtar/tafseer_api | from django.urls import reverse
from rest_framework import serializers
from .models import Tafseer, TafseerText
class TafseerSerializer(serializers.ModelSerializer):
class Meta:
model = Tafseer
fields = ['id', 'name']
class TafseerTextSerializer(serializers.ModelSerializer):
tafseer_id = ... | from django.urls import reverse
from rest_framework import serializers
from .models import Tafseer, TafseerText
class TafseerSerializer(serializers.ModelSerializer):
class Meta:
model = Tafseer
fields = ['id', 'name']
class TafseerTextSerializer(serializers.ModelSerializer):
tafseer_id = ... | <commit_before>from django.urls import reverse
from rest_framework import serializers
from .models import Tafseer, TafseerText
class TafseerSerializer(serializers.ModelSerializer):
class Meta:
model = Tafseer
fields = ['id', 'name']
class TafseerTextSerializer(serializers.ModelSerializer):
... | from django.urls import reverse
from rest_framework import serializers
from .models import Tafseer, TafseerText
class TafseerSerializer(serializers.ModelSerializer):
class Meta:
model = Tafseer
fields = ['id', 'name']
class TafseerTextSerializer(serializers.ModelSerializer):
tafseer_id = ... | from django.urls import reverse
from rest_framework import serializers
from .models import Tafseer, TafseerText
class TafseerSerializer(serializers.ModelSerializer):
class Meta:
model = Tafseer
fields = ['id', 'name']
class TafseerTextSerializer(serializers.ModelSerializer):
tafseer_id = ... | <commit_before>from django.urls import reverse
from rest_framework import serializers
from .models import Tafseer, TafseerText
class TafseerSerializer(serializers.ModelSerializer):
class Meta:
model = Tafseer
fields = ['id', 'name']
class TafseerTextSerializer(serializers.ModelSerializer):
... |
efb636d392dab44fcc110b8d17933476ba90996d | Donut/__init__.py | Donut/__init__.py | import flask
import sqlalchemy
from Donut import config, constants
from Donut.modules import example
app = flask.Flask(__name__)
app.debug = False
app.secret_key = config.SECRET_KEY
# Maximum file upload size, in bytes.
app.config['MAX_CONTENT_LENGTH'] = constants.MAX_CONTENT_LENGTH
# Load blueprint modules
app.reg... | import flask
import sqlalchemy
import os
from Donut import constants
from Donut.modules import example
app = flask.Flask(__name__)
app.debug = False
# Get app config, if we're not testing on travis.
if 'TRAVIS' not in os.environ:
app.config.from_object('Donut.config')
# Maximum file upload size, in bytes.
app.con... | Change how we get config settings | Change how we get config settings
- Flask recommends using `app.config.from_object` to get config settings.
- Don't get config settings if we're using travis, since it won't have the
settings from the repo.
| Python | mit | ASCIT/donut,ASCIT/donut-python,ASCIT/donut,ASCIT/donut-python,ASCIT/donut | import flask
import sqlalchemy
from Donut import config, constants
from Donut.modules import example
app = flask.Flask(__name__)
app.debug = False
app.secret_key = config.SECRET_KEY
# Maximum file upload size, in bytes.
app.config['MAX_CONTENT_LENGTH'] = constants.MAX_CONTENT_LENGTH
# Load blueprint modules
app.reg... | import flask
import sqlalchemy
import os
from Donut import constants
from Donut.modules import example
app = flask.Flask(__name__)
app.debug = False
# Get app config, if we're not testing on travis.
if 'TRAVIS' not in os.environ:
app.config.from_object('Donut.config')
# Maximum file upload size, in bytes.
app.con... | <commit_before>import flask
import sqlalchemy
from Donut import config, constants
from Donut.modules import example
app = flask.Flask(__name__)
app.debug = False
app.secret_key = config.SECRET_KEY
# Maximum file upload size, in bytes.
app.config['MAX_CONTENT_LENGTH'] = constants.MAX_CONTENT_LENGTH
# Load blueprint ... | import flask
import sqlalchemy
import os
from Donut import constants
from Donut.modules import example
app = flask.Flask(__name__)
app.debug = False
# Get app config, if we're not testing on travis.
if 'TRAVIS' not in os.environ:
app.config.from_object('Donut.config')
# Maximum file upload size, in bytes.
app.con... | import flask
import sqlalchemy
from Donut import config, constants
from Donut.modules import example
app = flask.Flask(__name__)
app.debug = False
app.secret_key = config.SECRET_KEY
# Maximum file upload size, in bytes.
app.config['MAX_CONTENT_LENGTH'] = constants.MAX_CONTENT_LENGTH
# Load blueprint modules
app.reg... | <commit_before>import flask
import sqlalchemy
from Donut import config, constants
from Donut.modules import example
app = flask.Flask(__name__)
app.debug = False
app.secret_key = config.SECRET_KEY
# Maximum file upload size, in bytes.
app.config['MAX_CONTENT_LENGTH'] = constants.MAX_CONTENT_LENGTH
# Load blueprint ... |
31c79697db0d5c973cff9b845ed28845695ecb02 | website/addons/twofactor/views.py | website/addons/twofactor/views.py | # -*- coding: utf-8 -*-
import httplib as http
from framework import request
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.project.decorators import must_have_addon
@must_be_logged_in
@must_have_addon('twofactor', 'user')
def user_settings(user_addon... | # -*- coding: utf-8 -*-
import httplib as http
from framework import request
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.project.decorators import must_have_addon
@must_be_logged_in
@must_have_addon('twofactor', 'user')
def user_settings(user_addon... | Fix response when user successfully confirms 2fa | Fix response when user successfully confirms 2fa
| Python | apache-2.0 | CenterForOpenScience/osf.io,revanthkolli/osf.io,jnayak1/osf.io,mluo613/osf.io,caneruguz/osf.io,alexschiller/osf.io,adlius/osf.io,himanshuo/osf.io,CenterForOpenScience/osf.io,samanehsan/osf.io,jeffreyliu3230/osf.io,cslzchen/osf.io,cwisecarver/osf.io,billyhunt/osf.io,SSJohns/osf.io,cosenal/osf.io,GageGaskins/osf.io,kushG... | # -*- coding: utf-8 -*-
import httplib as http
from framework import request
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.project.decorators import must_have_addon
@must_be_logged_in
@must_have_addon('twofactor', 'user')
def user_settings(user_addon... | # -*- coding: utf-8 -*-
import httplib as http
from framework import request
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.project.decorators import must_have_addon
@must_be_logged_in
@must_have_addon('twofactor', 'user')
def user_settings(user_addon... | <commit_before># -*- coding: utf-8 -*-
import httplib as http
from framework import request
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.project.decorators import must_have_addon
@must_be_logged_in
@must_have_addon('twofactor', 'user')
def user_sett... | # -*- coding: utf-8 -*-
import httplib as http
from framework import request
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.project.decorators import must_have_addon
@must_be_logged_in
@must_have_addon('twofactor', 'user')
def user_settings(user_addon... | # -*- coding: utf-8 -*-
import httplib as http
from framework import request
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.project.decorators import must_have_addon
@must_be_logged_in
@must_have_addon('twofactor', 'user')
def user_settings(user_addon... | <commit_before># -*- coding: utf-8 -*-
import httplib as http
from framework import request
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError
from website.project.decorators import must_have_addon
@must_be_logged_in
@must_have_addon('twofactor', 'user')
def user_sett... |
8ce2cbff7063b97e249dd87dd2acb8d83bdbf509 | examples/py/fetch-ohlcv-sequentially.py | examples/py/fetch-ohlcv-sequentially.py | # -*- coding: utf-8 -*-
import os
import sys
import time
# -----------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root)
# -----------------------------------------------------------------------... | # -*- coding: utf-8 -*-
import os
import sys
import time
# -----------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root)
# -----------------------------------------------------------------------... | Add delay 3 times the rate limit to avoid API errors | Add delay 3 times the rate limit to avoid API errors
| Python | mit | tritoanst/ccxt,tritoanst/ccxt,ccxt/ccxt,ccxt/ccxt,tritoanst/ccxt,ccxt/ccxt,ccxt/ccxt,ccxt/ccxt,tritoanst/ccxt | # -*- coding: utf-8 -*-
import os
import sys
import time
# -----------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root)
# -----------------------------------------------------------------------... | # -*- coding: utf-8 -*-
import os
import sys
import time
# -----------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root)
# -----------------------------------------------------------------------... | <commit_before># -*- coding: utf-8 -*-
import os
import sys
import time
# -----------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root)
# --------------------------------------------------------... | # -*- coding: utf-8 -*-
import os
import sys
import time
# -----------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root)
# -----------------------------------------------------------------------... | # -*- coding: utf-8 -*-
import os
import sys
import time
# -----------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root)
# -----------------------------------------------------------------------... | <commit_before># -*- coding: utf-8 -*-
import os
import sys
import time
# -----------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root)
# --------------------------------------------------------... |
6e6c5bb9f02a4f9d380ee20216f710a6de0b0583 | fenum.py | fenum.py | #!/bin/env python
import os
import sys
def main():
if len(sys.argv) == 1 or sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
print("Syntax: fenum.py [files...]")
print("\tEnumerate the given files (starting at 1) in the same order as they are passed to the script.")
return
... | #!/bin/env python
import os
import sys
import math
def main():
if len(sys.argv) == 1 or sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
print("Syntax: fenum.py [files...]")
print("\tEnumerate the given files (starting at 1) in the same order as they are passed to the script.")
... | Use log10 to get the amount of digits | Use log10 to get the amount of digits
| Python | mit | mphe/scripts,mphe/scripts,mall0c/scripts,mall0c/scripts | #!/bin/env python
import os
import sys
def main():
if len(sys.argv) == 1 or sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
print("Syntax: fenum.py [files...]")
print("\tEnumerate the given files (starting at 1) in the same order as they are passed to the script.")
return
... | #!/bin/env python
import os
import sys
import math
def main():
if len(sys.argv) == 1 or sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
print("Syntax: fenum.py [files...]")
print("\tEnumerate the given files (starting at 1) in the same order as they are passed to the script.")
... | <commit_before>#!/bin/env python
import os
import sys
def main():
if len(sys.argv) == 1 or sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
print("Syntax: fenum.py [files...]")
print("\tEnumerate the given files (starting at 1) in the same order as they are passed to the script.")
... | #!/bin/env python
import os
import sys
import math
def main():
if len(sys.argv) == 1 or sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
print("Syntax: fenum.py [files...]")
print("\tEnumerate the given files (starting at 1) in the same order as they are passed to the script.")
... | #!/bin/env python
import os
import sys
def main():
if len(sys.argv) == 1 or sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
print("Syntax: fenum.py [files...]")
print("\tEnumerate the given files (starting at 1) in the same order as they are passed to the script.")
return
... | <commit_before>#!/bin/env python
import os
import sys
def main():
if len(sys.argv) == 1 or sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
print("Syntax: fenum.py [files...]")
print("\tEnumerate the given files (starting at 1) in the same order as they are passed to the script.")
... |
1c58cdadb93180557275682fa34433de2b736445 | forms.py | forms.py | from flask.ext.wtf import Form
from wtforms import SelectField, BooleanField, IntegerField, TextField, \
validators
# TODO add vailidation
class TeamForm(Form):
number = IntegerField("Number", [validators.Required(),
validators.NumberRange(min=1, max=99999)])
name = Te... | from flask.ext.wtf import Form
from wtforms import SelectField, BooleanField, IntegerField, TextField, \
validators
class TeamForm(Form):
number = IntegerField("Number", [validators.Required(),
validators.NumberRange(min=1, max=99999)])
name = TextField("Name", [valida... | Move TODO tag to correct class | Move TODO tag to correct class
| Python | mit | rtfoley/scorepy,rtfoley/scorepy,rtfoley/scorepy | from flask.ext.wtf import Form
from wtforms import SelectField, BooleanField, IntegerField, TextField, \
validators
# TODO add vailidation
class TeamForm(Form):
number = IntegerField("Number", [validators.Required(),
validators.NumberRange(min=1, max=99999)])
name = Te... | from flask.ext.wtf import Form
from wtforms import SelectField, BooleanField, IntegerField, TextField, \
validators
class TeamForm(Form):
number = IntegerField("Number", [validators.Required(),
validators.NumberRange(min=1, max=99999)])
name = TextField("Name", [valida... | <commit_before>from flask.ext.wtf import Form
from wtforms import SelectField, BooleanField, IntegerField, TextField, \
validators
# TODO add vailidation
class TeamForm(Form):
number = IntegerField("Number", [validators.Required(),
validators.NumberRange(min=1, max=99999)]... | from flask.ext.wtf import Form
from wtforms import SelectField, BooleanField, IntegerField, TextField, \
validators
class TeamForm(Form):
number = IntegerField("Number", [validators.Required(),
validators.NumberRange(min=1, max=99999)])
name = TextField("Name", [valida... | from flask.ext.wtf import Form
from wtforms import SelectField, BooleanField, IntegerField, TextField, \
validators
# TODO add vailidation
class TeamForm(Form):
number = IntegerField("Number", [validators.Required(),
validators.NumberRange(min=1, max=99999)])
name = Te... | <commit_before>from flask.ext.wtf import Form
from wtforms import SelectField, BooleanField, IntegerField, TextField, \
validators
# TODO add vailidation
class TeamForm(Form):
number = IntegerField("Number", [validators.Required(),
validators.NumberRange(min=1, max=99999)]... |
c1008646ad8eac1de30d0c1bfd95caebd66f7fa1 | pax/plugins/peak_processing/ClassifyPeaks.py | pax/plugins/peak_processing/ClassifyPeaks.py | from pax import plugin, units
class AdHocClassification(plugin.TransformPlugin):
def transform_event(self, event):
for peak in event.peaks:
# Don't work on noise and lone_hit
if peak.type in ('unknown', 'lone_hit'):
continue
if peak.range_90p_area < ... | from pax import plugin, units
class AdHocClassification(plugin.TransformPlugin):
def transform_event(self, event):
for peak in event.peaks:
# Don't work on noise and lone_hit
if peak.type in ('noise', 'lone_hit'):
continue
if peak.range_90p_area < 15... | Fix goof in classification fix | Fix goof in classification fix
| Python | bsd-3-clause | XENON1T/pax,XENON1T/pax | from pax import plugin, units
class AdHocClassification(plugin.TransformPlugin):
def transform_event(self, event):
for peak in event.peaks:
# Don't work on noise and lone_hit
if peak.type in ('unknown', 'lone_hit'):
continue
if peak.range_90p_area < ... | from pax import plugin, units
class AdHocClassification(plugin.TransformPlugin):
def transform_event(self, event):
for peak in event.peaks:
# Don't work on noise and lone_hit
if peak.type in ('noise', 'lone_hit'):
continue
if peak.range_90p_area < 15... | <commit_before>from pax import plugin, units
class AdHocClassification(plugin.TransformPlugin):
def transform_event(self, event):
for peak in event.peaks:
# Don't work on noise and lone_hit
if peak.type in ('unknown', 'lone_hit'):
continue
if peak.ra... | from pax import plugin, units
class AdHocClassification(plugin.TransformPlugin):
def transform_event(self, event):
for peak in event.peaks:
# Don't work on noise and lone_hit
if peak.type in ('noise', 'lone_hit'):
continue
if peak.range_90p_area < 15... | from pax import plugin, units
class AdHocClassification(plugin.TransformPlugin):
def transform_event(self, event):
for peak in event.peaks:
# Don't work on noise and lone_hit
if peak.type in ('unknown', 'lone_hit'):
continue
if peak.range_90p_area < ... | <commit_before>from pax import plugin, units
class AdHocClassification(plugin.TransformPlugin):
def transform_event(self, event):
for peak in event.peaks:
# Don't work on noise and lone_hit
if peak.type in ('unknown', 'lone_hit'):
continue
if peak.ra... |
9e42514ac030cc2fa3aab89addfa48cf0342f991 | kremlin/utils.py | kremlin/utils.py | """
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
Kremlin Mag... | """
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
Kremlin Mag... | Use context manager for PIL Open | Use context manager for PIL Open
This is currently kind of buggy with Python3. A harmless warning is
emitted since the handle is still closed late inside PIL/Pillow.
| Python | bsd-2-clause | glasnost/kremlin,glasnost/kremlin,glasnost/kremlin | """
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
Kremlin Mag... | """
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
Kremlin Mag... | <commit_before>"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
... | """
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
Kremlin Mag... | """
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
Kremlin Mag... | <commit_before>"""
# # #### ##### # # ##### # # # #
# # # # # ## ## # # # ## # #
### #### #### # # # # # # # # #####
# # # # # # # # ## # # #
# # # ##### # # # # # # # #
... |
12d2e8033c46f06f5442cba40a7c2c673196ad1c | akanda/horizon/routers/views.py | akanda/horizon/routers/views.py | from django.utils.translation import ugettext_lazy as _ # noqa
from horizon import exceptions
from openstack_dashboard import api
def get_interfaces_data(self):
try:
router_id = self.kwargs['router_id']
router = api.quantum.router_get(self.request, router_id)
ports = [api.quantum.Port(p)... | from django.utils.translation import ugettext_lazy as _ # noqa
from horizon import exceptions
from openstack_dashboard import api
def get_interfaces_data(self):
try:
router_id = self.kwargs['router_id']
router = api.quantum.router_get(self.request, router_id)
# Note(rods): Right now we a... | Fix the router's interfaces listing view to show only the interfaces on the user's networks filtering out interfaces on the mgt and public networks. | Fix the router's interfaces listing view to show only the
interfaces on the user's networks filtering out interfaces
on the mgt and public networks.
DHC-1512
Change-Id: I9b68b75d5e8325c4c70090fa500a417e23b1836f
Signed-off-by: Rosario Di Somma <73b2fe5f91895aea2b4d0e8942a5edf9f18fa897@dreamhost.com>
| Python | apache-2.0 | dreamhost/akanda-horizon,dreamhost/akanda-horizon | from django.utils.translation import ugettext_lazy as _ # noqa
from horizon import exceptions
from openstack_dashboard import api
def get_interfaces_data(self):
try:
router_id = self.kwargs['router_id']
router = api.quantum.router_get(self.request, router_id)
ports = [api.quantum.Port(p)... | from django.utils.translation import ugettext_lazy as _ # noqa
from horizon import exceptions
from openstack_dashboard import api
def get_interfaces_data(self):
try:
router_id = self.kwargs['router_id']
router = api.quantum.router_get(self.request, router_id)
# Note(rods): Right now we a... | <commit_before>from django.utils.translation import ugettext_lazy as _ # noqa
from horizon import exceptions
from openstack_dashboard import api
def get_interfaces_data(self):
try:
router_id = self.kwargs['router_id']
router = api.quantum.router_get(self.request, router_id)
ports = [api.... | from django.utils.translation import ugettext_lazy as _ # noqa
from horizon import exceptions
from openstack_dashboard import api
def get_interfaces_data(self):
try:
router_id = self.kwargs['router_id']
router = api.quantum.router_get(self.request, router_id)
# Note(rods): Right now we a... | from django.utils.translation import ugettext_lazy as _ # noqa
from horizon import exceptions
from openstack_dashboard import api
def get_interfaces_data(self):
try:
router_id = self.kwargs['router_id']
router = api.quantum.router_get(self.request, router_id)
ports = [api.quantum.Port(p)... | <commit_before>from django.utils.translation import ugettext_lazy as _ # noqa
from horizon import exceptions
from openstack_dashboard import api
def get_interfaces_data(self):
try:
router_id = self.kwargs['router_id']
router = api.quantum.router_get(self.request, router_id)
ports = [api.... |
a2530b9cd2baf70591e377b6eb7d5104493989a1 | test/conftest.py | test/conftest.py | def pytest_addoption(parser):
parser.addoption("--domain", action="append", default=[],
help="list of stringinputs to pass to test functions")
def pytest_generate_tests(metafunc):
if 'domain' in metafunc.fixturenames:
metafunc.parametrize("domain",
metafunc.config.o... | def pytest_addoption(parser):
parser.addoption("--domain", action="append", default=[],
help="list of stringinputs to pass to test functions")
parser.addoption("--url", action="append", default=[],
help="list of stringinputs to pass to test functions")
def pytest_generate_tests(metafunc):
i... | Add test parameter for site url | Add test parameter for site url
| Python | mit | HIIT/mediacollection | def pytest_addoption(parser):
parser.addoption("--domain", action="append", default=[],
help="list of stringinputs to pass to test functions")
def pytest_generate_tests(metafunc):
if 'domain' in metafunc.fixturenames:
metafunc.parametrize("domain",
metafunc.config.o... | def pytest_addoption(parser):
parser.addoption("--domain", action="append", default=[],
help="list of stringinputs to pass to test functions")
parser.addoption("--url", action="append", default=[],
help="list of stringinputs to pass to test functions")
def pytest_generate_tests(metafunc):
i... | <commit_before>def pytest_addoption(parser):
parser.addoption("--domain", action="append", default=[],
help="list of stringinputs to pass to test functions")
def pytest_generate_tests(metafunc):
if 'domain' in metafunc.fixturenames:
metafunc.parametrize("domain",
me... | def pytest_addoption(parser):
parser.addoption("--domain", action="append", default=[],
help="list of stringinputs to pass to test functions")
parser.addoption("--url", action="append", default=[],
help="list of stringinputs to pass to test functions")
def pytest_generate_tests(metafunc):
i... | def pytest_addoption(parser):
parser.addoption("--domain", action="append", default=[],
help="list of stringinputs to pass to test functions")
def pytest_generate_tests(metafunc):
if 'domain' in metafunc.fixturenames:
metafunc.parametrize("domain",
metafunc.config.o... | <commit_before>def pytest_addoption(parser):
parser.addoption("--domain", action="append", default=[],
help="list of stringinputs to pass to test functions")
def pytest_generate_tests(metafunc):
if 'domain' in metafunc.fixturenames:
metafunc.parametrize("domain",
me... |
e0af42d5431c42ee5e12fb228978ac8ce9c62807 | server/modules/persistent.py | server/modules/persistent.py | #!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.IconModule(FLAGS.c... | #!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.IconModule(FLAGS.c... | Remove flags that drastically slow down writes | Remove flags that drastically slow down writes
| Python | apache-2.0 | robot-tools/iconograph,robot-tools/iconograph,robot-tools/iconograph,robot-tools/iconograph | #!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.IconModule(FLAGS.c... | #!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.IconModule(FLAGS.c... | <commit_before>#!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.Ico... | #!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.IconModule(FLAGS.c... | #!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.IconModule(FLAGS.c... | <commit_before>#!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.Ico... |
ec2092c683f721e32a2d1d9792f296e140d6ba45 | paperwork_parser/exceptions.py | paperwork_parser/exceptions.py |
class InvalidPDFError(ValueError):
pass
class FieldParseError(Exception):
pass
|
class InvalidPDFError(ValueError):
pass
class UnknownVariantError(Exception):
pass
class FieldParseError(Exception):
pass
| Add new exception type for unknown variants | Add new exception type for unknown variants
| Python | mit | loanzen/zen_document_parser |
class InvalidPDFError(ValueError):
pass
class FieldParseError(Exception):
pass
Add new exception type for unknown variants |
class InvalidPDFError(ValueError):
pass
class UnknownVariantError(Exception):
pass
class FieldParseError(Exception):
pass
| <commit_before>
class InvalidPDFError(ValueError):
pass
class FieldParseError(Exception):
pass
<commit_msg>Add new exception type for unknown variants<commit_after> |
class InvalidPDFError(ValueError):
pass
class UnknownVariantError(Exception):
pass
class FieldParseError(Exception):
pass
|
class InvalidPDFError(ValueError):
pass
class FieldParseError(Exception):
pass
Add new exception type for unknown variants
class InvalidPDFError(ValueError):
pass
class UnknownVariantError(Exception):
pass
class FieldParseError(Exception):
pass
| <commit_before>
class InvalidPDFError(ValueError):
pass
class FieldParseError(Exception):
pass
<commit_msg>Add new exception type for unknown variants<commit_after>
class InvalidPDFError(ValueError):
pass
class UnknownVariantError(Exception):
pass
class FieldParseError(Exception):
pass
|
0b49114a6b0830fa0b05d32803ae52526b8e48ca | gnsq/backofftimer.py | gnsq/backofftimer.py | from random import randint
class BackoffTimer(object):
def __init__(self, ratio=1, max_interval=None, min_interval=None):
self.c = 0
self.ratio = ratio
self.max_interval = max_interval
self.min_interval = min_interval
def is_reset(self):
return self.c == 0
def re... | import random
class BackoffTimer(object):
def __init__(self, ratio=1, max_interval=None, min_interval=None):
self.c = 0
self.ratio = ratio
self.max_interval = max_interval
self.min_interval = min_interval
def is_reset(self):
return self.c == 0
def reset(self):
... | Return float for interval instead of int. | Return float for interval instead of int.
| Python | bsd-3-clause | hiringsolved/gnsq,wtolson/gnsq,wtolson/gnsq | from random import randint
class BackoffTimer(object):
def __init__(self, ratio=1, max_interval=None, min_interval=None):
self.c = 0
self.ratio = ratio
self.max_interval = max_interval
self.min_interval = min_interval
def is_reset(self):
return self.c == 0
def re... | import random
class BackoffTimer(object):
def __init__(self, ratio=1, max_interval=None, min_interval=None):
self.c = 0
self.ratio = ratio
self.max_interval = max_interval
self.min_interval = min_interval
def is_reset(self):
return self.c == 0
def reset(self):
... | <commit_before>from random import randint
class BackoffTimer(object):
def __init__(self, ratio=1, max_interval=None, min_interval=None):
self.c = 0
self.ratio = ratio
self.max_interval = max_interval
self.min_interval = min_interval
def is_reset(self):
return self.c =... | import random
class BackoffTimer(object):
def __init__(self, ratio=1, max_interval=None, min_interval=None):
self.c = 0
self.ratio = ratio
self.max_interval = max_interval
self.min_interval = min_interval
def is_reset(self):
return self.c == 0
def reset(self):
... | from random import randint
class BackoffTimer(object):
def __init__(self, ratio=1, max_interval=None, min_interval=None):
self.c = 0
self.ratio = ratio
self.max_interval = max_interval
self.min_interval = min_interval
def is_reset(self):
return self.c == 0
def re... | <commit_before>from random import randint
class BackoffTimer(object):
def __init__(self, ratio=1, max_interval=None, min_interval=None):
self.c = 0
self.ratio = ratio
self.max_interval = max_interval
self.min_interval = min_interval
def is_reset(self):
return self.c =... |
1d74b003818e260ae1f453cb26f1c9efc29e8ba2 | scripts/run_unit_test.py | scripts/run_unit_test.py | #!/usr/bin/env python
import serial
import os
import sys
import time
# Make and flash the unit test
FILE_LOCATION = os.path.dirname(os.path.abspath(__file__))
os.chdir(FILE_LOCATION + "/../")
print os.system("make flash_unit_test")
# Ask the user to reset the board
raw_input("\nPlease press the phsyical reset butto... | #!/usr/bin/env python
import serial
import os
import sys
import time
# Make and flash the unit test
FILE_LOCATION = os.path.dirname(os.path.abspath(__file__))
os.chdir(FILE_LOCATION + "/../")
print os.system("make flash_unit_test")
# Ask the user to reset the board
raw_input("""\nPlease press the phsyical reset butt... | Bring scripts folder up to pep8 standards | PEP8: Bring scripts folder up to pep8 standards
| Python | mit | fnivek/eecs567-final-project,fnivek/eecs567-final-project,fnivek/eecs567-final-project,fnivek/eecs567-final-project,fnivek/eecs567-final-project | #!/usr/bin/env python
import serial
import os
import sys
import time
# Make and flash the unit test
FILE_LOCATION = os.path.dirname(os.path.abspath(__file__))
os.chdir(FILE_LOCATION + "/../")
print os.system("make flash_unit_test")
# Ask the user to reset the board
raw_input("\nPlease press the phsyical reset butto... | #!/usr/bin/env python
import serial
import os
import sys
import time
# Make and flash the unit test
FILE_LOCATION = os.path.dirname(os.path.abspath(__file__))
os.chdir(FILE_LOCATION + "/../")
print os.system("make flash_unit_test")
# Ask the user to reset the board
raw_input("""\nPlease press the phsyical reset butt... | <commit_before>#!/usr/bin/env python
import serial
import os
import sys
import time
# Make and flash the unit test
FILE_LOCATION = os.path.dirname(os.path.abspath(__file__))
os.chdir(FILE_LOCATION + "/../")
print os.system("make flash_unit_test")
# Ask the user to reset the board
raw_input("\nPlease press the phsyi... | #!/usr/bin/env python
import serial
import os
import sys
import time
# Make and flash the unit test
FILE_LOCATION = os.path.dirname(os.path.abspath(__file__))
os.chdir(FILE_LOCATION + "/../")
print os.system("make flash_unit_test")
# Ask the user to reset the board
raw_input("""\nPlease press the phsyical reset butt... | #!/usr/bin/env python
import serial
import os
import sys
import time
# Make and flash the unit test
FILE_LOCATION = os.path.dirname(os.path.abspath(__file__))
os.chdir(FILE_LOCATION + "/../")
print os.system("make flash_unit_test")
# Ask the user to reset the board
raw_input("\nPlease press the phsyical reset butto... | <commit_before>#!/usr/bin/env python
import serial
import os
import sys
import time
# Make and flash the unit test
FILE_LOCATION = os.path.dirname(os.path.abspath(__file__))
os.chdir(FILE_LOCATION + "/../")
print os.system("make flash_unit_test")
# Ask the user to reset the board
raw_input("\nPlease press the phsyi... |
515855105be9d26ad1a272177a64604e0fa547a5 | wait_for_agent_update.py | wait_for_agent_update.py | #!/usr/bin/env python
__metaclass__ = type
from jujupy import (
check_wordpress,
Environment,
format_listing,
until_timeout,
)
from collections import defaultdict
import sys
def agent_update(environment, version):
env = Environment(environment)
for ignored in until_timeout(30):
versio... | #!/usr/bin/env python
__metaclass__ = type
from jujupy import (
check_wordpress,
Environment,
format_listing,
until_timeout,
)
from collections import defaultdict
import sys
def agent_update(environment, version):
env = Environment(environment)
for ignored in until_timeout(300):
versi... | Increase timeout for agent update to 5 minutes. | Increase timeout for agent update to 5 minutes. | Python | agpl-3.0 | mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju | #!/usr/bin/env python
__metaclass__ = type
from jujupy import (
check_wordpress,
Environment,
format_listing,
until_timeout,
)
from collections import defaultdict
import sys
def agent_update(environment, version):
env = Environment(environment)
for ignored in until_timeout(30):
versio... | #!/usr/bin/env python
__metaclass__ = type
from jujupy import (
check_wordpress,
Environment,
format_listing,
until_timeout,
)
from collections import defaultdict
import sys
def agent_update(environment, version):
env = Environment(environment)
for ignored in until_timeout(300):
versi... | <commit_before>#!/usr/bin/env python
__metaclass__ = type
from jujupy import (
check_wordpress,
Environment,
format_listing,
until_timeout,
)
from collections import defaultdict
import sys
def agent_update(environment, version):
env = Environment(environment)
for ignored in until_timeout(30):... | #!/usr/bin/env python
__metaclass__ = type
from jujupy import (
check_wordpress,
Environment,
format_listing,
until_timeout,
)
from collections import defaultdict
import sys
def agent_update(environment, version):
env = Environment(environment)
for ignored in until_timeout(300):
versi... | #!/usr/bin/env python
__metaclass__ = type
from jujupy import (
check_wordpress,
Environment,
format_listing,
until_timeout,
)
from collections import defaultdict
import sys
def agent_update(environment, version):
env = Environment(environment)
for ignored in until_timeout(30):
versio... | <commit_before>#!/usr/bin/env python
__metaclass__ = type
from jujupy import (
check_wordpress,
Environment,
format_listing,
until_timeout,
)
from collections import defaultdict
import sys
def agent_update(environment, version):
env = Environment(environment)
for ignored in until_timeout(30):... |
d498a9846567e4986ba2a2541b2b4e4719c2c83f | keras/__init__.py | keras/__init__.py | from __future__ import absolute_import
from . import activations
from . import applications
from . import backend
from . import datasets
from . import engine
from . import layers
from . import preprocessing
from . import utils
from . import wrappers
from . import callbacks
from . import constraints
from .... | from __future__ import absolute_import
from . import activations
from . import applications
from . import backend
from . import datasets
from . import engine
from . import layers
from . import preprocessing
from . import utils
from . import wrappers
from . import callbacks
from . import constraints
from .... | Make Input importable from root | Make Input importable from root
| Python | apache-2.0 | keras-team/keras,keras-team/keras | from __future__ import absolute_import
from . import activations
from . import applications
from . import backend
from . import datasets
from . import engine
from . import layers
from . import preprocessing
from . import utils
from . import wrappers
from . import callbacks
from . import constraints
from .... | from __future__ import absolute_import
from . import activations
from . import applications
from . import backend
from . import datasets
from . import engine
from . import layers
from . import preprocessing
from . import utils
from . import wrappers
from . import callbacks
from . import constraints
from .... | <commit_before>from __future__ import absolute_import
from . import activations
from . import applications
from . import backend
from . import datasets
from . import engine
from . import layers
from . import preprocessing
from . import utils
from . import wrappers
from . import callbacks
from . import cons... | from __future__ import absolute_import
from . import activations
from . import applications
from . import backend
from . import datasets
from . import engine
from . import layers
from . import preprocessing
from . import utils
from . import wrappers
from . import callbacks
from . import constraints
from .... | from __future__ import absolute_import
from . import activations
from . import applications
from . import backend
from . import datasets
from . import engine
from . import layers
from . import preprocessing
from . import utils
from . import wrappers
from . import callbacks
from . import constraints
from .... | <commit_before>from __future__ import absolute_import
from . import activations
from . import applications
from . import backend
from . import datasets
from . import engine
from . import layers
from . import preprocessing
from . import utils
from . import wrappers
from . import callbacks
from . import cons... |
727b94078ab15d04a65adbd57fe6962949bda97e | openacademy/model/openacademy_course.py | openacademy/model/openacademy_course.py | from openerp import models, fields, api
class Course(models.Model):
'''
This class creates a model for courses
'''
_name = 'openacademey.course'
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
| from openerp import models, fields, api
class Course(models.Model):
'''
This class creates a model for courses
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
| Fix typo in Course table name | Fix typo in Course table name
| Python | mit | tebanep/odoo_training_addons | from openerp import models, fields, api
class Course(models.Model):
'''
This class creates a model for courses
'''
_name = 'openacademey.course'
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
Fix typo in Course table name | from openerp import models, fields, api
class Course(models.Model):
'''
This class creates a model for courses
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
| <commit_before>from openerp import models, fields, api
class Course(models.Model):
'''
This class creates a model for courses
'''
_name = 'openacademey.course'
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
<commit_msg>Fix typo in Course tabl... | from openerp import models, fields, api
class Course(models.Model):
'''
This class creates a model for courses
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
| from openerp import models, fields, api
class Course(models.Model):
'''
This class creates a model for courses
'''
_name = 'openacademey.course'
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
Fix typo in Course table namefrom openerp import m... | <commit_before>from openerp import models, fields, api
class Course(models.Model):
'''
This class creates a model for courses
'''
_name = 'openacademey.course'
name = fields.Char(string='Title', required=True)
description = fields.Text(string='Description')
<commit_msg>Fix typo in Course tabl... |
88e99caf6c426cdee602157f9aee120ecf822cad | docs/conf.py | docs/conf.py | import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from django.conf import settings
settings.configure()
project = 'django-slack'
version = ''
release = ''
copyright = '2014, 2015 Chris Lamb'
author = 'lamby'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.inte... | import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from django.conf import settings
settings.configure()
project = 'django-slack'
version = ''
release = ''
copyright = '2014, 2015 Chris Lamb'
author = 'lamby'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.inte... | Set readthedocs theme in docs build | Set readthedocs theme in docs build
| Python | bsd-3-clause | lamby/django-slack | import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from django.conf import settings
settings.configure()
project = 'django-slack'
version = ''
release = ''
copyright = '2014, 2015 Chris Lamb'
author = 'lamby'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.inte... | import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from django.conf import settings
settings.configure()
project = 'django-slack'
version = ''
release = ''
copyright = '2014, 2015 Chris Lamb'
author = 'lamby'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.inte... | <commit_before>import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from django.conf import settings
settings.configure()
project = 'django-slack'
version = ''
release = ''
copyright = '2014, 2015 Chris Lamb'
author = 'lamby'
extensions = ['sphinx.ext.autodoc', '... | import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from django.conf import settings
settings.configure()
project = 'django-slack'
version = ''
release = ''
copyright = '2014, 2015 Chris Lamb'
author = 'lamby'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.inte... | import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from django.conf import settings
settings.configure()
project = 'django-slack'
version = ''
release = ''
copyright = '2014, 2015 Chris Lamb'
author = 'lamby'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.inte... | <commit_before>import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from django.conf import settings
settings.configure()
project = 'django-slack'
version = ''
release = ''
copyright = '2014, 2015 Chris Lamb'
author = 'lamby'
extensions = ['sphinx.ext.autodoc', '... |
8e20b56c4b91f673429697232926115db46e0c2d | spanky/commands/cmd_users.py | spanky/commands/cmd_users.py | import click
from spanky.cli import pass_context
from spanky.lib.users import UserInit
@click.command('users', short_help='creates users base on /etc/spanky/users')
@pass_context
def cli(ctx):
config = ctx.config.load('users.yml')()
user_init = UserInit(config)
user_init.build()
| import sys
import click
from spanky.cli import pass_context
from spanky.lib.users import UserInit
@click.command('users', short_help='creates users base on /etc/spanky/users')
@pass_context
def cli(ctx):
try:
config = ctx.config.load('users.yml')()
except IOError:
# no config lets bail
... | Return a 1 when we don't have user to install. | Return a 1 when we don't have user to install.
TODO: Make better return code
| Python | bsd-3-clause | pglbutt/spanky,pglbutt/spanky,pglbutt/spanky | import click
from spanky.cli import pass_context
from spanky.lib.users import UserInit
@click.command('users', short_help='creates users base on /etc/spanky/users')
@pass_context
def cli(ctx):
config = ctx.config.load('users.yml')()
user_init = UserInit(config)
user_init.build()
Return a 1 when we don't h... | import sys
import click
from spanky.cli import pass_context
from spanky.lib.users import UserInit
@click.command('users', short_help='creates users base on /etc/spanky/users')
@pass_context
def cli(ctx):
try:
config = ctx.config.load('users.yml')()
except IOError:
# no config lets bail
... | <commit_before>import click
from spanky.cli import pass_context
from spanky.lib.users import UserInit
@click.command('users', short_help='creates users base on /etc/spanky/users')
@pass_context
def cli(ctx):
config = ctx.config.load('users.yml')()
user_init = UserInit(config)
user_init.build()
<commit_msg... | import sys
import click
from spanky.cli import pass_context
from spanky.lib.users import UserInit
@click.command('users', short_help='creates users base on /etc/spanky/users')
@pass_context
def cli(ctx):
try:
config = ctx.config.load('users.yml')()
except IOError:
# no config lets bail
... | import click
from spanky.cli import pass_context
from spanky.lib.users import UserInit
@click.command('users', short_help='creates users base on /etc/spanky/users')
@pass_context
def cli(ctx):
config = ctx.config.load('users.yml')()
user_init = UserInit(config)
user_init.build()
Return a 1 when we don't h... | <commit_before>import click
from spanky.cli import pass_context
from spanky.lib.users import UserInit
@click.command('users', short_help='creates users base on /etc/spanky/users')
@pass_context
def cli(ctx):
config = ctx.config.load('users.yml')()
user_init = UserInit(config)
user_init.build()
<commit_msg... |
9970faa24d9f27817c7e9c9e88869bb415d6926c | main/__init__.py | main/__init__.py | from flask import Flask
from config import config
from . import extensions, modules
def create_app(config_name):
config_obj = config[config_name]()
app = Flask(__name__, static_url_path='/static')
# Initializes configuration values.
app.config.from_object(config_obj)
# Configure SSL if the cur... | from flask import Flask, redirect, request
from config import config
from . import extensions, modules
def create_app(config_name):
config_obj = config[config_name]()
app = Flask(__name__, static_url_path='/static')
# Initializes configuration values.
app.config.from_object(config_obj)
# Confi... | Add before_request callback to handle www redirects | Add before_request callback to handle www redirects
| Python | mit | ellmetha/morganaubert-resume,ellmetha/morganaubert-resume,ellmetha/morganaubert-resume,ellmetha/morganaubert-resume | from flask import Flask
from config import config
from . import extensions, modules
def create_app(config_name):
config_obj = config[config_name]()
app = Flask(__name__, static_url_path='/static')
# Initializes configuration values.
app.config.from_object(config_obj)
# Configure SSL if the cur... | from flask import Flask, redirect, request
from config import config
from . import extensions, modules
def create_app(config_name):
config_obj = config[config_name]()
app = Flask(__name__, static_url_path='/static')
# Initializes configuration values.
app.config.from_object(config_obj)
# Confi... | <commit_before>from flask import Flask
from config import config
from . import extensions, modules
def create_app(config_name):
config_obj = config[config_name]()
app = Flask(__name__, static_url_path='/static')
# Initializes configuration values.
app.config.from_object(config_obj)
# Configure... | from flask import Flask, redirect, request
from config import config
from . import extensions, modules
def create_app(config_name):
config_obj = config[config_name]()
app = Flask(__name__, static_url_path='/static')
# Initializes configuration values.
app.config.from_object(config_obj)
# Confi... | from flask import Flask
from config import config
from . import extensions, modules
def create_app(config_name):
config_obj = config[config_name]()
app = Flask(__name__, static_url_path='/static')
# Initializes configuration values.
app.config.from_object(config_obj)
# Configure SSL if the cur... | <commit_before>from flask import Flask
from config import config
from . import extensions, modules
def create_app(config_name):
config_obj = config[config_name]()
app = Flask(__name__, static_url_path='/static')
# Initializes configuration values.
app.config.from_object(config_obj)
# Configure... |
d0e139d286b18c9dcdc8c46161c4ebdf0f0f8d96 | examples/cooperative_binding.py | examples/cooperative_binding.py | import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
from crnpy.crn import CRN, from_react_file
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
__version__ = "0.0.1"
# Cooperative binding
print "Creating mo... | import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
from crnpy.crn import CRN, from_react_file
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
__version__ = "0.0.1"
# Cooperative binding
print "Creating mo... | Remove debug and adjusted print. | Remove debug and adjusted print.
| Python | bsd-3-clause | etonello/crnpy | import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
from crnpy.crn import CRN, from_react_file
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
__version__ = "0.0.1"
# Cooperative binding
print "Creating mo... | import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
from crnpy.crn import CRN, from_react_file
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
__version__ = "0.0.1"
# Cooperative binding
print "Creating mo... | <commit_before>import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
from crnpy.crn import CRN, from_react_file
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
__version__ = "0.0.1"
# Cooperative binding
pri... | import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
from crnpy.crn import CRN, from_react_file
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
__version__ = "0.0.1"
# Cooperative binding
print "Creating mo... | import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
from crnpy.crn import CRN, from_react_file
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
__version__ = "0.0.1"
# Cooperative binding
print "Creating mo... | <commit_before>import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
from crnpy.crn import CRN, from_react_file
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
__version__ = "0.0.1"
# Cooperative binding
pri... |
67d3193683d2215fdd660bdc086801fe761c7db7 | src/views.py | src/views.py | from flask import render_template
from app import app
@app.route('/')
def index():
return render_template('index.html', active='index')
@app.route('/contact/')
def contact():
return render_template('contact.html', active='contact')
@app.context_processor
def utility_processor():
def page_title(title=Non... | import os
from flask import render_template
from flask import send_from_directory
from app import app
@app.route('/')
def index():
return render_template('index.html', active='index')
@app.route('/contact/')
def contact():
return render_template('contact.html', active='contact')
@app.route('/favicon.ico')
de... | Make the favicon available at /favicon.ico | Make the favicon available at /favicon.ico
| Python | mit | matachi/MaTachi.github.io,matachi/MaTachi.github.io | from flask import render_template
from app import app
@app.route('/')
def index():
return render_template('index.html', active='index')
@app.route('/contact/')
def contact():
return render_template('contact.html', active='contact')
@app.context_processor
def utility_processor():
def page_title(title=Non... | import os
from flask import render_template
from flask import send_from_directory
from app import app
@app.route('/')
def index():
return render_template('index.html', active='index')
@app.route('/contact/')
def contact():
return render_template('contact.html', active='contact')
@app.route('/favicon.ico')
de... | <commit_before>from flask import render_template
from app import app
@app.route('/')
def index():
return render_template('index.html', active='index')
@app.route('/contact/')
def contact():
return render_template('contact.html', active='contact')
@app.context_processor
def utility_processor():
def page_... | import os
from flask import render_template
from flask import send_from_directory
from app import app
@app.route('/')
def index():
return render_template('index.html', active='index')
@app.route('/contact/')
def contact():
return render_template('contact.html', active='contact')
@app.route('/favicon.ico')
de... | from flask import render_template
from app import app
@app.route('/')
def index():
return render_template('index.html', active='index')
@app.route('/contact/')
def contact():
return render_template('contact.html', active='contact')
@app.context_processor
def utility_processor():
def page_title(title=Non... | <commit_before>from flask import render_template
from app import app
@app.route('/')
def index():
return render_template('index.html', active='index')
@app.route('/contact/')
def contact():
return render_template('contact.html', active='contact')
@app.context_processor
def utility_processor():
def page_... |
0cda8950a661a0d994d7b5824af949ec1e40f584 | setup.py | setup.py | from distutils.core import setup
setup(name="zutil",
version='0.1.4',
description="Utilities used for generating zCFD control dictionaries",
author="Zenotech",
author_email="support@zenotech.com",
url="https://zcfd.zenotech.com/",
packages=["zutil", "zutil.post", "zutil.analysis", "... | from distutils.core import setup
setup(name="zutil",
version='0.1.5',
description="Utilities used for generating zCFD control dictionaries",
author="Zenotech",
author_email="support@zenotech.com",
url="https://zcfd.zenotech.com/",
packages=["zutil", "zutil.post", "zutil.analysis", "... | Make mpi an optional dependency | Make mpi an optional dependency
| Python | mit | zCFD/zutil | from distutils.core import setup
setup(name="zutil",
version='0.1.4',
description="Utilities used for generating zCFD control dictionaries",
author="Zenotech",
author_email="support@zenotech.com",
url="https://zcfd.zenotech.com/",
packages=["zutil", "zutil.post", "zutil.analysis", "... | from distutils.core import setup
setup(name="zutil",
version='0.1.5',
description="Utilities used for generating zCFD control dictionaries",
author="Zenotech",
author_email="support@zenotech.com",
url="https://zcfd.zenotech.com/",
packages=["zutil", "zutil.post", "zutil.analysis", "... | <commit_before>from distutils.core import setup
setup(name="zutil",
version='0.1.4',
description="Utilities used for generating zCFD control dictionaries",
author="Zenotech",
author_email="support@zenotech.com",
url="https://zcfd.zenotech.com/",
packages=["zutil", "zutil.post", "zut... | from distutils.core import setup
setup(name="zutil",
version='0.1.5',
description="Utilities used for generating zCFD control dictionaries",
author="Zenotech",
author_email="support@zenotech.com",
url="https://zcfd.zenotech.com/",
packages=["zutil", "zutil.post", "zutil.analysis", "... | from distutils.core import setup
setup(name="zutil",
version='0.1.4',
description="Utilities used for generating zCFD control dictionaries",
author="Zenotech",
author_email="support@zenotech.com",
url="https://zcfd.zenotech.com/",
packages=["zutil", "zutil.post", "zutil.analysis", "... | <commit_before>from distutils.core import setup
setup(name="zutil",
version='0.1.4',
description="Utilities used for generating zCFD control dictionaries",
author="Zenotech",
author_email="support@zenotech.com",
url="https://zcfd.zenotech.com/",
packages=["zutil", "zutil.post", "zut... |
334ccd245997373c4ddc21c03657339c4ca20192 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | Add LICENSE to package data | Add LICENSE to package data
The LICENSE file isn't included with the version found on PyPI. Including it in the `package_data` argument passed to `setup` should fix this.
| Python | bsd-3-clause | dirn/When.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
... |
55851fc7fadd4b6a0241e63e6b708f9b5d4e253d | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="django-service-rating-store",
version="0.3.0",
url='https://github.com/praekelt/django-service-rating-store',
license='BSD',
description=(
"Django app that allows storage and visualisation of Service Rating data posted via REST API"),... | from setuptools import setup, find_packages
setup(
name="django-service-rating-store",
version="0.3.0a",
url='https://github.com/praekelt/django-service-rating-store',
license='BSD',
description=(
"Django app that allows storage and visualisation of Service Rating data posted via REST API")... | Bump to 0.3.0a post release | Bump to 0.3.0a post release
| Python | bsd-3-clause | praekelt/django-service-rating-store | from setuptools import setup, find_packages
setup(
name="django-service-rating-store",
version="0.3.0",
url='https://github.com/praekelt/django-service-rating-store',
license='BSD',
description=(
"Django app that allows storage and visualisation of Service Rating data posted via REST API"),... | from setuptools import setup, find_packages
setup(
name="django-service-rating-store",
version="0.3.0a",
url='https://github.com/praekelt/django-service-rating-store',
license='BSD',
description=(
"Django app that allows storage and visualisation of Service Rating data posted via REST API")... | <commit_before>from setuptools import setup, find_packages
setup(
name="django-service-rating-store",
version="0.3.0",
url='https://github.com/praekelt/django-service-rating-store',
license='BSD',
description=(
"Django app that allows storage and visualisation of Service Rating data posted ... | from setuptools import setup, find_packages
setup(
name="django-service-rating-store",
version="0.3.0a",
url='https://github.com/praekelt/django-service-rating-store',
license='BSD',
description=(
"Django app that allows storage and visualisation of Service Rating data posted via REST API")... | from setuptools import setup, find_packages
setup(
name="django-service-rating-store",
version="0.3.0",
url='https://github.com/praekelt/django-service-rating-store',
license='BSD',
description=(
"Django app that allows storage and visualisation of Service Rating data posted via REST API"),... | <commit_before>from setuptools import setup, find_packages
setup(
name="django-service-rating-store",
version="0.3.0",
url='https://github.com/praekelt/django-service-rating-store',
license='BSD',
description=(
"Django app that allows storage and visualisation of Service Rating data posted ... |
845ed2a406baf333cd289f789aed0089b3ec3be9 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.1',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | Update the PyPI version to 7.0.1. | Update the PyPI version to 7.0.1.
| Python | mit | Doist/todoist-python | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.1',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0',
packages=['todoist', 'todoist.managers'],
author... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.1',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0',
packages=['todoist', 'todoist.managers'],
author... |
e00f59a20c3efa6a8db307f482d54a99f5b1f643 | setup.py | setup.py | import os
import sys
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The packages we depend on
dependencies = [
"Flask==0.9",
"MySQL-python==1.2.4c1"
]
# If old Python, then we need simplejson
i... | import os
import sys
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The packages we depend on
dependencies = [
"Flask==0.9",
"MySQL-python==1.2.4c1"
]
# If old Python, then we need simplejson
i... | Include templates and static data in packaging | Include templates and static data in packaging
| Python | apache-2.0 | pegasus-isi/pegasus-metrics,pegasus-isi/pegasus-metrics,pegasus-isi/pegasus-metrics | import os
import sys
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The packages we depend on
dependencies = [
"Flask==0.9",
"MySQL-python==1.2.4c1"
]
# If old Python, then we need simplejson
i... | import os
import sys
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The packages we depend on
dependencies = [
"Flask==0.9",
"MySQL-python==1.2.4c1"
]
# If old Python, then we need simplejson
i... | <commit_before>import os
import sys
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The packages we depend on
dependencies = [
"Flask==0.9",
"MySQL-python==1.2.4c1"
]
# If old Python, then we ne... | import os
import sys
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The packages we depend on
dependencies = [
"Flask==0.9",
"MySQL-python==1.2.4c1"
]
# If old Python, then we need simplejson
i... | import os
import sys
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The packages we depend on
dependencies = [
"Flask==0.9",
"MySQL-python==1.2.4c1"
]
# If old Python, then we need simplejson
i... | <commit_before>import os
import sys
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# The packages we depend on
dependencies = [
"Flask==0.9",
"MySQL-python==1.2.4c1"
]
# If old Python, then we ne... |
c3ad61a642e0e1149ae7ea1e8bde2efa6bbc9263 | setup.py | setup.py | from distutils.core import setup
from setuptools import find_packages
with open('README.md') as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='1.6.6',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.c... | from distutils.core import setup
from setuptools import find_packages
with open('README.md') as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='1.6.6',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.c... | Update the classifier for all the tested versions of python | Update the classifier for all the tested versions of python
| Python | apache-2.0 | mefyl/sendwithus_python,sendwithus/sendwithus_python | from distutils.core import setup
from setuptools import find_packages
with open('README.md') as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='1.6.6',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.c... | from distutils.core import setup
from setuptools import find_packages
with open('README.md') as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='1.6.6',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.c... | <commit_before>from distutils.core import setup
from setuptools import find_packages
with open('README.md') as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='1.6.6',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='h... | from distutils.core import setup
from setuptools import find_packages
with open('README.md') as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='1.6.6',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.c... | from distutils.core import setup
from setuptools import find_packages
with open('README.md') as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='1.6.6',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.c... | <commit_before>from distutils.core import setup
from setuptools import find_packages
with open('README.md') as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='1.6.6',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
scripts=[],
url='h... |
9f50db5179886770178a07a1167b40f3d17ccbd9 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"P... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.4",
"P... | Add py24 and py25 to classifiers | Add py24 and py25 to classifiers
| Python | apache-2.0 | tk0miya/diff-highlight | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"P... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.4",
"P... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python ... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.4",
"P... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"P... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python ... |
20c0466c951864da74b250c0eeb907ad1dc209b9 | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | Increment minor version once again | Increment minor version once again | Python | bsd-3-clause | consbio/parserutils | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parser... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parser... |
ea9847a31eb4441415f1c11ddf57056f206fc375 | reverse-engineering/reveng.py | reverse-engineering/reveng.py | from os.path import dirname
from puresnmp.pdu import PDU
from puresnmp.test import readbytes_multiple
from puresnmp.x690.types import pop_tlv
HERE = dirname(__file__)
for row in readbytes_multiple('authpriv.hex', HERE):
print(row)
pdu, _ = pop_tlv(row)
print(pdu.pretty())
| from os.path import dirname
HERE = dirname(__file__)
from puresnmp.pdu import PDU
from puresnmp.test import readbytes_multiple
from puresnmp.x690.types import pop_tlv
for row in readbytes_multiple("authpriv.hex", HERE):
print(row)
pdu, _ = pop_tlv(row)
print(pdu.pretty())
| Add some files for reverse-engineering | Add some files for reverse-engineering
| Python | mit | exhuma/puresnmp,exhuma/puresnmp | from os.path import dirname
from puresnmp.pdu import PDU
from puresnmp.test import readbytes_multiple
from puresnmp.x690.types import pop_tlv
HERE = dirname(__file__)
for row in readbytes_multiple('authpriv.hex', HERE):
print(row)
pdu, _ = pop_tlv(row)
print(pdu.pretty())
Add some files for reverse-engin... | from os.path import dirname
HERE = dirname(__file__)
from puresnmp.pdu import PDU
from puresnmp.test import readbytes_multiple
from puresnmp.x690.types import pop_tlv
for row in readbytes_multiple("authpriv.hex", HERE):
print(row)
pdu, _ = pop_tlv(row)
print(pdu.pretty())
| <commit_before>from os.path import dirname
from puresnmp.pdu import PDU
from puresnmp.test import readbytes_multiple
from puresnmp.x690.types import pop_tlv
HERE = dirname(__file__)
for row in readbytes_multiple('authpriv.hex', HERE):
print(row)
pdu, _ = pop_tlv(row)
print(pdu.pretty())
<commit_msg>Add s... | from os.path import dirname
HERE = dirname(__file__)
from puresnmp.pdu import PDU
from puresnmp.test import readbytes_multiple
from puresnmp.x690.types import pop_tlv
for row in readbytes_multiple("authpriv.hex", HERE):
print(row)
pdu, _ = pop_tlv(row)
print(pdu.pretty())
| from os.path import dirname
from puresnmp.pdu import PDU
from puresnmp.test import readbytes_multiple
from puresnmp.x690.types import pop_tlv
HERE = dirname(__file__)
for row in readbytes_multiple('authpriv.hex', HERE):
print(row)
pdu, _ = pop_tlv(row)
print(pdu.pretty())
Add some files for reverse-engin... | <commit_before>from os.path import dirname
from puresnmp.pdu import PDU
from puresnmp.test import readbytes_multiple
from puresnmp.x690.types import pop_tlv
HERE = dirname(__file__)
for row in readbytes_multiple('authpriv.hex', HERE):
print(row)
pdu, _ = pop_tlv(row)
print(pdu.pretty())
<commit_msg>Add s... |
e893a860f4a8ad9682f400507948ee20fce1c328 | healthcheck/contrib/django/status_endpoint/views.py | healthcheck/contrib/django/status_endpoint/views.py | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse, HttpResponseServerError
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
@require_http_methods(['GET'])
def status... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | Fix content_type for JSON responses | Fix content_type for JSON responses
| Python | mit | yola/healthcheck | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse, HttpResponseServerError
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
@require_http_methods(['GET'])
def status... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | <commit_before>import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse, HttpResponseServerError
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
@require_http_methods(['GE... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse, HttpResponseServerError
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
@require_http_methods(['GET'])
def status... | <commit_before>import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse, HttpResponseServerError
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
@require_http_methods(['GE... |
14a59d3b1d440d20c1df9b6e43c45657d8a60774 | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
import os
here = os.pa... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
import os
here = os.pa... | Change it to upload to pypi | Change it to upload to pypi
| Python | mit | Tivix/django-common,Tivix/django-common,WikiRealtyInc/django-common,WikiRealtyInc/django-common,Tivix/django-common,WikiRealtyInc/django-common | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
import os
here = os.pa... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
import os
here = os.pa... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
import o... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
import os
here = os.pa... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
import os
here = os.pa... | <commit_before>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
import o... |
cf49c86c6e0966061ab7756a9922c12430ade35f | setup.py | setup.py | from setuptools import find_packages, setup
setup(
version='0.4.0',
name='incuna-groups',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django_crispy_forms==1.4.0',
'django-polymorphic==0.6.1',
],
description='Generic group/forum framework.',
... | from setuptools import find_packages, setup
setup(
version='0.4.0',
name='incuna-groups',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django_crispy_forms>=1.4.0,<2',
'django-polymorphic>=0.6.1,<1',
],
description='Generic group/forum framework.'... | Allow wider range of dependencies | Allow wider range of dependencies
| Python | bsd-2-clause | incuna/incuna-groups,incuna/incuna-groups | from setuptools import find_packages, setup
setup(
version='0.4.0',
name='incuna-groups',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django_crispy_forms==1.4.0',
'django-polymorphic==0.6.1',
],
description='Generic group/forum framework.',
... | from setuptools import find_packages, setup
setup(
version='0.4.0',
name='incuna-groups',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django_crispy_forms>=1.4.0,<2',
'django-polymorphic>=0.6.1,<1',
],
description='Generic group/forum framework.'... | <commit_before>from setuptools import find_packages, setup
setup(
version='0.4.0',
name='incuna-groups',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django_crispy_forms==1.4.0',
'django-polymorphic==0.6.1',
],
description='Generic group/forum fr... | from setuptools import find_packages, setup
setup(
version='0.4.0',
name='incuna-groups',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django_crispy_forms>=1.4.0,<2',
'django-polymorphic>=0.6.1,<1',
],
description='Generic group/forum framework.'... | from setuptools import find_packages, setup
setup(
version='0.4.0',
name='incuna-groups',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django_crispy_forms==1.4.0',
'django-polymorphic==0.6.1',
],
description='Generic group/forum framework.',
... | <commit_before>from setuptools import find_packages, setup
setup(
version='0.4.0',
name='incuna-groups',
packages=find_packages(),
include_package_data=True,
install_requires=[
'django_crispy_forms==1.4.0',
'django-polymorphic==0.6.1',
],
description='Generic group/forum fr... |
710dbd42142f4f3ea0f02b1924f518b3cb38b79f | setup.py | setup.py | """Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup... | """Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
import pypandoc
here = path.abspath(path.dirname(__file__))
long_description = pypandoc.convert_file('README.md', 'rst')
setup(
name='scripto... | Convert README to Restructured Text for distribution. | Convert README to Restructured Text for distribution.
| Python | mit | jasedit/scriptorium,jasedit/papers_base | """Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup... | """Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
import pypandoc
here = path.abspath(path.dirname(__file__))
long_description = pypandoc.convert_file('README.md', 'rst')
setup(
name='scripto... | <commit_before>"""Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = ... | """Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
import pypandoc
here = path.abspath(path.dirname(__file__))
long_description = pypandoc.convert_file('README.md', 'rst')
setup(
name='scripto... | """Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup... | <commit_before>"""Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = ... |
9eb09bcece4a92f06c55078d2cd0e19e872c2794 | setup.py | setup.py | import astral
import os
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()
setup(name='astral',
version=astral.__version__,
description='Astral Streaming P2P Client',
long_descriptio... | import astral
import os
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()
setup(name='astral',
version=astral.__version__,
description='Astral Streaming P2P Client',
long_descriptio... | Add astralctl script to console scripts section of package config. | Add astralctl script to console scripts section of package config.
| Python | mit | peplin/astral | import astral
import os
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()
setup(name='astral',
version=astral.__version__,
description='Astral Streaming P2P Client',
long_descriptio... | import astral
import os
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()
setup(name='astral',
version=astral.__version__,
description='Astral Streaming P2P Client',
long_descriptio... | <commit_before>import astral
import os
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()
setup(name='astral',
version=astral.__version__,
description='Astral Streaming P2P Client',
... | import astral
import os
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()
setup(name='astral',
version=astral.__version__,
description='Astral Streaming P2P Client',
long_descriptio... | import astral
import os
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()
setup(name='astral',
version=astral.__version__,
description='Astral Streaming P2P Client',
long_descriptio... | <commit_before>import astral
import os
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
long_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()
setup(name='astral',
version=astral.__version__,
description='Astral Streaming P2P Client',
... |
3ed73321bb70817faa87d31ec8b588857b204634 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='pypif',
version='2.0.1',
url='http://github.com/CitrineInformatics/pypif',
description='Python tools for working with the Physical Information File (PIF)',
author='Kyle Michel',
author_email='kyle@citrine.io',
packages=find_pac... | from setuptools import setup, find_packages
setup(name='pypif',
version='2.1.0',
url='http://github.com/CitrineInformatics/pypif',
description='Python tools for working with the Physical Information File (PIF)',
author='Kyle Michel',
author_email='kyle@citrine.io',
packages=find_pac... | Add url field to Person object | Add url field to Person object
| Python | apache-2.0 | CitrineInformatics/pypif | from setuptools import setup, find_packages
setup(name='pypif',
version='2.0.1',
url='http://github.com/CitrineInformatics/pypif',
description='Python tools for working with the Physical Information File (PIF)',
author='Kyle Michel',
author_email='kyle@citrine.io',
packages=find_pac... | from setuptools import setup, find_packages
setup(name='pypif',
version='2.1.0',
url='http://github.com/CitrineInformatics/pypif',
description='Python tools for working with the Physical Information File (PIF)',
author='Kyle Michel',
author_email='kyle@citrine.io',
packages=find_pac... | <commit_before>from setuptools import setup, find_packages
setup(name='pypif',
version='2.0.1',
url='http://github.com/CitrineInformatics/pypif',
description='Python tools for working with the Physical Information File (PIF)',
author='Kyle Michel',
author_email='kyle@citrine.io',
pa... | from setuptools import setup, find_packages
setup(name='pypif',
version='2.1.0',
url='http://github.com/CitrineInformatics/pypif',
description='Python tools for working with the Physical Information File (PIF)',
author='Kyle Michel',
author_email='kyle@citrine.io',
packages=find_pac... | from setuptools import setup, find_packages
setup(name='pypif',
version='2.0.1',
url='http://github.com/CitrineInformatics/pypif',
description='Python tools for working with the Physical Information File (PIF)',
author='Kyle Michel',
author_email='kyle@citrine.io',
packages=find_pac... | <commit_before>from setuptools import setup, find_packages
setup(name='pypif',
version='2.0.1',
url='http://github.com/CitrineInformatics/pypif',
description='Python tools for working with the Physical Information File (PIF)',
author='Kyle Michel',
author_email='kyle@citrine.io',
pa... |
b6b8c8e12b18515591c0b053cac9e515314b819e | setup.py | setup.py | """
setup script
"""
from setuptools import setup, find_packages
_VERSION = '0.7'
setup(
name='jut-tools',
version=_VERSION,
author='Rodney Gomes',
author_email='rodney@jut.io',
url='https://github.com/jut-io/jut-python-tools',
download_url='https://github.com/jut-io/jut-python-tools/tarball... | """
setup script
"""
from setuptools import setup, find_packages
_VERSION = '0.7'
setup(
name='jut-tools',
version=_VERSION,
author='Rodney Gomes',
author_email='rodney@jut.io',
url='https://github.com/jut-io/jut-python-tools',
download_url='https://github.com/jut-io/jut-python-tools/tarball... | Revert "cleaning up a few unnecessary modules" | Revert "cleaning up a few unnecessary modules"
This reverts commit 6b6911ca54a8bb61a1715c19be71729a55497278.
| Python | mit | jut-io/jut-python-tools | """
setup script
"""
from setuptools import setup, find_packages
_VERSION = '0.7'
setup(
name='jut-tools',
version=_VERSION,
author='Rodney Gomes',
author_email='rodney@jut.io',
url='https://github.com/jut-io/jut-python-tools',
download_url='https://github.com/jut-io/jut-python-tools/tarball... | """
setup script
"""
from setuptools import setup, find_packages
_VERSION = '0.7'
setup(
name='jut-tools',
version=_VERSION,
author='Rodney Gomes',
author_email='rodney@jut.io',
url='https://github.com/jut-io/jut-python-tools',
download_url='https://github.com/jut-io/jut-python-tools/tarball... | <commit_before>"""
setup script
"""
from setuptools import setup, find_packages
_VERSION = '0.7'
setup(
name='jut-tools',
version=_VERSION,
author='Rodney Gomes',
author_email='rodney@jut.io',
url='https://github.com/jut-io/jut-python-tools',
download_url='https://github.com/jut-io/jut-pytho... | """
setup script
"""
from setuptools import setup, find_packages
_VERSION = '0.7'
setup(
name='jut-tools',
version=_VERSION,
author='Rodney Gomes',
author_email='rodney@jut.io',
url='https://github.com/jut-io/jut-python-tools',
download_url='https://github.com/jut-io/jut-python-tools/tarball... | """
setup script
"""
from setuptools import setup, find_packages
_VERSION = '0.7'
setup(
name='jut-tools',
version=_VERSION,
author='Rodney Gomes',
author_email='rodney@jut.io',
url='https://github.com/jut-io/jut-python-tools',
download_url='https://github.com/jut-io/jut-python-tools/tarball... | <commit_before>"""
setup script
"""
from setuptools import setup, find_packages
_VERSION = '0.7'
setup(
name='jut-tools',
version=_VERSION,
author='Rodney Gomes',
author_email='rodney@jut.io',
url='https://github.com/jut-io/jut-python-tools',
download_url='https://github.com/jut-io/jut-pytho... |
6dd3946a0ecf63d913efc71150d753895710001e | setup.py | setup.py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
""" Install the `arte_plus7` script """
from setuptools import setup
NAME = 'arte_plus7'
def get_version(module):
""" Extract package version without importing file
Importing cause issues with coverage,
(modules can be removed from sys.modules to prevent t... | #! /usr/bin/env python
# -*- coding:utf-8 -*-
""" Install the `arte_plus7` script """
from setuptools import setup
NAME = 'arte_plus7'
def get_version(module):
""" Extract package version without importing file
Importing cause issues with coverage,
(modules can be removed from sys.modules to prevent t... | Correct py_modules as a list | Correct py_modules as a list
| Python | mit | cladmi/arte_plus7 | #! /usr/bin/env python
# -*- coding:utf-8 -*-
""" Install the `arte_plus7` script """
from setuptools import setup
NAME = 'arte_plus7'
def get_version(module):
""" Extract package version without importing file
Importing cause issues with coverage,
(modules can be removed from sys.modules to prevent t... | #! /usr/bin/env python
# -*- coding:utf-8 -*-
""" Install the `arte_plus7` script """
from setuptools import setup
NAME = 'arte_plus7'
def get_version(module):
""" Extract package version without importing file
Importing cause issues with coverage,
(modules can be removed from sys.modules to prevent t... | <commit_before>#! /usr/bin/env python
# -*- coding:utf-8 -*-
""" Install the `arte_plus7` script """
from setuptools import setup
NAME = 'arte_plus7'
def get_version(module):
""" Extract package version without importing file
Importing cause issues with coverage,
(modules can be removed from sys.modul... | #! /usr/bin/env python
# -*- coding:utf-8 -*-
""" Install the `arte_plus7` script """
from setuptools import setup
NAME = 'arte_plus7'
def get_version(module):
""" Extract package version without importing file
Importing cause issues with coverage,
(modules can be removed from sys.modules to prevent t... | #! /usr/bin/env python
# -*- coding:utf-8 -*-
""" Install the `arte_plus7` script """
from setuptools import setup
NAME = 'arte_plus7'
def get_version(module):
""" Extract package version without importing file
Importing cause issues with coverage,
(modules can be removed from sys.modules to prevent t... | <commit_before>#! /usr/bin/env python
# -*- coding:utf-8 -*-
""" Install the `arte_plus7` script """
from setuptools import setup
NAME = 'arte_plus7'
def get_version(module):
""" Extract package version without importing file
Importing cause issues with coverage,
(modules can be removed from sys.modul... |
be2cd54386c0fb9c407ac5dc7da467547b0b426e | aldryn_apphooks_config/utils.py | aldryn_apphooks_config/utils.py | # -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from cms.apphook_pool import apphook_pool
from django.core.urlresolvers import resolve
def get_app_instance(request):
"""
Returns a tuple containing the current namespace and the AppHookConfig instance
:param request: request obj... | # -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from cms.apphook_pool import apphook_pool
from django.core.urlresolvers import resolve, Resolver404
def get_app_instance(request):
"""
Returns a tuple containing the current namespace and the AppHookConfig instance
:param request... | Add checks to get_app_instance to avoid Resolver404 even if namespace does not exists | Add checks to get_app_instance to avoid Resolver404 even if namespace does not exists
| Python | bsd-3-clause | aldryn/aldryn-apphooks-config,aldryn/aldryn-apphooks-config,aldryn/aldryn-apphooks-config | # -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from cms.apphook_pool import apphook_pool
from django.core.urlresolvers import resolve
def get_app_instance(request):
"""
Returns a tuple containing the current namespace and the AppHookConfig instance
:param request: request obj... | # -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from cms.apphook_pool import apphook_pool
from django.core.urlresolvers import resolve, Resolver404
def get_app_instance(request):
"""
Returns a tuple containing the current namespace and the AppHookConfig instance
:param request... | <commit_before># -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from cms.apphook_pool import apphook_pool
from django.core.urlresolvers import resolve
def get_app_instance(request):
"""
Returns a tuple containing the current namespace and the AppHookConfig instance
:param reque... | # -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from cms.apphook_pool import apphook_pool
from django.core.urlresolvers import resolve, Resolver404
def get_app_instance(request):
"""
Returns a tuple containing the current namespace and the AppHookConfig instance
:param request... | # -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from cms.apphook_pool import apphook_pool
from django.core.urlresolvers import resolve
def get_app_instance(request):
"""
Returns a tuple containing the current namespace and the AppHookConfig instance
:param request: request obj... | <commit_before># -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from cms.apphook_pool import apphook_pool
from django.core.urlresolvers import resolve
def get_app_instance(request):
"""
Returns a tuple containing the current namespace and the AppHookConfig instance
:param reque... |
300415c30dab2f8d2622c8b8de03f433bf6d5960 | setup.py | setup.py | from setuptools import setup, find_packages
from jamo import __version__
import sys
if sys.version_info <= (3, 0):
print("ERROR: jamo requires Python 3.0 or later "
"(bleeding edge preferred)", file=sys.stderr)
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
setup(
nam... | from setuptools import setup, find_packages
from jamo import __version__
import sys
if sys.version_info <= (3, 0):
print("ERROR: jamo requires Python 3.0 or later "
"(bleeding edge preferred)", file=sys.stderr)
sys.exit(1)
with open('README.rst', encoding='utf8') as f:
long_description = f.read(... | Fix for encoding bug during installation on Windows | Fix for encoding bug during installation on Windows
| Python | apache-2.0 | JDongian/python-jamo | from setuptools import setup, find_packages
from jamo import __version__
import sys
if sys.version_info <= (3, 0):
print("ERROR: jamo requires Python 3.0 or later "
"(bleeding edge preferred)", file=sys.stderr)
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
setup(
nam... | from setuptools import setup, find_packages
from jamo import __version__
import sys
if sys.version_info <= (3, 0):
print("ERROR: jamo requires Python 3.0 or later "
"(bleeding edge preferred)", file=sys.stderr)
sys.exit(1)
with open('README.rst', encoding='utf8') as f:
long_description = f.read(... | <commit_before>from setuptools import setup, find_packages
from jamo import __version__
import sys
if sys.version_info <= (3, 0):
print("ERROR: jamo requires Python 3.0 or later "
"(bleeding edge preferred)", file=sys.stderr)
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
... | from setuptools import setup, find_packages
from jamo import __version__
import sys
if sys.version_info <= (3, 0):
print("ERROR: jamo requires Python 3.0 or later "
"(bleeding edge preferred)", file=sys.stderr)
sys.exit(1)
with open('README.rst', encoding='utf8') as f:
long_description = f.read(... | from setuptools import setup, find_packages
from jamo import __version__
import sys
if sys.version_info <= (3, 0):
print("ERROR: jamo requires Python 3.0 or later "
"(bleeding edge preferred)", file=sys.stderr)
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
setup(
nam... | <commit_before>from setuptools import setup, find_packages
from jamo import __version__
import sys
if sys.version_info <= (3, 0):
print("ERROR: jamo requires Python 3.0 or later "
"(bleeding edge preferred)", file=sys.stderr)
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
... |
7941c60ba5a52ead654e5816ee39e48b9e927a21 | setup.py | setup.py | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='LoadStone',
version='0.1',
description='Interface for FFXIV Lodestone',
author='Sami Elahmadie',
author_email='s.elahmadie@gmail.com',
url='https://github.com/Demotivated/loadstone/',
packages=['api'],
install_require... | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='LoadStone',
version='0.1',
description='Interface for FFXIV Lodestone',
author='Sami Elahmadie',
author_email='s.elahmadie@gmail.com',
url='https://github.com/Demotivated/loadstone/',
packages=['api'],
install_require... | Add sphinx & theme to requirements | Add sphinx & theme to requirements
| Python | mit | Demotivated/loadstone | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='LoadStone',
version='0.1',
description='Interface for FFXIV Lodestone',
author='Sami Elahmadie',
author_email='s.elahmadie@gmail.com',
url='https://github.com/Demotivated/loadstone/',
packages=['api'],
install_require... | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='LoadStone',
version='0.1',
description='Interface for FFXIV Lodestone',
author='Sami Elahmadie',
author_email='s.elahmadie@gmail.com',
url='https://github.com/Demotivated/loadstone/',
packages=['api'],
install_require... | <commit_before>#!/usr/bin/env python3
from distutils.core import setup
setup(
name='LoadStone',
version='0.1',
description='Interface for FFXIV Lodestone',
author='Sami Elahmadie',
author_email='s.elahmadie@gmail.com',
url='https://github.com/Demotivated/loadstone/',
packages=['api'],
... | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='LoadStone',
version='0.1',
description='Interface for FFXIV Lodestone',
author='Sami Elahmadie',
author_email='s.elahmadie@gmail.com',
url='https://github.com/Demotivated/loadstone/',
packages=['api'],
install_require... | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='LoadStone',
version='0.1',
description='Interface for FFXIV Lodestone',
author='Sami Elahmadie',
author_email='s.elahmadie@gmail.com',
url='https://github.com/Demotivated/loadstone/',
packages=['api'],
install_require... | <commit_before>#!/usr/bin/env python3
from distutils.core import setup
setup(
name='LoadStone',
version='0.1',
description='Interface for FFXIV Lodestone',
author='Sami Elahmadie',
author_email='s.elahmadie@gmail.com',
url='https://github.com/Demotivated/loadstone/',
packages=['api'],
... |
433c041e3016fce0f1e3edbb9dae980f69071f3b | setup.py | setup.py | import os
from setuptools import setup
setup(
name = "pyscribe",
version = "0.1.1",
author = "Alexander Wang",
author_email = "alexanderw@berkeley.edu",
description = ("PyScribe makes print debugging easier and more efficient"),
license = "MIT",
keywords = "python pyscribe debug print",
... | import os
from setuptools import setup
setup(
name = "pyscribe",
version = "0.1.1",
author = "Alexander Wang",
author_email = "alexanderw@berkeley.edu",
description = ("PyScribe makes print debugging easier and more efficient"),
license = "MIT",
keywords = "python pyscribe debug print",
... | Add classifiers since python3 now supported | Add classifiers since python3 now supported
| Python | mit | alixander/PyScribe | import os
from setuptools import setup
setup(
name = "pyscribe",
version = "0.1.1",
author = "Alexander Wang",
author_email = "alexanderw@berkeley.edu",
description = ("PyScribe makes print debugging easier and more efficient"),
license = "MIT",
keywords = "python pyscribe debug print",
... | import os
from setuptools import setup
setup(
name = "pyscribe",
version = "0.1.1",
author = "Alexander Wang",
author_email = "alexanderw@berkeley.edu",
description = ("PyScribe makes print debugging easier and more efficient"),
license = "MIT",
keywords = "python pyscribe debug print",
... | <commit_before>import os
from setuptools import setup
setup(
name = "pyscribe",
version = "0.1.1",
author = "Alexander Wang",
author_email = "alexanderw@berkeley.edu",
description = ("PyScribe makes print debugging easier and more efficient"),
license = "MIT",
keywords = "python pyscribe deb... | import os
from setuptools import setup
setup(
name = "pyscribe",
version = "0.1.1",
author = "Alexander Wang",
author_email = "alexanderw@berkeley.edu",
description = ("PyScribe makes print debugging easier and more efficient"),
license = "MIT",
keywords = "python pyscribe debug print",
... | import os
from setuptools import setup
setup(
name = "pyscribe",
version = "0.1.1",
author = "Alexander Wang",
author_email = "alexanderw@berkeley.edu",
description = ("PyScribe makes print debugging easier and more efficient"),
license = "MIT",
keywords = "python pyscribe debug print",
... | <commit_before>import os
from setuptools import setup
setup(
name = "pyscribe",
version = "0.1.1",
author = "Alexander Wang",
author_email = "alexanderw@berkeley.edu",
description = ("PyScribe makes print debugging easier and more efficient"),
license = "MIT",
keywords = "python pyscribe deb... |
9cb532115f44b25101efa7d448328e35ca51c37c | setup.py | setup.py | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='publish-aws-lambda',
version='0.3',
description='Publish a Python module as a set of AWS lambda functions',
url='https://github.com/ophirh/publish-aws-lambda',
author='Ophir',
... | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='publish-aws-lambda',
version='0.3.1',
description='Publish a Python module as a set of AWS lambda functions',
url='https://github.com/ophirh/publish-aws-lambda',
author='Ophir',... | Fix issue with deleting boto3 from ZIP file | Fix issue with deleting boto3 from ZIP file
| Python | mit | ophirh/publish-aws-lambda | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='publish-aws-lambda',
version='0.3',
description='Publish a Python module as a set of AWS lambda functions',
url='https://github.com/ophirh/publish-aws-lambda',
author='Ophir',
... | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='publish-aws-lambda',
version='0.3.1',
description='Publish a Python module as a set of AWS lambda functions',
url='https://github.com/ophirh/publish-aws-lambda',
author='Ophir',... | <commit_before>from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='publish-aws-lambda',
version='0.3',
description='Publish a Python module as a set of AWS lambda functions',
url='https://github.com/ophirh/publish-aws-lambda',
au... | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='publish-aws-lambda',
version='0.3.1',
description='Publish a Python module as a set of AWS lambda functions',
url='https://github.com/ophirh/publish-aws-lambda',
author='Ophir',... | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='publish-aws-lambda',
version='0.3',
description='Publish a Python module as a set of AWS lambda functions',
url='https://github.com/ophirh/publish-aws-lambda',
author='Ophir',
... | <commit_before>from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='publish-aws-lambda',
version='0.3',
description='Publish a Python module as a set of AWS lambda functions',
url='https://github.com/ophirh/publish-aws-lambda',
au... |
f80ef1738608ececd6fb2b6a034ca9263f06ae17 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-ical',
version='1.4',
description="iCal feeds for Django based on Django's syndication feed "
"framework.",
long_description=(open('README.rst').read() + '\n' +
open('CHANGES.rst... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-ical',
version='1.4',
description="iCal feeds for Django based on Django's syndication feed "
"framework.",
long_description=(open('README.rst').read() + '\n' +
open('CHANGES.rst... | Add Python & Django classifiers | Add Python & Django classifiers
| Python | mit | Pinkerton/django-ical | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-ical',
version='1.4',
description="iCal feeds for Django based on Django's syndication feed "
"framework.",
long_description=(open('README.rst').read() + '\n' +
open('CHANGES.rst... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-ical',
version='1.4',
description="iCal feeds for Django based on Django's syndication feed "
"framework.",
long_description=(open('README.rst').read() + '\n' +
open('CHANGES.rst... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-ical',
version='1.4',
description="iCal feeds for Django based on Django's syndication feed "
"framework.",
long_description=(open('README.rst').read() + '\n' +
op... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-ical',
version='1.4',
description="iCal feeds for Django based on Django's syndication feed "
"framework.",
long_description=(open('README.rst').read() + '\n' +
open('CHANGES.rst... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-ical',
version='1.4',
description="iCal feeds for Django based on Django's syndication feed "
"framework.",
long_description=(open('README.rst').read() + '\n' +
open('CHANGES.rst... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-ical',
version='1.4',
description="iCal feeds for Django based on Django's syndication feed "
"framework.",
long_description=(open('README.rst').read() + '\n' +
op... |
535b9f95c89974714eacece9bf5109fd1ec5116f | setup.py | setup.py | from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
setup(
name='resultsdb-updater',
version='3.0.0',
description=('A micro-service that listens for messages on the message '
'bus and updates ResultsDB'),
license='GPLv2... | from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
setup(
name='resultsdb-updater',
version='3.0.0',
description=('A micro-service that listens for messages on the message '
'bus and updates ResultsDB'),
license='GPLv2... | Resolve warning "Unknown distribution option: 'include_data'" | Resolve warning "Unknown distribution option: 'include_data'"
| Python | lgpl-2.1 | release-engineering/resultsdb-updater,release-engineering/resultsdb-updater | from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
setup(
name='resultsdb-updater',
version='3.0.0',
description=('A micro-service that listens for messages on the message '
'bus and updates ResultsDB'),
license='GPLv2... | from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
setup(
name='resultsdb-updater',
version='3.0.0',
description=('A micro-service that listens for messages on the message '
'bus and updates ResultsDB'),
license='GPLv2... | <commit_before>from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
setup(
name='resultsdb-updater',
version='3.0.0',
description=('A micro-service that listens for messages on the message '
'bus and updates ResultsDB'),
... | from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
setup(
name='resultsdb-updater',
version='3.0.0',
description=('A micro-service that listens for messages on the message '
'bus and updates ResultsDB'),
license='GPLv2... | from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
setup(
name='resultsdb-updater',
version='3.0.0',
description=('A micro-service that listens for messages on the message '
'bus and updates ResultsDB'),
license='GPLv2... | <commit_before>from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
setup(
name='resultsdb-updater',
version='3.0.0',
description=('A micro-service that listens for messages on the message '
'bus and updates ResultsDB'),
... |
a5c0f5c46c64e56e0a4a0791b86b820e8ed0241b | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='sophiabus230',
version='0.4',
description='Module to get the timetable of the Sophia Antipolis bus line 230',
url='http://github.com/paraita/sophiabus230',
author='Paraita Wohler',
author_email='parait... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='sophiabus230',
version='0.5',
description='Module to get the timetable of the Sophia Antipolis bus line 230',
url='http://github.com/paraita/sophiabus230',
author='Paraita Wohler',
author_email='parait... | Update package version for Pypi | Update package version for Pypi
| Python | mit | paraita/sophiabus230,paraita/sophiabus230 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='sophiabus230',
version='0.4',
description='Module to get the timetable of the Sophia Antipolis bus line 230',
url='http://github.com/paraita/sophiabus230',
author='Paraita Wohler',
author_email='parait... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='sophiabus230',
version='0.5',
description='Module to get the timetable of the Sophia Antipolis bus line 230',
url='http://github.com/paraita/sophiabus230',
author='Paraita Wohler',
author_email='parait... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='sophiabus230',
version='0.4',
description='Module to get the timetable of the Sophia Antipolis bus line 230',
url='http://github.com/paraita/sophiabus230',
author='Paraita Wohler',
autho... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='sophiabus230',
version='0.5',
description='Module to get the timetable of the Sophia Antipolis bus line 230',
url='http://github.com/paraita/sophiabus230',
author='Paraita Wohler',
author_email='parait... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='sophiabus230',
version='0.4',
description='Module to get the timetable of the Sophia Antipolis bus line 230',
url='http://github.com/paraita/sophiabus230',
author='Paraita Wohler',
author_email='parait... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='sophiabus230',
version='0.4',
description='Module to get the timetable of the Sophia Antipolis bus line 230',
url='http://github.com/paraita/sophiabus230',
author='Paraita Wohler',
autho... |
d96b8f237e79c924865b429b5e8a725630537d2b | setup.py | setup.py | from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='wos',
version='0.1.2',
description='Web of Science client using API v3.',
long_description=long_description... | from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='wos',
version='0.1.2',
description='Web of Science client using API v3.',
long_description=long_description... | Use suds-jurko for python 3 | Use suds-jurko for python 3
| Python | mit | enricobacis/wos | from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='wos',
version='0.1.2',
description='Web of Science client using API v3.',
long_description=long_description... | from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='wos',
version='0.1.2',
description='Web of Science client using API v3.',
long_description=long_description... | <commit_before>from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='wos',
version='0.1.2',
description='Web of Science client using API v3.',
long_description=l... | from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='wos',
version='0.1.2',
description='Web of Science client using API v3.',
long_description=long_description... | from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='wos',
version='0.1.2',
description='Web of Science client using API v3.',
long_description=long_description... | <commit_before>from setuptools import setup
with open('README.rst') as README:
long_description = README.read()
long_description = long_description[long_description.index('Description'):]
setup(name='wos',
version='0.1.2',
description='Web of Science client using API v3.',
long_description=l... |
8ccc50c222163b76e2284438ab3779de13ba5c6d | setup.py | setup.py | # -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
README_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')
with open(README_rst, 'r') as f:
long_description = f.read()
setup(
name="pyee",
vcversioner={},
packages=find_packages(),
setup_req... | # -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
README_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')
with open(README_rst, 'r') as f:
long_description = f.read()
setup(
name="pyee",
vcversioner={},
packages=find_packages(),
setup_req... | Add whitespace to version spec? | Add whitespace to version spec?
| Python | mit | jfhbrook/pyee | # -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
README_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')
with open(README_rst, 'r') as f:
long_description = f.read()
setup(
name="pyee",
vcversioner={},
packages=find_packages(),
setup_req... | # -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
README_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')
with open(README_rst, 'r') as f:
long_description = f.read()
setup(
name="pyee",
vcversioner={},
packages=find_packages(),
setup_req... | <commit_before># -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
README_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')
with open(README_rst, 'r') as f:
long_description = f.read()
setup(
name="pyee",
vcversioner={},
packages=find_packages()... | # -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
README_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')
with open(README_rst, 'r') as f:
long_description = f.read()
setup(
name="pyee",
vcversioner={},
packages=find_packages(),
setup_req... | # -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
README_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')
with open(README_rst, 'r') as f:
long_description = f.read()
setup(
name="pyee",
vcversioner={},
packages=find_packages(),
setup_req... | <commit_before># -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
README_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')
with open(README_rst, 'r') as f:
long_description = f.read()
setup(
name="pyee",
vcversioner={},
packages=find_packages()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.