commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
aba0a2f8457a3012260e94512d092abfba62c44a | Bump version to 0.4.3. | setup.py | setup.py | """Reaktor models that use barrel for encapsulation."""
from setuptools import setup, find_packages
setup(
name='barrel-reaktor',
version='0.4.2',
description='Python interface to reaktor API',
long_description=__doc__,
license='BSD',
author='txtr web team',
author_email='web-dev@txtr.com'... | Python | 0 | @@ -150,9 +150,9 @@
0.4.
-2
+3
',%0A
|
2117675429b0d446145ca9bd88756a3f20d874f9 | Add check-nvp-config utility | setup.py | setup.py | # Copyright 2011 OpenStack, 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | Python | 0.000001 | @@ -5468,32 +5468,147 @@
tion.cli:main',%0A
+ ('quantum-check-nvp-config = '%0A 'quantum.plugins.nicira.nicira_nvp_plugin.check_nvp_config:main'),%0A
%5D%0A%0A Proje
|
7ff834cc935bbebcea0437b570033e6a6156d483 | Version bump | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py register sdist bdist_wheel upload')
sys.exit()
readme_text = open("README.rst", "r").read()
setup(
name="django-ormcache",
version="1.0.1",
description="ORM cache f... | Python | 0.000001 | @@ -283,10 +283,8 @@
=%221.
-0.
1%22,%0A
|
fd49e2b4f18106b5faf23148633fec59211771dc | Add optional support for setuptools. | setup.py | setup.py | #!/usr/bin/env python
'''
The setup script for saltapi
'''
from distutils.core import setup
# pylint: disable-msg=W0122,E0602
exec(compile(open('saltapi/version.py').read(), 'saltapi/version.py', 'exec'))
VERSION = __version__
# pylint: enable-msg=W0122,E0602
NAME = 'salt-api'
DESC = ("Generic interface for providing... | Python | 0 | @@ -52,16 +52,424 @@
api%0A'''%0A
+%0Aimport os%0A# Use setuptools only if the user opts-in by setting the USE_SETUPTOOLS env var%0A# This ensures consistent behavior but allows for advanced usage with%0A# virtualenv, buildout, and others.%0AUSE_SETUPTOOLS = False%0Aif 'USE_SETUPTOOLS' in os.environ:%0A try:%0A ... |
52e8734ef54772b4c67e40b887ca7d0ad925c6e8 | use project-version format for tag. | setup.py | setup.py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import os
import sys
if sys.platform == "darwin":
if os.path.exists("/opt/local/include/ta-lib"):
include_talib_dir = "/opt/local/include"
lib_talib_dir = "/opt/local/lib"... | Python | 0 | @@ -1180,16 +1180,23 @@
archive/
+TA_Lib-
0.4.1.zi
|
4437ab3021d5d81c1e4f8682529456e17fe32e74 | Fix package_data installation. Code remains to be written to discover the path for namebench.cfg and alexa data | setup.py | setup.py | # Copyright 2009 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | Python | 0 | @@ -618,17 +618,41 @@
guration
-.
+: python setup.py install
%22%22%22%0A%0A__a
@@ -705,16 +705,17 @@
berg)'%0A%0A
+%0A
from nam
@@ -1032,402 +1032,510 @@
-packages=('libnamebench',),%0A platforms=('Any',),%0A requires=%5B'graphy', 'dnspython', 'jinja2'%5D,%0A license='Apache 2.0',%0A scri... |
59cca112feb323630d4749c2a4fab9a2d59553b7 | add psycopg2 dependency | setup.py | setup.py | from setuptools import setup
setup(
name='pg_testenv',
version="0.1",
author="Teemu Haapoja",
author_email="teemu.haapoja@gmail.com",
description="PostgreSQL test instance creator",
license="BSD",
scripts = [
'pg_testenv'
],
)
| Python | 0 | @@ -197,16 +197,48 @@
=%22BSD%22,%0A
+%09install_requires=%5B'psycopg2'%5D,%0A
%09scripts
|
ec5cf5b306ea20051cf5b02983fdd356f04a9a5e | switch to pyannote.core 0.8 | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2016 CNRS
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | Python | 0.000001 | @@ -1400,11 +1400,9 @@
= 0.
-7.2
+8
',%0A
@@ -1608,16 +1608,17 @@
%0A %5D,%0A
+%0A
# ve
|
fa1f6c534c129dfe8429b4731a5381cbf88a2fde | Version bump to 3.1 for the latest changes | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name="i3pystatus",
version="3",
description="Like i3status, this generates status line for i3bar / i3wm",
url="http://github.com/enkore/i3pystatus",
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"En... | Python | 0 | @@ -87,16 +87,18 @@
rsion=%223
+.1
%22,%0A
|
c2e97163f1ccfb45b28239e151102ef0bf7070d3 | Bump version, add classifiers. | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='corker',
version='0.2-pre1',
description='Another WSGI Framework',
license='BSD',
author='Joshua D. Boyd',
author_email='jdboyd@jdboyd.net',
url='https://github.com/jd-boyd/corker',
packages=find_packages(),
package... | Python | 0 | @@ -81,13 +81,8 @@
'0.2
--pre1
',%0A
@@ -124,16 +124,512 @@
ework',%0A
+ classifiers=%5B%22Development Status :: 4 - Beta%22,%0A %22Intended Audience :: Developers%22,%0A %22License :: OSI Approved :: BSD License%22,%0A %22Topic :: Internet :: WWW/HTTP%22,%... |
c81fa8e41fb1411945ac0c045547c59a09a443c4 | bump version | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='webdiff',
version='0.4.2',
description='Two-column web-based git difftool',
author='Dan Vanderkam',
author_email='danvdk@gmail.com',
url='https://github.com/danvk/webdiff/',
entry_points={
'console_scripts': [
... | Python | 0 | @@ -83,9 +83,9 @@
0.4.
-2
+3
',%0A
|
2fde794327214250eed2a8ddaca2f2d7c7f12e7a | Build issue with distutils. | setup.py | setup.py | #!/usr/bin/python
from distutils.core import setup, Extension
from distutils import sysconfig
import class_parser
import sys
import os
import pdb
# Distutils is retarded - We need to monkey patch it to make it saner.
from distutils import cygwinccompiler
PYTHON_HOME = "/home/scudette/.wine/drive_c/Python26/"
CONFIG... | Python | 0 | @@ -4018,16 +4018,44 @@
ce.c'%5D%0A%0A
+%0Aimport pdb; pdb.set_trace()
%0A%0Asetup(
@@ -4393,46 +4393,8 @@
)%22,%0A
- py_modules=%5B'pytsk3.__init__'%5D,%0A
@@ -4429,15 +4429,8 @@
tsk3
-.pytsk3
', S
|
123d57e0ef22adb5ae5f09b435c69f0589f521d1 | Correct setup.py description field error when it contains new lines | setup.py | setup.py | from setuptools import setup
long_description = """A collection of heuristic algorithms for solving the 2D knapsack problem,
also known as the bin packing problem. In essence packing a set of rectangles into the
smallest number of bins."""
setup(
name="rectpack",
version="0.2.2",
description=long_descript... | Python | 0.000001 | @@ -288,16 +288,69 @@
2%22,%0A
+description=%222D Rectangle packing library%22,%0A long_
descript
|
72cb87ea53a294c2395818c25f42379293b37308 | Bump version number | setup.py | setup.py | #!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='blah',
version='0.1.4',
description='Thin wrapper around source control systems',
long_description=read("README"),
author='Michael ... | Python | 0.000002 | @@ -194,9 +194,9 @@
0.1.
-4
+5
',%0A
|
d19290c1fa91c08fb6a2de5274f484d9f868da22 | Updated email address to be moz.com | setup.py | setup.py | #! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
setup(name = 'simhash_db',
version = '0.1.0',
description = 'Near-Duplicate Detection with Simhash in Databases',
url = 'http://github.com/seomoz/simhash-db',
author ... | Python | 0.999978 | @@ -370,18 +370,15 @@
dan@
-seo
moz.
-org
+com
',%0A
|
e0993dcf8dc38462604e38d7a31b80d3880e696b | Kill get_version hack | setup.py | setup.py | # coding: utf-8
import os
import sys
from setuptools import setup
PACKAGE_PATH = os.path.join(
os.path.abspath(os.path.dirname(__file__)), "relief"
)
if sys.version_info[:2] < (2, 7):
install_requires = ['ordereddict>=1.1', 'Counter>=1.0.0']
else:
install_requires = []
def get_version():
path = os... | Python | 0.000001 | @@ -60,16 +60,48 @@
setup%0A%0A
+from relief import __version__%0A%0A
%0APACKAGE
@@ -317,326 +317,8 @@
%5D%0A%0A%0A
-def get_version():%0A path = os.path.join(PACKAGE_PATH, %22__init__.py%22)%0A with open(path) as f:%0A for line in f:%0A if line.startswith(%22__version__%22):%0A ... |
429954c30bc54dcc99cfc67ba59017859b38807c | version number update | setup.py | setup.py | """setup function for CALLHORIZONS module"""
from setuptools import setup, find_packages
setup(
name="CALLHORIZONS",
version="1.0.13",
author="Michael Mommert",
author_email="michael.mommert@nau.edu",
description="CALLHORIZONS is a Python interface to access JPL HORIZONS ephemerides and orbital el... | Python | 0.000002 | @@ -135,12 +135,11 @@
=%221.
-0
+1
.1
-3
%22,%0A
|
9232fa78e6a04f25f493fef91014384719c730ee | remove unused import from setup.py | setup.py | setup.py | from setuptools import setup
import flask_secure_headers
setup(
name = 'flask-secure-headers',
packages = ['flask_secure_headers'],
include_package_data = True,
version = '0.2',
description = 'Secure Header Wrapper for Flask Applications',
long_description = """
Add security headers to a Flask application... | Python | 0 | @@ -27,36 +27,8 @@
up%0A%0A
-import flask_secure_headers%0A
%0Aset
|
bd3942724c7a2f04d5eb6277a35e5ebf54ebf6e0 | Add python 3.6 in the supported version | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import shutil
import os
import sys
import glob
from setuptools import setup, find_packages
try:
import py2exe
except ImportError:
pass
import smserver
for filename in glob.glob("cfg/*.yml*"):
shutil.copy(filename, "smserver/_fallback_conf")
conf_dir = None
... | Python | 0.000001 | @@ -1,49 +1,24 @@
-#!/usr/bin/env python%0A# -*- coding: utf-8 -*-
+%22%22%22 Setup script %22%22%22
%0A%0Aim
@@ -1483,16 +1483,65 @@
: 3.5',%0A
+ 'Programming Language :: Python :: 3.6',%0A
%5D,%0A%0A
|
235609b1b370fee8f03cdf0d9d6a70075bd6e50e | Update to next dev version | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014, 2015 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redist... | Python | 0 | @@ -1024,16 +1024,21 @@
= '0.5.
+1.dev
0',%0A%0A
|
44c5d4e06cd2d7c041eb5f21435013bb6f86b9e2 | Add backports.typing requirement | setup.py | setup.py | #!/usr/bin/env python
"""setup.py
Defines the setup instructions for the hug framework
Copyright (C) 2016 Timothy Edmund Crosley
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restrict... | Python | 0.000001 | @@ -3193,32 +3193,52 @@
con', 'requests'
+, 'backports.typing'
%5D,%0A install
@@ -3275,16 +3275,36 @@
equests'
+, 'backports.typing'
%5D,%0A
|
dc30bf4bf542ec89bb34003b061f7d431f36443a | version bump to v1.3.3 | setup.py | setup.py | #!/usr/bin/env python3
import subprocess
import fnmatch
from setuptools import Command, setup, find_packages
from setuptools.command.build_py import build_py as _build_py
VERSION = '1.3.2'
AUTHOR = 'Rutgers Open System Solutions'
class BuildWebpack(Command):
description = 'build webpack assets'
user_opti... | Python | 0.000001 | @@ -182,17 +182,17 @@
= '1.3.
-2
+3
'%0A%0AAUTHO
|
fdb461f000adefff0d1050464e5783c96222f364 | Add minimum version for pycryptodome | setup.py | setup.py | from setuptools import setup
setup(
name='scuevals-api',
packages=['scuevals_api'],
include_package_data=True,
test_suite='tests',
entry_points={
'console_scripts': [
'app=scuevals_api.cmd:cli'
]
},
install_requires=[
'alembic==0.9.7',
'beautifuls... | Python | 0 | @@ -718,24 +718,54 @@
==2.7.3.2',%0A
+ 'pycryptodome%3E=3.4.7'%0A
'pyt
|
3a279370ca4847abfe82f1be99111e04bf2de61b | Remove unnecessary import | setup.py | setup.py | # setup.py for pySerial
#
# Windows installer:
# "python setup.py bdist_wininst"
#
# Direct install (all systems):
# "python setup.py install"
#
# For Python 3.x use the corresponding Python executable,
# e.g. "python3 setup.py ..."
import sys
try:
from setuptools import setup
except ImportError:
from dis... | Python | 0.000011 | @@ -235,20 +235,8 @@
.%22%0A%0A
-import sys%0A%0A
try:
|
3121572d452a58161f9bb9e7f813254b592b680b | bump version | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='hops',
version='1.1.5',
author='Robin Andersson',
author_email='robin.eric.andersson@gmail.com',
description='A helper library for Hops that facilitates deve... | Python | 0 | @@ -164,17 +164,17 @@
on='1.1.
-5
+6
',%0A a
@@ -612,9 +612,9 @@
1.1.
-5
+6
.tar
|
426247045dacf56fc5c7324fffbc140e9ea1b2e2 | Bump tqdm from 4.37.0 to 4.38.0 | setup.py | setup.py | #!/usr/bin/env python3
from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='ogn-python',
versio... | Python | 0.000001 | @@ -1657,17 +1657,17 @@
qdm==4.3
-7
+8
.0',%0A%09'r
|
2029b86059f538f6ab5ab3e472708a9632141010 | add holoviews to dependencies | setup.py | setup.py | from os import path
from setuptools import find_packages, setup
DISTNAME = 'pyciss'
DESCRIPTION = "Software for handling Cassini ISS data"
AUTHOR = "K.-Michael Aye"
AUTHOR_EMAIL = "michael.aye@lasp.colorado.edu"
MAINTAINER_EMAIL = AUTHOR_EMAIL
URL = "https://github.com/michaelaye/pyciss"
LICENSE = "ISC"
KEYWORDS = ['... | Python | 0 | @@ -762,16 +762,29 @@
'xarray'
+, 'holoviews'
%5D,%0A s
|
0cae8f8e892bf40e30598cee3fe32dc496a8ec7b | Fix setup.py setuptools reference | setup.py | setup.py | #!/usr/bin/env python3
from distutils.core import setup
setup(
name='PyKazoo',
version='0.0a1',
packages=['pykazoo'],
install_requires=['requests==2.7.0'],
url='https://github.com/tnewman/PyKazoo',
license='MIT',
author='Thomas Newman',
author_email='tnewman@users.noreply.github.com',
... | Python | 0 | @@ -17,16 +17,72 @@
ython3%0A%0A
+# noinspection PyUnresolvedReferences%0Aimport setuptools%0A
from dis
|
ea6a22678e8169ced9465269b68fbe9394aa2efb | Bump version to 0.2 | setup.py | setup.py | import os
import setuptools
setuptools.setup(
name='factory_djoy',
version='0.1',
description="Wrappers over Factory Boy's Django Factories",
url='http://github.com/jamescooke/factory_djoy',
author='James Cooke',
author_email='github@jamescooke.info',
license='MIT',
packages=setupto... | Python | 0.000001 | @@ -81,17 +81,17 @@
sion='0.
-1
+2
',%0A%0A
|
226654bfc455991f9f3134c18ac91fced704f09e | Bump version to 0.5.16. | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
VERSION = '0.5.15'
if __name__ == '__main__':
setup(
name='datastream',
version=VERSION,
description="Datastream API time-series library.",
long_description=open(os.path.join(os.path.dirname(__file__), 'R... | Python | 0 | @@ -88,17 +88,17 @@
= '0.5.1
-5
+6
'%0A%0Aif __
|
a3f150be3ea89a87eca9902da58aa93d6623da42 | bump version to 0.2.6 | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-councilmatic',
version='0.2... | Python | 0.000001 | @@ -318,9 +318,9 @@
0.2.
-5
+6
',%0A
|
d9544b310f791493633b9d78cc5b257d041366c5 | Bump up version | setup.py | setup.py | import os
from setuptools import setup, find_packages
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
REQUIREMENTS = ["redis", "redlock-py"]
README = """
probit-scheduler - redis backed scheduler for celery beat. This scheduler was made from htt... | Python | 0 | @@ -1492,9 +1492,9 @@
0.1.
-3
+4
',%0A
|
e19826d9da69dbdb704d3d366f864b9317ac2861 | Disable unused django-setuptest. | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
try:
README = open('README.rst').read()
except:
README = None
try:
REQUIREMENTS = open('requirements.txt').read()
except:
REQUIREMENTS = None
setup(
name='newspeak',
version="0.1",
description='Standalone Django based feed... | Python | 0 | @@ -1018,191 +1018,8 @@
'%5D,%0A
- test_suite='setuptest.setuptest.SetupTestSuite',%0A tests_require=(%0A 'django-setuptest',%0A 'argparse', # apparently needed by django-setuptest on python 2.6%0A ),%0A
|
105a23c0e07c737b9bbe7face42443a26409df32 | Declare Python 3 support in setup.py. | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from webassets.six.moves import map
from webassets.six.moves import zip
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
except ImportError:
cmdclass = {}
# Figure out the version. This could al... | Python | 0.000001 | @@ -1641,16 +1641,63 @@
ython',%0A
+ 'Programming Language :: Python :: 3',%0A
|
aa6bc481529022bb878fcd76903bb0ccb93d7048 | Fix schema salad pin. | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
import setuptools.command.egg_info as egg_info_cmd
import shutil
from setuptools import setup, find_packages
SETUP_DIR = os.path.dirname(__file__)
README = os.path.join(SETUP_DIR, 'README.rst')
try:
import gittaggers
tagger = gittaggers.EggInfoFromGit
except Import... | Python | 0 | @@ -1351,13 +1351,13 @@
1261
-64443
+90004
'%0A
|
1b5aacb80c4e0131eaea68da0d2d78410ea76980 | alphabetize the classifiers | setup.py | setup.py | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.9.6'
setup(
name="Pylons",
version=version,
description='Pylons Web Framework',
long_description="""
Pylons
======
The Pylons web framework is aimed at making webapps and large programmatic
w... | Python | 0.999794 | @@ -2477,24 +2477,55 @@
on/Stable%22,%0A
+ %22Framework :: Pylons%22,%0A
%22Int
@@ -2766,16 +2766,65 @@
opic ::
+Internet :: WWW/HTTP :: WSGI%22,%0A %22Topic ::
Software
@@ -2869,88 +2869,8 @@
dule
-s%22,%0A %22Topic :: Internet :: WWW/HTTP :: WSGI%22,%0A %22Framework :: Pylon... |
e03d38e2ca78aa82c8791b43beaa044e27fc4424 | Bump version to 0.2.1 | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='django-controlcenter',
version='0.2.0',
description='Set of widgets to build dashboards for your Django-project.',
long_description='',
url='https://github.com/byashimov/django-controlcenter',
author='Murad Byashimov',
author_email='b... | Python | 0.000001 | @@ -95,17 +95,17 @@
on='0.2.
-0
+1
',%0A d
@@ -1262,16 +1262,55 @@
: 1.9',%0A
+ 'Framework :: Django :: 1.10',%0A
%5D,%0A)
|
1c02453275d32109028aa3b915e56640404e74fe | Update setup.py | setup.py | setup.py | # coding:utf-8
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.version_info < (2, 6):
error = 'ERROR: qingcloud-sdk requires Python Version 2.6 or above.'
print >> sys.stderr, error
sys.exit(1)
setup(
name='qingcloud-sdk',
version=... | Python | 0 | @@ -661,16 +661,42 @@
d.iaas',
+ 'qingcloud.iaas.actions',
%0A
|
b82e851a74c2a3ac4823723be2f6b0caf88cb7c8 | use distutils for comming python 3.12 | setup.py | setup.py | import sys
from distutils.core import setup, Command
from distutils.extension import Extension
try:
from Cython.Build import cythonize
ext_modules = cythonize([
Extension("cymysql.packet", ["cymysql/packet.pyx"]),
Extension("cymysql.charset", ["cymysql/charset.py"]),
Extensi... | Python | 0 | @@ -4,16 +4,98 @@
ort sys%0A
+try:%0A from setuptools import setup, Command, Extension%0Aexcept ImportError:%0A
from dis
@@ -128,16 +128,20 @@
Command%0A
+
from dis
|
2998e76c9129ef5740ab177343db262c391594a6 | Bump pytest-spec version. | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
import os
import sys
import codecs
try:
from setuptools.core import setup, find_packages
except ImportError:
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
if sys.version_info < (2... | Python | 0 | @@ -911,31 +911,8 @@
ule'
-, 'pytest-spec%3C=0.2.22'
%5D%0A%0As
@@ -2276,95 +2276,8 @@
= %5B%0A
-%09%09%09'git+https://github.com/illico/pytest-spec.git@feature/py26#egg=pytest-spec-0.2.22'%0A
%09%09%5D,
|
8866c06ee9131cf0e52c08e0ae9e08db90347590 | increment version | setup.py | setup.py | # coding: utf-8
from setuptools import setup
setup(
name='graphite_raintank',
version='0.1',
url='https://github.com/raintank/graphite_raintank',
license='apache2',
author='Anthony Woods',
author_email='awoods@raintank.io',
description=('Raintank backend plugin for graphite_api'),
long_... | Python | 0.000004 | @@ -95,9 +95,9 @@
='0.
-1
+2
',%0A
|
6664997352f6138028260de4264ec86e014b91e6 | version number updated | setup.py | setup.py | #!/usr/bin/env python
import sys
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
if sys.version_info < (3, 5, 0):
warn("The minimum Python version supported by pdf2xlsx is 3.5.")
exit()
long_description = """
Extract zip, search for pdf... | Python | 0.000001 | @@ -631,16 +631,18 @@
ion=%220.1
+.0
%22,%0A %0A
|
ba6f96fe310387b88afb9a17ef4309cb7f987663 | Version 0.4.7 | setup.py | setup.py |
from setuptools import setup, find_packages
setup(
name="filebrowser_safe",
version="0.4.6",
description="A snapshot of the filebrowser_3 branch of django-filebrowser, "
"packaged as a dependency for the Mezzanine CMS for Django.",
long_description=open("README.rst").read(),
author... | Python | 0 | @@ -96,9 +96,9 @@
0.4.
-6
+7
%22,%0A
|
e71fed207a64c429894f455513fcef38e0f215c9 | Fix version retrieval | setup.py | setup.py | #!/usr/bin/env python
# Filename: setup.py
"""
KM3Pipe setup script.
"""
from setuptools import setup
try:
import builtins
except ImportError:
import __builtin__ as builtins
# so we can detect in __init__.py that it's called from setup.py
builtins.__KM3PIPE_SETUP__ = True
from pkg_resources import get_distr... | Python | 0.000006 | @@ -550,16 +550,17 @@
ion(
-__name__
+'km3pipe'
).ve
|
4744e2df3a99ddca3caae4359985daffb30bb94b | Update Flask-Z3950 | setup.py | setup.py | # -*- coding: utf8 -*-
"""
pybossa-z3950
-------------
A PyBossa plugin for Z39.50 integration.
"""
import re
import os
from setuptools import setup
version = re.search('^__version__\s*=\s*"(.*)"',
open('pybossa_z3950/__init__.py').read(),
re.M).group(1)
try:
here = os.... | Python | 0 | @@ -483,17 +483,17 @@
50%3E=0.2.
-2
+3
%22%5D%0A%0A%0Aset
|
70ba4f53312ba3d77b5fd4f1d66dcb672f1365ba | Version bump | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import print_function
try:
from setuptools import setup, find_packages, Extension
except ImportError:
from distutils.core import setup, Extension
def find_packages():
return ['treeCl', 'treeCl.interfacing', 'treeCl.tasks', 'treeCl.utils']
from Cython.Distut... | Python | 0.000001 | @@ -1784,17 +1784,17 @@
= '0.1.2
-2
+3
'%0A%0Alogo
@@ -2999,9 +2999,9 @@
1.0.
-5
+6
',%0A
|
43dc6dc0a9b33de0db1f79f7470d69519192dc1f | Put tests_require into extras_require also | setup.py | setup.py | from setuptools import setup, find_packages
try:
import nose.commands
extra_args = dict(
cmdclass={'test': nose.commands.nosetests},
)
except ImportError:
extra_args = dict()
setup(
name='dear_astrid',
version='0.1.0',
author='Randy Stauner',
author_email='randy@magnificent-tears.com',
package... | Python | 0.000001 | @@ -182,16 +182,183 @@
dict()%0A%0A
+# TODO: would this work? (is the file included in the dist?)%0A#tests_require = %5Bl.strip() for l in open('test-requirements.txt').readlines()%5D%0Atests_require = %5B'mock'%5D%0A%0A
setup(%0A
@@ -841,37 +841,73 @@
ire=
-%5B%0A 'nose',%0A 'mock'
+tests_require,%0A%0A ext... |
1c2e79fb67fb2d71e1d8714f47552af3b442fda8 | bump version to 1.0.6 | setup.py | setup.py |
try:
from setuptools import setup
except ImportError:
raise ImportError(
"setuptools module required, please go to "
"https://pypi.python.org/pypi/setuptools and follow the instructions "
"for installing setuptools"
)
with open("README.md", "r") as fh:
long_description = fh.re... | Python | 0 | @@ -373,17 +373,17 @@
on='1.0.
-5
+6
',%0A u
|
8ebb408c23038ac3a003727cb907ff23dd02e130 | Set long_description_content_type in setup.py | setup.py | setup.py | # coding: utf-8
#
# Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com>
# Copyright 2012 Google, Inc & contributors.
#
# 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.a... | Python | 0 | @@ -3137,16 +3137,66 @@
ngelog,%0A
+ long_description_content_type=%22text/x-rst%22,%0A
au
|
797d2ea521b40bbbdab5430f1d08dbb3e5fb1eb1 | Fix repo URL in setup.py | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup script for the pyasdf module.
:copyright:
Lion Krischer (krischer@geophysik.uni-muenchen.de), 2014
:license:
BSD 3-Clause ("BSD New" or "BSD Simplified")
"""
import inspect
import os
from setuptools import setup, find_packages
def get_package_data():
... | Python | 0.000001 | @@ -1316,18 +1316,18 @@
rl=%22http
+s
:
-
//github
|
dbf1da4da04fd926e96e1f370efb938e99cbec05 | Bump version patch level | setup.py | setup.py | import warnings
try:
from Cython.Distutils import build_ext
from setuptools import setup, Extension
HAVE_CYTHON = True
except ImportError as e:
warnings.warn(e.message)
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
HAVE_CYTHON = False
import num... | Python | 0 | @@ -1450,16 +1450,18 @@
' : '0.8
+.1
',%0A '
|
7519e8c1a5e97aa65968e3fad4c500d39328f74b | bump version | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy as np
import io
PACKAGE_NAME = 'pysaliency'
VERSION = '0.2.1'
DESCRIPTION = 'A Python Framework for Saliency Modeling and Evaluation'
AUTHOR = 'Matthias Kümme... | Python | 0 | @@ -218,9 +218,9 @@
0.2.
-1
+2
'%0ADE
|
d214fbfacd52d64ac9ad742a2af0047f5fb0a115 | update version to trigger build | setup.py | setup.py | from setuptools import setup, find_packages
import os
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='donkeycar',
version='2.5.2',
description='Self driving library for python.',
long_description=long_description,
long_description_content_type="text/markdown",... | Python | 0 | @@ -162,17 +162,17 @@
on='2.5.
-2
+5
',%0A
|
e31b93d1fdda810d70d3050c73c6638b29219d12 | Increase the allowed version of aniso8601 (#1072) | setup.py | setup.py | import ast
import codecs
import re
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
_version_re = re.compile(r"VERSION\s+=\s+(.*)")
with open("graphene/__init__.py", "rb") as f:
version = ast.literal_eval(_version_re.search(f.read().decode("utf-8")).g... | Python | 0 | @@ -2159,17 +2159,17 @@
601%3E=6,%3C
-8
+9
%22,%0A %5D
|
9031637554fa0b844f33d208d2527825fdd629fc | Update pypi classifiers. | setup.py | setup.py | #!/usr/bin/env python
import sys
from admin_honeypot import __version__, __description__, __license__
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
setup(
name='django-admin-honeypot',
version=__version__,
description=__descrip... | Python | 0 | @@ -796,9 +796,9 @@
: 2.
-6
+7
',%0A
@@ -831,35 +831,33 @@
ge :: Python ::
-2.7
+3
',%0A 'Prog
@@ -878,32 +878,34 @@
ge :: Python ::
+3.
3',%0A 'Pro
@@ -937,17 +937,17 @@
on :: 3.
-2
+4
',%0A
@@ -978,33 +978,33 @@
:: Python :: 3.
-3
+5
',%0A 'Topi
|
f1c87e5e4a5f948e17024b2d6bf90026bb70aaa4 | version 0.3 | setup.py | setup.py | from setuptools import setup
setup(name='tropopause',
version='0.2',
description='Extra utilities for troposphere',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
],
url='http://gi... | Python | 0.000001 | @@ -65,17 +65,17 @@
sion='0.
-2
+3
',%0A
|
a387f0f91bd7fa8a86401de5060b073f1e9b2e82 | fix packages in setup.py for PyPI | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from glob import glob
name = "jcvi"
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Pyt... | Python | 0 | @@ -558,66 +558,61 @@
es=%5B
-x for x in find_packages(%22../%22) if x.split('.')%5B0%5D == name
+name%5D + %5B'.'.join((name, x)) for x in find_packages()
%5D,%0A
|
0801bdf14ede5d10b75d9adb39d0083f32d52c2f | version bump | setup.py | setup.py | from setuptools import setup
setup(
name='pyinapp',
version='0.1.3',
packages=['pyinapp'],
install_requires=['rsa', 'requests'],
description="InApp purchase validation API wrappers",
keywords='inapp store purchase googleplay appstore market',
author='Ivan Mukhin',
author_email='muhin.i... | Python | 0.000001 | @@ -72,9 +72,9 @@
0.1.
-3
+4
',%0A
|
f428dace08e11cdba34767dea989380fa6d4e423 | Add long_description | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
requires = [
'mecab-python3',
]
setup(
name='miura',
version='0.1.0',
description='MIURA: pattern matcher for morpheme sequences',
author='Yuya Unno',
author_email='unnonouno@gmail.com',
url='https://github.com/unnonouno/miura',
p... | Python | 0.001235 | @@ -16,16 +16,26 @@
python%0A%0A
+import os%0A
from set
@@ -97,16 +97,103 @@
%0A %5D%0A%0A
+def read(name):%0A return open(os.path.join(os.path.dirname(__file__), name)).read()%0A%0A
setup(%0A
@@ -291,24 +291,65 @@
sequences',%0A
+ long_description=read('README.rst'),%0A
author='
|
d24daa18023d0d59d70a4328466613f3a03de039 | add tests_require packages | setup.py | setup.py | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
name="pinax-co... | Python | 0.000001 | @@ -506,16 +506,17 @@
%3E=1.0.1%22
+,
%0A %5D,%0A
@@ -650,16 +650,124 @@
quire=%5B%0A
+ %22django-test-plus%3E=1.0.11%22,%0A %22django-appconf%3E=1.0.1%22,%0A %22django-user-accounts%3E=1.3.1%22,%0A
%5D,%0A
|
97dde7daf96211278d039a764c4203df39bea77d | Implement next to satisfy Iterator interface | uplink/clients/io/interfaces.py | uplink/clients/io/interfaces.py | # Standard library imports
import collections
class IllegalRequestStateTransition(RuntimeError):
"""An improper request state transition was attempted."""
def __init__(self, state, transition):
self._state = state
self._transition = transition
def __str__(self):
return (
... | Python | 0 | @@ -1816,16 +1816,37 @@
cute()%0A%0A
+ next = __next__%0A%0A
def
|
4b0ed8b6030450e6d99909a7c683e9642e546387 | fix test_remove_watch_file flakiness | urwid/tests/test_event_loops.py | urwid/tests/test_event_loops.py | import os
import unittest
import platform
import urwid
from urwid.compat import PYTHON3
class EventLoopTestMixin(object):
def test_event_loop(self):
rd, wr = os.pipe()
evl = self.evl
out = []
def step1():
out.append("writing")
os.write(wr, "hi".encode('asci... | Python | 0 | @@ -835,32 +835,80 @@
evl = self.evl%0A
+ fd_r, fd_w = os.pipe()%0A try:%0A
handle =
@@ -923,17 +923,20 @@
ch_file(
-5
+fd_r
, lambda
@@ -935,32 +935,36 @@
, lambda: None)%0A
+
self.ass
@@ -1002,32 +1002,36 @@
andle))%0A
+
+
self.assertFalse
@@ -1057,24 +1057,9... |
a61b79a6d427745f3bf240554b3dd852d8e6ed65 | Add classifiers | setup.py | setup.py | from distutils.core import setup
setup(name='Fridge',
version='0.1',
py_modules=['fridge'],
description='Persistent JSON-encoded distionary',
author='Anton Barkovsky',
author_email='swarmer.pm@gmail.com',
url='http://fridge.readthedocs.org/')
| Python | 0.000907 | @@ -284,10 +284,515 @@
cs.org/'
+,%0A classifiers=%5B%0A 'Development Status :: 3 - Alpha',%0A 'Intended Audience :: Developers',%0A 'License :: OSI Approved :: MIT License',%0A 'Operating System :: OS Independent',%0A 'Programming Language :: Python :: 2',... |
59608bca60edc3414f875c0238fabb5be10de759 | version bump | setup.py | setup.py | from setuptools import setup
setup(
name='polygon-cli',
version='1.0.5',
packages=['polygon_cli', 'polygon_cli.actions'],
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
descr... | Python | 0.000001 | @@ -83,9 +83,9 @@
1.0.
-5
+6
',%0A
|
1ad53aaf27ce8dda87298d35b6d7d4bf6862c420 | remove debug output | State.py | State.py | # -*- coding: utf-8 -*-
from utils import *
from Song import Song
def loadQueue(state):
print "load queue"
def songs():
if state.curSong:
# We just started the player and we have a current song from persistent storage.
# Yield it now so that we begin playing with this song.
# Yield the Song object itse... | Python | 0.000101 | @@ -2310,87 +2310,30 @@
:%0A%09%09
-print %22state nextSong%22%0A%09%09self.player.nextSong()%0A%09%09print %22state nextSong finish%22
+self.player.nextSong()
%0A%0A%09@
|
a4bcfed20cab98154df3a67572c27333cfcbfed1 | Version bump | setup.py | setup.py | from setuptools import setup
setup(
name = "PySPED",
version = "0.1.3",
author = "Aristides Caldeira",
author_email = 'aristides.caldeira@tauga.com.br',
test_suite='tests',
keywords = ['nfe', 'nfse', 'cte', 'sped', 'edf', 'ecd'],
classifiers=[
'Development Status :: 4 - Beta',
... | Python | 0 | @@ -70,13 +70,13 @@
= %22
+1.
0.1
-.3
%22,%0A
@@ -1628,24 +1628,21 @@
'
-Geraldo(%3E=0.4.16
+lxml(%3E=3.7.3)
)',%0A
@@ -1663,17 +1663,46 @@
c(%3E=1.0.
-5
+7)',%0A 'Geraldo(%3E=0.4.16
)',%0A
|
3bf4ce1f01d3e67702d91ccf4119ad6d956af99e | bump to 0.4.4 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -
#
# This file is part of socketpool.
# See the NOTICE for more information.
import os
from setuptools import setup, find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License... | Python | 0.000019 | @@ -804,9 +804,9 @@
0.4.
-3
+4
',%0A
|
590a7b926af1e57d48a087f18556caa4f3e1170c | Remove the duplicated filter in PreferenceAdmin | admin.py | admin.py | # -*- coding: utf-8 -*-
# File: src/webframe/admin.py
# Date: 2019-11-21 14:55
# Author: Kenson Man <kenson@breakthrough.org.hk>
# Desc: The file provide the Admin-Tools in webframe module
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _, ugettext
from .models import *
impo... | Python | 0.000001 | @@ -1367,27 +1367,8 @@
ue',
- 'owner__username',
'ow
|
b6b4e423ede0a63a6c0a058cacc665aa08849046 | Replace Unwrapped with Value on proto method names (#2283) | synth.py | synth.py | # Copyright 2018 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | Python | 0 | @@ -2366,16 +2366,179 @@
lass%22)%0A%0A
+# Replace %22Unwrapped%22 with %22Value%22 for method names.%0As.replace(%0A %22src/V*/**/*.php%22,%0A r%22public function (%5Cw%7B0,%7D)Unwrapped%22,%0A r%22public function %5C1Value%22%0A)%0A%0A
# fix ye
|
e11a786f28e84e8bfa313ca252a33ccd10ae2664 | Use latest artman version and remove final keyword (#2274) | synth.py | synth.py | # Copyright 2018 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | Python | 0 | @@ -656,129 +656,8 @@
os%0A
-# https://github.com/googleapis/artman/pull/655#issuecomment-507784277%0Aos.environ%5B%22SYNTHTOOL_ARTMAN_VERSION%22%5D = %220.29.1%22%0A
impo
@@ -1988,16 +1988,134 @@
int%60%22)%0A%0A
+# prevent proto messages from being marked final%0As.replace(%0A %22src/V*/**/*.php%22,%0A r%22... |
83dd154759a430918931072e8e82db413c4f5741 | Use proper settings | tasks.py | tasks.py | # encoding: utf-8
from invoke import task
from waterbutler.server import settings
@task
def tornado(port=settings.PORT, address=settings.ADDRESS, debug=settings.DEBUG):
from waterbutler.server import serve
serve(port, address, debug)
| Python | 0.000008 | @@ -45,39 +45,32 @@
from waterbutler
-.server
import settings
|
2c750eb0f8449f1276ecce7b4502570fccb72220 | Fix some hwhoops. | tasks.py | tasks.py | # -*- coding: utf-8 -*-
import functools
import os
import invoke
def _out(name, message):
print('[\033[1;37m{}\033[0m] {}'.format(name, message))
@invoke.task(name='collect')
def asset_collect(verbose=False, **kwargs):
out = functools.partial(_out, 'project.collect')
hide = 'out' if not verbose else No... | Python | 0.000003 | @@ -1,8 +1,9 @@
+
# -*- co
@@ -3769,24 +3769,25 @@
ascript
-base.app
+component
s.%0A i
@@ -4037,16 +4037,17 @@
pts/
-base.app
+component
s.mi
|
040cc5e6f384f68ae4a64a3cc6905b11c771f3c8 | fix call | tasks.py | tasks.py | import logging
import celery
import os
from totalimpact import item as item_module
from totalimpact import db
from totalimpact import tiredis
from totalimpact.providers.provider import ProviderFactory, ProviderError
logger = logging.getLogger("core.tasks")
celery_app = celery.Celery('tasks',
broker=os.getenv("C... | Python | 0.000001 | @@ -5531,16 +5531,69 @@
dentials
+, myredis, provider_name, alias_providers_already_run
)%0A%0A a
|
cae6d756294c90b93e5505ce5eec9f93ced83398 | Improve test task; switch flake8->syntax | tasks.py | tasks.py | # -*- coding: utf-8 -*-
import os
import sys
import webbrowser
from invoke import task
docs_dir = 'docs'
build_dir = os.path.join(docs_dir, '_build')
@task
def test(ctx):
flake(ctx)
import pytest
errcode = pytest.main(['tests'])
sys.exit(errcode)
@task
def flake(ctx):
"""Run flake8 on codebase."... | Python | 0.000005 | @@ -168,51 +168,301 @@
(ctx
-):%0A flake(ctx)%0A import pytest%0A err
+, watch=False, last_failing=False):%0A %22%22%22Run the tests.%0A%0A Note: --watch requires pytest-xdist to be installed.%0A %22%22%22%0A import pytest%0A syntax(ctx)%0A args = %5B%5D%0A if watch:%0A args.append... |
45f5928d578851108ee28cf036dbadaceb69a0f7 | Update pytest. | tasks.py | tasks.py | #!/usr/bin/env python
"""
Deployment file to facilitate releases of matgendb.
"""
from __future__ import division
import glob
import datetime
import re
import json
import requests
import os
from invoke import task
from monty.os import cd
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials ... | Python | 0 | @@ -3487,17 +3487,23 @@
un(%22
-nosetests
+pytest matgendb
%22)%0A%0A
|
1235589dae5cf5dc1a8bf1114f65f0b36bb7bca1 | Simplify tests | tests.py | tests.py | """
Unit tests runner for ``django-guardian`` based on boundled example project.
Tests are independent from this example application but setuptools need
instructions how to interpret ``test`` command when we run::
python setup.py test
"""
import os
import sys
import django
os.environ["DJANGO_SETTINGS_MODULE"] = ... | Python | 0.000002 | @@ -263,34 +263,57 @@
sys%0A
-import django%0A%0Aos.environ%5B
+%0A%0Adef main():%0A os.environ.setdefault(%0A
%22DJA
@@ -336,13 +336,11 @@
ULE%22
-%5D = '
+, %22
guar
@@ -368,209 +368,81 @@
ings
-'%0Afrom guardian.testapp import testsettings as settings%0A%0A%0Adef run_tests(settings):%0A from djang... |
64986995b8f13c5ce1f9adf9e3abfe2e6661a3d7 | Improve precision of docstring wording | tests.py | tests.py |
import unittest
from pysenbug import pysenbug
class TestPysenbug(unittest.TestCase):
""" Due to the intentionally unpredictable nature of some of pysenbug's
use cases, there is no simple deterministic test that will always
conclusively prove that the function worked as intended in a finite number
of ... | Python | 0.000463 | @@ -88,16 +88,93 @@
%0A %22%22%22
+ Subclass unittest's TestCase in order to unit test the pysenbug module.%0A%0A
Due to
@@ -336,24 +336,25 @@
hat the
-function
+decorator
worked
@@ -640,18 +640,25 @@
gned to
-be
+test only
determi
@@ -668,17 +668,23 @@
tic
-in nature
+execution paths
.%0A%0A
@@ ... |
3826d023191a9c1c559a4b53768a67293c7c2aba | Tweak coverage excludes. | tests.py | tests.py | import os
import sys
import unittest
import doctest
import django
south = ()
try:
if django.VERSION < (1,7):
import south
south = ('south',)
except ImportError:
pass
BASE_PATH = os.path.dirname(__file__)
def main():
"""
Standalone django model test with a 'memory-only-django-installat... | Python | 0 | @@ -1987,16 +1987,42 @@
UDES = %5B
+'boardinghouse.__init__',
'boardin
|
f71b0193481fe06d0b5101fd3ed70fd91fa76e85 | Create socket Stub as a test attribute in setUp(). | tests.py | tests.py | import logging
import logging.handlers
import unittest
import redispatcher
from redispatcher import Redis, fmtcmd, logcmd, wirecmd
try:
NullHandler = logging.NullHandler
except AttributeError:
class NullHandler(logging.Handler):
def emit(self, record): pass
log = logging.getLogger(__name__)
log.addH... | Python | 0 | @@ -2977,32 +2977,98 @@
est.setUp(self)%0A
+ self.socket = Stub(redispatcher.socket, %22socket%22).patch()%0A
self.pat
@@ -3309,51 +3309,19 @@
-Stub(redispatcher.socket, %22socket%22).patch()
+self.socket
,%0A
@@ -3832,154 +3832,30 @@
dis%0A
- socket = Stub(redispatcher.socket, %22sock... |
e6f14f8ef1bb0ab247d331b6ef023d35543663be | Update tests. | tests.py | tests.py | from io import open
import unittest
from partitioned_hash_join import (
build_hash_table,
h1,
join,
write
)
class PartitionedHashJoinTests(unittest.TestCase):
def test_h1(self):
self.assertEqual(h1('H1234567890'), 12)
def test_join(self):
r = open('r_test_bucket.txt', 'r')
... | Python | 0 | @@ -103,28 +103,93 @@
-join,%0A write
+is_duplicate,%0A join,%0A letters_for_result,%0A value_for_letter,%0A LETTERS
%0A)%0A%0A
-%0A
clas
@@ -305,16 +305,197 @@
90'), 12
+3)%0A%0A def test_is_duplicate(self):%0A self.assertTrue(is_duplicate(100, 100))%0A self.assertTrue(is_dupli... |
cf9a0130d76e3be8a436e866ed4a1dab62b74831 | Rename TestHitMiss to reflect function name | tests.py | tests.py | #!/usr/bin/env python3
import nose.tools as nose
import simulator as sim
def test_get_bin_addr_unpadded():
"""get_bin_addr should return unpadded binary address of word address"""
nose.assert_equal(
sim.get_bin_addr(180, num_addr_bits=8),
'10110100')
def test_get_bin_addr_padded():
"""g... | Python | 0 | @@ -3283,20 +3283,13 @@
Test
-CacheHitMiss
+IsHit
(obj
|
2a9f27c46810cb14d25ddb3282c72de4303ee5bd | raise KeyError on getitem | tests.py | tests.py | import unittest
class KV(object):
def __len__(self):
return 0
class KVTest(unittest.TestCase):
def test_new_kv_is_empty(self):
self.assertEqual(len(KV()), 0)
| Python | 0 | @@ -71,16 +71,72 @@
turn 0%0A%0A
+ def __getitem__(self, key):%0A raise KeyError%0A%0A
%0Aclass K
@@ -237,8 +237,134 @@
()), 0)%0A
+%0A def test_get_missing_value_raises_key_error(self):%0A with self.assertRaises(KeyError):%0A KV()%5B'missing'%5D%0A
|
9ad9cd796168dbc8a2a8e79528ecc3ff14b6f2b5 | fix ssl var | tport.py | tport.py | #!/usr/bin/env python
import sys
import fileinput
import json
import logging
from elasticsearch import Elasticsearch
from elasticsearch.helpers import bulk
import boto
from boto.s3.key import Key
import pymongo
import happybase
from docopt import docopt
from addict import Dict
import urllib3
from settings import (JS... | Python | 0.000469 | @@ -1341,20 +1341,19 @@
set_ssl=
-True
+ssl
)%0A
|
7090057e5d2c747cb2ee9550dba651537ce06664 | Add comment | train.py | train.py | #!/usr/bin/python3
import os
import time
import pickle
import configparser
import shutil
from time import localtime, strftime
from subprocess import call
from optparse import OptionParser
parser = OptionParser()
parser.add_option("--config_file", dest="config_file")
(options, args) = parser.parse_args()
config_file =... | Python | 0 | @@ -1174,17 +1174,205 @@
%0A%0A#
-Arguments
+This was designed to run in a queue system. If this is not what you want to do%0A# simply comment out the five first elements in the qsub_args list, and just run%0A# the script directly on the GPU/CPU.
%0Aqsu
|
36fe33f9058c32b2ab96484746c7a98d84b7850f | Reorganize the output that is printed by default with an option -s to print scores. | train.py | train.py | #!/usr/bin/env python
#
# Copyright 2012 Ajay Narayan, Madhusudan C.S., Shobhit N.S.
#
#
# 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
#
# Unl... | Python | 0 | @@ -3821,24 +3821,164 @@
profiler.')%0A
+ parser.add_argument(%0A '-s', '--scores', action='store_true',%0A help='Prints the scores. Cannot be run with -p turned on.')%0A
args = p
@@ -4808,16 +4808,18 @@
:%0A
+
if isins
@@ -4844,32 +4844,36 @@
, str):%0A
+
cProfile.run('tr... |
6ad32a429163b5fd92093170fd9f0adb1f98931c | Add info key to response json | src/model.py | src/model.py | # -*- coding: utf-8 -*-
import sha, json, time, uuid, operator
# placeholders
deposits = []
users = []
class User(object):
@classmethod
def user_dennis(cls):
return User(name="Dennis Blommesteijn",
email="dennis.blommesteijn@surfsara.nl", password="dennis123")
@classmethod
def ... | Python | 0 | @@ -1469,24 +1469,26 @@
self._token
+%7D,
%0A %7D%7D%0A
@@ -1484,19 +1484,28 @@
+'info':%7B
%7D%7D%0A
+%0A
def
@@ -3234,16 +3234,35 @@
nse': ''
+%7D,%0A 'info':%7B
%0A
@@ -3457,16 +3457,83 @@
._uuid%0A%0A
+ @classmethod%0A def count(cls):%0A return len(deposits)%... |
561340c241dcbd9021e27dda44675ff8eaed9ad3 | add unix_socket argument | src/mysql.py | src/mysql.py | #!/usr/bin/env python
#
# igcollect - Mysql Status
#
# Copyright (c) 2016, InnoGames GmbH
#
try:
from mysql.connector import connect
except ImportError:
from MySQLdb import connect
from argparse import ArgumentParser
from time import time
def parse_args():
parser = ArgumentParser()
parser.add_argume... | Python | 0.000015 | @@ -472,16 +472,119 @@
sword')%0A
+ parser.add_argument(%0A '--unix-socket',%0A default='/var/run/mysqld/mysqld.sock',%0A )%0A
retu
@@ -802,16 +802,54 @@
s.host,%0A
+ unix_socket=args.unix_socket,%0A
)%0A
|
b33ffb6d15c29697c158743f89c2adf5a2e19e32 | Update working draft URL. | src/setup.py | src/setup.py | #!/usr/bin/env python
#
# Copyright 2009, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | Python | 0 | @@ -2103,13 +2103,17 @@
aft-
-hixie
+ietf-hybi
-the
|
51084b951d7d878d5400a6bfca1c8da1793b0a17 | Modify init method of staffto take in staff person type only | src/staff.py | src/staff.py | from .person import Person
class Staff(Person):
def __init__(self, first_name, last_name, person_type, person_id, has_living_space = None, has_office = None):
super(Staff, self).__init__(first_name, last_name, person_type, "N", person_id, has_living_space, has_office)
| Python | 0 | @@ -89,29 +89,16 @@
st_name,
- person_type,
person_
@@ -209,19 +209,15 @@
me,
-person_type
+%22staff%22
, %22N
|
4ff9bfee6cba0ac2bd28af5c3864be4826d43a2d | Fix crash UnicodeEncodeError on url | src/tools.py | src/tools.py | # -*- coding: utf-8 -*-
import json
import os
import sys
import urllib2
def decode_to_string(data):
"""
Decode the strings in the list/set so we can call print the strings without the 'u' in front
Args:
data (list(str) or set(str))
"""
return str([x.encode('UTF8') for x in data])
def try_a... | Python | 0.00001 | @@ -508,16 +508,17 @@
except
+(
socket.g
@@ -520,24 +520,45 @@
ket.gaierror
+, UnicodeEncodeError)
:%0A re
|
b4564cedb3e2829846ded5dc07cdb9dec45b6808 | allow for no body of with expression | src/parse.py | src/parse.py | import tokenize
import ast
bools = ['true', 'false']
class Parser:
def __init__(self, source_string):
self.tokenizer = tokenize.Tokenizer(source_string)
self.function_map = {
'if': self.if_,
'define': self.define,
'lambda': self.lambda_,
'struct': s... | Python | 0.000019 | @@ -3110,32 +3110,38 @@
body = self.
+maybe_
parse_expression
|
54b7a22465be75a81257a4f3f31cc3247fd67550 | fix encoding issues during indexation | core/processor.py | core/processor.py | """
"""
import sys
sys.path.append('gen-py.twisted')
sys.path.append('../lib')
import lru
from memorystructure import MemoryStructure as ms
# TODO:
# - handle errorcode
# - metadataItems -> parsing later ?
def generate_cache_from_pages_list(pageList, precision_limit = 1, precision_exceptions = [], verbose = False) :... | Python | 0.000006 | @@ -1,12 +1,58 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A
%22%22%22%0A%0A%22%22%22%0A%0Aim
@@ -1153,16 +1153,31 @@
m%5B%22url%22%5D
+.encode('utf8')
, page_i
@@ -1186,16 +1186,31 @@
m%5B%22lru%22%5D
+.encode('utf8')
, str(pa
@@ -2452,17 +2452,47 @@
ink)
-, lrulink
+.encode('utf8'), lrulink.encode('utf... |
74c294d11c3ba98f497df73fdd5d5061da601975 | add the -j argument | src/scons.py | src/scons.py | #!/usr/bin/env python
import getopt
import os.path
import string
import sys
opts, targets = getopt.getopt(sys.argv[1:], 'f:')
Scripts = []
for o, a in opts:
if o == '-f': Scripts.append(a)
if not Scripts:
Scripts.append('SConstruct')
# XXX The commented-out code here adds any "scons" subdirs in anything
... | Python | 0.009493 | @@ -75,56 +75,474 @@
ys%0A%0A
-opts, targets = getopt.getopt(sys.argv%5B1:%5D, 'f:'
+def PrintUsage():%0A print %22Usage: scons %5BOPTION%5D... TARGET...%22%0A print %22Build TARGET or multiple TARGET(s)%22%0A print %22 %22%0A print ' -f CONSCRIPT execute CONSCRIPT instead of %22SConstruct%22'%0A ... |
ee5f6d2481168179f2da25251b086b11a6e3ef00 | allow override s3 connection to s3file | splits/s3.py | splits/s3.py | import StringIO
import gzip
import boto.s3
import boto.s3.connection
import urlparse
from itertools import groupby
def is_s3_uri(uri):
uri = str(uri)
return uri.startswith('s3://') or uri.startswith('s3n://')
class S3Uri(object):
def __init__(self, uri):
uri = str(uri)
assert is_s3_uri(ur... | Python | 0.000001 | @@ -78,16 +78,31 @@
rlparse%0A
+import zipfile%0A
from ite
@@ -566,17 +566,16 @@
ult.path
-
%0A
@@ -3521,16 +3521,27 @@
mode='r'
+, s3 = None
):%0A
@@ -3697,32 +3697,90 @@
3.%22.format(uri)%0A
+ if s3:%0A self.s3 = s3%0A else:%0A
self.__i
@@ -4243,17 +4243,16 @@... |
28efacf9c2c27e99925a5dce72c7ffc9ff5677ac | Resolve infinite loop | projects_controller.py | projects_controller.py | import psycopg2
import config
PROJECTS_KEY_ORDER = ['id', 'name', 'slug', 'description', 'photo_url', 'past_project']
GET_PROJECTS_QUERY = 'SELECT project_id, name, slug, description, photo_url, past_project FROM projects ORDER BY display_order;'
GET_PROJECT_PHOTOS_QUERY = 'SELECT photo_url FROM project_photos WHERE p... | Python | 0.000021 | @@ -1578,24 +1578,21 @@
self.
-__exit__
+close
()%0A%0A
|
194687d9b3809bb2e976c194c2245264c395000a | add some doctest cases of anyconfig.tests.common.MaskedImportLoader | anyconfig/tests/common.py | anyconfig/tests/common.py | #
# Copyright (C) 2011 - 2014 Satoru SATOH <ssato at redhat.com>
#
import imp
import os.path
import sys
import tempfile
def selfdir():
return os.path.dirname(__file__)
def setup_workdir():
return tempfile.mkdtemp(dir="/tmp", prefix="python-anyconfig-tests-")
def cleanup_workdir(workdir):
"""
FIXME... | Python | 0 | @@ -693,285 +693,812 @@
ask%0A
- %22%22%22%0A self.masked = modules%0A%0A def find_module(self, fullname, path=None):%0A if fullname in self.masked:%0A return self%0A return None%0A%0A def load_module(self, fullname):%0A %22%22%22%0A :param fullname: Full name... |
73f20bde3e0d66b9b6bd787b0c2a0a581e132faa | Add `list` command to show available instances | bossimage/cli.py | bossimage/cli.py | # Copyright 2016 Joseph Wright <rjosephwright@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify,... | Python | 0.000001 | @@ -1766,16 +1766,330 @@
tance)%0A%0A
+@main.command('list')%0Adef lst():%0A platforms = list_of('platforms')%0A profiles = list_of('profiles')%0A instances = %5B'%7B%7D-%7B%7D'.format(pl, pr) for pl in platforms for pr in profiles%5D%0A for i in instances: click.echo(i)%0A%0Adef list_of(key):%0A config... |
b22ac590b9a3049f647307fe877e6d68bf02d8c5 | check last modified date (stagecoach doesn't always return a 301 response) | bustimes/management/commands/import_bod.py | bustimes/management/commands/import_bod.py | """Import timetable data "fresh from the cow"
"""
import os
import requests
import time
from ciso8601 import parse_datetime
from email.utils import parsedate_to_datetime
from django.core.management.base import BaseCommand
from django.conf import settings
from django.utils import timezone
from busstops.models import Dat... | Python | 0 | @@ -1871,16 +1871,73 @@
dified'%5D
+%0A last_modified = parsedate_to_datetime(last_modified)
%0A%0A re
@@ -5394,32 +5394,156 @@
ged(path, url)%0A%0A
+ if modified and command.source.datetime and command.source.datetime %3E= last_modified:%0A modified = False%0A%0A
if modif
@@ -6088,3... |
0f6272aef4fd37ca1b6cf1a0a86ccaab6ff90f82 | Add year-month parsing to monthfield in admin. | dkmodelfields/adminforms/monthfield.py | dkmodelfields/adminforms/monthfield.py | # -*- coding: utf-8 -*-
"""Admin support code for MonthFields.
"""
from dk import ttcal
from django.forms.fields import CharField
from django.forms import ValidationError
from django.forms.util import flatatt
from django.forms.widgets import TextInput
from django.utils.safestring import mark_safe
class MonthInput(T... | Python | 0 | @@ -555,17 +555,16 @@
-#
if isins
@@ -601,18 +601,16 @@
- #
valu
@@ -624,32 +624,234 @@
al.Month(value)%0A
+ if isinstance(value, unicode):%0A parts = value.split('-')%0A y = int(parts%5B0%5D, 10)%0A m = int(parts%5B1%5D, 10)%0A ... |
6bd9d8de1066bcd4b63ad41da676cf764b4ff00d | Update reference to sv-benchmarks | benchexec/tools/sv_benchmarks_util.py | benchexec/tools/sv_benchmarks_util.py | # This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
"""
This module contains some useful functions related to tasks in the sv-benchmarks
repos... | Python | 0 | @@ -323,34 +323,34 @@
ory: https://git
-hu
+la
b.com/sosy-lab/s
@@ -348,16 +348,29 @@
osy-lab/
+benchmarking/
sv-bench
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.