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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35a9e8f7ba101b9b36dc1ac3097e47b03e7cad89 | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
requires = filter(None, f.readlines())
with open(os.path.join(here, 'requirement... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
requires = f.read().split('\n')
with open(os.path.join(here, 'requirements-dev.t... | Use f.read() instead of filter() for reading requirements | Use f.read() instead of filter() for reading requirements
filter() has changed in Python 3 which breaks this.
| Python | bsd-2-clause | praekelt/molo.commenting,praekelt/molo.commenting | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
requires = filter(None, f.readlines())
with open(os.path.join(here, 'requirement... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
requires = f.read().split('\n')
with open(os.path.join(here, 'requirements-dev.t... | <commit_before>import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
requires = filter(None, f.readlines())
with open(os.path.join(her... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
requires = f.read().split('\n')
with open(os.path.join(here, 'requirements-dev.t... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
requires = filter(None, f.readlines())
with open(os.path.join(here, 'requirement... | <commit_before>import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'requirements.txt')) as f:
requires = filter(None, f.readlines())
with open(os.path.join(her... |
93644ba1850186eabcfea6bdab47e3e3d223becf | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
requires = req_file.read().split('\n')
with open('requirements-dev.txt') as req_file:
requires_dev = req_file.read().split('\n')
with open('VERSION')... | from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
requires = [req for req in req_file.read().split('\n') if req]
with open('requirements-dev.txt') as req_file:
requires_dev = [req for req in req_file.... | Remove empty string from requirements list | Remove empty string from requirements list
When we moved to Python 3 we used this simpler method to read the requirements
file. However we need to remove the empty/Falsey elements from the list.
This fixes the error:
```
Failed building wheel for molo.yourwords
```
| Python | bsd-2-clause | praekelt/molo.yourwords,praekelt/molo.yourwords | from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
requires = req_file.read().split('\n')
with open('requirements-dev.txt') as req_file:
requires_dev = req_file.read().split('\n')
with open('VERSION')... | from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
requires = [req for req in req_file.read().split('\n') if req]
with open('requirements-dev.txt') as req_file:
requires_dev = [req for req in req_file.... | <commit_before>from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
requires = req_file.read().split('\n')
with open('requirements-dev.txt') as req_file:
requires_dev = req_file.read().split('\n')
with ... | from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
requires = [req for req in req_file.read().split('\n') if req]
with open('requirements-dev.txt') as req_file:
requires_dev = [req for req in req_file.... | from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
requires = req_file.read().split('\n')
with open('requirements-dev.txt') as req_file:
requires_dev = req_file.read().split('\n')
with open('VERSION')... | <commit_before>from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
requires = req_file.read().split('\n')
with open('requirements-dev.txt') as req_file:
requires_dev = req_file.read().split('\n')
with ... |
4e84dc31d52412a9d58d5f0c54f5514c0eac5137 | console.py | console.py | from dumpster import Dumpster
import os
i = input('\r>')
if i == 'list':
cwd = os.getcwd()
lcd = os.listdir()
dump = ''
for file in lcd:
if '.dmp' in file:
dump+= ' '+file
print(dump)
| from dumpster import Dumpster
import os
running = True
selected = ''
while running:
#cwd = os.getcwd()
i = input('\r%s>'%(selected))
if i == 'exit':
running = False
if i[0:6] == 'create':
name = i[7:]
Dumpster(name).write_to_dump()
if i == 'list':
if selected is... | Select and Create and List | Select and Create and List
| Python | apache-2.0 | SirGuyOfGibson/source-dump | from dumpster import Dumpster
import os
i = input('\r>')
if i == 'list':
cwd = os.getcwd()
lcd = os.listdir()
dump = ''
for file in lcd:
if '.dmp' in file:
dump+= ' '+file
print(dump)
Select and Create and List | from dumpster import Dumpster
import os
running = True
selected = ''
while running:
#cwd = os.getcwd()
i = input('\r%s>'%(selected))
if i == 'exit':
running = False
if i[0:6] == 'create':
name = i[7:]
Dumpster(name).write_to_dump()
if i == 'list':
if selected is... | <commit_before>from dumpster import Dumpster
import os
i = input('\r>')
if i == 'list':
cwd = os.getcwd()
lcd = os.listdir()
dump = ''
for file in lcd:
if '.dmp' in file:
dump+= ' '+file
print(dump)
<commit_msg>Select and Create and List<commit_after> | from dumpster import Dumpster
import os
running = True
selected = ''
while running:
#cwd = os.getcwd()
i = input('\r%s>'%(selected))
if i == 'exit':
running = False
if i[0:6] == 'create':
name = i[7:]
Dumpster(name).write_to_dump()
if i == 'list':
if selected is... | from dumpster import Dumpster
import os
i = input('\r>')
if i == 'list':
cwd = os.getcwd()
lcd = os.listdir()
dump = ''
for file in lcd:
if '.dmp' in file:
dump+= ' '+file
print(dump)
Select and Create and Listfrom dumpster import Dumpster
import os
running = True
selected = ... | <commit_before>from dumpster import Dumpster
import os
i = input('\r>')
if i == 'list':
cwd = os.getcwd()
lcd = os.listdir()
dump = ''
for file in lcd:
if '.dmp' in file:
dump+= ' '+file
print(dump)
<commit_msg>Select and Create and List<commit_after>from dumpster import Dumps... |
82cfbc71873b652d64e04b01c36b1cd9d06b2f44 | setup.py | setup.py | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language... | Fix the version to correct one | Fix the version to correct one
| Python | mit | datasciencebr/serenata-toolbox | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language... | <commit_before>from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Progr... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language... | <commit_before>from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Progr... |
944746bd3e6b40b5ceb8ef974df6c26e550318cb | paradrop/tools/pdlog/pdlog/main.py | paradrop/tools/pdlog/pdlog/main.py | import sys
import argparse
import json
import urllib
import subprocess
LOG_FILE = "/var/snap/paradrop-daemon/common/logs/log"
def parseLine(line):
try:
data = json.loads(line)
msg = urllib.unquote(data['message'])
print(msg)
except:
pass
def runTail(logFile):
cmd = ['tail... | import sys
import argparse
import json
import urllib
import subprocess
from time import sleep
LOG_FILE = "/var/snap/paradrop-daemon/common/logs/log"
def parseLine(line):
try:
data = json.loads(line)
msg = urllib.unquote(data['message'])
print(msg)
except:
pass
def runTail(log... | Make sure the paradrop.pdlog retry when the log file does not exist | Make sure the paradrop.pdlog retry when the log file does not exist
| Python | apache-2.0 | ParadropLabs/Paradrop,ParadropLabs/Paradrop,ParadropLabs/Paradrop | import sys
import argparse
import json
import urllib
import subprocess
LOG_FILE = "/var/snap/paradrop-daemon/common/logs/log"
def parseLine(line):
try:
data = json.loads(line)
msg = urllib.unquote(data['message'])
print(msg)
except:
pass
def runTail(logFile):
cmd = ['tail... | import sys
import argparse
import json
import urllib
import subprocess
from time import sleep
LOG_FILE = "/var/snap/paradrop-daemon/common/logs/log"
def parseLine(line):
try:
data = json.loads(line)
msg = urllib.unquote(data['message'])
print(msg)
except:
pass
def runTail(log... | <commit_before>import sys
import argparse
import json
import urllib
import subprocess
LOG_FILE = "/var/snap/paradrop-daemon/common/logs/log"
def parseLine(line):
try:
data = json.loads(line)
msg = urllib.unquote(data['message'])
print(msg)
except:
pass
def runTail(logFile):
... | import sys
import argparse
import json
import urllib
import subprocess
from time import sleep
LOG_FILE = "/var/snap/paradrop-daemon/common/logs/log"
def parseLine(line):
try:
data = json.loads(line)
msg = urllib.unquote(data['message'])
print(msg)
except:
pass
def runTail(log... | import sys
import argparse
import json
import urllib
import subprocess
LOG_FILE = "/var/snap/paradrop-daemon/common/logs/log"
def parseLine(line):
try:
data = json.loads(line)
msg = urllib.unquote(data['message'])
print(msg)
except:
pass
def runTail(logFile):
cmd = ['tail... | <commit_before>import sys
import argparse
import json
import urllib
import subprocess
LOG_FILE = "/var/snap/paradrop-daemon/common/logs/log"
def parseLine(line):
try:
data = json.loads(line)
msg = urllib.unquote(data['message'])
print(msg)
except:
pass
def runTail(logFile):
... |
b4a179625dc852b97203eb4bc02fb1a812d5f9b1 | setup.py | setup.py | # -*- coding: utf-8 -*-
import setuptools
setuptools.setup(
name='pg_bawler',
version='0.1.0',
author='Michal Kuffa',
author_email='[email protected]',
description='Notify/listen python helpers for postgresql.',
long_description=open('README.rst').read(),
packages=setuptools.find_packa... | import setuptools
setuptools.setup(
name='pg_bawler',
version='0.1.0',
author='Michal Kuffa',
author_email='[email protected]',
description='Notify/listen python helpers for postgresql.',
long_description=open('README.rst').read(),
packages=setuptools.find_packages(),
install_requi... | Remove utf pragma since we are py3 only | Remove utf pragma since we are py3 only
| Python | bsd-3-clause | beezz/pg_bawler,beezz/pg_bawler | # -*- coding: utf-8 -*-
import setuptools
setuptools.setup(
name='pg_bawler',
version='0.1.0',
author='Michal Kuffa',
author_email='[email protected]',
description='Notify/listen python helpers for postgresql.',
long_description=open('README.rst').read(),
packages=setuptools.find_packa... | import setuptools
setuptools.setup(
name='pg_bawler',
version='0.1.0',
author='Michal Kuffa',
author_email='[email protected]',
description='Notify/listen python helpers for postgresql.',
long_description=open('README.rst').read(),
packages=setuptools.find_packages(),
install_requi... | <commit_before># -*- coding: utf-8 -*-
import setuptools
setuptools.setup(
name='pg_bawler',
version='0.1.0',
author='Michal Kuffa',
author_email='[email protected]',
description='Notify/listen python helpers for postgresql.',
long_description=open('README.rst').read(),
packages=setupt... | import setuptools
setuptools.setup(
name='pg_bawler',
version='0.1.0',
author='Michal Kuffa',
author_email='[email protected]',
description='Notify/listen python helpers for postgresql.',
long_description=open('README.rst').read(),
packages=setuptools.find_packages(),
install_requi... | # -*- coding: utf-8 -*-
import setuptools
setuptools.setup(
name='pg_bawler',
version='0.1.0',
author='Michal Kuffa',
author_email='[email protected]',
description='Notify/listen python helpers for postgresql.',
long_description=open('README.rst').read(),
packages=setuptools.find_packa... | <commit_before># -*- coding: utf-8 -*-
import setuptools
setuptools.setup(
name='pg_bawler',
version='0.1.0',
author='Michal Kuffa',
author_email='[email protected]',
description='Notify/listen python helpers for postgresql.',
long_description=open('README.rst').read(),
packages=setupt... |
1e3e9839515b5769ffe71df67cbd1aa2c55f2e72 | setup.py | setup.py | from setuptools import setup, find_packages
import cplcom
setup(
name='CPLCom',
version=cplcom.__version__,
packages=find_packages(),
package_data={'cplcom': ['../media/*', '/*.kv']},
install_requires=['moa', 'kivy'],
author='Matthew Einhorn',
author_email='[email protected]',
licen... | from setuptools import setup, find_packages
import cplcom
setup(
name='CPLCom',
version=cplcom.__version__,
packages=find_packages(),
package_data={'cplcom': ['../media/*', './*.kv']},
install_requires=['moa', 'kivy'],
author='Matthew Einhorn',
author_email='[email protected]',
lice... | Include kv files in package. | Include kv files in package.
| Python | mit | matham/cplcom | from setuptools import setup, find_packages
import cplcom
setup(
name='CPLCom',
version=cplcom.__version__,
packages=find_packages(),
package_data={'cplcom': ['../media/*', '/*.kv']},
install_requires=['moa', 'kivy'],
author='Matthew Einhorn',
author_email='[email protected]',
licen... | from setuptools import setup, find_packages
import cplcom
setup(
name='CPLCom',
version=cplcom.__version__,
packages=find_packages(),
package_data={'cplcom': ['../media/*', './*.kv']},
install_requires=['moa', 'kivy'],
author='Matthew Einhorn',
author_email='[email protected]',
lice... | <commit_before>from setuptools import setup, find_packages
import cplcom
setup(
name='CPLCom',
version=cplcom.__version__,
packages=find_packages(),
package_data={'cplcom': ['../media/*', '/*.kv']},
install_requires=['moa', 'kivy'],
author='Matthew Einhorn',
author_email='moiein2000@gmail.... | from setuptools import setup, find_packages
import cplcom
setup(
name='CPLCom',
version=cplcom.__version__,
packages=find_packages(),
package_data={'cplcom': ['../media/*', './*.kv']},
install_requires=['moa', 'kivy'],
author='Matthew Einhorn',
author_email='[email protected]',
lice... | from setuptools import setup, find_packages
import cplcom
setup(
name='CPLCom',
version=cplcom.__version__,
packages=find_packages(),
package_data={'cplcom': ['../media/*', '/*.kv']},
install_requires=['moa', 'kivy'],
author='Matthew Einhorn',
author_email='[email protected]',
licen... | <commit_before>from setuptools import setup, find_packages
import cplcom
setup(
name='CPLCom',
version=cplcom.__version__,
packages=find_packages(),
package_data={'cplcom': ['../media/*', '/*.kv']},
install_requires=['moa', 'kivy'],
author='Matthew Einhorn',
author_email='moiein2000@gmail.... |
7db47e7b87305977d48be3f610004aed1626969a | setup.py | setup.py | #!/usr/bin/env python
from os.path import dirname, join
from distutils.core import setup
from colorama import VERSION
NAME = 'colorama'
def get_long_description(filename):
readme = join(dirname(__file__), filename)
return open(readme).read()
setup(
name=NAME,
version=VERSION,
description='Cr... | #!/usr/bin/env python
from os.path import dirname, join
from distutils.core import setup
from colorama import VERSION
NAME = 'colorama'
def get_long_description(filename):
readme = join(dirname(__file__), filename)
return open(readme).read()
setup(
name=NAME,
version=VERSION,
description='Cr... | Change PyPI development status from pre-alpha to beta. | Change PyPI development status from pre-alpha to beta.
| Python | bsd-3-clause | msabramo/colorama,msabramo/colorama | #!/usr/bin/env python
from os.path import dirname, join
from distutils.core import setup
from colorama import VERSION
NAME = 'colorama'
def get_long_description(filename):
readme = join(dirname(__file__), filename)
return open(readme).read()
setup(
name=NAME,
version=VERSION,
description='Cr... | #!/usr/bin/env python
from os.path import dirname, join
from distutils.core import setup
from colorama import VERSION
NAME = 'colorama'
def get_long_description(filename):
readme = join(dirname(__file__), filename)
return open(readme).read()
setup(
name=NAME,
version=VERSION,
description='Cr... | <commit_before>#!/usr/bin/env python
from os.path import dirname, join
from distutils.core import setup
from colorama import VERSION
NAME = 'colorama'
def get_long_description(filename):
readme = join(dirname(__file__), filename)
return open(readme).read()
setup(
name=NAME,
version=VERSION,
... | #!/usr/bin/env python
from os.path import dirname, join
from distutils.core import setup
from colorama import VERSION
NAME = 'colorama'
def get_long_description(filename):
readme = join(dirname(__file__), filename)
return open(readme).read()
setup(
name=NAME,
version=VERSION,
description='Cr... | #!/usr/bin/env python
from os.path import dirname, join
from distutils.core import setup
from colorama import VERSION
NAME = 'colorama'
def get_long_description(filename):
readme = join(dirname(__file__), filename)
return open(readme).read()
setup(
name=NAME,
version=VERSION,
description='Cr... | <commit_before>#!/usr/bin/env python
from os.path import dirname, join
from distutils.core import setup
from colorama import VERSION
NAME = 'colorama'
def get_long_description(filename):
readme = join(dirname(__file__), filename)
return open(readme).read()
setup(
name=NAME,
version=VERSION,
... |
531e524d39b63730e06d171b21cc44b3e6ad2212 | setup.py | setup.py | from setuptools import setup
from sys import version_info
def install_requires():
requires = [
'traitlets>=4.0',
'six>=1.9.0',
'pyyaml>=3.11',
]
if (version_info.major, version_info.minor) < (3, 4):
requires.append('singledispatch>=3.4.0')
return requires
def extras_r... | from setuptools import setup
from sys import version_info
def install_requires():
requires = [
'traitlets>=4.1',
'six>=1.9.0',
'pyyaml>=3.11',
]
if (version_info.major, version_info.minor) < (3, 4):
requires.append('singledispatch>=3.4.0')
return requires
def extras_r... | Use the new version of traitlets. | MAINT: Use the new version of traitlets.
| Python | apache-2.0 | quantopian/serializable-traitlets | from setuptools import setup
from sys import version_info
def install_requires():
requires = [
'traitlets>=4.0',
'six>=1.9.0',
'pyyaml>=3.11',
]
if (version_info.major, version_info.minor) < (3, 4):
requires.append('singledispatch>=3.4.0')
return requires
def extras_r... | from setuptools import setup
from sys import version_info
def install_requires():
requires = [
'traitlets>=4.1',
'six>=1.9.0',
'pyyaml>=3.11',
]
if (version_info.major, version_info.minor) < (3, 4):
requires.append('singledispatch>=3.4.0')
return requires
def extras_r... | <commit_before>from setuptools import setup
from sys import version_info
def install_requires():
requires = [
'traitlets>=4.0',
'six>=1.9.0',
'pyyaml>=3.11',
]
if (version_info.major, version_info.minor) < (3, 4):
requires.append('singledispatch>=3.4.0')
return requires... | from setuptools import setup
from sys import version_info
def install_requires():
requires = [
'traitlets>=4.1',
'six>=1.9.0',
'pyyaml>=3.11',
]
if (version_info.major, version_info.minor) < (3, 4):
requires.append('singledispatch>=3.4.0')
return requires
def extras_r... | from setuptools import setup
from sys import version_info
def install_requires():
requires = [
'traitlets>=4.0',
'six>=1.9.0',
'pyyaml>=3.11',
]
if (version_info.major, version_info.minor) < (3, 4):
requires.append('singledispatch>=3.4.0')
return requires
def extras_r... | <commit_before>from setuptools import setup
from sys import version_info
def install_requires():
requires = [
'traitlets>=4.0',
'six>=1.9.0',
'pyyaml>=3.11',
]
if (version_info.major, version_info.minor) < (3, 4):
requires.append('singledispatch>=3.4.0')
return requires... |
94d5f8372d34c0d1416da3a6b39a91ec99de8752 | setup.py | setup.py | import pypandoc
from setuptools import setup, find_packages
VERSION = '1.0'
setup(
name='django_schedulermanager',
version=VERSION,
description='A package that allows you to schedule and unschedule jobs',
long_description=pypandoc.convert('README.md', 'rst'),
author='Marco Acierno',
author_e... | try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
long_description = open('README.md').read()
from setuptools import setup, find_packages
VERSION = '1.0'
setup(
name='django_schedulermanager',
version=VERSION,
description='A package that allows you to sche... | Fix error missing 'pypandoc' module when installing the module | Fix error missing 'pypandoc' module when installing the module
| Python | mit | marcoacierno/django-schedulermanager | import pypandoc
from setuptools import setup, find_packages
VERSION = '1.0'
setup(
name='django_schedulermanager',
version=VERSION,
description='A package that allows you to schedule and unschedule jobs',
long_description=pypandoc.convert('README.md', 'rst'),
author='Marco Acierno',
author_e... | try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
long_description = open('README.md').read()
from setuptools import setup, find_packages
VERSION = '1.0'
setup(
name='django_schedulermanager',
version=VERSION,
description='A package that allows you to sche... | <commit_before>import pypandoc
from setuptools import setup, find_packages
VERSION = '1.0'
setup(
name='django_schedulermanager',
version=VERSION,
description='A package that allows you to schedule and unschedule jobs',
long_description=pypandoc.convert('README.md', 'rst'),
author='Marco Acierno... | try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
long_description = open('README.md').read()
from setuptools import setup, find_packages
VERSION = '1.0'
setup(
name='django_schedulermanager',
version=VERSION,
description='A package that allows you to sche... | import pypandoc
from setuptools import setup, find_packages
VERSION = '1.0'
setup(
name='django_schedulermanager',
version=VERSION,
description='A package that allows you to schedule and unschedule jobs',
long_description=pypandoc.convert('README.md', 'rst'),
author='Marco Acierno',
author_e... | <commit_before>import pypandoc
from setuptools import setup, find_packages
VERSION = '1.0'
setup(
name='django_schedulermanager',
version=VERSION,
description='A package that allows you to schedule and unschedule jobs',
long_description=pypandoc.convert('README.md', 'rst'),
author='Marco Acierno... |
31f4ef14895b9d69ac613fcc0b051f99be76c7b9 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='goji',
version='0.2.1',
url='https://github.com/kylef/goji',
author='Kyle Fuller',
author_email='[email protected]',
packages=('goji',),
install_requires=(
'requests', 'requests-html', 'Click', 'click-datetime', 'six'
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='goji',
version='0.2.1',
url='https://github.com/kylef/goji',
author='Kyle Fuller',
author_email='[email protected]',
packages=('goji',),
install_requires=(
'requests', 'requests[socks]', 'requests-html',
'Click', ... | Install socks proxy required dependencies | feat: Install socks proxy required dependencies
| Python | bsd-2-clause | kylef/goji | #!/usr/bin/env python
from setuptools import setup
setup(
name='goji',
version='0.2.1',
url='https://github.com/kylef/goji',
author='Kyle Fuller',
author_email='[email protected]',
packages=('goji',),
install_requires=(
'requests', 'requests-html', 'Click', 'click-datetime', 'six'
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='goji',
version='0.2.1',
url='https://github.com/kylef/goji',
author='Kyle Fuller',
author_email='[email protected]',
packages=('goji',),
install_requires=(
'requests', 'requests[socks]', 'requests-html',
'Click', ... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='goji',
version='0.2.1',
url='https://github.com/kylef/goji',
author='Kyle Fuller',
author_email='[email protected]',
packages=('goji',),
install_requires=(
'requests', 'requests-html', 'Click', 'click-datet... | #!/usr/bin/env python
from setuptools import setup
setup(
name='goji',
version='0.2.1',
url='https://github.com/kylef/goji',
author='Kyle Fuller',
author_email='[email protected]',
packages=('goji',),
install_requires=(
'requests', 'requests[socks]', 'requests-html',
'Click', ... | #!/usr/bin/env python
from setuptools import setup
setup(
name='goji',
version='0.2.1',
url='https://github.com/kylef/goji',
author='Kyle Fuller',
author_email='[email protected]',
packages=('goji',),
install_requires=(
'requests', 'requests-html', 'Click', 'click-datetime', 'six'
... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='goji',
version='0.2.1',
url='https://github.com/kylef/goji',
author='Kyle Fuller',
author_email='[email protected]',
packages=('goji',),
install_requires=(
'requests', 'requests-html', 'Click', 'click-datet... |
8307590d20f3a2bdb7efaa7679bfd37d83358475 | setup.py | setup.py | #!/usr/bin/python
import os
from distutils.core import setup
from evelink import __version__
__readme_path = os.path.join(os.path.dirname(__file__), "README.md")
__readme_contents = open(__readme_path).read()
setup(
name="EVELink",
version=__version__,
description="Python Bindings for the EVE Online API... | #!/usr/bin/python
import os
from distutils.core import setup
from evelink import __version__
__readme_path = os.path.join(os.path.dirname(__file__), "README.md")
__readme_contents = open(__readme_path).read()
setup(
name="EVELink",
version=__version__,
description="Python Bindings for the EVE Online API... | Include README.md and LICENSE in the package | Include README.md and LICENSE in the package
| Python | mit | bastianh/evelink,Morloth1274/EVE-Online-POCO-manager,FashtimeDotCom/evelink,ayust/evelink,zigdon/evelink | #!/usr/bin/python
import os
from distutils.core import setup
from evelink import __version__
__readme_path = os.path.join(os.path.dirname(__file__), "README.md")
__readme_contents = open(__readme_path).read()
setup(
name="EVELink",
version=__version__,
description="Python Bindings for the EVE Online API... | #!/usr/bin/python
import os
from distutils.core import setup
from evelink import __version__
__readme_path = os.path.join(os.path.dirname(__file__), "README.md")
__readme_contents = open(__readme_path).read()
setup(
name="EVELink",
version=__version__,
description="Python Bindings for the EVE Online API... | <commit_before>#!/usr/bin/python
import os
from distutils.core import setup
from evelink import __version__
__readme_path = os.path.join(os.path.dirname(__file__), "README.md")
__readme_contents = open(__readme_path).read()
setup(
name="EVELink",
version=__version__,
description="Python Bindings for the... | #!/usr/bin/python
import os
from distutils.core import setup
from evelink import __version__
__readme_path = os.path.join(os.path.dirname(__file__), "README.md")
__readme_contents = open(__readme_path).read()
setup(
name="EVELink",
version=__version__,
description="Python Bindings for the EVE Online API... | #!/usr/bin/python
import os
from distutils.core import setup
from evelink import __version__
__readme_path = os.path.join(os.path.dirname(__file__), "README.md")
__readme_contents = open(__readme_path).read()
setup(
name="EVELink",
version=__version__,
description="Python Bindings for the EVE Online API... | <commit_before>#!/usr/bin/python
import os
from distutils.core import setup
from evelink import __version__
__readme_path = os.path.join(os.path.dirname(__file__), "README.md")
__readme_contents = open(__readme_path).read()
setup(
name="EVELink",
version=__version__,
description="Python Bindings for the... |
87856b925d436df302eed4a65eac139ee394b427 | setup.py | setup.py | #!/usr/bin/env python
"""
setup.py file for afnumpy
"""
from distutils.core import setup
from afnumpy import __version__
setup (name = 'afnumpy',
version = __version__,
author = "Filipe Maia",
author_email = "[email protected]",
url = 'https://github.com/FilipeMaia/afnumpy',
... | #!/usr/bin/env python
"""
setup.py file for afnumpy
"""
from distutils.core import setup
from afnumpy import __version__
setup (name = 'afnumpy',
version = __version__,
author = "Filipe Maia",
author_email = "[email protected]",
url = 'https://github.com/FilipeMaia/afnumpy',
... | Correct the pip download URL | Correct the pip download URL
| Python | bsd-2-clause | FilipeMaia/afnumpy,daurer/afnumpy | #!/usr/bin/env python
"""
setup.py file for afnumpy
"""
from distutils.core import setup
from afnumpy import __version__
setup (name = 'afnumpy',
version = __version__,
author = "Filipe Maia",
author_email = "[email protected]",
url = 'https://github.com/FilipeMaia/afnumpy',
... | #!/usr/bin/env python
"""
setup.py file for afnumpy
"""
from distutils.core import setup
from afnumpy import __version__
setup (name = 'afnumpy',
version = __version__,
author = "Filipe Maia",
author_email = "[email protected]",
url = 'https://github.com/FilipeMaia/afnumpy',
... | <commit_before>#!/usr/bin/env python
"""
setup.py file for afnumpy
"""
from distutils.core import setup
from afnumpy import __version__
setup (name = 'afnumpy',
version = __version__,
author = "Filipe Maia",
author_email = "[email protected]",
url = 'https://github.com/FilipeM... | #!/usr/bin/env python
"""
setup.py file for afnumpy
"""
from distutils.core import setup
from afnumpy import __version__
setup (name = 'afnumpy',
version = __version__,
author = "Filipe Maia",
author_email = "[email protected]",
url = 'https://github.com/FilipeMaia/afnumpy',
... | #!/usr/bin/env python
"""
setup.py file for afnumpy
"""
from distutils.core import setup
from afnumpy import __version__
setup (name = 'afnumpy',
version = __version__,
author = "Filipe Maia",
author_email = "[email protected]",
url = 'https://github.com/FilipeMaia/afnumpy',
... | <commit_before>#!/usr/bin/env python
"""
setup.py file for afnumpy
"""
from distutils.core import setup
from afnumpy import __version__
setup (name = 'afnumpy',
version = __version__,
author = "Filipe Maia",
author_email = "[email protected]",
url = 'https://github.com/FilipeM... |
cd0f144573349da80a179bbdd4a3d6e561980fb4 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='dcmstack',
description='Stack DICOM images into volumes',
version='0.6.dev',
author='Brendan Moloney',
author_email='[email protected]',
packages=find_packages('src'),
package_dir = {'':'src'},
install_requires=['pydicom >... | from setuptools import setup, find_packages
setup(name='dcmstack',
description='Stack DICOM images into volumes',
version='0.6.dev',
author='Brendan Moloney',
author_email='[email protected]',
packages=find_packages('src'),
package_dir = {'':'src'},
install_requires=['pydicom >... | Make nose and sphinx optional dependencies. | Make nose and sphinx optional dependencies.
| Python | mit | bpinsard/dcmstack | from setuptools import setup, find_packages
setup(name='dcmstack',
description='Stack DICOM images into volumes',
version='0.6.dev',
author='Brendan Moloney',
author_email='[email protected]',
packages=find_packages('src'),
package_dir = {'':'src'},
install_requires=['pydicom >... | from setuptools import setup, find_packages
setup(name='dcmstack',
description='Stack DICOM images into volumes',
version='0.6.dev',
author='Brendan Moloney',
author_email='[email protected]',
packages=find_packages('src'),
package_dir = {'':'src'},
install_requires=['pydicom >... | <commit_before>from setuptools import setup, find_packages
setup(name='dcmstack',
description='Stack DICOM images into volumes',
version='0.6.dev',
author='Brendan Moloney',
author_email='[email protected]',
packages=find_packages('src'),
package_dir = {'':'src'},
install_requi... | from setuptools import setup, find_packages
setup(name='dcmstack',
description='Stack DICOM images into volumes',
version='0.6.dev',
author='Brendan Moloney',
author_email='[email protected]',
packages=find_packages('src'),
package_dir = {'':'src'},
install_requires=['pydicom >... | from setuptools import setup, find_packages
setup(name='dcmstack',
description='Stack DICOM images into volumes',
version='0.6.dev',
author='Brendan Moloney',
author_email='[email protected]',
packages=find_packages('src'),
package_dir = {'':'src'},
install_requires=['pydicom >... | <commit_before>from setuptools import setup, find_packages
setup(name='dcmstack',
description='Stack DICOM images into volumes',
version='0.6.dev',
author='Brendan Moloney',
author_email='[email protected]',
packages=find_packages('src'),
package_dir = {'':'src'},
install_requi... |
dfdb53248e76c9f12482141b9955f02b63e8744d | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '0.5.4'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.4'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | Raise minimum requirement to force minimum TG version | Raise minimum requirement to force minimum TG version
| Python | mit | TurboGears/tgext.admin,TurboGears/tgext.admin | from setuptools import setup, find_packages
import os
version = '0.5.4'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.4'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.5.4'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(nam... | from setuptools import setup, find_packages
import os
version = '0.5.4'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.4'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.5.4'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(nam... |
05488bf9d43f3952d44686f1eccf2616a99805ab | setup.py | setup.py | import io
import os
from setuptools import setup, find_packages
version = io.open('rubyenv/_version.py').readlines()[-1].split()[-1].strip('"\'')
setup(
name='rubyenv',
version=version,
description='manage ruby in your virtualenv',
long_description=io.open('README.md', encoding='utf-8').read(),
a... | import io
import os
from setuptools import setup, find_packages
version = io.open('rubyenv/_version.py').readlines()[-1].split()[-1].strip('"\'')
setup(
name='rubyenv',
version=version,
description='manage ruby in your virtualenv',
long_description=io.open('README.md', encoding='utf-8').read(),
l... | Add long description content-type for PyPI | Add long description content-type for PyPI | Python | mit | twang817/rubyenv | import io
import os
from setuptools import setup, find_packages
version = io.open('rubyenv/_version.py').readlines()[-1].split()[-1].strip('"\'')
setup(
name='rubyenv',
version=version,
description='manage ruby in your virtualenv',
long_description=io.open('README.md', encoding='utf-8').read(),
a... | import io
import os
from setuptools import setup, find_packages
version = io.open('rubyenv/_version.py').readlines()[-1].split()[-1].strip('"\'')
setup(
name='rubyenv',
version=version,
description='manage ruby in your virtualenv',
long_description=io.open('README.md', encoding='utf-8').read(),
l... | <commit_before>import io
import os
from setuptools import setup, find_packages
version = io.open('rubyenv/_version.py').readlines()[-1].split()[-1].strip('"\'')
setup(
name='rubyenv',
version=version,
description='manage ruby in your virtualenv',
long_description=io.open('README.md', encoding='utf-8'... | import io
import os
from setuptools import setup, find_packages
version = io.open('rubyenv/_version.py').readlines()[-1].split()[-1].strip('"\'')
setup(
name='rubyenv',
version=version,
description='manage ruby in your virtualenv',
long_description=io.open('README.md', encoding='utf-8').read(),
l... | import io
import os
from setuptools import setup, find_packages
version = io.open('rubyenv/_version.py').readlines()[-1].split()[-1].strip('"\'')
setup(
name='rubyenv',
version=version,
description='manage ruby in your virtualenv',
long_description=io.open('README.md', encoding='utf-8').read(),
a... | <commit_before>import io
import os
from setuptools import setup, find_packages
version = io.open('rubyenv/_version.py').readlines()[-1].split()[-1].strip('"\'')
setup(
name='rubyenv',
version=version,
description='manage ruby in your virtualenv',
long_description=io.open('README.md', encoding='utf-8'... |
2884b8c7a2cfd4b18f58ce0807e46d1fad0aa4a9 | setup.py | setup.py | # -*- coding: utf-8 -*8-
from setuptools import setup, find_packages
from todomvc import version
setup(
name='django-todomvc',
version=version.to_str(),
description='TodoMVC django app',
author='Adones Cunha',
author_email='[email protected]',
url='https://github.com/adonescunha/django-t... | # -*- coding: utf-8 -*8-
from setuptools import setup, find_packages
from todomvc import version
setup(
name='django-todomvc',
version=version.to_str(),
description='TodoMVC django app',
author='Adones Cunha',
author_email='[email protected]',
url='https://github.com/adonescunha/django-t... | Set djangorestframework as a install requirement | Set djangorestframework as a install requirement
| Python | mit | adonescunha/django-todomvc | # -*- coding: utf-8 -*8-
from setuptools import setup, find_packages
from todomvc import version
setup(
name='django-todomvc',
version=version.to_str(),
description='TodoMVC django app',
author='Adones Cunha',
author_email='[email protected]',
url='https://github.com/adonescunha/django-t... | # -*- coding: utf-8 -*8-
from setuptools import setup, find_packages
from todomvc import version
setup(
name='django-todomvc',
version=version.to_str(),
description='TodoMVC django app',
author='Adones Cunha',
author_email='[email protected]',
url='https://github.com/adonescunha/django-t... | <commit_before># -*- coding: utf-8 -*8-
from setuptools import setup, find_packages
from todomvc import version
setup(
name='django-todomvc',
version=version.to_str(),
description='TodoMVC django app',
author='Adones Cunha',
author_email='[email protected]',
url='https://github.com/adone... | # -*- coding: utf-8 -*8-
from setuptools import setup, find_packages
from todomvc import version
setup(
name='django-todomvc',
version=version.to_str(),
description='TodoMVC django app',
author='Adones Cunha',
author_email='[email protected]',
url='https://github.com/adonescunha/django-t... | # -*- coding: utf-8 -*8-
from setuptools import setup, find_packages
from todomvc import version
setup(
name='django-todomvc',
version=version.to_str(),
description='TodoMVC django app',
author='Adones Cunha',
author_email='[email protected]',
url='https://github.com/adonescunha/django-t... | <commit_before># -*- coding: utf-8 -*8-
from setuptools import setup, find_packages
from todomvc import version
setup(
name='django-todomvc',
version=version.to_str(),
description='TodoMVC django app',
author='Adones Cunha',
author_email='[email protected]',
url='https://github.com/adone... |
e94175f194f134ad9f9a23514d28806037f9e728 | setup.py | setup.py | #!/usr/bin/env python
import io
from setuptools import setup, find_packages
with open('./README.md') as f:
readme = f.read()
setup(name='curwmysqladapter',
version='0.1',
description='MySQL Adapter for storing Weather Timeseries',
long_description=readme,
url='http://github.com/gihankarunarathne/C... | #!/usr/bin/env python
import io
from setuptools import setup, find_packages
with open('./README.md') as f:
readme = f.read()
setup(name='curwmysqladapter',
version='0.2',
description='MySQL Adapter for storing Weather Timeseries',
long_description=readme,
url='http://github.com/gihankarunarathne/C... | Update version to 0.1 -> 0.2 | Update version to 0.1 -> 0.2
| Python | apache-2.0 | gihankarunarathne/CurwMySQLAdapter | #!/usr/bin/env python
import io
from setuptools import setup, find_packages
with open('./README.md') as f:
readme = f.read()
setup(name='curwmysqladapter',
version='0.1',
description='MySQL Adapter for storing Weather Timeseries',
long_description=readme,
url='http://github.com/gihankarunarathne/C... | #!/usr/bin/env python
import io
from setuptools import setup, find_packages
with open('./README.md') as f:
readme = f.read()
setup(name='curwmysqladapter',
version='0.2',
description='MySQL Adapter for storing Weather Timeseries',
long_description=readme,
url='http://github.com/gihankarunarathne/C... | <commit_before>#!/usr/bin/env python
import io
from setuptools import setup, find_packages
with open('./README.md') as f:
readme = f.read()
setup(name='curwmysqladapter',
version='0.1',
description='MySQL Adapter for storing Weather Timeseries',
long_description=readme,
url='http://github.com/giha... | #!/usr/bin/env python
import io
from setuptools import setup, find_packages
with open('./README.md') as f:
readme = f.read()
setup(name='curwmysqladapter',
version='0.2',
description='MySQL Adapter for storing Weather Timeseries',
long_description=readme,
url='http://github.com/gihankarunarathne/C... | #!/usr/bin/env python
import io
from setuptools import setup, find_packages
with open('./README.md') as f:
readme = f.read()
setup(name='curwmysqladapter',
version='0.1',
description='MySQL Adapter for storing Weather Timeseries',
long_description=readme,
url='http://github.com/gihankarunarathne/C... | <commit_before>#!/usr/bin/env python
import io
from setuptools import setup, find_packages
with open('./README.md') as f:
readme = f.read()
setup(name='curwmysqladapter',
version='0.1',
description='MySQL Adapter for storing Weather Timeseries',
long_description=readme,
url='http://github.com/giha... |
a5d1ad7b653bb266dab7d38ff7f65ac8c4cabaeb | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='ronkyuu',
version='0.1.0',
description='Webmention Manager',
long_description=readme,
autho... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
# use requirements.txt for dependencies
with open('requirements.txt') as f:
required = map(lambda s: s.strip(), f.readlines())
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.r... | Add dependencies to installer via requirements.txt | Add dependencies to installer via requirements.txt
| Python | mit | bear/ronkyuu,bear/ronkyuu | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='ronkyuu',
version='0.1.0',
description='Webmention Manager',
long_description=readme,
autho... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
# use requirements.txt for dependencies
with open('requirements.txt') as f:
required = map(lambda s: s.strip(), f.readlines())
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.r... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='ronkyuu',
version='0.1.0',
description='Webmention Manager',
long_description=re... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
# use requirements.txt for dependencies
with open('requirements.txt') as f:
required = map(lambda s: s.strip(), f.readlines())
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.r... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='ronkyuu',
version='0.1.0',
description='Webmention Manager',
long_description=readme,
autho... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='ronkyuu',
version='0.1.0',
description='Webmention Manager',
long_description=re... |
4bcaff8e452973093a630d93086ea14636e97fc4 | tests/conftest.py | tests/conftest.py | import pytest
import tempfile
import os
import ConfigParser
def getConfig(optionname,thedefault,section,configfile):
"""read an option from a config file or set a default
send 'thedefault' as the data class you want to get a string back
i.e. 'True' will return a string
True will return a bool... | #!/usr/bin/env python
# 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/.
# Copyright (c) 2017 Mozilla Corporation
#
# Contributors:
# Brandon Myers [email protected]
de... | Remove unused config options in tests | Remove unused config options in tests
| Python | mpl-2.0 | ameihm0912/MozDef,Phrozyn/MozDef,mpurzynski/MozDef,jeffbryner/MozDef,mpurzynski/MozDef,mozilla/MozDef,Phrozyn/MozDef,Phrozyn/MozDef,mozilla/MozDef,mpurzynski/MozDef,ameihm0912/MozDef,mozilla/MozDef,gdestuynder/MozDef,mpurzynski/MozDef,ameihm0912/MozDef,gdestuynder/MozDef,gdestuynder/MozDef,gdestuynder/MozDef,jeffbryner... | import pytest
import tempfile
import os
import ConfigParser
def getConfig(optionname,thedefault,section,configfile):
"""read an option from a config file or set a default
send 'thedefault' as the data class you want to get a string back
i.e. 'True' will return a string
True will return a bool... | #!/usr/bin/env python
# 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/.
# Copyright (c) 2017 Mozilla Corporation
#
# Contributors:
# Brandon Myers [email protected]
de... | <commit_before>import pytest
import tempfile
import os
import ConfigParser
def getConfig(optionname,thedefault,section,configfile):
"""read an option from a config file or set a default
send 'thedefault' as the data class you want to get a string back
i.e. 'True' will return a string
True wil... | #!/usr/bin/env python
# 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/.
# Copyright (c) 2017 Mozilla Corporation
#
# Contributors:
# Brandon Myers [email protected]
de... | import pytest
import tempfile
import os
import ConfigParser
def getConfig(optionname,thedefault,section,configfile):
"""read an option from a config file or set a default
send 'thedefault' as the data class you want to get a string back
i.e. 'True' will return a string
True will return a bool... | <commit_before>import pytest
import tempfile
import os
import ConfigParser
def getConfig(optionname,thedefault,section,configfile):
"""read an option from a config file or set a default
send 'thedefault' as the data class you want to get a string back
i.e. 'True' will return a string
True wil... |
d7a347b0cee650d7b5cb6a0eca613da543e0e305 | tests/conftest.py | tests/conftest.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from flask import Flask, jsonify
@pytest.fixture
def app():
app = Flask(__name__)
app.config['SECRET_KEY'] = '42'
@app.route('/')
def index():
return app.response_class('OK')
@app.route('/ping')
def ping():
return j... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from textwrap import dedent
from flask import Flask, jsonify
pytest_plugins = 'pytester'
@pytest.fixture
def app():
app = Flask(__name__)
app.config['SECRET_KEY'] = '42'
@app.route('/')
def index():
return app.response_class('OK')... | Add `appdir` fixture to simplify testing | Add `appdir` fixture to simplify testing
| Python | mit | amateja/pytest-flask | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from flask import Flask, jsonify
@pytest.fixture
def app():
app = Flask(__name__)
app.config['SECRET_KEY'] = '42'
@app.route('/')
def index():
return app.response_class('OK')
@app.route('/ping')
def ping():
return j... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from textwrap import dedent
from flask import Flask, jsonify
pytest_plugins = 'pytester'
@pytest.fixture
def app():
app = Flask(__name__)
app.config['SECRET_KEY'] = '42'
@app.route('/')
def index():
return app.response_class('OK')... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from flask import Flask, jsonify
@pytest.fixture
def app():
app = Flask(__name__)
app.config['SECRET_KEY'] = '42'
@app.route('/')
def index():
return app.response_class('OK')
@app.route('/ping')
def ping():
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from textwrap import dedent
from flask import Flask, jsonify
pytest_plugins = 'pytester'
@pytest.fixture
def app():
app = Flask(__name__)
app.config['SECRET_KEY'] = '42'
@app.route('/')
def index():
return app.response_class('OK')... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from flask import Flask, jsonify
@pytest.fixture
def app():
app = Flask(__name__)
app.config['SECRET_KEY'] = '42'
@app.route('/')
def index():
return app.response_class('OK')
@app.route('/ping')
def ping():
return j... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from flask import Flask, jsonify
@pytest.fixture
def app():
app = Flask(__name__)
app.config['SECRET_KEY'] = '42'
@app.route('/')
def index():
return app.response_class('OK')
@app.route('/ping')
def ping():
... |
1ce9d232e290c32f2c3e851617a89966f0e3eb87 | lib/templatetags/baseurl.py | lib/templatetags/baseurl.py | import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs(url):
... | import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs(url):
... | Change bs4 html parser to html.parser | Change bs4 html parser to html.parser
This is to fix wrapping with <html> tags.
| Python | mit | peterkuma/tjrapid,peterkuma/tjrapid,peterkuma/tjrapid | import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs(url):
... | import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs(url):
... | <commit_before>import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs... | import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs(url):
... | import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs(url):
... | <commit_before>import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs... |
10b58658f76c0d51c0ae091788db78de5204a284 | example.py | example.py | import generation
import show
""" Choose the excitation signal which you want to generate and fill in
the parameters xxx_sweep(fstart, fstop, sweep_time, fs),
where:
fstart is the start frequency
fstop is the stop frequency
sweep_time is the total length of sweep
fs is the sampling frequency
Note that the stop freq... | #!/usr/bin/env python3
import generation
import show
# For example
"""Save the return value in a new variable which is the sweep
vector. """
x = generation.log_sweep(1, 1000, 2, 44100)
"""We created a vector which sweeps from 1 Hz to 1000 Hz in 2
seconds at a sampling frequency of 44.1 kHz.
"""
show.sweep(x, 2, 44... | Make executable and edit some docstrings | Make executable and edit some docstrings
| Python | mit | spatialaudio/sweep,franzpl/sweep | import generation
import show
""" Choose the excitation signal which you want to generate and fill in
the parameters xxx_sweep(fstart, fstop, sweep_time, fs),
where:
fstart is the start frequency
fstop is the stop frequency
sweep_time is the total length of sweep
fs is the sampling frequency
Note that the stop freq... | #!/usr/bin/env python3
import generation
import show
# For example
"""Save the return value in a new variable which is the sweep
vector. """
x = generation.log_sweep(1, 1000, 2, 44100)
"""We created a vector which sweeps from 1 Hz to 1000 Hz in 2
seconds at a sampling frequency of 44.1 kHz.
"""
show.sweep(x, 2, 44... | <commit_before>import generation
import show
""" Choose the excitation signal which you want to generate and fill in
the parameters xxx_sweep(fstart, fstop, sweep_time, fs),
where:
fstart is the start frequency
fstop is the stop frequency
sweep_time is the total length of sweep
fs is the sampling frequency
Note tha... | #!/usr/bin/env python3
import generation
import show
# For example
"""Save the return value in a new variable which is the sweep
vector. """
x = generation.log_sweep(1, 1000, 2, 44100)
"""We created a vector which sweeps from 1 Hz to 1000 Hz in 2
seconds at a sampling frequency of 44.1 kHz.
"""
show.sweep(x, 2, 44... | import generation
import show
""" Choose the excitation signal which you want to generate and fill in
the parameters xxx_sweep(fstart, fstop, sweep_time, fs),
where:
fstart is the start frequency
fstop is the stop frequency
sweep_time is the total length of sweep
fs is the sampling frequency
Note that the stop freq... | <commit_before>import generation
import show
""" Choose the excitation signal which you want to generate and fill in
the parameters xxx_sweep(fstart, fstop, sweep_time, fs),
where:
fstart is the start frequency
fstop is the stop frequency
sweep_time is the total length of sweep
fs is the sampling frequency
Note tha... |
ab3d07cf5d169459515348777a68f825e182ba03 | scripts/print_view_hierarchy.py | scripts/print_view_hierarchy.py | """Prints the current view hierarchy.
Usage: pv
"""
def print_view_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[UIWindow keyWindow] recursiveDescription]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script add -f print_view_hierarchy.prin... | """Prints the current view hierarchy.
Usage: pv
"""
def print_view_hierarchy(debugger, command, result, internal_dict):
debugger.GetCommandInterpreter().HandleCommand('po [[UIWindow keyWindow] recursiveDescription]', result)
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script ... | Update view hierarchy script to use the interpreter as needed for tests. | Update view hierarchy script to use the interpreter as needed for tests.
| Python | mit | mrhappyasthma/happydebugging,mrhappyasthma/HappyDebugging | """Prints the current view hierarchy.
Usage: pv
"""
def print_view_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[UIWindow keyWindow] recursiveDescription]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script add -f print_view_hierarchy.prin... | """Prints the current view hierarchy.
Usage: pv
"""
def print_view_hierarchy(debugger, command, result, internal_dict):
debugger.GetCommandInterpreter().HandleCommand('po [[UIWindow keyWindow] recursiveDescription]', result)
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script ... | <commit_before>"""Prints the current view hierarchy.
Usage: pv
"""
def print_view_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[UIWindow keyWindow] recursiveDescription]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script add -f print_view... | """Prints the current view hierarchy.
Usage: pv
"""
def print_view_hierarchy(debugger, command, result, internal_dict):
debugger.GetCommandInterpreter().HandleCommand('po [[UIWindow keyWindow] recursiveDescription]', result)
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script ... | """Prints the current view hierarchy.
Usage: pv
"""
def print_view_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[UIWindow keyWindow] recursiveDescription]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script add -f print_view_hierarchy.prin... | <commit_before>"""Prints the current view hierarchy.
Usage: pv
"""
def print_view_hierarchy(debugger, command, result, internal_dict):
debugger.HandleCommand('po [[UIWindow keyWindow] recursiveDescription]')
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('command script add -f print_view... |
6dce76d8442e835b2c27db969ef4b3285d9c10bb | tests/testwith.py | tests/testwith.py | import sys
if sys.version_info[:2] > (2, 5):
from tests._testwith import *
else:
from tests.support import unittest2
class TestWith(unittest2.TestCase):
@unittest2.skip('tests using with statement skipped on Python 2.4')
def testWith(self):
pass
if __name__ == '_... | import sys
if sys.version_info[:2] >= (2, 5):
from tests._testwith import *
else:
from tests.support import unittest2
class TestWith(unittest2.TestCase):
@unittest2.skip('tests using with statement skipped on Python 2.4')
def testWith(self):
pass
if __name__ == '... | Enable with statement tests for Python 2.5 | Enable with statement tests for Python 2.5
--HG--
extra : convert_revision : svn%3Ab9624562-6840-0410-91c4-7d0ded462287/trunk%40287
| Python | bsd-2-clause | WiserTogether/mock,beyang/mock | import sys
if sys.version_info[:2] > (2, 5):
from tests._testwith import *
else:
from tests.support import unittest2
class TestWith(unittest2.TestCase):
@unittest2.skip('tests using with statement skipped on Python 2.4')
def testWith(self):
pass
if __name__ == '_... | import sys
if sys.version_info[:2] >= (2, 5):
from tests._testwith import *
else:
from tests.support import unittest2
class TestWith(unittest2.TestCase):
@unittest2.skip('tests using with statement skipped on Python 2.4')
def testWith(self):
pass
if __name__ == '... | <commit_before>import sys
if sys.version_info[:2] > (2, 5):
from tests._testwith import *
else:
from tests.support import unittest2
class TestWith(unittest2.TestCase):
@unittest2.skip('tests using with statement skipped on Python 2.4')
def testWith(self):
pass
if... | import sys
if sys.version_info[:2] >= (2, 5):
from tests._testwith import *
else:
from tests.support import unittest2
class TestWith(unittest2.TestCase):
@unittest2.skip('tests using with statement skipped on Python 2.4')
def testWith(self):
pass
if __name__ == '... | import sys
if sys.version_info[:2] > (2, 5):
from tests._testwith import *
else:
from tests.support import unittest2
class TestWith(unittest2.TestCase):
@unittest2.skip('tests using with statement skipped on Python 2.4')
def testWith(self):
pass
if __name__ == '_... | <commit_before>import sys
if sys.version_info[:2] > (2, 5):
from tests._testwith import *
else:
from tests.support import unittest2
class TestWith(unittest2.TestCase):
@unittest2.skip('tests using with statement skipped on Python 2.4')
def testWith(self):
pass
if... |
c53cec75ef487ccd2eb9e86987f67bd8bfff87d2 | tests/integration/cli/sync_test.py | tests/integration/cli/sync_test.py | from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate busyboxa')
... | from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate busyboxa')
... | Add test that sync is now destructive | Add test that sync is now destructive
| Python | mit | gamechanger/dusty,gamechanger/dusty,gamechanger/dusty,gamechanger/dusty,gamechanger/dusty | from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate busyboxa')
... | from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate busyboxa')
... | <commit_before>from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate bu... | from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate busyboxa')
... | from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate busyboxa')
... | <commit_before>from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate bu... |
5c8e83373a854242aca7a82611d47d1fdb85269e | toolbox/models.py | toolbox/models.py | from keras.layers import Conv2D
from keras.models import Sequential
def srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32):
model = Sequential()
model.add(Conv2D(nb_filter=n1, nb_row=f1, nb_col=f1,
activation='relu', init='he_normal',
input_shape=input_shape))
... | from keras.layers import Conv2D
from keras.models import Sequential
def srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32):
model = Sequential()
model.add(Conv2D(nb_filter=n1, nb_row=f1, nb_col=f1, init='he_normal',
activation='relu', input_shape=input_shape))
model.add(Conv2D(nb... | Use he_normal initialization for all layers | Use he_normal initialization for all layers
| Python | mit | qobilidop/srcnn,qobilidop/srcnn | from keras.layers import Conv2D
from keras.models import Sequential
def srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32):
model = Sequential()
model.add(Conv2D(nb_filter=n1, nb_row=f1, nb_col=f1,
activation='relu', init='he_normal',
input_shape=input_shape))
... | from keras.layers import Conv2D
from keras.models import Sequential
def srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32):
model = Sequential()
model.add(Conv2D(nb_filter=n1, nb_row=f1, nb_col=f1, init='he_normal',
activation='relu', input_shape=input_shape))
model.add(Conv2D(nb... | <commit_before>from keras.layers import Conv2D
from keras.models import Sequential
def srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32):
model = Sequential()
model.add(Conv2D(nb_filter=n1, nb_row=f1, nb_col=f1,
activation='relu', init='he_normal',
input_shape=i... | from keras.layers import Conv2D
from keras.models import Sequential
def srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32):
model = Sequential()
model.add(Conv2D(nb_filter=n1, nb_row=f1, nb_col=f1, init='he_normal',
activation='relu', input_shape=input_shape))
model.add(Conv2D(nb... | from keras.layers import Conv2D
from keras.models import Sequential
def srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32):
model = Sequential()
model.add(Conv2D(nb_filter=n1, nb_row=f1, nb_col=f1,
activation='relu', init='he_normal',
input_shape=input_shape))
... | <commit_before>from keras.layers import Conv2D
from keras.models import Sequential
def srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32):
model = Sequential()
model.add(Conv2D(nb_filter=n1, nb_row=f1, nb_col=f1,
activation='relu', init='he_normal',
input_shape=i... |
9c5b501399bd7c7045b972f0343c0bee881c9dd5 | sync_watchdog.py | sync_watchdog.py | from tapiriik.database import db
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
for worker in db.sync_workers.find({"Host": socket.gethostname()}):
# Does the process still exist?
alive = True
try:
os.kill(worker["Process"], 0)
... | from tapiriik.database import db
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
for worker in db.sync_workers.find({"Host": socket.gethostname()}):
# Does the process still exist?
alive = True
try:
os.kill(worker["Process"], 0)
... | Disable sync watchdog timeout check. | Disable sync watchdog timeout check.
| Python | apache-2.0 | mduggan/tapiriik,abhijit86k/tapiriik,campbellr/tapiriik,campbellr/tapiriik,cmgrote/tapiriik,marxin/tapiriik,brunoflores/tapiriik,dmschreiber/tapiriik,gavioto/tapiriik,dlenski/tapiriik,brunoflores/tapiriik,cgourlay/tapiriik,marxin/tapiriik,cgourlay/tapiriik,cpfair/tapiriik,mduggan/tapiriik,mduggan/tapiriik,abhijit86k/ta... | from tapiriik.database import db
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
for worker in db.sync_workers.find({"Host": socket.gethostname()}):
# Does the process still exist?
alive = True
try:
os.kill(worker["Process"], 0)
... | from tapiriik.database import db
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
for worker in db.sync_workers.find({"Host": socket.gethostname()}):
# Does the process still exist?
alive = True
try:
os.kill(worker["Process"], 0)
... | <commit_before>from tapiriik.database import db
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
for worker in db.sync_workers.find({"Host": socket.gethostname()}):
# Does the process still exist?
alive = True
try:
os.kill(worker["Pro... | from tapiriik.database import db
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
for worker in db.sync_workers.find({"Host": socket.gethostname()}):
# Does the process still exist?
alive = True
try:
os.kill(worker["Process"], 0)
... | from tapiriik.database import db
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
for worker in db.sync_workers.find({"Host": socket.gethostname()}):
# Does the process still exist?
alive = True
try:
os.kill(worker["Process"], 0)
... | <commit_before>from tapiriik.database import db
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
for worker in db.sync_workers.find({"Host": socket.gethostname()}):
# Does the process still exist?
alive = True
try:
os.kill(worker["Pro... |
cf025969d7cbf2d78cfbf890967fd6a67fbc53c6 | django_bootstrap_calendar/models.py | django_bootstrap_calendar/models.py | # -*- coding: utf-8 -*-
__author__ = 'sandlbn'
from django.db import models
from django.utils.translation import ugettext as _
from utils import datetime_to_timestamp
class CalendarEvent(models.Model):
"""
Calendar Events
"""
CSS_CLASS_CHOICES = (
('', _('Normal')),
('event-warning', ... | # -*- coding: utf-8 -*-
__author__ = 'sandlbn'
from django.db import models
from django.utils.translation import ugettext_lazy as _
from utils import datetime_to_timestamp
class CalendarEvent(models.Model):
"""
Calendar Events
"""
CSS_CLASS_CHOICES = (
('', _('Normal')),
('event-warni... | Use ugettext_lazy instead of ugettext to make it compatible with Django 1.7 | Use ugettext_lazy instead of ugettext to make it compatible with Django 1.7
https://docs.djangoproject.com/en/dev/ref/applications/#applications-troubleshooting
| Python | bsd-3-clause | dannybrowne86/django-bootstrap-calendar,mfmarlonferrari/django-bootstrap-calendar,arbitrahj/django-bootstrap-calendar,arbitrahj/django-bootstrap-calendar,tiagovaz/django-bootstrap-calendar,sandlbn/django-bootstrap-calendar,sandlbn/django-bootstrap-calendar,sandlbn/django-bootstrap-calendar,mfmarlonferrari/django-bootst... | # -*- coding: utf-8 -*-
__author__ = 'sandlbn'
from django.db import models
from django.utils.translation import ugettext as _
from utils import datetime_to_timestamp
class CalendarEvent(models.Model):
"""
Calendar Events
"""
CSS_CLASS_CHOICES = (
('', _('Normal')),
('event-warning', ... | # -*- coding: utf-8 -*-
__author__ = 'sandlbn'
from django.db import models
from django.utils.translation import ugettext_lazy as _
from utils import datetime_to_timestamp
class CalendarEvent(models.Model):
"""
Calendar Events
"""
CSS_CLASS_CHOICES = (
('', _('Normal')),
('event-warni... | <commit_before># -*- coding: utf-8 -*-
__author__ = 'sandlbn'
from django.db import models
from django.utils.translation import ugettext as _
from utils import datetime_to_timestamp
class CalendarEvent(models.Model):
"""
Calendar Events
"""
CSS_CLASS_CHOICES = (
('', _('Normal')),
('e... | # -*- coding: utf-8 -*-
__author__ = 'sandlbn'
from django.db import models
from django.utils.translation import ugettext_lazy as _
from utils import datetime_to_timestamp
class CalendarEvent(models.Model):
"""
Calendar Events
"""
CSS_CLASS_CHOICES = (
('', _('Normal')),
('event-warni... | # -*- coding: utf-8 -*-
__author__ = 'sandlbn'
from django.db import models
from django.utils.translation import ugettext as _
from utils import datetime_to_timestamp
class CalendarEvent(models.Model):
"""
Calendar Events
"""
CSS_CLASS_CHOICES = (
('', _('Normal')),
('event-warning', ... | <commit_before># -*- coding: utf-8 -*-
__author__ = 'sandlbn'
from django.db import models
from django.utils.translation import ugettext as _
from utils import datetime_to_timestamp
class CalendarEvent(models.Model):
"""
Calendar Events
"""
CSS_CLASS_CHOICES = (
('', _('Normal')),
('e... |
e07b2e24cddc8a2e2d1c8838e8509b2009344714 | util/BaseModel.py | util/BaseModel.py | """
Contains base class for ndb models. This adds functionality that is expected (or at least useful) elsewhere in GEAStarterKit.
"""
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
date_created = ndb.DateTimeProperty(auto_now_add=True, required=True)
date_modified = ndb.DateTimeProperty(auto... | """
Contains base class for ndb models. This adds functionality that is expected (or at least useful) elsewhere in GEAStarterKit.
"""
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
date_created = ndb.DateTimeProperty(auto_now_add=True, required=True)
date_modified = ndb.DateTimeProperty(auto... | Add a utility method to get instances from urlsafe key. | Add a utility method to get instances from urlsafe key.
| Python | apache-2.0 | kkinder/GAEStarterKit,kkinder/GAEStarterKit,kkinder/GAEStarterKit | """
Contains base class for ndb models. This adds functionality that is expected (or at least useful) elsewhere in GEAStarterKit.
"""
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
date_created = ndb.DateTimeProperty(auto_now_add=True, required=True)
date_modified = ndb.DateTimeProperty(auto... | """
Contains base class for ndb models. This adds functionality that is expected (or at least useful) elsewhere in GEAStarterKit.
"""
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
date_created = ndb.DateTimeProperty(auto_now_add=True, required=True)
date_modified = ndb.DateTimeProperty(auto... | <commit_before>"""
Contains base class for ndb models. This adds functionality that is expected (or at least useful) elsewhere in GEAStarterKit.
"""
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
date_created = ndb.DateTimeProperty(auto_now_add=True, required=True)
date_modified = ndb.DateTi... | """
Contains base class for ndb models. This adds functionality that is expected (or at least useful) elsewhere in GEAStarterKit.
"""
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
date_created = ndb.DateTimeProperty(auto_now_add=True, required=True)
date_modified = ndb.DateTimeProperty(auto... | """
Contains base class for ndb models. This adds functionality that is expected (or at least useful) elsewhere in GEAStarterKit.
"""
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
date_created = ndb.DateTimeProperty(auto_now_add=True, required=True)
date_modified = ndb.DateTimeProperty(auto... | <commit_before>"""
Contains base class for ndb models. This adds functionality that is expected (or at least useful) elsewhere in GEAStarterKit.
"""
from google.appengine.ext import ndb
class BaseModel(ndb.Model):
date_created = ndb.DateTimeProperty(auto_now_add=True, required=True)
date_modified = ndb.DateTi... |
39769907bdcd019ec6a7d4f2ee1be82efd760611 | src/rinoh/language/pl.py | src/rinoh/language/pl.py | # This file is part of rinohtype, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .cls import Language
from ..structure import Sectio... | # This file is part of rinohtype, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .cls import Language
from ..structure import Sectio... | Add Polish language document strings. | Add Polish language document strings.
| Python | agpl-3.0 | brechtm/rinohtype,brechtm/rinohtype,brechtm/rinohtype | # This file is part of rinohtype, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .cls import Language
from ..structure import Sectio... | # This file is part of rinohtype, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .cls import Language
from ..structure import Sectio... | <commit_before># This file is part of rinohtype, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .cls import Language
from ..structur... | # This file is part of rinohtype, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .cls import Language
from ..structure import Sectio... | # This file is part of rinohtype, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .cls import Language
from ..structure import Sectio... | <commit_before># This file is part of rinohtype, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .cls import Language
from ..structur... |
cdcb503d3dbc4679a2bda9dd204df18ab334d70c | pyclub/content/forms.py | pyclub/content/forms.py | # -*- coding: utf-8 -*-
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = (
'title',
'body',
'status',
)
| # -*- coding: utf-8 -*-
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = (
'title',
'body',
)
| Remove campo com default do form | Remove campo com default do form
| Python | mit | dvl/pyclub,dvl/pyclub,dvl/pyclub | # -*- coding: utf-8 -*-
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = (
'title',
'body',
'status',
)
Remove campo com default do form | # -*- coding: utf-8 -*-
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = (
'title',
'body',
)
| <commit_before># -*- coding: utf-8 -*-
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = (
'title',
'body',
'status',
)
<commit_msg>Remove campo com default do form<commit_after> | # -*- coding: utf-8 -*-
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = (
'title',
'body',
)
| # -*- coding: utf-8 -*-
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = (
'title',
'body',
'status',
)
Remove campo com default do form# -*- coding: utf-8 -*-
from django import ... | <commit_before># -*- coding: utf-8 -*-
from django import forms
from . import models
class PostForm(forms.ModelForm):
class Meta:
model = models.Post
fields = (
'title',
'body',
'status',
)
<commit_msg>Remove campo com default do form<commit_after># -... |
56a94b6ca5cadceb503edc7b968f813e66fafe92 | src/web/__init__.py | src/web/__init__.py | # -*- coding: utf-8 -*-
from random import choice
from faker.providers import BaseProvider
from .mimetypes import mime_types
class WebProvider(BaseProvider):
"""
A Provider for web-related test data.
>>> from faker import Faker
>>> from faker_web import WebProvider
>>> fake = Faker()
>>> fa... | # -*- coding: utf-8 -*-
from faker.providers import BaseProvider
from .mimetypes import mime_types
class WebProvider(BaseProvider):
"""
A Provider for web-related test data.
>>> from faker import Faker
>>> from faker_web import WebProvider
>>> fake = Faker()
>>> fake.add_provider(WebProvider... | Use random_element instead of random.choice | Use random_element instead of random.choice
| Python | apache-2.0 | thiagofigueiro/faker_web | # -*- coding: utf-8 -*-
from random import choice
from faker.providers import BaseProvider
from .mimetypes import mime_types
class WebProvider(BaseProvider):
"""
A Provider for web-related test data.
>>> from faker import Faker
>>> from faker_web import WebProvider
>>> fake = Faker()
>>> fa... | # -*- coding: utf-8 -*-
from faker.providers import BaseProvider
from .mimetypes import mime_types
class WebProvider(BaseProvider):
"""
A Provider for web-related test data.
>>> from faker import Faker
>>> from faker_web import WebProvider
>>> fake = Faker()
>>> fake.add_provider(WebProvider... | <commit_before># -*- coding: utf-8 -*-
from random import choice
from faker.providers import BaseProvider
from .mimetypes import mime_types
class WebProvider(BaseProvider):
"""
A Provider for web-related test data.
>>> from faker import Faker
>>> from faker_web import WebProvider
>>> fake = Fak... | # -*- coding: utf-8 -*-
from faker.providers import BaseProvider
from .mimetypes import mime_types
class WebProvider(BaseProvider):
"""
A Provider for web-related test data.
>>> from faker import Faker
>>> from faker_web import WebProvider
>>> fake = Faker()
>>> fake.add_provider(WebProvider... | # -*- coding: utf-8 -*-
from random import choice
from faker.providers import BaseProvider
from .mimetypes import mime_types
class WebProvider(BaseProvider):
"""
A Provider for web-related test data.
>>> from faker import Faker
>>> from faker_web import WebProvider
>>> fake = Faker()
>>> fa... | <commit_before># -*- coding: utf-8 -*-
from random import choice
from faker.providers import BaseProvider
from .mimetypes import mime_types
class WebProvider(BaseProvider):
"""
A Provider for web-related test data.
>>> from faker import Faker
>>> from faker_web import WebProvider
>>> fake = Fak... |
c69e18a4dd324b8d32fb3d5c74bd011c7fa081d6 | waybackpack/session.py | waybackpack/session.py | from .settings import DEFAULT_USER_AGENT
import requests
import time
import logging
logger = logging.getLogger(__name__)
class Session(object):
def __init__(self, follow_redirects=False, user_agent=DEFAULT_USER_AGENT):
self.follow_redirects = follow_redirects
self.user_agent = user_agent
def g... | from .settings import DEFAULT_USER_AGENT
import requests
import time
import logging
logger = logging.getLogger(__name__)
class Session(object):
def __init__(self, follow_redirects=False, user_agent=DEFAULT_USER_AGENT):
self.follow_redirects = follow_redirects
self.user_agent = user_agent
def g... | Add stream=True to requests params | Add stream=True to requests params
| Python | mit | jsvine/waybackpack | from .settings import DEFAULT_USER_AGENT
import requests
import time
import logging
logger = logging.getLogger(__name__)
class Session(object):
def __init__(self, follow_redirects=False, user_agent=DEFAULT_USER_AGENT):
self.follow_redirects = follow_redirects
self.user_agent = user_agent
def g... | from .settings import DEFAULT_USER_AGENT
import requests
import time
import logging
logger = logging.getLogger(__name__)
class Session(object):
def __init__(self, follow_redirects=False, user_agent=DEFAULT_USER_AGENT):
self.follow_redirects = follow_redirects
self.user_agent = user_agent
def g... | <commit_before>from .settings import DEFAULT_USER_AGENT
import requests
import time
import logging
logger = logging.getLogger(__name__)
class Session(object):
def __init__(self, follow_redirects=False, user_agent=DEFAULT_USER_AGENT):
self.follow_redirects = follow_redirects
self.user_agent = user_a... | from .settings import DEFAULT_USER_AGENT
import requests
import time
import logging
logger = logging.getLogger(__name__)
class Session(object):
def __init__(self, follow_redirects=False, user_agent=DEFAULT_USER_AGENT):
self.follow_redirects = follow_redirects
self.user_agent = user_agent
def g... | from .settings import DEFAULT_USER_AGENT
import requests
import time
import logging
logger = logging.getLogger(__name__)
class Session(object):
def __init__(self, follow_redirects=False, user_agent=DEFAULT_USER_AGENT):
self.follow_redirects = follow_redirects
self.user_agent = user_agent
def g... | <commit_before>from .settings import DEFAULT_USER_AGENT
import requests
import time
import logging
logger = logging.getLogger(__name__)
class Session(object):
def __init__(self, follow_redirects=False, user_agent=DEFAULT_USER_AGENT):
self.follow_redirects = follow_redirects
self.user_agent = user_a... |
6cedfb17afbb3a869336d23cefdfcae1a65754f9 | tests/test_check.py | tests/test_check.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_binaryornot
------------------
Tests for `binaryornot` module.
"""
import unittest
from binaryornot import check
class TestIsBinary(unittest.TestCase):
def setUp(self):
pass
def test_is_binary(self):
pass
def tearDown(self):
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_binaryornot
------------------
Tests for `binaryornot` module.
"""
import unittest
from binaryornot.check import is_binary
class TestIsBinary(unittest.TestCase):
def test_css(self):
self.assertFalse(is_binary('tests/files/bootstrap-glyphicons.css... | Add lots of miserably failing tests. | Add lots of miserably failing tests.
| Python | bsd-3-clause | pombredanne/binaryornot,0k/binaryornot,pombredanne/binaryornot,pombredanne/binaryornot,audreyr/binaryornot,audreyr/binaryornot,hackebrot/binaryornot,hackebrot/binaryornot,0k/binaryornot,audreyr/binaryornot,hackebrot/binaryornot | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_binaryornot
------------------
Tests for `binaryornot` module.
"""
import unittest
from binaryornot import check
class TestIsBinary(unittest.TestCase):
def setUp(self):
pass
def test_is_binary(self):
pass
def tearDown(self):
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_binaryornot
------------------
Tests for `binaryornot` module.
"""
import unittest
from binaryornot.check import is_binary
class TestIsBinary(unittest.TestCase):
def test_css(self):
self.assertFalse(is_binary('tests/files/bootstrap-glyphicons.css... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_binaryornot
------------------
Tests for `binaryornot` module.
"""
import unittest
from binaryornot import check
class TestIsBinary(unittest.TestCase):
def setUp(self):
pass
def test_is_binary(self):
pass
def tear... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_binaryornot
------------------
Tests for `binaryornot` module.
"""
import unittest
from binaryornot.check import is_binary
class TestIsBinary(unittest.TestCase):
def test_css(self):
self.assertFalse(is_binary('tests/files/bootstrap-glyphicons.css... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_binaryornot
------------------
Tests for `binaryornot` module.
"""
import unittest
from binaryornot import check
class TestIsBinary(unittest.TestCase):
def setUp(self):
pass
def test_is_binary(self):
pass
def tearDown(self):
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_binaryornot
------------------
Tests for `binaryornot` module.
"""
import unittest
from binaryornot import check
class TestIsBinary(unittest.TestCase):
def setUp(self):
pass
def test_is_binary(self):
pass
def tear... |
d59247df00a5899c0f4933df42a9d369db1931ab | tests/helpers.py | tests/helpers.py | import virtualbox
def list_machines():
vbox = virtualbox.vb_get_manager()
for machine in vbox.getArray(vbox, "Machines"):
print "Machine '%s' logs in '%s'" % (
machine.name,
machine.logFolder
)
| import unittest
import virtualbox
class VirtualboxTestCase(unittest.TestCase):
def setUp(self):
self.vbox = virtualbox.vb_get_manager()
def assertMachineExists(self, name, msg=None):
try:
self.vbox.findMachine(name)
except Exception as e:
if msg:
... | Create a basic VirtualBoxTestCase with helper assertions | Create a basic VirtualBoxTestCase with helper assertions
| Python | apache-2.0 | saltstack/salt,saltstack/salt,LoveIsGrief/saltcloud-virtualbox-provider,saltstack/salt,saltstack/salt,saltstack/salt | import virtualbox
def list_machines():
vbox = virtualbox.vb_get_manager()
for machine in vbox.getArray(vbox, "Machines"):
print "Machine '%s' logs in '%s'" % (
machine.name,
machine.logFolder
)
Create a basic VirtualBoxTestCase with helper assertions | import unittest
import virtualbox
class VirtualboxTestCase(unittest.TestCase):
def setUp(self):
self.vbox = virtualbox.vb_get_manager()
def assertMachineExists(self, name, msg=None):
try:
self.vbox.findMachine(name)
except Exception as e:
if msg:
... | <commit_before>import virtualbox
def list_machines():
vbox = virtualbox.vb_get_manager()
for machine in vbox.getArray(vbox, "Machines"):
print "Machine '%s' logs in '%s'" % (
machine.name,
machine.logFolder
)
<commit_msg>Create a basic VirtualBoxTestCase with helper ass... | import unittest
import virtualbox
class VirtualboxTestCase(unittest.TestCase):
def setUp(self):
self.vbox = virtualbox.vb_get_manager()
def assertMachineExists(self, name, msg=None):
try:
self.vbox.findMachine(name)
except Exception as e:
if msg:
... | import virtualbox
def list_machines():
vbox = virtualbox.vb_get_manager()
for machine in vbox.getArray(vbox, "Machines"):
print "Machine '%s' logs in '%s'" % (
machine.name,
machine.logFolder
)
Create a basic VirtualBoxTestCase with helper assertionsimport unittest
impo... | <commit_before>import virtualbox
def list_machines():
vbox = virtualbox.vb_get_manager()
for machine in vbox.getArray(vbox, "Machines"):
print "Machine '%s' logs in '%s'" % (
machine.name,
machine.logFolder
)
<commit_msg>Create a basic VirtualBoxTestCase with helper ass... |
c203f53257e4ac873f3361859158024a45b7fb56 | test/test_object.py | test/test_object.py | from support import lib,ffi
from qcgc_test import QCGCTest
import unittest
class ObjectTestCase(QCGCTest):
def test_write_barrier(self):
arena = lib.qcgc_arena_create()
o = self.allocate(16)
self.assertEqual(ffi.cast("object_t *", o).flags & lib.QCGC_GRAY_FLAG, 0)
lib.qcgc_write(ffi... | from support import lib,ffi
from qcgc_test import QCGCTest
import unittest
class ObjectTestCase(QCGCTest):
def test_write_barrier(self):
o = self.allocate(16)
arena = lib.qcgc_arena_addr(ffi.cast("cell_t *", o))
self.assertEqual(ffi.cast("object_t *", o).flags & lib.QCGC_GRAY_FLAG, 0)
... | Add additional test for black object barrier | Add additional test for black object barrier
| Python | mit | ntruessel/qcgc,ntruessel/qcgc,ntruessel/qcgc | from support import lib,ffi
from qcgc_test import QCGCTest
import unittest
class ObjectTestCase(QCGCTest):
def test_write_barrier(self):
arena = lib.qcgc_arena_create()
o = self.allocate(16)
self.assertEqual(ffi.cast("object_t *", o).flags & lib.QCGC_GRAY_FLAG, 0)
lib.qcgc_write(ffi... | from support import lib,ffi
from qcgc_test import QCGCTest
import unittest
class ObjectTestCase(QCGCTest):
def test_write_barrier(self):
o = self.allocate(16)
arena = lib.qcgc_arena_addr(ffi.cast("cell_t *", o))
self.assertEqual(ffi.cast("object_t *", o).flags & lib.QCGC_GRAY_FLAG, 0)
... | <commit_before>from support import lib,ffi
from qcgc_test import QCGCTest
import unittest
class ObjectTestCase(QCGCTest):
def test_write_barrier(self):
arena = lib.qcgc_arena_create()
o = self.allocate(16)
self.assertEqual(ffi.cast("object_t *", o).flags & lib.QCGC_GRAY_FLAG, 0)
lib... | from support import lib,ffi
from qcgc_test import QCGCTest
import unittest
class ObjectTestCase(QCGCTest):
def test_write_barrier(self):
o = self.allocate(16)
arena = lib.qcgc_arena_addr(ffi.cast("cell_t *", o))
self.assertEqual(ffi.cast("object_t *", o).flags & lib.QCGC_GRAY_FLAG, 0)
... | from support import lib,ffi
from qcgc_test import QCGCTest
import unittest
class ObjectTestCase(QCGCTest):
def test_write_barrier(self):
arena = lib.qcgc_arena_create()
o = self.allocate(16)
self.assertEqual(ffi.cast("object_t *", o).flags & lib.QCGC_GRAY_FLAG, 0)
lib.qcgc_write(ffi... | <commit_before>from support import lib,ffi
from qcgc_test import QCGCTest
import unittest
class ObjectTestCase(QCGCTest):
def test_write_barrier(self):
arena = lib.qcgc_arena_create()
o = self.allocate(16)
self.assertEqual(ffi.cast("object_t *", o).flags & lib.QCGC_GRAY_FLAG, 0)
lib... |
7ef436dc909fdcb3ba917faddda585f8619bc5ed | testing/runtests.py | testing/runtests.py | # -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
args = sys.argv[1:]
if len(args) == 0:
args.append("pg_array_fields")
call_command("test", *args, verbosity=2)
| # -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
args = sys.argv[1:]
if len(args) == 0:
args.appen... | Fix running the tests against Django 1.7. | Fix running the tests against Django 1.7.
| Python | bsd-3-clause | Natgeoed/djorm-ext-pgarray,natgeo/djorm-ext-pgarray,natgeo/djorm-ext-pgarray,niwinz/djorm-pgarray,niwinz/djorm-pgarray,Natgeoed/djorm-ext-pgarray | # -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
args = sys.argv[1:]
if len(args) == 0:
args.append("pg_array_fields")
call_command("test", *args, verbosity=2)
Fix running ... | # -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
args = sys.argv[1:]
if len(args) == 0:
args.appen... | <commit_before># -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
args = sys.argv[1:]
if len(args) == 0:
args.append("pg_array_fields")
call_command("test", *args, verbosity=... | # -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
args = sys.argv[1:]
if len(args) == 0:
args.appen... | # -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
args = sys.argv[1:]
if len(args) == 0:
args.append("pg_array_fields")
call_command("test", *args, verbosity=2)
Fix running ... | <commit_before># -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
args = sys.argv[1:]
if len(args) == 0:
args.append("pg_array_fields")
call_command("test", *args, verbosity=... |
c6d7f2b1214e86f09431ab1d8e5c312f7a87081d | pttrack/views.py | pttrack/views.py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
# Create your views here.from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the BIG TABLE.")
def clindate(request, clindate):
(year, month, day) = clindate.split... | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from . import models as mymodels
# Create your views here.from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the BIG TABL... | Set up redirect at db saves for new patients. | Set up redirect at db saves for new patients.
| Python | mit | SaturdayNeighborhoodHealthClinic/clintools,SaturdayNeighborhoodHealthClinic/clintools,SaturdayNeighborhoodHealthClinic/clintools | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
# Create your views here.from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the BIG TABLE.")
def clindate(request, clindate):
(year, month, day) = clindate.split... | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from . import models as mymodels
# Create your views here.from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the BIG TABL... | <commit_before>from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
# Create your views here.from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the BIG TABLE.")
def clindate(request, clindate):
(year, month, day) =... | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from . import models as mymodels
# Create your views here.from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the BIG TABL... | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
# Create your views here.from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the BIG TABLE.")
def clindate(request, clindate):
(year, month, day) = clindate.split... | <commit_before>from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
# Create your views here.from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the BIG TABLE.")
def clindate(request, clindate):
(year, month, day) =... |
3050971ec01d14e12d276bc47193abeac0364862 | todoman/__init__.py | todoman/__init__.py | from setuptools_scm import get_version
__version__ = get_version(version_scheme='post-release')
| from setuptools_scm import get_version
import pkg_resources
try:
__version__ = get_version(version_scheme='post-release')
except LookupError:
__version__ = pkg_resources.get_distribution('todoman').version
| Fix determining version outside a git repository | Fix determining version outside a git repository
| Python | isc | Sakshisaraswat/todoman,hobarrera/todoman,asalminen/todoman,pimutils/todoman,rimshaakhan/todoman,AnubhaAgrawal/todoman | from setuptools_scm import get_version
__version__ = get_version(version_scheme='post-release')
Fix determining version outside a git repository | from setuptools_scm import get_version
import pkg_resources
try:
__version__ = get_version(version_scheme='post-release')
except LookupError:
__version__ = pkg_resources.get_distribution('todoman').version
| <commit_before>from setuptools_scm import get_version
__version__ = get_version(version_scheme='post-release')
<commit_msg>Fix determining version outside a git repository<commit_after> | from setuptools_scm import get_version
import pkg_resources
try:
__version__ = get_version(version_scheme='post-release')
except LookupError:
__version__ = pkg_resources.get_distribution('todoman').version
| from setuptools_scm import get_version
__version__ = get_version(version_scheme='post-release')
Fix determining version outside a git repositoryfrom setuptools_scm import get_version
import pkg_resources
try:
__version__ = get_version(version_scheme='post-release')
except LookupError:
__version__ = pkg_resour... | <commit_before>from setuptools_scm import get_version
__version__ = get_version(version_scheme='post-release')
<commit_msg>Fix determining version outside a git repository<commit_after>from setuptools_scm import get_version
import pkg_resources
try:
__version__ = get_version(version_scheme='post-release')
except ... |
9d35e9f59ca6e15ca7484a686235c12b64858861 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'psqlgraph',
'gdcdictionary',
'dictionaryutils>=2.0.... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'psqlgraph',
'gdcdictionary',
'dictionaryutils>=2.0.... | Update dict pin in prep for release | chore(pins): Update dict pin in prep for release
- Update dict pin in prep for release
| Python | apache-2.0 | NCI-GDC/gdcdatamodel,NCI-GDC/gdcdatamodel | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'psqlgraph',
'gdcdictionary',
'dictionaryutils>=2.0.... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'psqlgraph',
'gdcdictionary',
'dictionaryutils>=2.0.... | <commit_before>from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'psqlgraph',
'gdcdictionary',
'dictio... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'psqlgraph',
'gdcdictionary',
'dictionaryutils>=2.0.... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'psqlgraph',
'gdcdictionary',
'dictionaryutils>=2.0.... | <commit_before>from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'psqlgraph',
'gdcdictionary',
'dictio... |
5698faa6d6460c6e8008279c654fa448537720c2 | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name='PyAbel',
version='0.5.0',
description='A Python package for inverse Abel transforms',
author='Dan Hickstein',
packages=find_packages(),
package_data={'abel': ['tests/data/*' ]},
install_requires=[
... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name='PyAbel',
version='0.5.0',
description='A Python package for inverse Abel transforms',
author='Dan Hickstein',
packages=find_packages(),
package_data={'abel': ['tests/data/*' ]},
install_requires=[
... | Set minimal scipy dependency to 0.14 | Set minimal scipy dependency to 0.14
| Python | mit | PyAbel/PyAbel,huletlab/PyAbel,stggh/PyAbel,rth/PyAbel,DhrubajyotiDas/PyAbel | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name='PyAbel',
version='0.5.0',
description='A Python package for inverse Abel transforms',
author='Dan Hickstein',
packages=find_packages(),
package_data={'abel': ['tests/data/*' ]},
install_requires=[
... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name='PyAbel',
version='0.5.0',
description='A Python package for inverse Abel transforms',
author='Dan Hickstein',
packages=find_packages(),
package_data={'abel': ['tests/data/*' ]},
install_requires=[
... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
setup(name='PyAbel',
version='0.5.0',
description='A Python package for inverse Abel transforms',
author='Dan Hickstein',
packages=find_packages(),
package_data={'abel': ['tests/data/*' ]},
install_requir... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name='PyAbel',
version='0.5.0',
description='A Python package for inverse Abel transforms',
author='Dan Hickstein',
packages=find_packages(),
package_data={'abel': ['tests/data/*' ]},
install_requires=[
... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name='PyAbel',
version='0.5.0',
description='A Python package for inverse Abel transforms',
author='Dan Hickstein',
packages=find_packages(),
package_data={'abel': ['tests/data/*' ]},
install_requires=[
... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
setup(name='PyAbel',
version='0.5.0',
description='A Python package for inverse Abel transforms',
author='Dan Hickstein',
packages=find_packages(),
package_data={'abel': ['tests/data/*' ]},
install_requir... |
ddbd19d317940f61f724309b192dce5ed49f4cb0 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | Remove sqlite3 package. Its available by default in most python distributions. | Remove sqlite3 package. Its available by default in most python distributions.
| Python | mit | supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | <commit_before>from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open... | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open('README.md').r... | <commit_before>from setuptools import setup, find_packages
setup(
name='weaveserver',
version='0.8',
author='Srivatsan Iyer',
author_email='[email protected]',
packages=find_packages(),
license='MIT',
description='Library to interact with Weave Server',
long_description=open... |
690cc2cb654a5772d73ecc83932358b4a6091921 | setup.py | setup.py | import os
import platform
import setuptools
# # --- Detect if extensions should be disabled ------------------------------
wrapt_env = os.environ.get('WRAPT_INSTALL_EXTENSIONS')
if wrapt_env is None:
wrapt_env = os.environ.get('WRAPT_EXTENSIONS')
if wrapt_env is not None:
disable_extensions = wrapt_env.lower... | import os
import platform
import setuptools
# # --- Detect if extensions should be disabled ------------------------------
wrapt_env = os.environ.get('WRAPT_INSTALL_EXTENSIONS')
if wrapt_env is None:
wrapt_env = os.environ.get('WRAPT_EXTENSIONS')
if wrapt_env is not None:
disable_extensions = wrapt_env.lower... | Revert to relative path for sources. | Revert to relative path for sources.
| Python | bsd-2-clause | GrahamDumpleton/wrapt,GrahamDumpleton/wrapt | import os
import platform
import setuptools
# # --- Detect if extensions should be disabled ------------------------------
wrapt_env = os.environ.get('WRAPT_INSTALL_EXTENSIONS')
if wrapt_env is None:
wrapt_env = os.environ.get('WRAPT_EXTENSIONS')
if wrapt_env is not None:
disable_extensions = wrapt_env.lower... | import os
import platform
import setuptools
# # --- Detect if extensions should be disabled ------------------------------
wrapt_env = os.environ.get('WRAPT_INSTALL_EXTENSIONS')
if wrapt_env is None:
wrapt_env = os.environ.get('WRAPT_EXTENSIONS')
if wrapt_env is not None:
disable_extensions = wrapt_env.lower... | <commit_before>import os
import platform
import setuptools
# # --- Detect if extensions should be disabled ------------------------------
wrapt_env = os.environ.get('WRAPT_INSTALL_EXTENSIONS')
if wrapt_env is None:
wrapt_env = os.environ.get('WRAPT_EXTENSIONS')
if wrapt_env is not None:
disable_extensions = ... | import os
import platform
import setuptools
# # --- Detect if extensions should be disabled ------------------------------
wrapt_env = os.environ.get('WRAPT_INSTALL_EXTENSIONS')
if wrapt_env is None:
wrapt_env = os.environ.get('WRAPT_EXTENSIONS')
if wrapt_env is not None:
disable_extensions = wrapt_env.lower... | import os
import platform
import setuptools
# # --- Detect if extensions should be disabled ------------------------------
wrapt_env = os.environ.get('WRAPT_INSTALL_EXTENSIONS')
if wrapt_env is None:
wrapt_env = os.environ.get('WRAPT_EXTENSIONS')
if wrapt_env is not None:
disable_extensions = wrapt_env.lower... | <commit_before>import os
import platform
import setuptools
# # --- Detect if extensions should be disabled ------------------------------
wrapt_env = os.environ.get('WRAPT_INSTALL_EXTENSIONS')
if wrapt_env is None:
wrapt_env = os.environ.get('WRAPT_EXTENSIONS')
if wrapt_env is not None:
disable_extensions = ... |
06be7bebcc72d2ae77a9004b2a5cc0043df0e9a6 | setup.py | setup.py | from setuptools import setup, find_packages
import os.path
with open("README.rst") as infile:
readme = infile.read()
with open(os.path.join("docs", "CHANGES.txt")) as infile:
changes = infile.read()
long_desc = readme + '\n\n' + changes
setup(
name='spiny',
version='0.3.dev0',
description='''Spiny ... | from setuptools import setup, find_packages
import os.path
import sys
if sys.version_info < (3,):
install_requires = ['subprocess32']
else:
install_requires = []
with open("README.rst") as infile:
readme = infile.read()
with open(os.path.join("docs", "CHANGES.txt")) as infile:
changes = infile.read()
long... | Use subprocess32 under Python 2 for subprocess fixes. | Use subprocess32 under Python 2 for subprocess fixes.
| Python | mit | regebro/spiny | from setuptools import setup, find_packages
import os.path
with open("README.rst") as infile:
readme = infile.read()
with open(os.path.join("docs", "CHANGES.txt")) as infile:
changes = infile.read()
long_desc = readme + '\n\n' + changes
setup(
name='spiny',
version='0.3.dev0',
description='''Spiny ... | from setuptools import setup, find_packages
import os.path
import sys
if sys.version_info < (3,):
install_requires = ['subprocess32']
else:
install_requires = []
with open("README.rst") as infile:
readme = infile.read()
with open(os.path.join("docs", "CHANGES.txt")) as infile:
changes = infile.read()
long... | <commit_before>from setuptools import setup, find_packages
import os.path
with open("README.rst") as infile:
readme = infile.read()
with open(os.path.join("docs", "CHANGES.txt")) as infile:
changes = infile.read()
long_desc = readme + '\n\n' + changes
setup(
name='spiny',
version='0.3.dev0',
descri... | from setuptools import setup, find_packages
import os.path
import sys
if sys.version_info < (3,):
install_requires = ['subprocess32']
else:
install_requires = []
with open("README.rst") as infile:
readme = infile.read()
with open(os.path.join("docs", "CHANGES.txt")) as infile:
changes = infile.read()
long... | from setuptools import setup, find_packages
import os.path
with open("README.rst") as infile:
readme = infile.read()
with open(os.path.join("docs", "CHANGES.txt")) as infile:
changes = infile.read()
long_desc = readme + '\n\n' + changes
setup(
name='spiny',
version='0.3.dev0',
description='''Spiny ... | <commit_before>from setuptools import setup, find_packages
import os.path
with open("README.rst") as infile:
readme = infile.read()
with open(os.path.join("docs", "CHANGES.txt")) as infile:
changes = infile.read()
long_desc = readme + '\n\n' + changes
setup(
name='spiny',
version='0.3.dev0',
descri... |
a29b144d0bf4e7c83fe1b63e6128bb327fe6fa89 | setup.py | setup.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import setuptools
with open("README.md", "r"... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import setuptools
with open("README.md", "r"... | Add entry points for command line tools. | Add entry points for command line tools.
Signed-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>
| Python | isc | SymbiFlow/python-fpga-interchange,SymbiFlow/python-fpga-interchange | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import setuptools
with open("README.md", "r"... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import setuptools
with open("README.md", "r"... | <commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import setuptools
with open("... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import setuptools
with open("README.md", "r"... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import setuptools
with open("README.md", "r"... | <commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import setuptools
with open("... |
765807cca72cc82c889cf352fefc24c5bb00fe06 | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Std lib imports
import glob
import os
# Non-std lib imports
from setuptools import Extension, find_packages, setup
# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
name="fastnumbers",
version="3.2.1",
python_re... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Std lib imports
import glob
import os
# Non-std lib imports
from setuptools import Extension, find_packages, setup
# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
name="fastnumbers",
version="3.2.1",
python_re... | Add -lm as floor() is used | Add -lm as floor() is used
This fixes build on armv7hl:
/usr/bin/ld: build/temp.linux-armv8l-3.10/src/numbers.o: in function `_PyFloat_is_Intlike':
/home/iurt/rpmbuild/BUILD/fastnumbers-3.2.1/src/numbers.c:69: undefined reference to `floor' | Python | mit | SethMMorton/fastnumbers,SethMMorton/fastnumbers,SethMMorton/fastnumbers | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Std lib imports
import glob
import os
# Non-std lib imports
from setuptools import Extension, find_packages, setup
# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
name="fastnumbers",
version="3.2.1",
python_re... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Std lib imports
import glob
import os
# Non-std lib imports
from setuptools import Extension, find_packages, setup
# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
name="fastnumbers",
version="3.2.1",
python_re... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Std lib imports
import glob
import os
# Non-std lib imports
from setuptools import Extension, find_packages, setup
# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
name="fastnumbers",
version="3.2.1"... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Std lib imports
import glob
import os
# Non-std lib imports
from setuptools import Extension, find_packages, setup
# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
name="fastnumbers",
version="3.2.1",
python_re... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Std lib imports
import glob
import os
# Non-std lib imports
from setuptools import Extension, find_packages, setup
# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
name="fastnumbers",
version="3.2.1",
python_re... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Std lib imports
import glob
import os
# Non-std lib imports
from setuptools import Extension, find_packages, setup
# Define how to build the extension module.
# All other data is in the setup.cfg file.
setup(
name="fastnumbers",
version="3.2.1"... |
a7e3c6f63c9f98cd316c0729cf2689cf863dc81f | setup.py | setup.py | from setuptools import setup, find_packages
PACKAGE = 'AdaptiveArtifacts'
VERSION = '0.2'
setup(name=PACKAGE,
version=VERSION,
author='Filipe Correia',
author_email='filipe dot correia at fe dot up dot pt',
long_description="""
This Trac plugin allows to create information following an arbitrary... | from setuptools import setup, find_packages
PACKAGE = 'AdaptiveArtifacts'
VERSION = '0.2'
setup(name=PACKAGE,
version=VERSION,
author='Filipe Correia',
author_email='filipe dot correia at fe dot up dot pt',
long_description="""
This Trac plugin allows to create information following an arbitrary... | Fix that will hopefully include all the contents (files and directories) of htdocs/js/ | Fix that will hopefully include all the contents (files and directories) of htdocs/js/
| Python | bsd-3-clause | filipefigcorreia/TracAdaptiveSoftwareArtifacts,filipefigcorreia/TracAdaptiveSoftwareArtifacts,filipefigcorreia/TracAdaptiveSoftwareArtifacts | from setuptools import setup, find_packages
PACKAGE = 'AdaptiveArtifacts'
VERSION = '0.2'
setup(name=PACKAGE,
version=VERSION,
author='Filipe Correia',
author_email='filipe dot correia at fe dot up dot pt',
long_description="""
This Trac plugin allows to create information following an arbitrary... | from setuptools import setup, find_packages
PACKAGE = 'AdaptiveArtifacts'
VERSION = '0.2'
setup(name=PACKAGE,
version=VERSION,
author='Filipe Correia',
author_email='filipe dot correia at fe dot up dot pt',
long_description="""
This Trac plugin allows to create information following an arbitrary... | <commit_before>from setuptools import setup, find_packages
PACKAGE = 'AdaptiveArtifacts'
VERSION = '0.2'
setup(name=PACKAGE,
version=VERSION,
author='Filipe Correia',
author_email='filipe dot correia at fe dot up dot pt',
long_description="""
This Trac plugin allows to create information followi... | from setuptools import setup, find_packages
PACKAGE = 'AdaptiveArtifacts'
VERSION = '0.2'
setup(name=PACKAGE,
version=VERSION,
author='Filipe Correia',
author_email='filipe dot correia at fe dot up dot pt',
long_description="""
This Trac plugin allows to create information following an arbitrary... | from setuptools import setup, find_packages
PACKAGE = 'AdaptiveArtifacts'
VERSION = '0.2'
setup(name=PACKAGE,
version=VERSION,
author='Filipe Correia',
author_email='filipe dot correia at fe dot up dot pt',
long_description="""
This Trac plugin allows to create information following an arbitrary... | <commit_before>from setuptools import setup, find_packages
PACKAGE = 'AdaptiveArtifacts'
VERSION = '0.2'
setup(name=PACKAGE,
version=VERSION,
author='Filipe Correia',
author_email='filipe dot correia at fe dot up dot pt',
long_description="""
This Trac plugin allows to create information followi... |
86d1bb54b3429b0e1c91e2f387c74e7858e31d72 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='django-mailer-server-backend',
version='0.1.3',
description="A django mail backend for mailer server (https://github.com/spapas/mailer_server)",
long_d... | #!/usr/bin/env python
from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='django-mailer-server-backend',
version='0.1.4',
description="A django mail backend for mailer server (https://github.com/spapas/mailer_server)",
long_d... | Upgrade ver a little more | Upgrade ver a little more
| Python | mit | spapas/django-mailer-server-backend | #!/usr/bin/env python
from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='django-mailer-server-backend',
version='0.1.3',
description="A django mail backend for mailer server (https://github.com/spapas/mailer_server)",
long_d... | #!/usr/bin/env python
from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='django-mailer-server-backend',
version='0.1.4',
description="A django mail backend for mailer server (https://github.com/spapas/mailer_server)",
long_d... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='django-mailer-server-backend',
version='0.1.3',
description="A django mail backend for mailer server (https://github.com/spapas/mailer_serve... | #!/usr/bin/env python
from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='django-mailer-server-backend',
version='0.1.4',
description="A django mail backend for mailer server (https://github.com/spapas/mailer_server)",
long_d... | #!/usr/bin/env python
from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='django-mailer-server-backend',
version='0.1.3',
description="A django mail backend for mailer server (https://github.com/spapas/mailer_server)",
long_d... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='django-mailer-server-backend',
version='0.1.3',
description="A django mail backend for mailer server (https://github.com/spapas/mailer_serve... |
d376d85d246092043f5eb9557e9e5b2fbbaffa09 | setup.py | setup.py | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Add `aenum` to the OSS dependencies. | Add `aenum` to the OSS dependencies.
PiperOrigin-RevId: 270454087
| Python | apache-2.0 | google/neural-tangents | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
dec2ba3a5d01516c0aa745b1d1b3cebfffeb3974 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='mock-services',
version=open(os.path.join(here, 'VERSION')).read().strip(),
description='Mock services.',
long_description=open(os.path.join(here, 'README.rst')).read(),
c... | #!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='mock-services',
version=open(os.path.join(here, 'VERSION')).read().strip(),
description='Mock services.',
long_description=open(os.path.join(here, 'README.rst')).read(),
c... | Fix requests-mock version requirement (>=1.2.0) | Fix requests-mock version requirement (>=1.2.0)
| Python | mit | novafloss/mock-services | #!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='mock-services',
version=open(os.path.join(here, 'VERSION')).read().strip(),
description='Mock services.',
long_description=open(os.path.join(here, 'README.rst')).read(),
c... | #!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='mock-services',
version=open(os.path.join(here, 'VERSION')).read().strip(),
description='Mock services.',
long_description=open(os.path.join(here, 'README.rst')).read(),
c... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='mock-services',
version=open(os.path.join(here, 'VERSION')).read().strip(),
description='Mock services.',
long_description=open(os.path.join(here, 'README.rst')... | #!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='mock-services',
version=open(os.path.join(here, 'VERSION')).read().strip(),
description='Mock services.',
long_description=open(os.path.join(here, 'README.rst')).read(),
c... | #!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='mock-services',
version=open(os.path.join(here, 'VERSION')).read().strip(),
description='Mock services.',
long_description=open(os.path.join(here, 'README.rst')).read(),
c... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
setup(
name='mock-services',
version=open(os.path.join(here, 'VERSION')).read().strip(),
description='Mock services.',
long_description=open(os.path.join(here, 'README.rst')... |
b7e95009ec210ff199e36a3ca065d3efea82f940 | setup.py | setup.py | #! /usr/bin/env python
from setuptools import setup
version = '0.0.0'
setup(name="python-irclib2",
version=version,
py_modules=["irclib", "ircbot"],
author="Joel Rosdahl",
author_email="[email protected]",
url="http://python-irclib.sourceforge.net",
zip_safe=False,
)
| #! /usr/bin/env python
from setuptools import setup
version = '0.4.8.1'
setup(name="python-irclib",
version=version,
py_modules=["irclib", "ircbot"],
author="Joel Rosdahl",
author_email="[email protected]",
url="http://python-irclib.sourceforge.net",
zip_safe=False,
)
| Use a sane version number, based on the original from SF.net | Use a sane version number, based on the original from SF.net
| Python | lgpl-2.1 | danfairs/python-irclib | #! /usr/bin/env python
from setuptools import setup
version = '0.0.0'
setup(name="python-irclib2",
version=version,
py_modules=["irclib", "ircbot"],
author="Joel Rosdahl",
author_email="[email protected]",
url="http://python-irclib.sourceforge.net",
zip_safe=False,
)
Use a sane ... | #! /usr/bin/env python
from setuptools import setup
version = '0.4.8.1'
setup(name="python-irclib",
version=version,
py_modules=["irclib", "ircbot"],
author="Joel Rosdahl",
author_email="[email protected]",
url="http://python-irclib.sourceforge.net",
zip_safe=False,
)
| <commit_before>#! /usr/bin/env python
from setuptools import setup
version = '0.0.0'
setup(name="python-irclib2",
version=version,
py_modules=["irclib", "ircbot"],
author="Joel Rosdahl",
author_email="[email protected]",
url="http://python-irclib.sourceforge.net",
zip_safe=False,
... | #! /usr/bin/env python
from setuptools import setup
version = '0.4.8.1'
setup(name="python-irclib",
version=version,
py_modules=["irclib", "ircbot"],
author="Joel Rosdahl",
author_email="[email protected]",
url="http://python-irclib.sourceforge.net",
zip_safe=False,
)
| #! /usr/bin/env python
from setuptools import setup
version = '0.0.0'
setup(name="python-irclib2",
version=version,
py_modules=["irclib", "ircbot"],
author="Joel Rosdahl",
author_email="[email protected]",
url="http://python-irclib.sourceforge.net",
zip_safe=False,
)
Use a sane ... | <commit_before>#! /usr/bin/env python
from setuptools import setup
version = '0.0.0'
setup(name="python-irclib2",
version=version,
py_modules=["irclib", "ircbot"],
author="Joel Rosdahl",
author_email="[email protected]",
url="http://python-irclib.sourceforge.net",
zip_safe=False,
... |
4dfe8effc032bccf85badacedb63178ba3806449 | setup.py | setup.py | """Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.15.1',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager f... | """Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.16.0',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager f... | Bump version for stip_binary flag | Bump version for stip_binary flag
| Python | mit | kevinconway/rpmvenv | """Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.15.1',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager f... | """Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.16.0',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager f... | <commit_before>"""Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.15.1',
url='https://github.com/kevinconway/rpmvenv',
description=... | """Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.16.0',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager f... | """Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.15.1',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager f... | <commit_before>"""Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.15.1',
url='https://github.com/kevinconway/rpmvenv',
description=... |
7fa6690bd0d473f61b373cbb4bea3f8c5c3e60ba | setup.py | setup.py | import os
# BEFORE importing distutils, remove MANIFEST. distutils doesn't
# properly update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
MAJOR = 0
MINOR = 1
MICRO = 0
VERSION = ... | import os
# BEFORE importing distutils, remove MANIFEST. distutils doesn't
# properly update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
MAJOR = 0
MINOR = 1
MICRO = 1
VERSION = ... | Update version to match version reported on website | BLD: Update version to match version reported on website
| Python | mit | jjhelmus/wradlib,jjhelmus/wradlib | import os
# BEFORE importing distutils, remove MANIFEST. distutils doesn't
# properly update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
MAJOR = 0
MINOR = 1
MICRO = 0
VERSION = ... | import os
# BEFORE importing distutils, remove MANIFEST. distutils doesn't
# properly update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
MAJOR = 0
MINOR = 1
MICRO = 1
VERSION = ... | <commit_before>import os
# BEFORE importing distutils, remove MANIFEST. distutils doesn't
# properly update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
MAJOR = 0
MINOR = 1
MICRO = 0
VERSION... | import os
# BEFORE importing distutils, remove MANIFEST. distutils doesn't
# properly update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
MAJOR = 0
MINOR = 1
MICRO = 1
VERSION = ... | import os
# BEFORE importing distutils, remove MANIFEST. distutils doesn't
# properly update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
MAJOR = 0
MINOR = 1
MICRO = 0
VERSION = ... | <commit_before>import os
# BEFORE importing distutils, remove MANIFEST. distutils doesn't
# properly update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
MAJOR = 0
MINOR = 1
MICRO = 0
VERSION... |
4026eb55cf57612cff6c62669d501c2d48af74b7 | setup.py | setup.py | #from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
from os.path import dirname, join
here = dirname(__file__)
setup(
name='ledgerblue',
version='0.1.4',
author='Ledger',
author_email='[email protected]',
description='Python library to communica... | #from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
from os.path import dirname, join
import os
os.environ['SECP_BUNDLED_EXPERIMENTAL'] = "1"
here = dirname(__file__)
setup(
name='ledgerblue',
version='0.1.5',
author='Ledger',
author_email='hello... | Tag 0.1.5, tweaks for PyPI compatibility | Tag 0.1.5, tweaks for PyPI compatibility
| Python | apache-2.0 | LedgerHQ/blue-loader-python | #from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
from os.path import dirname, join
here = dirname(__file__)
setup(
name='ledgerblue',
version='0.1.4',
author='Ledger',
author_email='[email protected]',
description='Python library to communica... | #from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
from os.path import dirname, join
import os
os.environ['SECP_BUNDLED_EXPERIMENTAL'] = "1"
here = dirname(__file__)
setup(
name='ledgerblue',
version='0.1.5',
author='Ledger',
author_email='hello... | <commit_before>#from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
from os.path import dirname, join
here = dirname(__file__)
setup(
name='ledgerblue',
version='0.1.4',
author='Ledger',
author_email='[email protected]',
description='Python libra... | #from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
from os.path import dirname, join
import os
os.environ['SECP_BUNDLED_EXPERIMENTAL'] = "1"
here = dirname(__file__)
setup(
name='ledgerblue',
version='0.1.5',
author='Ledger',
author_email='hello... | #from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
from os.path import dirname, join
here = dirname(__file__)
setup(
name='ledgerblue',
version='0.1.4',
author='Ledger',
author_email='[email protected]',
description='Python library to communica... | <commit_before>#from distribute_setup import use_setuptools
#use_setuptools()
from setuptools import setup, find_packages
from os.path import dirname, join
here = dirname(__file__)
setup(
name='ledgerblue',
version='0.1.4',
author='Ledger',
author_email='[email protected]',
description='Python libra... |
f1a2a8ff1f0655489eac875f4e4b2aece10843da | 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
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme = o... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme = o... | Add backends as explicit package | Add backends as explicit package
| Python | bsd-2-clause | bennylope/django-organizations,DESHRAJ/django-organizations,st8st8/django-organizations,DESHRAJ/django-organizations,bennylope/django-organizations,st8st8/django-organizations,GauthamGoli/django-organizations,GauthamGoli/django-organizations | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme = o... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme = o... | <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
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme = o... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme = o... | <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
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exi... |
2aeb0b13c5f5a367bf4c81dd3557cc07d1c6182e | setup.py | setup.py | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.0",
author = "Peter ... | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.0",
author = "Peter ... | Use irclib 0.4.6, which is available via pip | Use irclib 0.4.6, which is available via pip
| Python | mit | meska/cobe,wodim/cobe-ng,DarkMio/cobe,DarkMio/cobe,tiagochiavericosta/cobe,tiagochiavericosta/cobe,pteichman/cobe,wodim/cobe-ng,pteichman/cobe,LeMagnesium/cobe,LeMagnesium/cobe,meska/cobe | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.0",
author = "Peter ... | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.0",
author = "Peter ... | <commit_before>#!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.0",
a... | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.0",
author = "Peter ... | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.0",
author = "Peter ... | <commit_before>#!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.0",
a... |
aab258a8f4898db3829754c1de6a81c65ea37d07 | setup.py | setup.py | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper'],
install_re... | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper', 'lc_wrapper.ipy... | Add sub-package for IPython Kernel | Add sub-package for IPython Kernel
| Python | bsd-3-clause | NII-cloud-operation/Jupyter-LC_wrapper,NII-cloud-operation/Jupyter-LC_wrapper | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper'],
install_re... | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper', 'lc_wrapper.ipy... | <commit_before>import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper'],... | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper', 'lc_wrapper.ipy... | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper'],
install_re... | <commit_before>import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper'],... |
e3a68ffe10a5f1948b65e6b4bb5bfa03308135a9 | setup.py | setup.py | from os.path import abspath, dirname, join
from setuptools import setup
FOLDER = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(FOLDER, x)).read().strip() for x in [
'README.rst'])
setup(
name='crosscompute-types',
version='0.7.0',
description='Default data type plugins for CrossComput... | from os.path import abspath, dirname, join
from setuptools import setup
FOLDER = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(FOLDER, x)).read().strip() for x in [
'README.rst'])
setup(
name='crosscompute-types',
version='0.7.0',
description='Default data type plugins for CrossComput... | Remove version restriction for select | Remove version restriction for select
| Python | mit | crosscompute/crosscompute-types | from os.path import abspath, dirname, join
from setuptools import setup
FOLDER = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(FOLDER, x)).read().strip() for x in [
'README.rst'])
setup(
name='crosscompute-types',
version='0.7.0',
description='Default data type plugins for CrossComput... | from os.path import abspath, dirname, join
from setuptools import setup
FOLDER = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(FOLDER, x)).read().strip() for x in [
'README.rst'])
setup(
name='crosscompute-types',
version='0.7.0',
description='Default data type plugins for CrossComput... | <commit_before>from os.path import abspath, dirname, join
from setuptools import setup
FOLDER = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(FOLDER, x)).read().strip() for x in [
'README.rst'])
setup(
name='crosscompute-types',
version='0.7.0',
description='Default data type plugins ... | from os.path import abspath, dirname, join
from setuptools import setup
FOLDER = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(FOLDER, x)).read().strip() for x in [
'README.rst'])
setup(
name='crosscompute-types',
version='0.7.0',
description='Default data type plugins for CrossComput... | from os.path import abspath, dirname, join
from setuptools import setup
FOLDER = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(FOLDER, x)).read().strip() for x in [
'README.rst'])
setup(
name='crosscompute-types',
version='0.7.0',
description='Default data type plugins for CrossComput... | <commit_before>from os.path import abspath, dirname, join
from setuptools import setup
FOLDER = dirname(abspath(__file__))
DESCRIPTION = '\n\n'.join(open(join(FOLDER, x)).read().strip() for x in [
'README.rst'])
setup(
name='crosscompute-types',
version='0.7.0',
description='Default data type plugins ... |
bf24b8dab13c3779514a00d61c3ea440704b1cbf | setup.py | setup.py | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | Add optional dependency on arpy | Add optional dependency on arpy
| Python | bsd-2-clause | angr/cle | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | <commit_before>try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().stri... | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | <commit_before>try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().stri... |
1343cfa4654810edcda775a889acc6395ebc5af5 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name="letsencrypt",
version="0.1",
description="Let's Encrypt",
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letsencrypt.scripts'... | #!/usr/bin/env python
from setuptools import setup
setup(
name="letsencrypt",
version="0.1",
description="Let's Encrypt",
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letsencrypt.scripts'... | Add missing line of code (merge/rebase effect). | Add missing line of code (merge/rebase effect).
| Python | apache-2.0 | VladimirTyrin/letsencrypt,wteiken/letsencrypt,rlustin/letsencrypt,rlustin/letsencrypt,ahojjati/letsencrypt,beermix/letsencrypt,bestwpw/letsencrypt,sapics/letsencrypt,sjerdo/letsencrypt,diracdeltas/lets-encrypt-preview,digideskio/lets-encrypt-preview,thanatos/lets-encrypt-preview,vcavallo/letsencrypt,solidgoldbomb/letse... | #!/usr/bin/env python
from setuptools import setup
setup(
name="letsencrypt",
version="0.1",
description="Let's Encrypt",
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letsencrypt.scripts'... | #!/usr/bin/env python
from setuptools import setup
setup(
name="letsencrypt",
version="0.1",
description="Let's Encrypt",
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letsencrypt.scripts'... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name="letsencrypt",
version="0.1",
description="Let's Encrypt",
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letse... | #!/usr/bin/env python
from setuptools import setup
setup(
name="letsencrypt",
version="0.1",
description="Let's Encrypt",
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letsencrypt.scripts'... | #!/usr/bin/env python
from setuptools import setup
setup(
name="letsencrypt",
version="0.1",
description="Let's Encrypt",
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letsencrypt.scripts'... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name="letsencrypt",
version="0.1",
description="Let's Encrypt",
author="Let's Encrypt Project",
license="",
url="https://letsencrypt.org",
packages=[
'letsencrypt',
'letsencrypt.client',
'letse... |
3feebdff4cb2ae82bd12b0932eda0e37391558ec | setup.py | setup.py | # vim:fileencoding=utf-8:noet
from setuptools import setup
version = "0.7.0"
setup(
name="powerline-taskwarrior",
description="Powerline segments for showing information from the Taskwarrior task manager",
version=version,
keywords="powerline taskwarrior context prompt",
license="MIT",
author... | # vim:fileencoding=utf-8:noet
from setuptools import setup
version = "0.7.1"
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="p... | Include README in the module description | Include README in the module description
| Python | mit | Zebradil/powerline-taskwarrior,Zebradil/powerline-taskwarrior | # vim:fileencoding=utf-8:noet
from setuptools import setup
version = "0.7.0"
setup(
name="powerline-taskwarrior",
description="Powerline segments for showing information from the Taskwarrior task manager",
version=version,
keywords="powerline taskwarrior context prompt",
license="MIT",
author... | # vim:fileencoding=utf-8:noet
from setuptools import setup
version = "0.7.1"
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="p... | <commit_before># vim:fileencoding=utf-8:noet
from setuptools import setup
version = "0.7.0"
setup(
name="powerline-taskwarrior",
description="Powerline segments for showing information from the Taskwarrior task manager",
version=version,
keywords="powerline taskwarrior context prompt",
license="M... | # vim:fileencoding=utf-8:noet
from setuptools import setup
version = "0.7.1"
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="p... | # vim:fileencoding=utf-8:noet
from setuptools import setup
version = "0.7.0"
setup(
name="powerline-taskwarrior",
description="Powerline segments for showing information from the Taskwarrior task manager",
version=version,
keywords="powerline taskwarrior context prompt",
license="MIT",
author... | <commit_before># vim:fileencoding=utf-8:noet
from setuptools import setup
version = "0.7.0"
setup(
name="powerline-taskwarrior",
description="Powerline segments for showing information from the Taskwarrior task manager",
version=version,
keywords="powerline taskwarrior context prompt",
license="M... |
132e877a851bfdc8975e2fdc7f2a594fd4fc3d1b | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="taxii-client",
version="0.0.2",
url="https://github.com/Intelworks/taxii-client/",
author="Intelworks",
author_email="[email protected]",
packages=find_packages(),
scripts=[
'bin/taxii-collections',
'bin/taxii-di... | from setuptools import setup, find_packages
setup(
name="taxii-client",
version="0.0.2",
url="https://github.com/Intelworks/taxii-client/",
author="Intelworks",
author_email="[email protected]",
packages=find_packages(),
scripts=[
'bin/taxii-collections',
'bin/taxii... | Change author_email to another address | Change author_email to another address
| Python | bsd-3-clause | Intelworks/cabby | from setuptools import setup, find_packages
setup(
name="taxii-client",
version="0.0.2",
url="https://github.com/Intelworks/taxii-client/",
author="Intelworks",
author_email="[email protected]",
packages=find_packages(),
scripts=[
'bin/taxii-collections',
'bin/taxii-di... | from setuptools import setup, find_packages
setup(
name="taxii-client",
version="0.0.2",
url="https://github.com/Intelworks/taxii-client/",
author="Intelworks",
author_email="[email protected]",
packages=find_packages(),
scripts=[
'bin/taxii-collections',
'bin/taxii... | <commit_before>from setuptools import setup, find_packages
setup(
name="taxii-client",
version="0.0.2",
url="https://github.com/Intelworks/taxii-client/",
author="Intelworks",
author_email="[email protected]",
packages=find_packages(),
scripts=[
'bin/taxii-collections',
... | from setuptools import setup, find_packages
setup(
name="taxii-client",
version="0.0.2",
url="https://github.com/Intelworks/taxii-client/",
author="Intelworks",
author_email="[email protected]",
packages=find_packages(),
scripts=[
'bin/taxii-collections',
'bin/taxii... | from setuptools import setup, find_packages
setup(
name="taxii-client",
version="0.0.2",
url="https://github.com/Intelworks/taxii-client/",
author="Intelworks",
author_email="[email protected]",
packages=find_packages(),
scripts=[
'bin/taxii-collections',
'bin/taxii-di... | <commit_before>from setuptools import setup, find_packages
setup(
name="taxii-client",
version="0.0.2",
url="https://github.com/Intelworks/taxii-client/",
author="Intelworks",
author_email="[email protected]",
packages=find_packages(),
scripts=[
'bin/taxii-collections',
... |
db7e2f16f1d394e430e60d2eaa40c5e0d8b22a46 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-mailer",
version=__import__("mailer").__version__,
description="A reusable Django app for queuing the sending of email",
long_description=open("docs/usage.rst").read() + open("CHANGES.rst").read(),
author="Pinax ... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-mailer",
version=__import__("mailer").__version__,
description="A reusable Django app for queuing the sending of email",
long_description=open("docs/usage.rst").read() + open("CHANGES.rst").read(),
author="Pinax ... | Revert "Removed Django requirement due versioning" | Revert "Removed Django requirement due versioning"
This reverts commit 78bae13778ec70cd3654e74a684839914f44364e.
| Python | mit | temnoregg/django-mailer | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-mailer",
version=__import__("mailer").__version__,
description="A reusable Django app for queuing the sending of email",
long_description=open("docs/usage.rst").read() + open("CHANGES.rst").read(),
author="Pinax ... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-mailer",
version=__import__("mailer").__version__,
description="A reusable Django app for queuing the sending of email",
long_description=open("docs/usage.rst").read() + open("CHANGES.rst").read(),
author="Pinax ... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-mailer",
version=__import__("mailer").__version__,
description="A reusable Django app for queuing the sending of email",
long_description=open("docs/usage.rst").read() + open("CHANGES.rst").read(),
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-mailer",
version=__import__("mailer").__version__,
description="A reusable Django app for queuing the sending of email",
long_description=open("docs/usage.rst").read() + open("CHANGES.rst").read(),
author="Pinax ... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-mailer",
version=__import__("mailer").__version__,
description="A reusable Django app for queuing the sending of email",
long_description=open("docs/usage.rst").read() + open("CHANGES.rst").read(),
author="Pinax ... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-mailer",
version=__import__("mailer").__version__,
description="A reusable Django app for queuing the sending of email",
long_description=open("docs/usage.rst").read() + open("CHANGES.rst").read(),
... |
88d15544556cdfc9fe1f2e000f67846a8cd1bb25 | stginga/__init__.py | stginga/__init__.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Ginga products specific to STScI data analysis.
"""
# Set up the version
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not inst... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Ginga products specific to STScI data analysis.
"""
# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init impor... | Remove duplicate version and restore test runner | BUG: Remove duplicate version and restore test runner | Python | bsd-3-clause | pllim/stginga,spacetelescope/stginga | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Ginga products specific to STScI data analysis.
"""
# Set up the version
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not inst... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Ginga products specific to STScI data analysis.
"""
# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init impor... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Ginga products specific to STScI data analysis.
"""
# Set up the version
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# pack... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Ginga products specific to STScI data analysis.
"""
# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init impor... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Ginga products specific to STScI data analysis.
"""
# Set up the version
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not inst... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Ginga products specific to STScI data analysis.
"""
# Set up the version
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# pack... |
721548eef3abaecb187b2246b58f90d74e0026ab | currencies/models.py | currencies/models.py | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=1)
factor = models.DecimalField(_('fact... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=1)
factor = models.DecimalField(_('fact... | Improve the uniqueness of Currency.is_default | Improve the uniqueness of Currency.is_default
| Python | bsd-3-clause | pathakamit88/django-currencies,barseghyanartur/django-currencies,racitup/django-currencies,mysociety/django-currencies,ydaniv/django-currencies,mysociety/django-currencies,jmp0xf/django-currencies,marcosalcazar/django-currencies,bashu/django-simple-currencies,ydaniv/django-currencies,racitup/django-currencies,pathakami... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=1)
factor = models.DecimalField(_('fact... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=1)
factor = models.DecimalField(_('fact... | <commit_before>from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=1)
factor = models.Decim... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=1)
factor = models.DecimalField(_('fact... | from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=1)
factor = models.DecimalField(_('fact... | <commit_before>from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.Model):
code = models.CharField(_('code'), max_length=3)
name = models.CharField(_('name'), max_length=35)
symbol = models.CharField(_('symbol'), max_length=1)
factor = models.Decim... |
2a8a13986b29bdc405fc922143e3407c81f196c0 | timpani/settings.py | timpani/settings.py | from . import database
def getAllSettings():
databaseConnection = database.ConnectionManager.getConnection("main")
query = databaseConnection.session.query(database.tables.Setting)
settings = query.all()
return {setting.name: setting.value for setting in settings}
def getSettingValue(name):
databaseConnection = ... | from . import database
def getAllSettings():
databaseConnection = database.ConnectionManager.getConnection("main")
query = databaseConnection.session.query(database.tables.Setting)
settings = query.all()
return {setting.name: setting.value for setting in settings}
def getSettingValue(name):
databaseConnection = ... | Add setting validation function for title | Add setting validation function for title
| Python | mit | ollien/Timpani,ollien/Timpani,ollien/Timpani | from . import database
def getAllSettings():
databaseConnection = database.ConnectionManager.getConnection("main")
query = databaseConnection.session.query(database.tables.Setting)
settings = query.all()
return {setting.name: setting.value for setting in settings}
def getSettingValue(name):
databaseConnection = ... | from . import database
def getAllSettings():
databaseConnection = database.ConnectionManager.getConnection("main")
query = databaseConnection.session.query(database.tables.Setting)
settings = query.all()
return {setting.name: setting.value for setting in settings}
def getSettingValue(name):
databaseConnection = ... | <commit_before>from . import database
def getAllSettings():
databaseConnection = database.ConnectionManager.getConnection("main")
query = databaseConnection.session.query(database.tables.Setting)
settings = query.all()
return {setting.name: setting.value for setting in settings}
def getSettingValue(name):
databa... | from . import database
def getAllSettings():
databaseConnection = database.ConnectionManager.getConnection("main")
query = databaseConnection.session.query(database.tables.Setting)
settings = query.all()
return {setting.name: setting.value for setting in settings}
def getSettingValue(name):
databaseConnection = ... | from . import database
def getAllSettings():
databaseConnection = database.ConnectionManager.getConnection("main")
query = databaseConnection.session.query(database.tables.Setting)
settings = query.all()
return {setting.name: setting.value for setting in settings}
def getSettingValue(name):
databaseConnection = ... | <commit_before>from . import database
def getAllSettings():
databaseConnection = database.ConnectionManager.getConnection("main")
query = databaseConnection.session.query(database.tables.Setting)
settings = query.all()
return {setting.name: setting.value for setting in settings}
def getSettingValue(name):
databa... |
8c587107b73685a99df3358f8d219ed5c76e0a48 | csunplugged/utils/check_glossary_links.py | csunplugged/utils/check_glossary_links.py | """Module for checking glossary links found within Markdown conversions."""
from utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm
from topics.models import GlossaryTerm
def check_converter_glossary_links(glossary_links, md_file_path):
"""Process glossary links found by Markdown converter.
... | """Module for checking glossary links found within Markdown conversions."""
from utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm
from topics.models import GlossaryTerm
def check_converter_glossary_links(glossary_links, md_file_path):
"""Process glossary links found by Markdown converter.
... | Use clearer Django method and exception for glossary term checking | Use clearer Django method and exception for glossary term checking
| Python | mit | uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged | """Module for checking glossary links found within Markdown conversions."""
from utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm
from topics.models import GlossaryTerm
def check_converter_glossary_links(glossary_links, md_file_path):
"""Process glossary links found by Markdown converter.
... | """Module for checking glossary links found within Markdown conversions."""
from utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm
from topics.models import GlossaryTerm
def check_converter_glossary_links(glossary_links, md_file_path):
"""Process glossary links found by Markdown converter.
... | <commit_before>"""Module for checking glossary links found within Markdown conversions."""
from utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm
from topics.models import GlossaryTerm
def check_converter_glossary_links(glossary_links, md_file_path):
"""Process glossary links found by Markdow... | """Module for checking glossary links found within Markdown conversions."""
from utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm
from topics.models import GlossaryTerm
def check_converter_glossary_links(glossary_links, md_file_path):
"""Process glossary links found by Markdown converter.
... | """Module for checking glossary links found within Markdown conversions."""
from utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm
from topics.models import GlossaryTerm
def check_converter_glossary_links(glossary_links, md_file_path):
"""Process glossary links found by Markdown converter.
... | <commit_before>"""Module for checking glossary links found within Markdown conversions."""
from utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm
from topics.models import GlossaryTerm
def check_converter_glossary_links(glossary_links, md_file_path):
"""Process glossary links found by Markdow... |
720da7073b059e68f2c1e9dff9e2d805c27e1296 | django_slack/templatetags/django_slack.py | django_slack/templatetags/django_slack.py | from django import template
from django.utils import six
from django.utils.encoding import force_text
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
try:
from django.utils.functional import keep_lazy as allow_lazy
except ImportError:
from django.... | from django import template
from django.utils import six
from django.utils.encoding import force_text
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
try:
from django.utils.functional import keep_lazy as allow_lazy
except ImportError:
from django.... | Add missing 2 blank lines after end of function or class. (PEP8 E305) | Add missing 2 blank lines after end of function or class. (PEP8 E305)
| Python | bsd-3-clause | lamby/django-slack | from django import template
from django.utils import six
from django.utils.encoding import force_text
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
try:
from django.utils.functional import keep_lazy as allow_lazy
except ImportError:
from django.... | from django import template
from django.utils import six
from django.utils.encoding import force_text
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
try:
from django.utils.functional import keep_lazy as allow_lazy
except ImportError:
from django.... | <commit_before>from django import template
from django.utils import six
from django.utils.encoding import force_text
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
try:
from django.utils.functional import keep_lazy as allow_lazy
except ImportError:
... | from django import template
from django.utils import six
from django.utils.encoding import force_text
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
try:
from django.utils.functional import keep_lazy as allow_lazy
except ImportError:
from django.... | from django import template
from django.utils import six
from django.utils.encoding import force_text
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
try:
from django.utils.functional import keep_lazy as allow_lazy
except ImportError:
from django.... | <commit_before>from django import template
from django.utils import six
from django.utils.encoding import force_text
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
try:
from django.utils.functional import keep_lazy as allow_lazy
except ImportError:
... |
c3617c5662bb360f03db62df1e8f580502796562 | spurl/tests.py | spurl/tests.py | # bootstrap django
from django.conf import settings
settings.configure()#INSTALLED_APPS=('spurl',))
from django.template import Template, Context, loader
loader.add_to_builtins('spurl.templatetags.spurl')
def render(template_string, dictionary=None):
return Template(template_string).render(Context(dictionary))
... | # bootstrap django
from django.conf import settings
settings.configure()#INSTALLED_APPS=('spurl',))
from django.template import Template, Context, loader
loader.add_to_builtins('spurl.templatetags.spurl')
def render(template_string, dictionary=None):
return Template(template_string).render(Context(dictionary))
... | Add test for url in template context | Add test for url in template context
| Python | unlicense | albertkoch/django-spurl,pombredanne/django-spurl,j4mie/django-spurl | # bootstrap django
from django.conf import settings
settings.configure()#INSTALLED_APPS=('spurl',))
from django.template import Template, Context, loader
loader.add_to_builtins('spurl.templatetags.spurl')
def render(template_string, dictionary=None):
return Template(template_string).render(Context(dictionary))
... | # bootstrap django
from django.conf import settings
settings.configure()#INSTALLED_APPS=('spurl',))
from django.template import Template, Context, loader
loader.add_to_builtins('spurl.templatetags.spurl')
def render(template_string, dictionary=None):
return Template(template_string).render(Context(dictionary))
... | <commit_before># bootstrap django
from django.conf import settings
settings.configure()#INSTALLED_APPS=('spurl',))
from django.template import Template, Context, loader
loader.add_to_builtins('spurl.templatetags.spurl')
def render(template_string, dictionary=None):
return Template(template_string).render(Context... | # bootstrap django
from django.conf import settings
settings.configure()#INSTALLED_APPS=('spurl',))
from django.template import Template, Context, loader
loader.add_to_builtins('spurl.templatetags.spurl')
def render(template_string, dictionary=None):
return Template(template_string).render(Context(dictionary))
... | # bootstrap django
from django.conf import settings
settings.configure()#INSTALLED_APPS=('spurl',))
from django.template import Template, Context, loader
loader.add_to_builtins('spurl.templatetags.spurl')
def render(template_string, dictionary=None):
return Template(template_string).render(Context(dictionary))
... | <commit_before># bootstrap django
from django.conf import settings
settings.configure()#INSTALLED_APPS=('spurl',))
from django.template import Template, Context, loader
loader.add_to_builtins('spurl.templatetags.spurl')
def render(template_string, dictionary=None):
return Template(template_string).render(Context... |
fe551b6f4976a1642aa006d5afbcbee2533f08c8 | menpofit/dlib/__init__.py | menpofit/dlib/__init__.py | try:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into this
# module.
pass
| try:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into this
# module.
pass
| Remove non-ASCII character from comment | Remove non-ASCII character from comment
| Python | bsd-3-clause | grigorisg9gr/menpofit,yuxiang-zhou/menpofit,grigorisg9gr/menpofit,yuxiang-zhou/menpofit | try:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into this
# module.
pass
Remove non-ASCII character from comment | try:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into this
# module.
pass
| <commit_before>try:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into this
# module.
pass
<commit_msg>Remove non-ASCII character from comment<commit_after> | try:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into this
# module.
pass
| try:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into this
# module.
pass
Remove non-ASCII character from commenttry:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into... | <commit_before>try:
from .fitter import DlibERT
except ImportError:
# If dlib is not installed then we shouldn't import anything into this
# module.
pass
<commit_msg>Remove non-ASCII character from comment<commit_after>try:
from .fitter import DlibERT
except ImportError:
# If dlib is not install... |
f66c2907652ea5e52eb2c1355d801f5cf6c62a16 | remedy/config.py | remedy/config.py | """
config.py
Looks for the RAD_PRODUCTION variable and creates path to database
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
MIGRATIONS_DIR = './remedy/rad/migrat... | """
config.py
Looks for the RAD_PRODUCTION variable and creates path to database
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
MIGRATIONS_DIR = './remedy/rad/migrat... | DEBUG true on deployment to see what's happening | DEBUG true on deployment to see what's happening
| Python | mpl-2.0 | radioprotector/radremedy,radremedy/radremedy,radioprotector/radremedy,radremedy/radremedy,AllieDeford/radremedy,AllieDeford/radremedy,AllieDeford/radremedy,radremedy/radremedy,radioprotector/radremedy,radioprotector/radremedy,radremedy/radremedy | """
config.py
Looks for the RAD_PRODUCTION variable and creates path to database
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
MIGRATIONS_DIR = './remedy/rad/migrat... | """
config.py
Looks for the RAD_PRODUCTION variable and creates path to database
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
MIGRATIONS_DIR = './remedy/rad/migrat... | <commit_before>"""
config.py
Looks for the RAD_PRODUCTION variable and creates path to database
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
MIGRATIONS_DIR = './re... | """
config.py
Looks for the RAD_PRODUCTION variable and creates path to database
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
MIGRATIONS_DIR = './remedy/rad/migrat... | """
config.py
Looks for the RAD_PRODUCTION variable and creates path to database
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
MIGRATIONS_DIR = './remedy/rad/migrat... | <commit_before>"""
config.py
Looks for the RAD_PRODUCTION variable and creates path to database
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
MIGRATIONS_DIR = './re... |
9ea8b1f1f4ccc068b460e76127f288742d25088e | django/contrib/comments/feeds.py | django/contrib/comments/feeds.py | from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.sites.models import Site
from django.contrib import comments
class LatestCommentFeed(Feed):
"""Feed of latest comments on the current site."""
def title(self):
if not hasattr(self, '_site'):
... | from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.sites.models import Site
from django.contrib import comments
class LatestCommentFeed(Feed):
"""Feed of latest comments on the current site."""
def title(self):
if not hasattr(self, '_site'):
... | Use correct m2m join table name in LatestCommentsFeed | Use correct m2m join table name in LatestCommentsFeed
git-svn-id: 4f9f921b081c523744c7bf24d959a0db39629563@9089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| Python | bsd-3-clause | sam-tsai/django-old,skevy/django,dcramer/django-compositepks,alex/django-old,Instagram/django,dcramer/django-compositepks,django-nonrel/django-nonrel,alex/django-old,Smarsh/django,Smarsh/django,dcramer/django-compositepks,bfirsh/django-old,bfirsh/django-old,disqus/django-old,t11e/django,mitsuhiko/django,Instagram/djang... | from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.sites.models import Site
from django.contrib import comments
class LatestCommentFeed(Feed):
"""Feed of latest comments on the current site."""
def title(self):
if not hasattr(self, '_site'):
... | from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.sites.models import Site
from django.contrib import comments
class LatestCommentFeed(Feed):
"""Feed of latest comments on the current site."""
def title(self):
if not hasattr(self, '_site'):
... | <commit_before>from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.sites.models import Site
from django.contrib import comments
class LatestCommentFeed(Feed):
"""Feed of latest comments on the current site."""
def title(self):
if not hasattr(self, '_s... | from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.sites.models import Site
from django.contrib import comments
class LatestCommentFeed(Feed):
"""Feed of latest comments on the current site."""
def title(self):
if not hasattr(self, '_site'):
... | from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.sites.models import Site
from django.contrib import comments
class LatestCommentFeed(Feed):
"""Feed of latest comments on the current site."""
def title(self):
if not hasattr(self, '_site'):
... | <commit_before>from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.sites.models import Site
from django.contrib import comments
class LatestCommentFeed(Feed):
"""Feed of latest comments on the current site."""
def title(self):
if not hasattr(self, '_s... |
839d884d3dca3e799a235b1d2d69acf998f520f9 | barsystem_base/management/commands/import_people.py | barsystem_base/management/commands/import_people.py | from django.core.management.base import BaseCommand, CommandError
from barsystem_base.models import Person
class Command(BaseCommand):
args = '<filename>'
help = 'Import list of people'
csv_columns = 'id,first_name,last_name,nick_name,amount,type,token'.split(',')
def handle(self, *args, **kwargs):
... | from django.core.management.base import BaseCommand, CommandError
from barsystem_base.models import Person, Token
class Command(BaseCommand):
args = '<filename>'
help = 'Import list of people'
csv_columns = 'id,first_name,last_name,nick_name,amount,type,token'.split(',')
def handle(self, *args, **kwa... | Add ibutton when importing old people | Add ibutton when importing old people
| Python | mit | TkkrLab/barsystem,TkkrLab/barsystem,TkkrLab/barsystem | from django.core.management.base import BaseCommand, CommandError
from barsystem_base.models import Person
class Command(BaseCommand):
args = '<filename>'
help = 'Import list of people'
csv_columns = 'id,first_name,last_name,nick_name,amount,type,token'.split(',')
def handle(self, *args, **kwargs):
... | from django.core.management.base import BaseCommand, CommandError
from barsystem_base.models import Person, Token
class Command(BaseCommand):
args = '<filename>'
help = 'Import list of people'
csv_columns = 'id,first_name,last_name,nick_name,amount,type,token'.split(',')
def handle(self, *args, **kwa... | <commit_before>from django.core.management.base import BaseCommand, CommandError
from barsystem_base.models import Person
class Command(BaseCommand):
args = '<filename>'
help = 'Import list of people'
csv_columns = 'id,first_name,last_name,nick_name,amount,type,token'.split(',')
def handle(self, *arg... | from django.core.management.base import BaseCommand, CommandError
from barsystem_base.models import Person, Token
class Command(BaseCommand):
args = '<filename>'
help = 'Import list of people'
csv_columns = 'id,first_name,last_name,nick_name,amount,type,token'.split(',')
def handle(self, *args, **kwa... | from django.core.management.base import BaseCommand, CommandError
from barsystem_base.models import Person
class Command(BaseCommand):
args = '<filename>'
help = 'Import list of people'
csv_columns = 'id,first_name,last_name,nick_name,amount,type,token'.split(',')
def handle(self, *args, **kwargs):
... | <commit_before>from django.core.management.base import BaseCommand, CommandError
from barsystem_base.models import Person
class Command(BaseCommand):
args = '<filename>'
help = 'Import list of people'
csv_columns = 'id,first_name,last_name,nick_name,amount,type,token'.split(',')
def handle(self, *arg... |
17cbd84b9b5a4bd08123ff5f429be191b1bdf063 | polynomial.py | polynomial.py |
class Polynomial(object):
def __init__(self):
pass |
class Polynomial(object):
def __init__(self, coeffs):
"""
1 parameter:
coeff (list): coeff[n] = coefficient of nth degree term
"""
self.coeffs = coeffs
@property
def coeffs(self):
return self._coeffs
@property
def degree(self):
return len(... | Add __init__, coeffs and degree attributes | Add __init__, coeffs and degree attributes
| Python | mit | jackromo/mathLibPy |
class Polynomial(object):
def __init__(self):
passAdd __init__, coeffs and degree attributes |
class Polynomial(object):
def __init__(self, coeffs):
"""
1 parameter:
coeff (list): coeff[n] = coefficient of nth degree term
"""
self.coeffs = coeffs
@property
def coeffs(self):
return self._coeffs
@property
def degree(self):
return len(... | <commit_before>
class Polynomial(object):
def __init__(self):
pass<commit_msg>Add __init__, coeffs and degree attributes<commit_after> |
class Polynomial(object):
def __init__(self, coeffs):
"""
1 parameter:
coeff (list): coeff[n] = coefficient of nth degree term
"""
self.coeffs = coeffs
@property
def coeffs(self):
return self._coeffs
@property
def degree(self):
return len(... |
class Polynomial(object):
def __init__(self):
passAdd __init__, coeffs and degree attributes
class Polynomial(object):
def __init__(self, coeffs):
"""
1 parameter:
coeff (list): coeff[n] = coefficient of nth degree term
"""
self.coeffs = coeffs
@property... | <commit_before>
class Polynomial(object):
def __init__(self):
pass<commit_msg>Add __init__, coeffs and degree attributes<commit_after>
class Polynomial(object):
def __init__(self, coeffs):
"""
1 parameter:
coeff (list): coeff[n] = coefficient of nth degree term
"""
... |
f41f9f9e562c6850d70ee17976c9dbb4aa3cca5f | pseudodata.py | pseudodata.py | class PseudoData(dict):
def __init__(self, name_func_dict, sweep):
super(PseudoData, self).__init__()
self.name_func_dict = name_func_dict
self.sweep = sweep
def __getitem__(self, key):
if key in self.keys():
return dict.__getitem__(self, key)
elif key in sel... | class PseudoData(dict):
def __init__(self, name_func_dict, sweep):
super(PseudoData, self).__init__()
self.name_func_dict = name_func_dict
self.sweep = sweep
def __getitem__(self, key):
if key in self.keys():
return dict.__getitem__(self, key)
elif key in sel... | Remove unused get_labels function and commented code | Remove unused get_labels function and commented code
| Python | mit | mchels/FolderBrowser | class PseudoData(dict):
def __init__(self, name_func_dict, sweep):
super(PseudoData, self).__init__()
self.name_func_dict = name_func_dict
self.sweep = sweep
def __getitem__(self, key):
if key in self.keys():
return dict.__getitem__(self, key)
elif key in sel... | class PseudoData(dict):
def __init__(self, name_func_dict, sweep):
super(PseudoData, self).__init__()
self.name_func_dict = name_func_dict
self.sweep = sweep
def __getitem__(self, key):
if key in self.keys():
return dict.__getitem__(self, key)
elif key in sel... | <commit_before>class PseudoData(dict):
def __init__(self, name_func_dict, sweep):
super(PseudoData, self).__init__()
self.name_func_dict = name_func_dict
self.sweep = sweep
def __getitem__(self, key):
if key in self.keys():
return dict.__getitem__(self, key)
... | class PseudoData(dict):
def __init__(self, name_func_dict, sweep):
super(PseudoData, self).__init__()
self.name_func_dict = name_func_dict
self.sweep = sweep
def __getitem__(self, key):
if key in self.keys():
return dict.__getitem__(self, key)
elif key in sel... | class PseudoData(dict):
def __init__(self, name_func_dict, sweep):
super(PseudoData, self).__init__()
self.name_func_dict = name_func_dict
self.sweep = sweep
def __getitem__(self, key):
if key in self.keys():
return dict.__getitem__(self, key)
elif key in sel... | <commit_before>class PseudoData(dict):
def __init__(self, name_func_dict, sweep):
super(PseudoData, self).__init__()
self.name_func_dict = name_func_dict
self.sweep = sweep
def __getitem__(self, key):
if key in self.keys():
return dict.__getitem__(self, key)
... |
657e98bfa2f2b55da4449c8271a108bf4f193e05 | examples/recognize_faces_in_pictures.py | examples/recognize_faces_in_pictures.py | import face_recognition
# Load the jpg files into numpy arrays
biden_image = face_recognition.load_image_file("biden.jpg")
obama_image = face_recognition.load_image_file("obama.jpg")
unknown_image = face_recognition.load_image_file("obama2.jpg")
# Get the face encodings for each face in each image file
# Since there ... | import face_recognition
# Load the jpg files into numpy arrays
biden_image = face_recognition.load_image_file("biden.jpg")
obama_image = face_recognition.load_image_file("obama.jpg")
unknown_image = face_recognition.load_image_file("obama2.jpg")
# Get the face encodings for each face in each image file
# Since there ... | Handle bad image files in example | Handle bad image files in example
| Python | mit | ageitgey/face_recognition | import face_recognition
# Load the jpg files into numpy arrays
biden_image = face_recognition.load_image_file("biden.jpg")
obama_image = face_recognition.load_image_file("obama.jpg")
unknown_image = face_recognition.load_image_file("obama2.jpg")
# Get the face encodings for each face in each image file
# Since there ... | import face_recognition
# Load the jpg files into numpy arrays
biden_image = face_recognition.load_image_file("biden.jpg")
obama_image = face_recognition.load_image_file("obama.jpg")
unknown_image = face_recognition.load_image_file("obama2.jpg")
# Get the face encodings for each face in each image file
# Since there ... | <commit_before>import face_recognition
# Load the jpg files into numpy arrays
biden_image = face_recognition.load_image_file("biden.jpg")
obama_image = face_recognition.load_image_file("obama.jpg")
unknown_image = face_recognition.load_image_file("obama2.jpg")
# Get the face encodings for each face in each image file... | import face_recognition
# Load the jpg files into numpy arrays
biden_image = face_recognition.load_image_file("biden.jpg")
obama_image = face_recognition.load_image_file("obama.jpg")
unknown_image = face_recognition.load_image_file("obama2.jpg")
# Get the face encodings for each face in each image file
# Since there ... | import face_recognition
# Load the jpg files into numpy arrays
biden_image = face_recognition.load_image_file("biden.jpg")
obama_image = face_recognition.load_image_file("obama.jpg")
unknown_image = face_recognition.load_image_file("obama2.jpg")
# Get the face encodings for each face in each image file
# Since there ... | <commit_before>import face_recognition
# Load the jpg files into numpy arrays
biden_image = face_recognition.load_image_file("biden.jpg")
obama_image = face_recognition.load_image_file("obama.jpg")
unknown_image = face_recognition.load_image_file("obama2.jpg")
# Get the face encodings for each face in each image file... |
6ddc8797035eba9f8c118e075e9b6d45081b3a9e | Functions/Connect.py | Functions/Connect.py | from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars
class Instantiate(Function):
Help = "connect <server:port> <channel> - connect to a new server"
def GetResponse(self, Hubbot, message):
if message.Type != "PRIVMSG":
... | from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars
class Instantiate(Function):
Help = "connect <server:port> <channel> - connect to a new server"
def GetResponse(self, Hubbot, message):
if message.Type != "PRIVMSG":
... | Allow multiple channels in connect message | Allow multiple channels in connect message
Still unicode-error, though? WHAT
| Python | mit | HubbeKing/Hubbot_Twisted | from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars
class Instantiate(Function):
Help = "connect <server:port> <channel> - connect to a new server"
def GetResponse(self, Hubbot, message):
if message.Type != "PRIVMSG":
... | from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars
class Instantiate(Function):
Help = "connect <server:port> <channel> - connect to a new server"
def GetResponse(self, Hubbot, message):
if message.Type != "PRIVMSG":
... | <commit_before>from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars
class Instantiate(Function):
Help = "connect <server:port> <channel> - connect to a new server"
def GetResponse(self, Hubbot, message):
if message.Type != ... | from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars
class Instantiate(Function):
Help = "connect <server:port> <channel> - connect to a new server"
def GetResponse(self, Hubbot, message):
if message.Type != "PRIVMSG":
... | from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars
class Instantiate(Function):
Help = "connect <server:port> <channel> - connect to a new server"
def GetResponse(self, Hubbot, message):
if message.Type != "PRIVMSG":
... | <commit_before>from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars
class Instantiate(Function):
Help = "connect <server:port> <channel> - connect to a new server"
def GetResponse(self, Hubbot, message):
if message.Type != ... |
60be218bb33d1d965a363b0e187ddcc88191b2d7 | Lib/cluster/__init__.py | Lib/cluster/__init__.py | #
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
| #
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
from numpy.testing import NumpyTest
test = NumpyTest().test
| Add missing test definition in scipy.cluster | Add missing test definition in scipy.cluster
| Python | bsd-3-clause | ortylp/scipy,jjhelmus/scipy,arokem/scipy,jsilter/scipy,lukauskas/scipy,jsilter/scipy,jseabold/scipy,pnedunuri/scipy,zerothi/scipy,jamestwebber/scipy,pschella/scipy,vhaasteren/scipy,fredrikw/scipy,vanpact/scipy,minhlongdo/scipy,FRidh/scipy,aman-iitj/scipy,argriffing/scipy,vberaudi/scipy,FRidh/scipy,behzadnouri/scipy,Wil... | #
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
Add missing test definition in scipy.cluster | #
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
from numpy.testing import NumpyTest
test = NumpyTest().test
| <commit_before>#
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
<commit_msg>Add missing test definition in scipy.cluster<commit_after> | #
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
from numpy.testing import NumpyTest
test = NumpyTest().test
| #
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
Add missing test definition in scipy.cluster#
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
from numpy.testing import NumpyTest
test = NumpyTest().test
| <commit_before>#
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
<commit_msg>Add missing test definition in scipy.cluster<commit_after>#
# cluster - Vector Quantization / Kmeans
#
from info import __doc__
__all__ = ['vq']
import vq
from numpy.testing import NumpyTest... |
0b1813bef37819209ed9fb5b06eb7495d0e0e1fb | netmiko/arista/arista_ssh.py | netmiko/arista/arista_ssh.py | from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
pass
| import time
from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
def special_login_handler(self, delay_factor=1):
"""
Arista adds a "Last login: " message that doesn't always have sufficient time to be handled
"""
time.sleep(3 * delay_factor)
sel... | Improve Arista reliability on slow login | Improve Arista reliability on slow login
| Python | mit | fooelisa/netmiko,ktbyers/netmiko,shamanu4/netmiko,ktbyers/netmiko,shamanu4/netmiko,shsingh/netmiko,shsingh/netmiko,isidroamv/netmiko,fooelisa/netmiko,isidroamv/netmiko | from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
pass
Improve Arista reliability on slow login | import time
from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
def special_login_handler(self, delay_factor=1):
"""
Arista adds a "Last login: " message that doesn't always have sufficient time to be handled
"""
time.sleep(3 * delay_factor)
sel... | <commit_before>from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
pass
<commit_msg>Improve Arista reliability on slow login<commit_after> | import time
from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
def special_login_handler(self, delay_factor=1):
"""
Arista adds a "Last login: " message that doesn't always have sufficient time to be handled
"""
time.sleep(3 * delay_factor)
sel... | from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
pass
Improve Arista reliability on slow loginimport time
from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
def special_login_handler(self, delay_factor=1):
"""
Arista adds a "Last ... | <commit_before>from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
pass
<commit_msg>Improve Arista reliability on slow login<commit_after>import time
from netmiko.ssh_connection import SSHConnection
class AristaSSH(SSHConnection):
def special_login_handler(self, delay_factor=1):... |
c97153e9d91af27713afce506bc658daa6b1a0e2 | docs/manual/docsmanage.py | docs/manual/docsmanage.py | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))
from reviewboard import settings
from django.core.management import execute_manager
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
def scan_resou... | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))
from reviewboard import settings
from django.core.management import execute_from_command_line
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
def ... | Fix building the manual with Django 1.6. | Fix building the manual with Django 1.6.
This is a trivial change that just switches from calling execute_manager
to execute_from_command_line, in order to build again on Django 1.6.
| Python | mit | chipx86/reviewboard,custode/reviewboard,KnowNo/reviewboard,bkochendorfer/reviewboard,bkochendorfer/reviewboard,beol/reviewboard,sgallagher/reviewboard,bkochendorfer/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,davidt/reviewboard,brennie/reviewboard,KnowNo/reviewboard,custode/reviewboard,1tush/reviewboard... | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))
from reviewboard import settings
from django.core.management import execute_manager
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
def scan_resou... | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))
from reviewboard import settings
from django.core.management import execute_from_command_line
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
def ... | <commit_before>#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))
from reviewboard import settings
from django.core.management import execute_manager
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
... | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))
from reviewboard import settings
from django.core.management import execute_from_command_line
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
def ... | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))
from reviewboard import settings
from django.core.management import execute_manager
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
def scan_resou... | <commit_before>#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))
from reviewboard import settings
from django.core.management import execute_manager
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
... |
e86d2338daa67b2d5e84b62d15b44b0a897b9c93 | dimod/package_info.py | dimod/package_info.py | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | Update version 0.9.0.dev4 -> 0.9.0.dev5 | Update version 0.9.0.dev4 -> 0.9.0.dev5
Changes
-------
* `BinaryQuadraticModel` now subclasses `AdjDictBQM`
* Remove `BinaryQuadraticModel.to_coo` and `BinaryQuadraticModel.from_coo`
* Remove `BinaryQuadraticModel.to_numpy_matrix` and `BinaryQuadraticModel.from_numpy_matrix`
* Remove `BinaryQuadraticModel.SPIN` ... | Python | apache-2.0 | dwavesystems/dimod,dwavesystems/dimod | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | <commit_before># Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | <commit_before># Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... |
d4f73eeccd30d884d0bd8a52ad1798b6f8a1366d | test/test-git-sap-lib.py | test/test-git-sap-lib.py | from git.repo.base import Repo
def test_open_repo():
assert len(Repo().branches) > 0
| from git.repo.base import Repo
from unittest import TestCase
class TestSequenceFunctions(TestCase):
def test_open_repo(self):
self.assertTrue(len(Repo().branches) > 0)
| Switch over to pyunit from py.test | Switch over to pyunit from py.test
| Python | apache-2.0 | Yasumoto/sapling,jsirois/sapling,jsirois/sapling,Yasumoto/sapling | from git.repo.base import Repo
def test_open_repo():
assert len(Repo().branches) > 0
Switch over to pyunit from py.test | from git.repo.base import Repo
from unittest import TestCase
class TestSequenceFunctions(TestCase):
def test_open_repo(self):
self.assertTrue(len(Repo().branches) > 0)
| <commit_before>from git.repo.base import Repo
def test_open_repo():
assert len(Repo().branches) > 0
<commit_msg>Switch over to pyunit from py.test<commit_after> | from git.repo.base import Repo
from unittest import TestCase
class TestSequenceFunctions(TestCase):
def test_open_repo(self):
self.assertTrue(len(Repo().branches) > 0)
| from git.repo.base import Repo
def test_open_repo():
assert len(Repo().branches) > 0
Switch over to pyunit from py.testfrom git.repo.base import Repo
from unittest import TestCase
class TestSequenceFunctions(TestCase):
def test_open_repo(self):
self.assertTrue(len(Repo().branches) > 0)
| <commit_before>from git.repo.base import Repo
def test_open_repo():
assert len(Repo().branches) > 0
<commit_msg>Switch over to pyunit from py.test<commit_after>from git.repo.base import Repo
from unittest import TestCase
class TestSequenceFunctions(TestCase):
def test_open_repo(self):
self.assertTrue(le... |
2124f859a74d4a3e00524af62d1122796804f048 | test_utils/assertions.py | test_utils/assertions.py | """
Code originally from: http://www.aminus.org/blogs/index.php/2009/01/09/assertnodiff
"""
import difflib
from pprint import pformat
class DiffTestCaseMixin(object):
def get_diff_msg(self, first, second,
fromfile='First', tofile='Second'):
"""Return a unified diff between first and... | """
Code originally from: http://www.aminus.org/blogs/index.php/2009/01/09/assertnodiff
"""
import difflib
from pprint import pformat
class DiffTestCaseMixin(object):
def get_diff_msg(self, first, second,
fromfile='First', tofile='Second'):
"""Return a unified diff between first and... | Make failIfDiff work with dict keys and values. | Make failIfDiff work with dict keys and values. | Python | mit | frac/django-test-utils,ericholscher/django-test-utils,frac/django-test-utils,acdha/django-test-utils,acdha/django-test-utils,ericholscher/django-test-utils | """
Code originally from: http://www.aminus.org/blogs/index.php/2009/01/09/assertnodiff
"""
import difflib
from pprint import pformat
class DiffTestCaseMixin(object):
def get_diff_msg(self, first, second,
fromfile='First', tofile='Second'):
"""Return a unified diff between first and... | """
Code originally from: http://www.aminus.org/blogs/index.php/2009/01/09/assertnodiff
"""
import difflib
from pprint import pformat
class DiffTestCaseMixin(object):
def get_diff_msg(self, first, second,
fromfile='First', tofile='Second'):
"""Return a unified diff between first and... | <commit_before>"""
Code originally from: http://www.aminus.org/blogs/index.php/2009/01/09/assertnodiff
"""
import difflib
from pprint import pformat
class DiffTestCaseMixin(object):
def get_diff_msg(self, first, second,
fromfile='First', tofile='Second'):
"""Return a unified diff be... | """
Code originally from: http://www.aminus.org/blogs/index.php/2009/01/09/assertnodiff
"""
import difflib
from pprint import pformat
class DiffTestCaseMixin(object):
def get_diff_msg(self, first, second,
fromfile='First', tofile='Second'):
"""Return a unified diff between first and... | """
Code originally from: http://www.aminus.org/blogs/index.php/2009/01/09/assertnodiff
"""
import difflib
from pprint import pformat
class DiffTestCaseMixin(object):
def get_diff_msg(self, first, second,
fromfile='First', tofile='Second'):
"""Return a unified diff between first and... | <commit_before>"""
Code originally from: http://www.aminus.org/blogs/index.php/2009/01/09/assertnodiff
"""
import difflib
from pprint import pformat
class DiffTestCaseMixin(object):
def get_diff_msg(self, first, second,
fromfile='First', tofile='Second'):
"""Return a unified diff be... |
543cfa32d82417efe63f38a20037105b7e313e5d | cms/project_template/project_name/settings/local.py | cms/project_template/project_name/settings/local.py | """
Settings for local development.
These settings are not fast or efficient, but allow local servers to be run
using the django-admin.py utility.
This file should be excluded from version control to keep the settings local.
"""
import os
import os.path
from .base import *
# Run in debug mode.
DEBUG = True
TEMP... | """
Settings for local development.
These settings are not fast or efficient, but allow local servers to be run
using the django-admin.py utility.
This file should be excluded from version control to keep the settings local.
"""
import os
import os.path
from .base import *
# Run in debug mode.
DEBUG = True
TEMP... | Update default testing SMTP settings in project template | Update default testing SMTP settings in project template | Python | bsd-3-clause | lewiscollard/cms,jamesfoley/cms,dan-gamble/cms,danielsamuels/cms,lewiscollard/cms,dan-gamble/cms,danielsamuels/cms,jamesfoley/cms,dan-gamble/cms,lewiscollard/cms,jamesfoley/cms,jamesfoley/cms,danielsamuels/cms | """
Settings for local development.
These settings are not fast or efficient, but allow local servers to be run
using the django-admin.py utility.
This file should be excluded from version control to keep the settings local.
"""
import os
import os.path
from .base import *
# Run in debug mode.
DEBUG = True
TEMP... | """
Settings for local development.
These settings are not fast or efficient, but allow local servers to be run
using the django-admin.py utility.
This file should be excluded from version control to keep the settings local.
"""
import os
import os.path
from .base import *
# Run in debug mode.
DEBUG = True
TEMP... | <commit_before>"""
Settings for local development.
These settings are not fast or efficient, but allow local servers to be run
using the django-admin.py utility.
This file should be excluded from version control to keep the settings local.
"""
import os
import os.path
from .base import *
# Run in debug mode.
DEB... | """
Settings for local development.
These settings are not fast or efficient, but allow local servers to be run
using the django-admin.py utility.
This file should be excluded from version control to keep the settings local.
"""
import os
import os.path
from .base import *
# Run in debug mode.
DEBUG = True
TEMP... | """
Settings for local development.
These settings are not fast or efficient, but allow local servers to be run
using the django-admin.py utility.
This file should be excluded from version control to keep the settings local.
"""
import os
import os.path
from .base import *
# Run in debug mode.
DEBUG = True
TEMP... | <commit_before>"""
Settings for local development.
These settings are not fast or efficient, but allow local servers to be run
using the django-admin.py utility.
This file should be excluded from version control to keep the settings local.
"""
import os
import os.path
from .base import *
# Run in debug mode.
DEB... |
6e013558940671257cd21972d755564faba38c5c | src/sentry/web/frontend/generic.py | src/sentry/web/frontend/generic.py | """
sentry.web.frontend.generic
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.views.generic import TemplateView as BaseTemplateView
from sentry.web.helpers imp... | """
sentry.web.frontend.generic
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.views.generic import TemplateView as BaseTemplateView
from sentry.web.helpers imp... | Cover more font extensions for CORS from static media | Cover more font extensions for CORS from static media
We were missing woff2, but this should just future proof us if more are
added.
| Python | bsd-3-clause | mvaled/sentry,looker/sentry,ifduyue/sentry,jean/sentry,BuildingLink/sentry,mvaled/sentry,alexm92/sentry,ifduyue/sentry,fotinakis/sentry,JackDanger/sentry,gencer/sentry,jean/sentry,gencer/sentry,alexm92/sentry,zenefits/sentry,nicholasserra/sentry,jean/sentry,mvaled/sentry,fotinakis/sentry,ifduyue/sentry,jean/sentry,beef... | """
sentry.web.frontend.generic
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.views.generic import TemplateView as BaseTemplateView
from sentry.web.helpers imp... | """
sentry.web.frontend.generic
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.views.generic import TemplateView as BaseTemplateView
from sentry.web.helpers imp... | <commit_before>"""
sentry.web.frontend.generic
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.views.generic import TemplateView as BaseTemplateView
from sentry.... | """
sentry.web.frontend.generic
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.views.generic import TemplateView as BaseTemplateView
from sentry.web.helpers imp... | """
sentry.web.frontend.generic
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.views.generic import TemplateView as BaseTemplateView
from sentry.web.helpers imp... | <commit_before>"""
sentry.web.frontend.generic
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.views.generic import TemplateView as BaseTemplateView
from sentry.... |
06a8567ab538e9de510d34a686dabade8f6a8dc9 | base/components/correlations/managers.py | base/components/correlations/managers.py | # -*- coding: utf-8 -*-
from datetime import date
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CorrelationManager(models.Manager):
def update_or_create(self, instance, timestamp, attribute):
# Membership is a special case. Since most groups are static
... | # -*- coding: utf-8 -*-
from datetime import date
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CorrelationManager(models.Manager):
def update_or_create(self, instance, timestamp, attribute):
# Membership is a special case. Since most groups are static
... | Remove the blind addition of prefech_related() to all Correlation querysets. | Remove the blind addition of prefech_related() to all Correlation querysets.
| Python | apache-2.0 | hello-base/web,hello-base/web,hello-base/web,hello-base/web | # -*- coding: utf-8 -*-
from datetime import date
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CorrelationManager(models.Manager):
def update_or_create(self, instance, timestamp, attribute):
# Membership is a special case. Since most groups are static
... | # -*- coding: utf-8 -*-
from datetime import date
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CorrelationManager(models.Manager):
def update_or_create(self, instance, timestamp, attribute):
# Membership is a special case. Since most groups are static
... | <commit_before># -*- coding: utf-8 -*-
from datetime import date
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CorrelationManager(models.Manager):
def update_or_create(self, instance, timestamp, attribute):
# Membership is a special case. Since most groups ... | # -*- coding: utf-8 -*-
from datetime import date
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CorrelationManager(models.Manager):
def update_or_create(self, instance, timestamp, attribute):
# Membership is a special case. Since most groups are static
... | # -*- coding: utf-8 -*-
from datetime import date
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CorrelationManager(models.Manager):
def update_or_create(self, instance, timestamp, attribute):
# Membership is a special case. Since most groups are static
... | <commit_before># -*- coding: utf-8 -*-
from datetime import date
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CorrelationManager(models.Manager):
def update_or_create(self, instance, timestamp, attribute):
# Membership is a special case. Since most groups ... |
d3160598898702d750a3c7fa1910bb8655abcb3f | kay/management/app_template/urls.py | kay/management/app_template/urls.py | # -*- coding: utf-8 -*-
# %app_name%.urls
from werkzeug.routing import (
Map, Rule, Submount,
EndpointPrefix, RuleTemplate,
)
def make_rules():
return [
EndpointPrefix('%app_name%/', [
Rule('/', endpoint='index'),
]),
]
all_views = {
'%app_name%/index': '%app_name%.views.index',
}
| # -*- coding: utf-8 -*-
# %app_name%.urls
from kay.view_group import (
ViewGroup, URL
)
view_groups = [
ViewGroup(URL('/', endpoint='index', view='%app_name%.views.index'))
]
| Use a new interface for urlmapping in application template. | Use a new interface for urlmapping in application template.
| Python | bsd-3-clause | IanLewis/kay,IanLewis/kay,IanLewis/kay,IanLewis/kay | # -*- coding: utf-8 -*-
# %app_name%.urls
from werkzeug.routing import (
Map, Rule, Submount,
EndpointPrefix, RuleTemplate,
)
def make_rules():
return [
EndpointPrefix('%app_name%/', [
Rule('/', endpoint='index'),
]),
]
all_views = {
'%app_name%/index': '%app_name%.views.index',
}
Use a new ... | # -*- coding: utf-8 -*-
# %app_name%.urls
from kay.view_group import (
ViewGroup, URL
)
view_groups = [
ViewGroup(URL('/', endpoint='index', view='%app_name%.views.index'))
]
| <commit_before># -*- coding: utf-8 -*-
# %app_name%.urls
from werkzeug.routing import (
Map, Rule, Submount,
EndpointPrefix, RuleTemplate,
)
def make_rules():
return [
EndpointPrefix('%app_name%/', [
Rule('/', endpoint='index'),
]),
]
all_views = {
'%app_name%/index': '%app_name%.views.index... | # -*- coding: utf-8 -*-
# %app_name%.urls
from kay.view_group import (
ViewGroup, URL
)
view_groups = [
ViewGroup(URL('/', endpoint='index', view='%app_name%.views.index'))
]
| # -*- coding: utf-8 -*-
# %app_name%.urls
from werkzeug.routing import (
Map, Rule, Submount,
EndpointPrefix, RuleTemplate,
)
def make_rules():
return [
EndpointPrefix('%app_name%/', [
Rule('/', endpoint='index'),
]),
]
all_views = {
'%app_name%/index': '%app_name%.views.index',
}
Use a new ... | <commit_before># -*- coding: utf-8 -*-
# %app_name%.urls
from werkzeug.routing import (
Map, Rule, Submount,
EndpointPrefix, RuleTemplate,
)
def make_rules():
return [
EndpointPrefix('%app_name%/', [
Rule('/', endpoint='index'),
]),
]
all_views = {
'%app_name%/index': '%app_name%.views.index... |
173ee66df6a45c979df599422efc3f35bb41a243 | neuroshare/EventEntity.py | neuroshare/EventEntity.py |
from Entity import *
class EventEntity(Entity):
EVENT_TEXT = 1
EVENT_CSV = 2
EVENT_BYTE = 3
EVENT_WORD = 4
EVENT_DWORD = 5
def __init__(self, nsfile, eid, info):
super(EventEntity,self).__init__(eid, nsfile, info)
@property
def event_type(self):
return self._info... |
from Entity import *
class EventEntity(Entity):
"""Event entities represent specific timepoints with associated data,
e.g. a trigger events. Data can be binary (8, 16 or 32 bit) values, text
or comma separated values (cvs).
"""
EVENT_TEXT = 1
EVENT_CSV = 2
EVENT_BYTE = 3
EVENT_WORD... | Add simple docs to Event entities | doc: Add simple docs to Event entities
| Python | lgpl-2.1 | abhay447/python-neuroshare,abhay447/python-neuroshare,G-Node/python-neuroshare,G-Node/python-neuroshare |
from Entity import *
class EventEntity(Entity):
EVENT_TEXT = 1
EVENT_CSV = 2
EVENT_BYTE = 3
EVENT_WORD = 4
EVENT_DWORD = 5
def __init__(self, nsfile, eid, info):
super(EventEntity,self).__init__(eid, nsfile, info)
@property
def event_type(self):
return self._info... |
from Entity import *
class EventEntity(Entity):
"""Event entities represent specific timepoints with associated data,
e.g. a trigger events. Data can be binary (8, 16 or 32 bit) values, text
or comma separated values (cvs).
"""
EVENT_TEXT = 1
EVENT_CSV = 2
EVENT_BYTE = 3
EVENT_WORD... | <commit_before>
from Entity import *
class EventEntity(Entity):
EVENT_TEXT = 1
EVENT_CSV = 2
EVENT_BYTE = 3
EVENT_WORD = 4
EVENT_DWORD = 5
def __init__(self, nsfile, eid, info):
super(EventEntity,self).__init__(eid, nsfile, info)
@property
def event_type(self):
re... |
from Entity import *
class EventEntity(Entity):
"""Event entities represent specific timepoints with associated data,
e.g. a trigger events. Data can be binary (8, 16 or 32 bit) values, text
or comma separated values (cvs).
"""
EVENT_TEXT = 1
EVENT_CSV = 2
EVENT_BYTE = 3
EVENT_WORD... |
from Entity import *
class EventEntity(Entity):
EVENT_TEXT = 1
EVENT_CSV = 2
EVENT_BYTE = 3
EVENT_WORD = 4
EVENT_DWORD = 5
def __init__(self, nsfile, eid, info):
super(EventEntity,self).__init__(eid, nsfile, info)
@property
def event_type(self):
return self._info... | <commit_before>
from Entity import *
class EventEntity(Entity):
EVENT_TEXT = 1
EVENT_CSV = 2
EVENT_BYTE = 3
EVENT_WORD = 4
EVENT_DWORD = 5
def __init__(self, nsfile, eid, info):
super(EventEntity,self).__init__(eid, nsfile, info)
@property
def event_type(self):
re... |
63ba7b3f21f21d77ca72eca4503ad6edf3986ed5 | src/nodeconductor_openstack/tests/unittests/test_handlers.py | src/nodeconductor_openstack/tests/unittests/test_handlers.py | from django.test import TestCase
from .. import factories
class FloatingIpHandlersTest(TestCase):
def test_floating_ip_count_quota_increases_on_floating_ip_creation(self):
tenant = factories.TenantFactory()
factories.FloatingIPFactory(service_project_link=tenant.service_project_link, status='UP'... | from django.test import TestCase
from .. import factories
class FloatingIpHandlersTest(TestCase):
def test_floating_ip_count_quota_increases_on_floating_ip_creation(self):
tenant = factories.TenantFactory()
factories.FloatingIPFactory(
service_project_link=tenant.service_project_link... | Fix floating IP unit test. | Fix floating IP unit test.
| Python | mit | opennode/nodeconductor-openstack | from django.test import TestCase
from .. import factories
class FloatingIpHandlersTest(TestCase):
def test_floating_ip_count_quota_increases_on_floating_ip_creation(self):
tenant = factories.TenantFactory()
factories.FloatingIPFactory(service_project_link=tenant.service_project_link, status='UP'... | from django.test import TestCase
from .. import factories
class FloatingIpHandlersTest(TestCase):
def test_floating_ip_count_quota_increases_on_floating_ip_creation(self):
tenant = factories.TenantFactory()
factories.FloatingIPFactory(
service_project_link=tenant.service_project_link... | <commit_before>from django.test import TestCase
from .. import factories
class FloatingIpHandlersTest(TestCase):
def test_floating_ip_count_quota_increases_on_floating_ip_creation(self):
tenant = factories.TenantFactory()
factories.FloatingIPFactory(service_project_link=tenant.service_project_li... | from django.test import TestCase
from .. import factories
class FloatingIpHandlersTest(TestCase):
def test_floating_ip_count_quota_increases_on_floating_ip_creation(self):
tenant = factories.TenantFactory()
factories.FloatingIPFactory(
service_project_link=tenant.service_project_link... | from django.test import TestCase
from .. import factories
class FloatingIpHandlersTest(TestCase):
def test_floating_ip_count_quota_increases_on_floating_ip_creation(self):
tenant = factories.TenantFactory()
factories.FloatingIPFactory(service_project_link=tenant.service_project_link, status='UP'... | <commit_before>from django.test import TestCase
from .. import factories
class FloatingIpHandlersTest(TestCase):
def test_floating_ip_count_quota_increases_on_floating_ip_creation(self):
tenant = factories.TenantFactory()
factories.FloatingIPFactory(service_project_link=tenant.service_project_li... |
a9dd72ef0f82f6cb818cd3d265090ed280385033 | tests/test_curry.py | tests/test_curry.py | import pytest
from currypy import curry
class TestCurry:
def test_curry_as_decorator(self):
"""Ensure that currypy.curry can be used as a decorator"""
@curry
def func():
pass
assert func.curried is False
def test_curry_refuses_None(self):
"""Ensure that c... | import pytest
from curryer import curry
class TestCurry:
def test_curry_as_decorator(self):
"""Ensure that currypy.curry can be used as a decorator"""
@curry
def func():
pass
assert func.curried is False
def test_curry_refuses_None(self):
"""Ensure that c... | Change package name in tests | Change package name in tests
| Python | bsd-3-clause | sigmavirus24/curryer | import pytest
from currypy import curry
class TestCurry:
def test_curry_as_decorator(self):
"""Ensure that currypy.curry can be used as a decorator"""
@curry
def func():
pass
assert func.curried is False
def test_curry_refuses_None(self):
"""Ensure that c... | import pytest
from curryer import curry
class TestCurry:
def test_curry_as_decorator(self):
"""Ensure that currypy.curry can be used as a decorator"""
@curry
def func():
pass
assert func.curried is False
def test_curry_refuses_None(self):
"""Ensure that c... | <commit_before>import pytest
from currypy import curry
class TestCurry:
def test_curry_as_decorator(self):
"""Ensure that currypy.curry can be used as a decorator"""
@curry
def func():
pass
assert func.curried is False
def test_curry_refuses_None(self):
"... | import pytest
from curryer import curry
class TestCurry:
def test_curry_as_decorator(self):
"""Ensure that currypy.curry can be used as a decorator"""
@curry
def func():
pass
assert func.curried is False
def test_curry_refuses_None(self):
"""Ensure that c... | import pytest
from currypy import curry
class TestCurry:
def test_curry_as_decorator(self):
"""Ensure that currypy.curry can be used as a decorator"""
@curry
def func():
pass
assert func.curried is False
def test_curry_refuses_None(self):
"""Ensure that c... | <commit_before>import pytest
from currypy import curry
class TestCurry:
def test_curry_as_decorator(self):
"""Ensure that currypy.curry can be used as a decorator"""
@curry
def func():
pass
assert func.curried is False
def test_curry_refuses_None(self):
"... |
19e0deeb65a4e66e5ab623702701d82f1994d594 | world_population.py | world_population.py | import json
#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
pop_data = json.load(f)
#print the 2010 population for each country
for pop_dict in pop_data:
if pop_dict['Year'] == '2010':
country_name = pop_dict['Country Name']
population = pop_dict['Value']
... | import json
#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
pop_data = json.load(f)
#print the 2010 population for each country
for pop_dict in pop_data:
if pop_dict['Year'] == '2010':
country_name = pop_dict['Country Name']
population = int(float(pop_dict['V... | Convert Strings into Numerical Values | Convert Strings into Numerical Values
| Python | mit | 4bic-attic/data_viz | import json
#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
pop_data = json.load(f)
#print the 2010 population for each country
for pop_dict in pop_data:
if pop_dict['Year'] == '2010':
country_name = pop_dict['Country Name']
population = pop_dict['Value']
... | import json
#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
pop_data = json.load(f)
#print the 2010 population for each country
for pop_dict in pop_data:
if pop_dict['Year'] == '2010':
country_name = pop_dict['Country Name']
population = int(float(pop_dict['V... | <commit_before>import json
#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
pop_data = json.load(f)
#print the 2010 population for each country
for pop_dict in pop_data:
if pop_dict['Year'] == '2010':
country_name = pop_dict['Country Name']
population = pop_di... | import json
#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
pop_data = json.load(f)
#print the 2010 population for each country
for pop_dict in pop_data:
if pop_dict['Year'] == '2010':
country_name = pop_dict['Country Name']
population = int(float(pop_dict['V... | import json
#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
pop_data = json.load(f)
#print the 2010 population for each country
for pop_dict in pop_data:
if pop_dict['Year'] == '2010':
country_name = pop_dict['Country Name']
population = pop_dict['Value']
... | <commit_before>import json
#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
pop_data = json.load(f)
#print the 2010 population for each country
for pop_dict in pop_data:
if pop_dict['Year'] == '2010':
country_name = pop_dict['Country Name']
population = pop_di... |
593964161e260b5b34e557d0d90485d457595063 | tests/test_utils.py | tests/test_utils.py | """Tests for the ``utils`` module."""
from mock import patch, Mock as mock
from nose.tools import *
from facepy import *
patch = patch('requests.session')
def setup_module():
global mock_request
mock_request = patch.start()().request
def teardown_module():
patch.stop()
def test_get_application_access... | """Tests for the ``utils`` module."""
from mock import patch, Mock as mock
from nose.tools import *
from facepy import *
patch = patch('requests.session')
def mock():
global mock_request
mock_request = patch.start()().request
def unmock():
patch.stop()
@with_setup(mock, unmock)
def test_get_applicati... | Add test for failing get_application_access_token | Add test for failing get_application_access_token
| Python | mit | merwok-forks/facepy,jwjohns/facepy,jgorset/facepy,liorshahverdi/facepy,Spockuto/facepy,buzzfeed/facepy,jwjohns/facepy | """Tests for the ``utils`` module."""
from mock import patch, Mock as mock
from nose.tools import *
from facepy import *
patch = patch('requests.session')
def setup_module():
global mock_request
mock_request = patch.start()().request
def teardown_module():
patch.stop()
def test_get_application_access... | """Tests for the ``utils`` module."""
from mock import patch, Mock as mock
from nose.tools import *
from facepy import *
patch = patch('requests.session')
def mock():
global mock_request
mock_request = patch.start()().request
def unmock():
patch.stop()
@with_setup(mock, unmock)
def test_get_applicati... | <commit_before>"""Tests for the ``utils`` module."""
from mock import patch, Mock as mock
from nose.tools import *
from facepy import *
patch = patch('requests.session')
def setup_module():
global mock_request
mock_request = patch.start()().request
def teardown_module():
patch.stop()
def test_get_app... | """Tests for the ``utils`` module."""
from mock import patch, Mock as mock
from nose.tools import *
from facepy import *
patch = patch('requests.session')
def mock():
global mock_request
mock_request = patch.start()().request
def unmock():
patch.stop()
@with_setup(mock, unmock)
def test_get_applicati... | """Tests for the ``utils`` module."""
from mock import patch, Mock as mock
from nose.tools import *
from facepy import *
patch = patch('requests.session')
def setup_module():
global mock_request
mock_request = patch.start()().request
def teardown_module():
patch.stop()
def test_get_application_access... | <commit_before>"""Tests for the ``utils`` module."""
from mock import patch, Mock as mock
from nose.tools import *
from facepy import *
patch = patch('requests.session')
def setup_module():
global mock_request
mock_request = patch.start()().request
def teardown_module():
patch.stop()
def test_get_app... |
906d60089dbe6b263ae55d91ba73d6b6e41ebbb5 | api/admin.py | api/admin.py | from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_beta_interface", "... | from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences, HelpLink
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_beta_int... | Add entire in Admin for managing HelpLink | Add entire in Admin for managing HelpLink
An admin can _only_ modify the hyperlink associated with a HelpLink.
As a consequence, you cannot add new instances of the model nor delete
them. Only the existing HelpLinks can be modified because their
inclusion (or existence) is dependent upon the usage within the UI.
If ... | Python | apache-2.0 | CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend | from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_beta_interface", "... | from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences, HelpLink
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_beta_int... | <commit_before>from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_bet... | from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences, HelpLink
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_beta_int... | from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_beta_interface", "... | <commit_before>from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_bet... |
2b3e281c228a4efa9483362f10eac74ce4da6178 | parliament/legacy_urls.py | parliament/legacy_urls.py | from django.conf.urls import url
from parliament.core.utils import redir_view
from parliament.hansards.redirect_views import hansard_redirect
urlpatterns = [
url(r'^hansards/$', redir_view('parliament.hansards.views.index')),
url(r'^hansards/year/(?P<year>\d{4})/$', redir_view('parliament.hansards.views.by_ye... | from django.conf.urls import url
from parliament.core.utils import redir_view
from parliament.hansards.redirect_views import hansard_redirect
urlpatterns = [
url(r'^hansards/$', redir_view('debates')),
url(r'^hansards/year/(?P<year>\d{4})/$', redir_view('debates_by_year')),
url(r'^hansards/(?P<hansard_id>... | Fix a couple of redirect URLs | Fix a couple of redirect URLs
| Python | agpl-3.0 | litui/openparliament,litui/openparliament,rhymeswithcycle/openparliament,rhymeswithcycle/openparliament,rhymeswithcycle/openparliament,litui/openparliament | from django.conf.urls import url
from parliament.core.utils import redir_view
from parliament.hansards.redirect_views import hansard_redirect
urlpatterns = [
url(r'^hansards/$', redir_view('parliament.hansards.views.index')),
url(r'^hansards/year/(?P<year>\d{4})/$', redir_view('parliament.hansards.views.by_ye... | from django.conf.urls import url
from parliament.core.utils import redir_view
from parliament.hansards.redirect_views import hansard_redirect
urlpatterns = [
url(r'^hansards/$', redir_view('debates')),
url(r'^hansards/year/(?P<year>\d{4})/$', redir_view('debates_by_year')),
url(r'^hansards/(?P<hansard_id>... | <commit_before>from django.conf.urls import url
from parliament.core.utils import redir_view
from parliament.hansards.redirect_views import hansard_redirect
urlpatterns = [
url(r'^hansards/$', redir_view('parliament.hansards.views.index')),
url(r'^hansards/year/(?P<year>\d{4})/$', redir_view('parliament.hansa... | from django.conf.urls import url
from parliament.core.utils import redir_view
from parliament.hansards.redirect_views import hansard_redirect
urlpatterns = [
url(r'^hansards/$', redir_view('debates')),
url(r'^hansards/year/(?P<year>\d{4})/$', redir_view('debates_by_year')),
url(r'^hansards/(?P<hansard_id>... | from django.conf.urls import url
from parliament.core.utils import redir_view
from parliament.hansards.redirect_views import hansard_redirect
urlpatterns = [
url(r'^hansards/$', redir_view('parliament.hansards.views.index')),
url(r'^hansards/year/(?P<year>\d{4})/$', redir_view('parliament.hansards.views.by_ye... | <commit_before>from django.conf.urls import url
from parliament.core.utils import redir_view
from parliament.hansards.redirect_views import hansard_redirect
urlpatterns = [
url(r'^hansards/$', redir_view('parliament.hansards.views.index')),
url(r'^hansards/year/(?P<year>\d{4})/$', redir_view('parliament.hansa... |
4c4b09e1bfbd60bfe1453c5a3b3e8f13d2eaa4ce | comet/tcp/test/test_voeventsubscriber.py | comet/tcp/test/test_voeventsubscriber.py | from twisted.trial import unittest
from twisted.test import proto_helpers
from ...test.support import DUMMY_EVENT_IVORN as DUMMY_IVORN
from ..protocol import VOEventSubscriber
from ..protocol import VOEventSubscriberFactory
class VOEventSubscriberFactoryTestCase(unittest.TestCase):
def setUp(self):
facto... | from twisted.internet import task
from twisted.trial import unittest
from twisted.test import proto_helpers
from ...test.support import DUMMY_EVENT_IVORN as DUMMY_IVORN
from ..protocol import VOEventSubscriber
from ..protocol import VOEventSubscriberFactory
class VOEventSubscriberFactoryTestCase(unittest.TestCase):
... | Add test for subscriber timeout | Add test for subscriber timeout
| Python | bsd-2-clause | jdswinbank/Comet,jdswinbank/Comet | from twisted.trial import unittest
from twisted.test import proto_helpers
from ...test.support import DUMMY_EVENT_IVORN as DUMMY_IVORN
from ..protocol import VOEventSubscriber
from ..protocol import VOEventSubscriberFactory
class VOEventSubscriberFactoryTestCase(unittest.TestCase):
def setUp(self):
facto... | from twisted.internet import task
from twisted.trial import unittest
from twisted.test import proto_helpers
from ...test.support import DUMMY_EVENT_IVORN as DUMMY_IVORN
from ..protocol import VOEventSubscriber
from ..protocol import VOEventSubscriberFactory
class VOEventSubscriberFactoryTestCase(unittest.TestCase):
... | <commit_before>from twisted.trial import unittest
from twisted.test import proto_helpers
from ...test.support import DUMMY_EVENT_IVORN as DUMMY_IVORN
from ..protocol import VOEventSubscriber
from ..protocol import VOEventSubscriberFactory
class VOEventSubscriberFactoryTestCase(unittest.TestCase):
def setUp(self)... | from twisted.internet import task
from twisted.trial import unittest
from twisted.test import proto_helpers
from ...test.support import DUMMY_EVENT_IVORN as DUMMY_IVORN
from ..protocol import VOEventSubscriber
from ..protocol import VOEventSubscriberFactory
class VOEventSubscriberFactoryTestCase(unittest.TestCase):
... | from twisted.trial import unittest
from twisted.test import proto_helpers
from ...test.support import DUMMY_EVENT_IVORN as DUMMY_IVORN
from ..protocol import VOEventSubscriber
from ..protocol import VOEventSubscriberFactory
class VOEventSubscriberFactoryTestCase(unittest.TestCase):
def setUp(self):
facto... | <commit_before>from twisted.trial import unittest
from twisted.test import proto_helpers
from ...test.support import DUMMY_EVENT_IVORN as DUMMY_IVORN
from ..protocol import VOEventSubscriber
from ..protocol import VOEventSubscriberFactory
class VOEventSubscriberFactoryTestCase(unittest.TestCase):
def setUp(self)... |
6c6d7e3dc2c61b13d17f30ddd7607a4dfb2ef86d | nova/policies/migrate_server.py | nova/policies/migrate_server.py | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | Introduce scope_types in migrate server | Introduce scope_types in migrate server
oslo.policy introduced the scope_type feature which can
control the access level at system-level and project-level.
- https://docs.openstack.org/oslo.policy/latest/user/usage.html#setting-scope
- http://specs.openstack.org/openstack/keystone-specs/specs/keystone/queens/system-... | Python | apache-2.0 | klmitch/nova,openstack/nova,openstack/nova,mahak/nova,klmitch/nova,mahak/nova,klmitch/nova,openstack/nova,mahak/nova,klmitch/nova | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | <commit_before># Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | <commit_before># Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... |
fd96c3160f0a54fab4bd18e9cc2585c0a3420f75 | tests/test_models.py | tests/test_models.py | import pytest
import turbasen
@pytest.fixture
def configure_dev():
turbasen.configure(ENDPOINT_URL='http://dev.nasjonalturbase.no/')
@pytest.mark.skipif(turbasen.settings.Settings.API_KEY is None, reason="API key not set")
def test_get(configure_dev):
sted = turbasen.Sted.get('52407fb375049e561500004e')
... | import pytest
import turbasen
@pytest.fixture
def configure_dev():
turbasen.configure(ENDPOINT_URL='http://dev.nasjonalturbase.no/')
@pytest.mark.skipif(turbasen.settings.Settings.API_KEY is None, reason="API key not set")
def test_get(configure_dev):
sted = turbasen.Sted.get('52407fb375049e561500004e')
... | Add unicode encoding to sted.navn | Add unicode encoding to sted.navn
| Python | mit | Turbasen/turbasen.py | import pytest
import turbasen
@pytest.fixture
def configure_dev():
turbasen.configure(ENDPOINT_URL='http://dev.nasjonalturbase.no/')
@pytest.mark.skipif(turbasen.settings.Settings.API_KEY is None, reason="API key not set")
def test_get(configure_dev):
sted = turbasen.Sted.get('52407fb375049e561500004e')
... | import pytest
import turbasen
@pytest.fixture
def configure_dev():
turbasen.configure(ENDPOINT_URL='http://dev.nasjonalturbase.no/')
@pytest.mark.skipif(turbasen.settings.Settings.API_KEY is None, reason="API key not set")
def test_get(configure_dev):
sted = turbasen.Sted.get('52407fb375049e561500004e')
... | <commit_before>import pytest
import turbasen
@pytest.fixture
def configure_dev():
turbasen.configure(ENDPOINT_URL='http://dev.nasjonalturbase.no/')
@pytest.mark.skipif(turbasen.settings.Settings.API_KEY is None, reason="API key not set")
def test_get(configure_dev):
sted = turbasen.Sted.get('52407fb375049e56... | import pytest
import turbasen
@pytest.fixture
def configure_dev():
turbasen.configure(ENDPOINT_URL='http://dev.nasjonalturbase.no/')
@pytest.mark.skipif(turbasen.settings.Settings.API_KEY is None, reason="API key not set")
def test_get(configure_dev):
sted = turbasen.Sted.get('52407fb375049e561500004e')
... | import pytest
import turbasen
@pytest.fixture
def configure_dev():
turbasen.configure(ENDPOINT_URL='http://dev.nasjonalturbase.no/')
@pytest.mark.skipif(turbasen.settings.Settings.API_KEY is None, reason="API key not set")
def test_get(configure_dev):
sted = turbasen.Sted.get('52407fb375049e561500004e')
... | <commit_before>import pytest
import turbasen
@pytest.fixture
def configure_dev():
turbasen.configure(ENDPOINT_URL='http://dev.nasjonalturbase.no/')
@pytest.mark.skipif(turbasen.settings.Settings.API_KEY is None, reason="API key not set")
def test_get(configure_dev):
sted = turbasen.Sted.get('52407fb375049e56... |
e0510ea02ad1998973a9e0733f2342b06ddcf182 | test/python_api/default-constructor/sb_breakpointlocation.py | test/python_api/default-constructor/sb_breakpointlocation.py | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
obj.GetLoadAddress()
obj.SetEnabled(True)
obj.IsEnabled()
obj.SetCondition("i >= 10")
obj.GetCondition()
obj.SetThreadID(0)
obj.GetThreadID()
obj.S... | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
obj.GetAddress()
obj.GetLoadAddress()
obj.SetEnabled(True)
obj.IsEnabled()
obj.SetCondition("i >= 10")
obj.GetCondition()
obj.SetThreadID(0)
obj.Ge... | Add fuzz call for SBBreakpointLocation.GetAddress(). | Add fuzz call for SBBreakpointLocation.GetAddress().
git-svn-id: b33bab8abb5b18c12ee100cd7761ab452d00b2b0@141443 91177308-0d34-0410-b5e6-96231b3b80d8
| Python | apache-2.0 | apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
obj.GetLoadAddress()
obj.SetEnabled(True)
obj.IsEnabled()
obj.SetCondition("i >= 10")
obj.GetCondition()
obj.SetThreadID(0)
obj.GetThreadID()
obj.S... | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
obj.GetAddress()
obj.GetLoadAddress()
obj.SetEnabled(True)
obj.IsEnabled()
obj.SetCondition("i >= 10")
obj.GetCondition()
obj.SetThreadID(0)
obj.Ge... | <commit_before>"""
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
obj.GetLoadAddress()
obj.SetEnabled(True)
obj.IsEnabled()
obj.SetCondition("i >= 10")
obj.GetCondition()
obj.SetThreadID(0)
obj.GetThrea... | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
obj.GetAddress()
obj.GetLoadAddress()
obj.SetEnabled(True)
obj.IsEnabled()
obj.SetCondition("i >= 10")
obj.GetCondition()
obj.SetThreadID(0)
obj.Ge... | """
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
obj.GetLoadAddress()
obj.SetEnabled(True)
obj.IsEnabled()
obj.SetCondition("i >= 10")
obj.GetCondition()
obj.SetThreadID(0)
obj.GetThreadID()
obj.S... | <commit_before>"""
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""
import sys
import lldb
def fuzz_obj(obj):
obj.GetLoadAddress()
obj.SetEnabled(True)
obj.IsEnabled()
obj.SetCondition("i >= 10")
obj.GetCondition()
obj.SetThreadID(0)
obj.GetThrea... |
5a5e4341f60ac70c7f4182ef2f248a3c518ba0fb | timesketch/apps/sketch/migrations/0010_auto_20141110_1129.py | timesketch/apps/sketch/migrations/0010_auto_20141110_1129.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sketch', '0009_merge'),
]
operat... | # -*- coding: utf-8 -*-
# Auto generated by Django migrate
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sketch... | Add auto generated note on migration | Add auto generated note on migration
| Python | apache-2.0 | lockhy/timesketch,armuk/timesketch,lockhy/timesketch,google/timesketch,google/timesketch,armuk/timesketch,armuk/timesketch,google/timesketch,lockhy/timesketch,lockhy/timesketch,google/timesketch,armuk/timesketch | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sketch', '0009_merge'),
]
operat... | # -*- coding: utf-8 -*-
# Auto generated by Django migrate
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sketch... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sketch', '0009_merge'),
... | # -*- coding: utf-8 -*-
# Auto generated by Django migrate
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sketch... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sketch', '0009_merge'),
]
operat... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sketch', '0009_merge'),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.