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
79158c269669fcbe506ae83e803ef58ba1b40913
Tweak olfactory input stimulus to produce more interesting output.
examples/olfaction/data/gen_olf_input.py
examples/olfaction/data/gen_olf_input.py
#!/usr/bin/env python """ Generate sample olfactory model stimulus. """ import numpy as np import h5py osn_num = 1375 dt = 1e-4 # time step Ot = 2000 # number of data point during reset period Rt = 1000 # number of data point during odor delivery period Nt = 4*Ot + 3*Rt # number of data points in time t = np.arang...
Python
0
@@ -344,18 +344,12 @@ = --1.*0.0195 +10.0 # a
0ff797d60c2ddc93579e7c486e8ebb77593014d8
Add another check for a failed googleapiclient upgrade.
apiclient/__init__.py
apiclient/__init__.py
"""Retain apiclient as an alias for googleapiclient.""" import googleapiclient from googleapiclient import channel from googleapiclient import discovery from googleapiclient import errors from googleapiclient import http from googleapiclient import mimeparse from googleapiclient import model from googleapiclient impo...
Python
0
@@ -74,16 +74,413 @@ client%0A%0A +try:%0A import oauth2client%0Aexcept ImportError:%0A raise RuntimeError(%0A 'Previous version of google-api-python-client detected; due to a '%0A 'packaging issue, we cannot perform an in-place upgrade. To repair, '%0A 'remove and reinstall this package, along with o...
e60f4967c46ee29d6eb5acc80a0ee1b0074dc5e7
Load only identified samples from a datafile
dgeclust/data.py
dgeclust/data.py
from __future__ import division import numpy as np import pandas as pd import collections as cl ######################################################################################################################## class CountData(object): """Represents a counts data set""" def __init__(self, counts, lib...
Python
0
@@ -840,25 +840,8 @@ ol=0 -, usecols=samples ) # @@ -859,16 +859,80 @@ .uint32) +%0A counts = counts if samples is None else counts%5Bsamples%5D %0A%0A
4a89eebc30eac581c504fd4c250f02dec66df48d
change script path for packaging change
roushagent/plugins/output/plugin_chef.py
roushagent/plugins/output/plugin_chef.py
#!/usr/bin/env python import sys from bashscriptrunner import BashScriptRunner name = "chef" script = BashScriptRunner(script_path=["plugins/lib/%s" % name]) def setup(config): LOG.debug('Doing setup in test.py') register_action('install_chef', install_chef) register_action('run_chef', run_chef) def i...
Python
0.000001
@@ -128,16 +128,27 @@ _path=%5B%22 +roushagent/ plugins/
267a2784b7ff948ad15336077a36262b393c860b
Add __repr__
dataproperty/_align.py
dataproperty/_align.py
# encoding: utf-8 ''' @author: Tsuyoshi Hombashi ''' class Align: class __AlignData: @property def align_code(self): return self.__align_code @property def align_string(self): return self.__align_string def __init__(self, code, string): ...
Python
0.000628
@@ -84,16 +84,24 @@ lignData +(object) :%0A%0A @@ -388,24 +388,90 @@ g = string%0A%0A + def __repr__(self):%0A return self.align_string%0A%0A AUTO = _
383fe196da23e01339e017a39d375313900468c8
Add working configurable prefix
Jeeves/jeeves.py
Jeeves/jeeves.py
import discord import asyncio import random import configparser import json def RunBot(config_file): config = configparser.ConfigParser() config.read(config_file) client = discord.Client() @client.event async def on_ready(): print('------') print('Logged in as %s (%s)' % (client.u...
Python
0
@@ -520,16 +520,43 @@ th(' -- +%25s knugen' + %25 config%5B'Bot'%5D%5B'prefix'%5D ):%0A
2995f15c1bcb1bc85d83c7407be199b27882a215
Update for fixing odd Japanese
examples/translations/japanese_test_1.py
examples/translations/japanese_test_1.py
# Japanese Language Test - Python 3 Only! from seleniumbase.translate.japanese import γ‚»γƒ¬γƒ³γƒ†γ‚Ήγƒˆγ‚±γƒΌγ‚Ή # noqa class γƒ†γ‚Ήγƒˆγ‚―γƒ©γ‚Ή(γ‚»γƒ¬γƒ³γƒ†γ‚Ήγƒˆγ‚±γƒΌγ‚Ή): # noqa def test_δΎ‹1(self): self.URLを開く("https://ja.wikipedia.org/wiki/") self.γƒ†γ‚­γ‚Ήγƒˆγ‚’η’Ίθͺγ™γ‚‹("γ‚¦γ‚£γ‚­γƒšγƒ‡γ‚£γ‚’") self.要素を璺θͺγ™γ‚‹('[title="γƒ‘γ‚€γƒ³γƒšγƒΌγ‚Έγ«η§»ε‹•γ™γ‚‹"]') self.γƒ†γ‚­γ‚Ήγƒˆγ‚’ζ›΄ζ–°("#...
Python
0
@@ -81,17 +81,19 @@ mport %E3%82%BB%E3%83%AC -%E3%83%B3 +%E3%83%8B%E3%82%A6%E3%83%A0 %E3%83%86%E3%82%B9%E3%83%88%E3%82%B1%E3%83%BC%E3%82%B9 @@ -116,17 +116,19 @@ %E3%82%B9%E3%83%88%E3%82%AF%E3%83%A9%E3%82%B9(%E3%82%BB%E3%83%AC -%E3%83%B3 +%E3%83%8B%E3%82%A6%E3%83%A0 %E3%83%86%E3%82%B9%E3%83%88%E3%82%B1%E3%83%BC%E...
3cf817cbed220f6d0a17287d6083d9865a7b52ff
Tidy test utils
base/tests/test_utils.py
base/tests/test_utils.py
from django.test import TestCase from login.tests.scenario import ( get_user_staff, get_user_web, ) class PermTestCase(TestCase): def assert_any(self, url): self.client.logout() response = self.client.get(url) self.assertEqual( response.status_code, 200, ...
Python
0
@@ -158,32 +158,106 @@ any(self, url):%0A + %22%22%22all users (logged in or not) should have access to this url%22%22%22%0A self.cli @@ -418,36 +418,32 @@ everyone should -not have access to ' @@ -541,30 +541,199 @@ ert_ -staff_only(self, url): +logged_in(self, url):%0A self._assert_no_per...
b39d4c45190b8431f74bd2d7d918a7c6c9f09bab
Delete commented line.
exams/do_you_even_math/math_functions.py
exams/do_you_even_math/math_functions.py
from sqlalchemy import create_engine, update, and_, desc from models import Score from sqlalchemy.orm import Session from connect import Base from random import randint class Math: PLUS = "+" MINUS = "-" MULTIPLICATION = "*" DIVISION = "/" POWER = "^" def __init__(self, session, player): ...
Python
0
@@ -2572,99 +2572,8 @@ e%7D)%0A - # update(%22score_board%22).values(score=score).where(Score.player == self.player)%0A
cae4402584a2ba6c183cb2e7b7020b38afd91535
Correct approxLoc as its usually set
disqus_feeder.py
disqus_feeder.py
#!/usr/bin/env python """ orbital disqus data feeder ~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2012 DISQUS. :license: Apache License 2.0, see LICENSE for more details. """ import gevent import gevent.queue import gevent.monkey # disqusapi does not provide first-class support for gevent (yet) gevent.monkey.patch_all...
Python
0
@@ -2148,31 +2148,33 @@ if -'approxLoc' not in post +not post.get('approxLoc') :%0A
7f8013e7fb8865f9f3a1e541bb00ce8c54048cb2
delete some marks
Interpolation.py
Interpolation.py
import numpy as np class Interpolation: def __init__(self, x, y): if not isinstance(x, np.ndarray) or not isinstance(y, np.ndarray): print(isinstance(x, np.ndarray)) raise TypeError("Type of Parameter should be numpy.ndarray") sizex = x.shape sizey = y.shap...
Python
0.000013
@@ -144,53 +144,8 @@ y):%0A - print(isinstance(x, np.ndarray))%0A
12bf3032aeb87bfb3b64607cae1e7f6d29da440c
Update version, file: setup.py
setup.py
setup.py
from setuptools import setup setup( name='tvsort_sl', packages=['tvsort_sl'], version='1.1.23', description='Sort movies and TV-shows files', long_description=open('README.md').read(), long_description_content_type='text/markdown', author='Shlomi Lanton', author_email='shlomilanton@gma...
Python
0
@@ -103,9 +103,9 @@ .1.2 -3 +4 ',%0A
decb9212a5e0adae31d8e7562fa8258c222aae23
Add a logger for dbmigrator that writes to stdout
dbmigrator/__init__.py
dbmigrator/__init__.py
Python
0.003781
@@ -0,0 +1,292 @@ +# -*- coding: utf-8 -*-%0A%0Aimport logging%0Aimport sys%0A%0Alogger = logging.getLogger('dbmigrator')%0Alogger.setLevel(logging.INFO)%0A%0Ahandler = logging.StreamHandler(sys.stdout)%0Ahandler.setFormatter(logging.Formatter('%5B%25(levelname)s%5D %25(name)s (%25(filename)s) - %25(message)s'))%0Alogg...
ab2f330f5e6a5fa58670fde6bed24c4e66d15f3c
add helper methods to fs hauler/receiver needed to handle multiple disks
phaul/fs_haul_ploop.py
phaul/fs_haul_ploop.py
# # ploop disk hauler # import logging import threading import libploop class p_haul_fs: def __init__(self, ddxml_path, fs_sk): """Initialize ploop disk hauler Initialize ploop disk hauler with specified path to DiskDescriptor.xml file and socket. """ logging.info("Initilized ploop hauler (%s)", ddxml_p...
Python
0
@@ -18,16 +18,26 @@ uler%0A#%0A%0A +import os%0A import l @@ -78,16 +78,56 @@ ploop%0A%0A%0A +DDXML_FILENAME = %22DiskDescriptor.xml%22%0A%0A%0A class p_ @@ -816,377 +816,1346 @@ ue%0A%0A -%0Aclass p_haul_fs_receiver:%0A%09def __init__(self, fname_path, fs_sk):%0A%09%09%22%22%22Initialize ploop disk receiver%0A%0A...
e4b5aa175fcbb3bdfb154c85be26ce7927dee446
document timout error exception.
dj/scripts/archive_uploader.py
dj/scripts/archive_uploader.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # archive_uploader.py # archive.org specific code import argparse import os import boto import boto.s3.connection """ Uploader for Internet Archive that uses boto and the s3 archive interface Boto Docs: * http://docs.pythonboto.org/en/latest/s3_tut.html * http://b...
Python
0
@@ -4182,16 +4182,342 @@ or:help%0A +%0A%0A File %22post_yt.py%22, line 234, in do_arc%0A archive_success = uploader.upload()%0A File %22/home/juser/veyepar/dj/scripts/archive_uploader.py%22, line 141, in upload%0A self.ret_text = %22internet archive error: %25s%22 %25 ( e.body )%0AAttributeError: 'timeout' ob...
40c8d59c09968f3219985070ebad6fc137597f06
Load data shouldn't close a file object if it is passed one.
src/auspex/analysis/io.py
src/auspex/analysis/io.py
# Copyright 2016 Raytheon BBN Technologies # # 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 from auspex.stream import DataStream, DataAxis, S...
Python
0.000001
@@ -520,32 +520,53 @@ :%0A data = %7B%7D%0A + descriptors = %7B%7D%0A if isinstanc @@ -595,32 +595,32 @@ ct, h5py.File):%0A - f = file @@ -1093,32 +1093,16 @@ t axes.%0A - %0A @@ -1161,17 +1161,16 @@ rdinates - %0A @@ -2094,17 +2094,16 @@ e=dtype) - %0A ...
b7d80c9a1e820f2b3d2df918d7943781ec9b8635
Fix for python setup.
setup.py
setup.py
""" pycri-urltitle ------------- Plugin for resolving <title>-elements from URLs. """ from setuptools import setup setup( name='pycri-urltitle', version='0.1.0', url='https://github.com/xintron/pycri-urltitle', license='BSD', author='Marcus Carlsson', author_email='carlsson.marcus@gmail.com',...
Python
0
@@ -396,15 +396,13 @@ p -y_modul +ackag es=%5B
f53dec873d4d8d01ef8b880ecd8295593a75cd61
Support enum in python 2
setup.py
setup.py
"""Setup for vt_graph_api module.""" import re import sys import setuptools with open("./vt_graph_api/version.py") as f: version = ( re.search(r"__version__ = \'([0-9]{1,}.[0-9]{1,}.[0-9]{1,})\'", f.read()).groups()[0]) # check python version >2.7.x and >=3.2.x installable = True if sys.ver...
Python
0.000001
@@ -651,16 +651,117 @@ six%22%0A%5D%0A%0A +if(sys.version_info.major == 2):%0A # Support enums in python 2.%0A install_requires.append(%22enum34%22)%0A%0A setuptoo
1c9c52fd4290a1be6e76757524cf8b2ca4bb2088
update metadata.py to handle a list of Path objects
photomanip/metadata.py
photomanip/metadata.py
from datetime import datetime import exiftool SOFTWARE_NAME = "photomanip v.0.1.0" DATETIME_FMT = "%Y:%m:%d %H:%M:%S" class SetExifTool(exiftool.ExifTool): def set_tags(self, tags, filename): """Sets specified tags for a single file""" params = [filename] args = ["-" + t for t in tags] ...
Python
0
@@ -1,35 +1,4 @@ -from datetime import datetime%0A%0A impo @@ -51,43 +51,8 @@ .0%22%0A -DATETIME_FMT = %22%25Y:%25m:%25d %25H:%25M:%25S%22%0A %0A%0Acl @@ -2022,57 +2022,114 @@ # -TODO: HANDLE CASE WHEN FILENAMES ARE PATH OBJECTS +handle case where filenames are path objects%0A filename_list = %5Bstr(item)...
a70f5c544270a1c5852023736d95ff643dce0a28
Change the PyPi package name to yubico-client.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys import logging from glob import glob from os.path import splitext, basename, join as pjoin from unittest import TextTestRunner, TestLoader from setuptools import setup from distutils.core import Command sys.path.insert(0, pjoin(os.path.dirn...
Python
0
@@ -2007,16 +2007,23 @@ ='yubico +-client ',%0A
c3f064e9665d3011f643ec3a02d305bc046a0834
Bump version.
setup.py
setup.py
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspa...
Python
0
@@ -545,9 +545,9 @@ 0.3. -6 +7 ',%0A%0A
532dfcdf1a705da533f51bd40b3b88905f7f8a77
Update convert2md.py
converter-vkwiki2md/convert2md.py
converter-vkwiki2md/convert2md.py
# -*- coding: utf-8 -*- try: f1 = open("input.txt","r",encoding="utf-8") except IOError: print("НС ΡƒΠ΄Π°Π»ΠΎΡΡŒ Π½Π°ΠΉΡ‚ΠΈ Π²Ρ…ΠΎΠ΄Π½ΠΎΠΉ Ρ„Π°ΠΉΠ» input.txt") try: f2 = open("output.txt","w",encoding="utf-8") except IOError: print("НС ΡƒΠ΄Π°Π»ΠΎΡΡŒ ΠΎΡ‚ΠΊΡ€Ρ‹Ρ‚ΡŒ Π²Ρ‹Ρ…ΠΎΠ΄Π½ΠΎΠΉ Ρ„Π°ΠΉΠ» output.txt") import re # ΠΈΠΌΠΏΠΎΡ€Ρ‚ΠΈΡ€ΡƒΠ΅ΠΌ ΠΌΠΎΠ΄ΡƒΠ»ΡŒ Ρ€Π°Π±ΠΎΡ‚Ρ‹ с Ρ€Π΅Π³Ρƒ...
Python
0.000001
@@ -976,16 +976,150 @@ *?%5C%5D%22)%0A%0A +# --- %D1%80%D0%B5%D0%B3%D1%83%D0%BB%D1%8F%D1%80%D0%BD%D0%BE%D0%B5 %D0%B2%D1%8B%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5 %D0%B4%D0%BB%D1%8F %D0%B2%D1%81%D1%82%D0%B0%D0%B2%D0%BA%D0%B8 %D0%BF%D0%B5%D1%80%D0%B5%D0%BD%D0%BE%D1%81%D0%B0 %D0%BD%D0%B0 %D0%B4%D1%80%D1%83%D0%B3%D1%83...
aa09ad861f104f987928fe9f5107ccfe0e4473c3
add some extra info to barebones setup.py
setup.py
setup.py
from setuptools import setup setup( name='Flask-CacheBust', version='1.0.0', packages=['flask_cache_bust'], )
Python
0
@@ -86,36 +86,221 @@ -packages=%5B'flask_cache_bust' +description='Flask extension that cache-busts static files',%0A packages=%5B'flask_cache_bust'%5D,%0A license='MIT',%0A url='https://github.com/ChrisTM/Flask-CacheBust',%0A install_requires=%5B%0A 'Flask',%0A %5D,%0A)
405e7f5a3272030b145497d81739228ec31eafe0
Fix data install
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_questionparsing_grammatical', version='0.6', description='Natural language processing module for the PPP.', url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical', author='Projet PensΓ©es Profondes', ...
Python
0
@@ -129,16 +129,18 @@ ion='0.6 +.1 ',%0A d @@ -1362,19 +1362,14 @@ a/*. -%7B pickle -,py%7D '%5D,%0A
10dd61df7c31de46335df49a686ca2be83c11b8f
Fix Python version check; remove 2.6 trove classifier
setup.py
setup.py
# -*- coding: utf-8 -*- """ Installer script for Pywikibot 2.0 framework """ # # (C) Pywikibot team, 2009-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id$' # import sys import os from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages from setup...
Python
0.001847
@@ -439,15 +439,20 @@ info -%5B1%5D %3C 6 + %3C (2, 6, 5) :%0A @@ -525,16 +525,18 @@ thon 2.6 +.5 or high @@ -2273,57 +2273,8 @@ e',%0A - 'Programming Language :: Python :: 2.6',%0A
5635a3fdea5b61448c18e9518c226e71c9242cd9
bump version
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages requires = [ 'boto3', 'click', ] setup( name='cruddy', version='0.6.1', description='A CRUD wrapper class for Amazon DynamoDB', long_description=open('README.md').read(), author='Mitch Garnaat', author_email='mitch@clo...
Python
0
@@ -149,11 +149,11 @@ ='0. -6.1 +7.0 ',%0A
27be636c9a11d1bff304e1729a168de8ef3952ce
Bump version
setup.py
setup.py
from setuptools import setup setup( name='pyfaidx', provides='pyfaidx', version='0.1.6', author='Matthew Shirley', author_email='mdshw5@gmail.com', url='http://mattshirley.com', description='pyfaidx: efficient pythonic random ' 'access to fasta subsequences', license='MI...
Python
0
@@ -91,17 +91,17 @@ on='0.1. -6 +7 ',%0A a
ffbf1991de4924c0e2af60a4907a935339db59d1
increment version
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import logging import sys from setuptools import setup def read_file(fname): """ Read file and decode in py2k """ if sys.version_info < (3,): return open(fname).read().decod...
Python
0.000004
@@ -1181,17 +1181,17 @@ on=%221.0. -2 +3 %22,%0A d
181947ed282c449cda7133cb88d20ad6bdcf3465
bump version
setup.py
setup.py
#!/usr/bin/env python3 """Seriously - a Python-based golfing language""" from setuptools import setup, find_packages need_stats = False try: import statistics except: need_stats = True setup( name='seriously', version='2.1.21', description='A Python-based golfing language', long_descriptio...
Python
0
@@ -238,17 +238,17 @@ n='2.1.2 -1 +2 ',%0A%0A
e15fb53c0fd63942cafd3a6f11418447df6b6800
Add smoketest for convering CoverageDataset to str.
siphon/cdmr/tests/test_coveragedataset.py
siphon/cdmr/tests/test_coveragedataset.py
# Copyright (c) 2016 Unidata. # Distributed under the terms of the MIT License. # SPDX-License-Identifier: MIT import warnings from siphon.testing import get_recorder from siphon.cdmr.coveragedataset import CoverageDataset recorder = get_recorder(__file__) # Ignore warnings about CoverageDataset warnings.simplefilte...
Python
0
@@ -621,8 +621,324 @@ d.grids%0A +%0A%0A@recorder.use_cassette('hrrr_cdmremotefeature')%0Adef test_simple_cdmremotefeature_str():%0A 'Just a smoke test for converting CoverageDataset to str'%0A cd = CoverageDataset('http://localhost:8080/thredds/cdmrfeature/grid/'%0A 'test/HRRR_CONUS_2p5k...
b82c0190d8f60283549ebe7fcad002576c3f3d70
fix setup.py metadata for 1.12.1
setup.py
setup.py
import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup try: from distutils.command.build_py import build_py_2to3 as build_py except ImportError: from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.p...
Python
0.000001
@@ -1889,16 +1889,17 @@ :: PyPy%22 +, %0A
f15026d5040b687914f60eae632848983844308b
Include static assets in the dist
setup.py
setup.py
#!/usr/bin/env python # # -*- mode:python; sh-basic-offset:4; indent-tabs-mode:nil; coding:utf-8 -*- # vim:set tabstop=4 softtabstop=4 expandtab shiftwidth=4 fileencoding=utf-8: # import os import pasttle import sys from setuptools import setup extra = {} if sys.version_info >= (3,): extra['use_2to3'] = True re...
Python
0
@@ -593,16 +593,77 @@ .html',%0A + 'views/css/*.css',%0A 'views/images/*',%0A
3817d7390fddebd137c99865455f0ae145dbcf63
fix typo in verify_asymmetric_ec.py (#227)
samples/snippets/verify_asymmetric_ec.py
samples/snippets/verify_asymmetric_ec.py
# Copyright 2020 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
@@ -2215,11 +2215,10 @@ ded -RSA +EC key
75cc8e8bc4be03632e7309407d7b44e5646d4b27
Fix setup.py link to README.md
setup.py
setup.py
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): with open(filename) as fh: metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", fh.read())) return metadata['version'] setup( name='Mopidy-JSON-Client', version=ge...
Python
0
@@ -630,11 +630,10 @@ DME. -rst +md ').r
43223d67412c209074816bcee86ca53482d4be52
Add classifiers
setup.py
setup.py
from setuptools import find_packages, setup setup( name="feeds", version="2017.08.14", # Author details author="Florian Preinstorfer, Lukas Anzinger", author_email="florian@nblock.org, lukas@lukasanzinger.at", url="https://github.com/nblock/feeds", packages=find_packages(), include_pack...
Python
0.000907
@@ -833,10 +833,495 @@ %22%22%22,%0A + classifiers=%5B%0A %22Development Status :: 4 - Beta%22,%0A %22Environment :: Console%22,%0A %22Framework :: Scrapy%22,%0A %22Intended Audience :: Developers%22,%0A %22License :: OSI Approved :: GNU Affero General Public License v3%22,%0A ...
a5448576fba761a6eb6aca4edfb738bcdd80b375
Add classifiers to setup.py.
setup.py
setup.py
from setuptools import setup setup( name='artie', version='0.1', url='http://github.com/sumeet/artie', author='Sumeet Agarwal', author_email='sumeet.a@gmail.com', description='IRC utility robot framework for Python', packages=['artie',], scripts=['bin/artie-run.py',], install_requires=['twisted', 'pyyaml',] )...
Python
0
@@ -311,11 +311,397 @@ yyaml',%5D +,%0A%09classifiers=%5B%0A%09%09'Development Status :: 3 - Alpha',%0A%09%09'Environment :: No Input/Output (Daemon)',%0A%09%09'Intended Audience :: Developers',%0A%09%09'Intended Audience :: End Users/Desktop',%0A%09%09'License :: OSI Approved :: MIT License',%0A%09%09'Natural Languag...
8df66e2af85b11d602c8b3d9486d8d5d30039330
Revise setup.py
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.txt')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'pyramid', 'web.dispatch.object' ] instal...
Python
0.000006
@@ -343,24 +343,24 @@ me=' -P +p yramid_ -O +o bject_ -D +d ispa @@ -911,12 +911,11 @@ afe= -Fals +Tru e,%0A
daf2e65565a3f1bdd56485a0e49826b88a0f6bc6
version number changed in setup.py
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import sys, os import glob import platform import re if platform.system() == 'FreeBSD': man_dir = 'man' else: man_dir = 'share/man' setup( name="bpython", version = "0.6.4", author = "Robert Anthony Farrell", author_em...
Python
0.000005
@@ -259,11 +259,11 @@ %220. -6.4 +7.1 %22,%0A
c6466868d8a60ffa40fb85517e789b7995f3ac1c
fix usage of iter_entry_points
django_q/conf.py
django_q/conf.py
import logging from copy import deepcopy from signal import signal from multiprocessing import cpu_count, Queue # django from django.utils.translation import ugettext_lazy as _ from django.conf import settings # external import os import pkg_resources # optional try: import psutil except ImportError: psutil ...
Python
0.000011
@@ -6415,18 +6415,20 @@ -Reporter = +for entry in pkg @@ -6512,16 +6512,12 @@ ame) -.load()%0A +:%0A @@ -6524,19 +6524,17 @@ -e = + Reporte @@ -6538,17 +6538,28 @@ rter -(**conf)%0A + = entry.load()%0A @@ -6583,17 +6583,32 @@ .append( -e +Reporter(**conf) )%0A
9dd654ae33c985fde224a8ddcaa383bcdbd845cc
Add touching __init__.py in the pipelines directory
setup.py
setup.py
import os from setuptools import setup, find_packages setup( name='Chunky', version='0.1.0', description='Pipeline design and distribution framework', author='Dominic Fitzgerald', author_email='dominicfitzgerald11@gmail.com', url='https://github.com/djf604/chunky', packages=find_packages(),...
Python
0.000009
@@ -1137,24 +1137,109 @@ ipelines'))%0A +os.mknod(os.path.join(user_home, '.chunky', 'pipelines', '__init__.py'), mode=0o644)%0A if not os.pa
979f37dfa1356650e8d8d4878f33ce78d386081c
upgrade ebullient to 0.1.5
setup.py
setup.py
import sys from setuptools import setup from setuptools import find_packages version = '0.0.2' # Please update tox.ini when modifying dependency version requirements install_requires = [ 'ebclient.py>=0.1.4', 'cmd2', 'pycrypto>=2.6', 'requests', 'setuptools>=1.0', 'sarge>=0.1.4', 'six' ] ...
Python
0.000001
@@ -201,25 +201,25 @@ ent.py%3E=0.1. -4 +5 ',%0A 'cmd2
4773a2ab54810f26ecfd725af40f69547530d782
Use sql_metadata==1.1.2
setup.py
setup.py
from setuptools import setup, find_packages from indexdigest import VERSION # @see https://github.com/pypa/sampleproject/blob/master/setup.py setup( name='indexdigest', version=VERSION, author='Maciej Brencz', author_email='maciej.brencz@gmail.com', license='MIT', description='Analyses your da...
Python
0.004007
@@ -1661,17 +1661,17 @@ data==1. -0 +1 .2',%0A
97d71e1e4117168c3ec27f7844fd42b334166ce2
Remove license classifier
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 University of Dundee. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your...
Python
0.000001
@@ -1632,87 +1632,8 @@ s',%0A - 'License :: OSI Approved :: GNU Affero General Public License v3.0',%0A @@ -2270,16 +2270,97 @@ sifiers%0A + # 'License :: OSI Approved :: GNU Affero General Public License v3.0',%0A au
5c1a8027ab649f372d95cce276e9cefbb220d51d
Update to handle task processing with v1 API
scale/scheduler/threads/task_handling.py
scale/scheduler/threads/task_handling.py
"""Defines the class that manages the task handling background thread""" from __future__ import unicode_literals import datetime import logging from django.utils.timezone import now from mesos.interface import mesos_pb2 from job.execution.manager import job_exe_mgr from job.execution.tasks.exe_task import JOB_TASK_I...
Python
0
@@ -180,46 +180,8 @@ now -%0Afrom mesos.interface import mesos_pb2 %0A%0Afr @@ -2068,185 +2068,71 @@ -# Send kill message for system task%0A pb_task_to_kill = mesos_pb2.TaskID()%0A pb_task_to_kill.value = task.id%0A logger.info('Killing task %25s', task. +logger.info('Killing t...
faf2db7d13514933d3c7b51ab6ab21c3753eef82
update dependency
setup.py
setup.py
from setuptools import setup from setuptools import find_packages VERSION = '0.1.9' setup( name='StructEngPy', version=VERSION, author='Zhuoju Huang', author_email='zhuoju36@hotmail.com', license='MIT', description='package for structural engineering', packages=find_packages(), zip...
Python
0.000001
@@ -352,16 +352,23 @@ s=%22%3E=3.6 +, %3C=3.8 %22,%0A i @@ -445,17 +445,17 @@ 'quadpy -= +%3E =0.16',%0A
f519815674133345a3c642203fcb73710f6efdc0
Bump version
setup.py
setup.py
"""Simplepush setup script.""" from distutils.core import setup setup( name='simplepush', packages=['simplepush'], version='1.1.3', description='Simplepush python library', author='Timm Schaeuble', author_email='contact@simplepush.io', url='https://simplepush.io', keywords=[ 'pu...
Python
0
@@ -134,17 +134,17 @@ on='1.1. -3 +4 ',%0A d
5b592d7562fddac0cf48c71e6607cf17c009e993
Update new name
partner_identification/__manifest__.py
partner_identification/__manifest__.py
# -*- coding: utf-8 -*- # # Β© 2004-2010 Tiny SPRL http://tiny.be # Β© 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH # http://www.camptocamp.at # Β© 2015 Antiun Ingenieria, SL (Madrid, Spain) # http://www.antiun.com # Antonio Espinosa <antonioea@antiun.com> # Β© 2016 ACSONE SA/NV (<http://ac...
Python
0.000003
@@ -843,30 +843,17 @@ ' -Antiun Ingenier%C3%ADa S.L. +Tecnativa ,'%0A
10174d4eb0c792f36175d64f634266dd3f4a0138
Allow XlsxWriter v3
setup.py
setup.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import os.path from typing import Dict import setuptools MODULE_NAME = "pytablewriter" REPOSITORY_URL = f"https://github.com/thombashi/{MODULE_NAME:s}" REQUIREMENT_DIR = "requirements" ENCODING = "utf8" pkg_info: Dict[str, str] = {} def get...
Python
0.000859
@@ -1317,17 +1317,17 @@ =0.9.6,%3C -2 +4 %22%5D%0Aes7_r
95add18b382898eb82c7ff3dd0aa0fd6db0f5cb9
Add simplejson as requirement for python 2.5
setup.py
setup.py
""" Flask-MongoKit -------------- Flask-MongoKit simplifies to use MongoKit, a powerful MongoDB ORM in Flask applications. Links ````` * `documentation <http://packages.python.org/Flask-MongoKit>`_ * `development version <http://github.com/jarus/flask-mongokit/zipball/master#egg=Flask-MongoKit-dev>`_ * `MongoK...
Python
0.000048
@@ -106,15 +106,9 @@ lask - %0A + appl @@ -391,16 +391,27 @@ %60_%0A%0A%22%22%22%0A +import sys%0A from set @@ -432,16 +432,140 @@ setup%0A%0A +install_requires = %5B%0A %22Flask%22,%0A %22MongoKit%22%0A%5D%0A%0Aif sys.version_info %3C (2, 6):%0A install_requires.append('simplejson')%0A %0Asetup(...
00b6946d7329d2a6b6d1e0edf7ceb3c508d0d710
Make stable
setup.py
setup.py
''' MetaFunctions is a function composition and data pipelining library. For more information, please visit the `project on github <https://github.com/ForeverWintr/metafunctions>`_. ''' import os import sys import contextlib import pathlib import shutil from setuptools import setup, find_packages, Command import met...
Python
0.998548
@@ -1740,16 +1740,29 @@ :: -4 - Beta +5 - Production/Stable ',%0A
a027c1ea0a4d221c9a2e74e381ca96be3213670b
Fix badge URLs
setup.py
setup.py
from setuptools import find_packages, setup LONG_DESCRIPTION = """ .. image:: http://pinaxproject.com/pinax-design/patches/blank.svg :target: https://pypi.python.org/pypi/pinax-waitinglist/ ================= Pinax Waiting List ================= .. image:: https://img.shields.io/pypi/v/waitinglist.svg :target...
Python
0.000005
@@ -286,16 +286,22 @@ /pypi/v/ +pinax- waitingl @@ -342,32 +342,38 @@ python.org/pypi/ +pinax- waitinglist/%0A.. @@ -472,16 +472,22 @@ rg/pypi/ +pinax- waitingl @@ -548,32 +548,38 @@ ct/github/pinax/ +pinax- waitinglist.svg%0A @@ -613,32 +613,38 @@ ci.com/gh/pinax/ +pinax- waitinglist%0A.. i @@ -692,24 +692,...
c95c53f9780b05e206a443c3ae88ce284e252a1e
Add download_url param to setup.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging from setuptools import setup from setuptools.extension import Extension from setuptools.command.build_ext import build_ext from distutils.util import get_platform VERSION_INFO = (0,3,2) VERSION_STRING = "%d.%d.%d" % VERSION_INFO logging.basicConf...
Python
0
@@ -249,17 +249,17 @@ = (0,3, -2 +3 )%0AVERSIO @@ -2317,24 +2317,114 @@ /watchdog%22,%0A + download_url=%22https://github.com/gorakhargosh/watchdog/tarball/v%25s%22 %25 VERSION_STRING,%0A keywords @@ -2705,8 +2705,9 @@ ,%0A )%0A +%0A
997d2684809d25a7aec4d278c6420cc17f4b7b48
Bump version
setup.py
setup.py
# coding=utf-8 import sys from setuptools import setup, find_packages NAME = 'notify' VERSION = '0.1.0' def read(filename): import os BASE_DIR = os.path.dirname(__file__) filename = os.path.join(BASE_DIR, filename) with open(filename, 'r') as fi: return fi.read() def readlist(filename): r...
Python
0
@@ -95,17 +95,17 @@ = '0.1. -0 +1 '%0A%0Adef r
76854b77701f7de59a9ebe6cf2221e23c90d1e3d
cryptography 1.5
setup.py
setup.py
from setuptools import setup, find_packages from codecs import open import os from netlib import version # Based on https://github.com/pypa/sampleproject/blob/master/setup.py # and https://python-packaging-user-guide.readthedocs.org/ here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'RE...
Python
0.999991
@@ -2643,25 +2643,25 @@ hy%3E=1.3, %3C1. -5 +6 %22,%0A %22
66c92962d1a921c4d2708ede4ccdfd89b56b27cd
fix setup issue
setup.py
setup.py
from setuptools import setup from pip.req import parse_requirements # parse_requirements() returns generator of pip.req.InstallRequirement objects install_reqs = parse_requirements('requirements.txt') # reqs is a list of requirement # e.g. ['django==1.5.1', 'mezzanine==1.4.6'] reqs = [str(ir.req) for ir in install_r...
Python
0.000001
@@ -27,304 +27,8 @@ up%0A%0A -from pip.req import parse_requirements%0A%0A# parse_requirements() returns generator of pip.req.InstallRequirement objects%0Ainstall_reqs = parse_requirements('requirements.txt')%0A%0A# reqs is a list of requirement%0A# e.g. %5B'django==1.5.1', 'mezzanine==1.4.6'%5D%0Areqs = %5Bstr(ir.req...
5632c723c52193f32fd5e0a60b7a0a9afee545b3
version bump to 2.8
setup.py
setup.py
from distutils.core import setup import setuplib packages, package_data = setuplib.find_packages(['chunks', 'chunks.templatetags', 'migrations']) setup(name='chunks', version='2.7', description='Keyed blocks of content for use in your Django templates', author='Ruslan Popov', author_email='rus...
Python
0
@@ -183,9 +183,9 @@ ='2. -7 +8 ',%0A
c575d69ce253f9eb4d9beb6ffcd3e8a57ed804f0
Update to version 0.2.0 (according with semantic versioning)
setup.py
setup.py
from setuptools import setup, find_packages setup(name='diaspy', version='0.1.0', author='Moritz Kiefer', author_email='moritz.kiefer@gmail.com', url='https://github.com/Javafant/diaspora-api', description='A python api to the social network diaspora', packages=find_packages(), ...
Python
0
@@ -79,9 +79,9 @@ ='0. -1 +2 .0',
a4be366e574c82fb94231a79ec8744a0eb146af1
Bump for rc13
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from setuptools.command.install import install VERSION = '0.2.0rc12' class VerifyVersionCommand(install): """Custom command to verify that the git tag matches our version""" description = 'verify that the git tag matches ou...
Python
0
@@ -147,17 +147,17 @@ 0.2.0rc1 -2 +3 '%0A%0Aclass
9f510248981b61c9c7e111d45422d8e3ed1367ca
Update setup.py to set long description for PyPI
setup.py
setup.py
#!/usr/bin/env python # # ----------------------------------------------------------------------------- # Copyright (c) 2016 The Regents of the University of California # # This file is part of kevlar (http://github.com/standage/kevlar) and is # licensed under the MIT license: see LICENSE. # ---------------------------...
Python
0
@@ -1075,16 +1075,164 @@ 2.2'%0A%5D%0A%0A +desc = 'Reference-free variant discovery scalable to large eukaryotic genomes'%0Awith open('README.md', 'r') as infile:%0A longdesc = infile.read()%0A%0A setup(na @@ -1351,103 +1351,98 @@ ion= -('Reference-free variant discovery scalable to large '%0A '...
aa9852b6da864a1209db61aad23e6c8aa3374f57
Fix for unittest
ample/util/tests/test_ample_util.py
ample/util/tests/test_ample_util.py
"""Test functions for util.ample_util""" import pickle import os import shutil import tempfile import unittest from ample.util import ample_util from ample.constants import AMPLE_PKL, SHARE_DIR class Test(unittest.TestCase): @classmethod def setUpClass(cls): cls.thisd = os.path.abspath(os.path.dirna...
Python
0
@@ -1970,32 +1970,33 @@ optd = %7B'models' + : os.path.join(s @@ -2055,32 +2055,33 @@ 'models_dir' + : temp_dir%7D%0A @@ -2066,32 +2066,68 @@ _dir' : temp_dir +,%0A 'work_dir' : '.' %7D%0A sequen @@ -2557,16 +2557,17 @@ 'models' + : os.pat @@ -2641,16 +2641,17 @@ els_dir' + ...
c630aff22e6ffa957ba660d574c4ea9ef181524b
Update version number to 1.0.
setup.py
setup.py
# Copyright 2014 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 agre...
Python
0
@@ -1479,11 +1479,11 @@ on=' -0.9 +1.0 ',%0A
96701435c52db2bcecde16579174b6bff3a17c0f
Rename for consistency
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup VERSION = '0.0.1' test_requires = [ 'nose>=1.3.4', 'responses>=0.5.1' ] install_requires = test_requires + [ 'requests>=2.4.3', ] setup( name="mondo", version=VERSION, description="Mondo Banking API Client", author=', '.join(( '...
Python
0.000024
@@ -65,24 +65,25 @@ .0.1'%0A%0A%0Atest +s _requires = @@ -148,24 +148,25 @@ uires = test +s _requires + @@ -486,16 +486,17 @@ ire=test +s _require
6f1dc724aa223805f9ac662ab619d9466831bac9
Add the permission identifier for the API of ScreenOrientation.
app/tools/android/handle_permissions.py
app/tools/android/handle_permissions.py
#!/usr/bin/env python # Copyright (c) 2014 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Provide the function interface of mapping the permissions from manifest.json to AndroidManifest.xml. It suppports the mapping of ...
Python
0
@@ -1396,16 +1396,44 @@ ckets' : + %5B%5D,%0A 'screenorientation' : %5B%5D%0A%7D%0A%0A%0A
2db67743f3217d99fe85824c9ddd3fa9f31d3ae0
Update tarball for test genomes to include refFlat version of transcripts. Fixes #107
tests/test_automated_analysis.py
tests/test_automated_analysis.py
"""This directory is setup with configurations to run the main functional test. It exercises a full analysis pipeline on a smaller subset of data. """ import os import subprocess import unittest import shutil import contextlib import collections import functools from nose import SkipTest from nose.plugins.attrib impo...
Python
0
@@ -1694,17 +1694,18 @@ nomes%22, -9 +10 ),%0A
d21eec9f909766556ae959474b5bfa834cc64eb2
Add python 3.8 to setup classifiers list (#9121)
sdk/servicebus/azure-servicebus/setup.py
sdk/servicebus/azure-servicebus/setup.py
#!/usr/bin/env python # ------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ---------------------------------------------------------------...
Python
0
@@ -2364,24 +2364,73 @@ on :: 3.7',%0A + 'Programming Language :: Python :: 3.8',%0A 'Lic
fd27ce9f5f55f1f3e72593e53b8bfcfe2ac4e10f
Test had a spelling error on assert
tests/test_contributors_views.py
tests/test_contributors_views.py
# -*- coding: utf-8 -*- from nose.tools import * # PEP8 asserts from tests.factories import ProjectFactory, NodeFactory, AuthUserFactory from tests.base import OsfTestCase, fake from framework.auth.decorators import Auth class TestContributorViews(OsfTestCase): def setUp(self): super(TestContributorV...
Python
0.000009
@@ -3135,32 +3135,33 @@ bs%5B0%5D%5B'n_project +s _in_common'%5D, 2) @@ -3271,16 +3271,17 @@ _project +s _in_comm
7440dba84ea156e4ef01c8e68bda8a9b0490510d
Mark ProjectFuture as endOfLife
dosagelib/plugins/projectfuture.py
dosagelib/plugins/projectfuture.py
# SPDX-License-Identifier: MIT # Copyright (C) 2019-2020 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from .common import _ParserScraper class ProjectFuture(_ParserScraper): imageSearch = '//td[@class="tamid"]/img' prevSearch = '//a[./img[@alt="Previous"]]' def __init__(self, name, comic, fi...
Python
0.000001
@@ -1413,16 +1413,28 @@ ip', '0' +, last='664' ),%0A
e3760ed69943da248b0b585f138177eca23b48b3
Fix bug introduced by e3a16249d44f8904349be72ce95f7da168018409
src/wikicurses/htmlparse.py
src/wikicurses/htmlparse.py
import re from collections import OrderedDict from html.parser import HTMLParser from wikicurses import formats class UrwidMarkupHandler: def __init__(self): self._list = [] def add(self, text, attribute): if self and self[-1][0] == attribute: self[-1][1] += text else: ...
Python
0
@@ -3166,32 +3166,34 @@ pass%0A +el if self.insideba
535ac4c6eae416461e11f33c1a1ef67e92c73914
Add a commit failed test
tests/test_exception_wrapping.py
tests/test_exception_wrapping.py
import safe def test_simple_exception(): class MockReponse(object): def json(self): return {'status': False, 'method': 'synchronize', 'module': 'cluster', 'error': {'message': 'Example error'}} exception = safe.library.raise_from...
Python
0.000003
@@ -11,112 +11,611 @@ e%0A%0A%0A -def test_simple_exception():%0A class +class MockResponse(object):%0A def __init__(self, data):%0A self.data = data%0A%0A def json(self):%0A return self.data%0A%0A%0Adef test_basic_exception():%0A error_message = 'Example error'%0A response = MockRe +s ...
d9bea46f2166afa0d459c4978fbdbb41f6e44bd2
Bump to version 0.12.0
pkutils.py
pkutils.py
# -*- coding: utf-8 -*- # vim: sw=4:ts=4:expandtab """ pkutils ~~~~~~~ Provides methods that simplify python module packaging. Examples: parse requirements file:: >>> requirements = parse_requirements('requirements.txt') >>> len(list(requirements)) > 0 True >>> get_status('0.3.0'...
Python
0
@@ -720,11 +720,11 @@ '0.1 -1.1 +2.0 '%0A%0A_
f48d037b93c92ac794c145aad3cd9ae6f04780d1
Convert scores to ints when sorting
scoreboard.py
scoreboard.py
#!/usr/bin/env python import os print "Content-Type: text/html\n" print "" def gen_scoreboard(team_data): if len(team_data) == 0: print "There are no teams!" else: print "<br>" print "<div class='container'>" print "<table class='responsive-table bordered hoverable centered'>" ...
Python
0.998878
@@ -551,16 +551,104 @@ return%0A + for key in team_data:%0A team_data%5Bkey%5D = int(team_data%5Bkey%5D)%0A%0A
bc054f5cc8c375244c8ec4b311d12cf416670871
Fix partition sizes
stats-to-datadog.py
stats-to-datadog.py
import urllib2 import json import sys from statsd import statsd statsd.connect('localhost', 8125) host = sys.argv[1] topology = sys.argv[2] toporoot = sys.argv[3] topic = sys.argv[4] state = urllib2.urlopen( "http://{}/api/status?toporoot={}&topic={}".format( host, toporoot, topic ) ).read() data = ...
Python
0.000004
@@ -487,22 +487,34 @@ +looplord%5B' amount +'%5D ,%0A
5334dfd37ef46479cf054143a34b2cbed8e90b14
Handle exceptions in wsgi.
elasticsearch_raven/wsgi.py
elasticsearch_raven/wsgi.py
from queue import Queue from threading import Thread from elasticsearch_raven import configuration from elasticsearch_raven.transport import ElasticsearchTransport from elasticsearch_raven.transport import SentryMessage transport = ElasticsearchTransport(configuration['host'], confi...
Python
0
@@ -1,56 +1,16 @@ -from queue import -Q +q ueue -%0Afrom threading import Thread %0A%0Afr @@ -95,38 +95,29 @@ import -ElasticsearchTransport +SentryMessage %0Afrom el @@ -138,403 +138,370 @@ ven. -transport import SentryMessage%0A%0Atransport = ElasticsearchTransport(configuration%5B'host'%5D,%0A ...
6238243758202ad12db66fecef27cee65b71d192
Add PID file support and status querying to new runner
script/run.py
script/run.py
#!/usr/bin/env python3 # -*- coding: ascii -*- # An init script for running Instant and a number of bots. def main(): pass if __name__ == '__main__': main()
Python
0
@@ -101,16 +101,1343 @@ bots.%0A%0A +import re%0A%0APID_LINE_RE = re.compile(r'%5E%5B0-9%5D+%5Cs*$')%0A%0Aclass Process:%0A def __init__(self, name, pidfile):%0A self.name = name%0A self.pidfile = pidfile%0A self._pid = Ellipsis%0A%0A def _read_pidfile(self):%0A f = None%0A tr...
ac99e90365d61b56ba654ad9bcc1baa20ccf65e5
Install missing swig generated file
setup.py
setup.py
# -*- coding: utf-8 -*- import numpy from setuptools import setup, find_packages, Extension with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: lic = f.read() with open('requirements.txt') as f: required = f.read().splitlines() # Obtain the numpy include directory. This logic ...
Python
0.000001
@@ -1246,24 +1246,63 @@ on_module%5D,%0A + py_modules=%5B'sga.toolbox.c_impl'%5D,%0A packages
a1f8e9510abdb245c263a08754c2ed57f365866c
Add initial testing of new `use_model` function
tests/test_management_command.py
tests/test_management_command.py
# -*- coding: utf-8 -*- import logging import os import sys from django.core.management import ( call_command, find_commands, load_command_class, ) from django.test import TestCase from django_extensions.compat import StringIO, importlib class MockLoggingHandler(logging.Handler): """ Mock logging handler to...
Python
0.000001
@@ -237,16 +237,76 @@ portlib%0A +from django_extensions.management.modelviz import use_model%0A %0A%0Aclass @@ -3770,8 +3770,622 @@ nd, e))%0A +%0Aclass GraphModelsTests(TestCase):%0A %22%22%22%0A Tests for the %60graph_models%60 management command.%0A %22%22%22%0A def test_use_model(self):%0A i...
8b8b6c3b9e2fbeff422cda8c5812f32d81b43a1f
Bump version to 4.0.0a23
platformio/__init__.py
platformio/__init__.py
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
Python
0
@@ -625,17 +625,17 @@ 0, %220a2 -2 +3 %22)%0A__ver
066146dd77b00d1a597704fd18bccf1041564215
Fix print formatting
scripts/gb.py
scripts/gb.py
import sys import numpy as np import pandas as pd import datetime from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import StandardScaler from xgboost.sklearn import XGBClassifier sys.path.append('..') from utils.data_loading import load_users_data from utils.preprocessing import one_hot_encodi...
Python
0.038953
@@ -1497,16 +1497,17 @@ ting...%22 +, %0A# Class @@ -1916,16 +1916,17 @@ ting...%22 +, %0Ay_pred @@ -2001,16 +2001,17 @@ sion...%22 +, %0A# Takin
2f23a758c66d100315dd6de0aed0dd16191e58a4
update version
setup.py
setup.py
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( version = '1.2.35', name='dotmap', packages=['dotmap'], # this must be the same as the name above description='ordered, dynamically-expandable dot-access dictionary', author='Chris Redford', a...
Python
0
@@ -120,9 +120,9 @@ .2.3 -5 +6 ',%0A
ef0854c23c5d75c2742da3e8bde9fc258854d7aa
Add urls in setup.
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup setup( name='clif', version='0.2.0', author='FranΓ§ois MΓ©nabΓ©', author_email='francois.menabe@gmail.com', license='MIT License', description='Framework for generating command-line', long_description=open('README.rst').read(), keyw...
Python
0
@@ -173,16 +173,127 @@ l.com',%0A + url = 'http://github.com/fmenabe/python-clif',%0A download_url = 'http://github.com/fmenabe/python-clif',%0A lice
762a81b4637dbbcd029b7e396d8472ec775182ef
Resolve 'ValueError' in unknown_object_json_handler.
plenario/api/common.py
plenario/api/common.py
import json from flask.ext.cache import Cache from plenario.settings import CACHE_CONFIG from datetime import timedelta, date, datetime from functools import update_wrapper from flask import make_response, request, current_app import csv from shapely.geometry import asShape from cStringIO import StringIO from plenario....
Python
0.000001
@@ -128,16 +128,22 @@ datetime +, time %0Afrom fu @@ -1032,32 +1032,95 @@ obj.isoformat()%0A + elif isinstance(obj, time):%0A return obj.isoformat()%0A elif isinsta @@ -1207,16 +1207,125 @@ lueError +(%22%7B0%7D cannot be parsed into JSON. %5Cn%22%0A %22%7B0%7D is of type: %7B...
4150e95f96b1e20dc53356062aad149125808e9a
Indicate Py3.5 compatibility in setup.py.
setup.py
setup.py
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import glob import os from io import open import sys from setuptools import setup, find_packages, Extension try: from numpy.distutils.misc_util import get_numpy_include_dirs except ImportError: print(...
Python
0.999365
@@ -3760,24 +3760,73 @@ on :: 3.4%22,%0A + %22Programming Language :: Python :: 3.5%22,%0A %22Dev
25454cb6e911a9644fb3e667275531f1fce563dd
Bump version to 7.2.1
setup.py
setup.py
from setuptools import setup, find_packages long_description = open("README.rst").read() setup( name="PyChromecast", version="7.2.0", license="MIT", url="https://github.com/balloob/pychromecast", author="Paulus Schoutsen", author_email="paulus@paulusschoutsen.nl", description="Python modu...
Python
0
@@ -138,9 +138,9 @@ 7.2. -0 +1 %22,%0A
ba5f2187d1c6a88b7f3c42abf9e1eaaf93a44f84
Correct print error statement
plot_pv_xysb_values.py
plot_pv_xysb_values.py
# This program contains methods to: # - extract x, y and sb values for pvs inside all BPM # elements using caget and BPM.get(). # - plot the x, y BPM coordinates against sb using matplotlib and scisoftpy. from pkg_resources import DistributionNotFound try: import pkg_resources pkg_resources.require('ap...
Python
0.000113
@@ -3532,33 +3532,23 @@ print -err.errormessage( +str(err )%0A pr
bcf436e1ecfa92b5d1b1aeb42b3ebaafff8c5f32
Bump version to 2.2.0.
setup.py
setup.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from sys import version_info from setuptools import setup, find_packages from os.path import dirname, join CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software Licen...
Python
0
@@ -1196,17 +1196,17 @@ sion='2. -0 +2 .0',%0A
f715d565ea9274505ae31aeefd145a7dc921dd8a
Move setup of comparison files to separate method
tests/test_summary_downloader.py
tests/test_summary_downloader.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import itertools import tempfile from zipfile import ZipFile from utils.summary_downloader import SummaryDownloader def test_download_unzipped(): date = "Oct 24, 2016" tgt_dir = tempfile.mkdtemp(prefix='sdl_test_') prefixes = ["ES", "FC", "GS", "P...
Python
0
@@ -208,557 +208,317 @@ -date = %22Oct 24, 2016%22%0A tgt_dir = tempfile.mkdtemp(prefix='sdl_test_')%0A prefix +base_tgt_dir, date, fil es = -%5B%22ES%22, %22FC%22, %22GS%22, %22PL%22, %22RO%22, %22SS%22, %22TH%22, %22TV%22%5D%0A game_ids = %5B%22020081%22, %22020082%22%5D%0A%0A # setting up list of...
4527cd762ce4121c85e2b5904161d3d27637234c
Remove ipdb call :(
setup.py
setup.py
#!/usr/bin/env python # coding=utf-8 import os from setuptools import setup HERE = os.path.abspath(os.path.dirname(__file__)) PACKAGE_NAME = 'mailjet_rest' import ipdb; ipdb.set_trace() # Dynamically calculate the version based on mailjet_rest.VERSION. version = __import__('mailjet_rest').get_version() setup( n...
Python
0
@@ -156,38 +156,8 @@ t'%0A%0A -import ipdb; ipdb.set_trace()%0A # Dy
49cb87440acb2d29ade7104213a0cfafd8ababcb
Update setup.py
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import setup, find_packages from haystackbrowser import version SHORT_DESC = (u'A reusable Django application for viewing and debugging ' u'all the data that has been pushed into Haystack') REQUIREMENTS = [ 'Django>=1.2.0', 'django-haystack...
Python
0
@@ -1379,10 +1379,92 @@ dent'%5D,%0A + package_data=%7B'': %5B%0A 'templates/admin/haystackbrowser/*.html',%0A %5D%7D,%0A )%0A
73d69274a21818830b3a0b87ad574321c958c0f7
Add Framework::Pytest to list of classifiers
setup.py
setup.py
from setuptools import setup setup( name="pytest-cpp", version='0.4', packages=['pytest_cpp'], entry_points={ 'pytest11': ['cpp = pytest_cpp.plugin'], }, install_requires=['pytest', 'colorama'], # metadata for upload to PyPI author="Bruno Oliveira", author_email="nicoddemu...
Python
0
@@ -608,17 +608,47 @@ :: -3 - Alpha +4 - Beta',%0A 'Framework :: Pytest ',%0A
6e57b110750e3e871156a7716e95ffed3adf2cd1
Use io.open with encoding='utf-8' and flake8 compliance
setup.py
setup.py
import os, io from setuptools import setup, find_packages long_description = ( io.open('README.rst', encoding='utf-8').read() + '\n' + io.open('CHANGES.txt', encoding='utf-8').read()) setup(name='more.chameleon', version='0.3.dev0', description="Chameleon template integration for Morepath", ...
Python
0.000001
@@ -3,16 +3,12 @@ port - os, io%0A + from @@ -67,16 +67,26 @@ ption = +'%5Cn'.join( (%0A io @@ -133,21 +133,9 @@ ad() -%0A + '%5Cn' + +, %0A @@ -182,16 +182,18 @@ ).read() +%0A) )%0A%0Asetup @@ -795,19 +795,17 @@ _require - = += dict(%0A
28c6a0129475265ae571bf4fbf1c3fce2112843a
Fix setup
setup.py
setup.py
from setuptools import setup, find_packages def readme(): with open('README.md') as f: return f.read() setup(name='autoc', version="0.1", description='autoc is a package for data cleaning exploration and modelling in pandas', long_description=readme(), author=['Eric Fourrier'], ...
Python
0.000001
@@ -647,16 +647,17 @@ rn%3E=0.5' +, %0A
a73dcbac3c17850bad2fc3ea22aeec418cce8e13
Fix extra linebreak after header
setup.py
setup.py
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import ast import json import os import re import subprocess from distutils.command.build import build f...
Python
0.000009
@@ -207,17 +207,16 @@ tails.%0A%0A -%0A import a
4b37bfb1f6b39b088ba19eaea38c9fbde49cb214
Integrate nose with setuptools.
setup.py
setup.py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: readme = open(os.path.join(here, 'README.md')).read() except IOError: readme = '' setup( name='detach', version='0.1', description="Fork and detach the current processe.", long_descrip...
Python
0
@@ -195,16 +195,57 @@ e = ''%0A%0A +setup_requires = %5B%0A 'nose%3E=1.3.0',%0A%5D%0A%0A setup(%0A @@ -832,10 +832,80 @@ tach'%5D,%0A + setup_requires=setup_requires,%0A test_suite = 'nose.collector',%0A )%0A
3089a44a090e43465d67c4983185aaa469b422a4
use README.rst as long_description in setup.py
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable=invalid-name """ AudioTSM ~~~~~~~~ AudioTSM is a python library for real-time audio time-scale modification procedures, i.e. algorithms that change the speed of an audio signal without changing its pitch. :copyright: (c) 2017 by Muges. :license: MIT, s...
Python
0
@@ -705,16 +705,84 @@ p(1)))%0A%0A +with open('README.rst', 'r') as f:%0A long_description = f.read()%0A%0A setup(%0A @@ -916,15 +916,24 @@ ion= -__doc__ +long_description ,%0A
344db216837c7872155b79b0b78fa008b9039828
Bump version: 2.29.0 β†’ 2.29.0
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from setuptools.command.install import install VERSION = '2.29.0' class VerifyVersionCommand(install): """Custom command to verify that the git tag matches our version""" description = 'verify that the git tag matches our v...
Python
0
@@ -137,16 +137,27 @@ ERSION = + 'VERSION = '2.29.0 @@ -157,16 +157,17 @@ '2.29.0' +' %0A%0Aclass
0008a2d4b60ad827209ad40f1059ff02eac130db
Disable caching of CommentOptions temporarily.
ella/ellacomments/models.py
ella/ellacomments/models.py
from datetime import datetime from django.db import models from django.contrib.contenttypes.models import ContentType from django.utils.translation import ugettext_lazy as _ from ella.core.cache.utils import CachedGenericForeignKey, get_cached_object class DefaultCommentOptions(object): blocked = False premo...
Python
0
@@ -535,24 +535,25 @@ +# return get_c @@ -615,16 +615,72 @@ _id=id)%0A + return self.get(target_ct=ct, target_id=id)%0A
bfe86a99b7e4276a537327af6f5201dff50cb10f
Remove fake wrong_revision element
gryphon/app.py
gryphon/app.py
import sys import os import logging from flask import Flask, render_template, session, request, redirect, flash from flask.helpers import url_for from markupsafe import Markup from aws_classes import (Cluster, get_authorization, list_clusters, get_task_def_list, region, get_exec_info, ecs, pa...
Python
0.000008
@@ -4176,81 +4176,8 @@ ame) -%0A wrong_revision.append(('fake cluster', 'fake service', 123)) # TODO %0A%0A
7b20699a568ad2d5b59acf9d1c4ca100c975595e
Improve test coverage.
tests/tests/test_contrib_demo.py
tests/tests/test_contrib_demo.py
from django.test import TestCase from django.contrib.auth.models import User from django.core.management import call_command from django.db import migrations, models, connection from django.db.migrations.state import ProjectState from django.utils import timezone from .utils import get_table_list from boardinghouse....
Python
0.000001
@@ -957,36 +957,373 @@ (self):%0A -pass +User.objects.create_user(**CREDENTIALS)%0A other = User.objects.create_user(username='other', password='password')%0A DemoSchema.objects.create(user=other)%0A%0A self.client.login(**CREDENTIALS)%0A response = self.client.get('/aware/?__schema...
b2b2d2bbcefc14c8b0aff99fd138f258edb2d402
Tweak docstring.
src/txacme/testing.py
src/txacme/testing.py
""" Utilities for testing with txacme. """ from collections import OrderedDict from datetime import timedelta from uuid import uuid4 from acme import challenges, messages from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serializat...
Python
0
@@ -772,20 +772,8 @@ ues -self-signed cert @@ -780,16 +780,42 @@ ificates + signed by its own fake CA .%0A %22%22
5fcabd15218a774018b40dadd23a1a67f790a32d
Fix monkeypatching for new internals.
tests/unit/builders/test_venv.py
tests/unit/builders/test_venv.py
import subprocess import pretend import pytest import virtualenv.builders.venv from virtualenv.builders.venv import VenvBuilder, _SCRIPT def test_venv_builder_check_available_success(monkeypatch): check_output = pretend.call_recorder(lambda *a, **kw: None) monkeypatch.setattr( virtualenv.builders.v...
Python
0
@@ -133,16 +133,47 @@ _SCRIPT%0A +from virtualenv import _compat%0A %0A%0Adef te @@ -1303,16 +1303,102 @@ k_call)%0A + monkeypatch.setattr(VenvBuilder, %22_get_base_python_bin%22, lambda self: %22real-wat%22)%0A buil @@ -1723,32 +1723,37 @@ pretend.call(%5B%22 +real- wat%22, %22-c%22, scri