diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/snet_cli/mpe_client_command.py b/snet_cli/mpe_client_command.py
index <HASH>..<HASH> 100644
--- a/snet_cli/mpe_client_command.py
+++ b/snet_cli/mpe_client_command.py
@@ -381,8 +381,8 @@ class MPEClientCommand(BlockchainCommand):
def _call_check_price(self, service_metadata):
pricing... | change price to price_in_cogs in metadata 2 | py |
diff --git a/cobald/utility/concurrent/meta_runner.py b/cobald/utility/concurrent/meta_runner.py
index <HASH>..<HASH> 100644
--- a/cobald/utility/concurrent/meta_runner.py
+++ b/cobald/utility/concurrent/meta_runner.py
@@ -22,6 +22,8 @@ class MetaRunner(object):
self.runners = {
runner.flavour: ru... | MetaRunner has public flag indicating wheter it is running | py |
diff --git a/source/awesome_tool/mvc/controllers/graphical_editor.py b/source/awesome_tool/mvc/controllers/graphical_editor.py
index <HASH>..<HASH> 100644
--- a/source/awesome_tool/mvc/controllers/graphical_editor.py
+++ b/source/awesome_tool/mvc/controllers/graphical_editor.py
@@ -259,6 +259,10 @@ class GraphicalEdito... | Add more ways to abort transition creation - A right clicks stops the creation of a new transition - When the user double clicks on an outcome, the transition creation process is also aborted | py |
diff --git a/pymatgen/analysis/local_env.py b/pymatgen/analysis/local_env.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/local_env.py
+++ b/pymatgen/analysis/local_env.py
@@ -2634,15 +2634,20 @@ class CrystalNN(NearNeighbors):
entry["weight"] = round(entry["weight"], 3)
del entry["poly... | Addressed short-comming in CrystalNN to not be able to address noble-gas materials. | py |
diff --git a/flask2postman.py b/flask2postman.py
index <HASH>..<HASH> 100644
--- a/flask2postman.py
+++ b/flask2postman.py
@@ -85,12 +85,18 @@ class Route:
def main():
import os
+ import sys
import json
import logging
from argparse import ArgumentParser
from flask import Flask, current_... | Be more verbose when an error occurs (or could occur) | py |
diff --git a/python/ray/experimental/multiprocessing/pool.py b/python/ray/experimental/multiprocessing/pool.py
index <HASH>..<HASH> 100644
--- a/python/ray/experimental/multiprocessing/pool.py
+++ b/python/ray/experimental/multiprocessing/pool.py
@@ -168,6 +168,8 @@ class IMapIterator:
"""Base class for OrderedIMa... | Hotfix missing fields in multiprocessing.Pool (#<I>) | py |
diff --git a/src/requirementslib/models/dependencies.py b/src/requirementslib/models/dependencies.py
index <HASH>..<HASH> 100644
--- a/src/requirementslib/models/dependencies.py
+++ b/src/requirementslib/models/dependencies.py
@@ -393,13 +393,13 @@ def get_dependencies_from_index(dep, sources=None, pip_options=None, wh... | Add error-handling notes and don't cache on error | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,8 +16,7 @@ setup(
author = "hMatoba",
author_email = "hiroaki.mtb@outlook.com",
description = "To simplify exif manipulations with python. " +
- "Writing, reading, and more...Pyxif isn't a w... | Edited setup.py. | py |
diff --git a/i3pystatus/shell.py b/i3pystatus/shell.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/shell.py
+++ b/i3pystatus/shell.py
@@ -24,7 +24,7 @@ class Shell(IntervalModule):
)
required = ("command",)
- format = "{command}"
+ format = "{output}"
def run(self):
retvalue, out, std... | fix docs code discrepancy and error reporting with non empty format strings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import find_packages
import time
-_version = "0.1.dev%s" % int(time.time())
+_version = "0.1"
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_descrip... | Setting versions for requirements and setting version to <I> for release | py |
diff --git a/killer/killer.py b/killer/killer.py
index <HASH>..<HASH> 100644
--- a/killer/killer.py
+++ b/killer/killer.py
@@ -34,7 +34,7 @@ import argparse
import logging
import time
-from killer import __version__, WINDOWS, POSIX # , LINUX, OSX, BSD, WSL
+from killer import __version__, WINDOWS, POSIX
from kill... | More helpful error message for unsupported platforms | py |
diff --git a/unyt/tests/test_unyt_array.py b/unyt/tests/test_unyt_array.py
index <HASH>..<HASH> 100644
--- a/unyt/tests/test_unyt_array.py
+++ b/unyt/tests/test_unyt_array.py
@@ -1264,6 +1264,22 @@ def test_equivalencies():
assert data.value == .012
assert data.units == u.kg
+ data = 12*u.g
+ data = d... | expand coverage of incorrect equivalence usages | py |
diff --git a/src/mistclient/model.py b/src/mistclient/model.py
index <HASH>..<HASH> 100644
--- a/src/mistclient/model.py
+++ b/src/mistclient/model.py
@@ -378,7 +378,8 @@ class Cloud(object):
machine_ready = False
if machine_ready:
- error = job.get('error'... | Catch error in nested logs | py |
diff --git a/ayrton/expansion.py b/ayrton/expansion.py
index <HASH>..<HASH> 100644
--- a/ayrton/expansion.py
+++ b/ayrton/expansion.py
@@ -248,6 +248,18 @@ def default (parameter, word):
# but tests have shown that it is not so
return ans
+# {parameter:?word} is automatically handled by Python's runtime
+# ... | [+] support for {parameter:+word}. | py |
diff --git a/rejected/process.py b/rejected/process.py
index <HASH>..<HASH> 100644
--- a/rejected/process.py
+++ b/rejected/process.py
@@ -291,8 +291,17 @@ class Process(multiprocessing.Process, state.State):
settings = cfg.get('config', dict())
settings['_import_module'] = '.'.join(cfg['consumer'].sp... | Use the new init kwargs and pass in the measurement to the consumer | py |
diff --git a/tdubs.py b/tdubs.py
index <HASH>..<HASH> 100644
--- a/tdubs.py
+++ b/tdubs.py
@@ -182,9 +182,9 @@ class Call(object):
def formatted_args(self):
"""Format call arguments as a string.
- >>> call = Call('arg1', 'arg2', kwarg1='kwarg1', kwarg2='kwarg2')
+ >>> call = Call('arg1', '... | Dicts are unordered. Can't test like this. | py |
diff --git a/more_itertools/more.py b/more_itertools/more.py
index <HASH>..<HASH> 100644
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -1214,6 +1214,19 @@ def context(obj):
>>> file_obj.closed
True
+ Be sure to iterate over the returned context manager in the outermost
+ loop of... | Add warning for context() and nested looping | py |
diff --git a/cwltool/sandboxjs.py b/cwltool/sandboxjs.py
index <HASH>..<HASH> 100644
--- a/cwltool/sandboxjs.py
+++ b/cwltool/sandboxjs.py
@@ -57,7 +57,8 @@ def new_js_proc(force_docker_pull=False):
# type: (bool) -> subprocess.Popen
res = resource_stream(__name__, 'cwlNodeEngine.js')
- nodecode = res.re... | decoding byte data before sending to Subprocess and encoding \n before comparing | py |
diff --git a/bananas/admin.py b/bananas/admin.py
index <HASH>..<HASH> 100644
--- a/bananas/admin.py
+++ b/bananas/admin.py
@@ -256,8 +256,12 @@ class AdminView(View):
tools.append((text, link))
return tools
- def admin_view(self, view, perm=None):
- view = self.__class__.as_view(ac... | Admin: allow initkwargs to be passed to admin view | py |
diff --git a/ttkthemes/__init__.py b/ttkthemes/__init__.py
index <HASH>..<HASH> 100644
--- a/ttkthemes/__init__.py
+++ b/ttkthemes/__init__.py
@@ -11,9 +11,12 @@ THEMES = [
"arc",
"black",
"blue",
+ "breeze",
"clearlooks",
"elegance",
"equilux",
+ "itft1",
+ "equilux",
"keram... | Update list of themes in __init__.py | py |
diff --git a/examples/dqn_atari.py b/examples/dqn_atari.py
index <HASH>..<HASH> 100644
--- a/examples/dqn_atari.py
+++ b/examples/dqn_atari.py
@@ -15,7 +15,7 @@ from rl.callbacks import FileLogger
INPUT_SHAPE = (84, 84)
-ENV_NAME = 'Breakout-v0'
+ENV_NAME = 'Pong-v0'
WINDOW_LENGTH = 4
@@ -84,11 +84,10 @@ weig... | Attempt to use Pong without action repetion | py |
diff --git a/nfc/dev/pn53x.py b/nfc/dev/pn53x.py
index <HASH>..<HASH> 100644
--- a/nfc/dev/pn53x.py
+++ b/nfc/dev/pn53x.py
@@ -151,15 +151,15 @@ class pn53x(object):
if frame[3] == 255 and frame[4] == 255:
# extended information frame
- LEN, LCS = frame[5] * 256 + frame[6], frame[7]
-... | bugfix: frame length checksum verification | py |
diff --git a/holoviews/core/util.py b/holoviews/core/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/util.py
+++ b/holoviews/core/util.py
@@ -60,7 +60,7 @@ class HashableJSON(json.JSONEncoder):
elif isinstance(obj, np.ndarray):
return obj.tolist()
if pd and isinstance(obj, (pd.Se... | Using repr for pandas objects for Python 3 compatibility | py |
diff --git a/classic.py b/classic.py
index <HASH>..<HASH> 100644
--- a/classic.py
+++ b/classic.py
@@ -511,7 +511,7 @@ class ClassicPlayer(Player):
class ClassicMediaInfo(MediaInfo):
def get_info_by_path(self, path):
self.l.info("Info for %s" % path)
- p = subprocess.Popen(['mp3info', path, '-p', '%a\\n%t\\n%S']... | classic: fix order of mpg<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,5 @@
+from setuptools import setup
-from distutils.core import setup
setup(
name = "javalang",
@@ -27,5 +27,6 @@ code. javalang provies a lexer and parser targeting Java 7. The
implementation is based on the... | Move to using setuptools instead of distutils in setup.py. | py |
diff --git a/providers/youtube.py b/providers/youtube.py
index <HASH>..<HASH> 100755
--- a/providers/youtube.py
+++ b/providers/youtube.py
@@ -77,7 +77,7 @@ class YouTube(Provider):
filename = self.get_title() + '.video'
else:
#Title + last three letters of the format description lo... | Insert a period between file name and extension. | py |
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/groupby/test_apply.py
+++ b/pandas/tests/groupby/test_apply.py
@@ -190,6 +190,27 @@ def test_group_apply_once_per_group(df, group_names):
assert names == group_names
+def test... | TST: groupby apply called multiple times (#<I>) * :white_check_mark: * :white_check_mark: * reformatted accordingly, for linting issues * Fixed as per the review comments | py |
diff --git a/benchexec/tools/smack.py b/benchexec/tools/smack.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/smack.py
+++ b/benchexec/tools/smack.py
@@ -57,7 +57,7 @@ class Tool(benchexec.tools.template.BaseTool):
Sets the name for SMACK, which gets displayed in the "Tool" row in
BenchExec table... | Updated SMACK to SMACK+Corral as our name | py |
diff --git a/flask_security/utils.py b/flask_security/utils.py
index <HASH>..<HASH> 100644
--- a/flask_security/utils.py
+++ b/flask_security/utils.py
@@ -78,7 +78,7 @@ def get_hmac(password):
'must not be None when the value of `SECURITY_PASSWORD_HASH` is '
'set to "%s"' % _security.password_... | Password should be encoded as 'utf-8' before creating hmac to support passwords with non-latin symbols | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -134,15 +134,17 @@ args = dict(
'Development Status :: 6 - Mature',
'Environment :: Console',
'Intended Audience :: Developers',
-
- # It seems that the license is not recognized by Pypi, ... | Setup.py set license (EPL-<I>) and supported Python versions Should close #<I> | py |
diff --git a/salt/fileserver/gitfs.py b/salt/fileserver/gitfs.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/gitfs.py
+++ b/salt/fileserver/gitfs.py
@@ -92,7 +92,7 @@ def envs():
repos = init()
for repo in repos:
for ref in repo.refs:
- if isinstance(ref, git.refs.head.Head):
+ ... | env lookup needs to support tags | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -839,7 +839,7 @@ def get_composite_source_model(oqparam, monitor=None, in_memory=True,
if oqparam.number_of_logic_tree_sample... | Added comment [skip CI] | py |
diff --git a/pycm/pycm_obj.py b/pycm/pycm_obj.py
index <HASH>..<HASH> 100644
--- a/pycm/pycm_obj.py
+++ b/pycm/pycm_obj.py
@@ -623,12 +623,20 @@ class ConfusionMatrix():
return not self.__eq__(other)
def __copy__(self):
+ """
+ Returns a copy of ConfusionMatrix.
+ :return: copy of C... | add : docstring added to both methods. | py |
diff --git a/bingo/image.py b/bingo/image.py
index <HASH>..<HASH> 100644
--- a/bingo/image.py
+++ b/bingo/image.py
@@ -66,7 +66,7 @@ def get_texts(bingo_fields, font):
if bingo_field.is_middle():
text += _("\n{time}\nBingo #{board_id}").format(
time=bingo_field.board.get_created()... | fix: show the correct board_id on the images. The correct id is board.board_id and not board.id, as "id" is the internal id assigned by django, and "board_id" is the board number on the current site. | py |
diff --git a/test/fixtures.py b/test/fixtures.py
index <HASH>..<HASH> 100644
--- a/test/fixtures.py
+++ b/test/fixtures.py
@@ -123,7 +123,7 @@ class ZookeeperFixture(Fixture):
# Party!
self.out("Starting...")
self.child.start()
- self.child.wait_for(r"Snapshotting")
+ self.child... | Change ZookeeperFixture wait_for regex to support newer zk version used with <I> | py |
diff --git a/schedule/tests/test_utils.py b/schedule/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/schedule/tests/test_utils.py
+++ b/schedule/tests/test_utils.py
@@ -30,7 +30,7 @@ class TestEventListManager(TestCase):
'title': 'Recent Event',
'start': datetime.datetime(2008, 1... | Fixed eml test. Recurring period for the daily event had it begining before the occurrences we were checking started | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,8 @@
# See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html
from setuptools import setup
+from os.path import realpath, dirname
+from os import chdir
import sys
install_requires = [
@@ -19,7 +... | Change to directory of current file before getting version | py |
diff --git a/yubico_client/yubico.py b/yubico_client/yubico.py
index <HASH>..<HASH> 100644
--- a/yubico_client/yubico.py
+++ b/yubico_client/yubico.py
@@ -82,7 +82,7 @@ class Yubico(object):
' argument'))
self.client_id = client_id
- self.key = base64.b64decode(key) if ke... | yubico.py: Convert key to byte string before passing it to b<I>decode In Python3 <= <I>, the base<I>.b<I>decode function only accepts byte strings, so we need to convert the key to one. | py |
diff --git a/alot/commands/search.py b/alot/commands/search.py
index <HASH>..<HASH> 100644
--- a/alot/commands/search.py
+++ b/alot/commands/search.py
@@ -199,11 +199,3 @@ class TagCommand(Command):
# flush index
if self.flush:
ui.apply_command(commands.globals.FlushCommand())
-
- ... | removed uneccesary refresh call not needed anymore | py |
diff --git a/textract/cli.py b/textract/cli.py
index <HASH>..<HASH> 100644
--- a/textract/cli.py
+++ b/textract/cli.py
@@ -13,6 +13,17 @@ from . import VERSION
from .parsers import DEFAULT_ENCODING
+class AddToNamespaceAction(argparse.Action):
+ """This adds KEY,VALUE arbitrary pairs to the argparse.Namespace o... | added ability to specify arbitrary keyword arguments on the command line to pass to the various parsers | py |
diff --git a/fedmsg/tests/test_meta.py b/fedmsg/tests/test_meta.py
index <HASH>..<HASH> 100644
--- a/fedmsg/tests/test_meta.py
+++ b/fedmsg/tests/test_meta.py
@@ -137,6 +137,7 @@ class Base(unittest.TestCase):
msg = None
expected_title = None
expected_subti = None
+ expected_markup = None
expecte... | Allow optional markup of msg2subtitle. This would be nice for embedded datagrepper results so that we can make links out of people's usernames, update title, badge names, etc.. | py |
diff --git a/tpm.py b/tpm.py
index <HASH>..<HASH> 100644
--- a/tpm.py
+++ b/tpm.py
@@ -222,6 +222,33 @@ def getData(conn, TYPE, SEARCHSTRING=''):
return get(conn, URL)
+def getSubProjects(conn, ID):
+ """Get projcets that are subprojects of 'ID'."""
+ if conn.api == 'v4':
+ URL = conn.url + conn.a... | added new_pwd action for subprojects | py |
diff --git a/test/queryservice_tests/test_env.py b/test/queryservice_tests/test_env.py
index <HASH>..<HASH> 100644
--- a/test/queryservice_tests/test_env.py
+++ b/test/queryservice_tests/test_env.py
@@ -198,7 +198,7 @@ class VttabletTestEnv(TestEnv):
self.conn = self.connect()
self.txlogger = subproce... | Fixing this test after my path changes. | py |
diff --git a/morango/constants/file.py b/morango/constants/file.py
index <HASH>..<HASH> 100644
--- a/morango/constants/file.py
+++ b/morango/constants/file.py
@@ -1,6 +1,4 @@
-import pwd
import os
-SQLITE_VARIABLE_FILE_CACHE = os.path.join(pwd.getpwuid(os.getuid()).pw_dir,
+SQLITE_VARIABLE_FILE_CACHE = os.path.join(... | pwd is not available in Windows | py |
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py
index <HASH>..<HASH> 100644
--- a/pandas/core/config_init.py
+++ b/pandas/core/config_init.py
@@ -128,7 +128,7 @@ line_width has been deprecated, use display.width instead (currently both are id
pc_width_doc = """
: int
Width of the display in ... | BUG: for numerical option, sentry should be another Type, not 0 | py |
diff --git a/tests/test_config.py b/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -3,6 +3,7 @@ import pytest
from sqlalchemy.pool import NullPool
import flask_sqlalchemy as fsa
+from flask_sqlalchemy import _compat, utils
class TestConfigKeys:
@@ -71,... | fix py<I>-lowest test This only showed up after rebasing onto current maintenance branch. | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -2932,7 +2932,7 @@ def manage_file(name,
.. code-block:: bash
- salt '*' file.manage_file /etc/httpd/conf.d/httpd.conf '{}' salt://http/httpd.conf '{hash_type: 'm... | Typo in file.managed doc | py |
diff --git a/validator/errorbundler.py b/validator/errorbundler.py
index <HASH>..<HASH> 100644
--- a/validator/errorbundler.py
+++ b/validator/errorbundler.py
@@ -93,7 +93,7 @@ class ErrorBundle(object):
def _save_message(self, stack, type_, message, context=None):
"Stores a message in the appropriate mes... | Updated uuid1 to uuid4 for bug <I> | py |
diff --git a/src/sos/workers.py b/src/sos/workers.py
index <HASH>..<HASH> 100755
--- a/src/sos/workers.py
+++ b/src/sos/workers.py
@@ -176,6 +176,7 @@ class SoS_SubStep_Worker(mp.Process):
# the worker process knows configuration file, command line argument etc
super(SoS_SubStep_Worker, self).__init__... | Make substep worker a daemon process | py |
diff --git a/dockermap/build/dockerfile.py b/dockermap/build/dockerfile.py
index <HASH>..<HASH> 100644
--- a/dockermap/build/dockerfile.py
+++ b/dockermap/build/dockerfile.py
@@ -242,7 +242,7 @@ class DockerFile(DockerStringBuffer):
context_path = prepare_path(ctx_path, replace_space, True, expandvars, exp... | Correct source path in add_file. | py |
diff --git a/buildozer/__init__.py b/buildozer/__init__.py
index <HASH>..<HASH> 100644
--- a/buildozer/__init__.py
+++ b/buildozer/__init__.py
@@ -300,13 +300,13 @@ class Buildozer(object):
adderror = errors.append
if not get('app', 'title', ''):
adderror('[app] "title" is missing')
- ... | Rearranged package.name check to avoid crash Buildozer would previously crash if a package name was '', as it checked for zero length *and* tried to check if the first character was a number. | py |
diff --git a/benchbuild/utils/download.py b/benchbuild/utils/download.py
index <HASH>..<HASH> 100644
--- a/benchbuild/utils/download.py
+++ b/benchbuild/utils/download.py
@@ -12,6 +12,7 @@ Supported methods:
"""
import logging
import os
+from typing import Callable, List, Optional, Type
from plumbum import local
... | utils/download: add type annotations to with_git | py |
diff --git a/acme_tiny.py b/acme_tiny.py
index <HASH>..<HASH> 100644
--- a/acme_tiny.py
+++ b/acme_tiny.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-import argparse, subprocess, json, os, urllib2, sys, base64, binascii, time, \
+import argparse, subprocess, json, os, os.path, urllib2, sys, base64, binascii, time, \
... | Join paths platform-neutrally Use os.path to join paths in a more platform-neutral fashion | py |
diff --git a/tests/test_accuracy.py b/tests/test_accuracy.py
index <HASH>..<HASH> 100644
--- a/tests/test_accuracy.py
+++ b/tests/test_accuracy.py
@@ -14,6 +14,7 @@ arch_data = { # (steps, [hit addrs], finished)
}
def emulate(arch):
+ print 'For', arch
steps, hit_addrs, finished = arch_data[arch]
filep... | Add debug printing so I can tell what the hell is going on | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setup(
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
- packages=['django_bleach'],
+ packages=find_packages(),
install_requires... | Use `find_packages()` instead of naming packages The `templatetags/` files were missed because they were not named. Using `find_packages()` will ensure this does not happen again. | py |
diff --git a/bcbio/structural/cnvkit.py b/bcbio/structural/cnvkit.py
index <HASH>..<HASH> 100644
--- a/bcbio/structural/cnvkit.py
+++ b/bcbio/structural/cnvkit.py
@@ -78,7 +78,7 @@ def _run_cnvkit_cancer(items, background, access_file):
work_dir = _sv_workdir(items[0])
ckout = _run_cnvkit_shared(items[0], [pa... | CNVkit: skip TheTA post-processing until better tested and incorporate Eric's changes. | py |
diff --git a/claripy/bv.py b/claripy/bv.py
index <HASH>..<HASH> 100644
--- a/claripy/bv.py
+++ b/claripy/bv.py
@@ -286,10 +286,12 @@ def Concat(*args):
return BVV(total_value, total_bits)
def RotateRight(self, bits):
- return LShR(self, bits) | (self << (self.size()-bits))
+ bits_smaller = bits % self.siz... | Make rotateleft and rotateright work correctly for overlarge rotations | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100644
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -131,7 +131,12 @@ class DagBag(object):
Given a path to a python module, this method imports the module and
look for dag objects whithin it.
"""
- dttm = da... | Fixing file timestamp read race condition | py |
diff --git a/prudentia/utils/provisioning.py b/prudentia/utils/provisioning.py
index <HASH>..<HASH> 100644
--- a/prudentia/utils/provisioning.py
+++ b/prudentia/utils/provisioning.py
@@ -20,7 +20,8 @@ def run_playbook(playbook_file, inventory_file, loader, remote_user=C.DEFAULT_RE
variable_manager = VariableManage... | fix(run): Cleans up loader file cache before each run (avoids provisioning with cached playbooks) | py |
diff --git a/volatility/vmi.py b/volatility/vmi.py
index <HASH>..<HASH> 100644
--- a/volatility/vmi.py
+++ b/volatility/vmi.py
@@ -26,7 +26,7 @@ import volatility.addrspace as addrspace
libvmi = None
try:
import libvmi
- from libvmi import Libvmi, CR3
+ from libvmi import Libvmi, X86Reg
except ImportError... | fixed issues in volatility address space zread() method | py |
diff --git a/hdbscan/hdbscan_.py b/hdbscan/hdbscan_.py
index <HASH>..<HASH> 100644
--- a/hdbscan/hdbscan_.py
+++ b/hdbscan/hdbscan_.py
@@ -829,7 +829,12 @@ class HDBSCAN(BaseEstimator, ClusterMixin):
if self.metric != 'precomputed':
X = check_array(X, accept_sparse='csr')
self._raw_da... | handle 2nd sparse matrix validation | py |
diff --git a/src/ossos-pipeline/ossos/fitsviewer/displayable.py b/src/ossos-pipeline/ossos/fitsviewer/displayable.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/fitsviewer/displayable.py
+++ b/src/ossos-pipeline/ossos/fitsviewer/displayable.py
@@ -261,26 +261,32 @@ class Marker(object):
self.cir... | Made crosshair white and slightly thicker to improve visibility. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,8 +19,8 @@ with open(join(here, "README.rst"), encoding="utf-8") as f:
REQUIRES = ["pytz"]
-if sys.version_info == (2, 7):
- REQUIRES.extend("enum34")
+if sys.version_info.major < 3:
+ REQUIRES.extend(["enum34"]... | Fix requirements for python <I> | py |
diff --git a/addok/config/default.py b/addok/config/default.py
index <HASH>..<HASH> 100644
--- a/addok/config/default.py
+++ b/addok/config/default.py
@@ -73,6 +73,8 @@ RESULTS_COLLECTORS_PYPATHS = [
'addok.helpers.collectors.bucket_with_meaningful',
'addok.helpers.collectors.reduce_with_other_commons',
... | fuzzy and autocomplete collectors in default processors | py |
diff --git a/poetry/utils/env.py b/poetry/utils/env.py
index <HASH>..<HASH> 100644
--- a/poetry/utils/env.py
+++ b/poetry/utils/env.py
@@ -723,6 +723,19 @@ class Env(object):
"""
bin_path = (self._bin_dir / bin).with_suffix(".exe" if self._is_windows else "")
if not bin_path.exists():
+ ... | Add a small fix for virtual envs pointing at a base Python install | py |
diff --git a/geth/wrapper.py b/geth/wrapper.py
index <HASH>..<HASH> 100644
--- a/geth/wrapper.py
+++ b/geth/wrapper.py
@@ -145,6 +145,8 @@ def construct_popen_command(data_dir=None,
suffix_kwargs=None,
shh=None,
allow_insecure_unlock... | feat: tx pool args (#<I>) * feat: tx pool args * fix: single quotes | py |
diff --git a/dynetx/test/test_assortativity.py b/dynetx/test/test_assortativity.py
index <HASH>..<HASH> 100644
--- a/dynetx/test/test_assortativity.py
+++ b/dynetx/test/test_assortativity.py
@@ -128,7 +128,6 @@ class ConformityTestCase(unittest.TestCase):
for _, val in t.items():
s... | :arrow_up: path bugfix | py |
diff --git a/pysos/utils.py b/pysos/utils.py
index <HASH>..<HASH> 100644
--- a/pysos/utils.py
+++ b/pysos/utils.py
@@ -203,13 +203,19 @@ class WorkflowDict(object):
self.set(key, value)
def __cmp_values__(self, A, B):
- C = A == B
- if isinstance(C, bool):
- return C
- el... | Fix comparison of 2-d array in numpy | py |
diff --git a/abilian/web/forms/fields.py b/abilian/web/forms/fields.py
index <HASH>..<HASH> 100644
--- a/abilian/web/forms/fields.py
+++ b/abilian/web/forms/fields.py
@@ -509,7 +509,14 @@ class QuerySelect2Field(SelectFieldBase):
def pre_validate(self, form):
if not self.allow_blank or self.data is not None:
... | queryselect2field: fix TB when field.multiple and data is None | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
-from distutils.core import setup
+from setuptools import setup
+
setup(name='dtw',
version='1.0',
@@ -10,5 +11,8 @@ setup(name='dtw',
url='https://github.com/pierre-rouan... | Switch from distils to setuptools in setup.py | py |
diff --git a/bakery/project/views.py b/bakery/project/views.py
index <HASH>..<HASH> 100644
--- a/bakery/project/views.py
+++ b/bakery/project/views.py
@@ -120,11 +120,7 @@ def setup(project_id):
def fonts(project_id):
# this page can be visible by others, not only by owner
p = Project.query.get_or_404(projec... | Allow fonts.html to be viewed before setup complete | py |
diff --git a/ELiDE/ELiDE/board/arrow.py b/ELiDE/ELiDE/board/arrow.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/board/arrow.py
+++ b/ELiDE/ELiDE/board/arrow.py
@@ -110,12 +110,16 @@ def _get_points_first_part(orig, dest, taillen):
ow, oh = orig.size
dx, dy = dest.center
dw, dh = dest.size
+ # Flip ... | Add some comments to arrow.py | py |
diff --git a/test/performance/test.py b/test/performance/test.py
index <HASH>..<HASH> 100644
--- a/test/performance/test.py
+++ b/test/performance/test.py
@@ -71,8 +71,7 @@ def run_tests(build=None, data_dir='./'):
print("Starting server with cache_size " + str(settings["cache_size"]) + " MB...", end=' ')
... | Removed metacluster from performance test again | py |
diff --git a/codenerix_pos/models.py b/codenerix_pos/models.py
index <HASH>..<HASH> 100644
--- a/codenerix_pos/models.py
+++ b/codenerix_pos/models.py
@@ -167,6 +167,9 @@ class POSHardware(CodenerixModel):
fields.append(('value', _("Value")))
return fields
+ def get_config(self):
+ return ... | Return config of poshardware | py |
diff --git a/thumbor/handlers/__init__.py b/thumbor/handlers/__init__.py
index <HASH>..<HASH> 100644
--- a/thumbor/handlers/__init__.py
+++ b/thumbor/handlers/__init__.py
@@ -300,18 +300,20 @@ class ContextHandler(BaseHandler):
def initialize(self, context):
self.context = Context(context.server, context.... | Don't log HTTPError objects from tornado | py |
diff --git a/csg/core.py b/csg/core.py
index <HASH>..<HASH> 100644
--- a/csg/core.py
+++ b/csg/core.py
@@ -334,11 +334,12 @@ class CSG(object):
for j in range(0, stacks):
vertices = []
appendVertex(vertices, i * dTheta, j * dPhi)
+ i1, j1 = (i + 1) % slices,... | working on improving the accuracy of shapes with a periodicity along one direction | py |
diff --git a/airflow/providers/google/cloud/example_dags/example_bigquery_queries.py b/airflow/providers/google/cloud/example_dags/example_bigquery_queries.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/google/cloud/example_dags/example_bigquery_queries.py
+++ b/airflow/providers/google/cloud/example_dags/examp... | Fix typo in example (#<I>) False should not be passed as a string | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ config = {
'download_url': 'https://github.com/mikejarrett',
'author_email': 'mdj00m@gmail.com',
'version': pipcheck.__version__,
- 'install_requires': ['nose'],
+ 'install_requires': ['pip'... | Remove nose from required packages, add pip | py |
diff --git a/tests/unit/modules/kmod_test.py b/tests/unit/modules/kmod_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/kmod_test.py
+++ b/tests/unit/modules/kmod_test.py
@@ -3,8 +3,11 @@
:codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
'''
+# Import Python libs
+import os
+
# Import Sal... | Skip kmod test if /etc/modules isn't present | py |
diff --git a/auth_backends/__init__.py b/auth_backends/__init__.py
index <HASH>..<HASH> 100644
--- a/auth_backends/__init__.py
+++ b/auth_backends/__init__.py
@@ -3,4 +3,4 @@
These package is designed to be used primarily with Open edX Django projects, but should be compatible with non-edX
projects as well.
"""
-_... | Create new Version for auth-backends for release | py |
diff --git a/atrcopy/__init__.py b/atrcopy/__init__.py
index <HASH>..<HASH> 100755
--- a/atrcopy/__init__.py
+++ b/atrcopy/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "2.3.2"
+__version__ = "2.3.3"
try:
import numpy as np | Updated version number to <I> | py |
diff --git a/versionner/utils.py b/versionner/utils.py
index <HASH>..<HASH> 100644
--- a/versionner/utils.py
+++ b/versionner/utils.py
@@ -3,11 +3,13 @@
import platform
import sys
-import pkg_resources
+from distutils.version import LooseVersion
def validate_python_version():
"""Validate python interprete... | better way to compare versions - previous one failed on Ubuntu with python3 in version: <I>+ (look at + sign) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ setup(
# https://packaging.python.org/en/latest/requirements.html
install_requires=[
- 'django>=1.8,<1.99'
+ 'django>=1.8,<1.9.99'
],
extras_require={},
package_data={}, | Fix django version in setup | py |
diff --git a/ags_publishing_tools/api.py b/ags_publishing_tools/api.py
index <HASH>..<HASH> 100644
--- a/ags_publishing_tools/api.py
+++ b/ags_publishing_tools/api.py
@@ -47,7 +47,7 @@ class Api:
else:
request = urllib2.Request(url)
request.get_method = lambda: method
- res... | Encodes post params BPFG-<I> | py |
diff --git a/monstro/views/api/mixins.py b/monstro/views/api/mixins.py
index <HASH>..<HASH> 100644
--- a/monstro/views/api/mixins.py
+++ b/monstro/views/api/mixins.py
@@ -2,7 +2,7 @@ class ModelAPIMixin(object):
async def options(self, *args, **kwargs):
self.finish({
- 'fields': await self.fo... | views.api: fixed obtaining form options. | py |
diff --git a/aquarius/events/events_monitor.py b/aquarius/events/events_monitor.py
index <HASH>..<HASH> 100644
--- a/aquarius/events/events_monitor.py
+++ b/aquarius/events/events_monitor.py
@@ -35,7 +35,7 @@ from aquarius.events.util import get_metadata_contract
logger = logging.getLogger(__name__)
-debug_log = l... | revert changing of debug log to info log. | py |
diff --git a/usb1/testUSB1.py b/usb1/testUSB1.py
index <HASH>..<HASH> 100644
--- a/usb1/testUSB1.py
+++ b/usb1/testUSB1.py
@@ -115,8 +115,7 @@ class USBTransferTests(unittest.TestCase):
# No callback
transfer.setControl(request_type, request, value, index, buff)
- def _testSetBulkOrInterrupt(self... | testUSB1: Genericise USBTransfer.set{Bulk,Interrupt} test common method. | py |
diff --git a/cassandra/metadata.py b/cassandra/metadata.py
index <HASH>..<HASH> 100644
--- a/cassandra/metadata.py
+++ b/cassandra/metadata.py
@@ -309,7 +309,7 @@ class Metadata(object):
# CREATE TABLE statement anyway).
if "local_read_repair_chance" in options:
val = options.pop("local_r... | Fix typo in dclocal_read_repair_chance Relates to PYTHON-<I> | py |
diff --git a/ghettoq/backends/pyredis.py b/ghettoq/backends/pyredis.py
index <HASH>..<HASH> 100644
--- a/ghettoq/backends/pyredis.py
+++ b/ghettoq/backends/pyredis.py
@@ -28,7 +28,7 @@ class RedisBackend(BaseBackend):
database, timeout)
def establish_connection(self):
... | cast port to int - solves problems when using celerypylons integration | py |
diff --git a/salt/utils/network.py b/salt/utils/network.py
index <HASH>..<HASH> 100644
--- a/salt/utils/network.py
+++ b/salt/utils/network.py
@@ -1886,14 +1886,14 @@ def dns_check(addr, port, safe=False, ipv6=None):
if h[0] == socket.AF_INET6 and ipv6 is False:
continue
- ... | Don't ip_bracket addresses returned by check_dns. This ends up in opts['master_ip'] where it can cause problems. I found this while testng a git+pip based minion installation on Ubuntu Bionic. I'm not sure why it doesn't affect other targeted OS versions in the test framework. On Bionic, if 'salt' resolves to an IPv6 ... | py |
diff --git a/programs/thellier_gui.py b/programs/thellier_gui.py
index <HASH>..<HASH> 100755
--- a/programs/thellier_gui.py
+++ b/programs/thellier_gui.py
@@ -4322,6 +4322,7 @@ You can combine multiple measurement files into one measurement file using Pmag
# try to make a more meaningful name
... | update Thellier GUI to definitely have result_type and result_quality when making MagIC tables #<I> | py |
diff --git a/mechanicalsoup/browser.py b/mechanicalsoup/browser.py
index <HASH>..<HASH> 100644
--- a/mechanicalsoup/browser.py
+++ b/mechanicalsoup/browser.py
@@ -162,9 +162,11 @@ class Browser(object):
webbrowser.open('file://' + file.name)
def close(self):
- """Close the current session"""
- ... | Browser: allow close() to be called multiple times | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -2,7 +2,11 @@
import glob
import sgf
-import StringIO
+
+try:
+ from StringIO import StringIO
+except ImportError:
+ from io import StringIO
for filename in glob.glob("examples/*.sgf"):
@@ -17,12 +21,12 @@ for game ... | attempt to make tests run in both Python 2 and 3 | py |
diff --git a/cumulus/storage.py b/cumulus/storage.py
index <HASH>..<HASH> 100644
--- a/cumulus/storage.py
+++ b/cumulus/storage.py
@@ -120,7 +120,8 @@ class SwiftclientStorage(Auth, Storage):
self.connection.set_object_metadata(container=self.container_name,
... | use clear=True to ensure you are not sending headers that will cause the server to ignore your request | py |
diff --git a/mamba/loader.py b/mamba/loader.py
index <HASH>..<HASH> 100644
--- a/mamba/loader.py
+++ b/mamba/loader.py
@@ -12,6 +12,7 @@ class describe(object):
def __init__(self, subject):
self.subject = subject
self.locals_before = None
+ self.context = _Context()
def __enter__(se... | Instance context with constructor, thus it could be changed later | py |
diff --git a/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py b/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py
+++ b/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py
@@ -141,6 +141,13 @@ class OpenIDConnectBase(obje... | Add nonce to docstring. | py |
diff --git a/usr/share/lib/ipa/tests/SLES/Azure/test_sles_azure_services.py b/usr/share/lib/ipa/tests/SLES/Azure/test_sles_azure_services.py
index <HASH>..<HASH> 100644
--- a/usr/share/lib/ipa/tests/SLES/Azure/test_sles_azure_services.py
+++ b/usr/share/lib/ipa/tests/SLES/Azure/test_sles_azure_services.py
@@ -2,7 +2,7 ... | Fix Azure service test on SLES <I> Sysvinit doesn't like the "*.service" extension used with systemctl. | py |
diff --git a/pyemu/pst/pst_handler.py b/pyemu/pst/pst_handler.py
index <HASH>..<HASH> 100644
--- a/pyemu/pst/pst_handler.py
+++ b/pyemu/pst/pst_handler.py
@@ -829,9 +829,11 @@ class Pst(object):
actual_phi = ((self.res.loc[res_idxs[item], "residual"] *
self.observation_data.loc
... | bug fix for zero-weight obs groups in reset_weights | py |
diff --git a/sos/plugins/startup.py b/sos/plugins/startup.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/startup.py
+++ b/sos/plugins/startup.py
@@ -22,7 +22,7 @@ class startup(Plugin, RedHatPlugin):
def setup(self):
self.addCopySpec("/etc/rc.d")
- self.collectExtOutput("LC_ALL=C /sbin/chkconfi... | Fix collection of chkconfig output in startup module Remove "LC_ALL=C" from invocation ofchkconfig --list. | py |
diff --git a/pwkit/cli/latexdriver.py b/pwkit/cli/latexdriver.py
index <HASH>..<HASH> 100644
--- a/pwkit/cli/latexdriver.py
+++ b/pwkit/cli/latexdriver.py
@@ -351,7 +351,7 @@ def commandline(argv=None):
bib_style = argv[2]
auxpath = argv[3]
assert auxpath.endswith('.aux')
- ... | pwkit/cli/latexdriver.py: fix straight-up typo | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.