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
8c689708f7e479c2c622e723805e8b8d1b8d5fec
fix indent error.
nefertari_es/documents.py
nefertari_es/documents.py
from elasticsearch_dsl import DocType from nefertari.json_httpexceptions import JHTTPNotFound class BaseDocument(DocType): def save(self, request=None): super(BaseDocument, self).save() return self def update(self, params, request=None): super(BaseDocument, self).update(**params) ...
Python
0
@@ -1229,25 +1229,24 @@ w):%0A - %22%22%22 Get sing
55d6c5c7ea2e051c132477469c6e820ef76c1899
change the test back
tests/test_commands.py
tests/test_commands.py
import subprocess BILLINGE_TEST = False # special tests for Billinge group, switch it to False before push to remote def test_fs_to_mongo(make_db): if BILLINGE_TEST: from pathlib import Path repo = str(Path(__file__).parent.parent.parent.joinpath('rg-db-group', 'local')) else: repo =...
Python
0.000001
@@ -376,119 +376,8 @@ ngo' -, '--uri', %22mongodb+srv://stao:e=2.71828E00@cluster0-txgoy.mongodb.net/rg-db-group?retryWrites=true&w=majority%22 %5D, c
bc45da433ceafe0d2319d46a1d15ea3f2c024f13
move _create_file helper to general command test base
tests/test_commands.py
tests/test_commands.py
import unittest import os, shutil, tempfile, types import pdb from fragman.__main__ import ExecutionError, init, stat, track, commit from fragman.config import configuration_file_name, configuration_directory_name, ConfigurationDirectoryNotFound, FragmanConfig class CommandBase(unittest.TestCase): test_content_...
Python
0.000001
@@ -807,24 +807,280 @@ tearDown()%0A%0A + def _create_file(self, file_name='file.ext', contents='CONTENTS%5CnCONTENTS%5Cn'):%0A file_path = os.path.join(self.content_path, file_name)%0A new_file = file(file_path, 'w')%0A new_file.write(contents)%0A return file_name, file_path%0A%0A %0Ac...
f797a0a80feac8e837f6fd2201e9e9a4d3a58d9a
fix logging
netdicom/DULparameters.py
netdicom/DULparameters.py
# DUL Service Parameters # 3.8 Section 7 class ServiceParam: def __repr__(self): tmp = '' for ii in self.__dict__.keys(): tmp += str(ii) + ' ' + str(self.__dict__[ii]) + ' ' + '\n' return tmp # # A-ASSOCIATE service parameters # class A_ASSOCIATE_ServiceParameters(ServicePar...
Python
0.000002
@@ -1902,24 +1902,143 @@ ion = None%0A%0A + def __str__(self):%0A return %22AbortSource=%25s, UserInformation=%25s%22 %25 (self.AbortSource, self.UserInformation)%0A%0A #%0A# A-P-ABOR @@ -3674,11 +3674,8 @@ tation)%0A -%0A%0A%0A
5013a8727f28215e5f084740a3183a499e121173
Use triple double quote for docstring
api.py
api.py
# This Python file uses the following encoding: utf-8 from flask import Flask from flask_restplus import Api, Resource, fields from subprocess import check_output import shutil app = Flask(__name__) api = Api(app, version='0.1', title='Speak API', description='Get phonemes of a text from various TTS backends...
Python
0
@@ -3158,27 +3158,27 @@ ource):%0A -''' +%22%22%22 Show a singl @@ -3204,19 +3204,19 @@ with it -''' +%22%22%22 %0A @ap @@ -3365,27 +3365,27 @@ e):%0A -''' +%22%22%22 Show a backe @@ -3378,35 +3378,35 @@ %22%22Show a backend -''' +%22%22%22 %0A abort_i @@ -3593,19 +3593,19 @@ -'...
d8396a27bbaf7b302cc001862abf600479045487
Split off the pol cal
EVLA_pipeline1.3.0/EVLA_run_all_mixedsetup.py
EVLA_pipeline1.3.0/EVLA_run_all_mixedsetup.py
import sys import os import numpy as np from datetime import datetime import copy ''' EVLA pipeline running for mixed setups. Applies the first few steps of the pipeline up to basic flagging (shadowing, zeros, ...). The continuum and line spws are then split into their own directories. The full pipeline is then run ...
Python
0.006306
@@ -38,38 +38,8 @@ np%0A -from datetime import datetime%0A impo @@ -534,19 +534,16 @@ MS File? - : %22)%0A p @@ -592,11 +592,8 @@ ine? - : %22)%0A%0A @@ -969,16 +969,155 @@ lose()%0A%0A +tb.open(vis + '/FIELD')%0Afields = tb.getcol('NAMES')%0Atb.close()%0A%0A# Drop the pol cal.%0Afields = fields%5Bnp.where...
4eb883182e8c7f905bde4eb878eb31bb44bda9c4
Update i18n translation for neutron.api log msg's
neutron/hacking/checks.py
neutron/hacking/checks.py
# Copyright (c) 2014 OpenStack Foundation. # # 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 ...
Python
0.000001
@@ -1750,16 +1750,43 @@ agent%22,%0A + %22neutron/api%22,%0A
a6389bb49da2becfee161b1e708830921e818d24
Use local date instead of UTC.
nimp/utilities/logging.py
nimp/utilities/logging.py
# -*- coding: utf-8 -*- from datetime import datetime import sys #------------------------------------------------------------------------------- DEFAULT_BAR_TEMPLATE = "{label}[{filled_chars}{empty_chars}] {position}/{total} - {time_left} - {step_name}" DEFAULT_BAR_WIDTH = 15 #-----------------------------------...
Python
0
@@ -835,11 +835,8 @@ ime. -utc now(
a0e180aee6688c59459f2f1798e1811d32142368
fix test
tests/test_examples.py
tests/test_examples.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import sys import os from rasa_core.channels.file import FileInputChannel from rasa_core.interpreter import RegexInterpreter def test_moodbot_example(): from rasa...
Python
0.000002
@@ -1472,40 +1472,23 @@ -assert response.get(%22tracker%22) = +%0A reference = %7B%0A @@ -1621,16 +1621,66 @@ False,%0A + 'latest_message_time': 1513023382.101372,%0A @@ -1883,16 +1883,16 @@ nues'%7D,%0A - @@ -1911,16 +1911,209 @@ s': %5B%5D%7D%7D +%0A result = response.get(...
3adc2582a50f224caab9723f18fa680d5dc6ed2a
Test that the Bzr handler creates intermediate directories when needed.
tests/test_handlers.py
tests/test_handlers.py
from unittest import TestCase from urlparse import urlparse from mock import ( patch, MagicMock, ) from codetree.handlers import ( SourceHandler, BzrSourceHandler, ) BzrURLs = ( "bzr://example.com/foo", "lp:debian/apt", "bzr+ssh://bazaar.launchpad.net/~foo/bar/trunk", "bzr+http://exam...
Python
0
@@ -1,12 +1,22 @@ +import os%0A from unittes @@ -2956,32 +2956,353 @@ ource, dest)))%0A%0A + @patch(%22codetree.handlers.check_output%22)%0A @patch(%22codetree.handlers.os.makedirs%22)%0A def test_creates_new_dirs(self, _makedirs, _call):%0A source = BzrURLs%5B0%5D%0A dest = %22foo/bar/baz%22%0...
45f84319feca0c655ad3c7def12915541b4b7036
fix it
tests/test_jsontool.py
tests/test_jsontool.py
# coding=utf-8 # author@alingse # 2016.08.09 import unittest from jsoncsv.jsontool import expand, restore from jsoncsv.jsontool import is_array class Testjsontool(unittest.TestCase): def test_string(self): s = "sss" exp = expand(s) _s = restore(exp) self.assertEqual(s, _s) d...
Python
0.999999
@@ -140,16 +140,17 @@ _array%0A%0A +%0A class Te
6f9c797646cf1bf6ac9d6d6a57b80d5e603d0820
Add another stupid tests for cli parser and handler resolver
tests/test_listener.py
tests/test_listener.py
#!/usr/bin/env python import os import pytest import pg_bawler.core import pg_bawler.listener def test_register_handlers(): listener = pg_bawler.core.ListenerMixin() assert listener.register_handler(None) == 0 assert listener.register_handler(True) == 1 assert listener.unregister_handler(None) a...
Python
0
@@ -15,16 +15,32 @@ python%0A +import argparse%0A import o @@ -375,16 +375,349 @@ None)%0A%0A%0A +def test_default_cli_parser():%0A parser = pg_bawler.listener.get_default_cli_args_parser()%0A assert isinstance(parser, argparse.ArgumentParser)%0A%0A%0Adef test_resolve_handler():%0A handler = pg_bawler.list...
07f5d5d49b9ba66bb53cf49589003ecfd9a606ed
assert a table exists
tests/test_migrator.py
tests/test_migrator.py
import pytest import peewee from peewee_moves import DatabaseManager def test_create_table(tmpdir): manager = DatabaseManager('sqlite:///:memory:', directory=tmpdir) with manager.migrator.create_table('awesome') as table: table.primary_key('id') table.bare('col_bare') table.bigintege...
Python
0.998816
@@ -981,16 +981,69 @@ =True)%0A%0A + assert manager.database.table_exists('awesome')%0A%0A %0Adef tes @@ -1263,32 +1263,88 @@ able('awesome')%0A + assert not manager.database.table_exists('awesome')%0A %0A%0Adef test_add_d
bf575c888f5ca70370357d5e5e71d0fcbd6df767
add credentials to fix error in Travis CI
tests/test_polisher.py
tests/test_polisher.py
#!/usr/bin/env python """ Tests for `polisher` module. """ from collections import namedtuple import logging import unittest from mock_api import DimensionDataMockHttp from libcloud.compute.drivers.dimensiondata import DimensionDataNodeDriver from libcloud.compute.types import NodeState from plumbery.engine import...
Python
0
@@ -4852,24 +4852,152 @@ eryEngine()%0A + engine.set_shared_secret('fake_secret')%0A engine.set_user_name('fake_name')%0A engine.set_user_password('fake_password')%0A engine.f
e812f0d742b73ffb7e3b4c3d1474a7d71ababe0e
Add test_filesource_image
tests/test_template.py
tests/test_template.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import logya.core import logya.template L = logya.core.Logya(dir_site='logya/sites/base/') L.build() # Test the functions called in templates. env_globals = logya.template.env.globals def test_get_docs(): doc_count = len(L.doc_index) assert doc_count > 1 ass...
Python
0.000011
@@ -123,20 +123,20 @@ a/sites/ -base +docs /')%0AL.bu @@ -699,30 +699,8 @@ url: - http://localhost:8080 ' in @@ -730,16 +730,109 @@ ctions:' in text +%0A%0A%0Adef test_filesource_image():%0A image = env_globals%5B'filesource'%5D('static/img/logya.png')
ccad5150e621067ef637104f9a20371bb4533ce8
Use wal functions.
tests/test_template.py
tests/test_template.py
"""Test export functions.""" import unittest import pathlib from pywal import template from pywal import util # Import colors. COLORS = util.read_file_json("tests/test_files/test_file.json") class TestExportColors(unittest.TestCase): """Test the export functions.""" def test_template(self): """> T...
Python
0
@@ -72,24 +72,19 @@ import -template +wal %0Afrom py @@ -591,24 +591,19 @@ -template +wal .export_
f1f36d611f226074e6c3c49c01b9c982079fa588
fix for flaky test
tests/test_watchdog.py
tests/test_watchdog.py
import unittest import subprocess import os import sys from random import random import urllib as url import time sys.path.append(os.getcwd()) from ddagent import Application from util import Watchdog class TestWatchdog(unittest.TestCase): """Test watchdog in various conditions """ def test_watchdog(self)...
Python
0
@@ -282,24 +282,48 @@ ons%0A %22%22%22%0A +%0A JITTER_FACTOR = 2%0A%0A def test @@ -794,38 +794,36 @@ self.assert -Equals +True (duration, 5)%0A%0A @@ -807,33 +807,55 @@ ertTrue(duration -, + %3C self.JITTER_FACTOR * 5)%0A%0A # S @@ -1216,38 +1216,36 @@ self.assert -Equals +True (du...
fe652d0eda9b18f194c7e712a0785dafe7f7be84
Add a test
tests/test_anchor_target_layer.py
tests/test_anchor_target_layer.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import numpy as np import cv2 as cv from models.anchor_target_layer import AnchorTargetLayer from models.bbox_transform import keep_inside class TestAnchorTargetLayer(unittest.TestCase): def setUp(self): self.x = np.arange(256 * 14 * 14, dt...
Python
0.002397
@@ -68,20 +68,49 @@ ort -numpy as np%0A +time%0Aimport numpy as np%0Aimport cupy as cp %0Aimp @@ -1377,32 +1377,410 @@ anchor_canvas)%0A%0A + def test_time(self):%0A st = time.time()%0A self.anchor_target_layer(self.x, self.gt_boxes, self.img_info)%0A print('CPU:', time.time() - st, 'sec')%0...
e571ad486caf0b03f6d4b379e95d95a18215e62f
Remove nose dep
tests/test_yolk_cli.py
tests/test_yolk_cli.py
from nose import SkipTest class TestStdOut: def test_object_initialization(self): pass # TODO: implement your test here def test_write(self): pass # TODO: implement your test here def test_writelines(self): pass # TODO: implement your test here class TestYolk: def test_object...
Python
0.000002
@@ -1,30 +1,4 @@ -from nose import SkipTest%0A %0Acla
4aeaedf34c4206c6b138cfdc026b86a0a41ade71
Change HOOKS_DIR default value
polemarch/main/settings.py
polemarch/main/settings.py
from vstutils.settings import * POLEMARCH_VERSION = PROJECT_VERSION APACHE = False if ("runserver" in sys.argv) else True # Directory for git projects PROJECTS_DIR = config.get("main", "projects_dir", fallback="{HOME}/projects").format(**KWARGS) os.makedirs(PROJECTS_DIR) if not os.path.exists(PROJECTS_DIR) else None ...
Python
0
@@ -1997,19 +1997,36 @@ lback=%22/ -tmp +etc/polemarch/hooks/ %22)%0A%0AAPI_
f1cca406a265715428d5279b556987ac6ebe9db1
use cli.formats().
tests/unit/cli_test.py
tests/unit/cli_test.py
# -*- coding: utf-8 -*- """Test cases for the steenzout.barcode.cli package.""" import abc import pytest import unittest from click.testing import CliRunner from steenzout import barcode from steenzout.barcode import cli @pytest.fixture def runner(): return CliRunner() class ClickTestCase(unittest.TestCase):...
Python
0
@@ -1003,23 +1003,25 @@ in -cli.IMG_FORMATS +barcode.formats() :%0A
e2964f972823df3158d2a8ced5b0a8e784041447
test cli fix, take 2
tests/unit/test_cli.py
tests/unit/test_cli.py
import contextlib from io import StringIO from unittest import TestCase import docopt from torba.testcase import AsyncioTestCase from lbrynet.extras.cli import normalize_value, main from lbrynet.extras.system_info import get_platform from lbrynet.extras.daemon.Daemon import Daemon class CLITest(AsyncioTestCase): ...
Python
0
@@ -4079,16 +4079,25 @@ lah/foo' +, 'video' %5D)%0A @@ -4304,17 +4304,8 @@ 1.0%22 -, %22video%22 %5D)%0A
7e7500adda58d619c83911a1b711a7e4e71abb88
Send back actual JSON in index
fls.py
fls.py
# -*- coding: utf-8 -*- from flask import Flask, send_file, request, render_template, jsonify, make_response, url_for import json from functools import wraps from hexagram import Hexagram, Trigram app = Flask(__name__) with app.app_context(): app.config["SERVER_NAME"] = "cleromancer.herokuapp.com" def json_resp()...
Python
0
@@ -4590,23 +4590,11 @@ ms=%5B -json.dumps( msg -) %5D)%0A
6dc50dbca8c2874a86e8f36f07a584e846988270
drop unnecessary code
prime.py
prime.py
# -*- coding: utf-8 -*- import random from solovaystrassen import SolovayStrassen class Prime: """ Class for working with prime numbers """ SOLOVAY_STRASSEN_ROUNDS = 100 def __init__(self, bits): """ Constructor for prime numbers. The Constructor reads a random Number a...
Python
0.000001
@@ -3338,107 +3338,4 @@ True -%0A%0Aif __name__ == '__main__':%0A b = 2048%0A p = Prime(b)%0A print(b)%0A print(p.value.bit_length())
5bbe47b842f04bd315601a260a974c517fa60ce9
Update diff test case
text_test/diff_test.py
text_test/diff_test.py
# coding=utf-8 import unittest from text import diff from text import text_file class DiffTest(unittest.TestCase): def test_compare_text(self): diff_text_src = text_file.read('test_file/diff_text_src') diff_text_dst = text_file.read('test_file/diff_text_dst') result = diff.co...
Python
0
@@ -178,32 +178,37 @@ = text_file.read +_file ('test_file/diff @@ -249,32 +249,37 @@ = text_file.read +_file ('test_file/diff @@ -856,32 +856,37 @@ = text_file.read +_file ('test_file/diff @@ -935,16 +935,21 @@ ile.read +_file ('test_f
218cb0dfff682953e95dda0b9f86ca61c5ff9c85
update test2
prediction/anf_py/test2.py
prediction/anf_py/test2.py
import tensorflow as tf import os import numpy as np import pandas as pd # import matplotlib.pyplot as plt os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Khai bao hang so WINDOW_SIZE = 20 RULE_NUMBER = 5 ATTRIBUTE = 'meanCPUUsage' p_para_shape = [WINDOW_SIZE, RULE_NUMBER] TRAIN_PERCENTAGE = 0.8 fname = "google_trace_time...
Python
0
@@ -3343,14 +3343,8 @@ e')) -%5B:100%5D %0A @@ -4375,17 +4375,17 @@ izer(1e- -3 +2 ).minimi
a0ca9fba5bb3137ac094cacbf8b863a101335a62
Use new readme file name
release/util/abstract_releaser.py
release/util/abstract_releaser.py
import os import shutil from distutils.dir_util import copy_tree class AbstractReleaser(object): DIRS_TO_ARCHIVE = [] APP_NAME = '' EXCLUDED_FILES = ['local.meta', 'requirements-splunk.txt', '*.pyc', '*.pyo'] SPLUNKBASE_README = 'README_sb.md' LICENSE = 'LICENSE' def __init__(self, app_dir): ...
Python
0
@@ -252,10 +252,18 @@ DME_ -sb +SPLUNKBASE .md' @@ -1569,29 +1569,28 @@ makedirs(self._tmp_app_dir)%0A -%0A
faf6b37356478918f3e498dd0e4f900c379eba3e
stringify path.
planet4/gold_standard_checker.py
planet4/gold_standard_checker.py
#!/usr/bin/env python """Checks if a given html file was processed by given user name using the current available data file.""" from __future__ import print_function, division try: from HTMLParser import HTMLParser except ImportError: from html.parser import HTMLParser import pandas as pd import argparse from ....
Python
0.859813
@@ -888,22 +888,27 @@ ead_hdf( +str( dbname +) , 'df',
be8907db3eac1c96caa62154775a6ef88c65a128
add additional fields to notify_observer in disabled state
planetstack/observer/__init__.py
planetstack/observer/__init__.py
from planetstack.config import Config try: observer_disabled = Config().observer_disabled except: observer_disabled = False print_once = True if (not observer_disabled): from .event_manager import EventSender def notify_observer(model=None, delete=False, pk=None, model_dict={}): try: ...
Python
0
@@ -851,20 +851,43 @@ te=False +, pk=None, model_dict=%7B%7D ):%0A -# @@ -903,17 +903,16 @@ _once):%0A -# @@ -952,9 +952,8 @@ ed%22%0A -#
0f62d65355a7353449528ba497fa6e34422ca38b
Bump version to 0.7.3
thermochem/__init__.py
thermochem/__init__.py
__version__ = '0.7.2'
Python
0
@@ -16,7 +16,7 @@ 0.7. -2 +3 '%0A
ac7d8b1c052647a868c403d43717f33e55847ec4
Remove debug print line.
playbooks/lifecycle_inventory.py
playbooks/lifecycle_inventory.py
#!/usr/bin/env python """ Build an ansible inventory based on autoscaling group instance lifecycle state. Outputs JSON to stdout with keys for each state and combination of autoscaling group and state. { "InService": [ "10.0.47.127", "10.0.46.174" ], "Terminating:Wait": [ "10.0.48.104" ], "e-d-...
Python
0.000001
@@ -1732,47 +1732,8 @@ st:%0A - print len(asg_accumulator)%0A
5081641f1b189a43e9eab4813256598cc0a79f6f
Version bump to 0.2.7 for pypi
tigershark/__init__.py
tigershark/__init__.py
""" TigerShark - An X12 EDI message parser. """ __version__ = "0.2.6" __authors__ = [ "Steven Buss <steven.buss@gmail.com>", "Steven Lott <slott56@gmail.com>", ]
Python
0
@@ -60,17 +60,17 @@ = %220.2. -6 +7 %22%0A__auth
a57143431445146679ff2c4f37e4f71bdea577b2
update api to match new version of dynesty
prospect/fitting/nested.py
prospect/fitting/nested.py
import sys, time import numpy as np from numpy.random import normal, multivariate_normal from six.moves import range from dynesty.utils import * from dynesty.dynamicsampler import _kld_error try: import nestle except(ImportError): pass try: import dynesty except(ImportError): pass __all__ = ["run_n...
Python
0
@@ -1880,24 +1880,21 @@ ed_save_ -proposal +bound s=True,* @@ -5612,24 +5612,21 @@ save_ -proposal +bound s=nested @@ -5635,16 +5635,13 @@ ave_ -proposal +bound s):%0A
b216576fc428d9e566de06d0310ff8850284d039
seed sucked for example. change
examples/plot_ovk_regression_multiple_outputs.py
examples/plot_ovk_regression_multiple_outputs.py
""" ============================================== Multi-output Operator-valued kernel Regression ============================================== An example to illustrate multi-output regression with operator-valued kernels. We compare Operator-valued kernel (OVK) without prior (ID), with covariance constraint prior (...
Python
0.999819
@@ -859,17 +859,19 @@ %0Aseed = -0 +123 %0Anp.rand
4c14b38af7b14ab3ce2ff1e698f4642eab17971a
add version to package __init__
djangorpc/__init__.py
djangorpc/__init__.py
from __future__ import unicode_literals from djangorpc.responses import Error, Msg, RpcResponse, RpcHttpResponse from djangorpc.router import RpcRouter __all__ = ('Error', 'Msg', 'RpcResponse', 'RpcRouter', 'RpcHttpResponse')
Python
0
@@ -34,16 +34,59 @@ terals%0A%0A +__version__ = '0.3'%0AVERSION = __version__%0A%0A from dja
02ae8d532092621b9babd8947a7ee02f3a0535a3
make dicts more readable
osmaxx/conversion/converters/converter_gis/helper/osm_importer.py
osmaxx/conversion/converters/converter_gis/helper/osm_importer.py
from itertools import chain from sqlalchemy import MetaData, Table, create_engine, func from sqlalchemy.engine.url import URL from sqlalchemy.sql import select, insert from geoalchemy2 import Geometry, Geography class OSMImporter: def __init__(self): self._osm_derived_tables = ['osm_point', 'osm_line', 'o...
Python
0.000129
@@ -432,33 +432,37 @@ on_parameters = -%7B +dict( %0A 'us @@ -454,33 +454,32 @@ -' username ': 'gis',%0A @@ -466,19 +466,17 @@ username -': += 'gis',%0A @@ -482,33 +482,32 @@ -' password ': 'gis',%0A @@ -494,19 +494,17 @@ password -': += 'gis',%0A @@ -510,32 +51...
c3f2ea775246bd152d4d62bcaa85fde4dd818197
Write failing unit test for issue #3
frosted/test/test_return_with_arguments_inside_generator.py
frosted/test/test_return_with_arguments_inside_generator.py
from __future__ import absolute_import, division, print_function, unicode_literals from sys import version_info import pytest from pies.overrides import * from frosted import messages as m from frosted.test.harness import TestCase from .utils import flakes @pytest.mark.skipif("version_info >= (3,)") def test_ret...
Python
0.000001
@@ -847,28 +847,546 @@ urnWithArgsInsideGenerator)%0A +%0A%0A@pytest.mark.skipif(%22version_info %3E= (3,)%22)%0Adef test_return_with_args_inside_generator_not_duplicated():%0A # doubly nested - should still only complain once%0A flakes('''%0A def f0():%0A def f1():%0A yield None%0A ...
3853e86bd3c2cd1f32a2b8636598d42f2cd2474d
Fix a use of the print statement, not available in Python 3
candidates/tests/test_constraints.py
candidates/tests/test_constraints.py
from __future__ import unicode_literals from mock import patch from django.test import TestCase from popolo.models import Membership, Post from elections.models import Election from ..models import ( MembershipExtra, PostExtra, check_paired_models, check_membership_elections_consistent) from .factories impo...
Python
0.999994
@@ -32,16 +32,32 @@ literals +, print_function %0A%0Afrom m @@ -634,18 +634,19 @@ print - e +(e) %0A
ab18b897b01fa923cdd9e77d5a60880a8e0b6211
Add check for failing query call
git-keeper-robot/gkeeprobot/keywords/ClientCheckKeywords.py
git-keeper-robot/gkeeprobot/keywords/ClientCheckKeywords.py
# Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is dis...
Python
0
@@ -3184,24 +3184,323 @@ _expected)%0A%0A + def gkeep_query_fails(self, faculty, sub_command):%0A cmd = 'gkeep query --json %7B%7D'.format(sub_command)%0A try:%0A client_control.run(faculty, cmd)%0A raise GkeepRobotException('gkeep query should return non-zero')%0A except ...
175fa5181419e268292a3a8e032cef9eae318219
Fix timezone issue with calendar event filtering.
starbowmodweb/site/views.py
starbowmodweb/site/views.py
from django.http import Http404 from django.shortcuts import render from django.conf import settings from datetime import datetime, timedelta from starbowmodweb import mybb from starbowmodweb.ladder.helpers import get_leaderboard from starbowmodweb.ladder.models import BATTLENET_REGION_NA, BATTLENET_REGION_EU, BATTLENE...
Python
0
@@ -1683,32 +1683,35 @@ now = datetime. +utc now()%0A later @@ -1707,33 +1707,35 @@ %0A later = now -+ + + timedelta(second
ee6a484d1e93507f5636fb401a6765f37b8e4835
Remove unused import.
starthinker/task/dbm/run.py
starthinker/task/dbm/run.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 # # https://www.apache.org/l...
Python
0.000004
@@ -1387,18 +1387,8 @@ rows -, get_rows %0Afro
6e288e276280b2f3a58ffd49d1f1aac3641f9600
Update distmappings
fedoracommunity/search/distmappings.py
fedoracommunity/search/distmappings.py
# Global list of koji tags we care about tags = ({'name': 'Rawhide', 'tag': 'f21'}, {'name': 'Fedora 20', 'tag': 'f20-updates'}, {'name': 'Fedora 20', 'tag': 'f20'}, {'name': 'Fedora 20 Testing', 'tag': 'f20-updates-testing'}, {'name': 'Fedora 19', 'tag': 'f19-updates'}, {'name...
Python
0
@@ -649,32 +649,40 @@ %7B'name': 'EPEL 6 + Testing ', 'tag': 'dist- @@ -692,32 +692,32 @@ epel-testing'%7D,%0A - %0A %7B'name' @@ -768,32 +768,40 @@ %7B'name': 'EPEL 5 + Testing ', 'tag': 'dist- @@ -818,16 +818,121 @@ sting'%7D, +%0A%0A %7B'name': 'EPEL 7', 'tag': 'epel7'%7D,%0A %7B'name': '...
0b7718c74a8fc905cc209b4859408feae5805029
add pthreads option to swig command
proton-c/bindings/python/setuputils/misc.py
proton-c/bindings/python/setuputils/misc.py
#----------------------------------------------------------------------------- # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. # # This bundling code is largely adapted from pyzmq-static's get.sh by # Brandon Craig-Rhodes, which is itself BSD licensed. #------------------...
Python
0
@@ -1133,24 +1133,34 @@ g_opts'%5D = %5B +'-threads' %5D%0A settin
7800fd13e93b1b11994a45b9bb6bdd2726222792
Add ordinals to numbers found in the middle of a street name
fixes/fix-ordinals/ordinal_grouping.py
fixes/fix-ordinals/ordinal_grouping.py
from sys import argv import xml.parsers.expat from cgi import escape def ordinal(n): # actually adding the ordinals to numbers n = int(n) if 10 <= n % 100 < 20: return str(n) + 'th' else: return str(n) + {1 : 'st', 2 : 'nd', 3 : 'rd'}.get(n % 10, 'th') def ordinalize(street): # s...
Python
0.999677
@@ -126,16 +126,29 @@ numbers%0A + try:%0A n = @@ -158,16 +158,20 @@ (n)%0A + + if 10 %3C= @@ -189,24 +189,28 @@ 20:%0A + return str(n @@ -218,30 +218,38 @@ + 'th'%0A + + else:%0A + retur @@ -309,16 +309,103 @@ , 'th')%0A + except:%0A print 'screwy...
a3c200905dd87c60e951440e3693f97464f3ee20
load price times 100 (because of gopay api)
proso_subscription/management/commands/load_subscription_plans.py
proso_subscription/management/commands/load_subscription_plans.py
from clint.textui import progress from django.core.management.base import BaseCommand from django.db import transaction from jsonschema import validate from proso_subscription.models import SubscriptionPlan, SubscriptionPlanDescription import json import os import re class Command(BaseCommand): def add_arguments...
Python
0
@@ -1883,16 +1883,22 @@ 'price'%5D + * 100 %0A
5a838d3fac224e1fad1c7341964cec43cd1710a4
fix id
rfd.py
rfd.py
#!usr/bin/python # # (C) $Author$, 2009 MIT License # __version__ = '$ID$ $Rev$ $Date$' """ Tags pages for RFD Usage: python rfd.py """ import re, time from pywikibot import wiki o = wiki.Page('User:Arthur Rubin/Roman redirects') list = re.findall('\[\[:M(.*?)\]\]', o.get()) newlist = [] for i in list: newlist.appen...
Python
0.00025
@@ -65,17 +65,17 @@ __ = '$I -D +d $ $Rev$
1c27bb0dbc0ba8d87ec293e921326f567941e534
Convert unicode json to float for lat/long
server/utility/dataset_utility.py
server/utility/dataset_utility.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware Inc. # # Licensed under the Apache License, Version 2.0 ( the "License" ); # you may not use this file except in compliance with the License. # You may obtain a copy of ...
Python
0.999998
@@ -5139,32 +5139,38 @@ return +float( match%5B0%5D.value%0A%0A @@ -5159,32 +5159,33 @@ t(match%5B0%5D.value +) %0A%0A @@ -5283,16 +5283,22 @@ return +float( match%5B0%5D @@ -5303,16 +5303,17 @@ 0%5D.value +) %0A%0A
b6fc1993f622c5e3658822e611e493c4125afcc6
Add fb to the list of installed apps in the project.
purepython/settings.py
purepython/settings.py
""" Django settings for purepython project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...)...
Python
0
@@ -1005,16 +1005,26 @@ files',%0A + 'fb',%0A )%0A%0AMIDDL
409fac761beab017fc93eeb955a3b0a7eb2b8565
print ALL
py_scripts/json2csv.py
py_scripts/json2csv.py
import time import urllib2 import json import sys storm_ui_url = "http://"+sys.argv[1] topology_string = storm_ui_url+"/api/v1/topology/"+ sys.argv[2] sleep_t = int(sys.argv[3]) print "emitted, transferred, completeLatency, acked, failed" while True: response = urllib2.urlopen(topology_string) data = json....
Python
0.999998
@@ -328,16 +328,17 @@ sponse)%0A +# resu @@ -352,16 +352,17 @@ ng = %22%22%0A +# resu @@ -413,32 +413,33 @@ itted%22%5D) + %22, %22%0A +# result_strin @@ -491,24 +491,25 @@ d%22%5D) + %22, %22%0A +# result_s @@ -563,24 +563,25 @@ ncy%22%5D +%22, %22%0A +# result_s @@ -634,16 +634,17 @@ ) ...
019d33092226d1ff8fe36897c03d25ddd48e34b1
Use SQLAlchemy extension in Flask app.
serve.py
serve.py
""" Flask server app. """ import datetime as dt import sys import flask import sqlalchemy as sa import coils import tables import mapping app = flask.Flask(__name__) # Load configuration file. CONFIG = sys.argv[1] if len(sys.argv)>=2 else 'wabbit.cfg' config = coils.Config(CONFIG) @app.route('/') def index(): "...
Python
0
@@ -66,23 +66,31 @@ t flask%0A -import +from flask.ext. sqlalche @@ -96,34 +96,33 @@ emy -as sa%0A import -coils +SQLAlchemy %0Aimport tabl @@ -121,13 +121,12 @@ ort -table +coil s%0Aim @@ -143,37 +143,8 @@ ng%0A%0A -app = flask.Flask(__name__)%0A%0A # Lo @@ -260,264 +260,110 @@ G)%0A%0A -@app.route('/'...
235b043bcd75a7572e6461fc98bdcd437c0c368a
test using drmaa for sge backend...
modules/pipeliners.py
modules/pipeliners.py
import subprocess __verbose_level = 0 VERBOSE_LEVELS = {'DEBUG' : 0, 'INFO' : 1, 'WARN' : 2, 'ERROR' : 3, 'FATAL' : 4} REV_VERBOSE_LEVELS = { 0 : 'DEBUG', 1 : 'INFO', 2 : 'WARN', ...
Python
0
@@ -13,16 +13,28 @@ process%0A +import sge%0A%0A %0A__verbo @@ -404,16 +404,136 @@ ist();%0A%0A +__USE_SGE = 0%0A%0Adef local():%0A global __USE_SGE%0A __USE_SGE = 0%0A%0Adef SGE():%0A global __USE_SGE%0A __USE_SGE = 1%0A%0A%0A def set_ @@ -858,19 +858,16 @@ w_level%0A -%0A%0A %0A%0Adef @@ -1386,1...
67efd154d9bc37e1a5cd9e6473c6506e3f5069d9
use extra_requires
setup.py
setup.py
# -*- coding: utf-8 -*- # import os from distutils.core import setup import codecs # https://packaging.python.org/single_source_version/ base_dir = os.path.abspath(os.path.dirname(__file__)) about = {} with open(os.path.join(base_dir, 'meshio', '__about__.py')) as f: exec(f.read(), about) def read(fname): tr...
Python
0.000001
@@ -983,10 +983,11 @@ ' -h5 +num py', @@ -1000,12 +1000,16 @@ ' -lxml +pipdated ',%0A @@ -1019,36 +1019,127 @@ -'numpy',%0A 'pipdated', +%5D,%0A extras_require=%7B%0A 'dolfin': %5B'lxml'%5D, # Dolfin's legacy format%0A 'h5m': %5B'h5py'%5D, # MOAB's format %0A @@ -1139,25 +...
5bb24ae506020e18b58b7fa3386148d2a19fb90f
Update classifiers in setup.py
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup try: long_description = open('README.md', 'r').read() except: long_description = '' setup( name='samp-client', version='3.0.1', packages=['samp_client'], url='https://github.com/mick88/samp-client', license='MIT', author='Michal Dabski...
Python
0
@@ -930,16 +930,66 @@ : 3.9',%0A + 'Programming Language :: Python :: 3.10',%0A
7e49170c5764d3146bd08ce86f25cb710627cf61
Add conditional "typing" dependency
setup.py
setup.py
import ast import os import sys from setuptools import setup def get_version(): path = os.path.join(os.path.dirname(__file__), 'threema', 'gateway', '__init__.py') with open(path) as file: for line in file: if line.startswith('__version__'): _, value = line.split('=', maxs...
Python
0.000017
@@ -1713,24 +1713,103 @@ %0A %5D,%0A + ':python_version%3C=%223.5%22': %5B%0A 'typing%3E=3.6,%3C3.7',%0A %5D,%0A 'dev
1f9a18545748f301e7b8a86710370b875d04d568
Bump pypi version.
setup.py
setup.py
from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') return requires...
Python
0
@@ -574,17 +574,17 @@ on='0.2. -2 +3 ',%0A
ab916d23d768de5b79afb0db600c1bad199d7974
Use `mysql`s `-e` instead of echoing.
pyinfra/facts/mysql.py
pyinfra/facts/mysql.py
# pyinfra # File: pyinfra/facts/mysql.py # Desc: facts for the MySQL server import re from collections import defaultdict import six from pyinfra.api import FactBase def make_mysql_command( database=None, user=None, password=None, host=None, port=None, executable='mysql', ): target_bit...
Python
0
@@ -882,65 +882,45 @@ -command = command.replace('%22', '%5C%5C%22')%0A mysql_command = +return '%7B0%7D -e %22%7B1%7D%22'.format(%0A mak @@ -954,69 +954,51 @@ rgs) +, %0A -return 'echo %22%7B0%7D;%22 %7C %7B1%7D'.format(command, mysql_command + command.replace('%22', '%5C%5C%22'),%0A )%...
60e66b8957e63a044bcaca3d02bc75c33924fcab
Add `pkg_path` kwarg to `pkg.packages`.
pyinfra/modules/pkg.py
pyinfra/modules/pkg.py
# pyinfra # File: pyinfra/modules/pkg.py # Desc: manage BSD packages with pkg_* ''' Manage BSD packages and repositories. Note that BSD package names are case-sensitive. ''' from pyinfra.api import operation from .util.packaging import ensure_packages @operation def packages(state, host, packages=None, present=Tru...
Python
0
@@ -314,16 +314,31 @@ ent=True +, pkg_path=None ):%0A ' @@ -475,244 +475,560 @@ -'''%0A%0A pkg_path = ''%0A%0A if present is True:%0A host_os = host.fact.os or ''%0A%0A # We have to set the pkg_path manua ++ pkg_path: the PKG_PATH environment variable to set%0A%0A pkg_path:%0A B...
438255bed330aeecd02e3827c9b8ae8d33f624fd
Version 1.18.2
setup.py
setup.py
""" The setup package to install SeleniumBase dependencies and plugins (Uses selenium 3.x and is compatible with Python 2.7+ and Python 3.6+) """ from setuptools import setup, find_packages # noqa from os import path this_directory = path.abspath(path.dirname(__file__)) long_description = None try: with open(pa...
Python
0
@@ -555,17 +555,17 @@ n='1.18. -1 +2 ',%0A d
a883888810abb3d62f24789eabf62ec4277a571b
Add handlers for JOIN/PART
toolbot/adapter/irc.py
toolbot/adapter/irc.py
import irc3 from toolbot.adapter import Adapter from toolbot.message import TextMessage @irc3.plugin class MyPlugin: requires = [ 'irc3.plugins.core', 'irc3.plugins.userlist', ] def __init__(self, bot): self.bot = bot @irc3.event(irc3.rfc.PRIVMSG) def message(self, mask, ...
Python
0
@@ -70,16 +70,22 @@ import +(%0A TextMess @@ -87,16 +87,72 @@ tMessage +,%0A EnterMessage,%0A LeaveMessage,%0A TopicMessage)%0A %0A%0A@irc3. @@ -190,25 +190,16 @@ ires = %5B -%0A 'irc3.pl @@ -214,45 +214,8 @@ re', -%0A 'irc3.plugins.userlist',%0A %5D%0A%0A @@ -542,26 +542,12 @@...
2d34b82c8467b2838c786d37c1d120d406640cca
fix #18
setup.py
setup.py
from setuptools import setup setup(name='pycproject', version='0.1.3', description='Provides basic function to read a ContentMine CProject and CTrees into python datastructures.', url='http://github.com/ContentMine/pyCProject', author='Christopher Kittel', author_email='web@christopherkit...
Python
0.000001
@@ -557,9 +557,9 @@ %3E=3. -6 +5 .0',
522e08402c4ef3d2b32e6db5e2b47a9084dc5dcf
add list FieldMetaType
py/nupic/data/fieldmeta.py
py/nupic/data/fieldmeta.py
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditions apply: # # This pro...
Python
0
@@ -3236,16 +3236,32 @@ 'bool'%0A + list = 'list'%0A %0A%0Aclass
826b665ac57410c21b70ff9dd835c80895d43e83
change author info
setup.py
setup.py
# coding: utf-8 __author__ = 'Junki Ishida' from mbserializer._compat import PY26 from setuptools import setup tests_require=['PyYAML', 'lxml', 'defusedxml', 'pytz', ] if PY26: tests_require.append('ordereddict') setup( name='mbserializer', version='0.0.1-alpha', description='model based serializer ...
Python
0
@@ -395,24 +395,24 @@ _email=' -junkiish +likegomi @gmail.c @@ -448,16 +448,16 @@ com/ -junkiish +likegomi /mbs
9b597c4b3b5b847c4bd98b82ce347aec8bb85aaf
add `inherit_cache` to custom `FunctionElement`s
pycroft/model/functions.py
pycroft/model/functions.py
# Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file. # This file is part of the Pycroft project and licensed under the terms of # the Apache License, Version 2.0. See the LICENSE file for details. """ pycroft.model.functions ~~~~~~~~~~~~~~~~~~~~~~~ Add support for various functions present in Postgres to th...
Python
0
@@ -655,32 +655,57 @@ nctionElement):%0A + inherit_cache = True%0A type = Numer @@ -701,32 +701,32 @@ ype = Numeric()%0A - name = 'grea @@ -766,32 +766,57 @@ nctionElement):%0A + inherit_cache = True%0A type = Numer @@ -837,24 +837,24 @@ = 'least'%0A%0A%0A - class sign(e @@ -877,24 +877,49 @@ ...
93c7935ba7f55da84df9d4f0ae54f122642d3c66
Change file mode to non-executable.
motors/pololu/crc7.py
motors/pololu/crc7.py
# # motor/pololu/crc7.py # # Basic algorithm thanks to Jean-Loup Le Roux # https://code.google.com/p/robotter/source/browse/code/crc7.py?repo=charon # # Modifications by Carl J. Nobile # CRC7_POLY = 0x91 def byte_crc7(v): """ Compute CRC of a single byte. """ for i in range(8): if v & 1: ...
Python
0
9155355df09e94bb8799d193e69bf64e5ea9e162
Allow irc 7.0
setup.py
setup.py
# -*- coding: utf-8 -*- # vim:ts=4:sw=4:noexpandtab # c-basic-indent: 4; tab-width: 4; indent-tabs-mode: true; import sys import setuptools py26reqs = ['importlib'] if sys.version_info < (2, 7) else [] setup_params = dict( name="pmxbot", use_hg_version=True, packages=setuptools.find_packages(), include_package_d...
Python
0.002052
@@ -950,17 +950,17 @@ =6.0.1,%3C -7 +8 .0dev%22,%0A
52230e2bac8d84d693f288da321cf2c4ffff4979
update django version range
setup.py
setup.py
import os import sys from setuptools import setup, find_packages LONG_DESCRIPTION = """ Django design patterns and REST API for citizen science field data collection. """ def readme(): # Attempt to load markdown file try: readme = open('README.md') except IOError: return LONG_DESCRIPTION ...
Python
0.000001
@@ -2334,19 +2334,19 @@ %3E=1.11,%3C -3.1 +4.0 ',%0A
90e3ad6f648088c9d7153dcc6abae881d8e00d9b
Allow skipping any non-benched test.
pytest_bench/plugin.py
pytest_bench/plugin.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals, division import os import six import inspect # from timeit import timeit from timeit import default_timer as timer from functools import wraps from termcolor import colored import colorama def pytest_addoption(parser): group = parse...
Python
0
@@ -120,16 +120,30 @@ inspect%0A +import pytest%0A # from t @@ -470,16 +470,142 @@ ases.%22)%0A + group.addoption('--bench-only', action='store_true',%0A help=%22Perform benchmarks on marked test cases.%22)%0A %0A%0Adef py @@ -1742,32 +1742,33 @@ ds.get('bench')%0A +%0A if bench @@ -...
178ed9d3e5dc715991d85c85045bfedd9e6acf40
Update download_mnist.py
pylearn2/scripts/datasets/download_mnist.py
pylearn2/scripts/datasets/download_mnist.py
import os import urllib import gzip assert os.environ.has_key('PYLEARN2_DATA_PATH'), "PYLEARN2_DATA_PATH not defined" mnist_path = os.environ['PYLEARN2_DATA_PATH'] + "/mnist" if not os.path.isdir(mnist_path): print "creating path:" + mnist_path os.makedirs(mnist_path) in_dir = os.listdir(mnist_path) mnist_f...
Python
0
@@ -40,27 +40,8 @@ ert -os.environ.has_key( 'PYL @@ -56,17 +56,30 @@ TA_PATH' -) + in os.environ , %22PYLEA @@ -105,17 +105,16 @@ efined%22%0A -%0A mnist_pa @@ -118,16 +118,29 @@ _path = +os.path.join( os.envir @@ -167,19 +167,18 @@ TH'%5D - + +, %22 -/ mnist%22 +) %0A%0Aif @@ -234,16 +234,17 @@ ng path...
89370f4f330cbe0fda10ed8d12bdb3dc05e33dc0
Add test for new time units string.
pymt/framework/tests/test_bmi_time_units.py
pymt/framework/tests/test_bmi_time_units.py
from nose.tools import assert_equal from pymt.framework.bmi_bridge import _BmiCap class SimpleTimeBmi(): def get_time_units(self): return 0, 'h' def get_start_time(self): return 0, 1. def get_current_time(self): return 0, 10.5 def get_end_time(self): return 0, 72 ...
Python
0.000001
@@ -431,24 +431,66 @@ ime_wrap():%0A + %22%22%22Test wrapping BMI time methods.%22%22%22%0A bmi = Bm @@ -485,32 +485,32 @@ bmi = Bmi()%0A - %0A assert_equa @@ -777,24 +777,78 @@ nversion():%0A + %22%22%22Test unit conversion through units keyword.%22%22%22%0A bmi = Bm @@ -1095,24 +1095,74 @@ ...
939629634f0e39836108e1a1267398bc3fa9998f
Updated to 1.0.1
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = open('README.rst').read() history = open('HISTORY.rst...
Python
0.99917
@@ -407,17 +407,17 @@ on='1.0. -0 +1 ',%0A d
c23126f09b2cc5a4071cfa43a11272927e9c0fcd
bump version to 3.5.3 (#147)
setup.py
setup.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from os.path import dirname, join import sys from setuptools.command.test import test as TestCommand from setuptools import setup, find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License ::...
Python
0
@@ -1715,17 +1715,17 @@ on='3.5. -2 +3 ',%0A
38f5966b48263c909d67e923b434eacb8281bef4
Update version number is setup.py.
setup.py
setup.py
#!/usr/bin/env python import os # The multiprocessingimport is to prevent the following error # after all the tests have been executed. # Error in atexit._run_exitfuncs: # TypeError: 'NoneType' object is not callable # From: http://article.gmane.org/gmane.comp.python.peak/2509 # Work around setuptools bug # http://a...
Python
0
@@ -939,17 +939,17 @@ sion='1. -0 +1 .0',%0A
3e6084a212d0851f0ab2afa15c633512ee7422e2
Fix command
setup.py
setup.py
from setuptools import setup, find_packages from pip.req import parse_requirements import os def reqs(): req_path = os.path.join(os.path.dirname(__file__), "requirements.txt") install_reqs = parse_requirements(req_path) return [str(ir.req) for ir in install_reqs] def readme(): with open(os.path.join(o...
Python
0.000141
@@ -940,16 +940,23 @@ s.server +.server :init_pa
fea01346a3d3b8600720444cb43961ffaff2e6ae
Bump version
setup.py
setup.py
from setuptools import setup, find_packages setup( name='radar', version='2.3.8', description='RaDaR - Rare Disease Registry', author='Rupert Bedford', author_email='rupert.bedford@renalregistry.nhs.uk', url='https://www.radar.nhs.uk/', packages=find_packages(), include_package_data=Tru...
Python
0
@@ -84,9 +84,9 @@ 2.3. -8 +9 ',%0A
67aee2177f9d64877dec00c41beff6974e23db88
Disable flaky test Pixel.Canvas2DRedBox.
content/test/gpu/page_sets/pixel_tests.py
content/test/gpu/page_sets/pixel_tests.py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import page as page_module from telemetry.page import page_set as page_set_module class PixelTestsPage(page_module.Page): def __init_...
Python
0.000001
@@ -959,24 +959,26 @@ esktop')%0A + # self.AddUse @@ -995,32 +995,34 @@ elTestsPage(%0A + # url='file://. @@ -1052,32 +1052,34 @@ vas2d.html',%0A + # name='Pixel.C @@ -1089,32 +1089,34 @@ as2DRedBox',%0A + # test_rect=%5B0, @@ -1125,32 +1125,34 @@ , 300, 300%5D,%0A + # revision=4,%...
d1c93d46f4d9f5a21ca97c0825add06406569fc7
Make sure to ship translations with sdists.
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = 'django-orderable', version = '1.0.1', description = 'Model ordering for the Django administration site.', author = 'Ted Kaemming', author_email = 'ted@kaemming.com', url = 'http://www.github.com/tkaemming/djan...
Python
0
@@ -666,16 +666,61 @@ le.js',%0A + 'locale/*/LC_MESSAGES/django.*',%0A
045499f85dd5050761eafd95eb4e532974a3820e
Bump Version
setup.py
setup.py
import os import sys from setuptools import find_packages, setup from setuptools.command.test import test as test_command def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() class PyTest(test_command): def f...
Python
0
@@ -679,17 +679,17 @@ = '1.0. -7 +8 '%0A%0Asetup
1545ab81e08d25a0a05ca202a9e0c222e76e1f17
Update sulong version
mx.irbuilder/suite.py
mx.irbuilder/suite.py
suite = { "mxversion" : "5.70.2", "name" : "java-llvm-ir-builder", "versionConflictResolution" : "latest", "imports" : { "suites" : [ { "name" : "sulong", "version" : "b28e3d4804a9aae68c0c815f52d5d31bd7ef741e", "urls" : [ ...
Python
0
@@ -234,48 +234,48 @@ : %22 -b28e3d4804a9aae68c0c815f52d5d31bd7ef741e +6e5a4355382c4abfbe81fe692e9eef290754b79b %22,%0A
100fb090467a4e1c8484365fd116ebc881f416dc
Update packs.uninstall action to also delete corresponding ConfigSchemaDB object.
contrib/packs/actions/pack_mgmt/unload.py
contrib/packs/actions/pack_mgmt/unload.py
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
Python
0
@@ -952,16 +952,68 @@ rt Pack%0A +from st2common.persistence.pack import ConfigSchema%0A from st2 @@ -4092,38 +4092,56 @@ pack):%0A -return +# 1. Delete pack%0A self._delete_pa @@ -4161,24 +4161,150 @@ pack=pack)%0A%0A + # 2. Delete corresponding config schema%0A self._delete_config_...
d04930dac7bb6529daf5bd6ed0c8f8c41901005f
fix another print
python/mead/trainer.py
python/mead/trainer.py
import os import logging import argparse import copy from itertools import chain from eight_mile.utils import read_config_stream, import_user_module from baseline.utils import normalize_backend import mead from mead.utils import convert_path, parse_extra_args, configure_logger, parse_and_merge_overrides logger = loggin...
Python
0.000512
@@ -5273,33 +5273,8 @@ ask%0A - print(config_params)%0A
877c2e1c453386b3fa4d249f3a76a7e345c97d23
Change project maturity level and bump to 0.3
setup.py
setup.py
from setuptools import setup VERSION = '0.2.9' setup( name='jinja2_standalone_compiler', packages=['jinja2_standalone_compiler', ], version=VERSION, author='Filipe Waitman', author_email='filwaitman@gmail.com', install_requires=[x.strip() for x in open('requirements.txt').readlines()], ur...
Python
0.000001
@@ -40,11 +40,9 @@ '0. -2.9 +3 '%0A%0A%0A @@ -620,20 +620,16 @@ :: -1 - Planning +4 - Beta %22,%0A
f767b7174eccd5a027c9598faa24fe39d4db28b5
change default file to /etc/hosts, which exists everywhere
python/xml_xxe_file.py
python/xml_xxe_file.py
#!/usr/bin/env python # -*- coding:UTF-8 -*- # Copyright (c) 2014 Nicolas Iooss # # 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 ...
Python
0
@@ -1882,18 +1882,13 @@ etc/ +h os --release +ts ',%0A
e1813c24f84189de3a138d415db78cd9770d1925
Implement station matching code
nationalrail/query.py
nationalrail/query.py
# -*- coding: utf-8 -*- """ query ===== Define the Query class to handle web URL queries. """ import datetime import re import webbrowser from nationalrail.codes import lookup class Query: """Class, to generate a URL request from a set of command-line arguments. """ def __init__(self, args): ...
Python
0.000002
@@ -2416,32 +2416,74 @@ d.%0A%0A %22%22%22%0A + # Check for %60station%60 in %60lookup%60%0A if stati @@ -2521,33 +2521,595 @@ -raise ValueError( +# Identify all long-form name matches in %60lookup%60%0A matches = %5Bs for s in lookup.keys() if re.match(station, s)%5D%0A ...
2c4242a8f81f0d6b4b2e3c8b048255dab4fe0ea5
version 0.1.11
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup import os #python setup.py sdist upload version = 'v0.1.10' name = 'calchylus' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf8").read() setup( name = name, packages = [n...
Python
0.000002
@@ -147,17 +147,17 @@ 'v0.1.1 -0 +1 '%0Aname =
4642d609b0da5f5c30b1f32e337f667897c662cb
fix setup.py
setup.py
setup.py
import os from setuptools import setup, find_packages 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(i...
Python
0.000001
@@ -220,16 +220,31 @@ nts.txt%22 +, session=False )%0A%0A# req
2d87b07c64ff932ff2f5ac91f8be15e22cf51cd8
adding missing whitespace
pywincffi/core/dist.py
pywincffi/core/dist.py
""" Distribution ============ Module responsible for building the pywincffi distribution in ``setup.py``. This module is meant to serve two purposes. The first is to serve as the main means of loading the pywincffi library: >>> from pywincffi.core import dist >>> ffi, library = dist.load() The second is to facilit...
Python
0.586723
@@ -4564,16 +4564,17 @@ tions()%0A +%0A
113fec0e3ddee689fcb5d3fd735a0fb569a89cca
fix logging
crate_project/settings/production/base.py
crate_project/settings/production/base.py
from ..base import * LOGGING = { "version": 1, "disable_existing_loggers": True, "filters": { "require_debug_false": { "()": "django.utils.log.RequireDebugFalse", }, }, "formatters": { "simple": { "format": "%(levelname)s %(message)s" }, }...
Python
0.000002
@@ -793,38 +793,17 @@ %22 -loggers%22: %7B%0A %22%22: %7B%0A +root%22: %7B%0A @@ -845,43 +845,8 @@ %22%5D,%0A - %22propagate%22: True,%0A @@ -863,26 +863,38 @@ %22: %22 -DEBUG +INFO %22,%0A +%7D,%0A -%7D, +%22loggers%22: %7B %0A
5b094be793e8b63c4429a53240855da49efa8896
bump shared modules
setup.py
setup.py
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018, 2019 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """REANA client""" from __future__ import absolute_import, print_function import...
Python
0
@@ -81,16 +81,28 @@ 18, 2019 +, 2020, 2021 CERN.%0A# @@ -1002,17 +1002,17 @@ =0.8.0a3 -0 +1 ,%3C0.9.0%22
3fe8cc91e4ef3e143bfaf6172b3899eb0993194f
modify setup.py
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='hublog', version="0.1", author='encorehu', author_email='huyoo353@126.com', description='a django blog', url='https://github.com/encorehu/hublog', packages=find_packages(), package_dir={'hublog':...
Python
0.000001
@@ -342,18 +342,16 @@ _data=%7B' -hu blog':%5B' @@ -355,16 +355,52 @@ :%5B'*.*', +%0D%0A 'templates/*.*',%0D%0A 'templat @@ -411,16 +411,27 @@ log/*.*' +,%0D%0A %5D%7D,%0D%0A
5ecf5f5ebc5e977a4e9457fd1d53ae8b58401e19
Bump version
setup.py
setup.py
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='rundocker', version='1.0.0', description=( 'A script for running docker container process without worrying ' 'about dead container issue' ), packages=find_packages(), a...
Python
0
@@ -138,17 +138,17 @@ on='1.0. -0 +1 ',%0A d
615fa69c4185f51c873a97cb47ff8cd6f853a8c7
update dependency grpcio to v1.49.1 (#348)
setup.py
setup.py
# Copyright 2021 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
@@ -1540,17 +1540,17 @@ cio==1.4 -6 +9 .1%22,%0A
1e2715cd2cc1a5d82021211297cac5b014de04ce
Fix a problem where files in subdirs of ignored dirs where not being ignored
floyd/client/files.py
floyd/client/files.py
import os from pathlib import PurePath from floyd.manager.floyd_ignore import FloydIgnoreManager from floyd.log import logger as floyd_logger def get_files_in_directory(path, file_type): """ Gets the list of files in the directory and subdirectories Respects .floydignore file if present """ local...
Python
0.000885
@@ -400,16 +400,159 @@ t_list() +%0A%0A # make sure that subdirectories are also excluded%0A ignore_list_expanded = ignore_list + %5B%22%7B%7D/**%22.format(item) for item in ignore_list%5D %0A flo @@ -781,32 +781,41 @@ m in ignore_list +_expanded :%0A if @@ -883,24 +883,46 @@ e_dir = True +%0A ...
ddc9157f6d8e123b0a998e56b9385ca852e24560
rename plugin
setup.py
setup.py
__author__ = 'adaml, boul, jedeko' from setuptools import setup setup( zip_safe=True, name='cloudify-plugin', version='0.1.1', packages=[ 'cloudstack_plugin', 'cloudstack_exoscale_plugin' ], license='Apache License 2.0', description='Cloudify plugin for the Cloudstack cloud ...
Python
0.000001
@@ -99,24 +99,35 @@ e='cloudify- +cloudstack- plugin',%0A
ddfbf959a769ed292e997a40a229253584e3aea3
Version bumped
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name="django-translate", version="1.0.17", author="Adam Zieliński", author_email="adam@adamziel.com", packages=find_packages(), include_package_data=True, url="https://github.com/adamziel/django_translate", lice...
Python
0
@@ -120,9 +120,9 @@ .0.1 -7 +8 %22,%0A
df40a8b3291c5c585cf2b17b824a00af1907c312
Switch value to None type
csunplugged/config/settings/production.py
csunplugged/config/settings/production.py
# -*- coding: utf-8 -*- """ Django settings for production environment. - Load secret values from environment variables. - Set static URL to Google Cloud Storage Bucket. """ from .base import * # noqa: F403 # SECRET CONFIGURATION # ------------------------------------------------------------------------------ # Se...
Python
0.000006
@@ -950,14 +950,12 @@ ult= -%22n +N one -%22 ) ==
ad109408e9873fd3614464650352bf0c72cdb24f
version bump
setup.py
setup.py
from setuptools import setup, find_packages requires = [ 'SQLAlchemy>=0.9', 'pyramid>=1.5', 'zope.sqlalchemy', 'marshmallow>=1.0.0' ] test_requires = [ 'mock', 'nose', 'webtest', 'xhtml2pdf==0.0.5', 'reportlab<3', 'coverage', 'colander', 'WTForms==2.0.2', 'pyramid...
Python
0.000001
@@ -588,9 +588,9 @@ 0.3. -4 +5 ',%0A
2097dc35b012bb0102fc80c28479652e1abd141f
Bump coverage from 5.4 to 5.5
setup.py
setup.py
import re from setuptools import setup, find_packages # take the version with open("indexdigest/__init__.py", "r") as fh: # e.g. VERSION = '1.5.0' last_line = fh.readlines()[-1] VERSION = re.search(r'[\d.]+', last_line).group(0) # @see https://packaging.python.org/tutorials/packaging-projects/#creating-se...
Python
0.000072
@@ -1880,17 +1880,17 @@ rage==5. -4 +5 ',%0A
e3ce72ccbcff614ffb098ba1d239e6cffeb6c3bd
Change README path
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'Click>=6.0', 'numpy>=1.12.0...
Python
0
@@ -128,19 +128,18 @@ 'README. -rst +md ') as re
f0c9cdd59bfc0f225a014e6c12f43726a96dbdc8
version bump
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages, Extension from setuptools.command.build_ext import build_ext import sys import os import traceback import functools def has_option(name): try: sys.argv.remove('--%s' % name) return True except ValueError: pass # a...
Python
0.000001
@@ -3708,17 +3708,18 @@ on='1.5. -9 +10 ',%0A
d50a2c092a6dd38e42324b97db65543024e9d6b9
Rename exe file
setup.py
setup.py
#!/usr/bin/python # -*- coding: utf-8 -*- # source d'inspiration: http://wiki.wxpython.org/cx_freeze import sys, os, subprocess, multiprocessing from cx_Freeze import setup, Executable ############################################################################# # preparation des options sys.path.append(os.path.absp...
Python
0.000002
@@ -849,16 +849,29 @@ = None%0A +file_type=%22%22%0A if sys.p @@ -911,16 +911,37 @@ in32GUI%22 +%0A file_type=%22.exe%22 %0A%0Atarget @@ -955,16 +955,16 @@ utable(%0A - scri @@ -996,16 +996,53 @@ __.py%22,%0A + targetName=%22cutecoin%22+file_type,%0A base