diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,19 +2,19 @@ from setuptools import setup
description = 'RDFLib SPARQLStore and SPARQLUpdateStore implementation for VIVO.'
+with open('requirements.txt') as f:
+ required = f.read().splitlines()
+
setup(
name ... | Read requirements. Add vivoUpdate to modules. | py |
diff --git a/raven/base.py b/raven/base.py
index <HASH>..<HASH> 100644
--- a/raven/base.py
+++ b/raven/base.py
@@ -226,7 +226,7 @@ class Client(object):
"""
Returns a searchable string representing a message.
- >>> result = client.process(**kwargs)
+ >>> result = client.capture(**kwarg... | Fix Client.get_ident() example in docstring raven.base.Client doesn't have a `process()` method. | py |
diff --git a/djstripe/admin.py b/djstripe/admin.py
index <HASH>..<HASH> 100644
--- a/djstripe/admin.py
+++ b/djstripe/admin.py
@@ -683,13 +683,15 @@ class WebhookEndpointAdmin(StripeModelAdmin):
else:
url = request.build_absolute_uri(url_path)
+ metadata = obj.metadata or {}
+... | Allow passing extra metadata to webhook endpoints | py |
diff --git a/salt/modules/state.py b/salt/modules/state.py
index <HASH>..<HASH> 100644
--- a/salt/modules/state.py
+++ b/salt/modules/state.py
@@ -863,8 +863,8 @@ def highstate(test=None, queue=False, **kwargs):
finally:
st_.pop_active()
- if __salt__['config.option']('state_data', '') == 'terse' or ... | don't filter if return is not a dict | py |
diff --git a/Hourly.py b/Hourly.py
index <HASH>..<HASH> 100755
--- a/Hourly.py
+++ b/Hourly.py
@@ -19,6 +19,7 @@ import sys
import DataStore
import LogData
from Plot import GraphPlotter
+from WindRose import RosePlotter
import Process
import Template
import ToTwitter
@@ -50,6 +51,8 @@ def Hourly(data_dir):
p... | Now does wind roses as well as normal plots. | py |
diff --git a/lib/reda/importers/eit_fzj.py b/lib/reda/importers/eit_fzj.py
index <HASH>..<HASH> 100644
--- a/lib/reda/importers/eit_fzj.py
+++ b/lib/reda/importers/eit_fzj.py
@@ -288,5 +288,8 @@ def apply_correction_factors(df, correction_data):
for col in ('r', 'Zt', 'Vmn', 'rho_a'):
if col in df... | fix bug caused by missing DataFrame column | py |
diff --git a/discord/invite.py b/discord/invite.py
index <HASH>..<HASH> 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -53,7 +53,7 @@ class Invite(Hashable):
max_age: int
How long the before the invite expires in seconds. A value of 0 indicates that it doesn't expire.
code: str
- Th... | Fix parsing of Invite.user | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -246,7 +246,8 @@ def test_ir_kkt_solver():
npt.assert_allclose(dy.numpy(), dy_.numpy(), rtol=RTOL, atol=ATOL)
-@npt.decorators.skipif(not torch.cuda.is_available())
+@npt.decorators.skipif(
+ not torch.cuda.is_availabl... | Properly skip the sparse tests if the sparse fork is not used. | py |
diff --git a/tests/test_systematic.py b/tests/test_systematic.py
index <HASH>..<HASH> 100644
--- a/tests/test_systematic.py
+++ b/tests/test_systematic.py
@@ -130,3 +130,5 @@ def test_einsum_ellipses(): combo_check(np.einsum, [1, 2], ['...jk,...lj->...l
'... | Added test_trace to test_systematic to check for different cases | py |
diff --git a/ella/utils/template_loaders.py b/ella/utils/template_loaders.py
index <HASH>..<HASH> 100644
--- a/ella/utils/template_loaders.py
+++ b/ella/utils/template_loaders.py
@@ -1,4 +1,4 @@
-from os.path import dirname, join, abspath, isdir
+from os.path import dirname, join, abspath, isdir, pardir
from django.... | Added special case for models not being a module, but a package | py |
diff --git a/sllurp/llrp_proto.py b/sllurp/llrp_proto.py
index <HASH>..<HASH> 100644
--- a/sllurp/llrp_proto.py
+++ b/sllurp/llrp_proto.py
@@ -2502,13 +2502,25 @@ Message_struct['C1G2InventoryCommand'] = {
# 16.3.1.2.1.1 C1G2Filter Parameter
def encode_C1G2Filter(par):
- raise NotImplementedError
+ msgtype = ... | C1G2Filter encode and struct defined | py |
diff --git a/internetarchive/internetarchive.py b/internetarchive/internetarchive.py
index <HASH>..<HASH> 100755
--- a/internetarchive/internetarchive.py
+++ b/internetarchive/internetarchive.py
@@ -289,7 +289,8 @@ class Item(object):
"""
headers = self._get_s3_headers(headers, metadata)
- if... | define header_names on separate line for easier reading. | py |
diff --git a/linguist/models/base.py b/linguist/models/base.py
index <HASH>..<HASH> 100644
--- a/linguist/models/base.py
+++ b/linguist/models/base.py
@@ -111,10 +111,18 @@ class Translation(models.Model):
class Meta:
abstract = True
+
app_label = 'linguist'
verbose_name = _('translati... | Translation model: add index_together for identifier and object_id. | py |
diff --git a/examples/recurse.py b/examples/recurse.py
index <HASH>..<HASH> 100644
--- a/examples/recurse.py
+++ b/examples/recurse.py
@@ -17,12 +17,12 @@
"""
A very simple example of recursive nested tasks.
Each task maps 2 others tasks, each of these 2 tasks maps 2 others, etc.,
-up to RECURSIVITY_LEVEL.
+up to RE... | + Simplified recurse example | py |
diff --git a/icrawler/utils/proxy_pool.py b/icrawler/utils/proxy_pool.py
index <HASH>..<HASH> 100644
--- a/icrawler/utils/proxy_pool.py
+++ b/icrawler/utils/proxy_pool.py
@@ -126,7 +126,7 @@ class ProxyPool(object):
exit()
proxy = self.proxies[protocol][self.addr_list[protocol][idx]]
if p... | fix typo in proxy_pool.py fix a typo which will cause an exception. | py |
diff --git a/molo/commenting/models.py b/molo/commenting/models.py
index <HASH>..<HASH> 100644
--- a/molo/commenting/models.py
+++ b/molo/commenting/models.py
@@ -54,7 +54,7 @@ class CannedResponse(models.Model):
date_added = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
- return sel... | TUNE-<I>: fix bug - __unicode__ was referencing a non-existant field | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,28 @@ setup(
license='MIT',
packages=find_packages('sundial'),
install_requires=requirements,
+ extras_require={
+ ['south']: ['south']
+ },
classifiers=[
+ 'Development Status... | Added setup classifier and extra requirements. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,14 +6,14 @@ import setuptools
# README
-with open('./README.rst', 'r', encoding='utf-8') as file:
+with open('./README.rst', 'r') as file:
long_desc = file.read()
# set-up script for pip distribution
setupto... | Fixed minor bugs in setup.py | py |
diff --git a/src/pytest_cov/embed.py b/src/pytest_cov/embed.py
index <HASH>..<HASH> 100644
--- a/src/pytest_cov/embed.py
+++ b/src/pytest_cov/embed.py
@@ -13,6 +13,7 @@ For python startup when an ancestor process has set the env indicating
that code coverage is being collected we activate coverage based on
info passe... | Avoid writing bogus data files from dead coverage tracers. | py |
diff --git a/torchvision/models/resnet.py b/torchvision/models/resnet.py
index <HASH>..<HASH> 100644
--- a/torchvision/models/resnet.py
+++ b/torchvision/models/resnet.py
@@ -99,8 +99,8 @@ class Bottleneck(nn.Module):
class ResNet(nn.Module):
def __init__(self, block, layers, num_classes=1000):
- self.in... | Update resnet.py (#<I>) | py |
diff --git a/webdriver_test_tools/pageobject/nav.py b/webdriver_test_tools/pageobject/nav.py
index <HASH>..<HASH> 100644
--- a/webdriver_test_tools/pageobject/nav.py
+++ b/webdriver_test_tools/pageobject/nav.py
@@ -223,7 +223,6 @@ class NavMenuObject(BasePage):
# Navbar Page Objects
-# TODO: document subclassing f... | Added a note to NavObject docstring about updated YAML parsing | py |
diff --git a/controller/deis/gconf.py b/controller/deis/gconf.py
index <HASH>..<HASH> 100644
--- a/controller/deis/gconf.py
+++ b/controller/deis/gconf.py
@@ -1,5 +1,7 @@
+import multiprocessing
+
bind = '0.0.0.0'
-workers = 8
+workers = multiprocessing.cpu_count() * 2 + 1
proc_name = 'deis-controller'
timeout = 120... | ref(controller): scale workers with CPU cores, as recommended See <URL> | py |
diff --git a/pymatgen/entries/compatibility.py b/pymatgen/entries/compatibility.py
index <HASH>..<HASH> 100644
--- a/pymatgen/entries/compatibility.py
+++ b/pymatgen/entries/compatibility.py
@@ -867,12 +867,9 @@ class MaterialsProjectAqueousCompatibility(Compatibility):
# (MU_H2O from pourbaix module)
... | use corrected H2O energy in AqueousCompat | py |
diff --git a/classic.py b/classic.py
index <HASH>..<HASH> 100644
--- a/classic.py
+++ b/classic.py
@@ -176,6 +176,11 @@ class ClassicCollection(Collection):
for tmp in self.db.list_users():
self.users[tmp[0]] = ClassicUser(self, *tmp)
self.on_keys_changed()
+ with self.lock:
+ if len(self.media) > 0:
+ ... | classic: properly stop and add got_media_event | py |
diff --git a/gwpy/signal/fft/lal.py b/gwpy/signal/fft/lal.py
index <HASH>..<HASH> 100644
--- a/gwpy/signal/fft/lal.py
+++ b/gwpy/signal/fft/lal.py
@@ -87,7 +87,7 @@ def generate_fft_plan(length, level=None, dtype='float64', forward=True):
return LAL_FFTPLANS[key]
-def generate_window(length, window=('kaise... | signal.fft.lal: modified default window allow `window=None` and set to kaiser | py |
diff --git a/cassandra/concurrent.py b/cassandra/concurrent.py
index <HASH>..<HASH> 100644
--- a/cassandra/concurrent.py
+++ b/cassandra/concurrent.py
@@ -83,7 +83,7 @@ def execute_concurrent(session, statements_and_parameters, concurrency=100, rais
first_error = [] if raise_on_first_error else None
to_execut... | Makes execute_concurrent function compatible with Python <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ def read(*relative_path_parts):
with open(path.join(HERE, *relative_path_parts), encoding=ENCODING) as f:
return f.read()
-VERSION = "0.4-dev"
+VERSION = "0.4"
README = "README.rst"
URL = "https://githu... | Version <I> Version number in setup.py was changed. Also, the classifiers were updated. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -213,7 +213,10 @@ class GSSAPIDistribution(Distribution, object):
return self._ext_modules
if getattr(self, '_cythonized_ext_modules', None) is None:
- self._cythonized_ext_modules = cythoniz... | Set language_level=2 in cythonize() This suppresses a frequent warning about the future from Cython. [<EMAIL>: rewrote commit message] | py |
diff --git a/nodeconductor/structure/serializers.py b/nodeconductor/structure/serializers.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/serializers.py
+++ b/nodeconductor/structure/serializers.py
@@ -630,7 +630,7 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
return fields
... | Fix user update validation - itacloud-<I> - pass id to model clean function | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -147,6 +147,9 @@ setup(
'invenio_base.apps': [
'invenio_pidstore = invenio_pidstore:InvenioPIDStore',
],
+ 'invenio_base.api_apps': [
+ 'invenio_pidstore = invenio_pidstore:Inve... | installation: entry point for api app * Adds entry point for registering PIDStore with Flask API application. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@ required_packages = [
"protobuf>=3.1",
"scipy>=0.19.0",
"protobuf3-to-dict>=0.1.5",
- "requests>=2.20.0, <2.21",
+ "requests>=2.20.0, <3",
"smdebug-rulesconfig==0.1.2",
]
@@ -47,7 +4... | change: relax urllib3 and requests restrictions. Relax urllib3 and requests restrictions based on <URL> | py |
diff --git a/datapackage_pipelines/specs/parsers/source_spec_pipeline.py b/datapackage_pipelines/specs/parsers/source_spec_pipeline.py
index <HASH>..<HASH> 100644
--- a/datapackage_pipelines/specs/parsers/source_spec_pipeline.py
+++ b/datapackage_pipelines/specs/parsers/source_spec_pipeline.py
@@ -43,6 +43,10 @@ class ... | Fix pipeline dependencies for pipelines yielded by generators | py |
diff --git a/intake/catalog/default.py b/intake/catalog/default.py
index <HASH>..<HASH> 100644
--- a/intake/catalog/default.py
+++ b/intake/catalog/default.py
@@ -51,9 +51,7 @@ def conda_prefix():
def global_data_dir():
"""Return the global Intake catalog dir for the current environment"""
- if CONDA_VAR in ... | Always use `conda info` to find prefix instead of environment | py |
diff --git a/lazysignup/models.py b/lazysignup/models.py
index <HASH>..<HASH> 100644
--- a/lazysignup/models.py
+++ b/lazysignup/models.py
@@ -78,7 +78,7 @@ class LazyUserManager(models.Manager):
@six.python_2_unicode_compatible
class LazyUser(models.Model):
- user = models.OneToOneField(constants.LAZYSIGNUP_USE... | LazyUser.user attribute needs on_delete argument for Django>=<I> | py |
diff --git a/pyiso.py b/pyiso.py
index <HASH>..<HASH> 100644
--- a/pyiso.py
+++ b/pyiso.py
@@ -1083,7 +1083,7 @@ class PrimaryVolumeDescriptor(object):
# directory record is a special case, where there was no
# parent so we need to manually move the extent forward one.
... | Increment the root directory record appropriately. | py |
diff --git a/src/edeposit/amqp/storage/settings.py b/src/edeposit/amqp/storage/settings.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/storage/settings.py
+++ b/src/edeposit/amqp/storage/settings.py
@@ -36,9 +36,12 @@ import os.path
# Module configuration ===================================================... | Added two new conf. variables: ZEO_SERVER_PATH and ZEO_CLIENT_PATH. #<I>. | py |
diff --git a/pyle.py b/pyle.py
index <HASH>..<HASH> 100755
--- a/pyle.py
+++ b/pyle.py
@@ -61,7 +61,7 @@ def pyle_evaluate(command=None, modules=None, inplace=False, files=None):
# If the result is something list-like or iterable, output each item space separated.
if out_line i... | Handle tuples or lists containing numbers or other non string objects reasonably. | py |
diff --git a/schedula/utils/drw/__init__.py b/schedula/utils/drw/__init__.py
index <HASH>..<HASH> 100644
--- a/schedula/utils/drw/__init__.py
+++ b/schedula/utils/drw/__init__.py
@@ -1520,7 +1520,10 @@ class SiteMap(collections.OrderedDict):
)
for node in itertools.chain(folder.nodes, folder.edges):
... | feat(drw): Add `force_plot` option to data node to plot Solution results. | py |
diff --git a/ipmag.py b/ipmag.py
index <HASH>..<HASH> 100644
--- a/ipmag.py
+++ b/ipmag.py
@@ -7,11 +7,12 @@ import matplotlib.pyplot as plt
import os
-def igrf(input):
+def igrf(input_list):
"""
- prints out Declination, Inclination, Intensity data from an input with format: Date, Altitude, Latitude, Long... | clarify docstring for igrf in ipmag.py. modify variable names to avoid using reserved word 'input'. | py |
diff --git a/holoviews/plotting/mpl/raster.py b/holoviews/plotting/mpl/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/raster.py
+++ b/holoviews/plotting/mpl/raster.py
@@ -309,6 +309,9 @@ class RasterGridPlot(GridPlot, OverlayPlot):
width, height, _, _, _, _ = self.border_extents
if... | Temporary fix for RasterGridPlot | py |
diff --git a/ayrton/remote.py b/ayrton/remote.py
index <HASH>..<HASH> 100644
--- a/ayrton/remote.py
+++ b/ayrton/remote.py
@@ -230,7 +230,7 @@ class remote:
precommand= '''import os; os.chdir ('%s')''' % os.getcwd ()
logger.debug ("precommand: %s", precommand)
- command= """python3 -c "#!... | [*] exec the remote python, less processes floating around. | py |
diff --git a/bcbio/pipeline/sample.py b/bcbio/pipeline/sample.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/sample.py
+++ b/bcbio/pipeline/sample.py
@@ -136,7 +136,7 @@ def process_alignment(data, alt_input=None):
# bam.index(fastq1, dd.get_config(data))
# data["work_bam"] = fastq1
... | Make log less spammy, especially during restarts. If we are restarting, we've already aligned here so don't need these messages. | py |
diff --git a/napalm/eos.py b/napalm/eos.py
index <HASH>..<HASH> 100644
--- a/napalm/eos.py
+++ b/napalm/eos.py
@@ -26,11 +26,12 @@ from utils import string_parsers
class EOSDriver(NetworkDriver):
- def __init__(self, hostname, username, password):
+ def __init__(self, hostname, username, password, timeout=60... | Added timeout to EOSDriver although it's being ignored right now | py |
diff --git a/actstream/registry.py b/actstream/registry.py
index <HASH>..<HASH> 100644
--- a/actstream/registry.py
+++ b/actstream/registry.py
@@ -40,7 +40,7 @@ def setup_generic_relations(model_class):
related_attr_name: attr_value
}
rel = generic.GenericRelation('actstream.Action', **kw... | contribute_to_class should be returning None this might be the root cause of some of the other issues ive been seeing | py |
diff --git a/disparate_impact.py b/disparate_impact.py
index <HASH>..<HASH> 100644
--- a/disparate_impact.py
+++ b/disparate_impact.py
@@ -32,7 +32,7 @@ def test():
groups = ('W','B')
outcomes = (1,0)
di = disparate_impact(feature_to_repair, response, groups, outcomes)
- print "Disparate Impact correct?", di
+ p... | Made test boolean, but weird that it says <I>==<I> is false | py |
diff --git a/amino/util/tuple.py b/amino/util/tuple.py
index <HASH>..<HASH> 100644
--- a/amino/util/tuple.py
+++ b/amino/util/tuple.py
@@ -1,12 +1,13 @@
-from typing import Tuple, TypeVar
+from typing import Tuple, TypeVar, Callable
-from amino import curried, Maybe, Just, Nothing
+from amino import Maybe, Just, Noth... | manual currying for `lift_tuple` | py |
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py
index <HASH>..<HASH> 100755
--- a/howdoi/howdoi.py
+++ b/howdoi/howdoi.py
@@ -812,12 +812,9 @@ def command_line_runner(): # pylint: disable=too-many-return-statements,too-man
if os.getenv('HOWDOI_COLORIZE'):
args['color'] = True
- utf8_result = howdoi... | drop python2 support | py |
diff --git a/pytil/tests/conftest.py b/pytil/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/pytil/tests/conftest.py
+++ b/pytil/tests/conftest.py
@@ -15,9 +15,10 @@
# You should have received a copy of the GNU Lesser General Public License
# along with pytil. If not, see <http://www.gnu.org/licenses/>.
+impor... | Ignore SIGPIPE correctly Did not ignore it previously. | py |
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index <HASH>..<HASH> 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -130,7 +130,7 @@ class ReplyCommand(Command):
subject = reply_subject_hook(subject)
else:
rsp = settings.get('reply_subject_prefix'... | corrected typo startwith --> startswith cf issue #<I> | py |
diff --git a/iterm2_tools/images.py b/iterm2_tools/images.py
index <HASH>..<HASH> 100644
--- a/iterm2_tools/images.py
+++ b/iterm2_tools/images.py
@@ -7,7 +7,7 @@ import base64
# See https://iterm2.com/images.html
IMAGE_CODE = '\033]1337;File={file};inline={inline};size={size}:{base64_img}\a'
-def image_bytes(b, fi... | Rename image_bytes to display_image_bytes | py |
diff --git a/pysc2/lib/features.py b/pysc2/lib/features.py
index <HASH>..<HASH> 100644
--- a/pysc2/lib/features.py
+++ b/pysc2/lib/features.py
@@ -197,8 +197,8 @@ class FeatureUnit(enum.IntEnum):
ideal_harvesters = 24
weapon_cooldown = 25
order_length = 26 # If zero, the unit is idle.
- order_id_0 = 27 # Cu... | Add unit features for train/research order progress, and two more orders for a total of four. PiperOrigin-RevId: <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,13 +18,14 @@ limitations under the License.
"""
import os
+import io
import runpy
from setuptools import setup
current = os.path.realpath(os.path.dirname(__file__))
-with open(os.path.join(current, 'README.rst... | decode README as UTF-8 on setup.py (#<I>) ... so that installation does not fail on systems with standard C locale | py |
diff --git a/clients/python/pycellbase/cbconfig.py b/clients/python/pycellbase/cbconfig.py
index <HASH>..<HASH> 100755
--- a/clients/python/pycellbase/cbconfig.py
+++ b/clients/python/pycellbase/cbconfig.py
@@ -32,8 +32,11 @@ class ConfigClient(object):
config_dict = None
if config_fpath.endswith('.ym... | added error message when getting configuration file without suffix | py |
diff --git a/ginga/gtk3w/GtkHelp.py b/ginga/gtk3w/GtkHelp.py
index <HASH>..<HASH> 100644
--- a/ginga/gtk3w/GtkHelp.py
+++ b/ginga/gtk3w/GtkHelp.py
@@ -804,10 +804,12 @@ class Dial(Gtk.DrawingArea):
if event.button == 1:
self._dragging = True
self._calc_action(event.x, event.y)
+ ... | Fix for return type of Gtk Dial widget mouse handler | py |
diff --git a/kolekto/commands/link.py b/kolekto/commands/link.py
index <HASH>..<HASH> 100644
--- a/kolekto/commands/link.py
+++ b/kolekto/commands/link.py
@@ -141,11 +141,11 @@ class Link(Command):
fullname = os.path.join(args.tree, filename)
dirname = os.path.dirname(fullname)
mo... | Fixed creating parent directories on link even with dry-run | py |
diff --git a/crisp/camera.py b/crisp/camera.py
index <HASH>..<HASH> 100644
--- a/crisp/camera.py
+++ b/crisp/camera.py
@@ -322,7 +322,7 @@ class OpenCVCameraModel(CameraModel):
points : (3, N) ndarray
3D coordinates (valid up to scale)
"""
- undist_image_points = cv2.undistortPoint... | Fix wrong reshape in OpenCVCameraModel.unproject | py |
diff --git a/nion/swift/LineGraphCanvasItem.py b/nion/swift/LineGraphCanvasItem.py
index <HASH>..<HASH> 100644
--- a/nion/swift/LineGraphCanvasItem.py
+++ b/nion/swift/LineGraphCanvasItem.py
@@ -1016,7 +1016,7 @@ class LineGraphLegendCanvasItem(CanvasItem.AbstractCanvasItem):
drawing_context.begin_path... | Revert inadvertent change to opacity of legend background. | py |
diff --git a/src/rotest/management/utils/shell.py b/src/rotest/management/utils/shell.py
index <HASH>..<HASH> 100644
--- a/src/rotest/management/utils/shell.py
+++ b/src/rotest/management/utils/shell.py
@@ -136,12 +136,13 @@ def main():
startup_commands = [IMPORT_BLOCK_UTILS, IMPORT_RESOURCE_LOADER]
startup... | Removing banner of IPython | py |
diff --git a/lib/autokey/qtui/centralwidget.py b/lib/autokey/qtui/centralwidget.py
index <HASH>..<HASH> 100644
--- a/lib/autokey/qtui/centralwidget.py
+++ b/lib/autokey/qtui/centralwidget.py
@@ -403,18 +403,15 @@ class CentralWidget(*common.inherits_from_ui_file_with_name("centralwidget")):
QUrl(),
... | CentralWidget: Implement a TODO in on_save_log(). Use a with-statement instead of manual file handling in a try-except block. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,6 @@
import os
from setuptools import find_packages, setup
-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
- README = readme.read()
-
# allow setup.py to be run from any path
os.ch... | Added dependencies to setup.py | py |
diff --git a/asphalt/core/runner.py b/asphalt/core/runner.py
index <HASH>..<HASH> 100644
--- a/asphalt/core/runner.py
+++ b/asphalt/core/runner.py
@@ -46,7 +46,8 @@ def run_application(component: Union[Component, Dict[str, Any]], *, event_loop_p
The default executor in the event loop is replaced with a new
... | Corrected obsolete information in the docstring of run_application() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,8 @@
The setup script for salt
'''
+from __future__ import absolute_import
+
# pylint: disable=C0111,E1101,E1103,F0401,W0611,W0201,W0232,R0201,R0902,R0903
# For Python 2.5. A no-op on 2.6 and above.
@@ -12,7 +... | make setup.py run on python3 | py |
diff --git a/coveralls/api.py b/coveralls/api.py
index <HASH>..<HASH> 100644
--- a/coveralls/api.py
+++ b/coveralls/api.py
@@ -219,6 +219,7 @@ class Coveralls(object):
},
'branch': (os.environ.get('CIRCLE_BRANCH') or
os.environ.get('APPVEYOR_REPO_BRANCH') or
+ ... | Ensure buildkite branch is correctly picked up | py |
diff --git a/test_hgdistver.py b/test_hgdistver.py
index <HASH>..<HASH> 100644
--- a/test_hgdistver.py
+++ b/test_hgdistver.py
@@ -70,7 +70,9 @@ def pytest_funcarg__get_log_version(request):
#XXX: better tests for tag prefixes
@py.test.mark.cases('version_from_hg15_parents', 'version_from_hg_log_with_tags')
def test... | also print the hg version in tests | py |
diff --git a/treeswift/Node.py b/treeswift/Node.py
index <HASH>..<HASH> 100644
--- a/treeswift/Node.py
+++ b/treeswift/Node.py
@@ -235,7 +235,7 @@ class Node:
while c is not None:
yield c; c = c.parent
- def traverse_bfs(self):
+ def traverse_bfs(self, include_self=True):
'''Perfo... | added default arg for bfs | py |
diff --git a/mockupdb/__init__.py b/mockupdb/__init__.py
index <HASH>..<HASH> 100755
--- a/mockupdb/__init__.py
+++ b/mockupdb/__init__.py
@@ -519,6 +519,15 @@ class OpQuery(Request):
class Command(OpQuery):
"""A command the client executes on the server."""
+ @property
+ def command_name(self):
+ ... | Add Command.command_name property. | py |
diff --git a/wooey/conf/project_template/settings/user_settings.py b/wooey/conf/project_template/settings/user_settings.py
index <HASH>..<HASH> 100644
--- a/wooey/conf/project_template/settings/user_settings.py
+++ b/wooey/conf/project_template/settings/user_settings.py
@@ -22,6 +22,7 @@ BROKER_URL = 'django://'
CELER... | addition of wooey.tasks to settings for bootstrapper | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -63,7 +63,7 @@ author = u'Sebastian Bank'
# built documents.
#
# The short X.Y version.
-version = release = '0.5.4.dev0'
+version = release = '0.5.5.dev0'
# The language for content autogenerated by Sphi... | fix missed rtd version bump | py |
diff --git a/pgcontents/schema.py b/pgcontents/schema.py
index <HASH>..<HASH> 100644
--- a/pgcontents/schema.py
+++ b/pgcontents/schema.py
@@ -476,26 +476,6 @@ def _dir_exists(db, user_id, db_dirname):
).scalar() != 0
-def _directory_contents(db, table, fields, user_id, db_dirname):
- """
- Return names ... | MAINT: Remove unused function. | py |
diff --git a/ndb/model.py b/ndb/model.py
index <HASH>..<HASH> 100644
--- a/ndb/model.py
+++ b/ndb/model.py
@@ -1684,8 +1684,11 @@ class StructuredProperty(Property):
subentity = self._retrieve_value(entity)
if subentity is None:
subentity = self._modelclass()
+ subentity = _Bottom(subentit... | Got custom to work. But more hacks. | py |
diff --git a/ssbio/pipeline/gempro.py b/ssbio/pipeline/gempro.py
index <HASH>..<HASH> 100644
--- a/ssbio/pipeline/gempro.py
+++ b/ssbio/pipeline/gempro.py
@@ -1295,7 +1295,7 @@ class GEMPRO(object):
log.warning('{}: MSMS failed to run on {}'.format(clean_pdb))
continue
- ... | just save basename of msms_file | py |
diff --git a/d1_test_utilities_python/d1_test_utilities/src/create_dataone_test_certificate.py b/d1_test_utilities_python/d1_test_utilities/src/create_dataone_test_certificate.py
index <HASH>..<HASH> 100755
--- a/d1_test_utilities_python/d1_test_utilities/src/create_dataone_test_certificate.py
+++ b/d1_test_utilities_p... | Added example to create_test_certificate.py. | py |
diff --git a/sos/plugins/atomichost.py b/sos/plugins/atomichost.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/atomichost.py
+++ b/sos/plugins/atomichost.py
@@ -27,10 +27,7 @@ class AtomicHost(Plugin, RedHatPlugin):
]
def check_enabled(self):
- if not os.path.exists("/host/etc/system-release-cpe"):... | [atomichost] replace custom logic with Policy.in_container() Don't reinvent the wheel by inspecting file system paths: rely on the existing policy class in_container() method. | py |
diff --git a/tensorflow_datasets/core/community/huggingface_wrapper.py b/tensorflow_datasets/core/community/huggingface_wrapper.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/community/huggingface_wrapper.py
+++ b/tensorflow_datasets/core/community/huggingface_wrapper.py
@@ -160,7 +160,9 @@ def _make_sca... | Add more scalar types supported by HF PiperOrigin-RevId: <I> | py |
diff --git a/emma2/msm/analysis/__init__.py b/emma2/msm/analysis/__init__.py
index <HASH>..<HASH> 100644
--- a/emma2/msm/analysis/__init__.py
+++ b/emma2/msm/analysis/__init__.py
@@ -18,7 +18,7 @@ Validation
is_transition_matrix - Positive entries and rows sum to one
is_rate_matrix - Nonpositive off-diagonal ... | [msm/analysis] Changed is_ergodic to is_connected | py |
diff --git a/faker/providers/color/hu_HU/__init__.py b/faker/providers/color/hu_HU/__init__.py
index <HASH>..<HASH> 100644
--- a/faker/providers/color/hu_HU/__init__.py
+++ b/faker/providers/color/hu_HU/__init__.py
@@ -1,7 +1,7 @@
-from faker.providers import BaseProvider
+from .. import Provider as ColorProvider
-... | Fix ``hu_HU`` color provider inheritance (#<I>) It was broken since it was first introduced in d5ad2d<I>dd<I>bd<I>f<I>d<I>db6de2d<I>dc | py |
diff --git a/pysat/tests/test_instruments.py b/pysat/tests/test_instruments.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_instruments.py
+++ b/pysat/tests/test_instruments.py
@@ -20,7 +20,10 @@ import importlib
exclude_list = ['champ_star', 'superdarn_grdex', 'cosmic_gps', 'cosmic2013_gps',
... | Added pysat_sgp4 for python 2 installs | py |
diff --git a/graphene_gae/ndb/fields.py b/graphene_gae/ndb/fields.py
index <HASH>..<HASH> 100644
--- a/graphene_gae/ndb/fields.py
+++ b/graphene_gae/ndb/fields.py
@@ -150,30 +150,6 @@ class NdbKeyField(FieldType):
key = getattr(entity, self.name)
if isinstance(key, list):
- return self.__... | Removd unecessary NdbKeyField fetching optimization There are better ways to do caching and pre-fetching in GraphQL than this (ugly) hack… | py |
diff --git a/tornado/ioloop.py b/tornado/ioloop.py
index <HASH>..<HASH> 100644
--- a/tornado/ioloop.py
+++ b/tornado/ioloop.py
@@ -914,7 +914,7 @@ class PollIOLoop(IOLoop):
# with other threads, or waking logic will induce a race.
with self._callback_lock:
if self._closing:
- ... | Remove "IOLoop is closing" error. Callbacks added while the IOLoop is closing will now simply not be called (which has always been a possible fate for callbacks added just *before* the close). This exception has not proved to be very useful and sometimes has false positives that are tricky to work around, as seen in t... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,10 +2,10 @@
# -*- encoding: utf-8 -*-
from __future__ import absolute_import, print_function
-import io
-import re
from glob import glob
from os.path import basename, dirname, join, splitext
+import io
+import re
f... | Reorder imports The should be alphabetical and 'f' comes before 'i'. | py |
diff --git a/parsl/executors/workqueue/executor.py b/parsl/executors/workqueue/executor.py
index <HASH>..<HASH> 100644
--- a/parsl/executors/workqueue/executor.py
+++ b/parsl/executors/workqueue/executor.py
@@ -297,7 +297,7 @@ class WorkQueueExecutor(BlockProviderExecutor, putils.RepresentationMixin):
os.mkdir... | Fix typo in work queue logging (#<I>) | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -133,7 +133,7 @@ class Zotero(object):
def _token(self):
""" Return a unique 32-char write-token """
- return str(uuid.uuid4()).replace('-','')
+ return str... | Using uuid.hex instead of removing dashes | py |
diff --git a/djgeojson/views.py b/djgeojson/views.py
index <HASH>..<HASH> 100644
--- a/djgeojson/views.py
+++ b/djgeojson/views.py
@@ -86,9 +86,9 @@ class TiledGeoJSONLayerView(GeoJSONLayerView):
"""
Inspired by Glen Roberton's django-geojson-tiles view
"""
- x, y, z = map(int, self.ar... | Store tile x,y,z in view | py |
diff --git a/spec/example_group_spec.py b/spec/example_group_spec.py
index <HASH>..<HASH> 100644
--- a/spec/example_group_spec.py
+++ b/spec/example_group_spec.py
@@ -79,7 +79,7 @@ with describe(ExampleGroup) as _:
def it_should_not_execute_any_example():
expect(_.was_run).to.be.false
- ... | The children example will be reported as failed | py |
diff --git a/tests/test_hep_bd5xx.py b/tests/test_hep_bd5xx.py
index <HASH>..<HASH> 100644
--- a/tests/test_hep_bd5xx.py
+++ b/tests/test_hep_bd5xx.py
@@ -1037,6 +1037,30 @@ def test_export_to_from_595__c_cds():
assert expected == result['595']
+def test_export_to_from_595__c_hal():
+ schema = load_schema('... | tests: add extra test for _export_to in hep | py |
diff --git a/pandasdmx/reader/sdmxjson.py b/pandasdmx/reader/sdmxjson.py
index <HASH>..<HASH> 100644
--- a/pandasdmx/reader/sdmxjson.py
+++ b/pandasdmx/reader/sdmxjson.py
@@ -157,10 +157,11 @@ class Reader(BaseReader):
# pre-fill this
value = ':'.join(['0'] * len(dims)) if value is None else value
... | Support 0-dimensional keys in sdmxjson.Reader | py |
diff --git a/pypiper/manager.py b/pypiper/manager.py
index <HASH>..<HASH> 100755
--- a/pypiper/manager.py
+++ b/pypiper/manager.py
@@ -973,12 +973,15 @@ class PipelineManager(object):
:type checkpoint: str, optional
"""
message += " (" + time.strftime("%m-%d %H:%M:%S") + ")"
- message ... | use checkpoint in call to timestamp | py |
diff --git a/zubbi/scraper/main.py b/zubbi/scraper/main.py
index <HASH>..<HASH> 100644
--- a/zubbi/scraper/main.py
+++ b/zubbi/scraper/main.py
@@ -234,6 +234,11 @@ def scrape(ctx, full, repo):
socket = create_zmq_socket(socket_addr, timeout)
while True:
+ # Check if a periodic run is nece... | Check outdated repos first (before ZMQ / waiting) | py |
diff --git a/dvc/__init__.py b/dvc/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/__init__.py
+++ b/dvc/__init__.py
@@ -7,7 +7,7 @@ import os
import warnings
-VERSION_BASE = '0.23.2'
+VERSION_BASE = '0.24.0'
__version__ = VERSION_BASE
PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) | dvc: bump to <I> | py |
diff --git a/spacy/language.py b/spacy/language.py
index <HASH>..<HASH> 100644
--- a/spacy/language.py
+++ b/spacy/language.py
@@ -222,8 +222,9 @@ class Language(object):
continue
tokvecses, bp_tokvecses = tok2vec.model.begin_update(feats, drop=drop)
d_tokvecses = proc.update(... | Only train one task per iter, holding grads | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,12 @@ setup(
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
+ 'Programming Language :: Python :: 2.5',
+ 'P... | List supported minor Python versions in setup.py | py |
diff --git a/src/rstcheck/checker.py b/src/rstcheck/checker.py
index <HASH>..<HASH> 100644
--- a/src/rstcheck/checker.py
+++ b/src/rstcheck/checker.py
@@ -707,9 +707,16 @@ class CodeBlockChecker:
if isinstance(source_origin_path, str):
source_origin_path = pathlib.Path(source_origin_path)
- ... | fix double use of temp file on windows | py |
diff --git a/halp/directed_hypergraph.py b/halp/directed_hypergraph.py
index <HASH>..<HASH> 100644
--- a/halp/directed_hypergraph.py
+++ b/halp/directed_hypergraph.py
@@ -350,6 +350,15 @@ class DirectedHypergraph(object):
head or tail, that hyperedge is removed.
Note: hyperedges modified thi... | Added more detailed documentation for trim_node() | py |
diff --git a/unitypack/__init__.py b/unitypack/__init__.py
index <HASH>..<HASH> 100644
--- a/unitypack/__init__.py
+++ b/unitypack/__init__.py
@@ -268,7 +268,7 @@ class ObjectPointer:
class Asset:
@classmethod
- def from_bundle(cls, buf):
+ def from_bundle(cls, bundle, buf):
ret = cls()
offset = buf.tell()
... | Pass the bundle in Asset.from_bundle() | py |
diff --git a/pywb/webapp/replay_views.py b/pywb/webapp/replay_views.py
index <HASH>..<HASH> 100644
--- a/pywb/webapp/replay_views.py
+++ b/pywb/webapp/replay_views.py
@@ -1,5 +1,6 @@
import re
from io import BytesIO
+from urlparse import urlsplit
from pywb.utils.statusandheaders import StatusAndHeaders
from pywb.... | fix self-redirect check with relative urls in Location | py |
diff --git a/pyforms/gui/Controls/ControlDockWidget.py b/pyforms/gui/Controls/ControlDockWidget.py
index <HASH>..<HASH> 100644
--- a/pyforms/gui/Controls/ControlDockWidget.py
+++ b/pyforms/gui/Controls/ControlDockWidget.py
@@ -36,10 +36,10 @@ class ControlDockWidget(ControlEmptyWidget):
"""
Show the c... | fixed bug when calling methods hide or show in the ControlDockWidget | py |
diff --git a/inflect/__init__.py b/inflect/__init__.py
index <HASH>..<HASH> 100644
--- a/inflect/__init__.py
+++ b/inflect/__init__.py
@@ -1689,7 +1689,7 @@ def get_si_pron(thecase, word, gender) -> str:
except KeyError:
raise # not a pronoun
try:
- return cast(str, sing[gender]) # has sever... | 🧎♀️ Genuflect to the types. | py |
diff --git a/manage.py b/manage.py
index <HASH>..<HASH> 100755
--- a/manage.py
+++ b/manage.py
@@ -46,6 +46,7 @@ class Git( pyman.Page ):
self.add([
pyman.Action.Cmd( "Commit", "git commit" ),
GitCommitFile(),
+ pyman.Action.Cmd( "Push", "git push" ),
pyman.Act... | Added Push command to manage/GitHub page | py |
diff --git a/pyasn1_modules/pem.py b/pyasn1_modules/pem.py
index <HASH>..<HASH> 100644
--- a/pyasn1_modules/pem.py
+++ b/pyasn1_modules/pem.py
@@ -29,16 +29,16 @@ def readPemFromFile(fileObj, *markers):
certLines.append(certLine)
if state == stDump:
if sys.version_info[0] <= 2:
- ... | b<I>decode() seems to be more portable than decodebytes() | py |
diff --git a/accounts/views/base.py b/accounts/views/base.py
index <HASH>..<HASH> 100644
--- a/accounts/views/base.py
+++ b/accounts/views/base.py
@@ -44,7 +44,7 @@ class BaseAccountList(ListView):
Filter by category, client
"""
- pass
+ model = Account
class BaseAccountDetail(AccountSingleObject... | Too greedy removing model definitions | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.