diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/doc/sphinxext/gen_rst.py b/doc/sphinxext/gen_rst.py
index <HASH>..<HASH> 100644
--- a/doc/sphinxext/gen_rst.py
+++ b/doc/sphinxext/gen_rst.py
@@ -10,9 +10,6 @@ Files that generate images should start with 'plot'
import os
import shutil
import traceback
-# Import numpy to avoid an annoying bug in an exam... | FIX: fix generating the examples with some tricky uses of pylab. | py |
diff --git a/sos/policies/debian.py b/sos/policies/debian.py
index <HASH>..<HASH> 100644
--- a/sos/policies/debian.py
+++ b/sos/policies/debian.py
@@ -12,7 +12,7 @@ class DebianPolicy(LinuxPolicy):
package_manager = PackageManager("dpkg-query -W -f='${Package}|${Version}\\n' \*")
valid_subclasses = [DebianPlu... | Fix typo in debian/policies | py |
diff --git a/oproc.py b/oproc.py
index <HASH>..<HASH> 100644
--- a/oproc.py
+++ b/oproc.py
@@ -333,10 +333,13 @@ class StreamReader(object):
# advanced, they may want to terminate the process, or pass some stdin
# back, and will realize that they can pass a callback of more args
if self.handl... | bugfix with passing an object's method in as the _out/_err callback | py |
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -191,7 +191,8 @@ class NodeLanguage(object):
environ=_FORCE_ENVIRON_FOR_WRAPPERS)]
def pre_build_steps(self):
- ... | Added node pre-build steps to run_tests.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-requires = ['requests', 'requests-oauthlib']
+requires = ['requests', 'requests_oauthlib']
try:
from setuptools import setup | Correct requests_oauth package name, to fix distutils installation | py |
diff --git a/jaraco/__init__.py b/jaraco/__init__.py
index <HASH>..<HASH> 100644
--- a/jaraco/__init__.py
+++ b/jaraco/__init__.py
@@ -1,2 +1,10 @@
# this is a namespace package
-__import__('pkg_resources').declare_namespace(__name__)
\ No newline at end of file
+__import__('pkg_resources').declare_namespace(__name__)... | Added py2exe support to the package. | py |
diff --git a/tests/connection.py b/tests/connection.py
index <HASH>..<HASH> 100644
--- a/tests/connection.py
+++ b/tests/connection.py
@@ -164,7 +164,10 @@ class Connection_:
class forward_agent:
def defaults_to_False(self):
- assert Connection("host").forward_agent is False
+ ... | First stab at fixing #<I> | py |
diff --git a/minion/http.py b/minion/http.py
index <HASH>..<HASH> 100644
--- a/minion/http.py
+++ b/minion/http.py
@@ -9,7 +9,7 @@ from characteristic import Attribute, attributes
from future.utils import iteritems, viewkeys
-_CANONICAL_NAMES = {
+_CANONICAL_HEADER_NAMES = {
b"content-md5": b"Content-MD5",
... | Clarify a constant name now that http has more stuff in it. | py |
diff --git a/src/suit_dashboard/decorators.py b/src/suit_dashboard/decorators.py
index <HASH>..<HASH> 100644
--- a/src/suit_dashboard/decorators.py
+++ b/src/suit_dashboard/decorators.py
@@ -5,6 +5,7 @@ from __future__ import unicode_literals
import random
import string
from functools import wraps
+from hashlib impo... | Fix (try to) refreshable url changing over time | py |
diff --git a/tests/linalg_test.py b/tests/linalg_test.py
index <HASH>..<HASH> 100644
--- a/tests/linalg_test.py
+++ b/tests/linalg_test.py
@@ -286,7 +286,7 @@ class NumpyLinalgTest(jtu.JaxTestCase):
args_maker, check_dtypes=True)
if not full_matrices:
svd = partial(np.linalg.svd, ... | tests pass with ATOL=1e-1 | py |
diff --git a/python/ray/air/config.py b/python/ray/air/config.py
index <HASH>..<HASH> 100644
--- a/python/ray/air/config.py
+++ b/python/ray/air/config.py
@@ -90,7 +90,13 @@ class ScalingConfig:
@property
def _resources_per_worker_not_none(self):
if self.resources_per_worker is None:
- ret... | [air] Don't request CPUs by default when use_gpu=True (#<I>) | py |
diff --git a/libagent/gpg/__init__.py b/libagent/gpg/__init__.py
index <HASH>..<HASH> 100644
--- a/libagent/gpg/__init__.py
+++ b/libagent/gpg/__init__.py
@@ -86,7 +86,8 @@ def verify_gpg_version():
required_gpg = '>=2.1.11'
msg = 'Existing GnuPG has version "{}" ({} required)'.format(existing_gpg,
... | Replace GPG version assertion by an error log since NeoPG uses different versioning | py |
diff --git a/green/loader.py b/green/loader.py
index <HASH>..<HASH> 100644
--- a/green/loader.py
+++ b/green/loader.py
@@ -88,18 +88,4 @@ def getTests(target):
logging.debug("Load method: FILE - {}".format(candidate))
return tests
-
- # INSTALLED MODULE - (Unlike the installed package, we... | Through extensive testing, I found that we never hit the loadTestsFromModule section, because loadTestsFromName handles the case of a built-in module and a module relative to the current path. | py |
diff --git a/broqer/hub.py b/broqer/hub.py
index <HASH>..<HASH> 100644
--- a/broqer/hub.py
+++ b/broqer/hub.py
@@ -1,6 +1,6 @@
from broqer.stream import Stream
from collections import defaultdict
-from typing import Optional, Union
+from typing import Optional, Union, Any
from types import MappingProxyType
SEP='.... | added missing type in hub.py | py |
diff --git a/LiSE/setup.py b/LiSE/setup.py
index <HASH>..<HASH> 100644
--- a/LiSE/setup.py
+++ b/LiSE/setup.py
@@ -21,7 +21,8 @@ setup(
url="https://github.com/LogicalDash/LiSE",
packages=[
"LiSE",
- "LiSE.server"
+ "LiSE.server",
+ "LiSE.examples"
],
package_data={
... | Include the examples in the LiSE package | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -157,6 +157,7 @@ html_theme_options = {
'github_count': True,
'sidebar_includehidden': True,
'show_related': True,
+ 'fixed_sidebar': True,
'font_size': '14px',
'font_family': ','.jo... | Added fixed sidebar for docs. | py |
diff --git a/endpoints/apiserving.py b/endpoints/apiserving.py
index <HASH>..<HASH> 100644
--- a/endpoints/apiserving.py
+++ b/endpoints/apiserving.py
@@ -482,6 +482,12 @@ def api_server(api_services, **kwargs):
' it.')
return dispatcher
+ # If we're using a local server, just return the dispa... | Support local devserver by bypassing service control | py |
diff --git a/amino/dat.py b/amino/dat.py
index <HASH>..<HASH> 100644
--- a/amino/dat.py
+++ b/amino/dat.py
@@ -84,7 +84,7 @@ class FieldProxy(Generic[Sub], FieldMutator[Sub]):
return self.tpe(name, self.target)
-def init_fields(init: FunctionType) -> List[Field]:
+def init_fields(init: FunctionType, global... | lift globals from stack for `Dat` generation | py |
diff --git a/btb/tuning/acquisition/numpyargsort.py b/btb/tuning/acquisition/numpyargsort.py
index <HASH>..<HASH> 100644
--- a/btb/tuning/acquisition/numpyargsort.py
+++ b/btb/tuning/acquisition/numpyargsort.py
@@ -11,5 +11,6 @@ class NumpyArgSortFunction(BaseAcquisitionFunction):
def _acquire(self, candidates, ... | Update sort depending on maximize or minimze. | py |
diff --git a/satpy/readers/utils.py b/satpy/readers/utils.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/utils.py
+++ b/satpy/readers/utils.py
@@ -200,14 +200,14 @@ def unzip_file(filename):
"""Unzip the file if file is bzipped = ending with 'bz2'."""
if filename.endswith('bz2'):
fdn, tmpfilepath... | Use logging instead of print statement in unzip_file, also remove unneeded brackets from if statements | py |
diff --git a/script/update-frameworks.py b/script/update-frameworks.py
index <HASH>..<HASH> 100755
--- a/script/update-frameworks.py
+++ b/script/update-frameworks.py
@@ -7,8 +7,7 @@ from lib.util import safe_mkdir, extract_zip, tempdir, download
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file... | Move framework downloads to github release | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ setup(
# For a discussion on single-sourcing the version across setup.py and the
# project code, see
# https://packaging.python.org/en/latest/single_source_version.html
- version='2.1.0', # Re... | adding fin.quote as a setup dependency <I> | py |
diff --git a/registrasion/forms.py b/registrasion/forms.py
index <HASH>..<HASH> 100644
--- a/registrasion/forms.py
+++ b/registrasion/forms.py
@@ -277,6 +277,7 @@ class _ItemQuantityProductsForm(_ProductsForm):
return
if product.id == self.cleaned_data[self.CHOICE_FIELD]:
+ self.add_e... | Better reporting of errors in long-and-thin categories | py |
diff --git a/emma2/__init__.py b/emma2/__init__.py
index <HASH>..<HASH> 100644
--- a/emma2/__init__.py
+++ b/emma2/__init__.py
@@ -2,9 +2,6 @@
Emma2 package
"""
-import pkg_resources
-pkg_resources.require('numpy >= 1.8.0')
-
import coordinates
import msm
import pmm | removed pkg_resources stuff | py |
diff --git a/releases/util.py b/releases/util.py
index <HASH>..<HASH> 100644
--- a/releases/util.py
+++ b/releases/util.py
@@ -210,7 +210,10 @@ def make_app(**kwargs):
Sphinx._log = lambda self, message, wfile, nonl=False: None
# Sphinx >=1.6ish. Technically still lets Very Bad Things through,
... | Sphinx logging changed even within its <I> line apparently | py |
diff --git a/plantuml/plantuml_rst.py b/plantuml/plantuml_rst.py
index <HASH>..<HASH> 100644
--- a/plantuml/plantuml_rst.py
+++ b/plantuml/plantuml_rst.py
@@ -42,7 +42,8 @@ class PlantUML_rst(Directive):
body = '\n'.join(self.content)
try:
- url = global_siteurl+'/'+generate_uml_image(pat... | Fix plantuml Rst format option The plantuml Rst pluging was ignoring the `format` option in the `uml` blocks, hardcoded to `png` all the time. This did not allow for generating `svg` images, as described in the Readme.rst. Corrected the issue. | py |
diff --git a/salt/modules/keystone.py b/salt/modules/keystone.py
index <HASH>..<HASH> 100644
--- a/salt/modules/keystone.py
+++ b/salt/modules/keystone.py
@@ -622,8 +622,7 @@ def user_list(profile=None, **connection_args):
ret[user.name] = {'id': user.id,
'name': user.name,
... | Don't try to access the default tenant id in user_list and user_get | py |
diff --git a/pymc/smc/smc.py b/pymc/smc/smc.py
index <HASH>..<HASH> 100644
--- a/pymc/smc/smc.py
+++ b/pymc/smc/smc.py
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import abc
+import sys
+import warnings
from abc import ABC
from typi... | Supress warning SMC initialization (#<I>) | py |
diff --git a/airflow/contrib/hooks/bigquery_hook.py b/airflow/contrib/hooks/bigquery_hook.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/hooks/bigquery_hook.py
+++ b/airflow/contrib/hooks/bigquery_hook.py
@@ -1188,7 +1188,7 @@ class BigQueryBaseCursor(LoggingMixin):
'DATASTORE_BACKUP': ['projectionFi... | [AIRFLOW-<I>] Add Avro logical type conversion to bigquery hook (#<I>) | py |
diff --git a/tests/functional-sdk/test_sdk_sanity.py b/tests/functional-sdk/test_sdk_sanity.py
index <HASH>..<HASH> 100644
--- a/tests/functional-sdk/test_sdk_sanity.py
+++ b/tests/functional-sdk/test_sdk_sanity.py
@@ -89,7 +89,11 @@ def env(request, init_fname, test_results, tmp_workdir, external_log):
yield env
... | tests: don't archive images in artifacts | py |
diff --git a/api.py b/api.py
index <HASH>..<HASH> 100644
--- a/api.py
+++ b/api.py
@@ -1,6 +1,6 @@
"""Api and Utilities"""
import httplib2
-
+import urllib
class Api():
"""Api Object"""
@@ -48,6 +48,19 @@ class Api():
"""Clears all stored endpoints"""
self.endpoints = {}
+ def _url(self... | Added a private method to generate URLs for requests | py |
diff --git a/ping3.py b/ping3.py
index <HASH>..<HASH> 100644
--- a/ping3.py
+++ b/ping3.py
@@ -158,7 +158,7 @@ def verbose_ping(dest_addr, count=4, *args, **kwargs):
print("Failed. (socket error: '{}')".format(e))
break
if delay is None:
- print("Timeout > {}s".format(timeo... | do not show timeout if it's None. | py |
diff --git a/python/sbp/version.py b/python/sbp/version.py
index <HASH>..<HASH> 100644
--- a/python/sbp/version.py
+++ b/python/sbp/version.py
@@ -95,7 +95,7 @@ def get_git_version():
# If the current version is different from what's in the
# RELEASE-VERSION file, update the file to be current.
- if vers... | Only compare release-version if it exists. | py |
diff --git a/squad/settings.py b/squad/settings.py
index <HASH>..<HASH> 100644
--- a/squad/settings.py
+++ b/squad/settings.py
@@ -70,6 +70,7 @@ __apps__ = [
'django.contrib.staticfiles',
django_extensions, # OPTIONAL
'rest_framework',
+ 'rest_framework.authtoken',
'django_filters',
'squad.... | settings: enable Django REST Framework auth token application | py |
diff --git a/foolbox/attacks/base.py b/foolbox/attacks/base.py
index <HASH>..<HASH> 100644
--- a/foolbox/attacks/base.py
+++ b/foolbox/attacks/base.py
@@ -207,6 +207,11 @@ class FixedEpsilonAttack(AttackWithDistance):
def run(
self, model: Model, inputs: T, criterion: Any, *, epsilon: float, **kwargs: Any... | added docstrings for run() | py |
diff --git a/aldryn_categories/models.py b/aldryn_categories/models.py
index <HASH>..<HASH> 100644
--- a/aldryn_categories/models.py
+++ b/aldryn_categories/models.py
@@ -2,6 +2,7 @@
from __future__ import unicode_literals
+import django
from django.db import IntegrityError, models
from django.template.defaultfi... | Fix issue with corrupted trees and reversed sorting | py |
diff --git a/opentok/archives.py b/opentok/archives.py
index <HASH>..<HASH> 100644
--- a/opentok/archives.py
+++ b/opentok/archives.py
@@ -130,7 +130,7 @@ class Archive(object):
"""
Returns a dictionary of the archive's attributes.
"""
- return dict((k, v) for k, v in iteritems(self.__... | Fix syntax warning over comparison of literals using is. | py |
diff --git a/asteval/asteval.py b/asteval/asteval.py
index <HASH>..<HASH> 100644
--- a/asteval/asteval.py
+++ b/asteval/asteval.py
@@ -758,8 +758,8 @@ class Interpreter(object):
return func(*args, **keywords)
except Exception as ex:
self.raise_exception(
- node, msg="Er... | Give Procedure objects a __name__ attribute | py |
diff --git a/plenum/cli/constants.py b/plenum/cli/constants.py
index <HASH>..<HASH> 100644
--- a/plenum/cli/constants.py
+++ b/plenum/cli/constants.py
@@ -60,5 +60,5 @@ CLIENT_GRAMS_ADD_KEY_FORMATTED_REG_EX = getPipedRegEx(CLIENT_GRAMS_ADD_KEY_REG_E
CLIENT_GRAMS_NEW_KEYPAIR_FORMATTED_REG_EX = getPipedRegEx(CLIENT_GRAM... | fixed test of adding genesis transaction in cli | py |
diff --git a/tests/test_real_tweets.py b/tests/test_real_tweets.py
index <HASH>..<HASH> 100644
--- a/tests/test_real_tweets.py
+++ b/tests/test_real_tweets.py
@@ -38,6 +38,8 @@ TEST_CASES = [
('Iggy Pop (né Jim Osterberg)', 'Iggy Pop (né Jim Osterberg)'),
('eres mía, mía, mía, no te hagas la loca eso muy b... | add real test for mixed-encoding quotation marks | py |
diff --git a/backend/__8bit.py b/backend/__8bit.py
index <HASH>..<HASH> 100644
--- a/backend/__8bit.py
+++ b/backend/__8bit.py
@@ -319,6 +319,12 @@ def _divu8(ins):
output.append('ld h, %i' % int8(op2))
else:
if op2[0] == '_': # Optimization when 2nd operand is an id
+ if is_int(op1) a... | Optimization: DIV8 Both DIVI8 and DIVU8 optimized for constant 0 division | py |
diff --git a/photutils/utils/convolution.py b/photutils/utils/convolution.py
index <HASH>..<HASH> 100644
--- a/photutils/utils/convolution.py
+++ b/photutils/utils/convolution.py
@@ -4,6 +4,7 @@ import warnings
import numpy as np
from astropy.convolution import Kernel2D
+from astropy.units import Quantity
from ast... | Fix filter_data for data with units | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,6 +32,10 @@ setup(
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
+ "Programming Language :: Python :: 2.7",
+ "Progra... | Added explicit pypi trove classifiers for supported Python versions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ def read(fname):
return io.open(file_path, encoding='utf-8').read()
-version = '0.8.2'
+version = '0.8.3.dev0'
setuptools.setup( | Back to development: <I> | py |
diff --git a/buku.py b/buku.py
index <HASH>..<HASH> 100755
--- a/buku.py
+++ b/buku.py
@@ -2166,8 +2166,8 @@ def check_upstream_release():
try:
r = requests.get(
- 'https://api.github.com/repos/jarun/buku/tags?per_page=1',
- proxies=proxies
+ 'https:/... | Use correct endpoint to fetch the tag name of the latest release. | py |
diff --git a/linguist/mixins.py b/linguist/mixins.py
index <HASH>..<HASH> 100644
--- a/linguist/mixins.py
+++ b/linguist/mixins.py
@@ -25,12 +25,7 @@ if django.VERSION >= (1, 11):
yield obj
continue
- obj.clear_translations_cache()
-
- if obj.pk ... | DRY mixins iterator | py |
diff --git a/tests/100_compiler/002_compile.py b/tests/100_compiler/002_compile.py
index <HASH>..<HASH> 100644
--- a/tests/100_compiler/002_compile.py
+++ b/tests/100_compiler/002_compile.py
@@ -107,8 +107,8 @@ def test_002(compiler, temp_builds_dir):
"sources": [
"../app.scss"
],
- ... | Fixed compiler tests for changes about sourcemap since last libsass version | py |
diff --git a/webdriver_test_tools/project/initialize.py b/webdriver_test_tools/project/initialize.py
index <HASH>..<HASH> 100755
--- a/webdriver_test_tools/project/initialize.py
+++ b/webdriver_test_tools/project/initialize.py
@@ -251,7 +251,6 @@ def main(package_name=None):
if package_name is None:
print... | Removed old TODOs Removed TODOs about initialize.py input validation and output. If there's an error thrown, then the expectation is that execution stops and the error is printed. The package name validation should be enough, and the user is specifically asked to use a valid format despite the fact that invalid syntax... | py |
diff --git a/basic_cms/testproj/documents/models.py b/basic_cms/testproj/documents/models.py
index <HASH>..<HASH> 100644
--- a/basic_cms/testproj/documents/models.py
+++ b/basic_cms/testproj/documents/models.py
@@ -3,6 +3,7 @@ from django.forms import ModelForm
from basic_cms.models import Page
from django.utils.tran... | django <I> compatibility - well, at least tests started... to fail.. | py |
diff --git a/src/openaccess_epub/publisher/plos.py b/src/openaccess_epub/publisher/plos.py
index <HASH>..<HASH> 100644
--- a/src/openaccess_epub/publisher/plos.py
+++ b/src/openaccess_epub/publisher/plos.py
@@ -679,7 +679,7 @@ class PLoS(Publisher):
back = self.article.root.find('back')
if back is Non... | fixed the search for boxed texts | py |
diff --git a/indra/trips/processor.py b/indra/trips/processor.py
index <HASH>..<HASH> 100644
--- a/indra/trips/processor.py
+++ b/indra/trips/processor.py
@@ -165,6 +165,12 @@ class TripsProcessor(object):
self.statements.append(Transphosphorylation(agent_agent,
... | Implement dephosphorylation in TRIPS processor | py |
diff --git a/tasks/engines/fontforge/generate.py b/tasks/engines/fontforge/generate.py
index <HASH>..<HASH> 100644
--- a/tasks/engines/fontforge/generate.py
+++ b/tasks/engines/fontforge/generate.py
@@ -4,6 +4,7 @@ import fontforge
import os
import sys
import json
+import re
from subprocess import call
from distut... | Strip width and height attribute from SVG | py |
diff --git a/djstripe/models.py b/djstripe/models.py
index <HASH>..<HASH> 100644
--- a/djstripe/models.py
+++ b/djstripe/models.py
@@ -36,15 +36,21 @@ stripe.api_version = getattr(settings, "STRIPE_API_VERSION", "2012-11-07")
def convert_tstamp(response, field_name=None):
try:
if field_name and response[... | Update models.py, take into consideration settings.USE_TZ, in case its disabled sometimes USE_TZ = False on django settings, this crashes when using mysql | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -229,8 +229,14 @@ def run_setup(with_binary, test_xgboost, test_lightgbm, test_catboost, test_spar
extras_require=extras_require,
ext_modules=ext_modules,
classifiers=[
- 'Programming Lang... | MAINT update entry in setup.py | py |
diff --git a/proso_questions/management/commands/load_questions.py b/proso_questions/management/commands/load_questions.py
index <HASH>..<HASH> 100644
--- a/proso_questions/management/commands/load_questions.py
+++ b/proso_questions/management/commands/load_questions.py
@@ -145,7 +145,8 @@ class Command(BaseCommand):
... | cast to string only if category name is int | py |
diff --git a/tests/gui/debugging/notification_debugging.py b/tests/gui/debugging/notification_debugging.py
index <HASH>..<HASH> 100644
--- a/tests/gui/debugging/notification_debugging.py
+++ b/tests/gui/debugging/notification_debugging.py
@@ -47,10 +47,11 @@ def create_bigger_state_machine():
def patch_notifications()... | fix(notification_debugging): make sure that whole graph is created before it is shown | py |
diff --git a/astrobase/varclass/fakelcrecovery.py b/astrobase/varclass/fakelcrecovery.py
index <HASH>..<HASH> 100644
--- a/astrobase/varclass/fakelcrecovery.py
+++ b/astrobase/varclass/fakelcrecovery.py
@@ -253,10 +253,9 @@ def get_recovered_variables(simbasedir,
# run the variability search using the results of g... | fakelcrecovery: adding in results for grid-search per magcol | py |
diff --git a/pyad2usb/devices.py b/pyad2usb/devices.py
index <HASH>..<HASH> 100644
--- a/pyad2usb/devices.py
+++ b/pyad2usb/devices.py
@@ -38,7 +38,8 @@ class Device(object):
try:
self._device.read_line()
except util.CommError, err:
- self.stop()... | Read tweaks to support firmware upload. | py |
diff --git a/grimoire_elk/enriched/git.py b/grimoire_elk/enriched/git.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/git.py
+++ b/grimoire_elk/enriched/git.py
@@ -787,6 +787,12 @@ class GitEnrich(Enrich):
r = self.requests.post(self.elastic.index_url + "/_search?size=10000",
... | [demography] Catch conn exceptions when fetching author commits Patch to add a try..except block to catch connection exceptions when getting commits during the demography study. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from os import path
from distutils.version import LooseVersion
from setuptools import find_packages, setup
-VERSION = '1.16.1'
+VERSION = '1.17.0'
# Import README.md into long_description
pwd = path.abspat... | Bump package version to <I> | py |
diff --git a/python/thunder/utils/datasets.py b/python/thunder/utils/datasets.py
index <HASH>..<HASH> 100644
--- a/python/thunder/utils/datasets.py
+++ b/python/thunder/utils/datasets.py
@@ -171,7 +171,7 @@ class SourcesData(DataSets):
frame = zeros(dims)
for nn in range(0, n):
... | Treat coordinates as row/column | py |
diff --git a/tests/test_watch.py b/tests/test_watch.py
index <HASH>..<HASH> 100644
--- a/tests/test_watch.py
+++ b/tests/test_watch.py
@@ -49,6 +49,7 @@ def test_cli_can_watch_for_source_code_changes(start_cli):
# Then write another timestamp
write_loaded_at.send(filename)
broker.join(write_loaded_at.que... | chore: make watch test sleep more for Travis | py |
diff --git a/skyfield/timelib.py b/skyfield/timelib.py
index <HASH>..<HASH> 100644
--- a/skyfield/timelib.py
+++ b/skyfield/timelib.py
@@ -256,7 +256,7 @@ class Timescale(object):
"""
jd = _to_array(jd)
t = Time(self, jd, fraction - tdb_minus_tt(jd + fraction) / DAY_S)
- t.tdb_fraction... | Better approach for keeping TDB fraction precision | py |
diff --git a/lib/txml.py b/lib/txml.py
index <HASH>..<HASH> 100644
--- a/lib/txml.py
+++ b/lib/txml.py
@@ -70,7 +70,10 @@ class Entry(BaseXMLHandler):
if name == 'link':
del self.link
-class Feed(sux.XMLParser):
+class Parser(sux.XMLParser):
+
+ toplevel_tag = 'entry'
+ toplevel_type = Non... | Refactored XML parsing to allow for different object types. | py |
diff --git a/spyder/config/main.py b/spyder/config/main.py
index <HASH>..<HASH> 100644
--- a/spyder/config/main.py
+++ b/spyder/config/main.py
@@ -291,6 +291,7 @@ DEFAULTS = [
'show_hscrollbar': True,
'max_recent_projects': 10,
'visible_if_project_open': True,
+ ... | add option to hide the date column from projects | py |
diff --git a/bcbio/variation/coverage.py b/bcbio/variation/coverage.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/coverage.py
+++ b/bcbio/variation/coverage.py
@@ -237,9 +237,9 @@ def _summary_variants(in_file, out_file):
"""Parse GC and depth variant file
to be ready for multiqc.
"""
- dt =... | coverage QC: skip empty CG and depth rows Identify non float (CG) and integer (depth) values marked with "." and skip these for percentile calculations. | py |
diff --git a/thoth/solver/solvers/base.py b/thoth/solver/solvers/base.py
index <HASH>..<HASH> 100644
--- a/thoth/solver/solvers/base.py
+++ b/thoth/solver/solvers/base.py
@@ -265,7 +265,7 @@ class Solver(object):
for release in releases
if release in dep],... | Do not print matching solved packages on new line | py |
diff --git a/bigchaindb/core.py b/bigchaindb/core.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/core.py
+++ b/bigchaindb/core.py
@@ -1,5 +1,6 @@
import random
import math
+import operator
import rethinkdb as r
import rapidjson
@@ -493,14 +494,15 @@ class Bigchain(object):
"""
n_voters = len(bl... | count invalid votes as votes for invalid block | py |
diff --git a/crispy_forms/__init__.py b/crispy_forms/__init__.py
index <HASH>..<HASH> 100644
--- a/crispy_forms/__init__.py
+++ b/crispy_forms/__init__.py
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
-__version__ = '1.5.0'
+__version__ = '1.5.1' | updated version to try to force remote upgrade | py |
diff --git a/testapp/testapp/urls.py b/testapp/testapp/urls.py
index <HASH>..<HASH> 100644
--- a/testapp/testapp/urls.py
+++ b/testapp/testapp/urls.py
@@ -23,6 +23,11 @@ from django_afip import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(
+ r'^invoices/pdfdisplay/(?P<pk>\d+)$',
+ ... | Add PDFDisplay view to the test app | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ except:
sys.exit()
setup( name="osrframework",
- version="v0.9.0b",
+ version="v0.9.0a",
description="OSRFramework - A set of GPLv3+ OSINT tools developed by i3visio for online research.",... | Preparing data for first upload of <I>a | py |
diff --git a/identify/extensions.py b/identify/extensions.py
index <HASH>..<HASH> 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -45,6 +45,7 @@ EXTENSIONS = {
'eyaml': {'text', 'yaml'},
'feature': {'text', 'gherkin'},
'fish': {'text', 'fish'},
+ 'gd': {'text', 'gdscript'},
'g... | Add gd extension for GDScript from Godot | py |
diff --git a/python/ray/tests/test_dask_scheduler.py b/python/ray/tests/test_dask_scheduler.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_dask_scheduler.py
+++ b/python/ray/tests/test_dask_scheduler.py
@@ -35,7 +35,9 @@ def test_ray_dask_basic(ray_start_regular_shared):
def test_ray_dask_persist(ray_start... | [dask-on-ray] Fix Dask-on-Ray test: Python 3 dictionary .values() is a view, and is not indexable (#<I>) | py |
diff --git a/sigal/image.py b/sigal/image.py
index <HASH>..<HASH> 100644
--- a/sigal/image.py
+++ b/sigal/image.py
@@ -118,7 +118,13 @@ def generate_image(source, outname, settings, options=None):
logger.error('Wrong processor name: %s', settings['img_processor'])
sys.exit()
- process... | Resize portrait images to same size as landscape With the current approach images are resized along the width, which means images in portrait mode are substantially smaller than landscape images. This change resizes portrait images along the height so that they will cover the exact same area. | py |
diff --git a/GPy/core/parameterization/param.py b/GPy/core/parameterization/param.py
index <HASH>..<HASH> 100644
--- a/GPy/core/parameterization/param.py
+++ b/GPy/core/parameterization/param.py
@@ -90,12 +90,6 @@ class Param(OptimizationHandlable, ObsAr):
return self
@property
- def current_slice(se... | current_slice is not a property | py |
diff --git a/django_extensions/db/fields/__init__.py b/django_extensions/db/fields/__init__.py
index <HASH>..<HASH> 100644
--- a/django_extensions/db/fields/__init__.py
+++ b/django_extensions/db/fields/__init__.py
@@ -108,6 +108,13 @@ class AutoSlugField(UniqueFieldMixin, SlugField):
else:
self._... | check that any non-callable value passed to populate_from is a string type | py |
diff --git a/livetests.py b/livetests.py
index <HASH>..<HASH> 100755
--- a/livetests.py
+++ b/livetests.py
@@ -52,7 +52,7 @@ def _initialize(api):
@pytest.fixture(
- scope="module", params=["2.16.22", "3.0.13", "3.1.8", "3.2.3", "3.3.0-rc1"]
+ scope="module", params=["2.16.22", "3.0.13", "3.1.8", "3.2.3", "3... | Set the <I>-rc2 version in livetests | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -560,16 +560,14 @@ class ReqServer(object):
# add a job that caches grains and mine data every 30 seconds
self.fscache.add_job(
**{
- 'name'... | lint in master.py | py |
diff --git a/src/pyrocore/torrent/engine.py b/src/pyrocore/torrent/engine.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/torrent/engine.py
+++ b/src/pyrocore/torrent/engine.py
@@ -20,6 +20,7 @@
import re
import time
import operator
+from collections import defaultdict
from pyrocore import config, error
from p... | added group_by() method to torrent engine | py |
diff --git a/lib/ansiblelint/rules/__init__.py b/lib/ansiblelint/rules/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/rules/__init__.py
+++ b/lib/ansiblelint/rules/__init__.py
@@ -79,6 +79,14 @@ class AnsibleLintRule(object):
file['path'], self, message))
return match... | Allow returning line number in matchplay Currently it's not possible to set the line number ansible-lint should show when using matchplay. This can be a bit confusing since the line number could be very off in case of long blocks where the line number would point to the beginning of the block instead of the task that ... | py |
diff --git a/taggit_serializer/serializers.py b/taggit_serializer/serializers.py
index <HASH>..<HASH> 100644
--- a/taggit_serializer/serializers.py
+++ b/taggit_serializer/serializers.py
@@ -3,6 +3,7 @@ from rest_framework import serializers
class TagListSerializerField(serializers.ListField):
+ child = seriali... | feat(serializers): Added default child in TagListSerializerField | py |
diff --git a/tests/models/reading_comprehension/bidaf_test.py b/tests/models/reading_comprehension/bidaf_test.py
index <HASH>..<HASH> 100644
--- a/tests/models/reading_comprehension/bidaf_test.py
+++ b/tests/models/reading_comprehension/bidaf_test.py
@@ -48,7 +48,7 @@ class BidirectionalAttentionFlowTest(ModelTestCase)... | Increase tolerance to the default. (#<I>) | py |
diff --git a/fuel/datasets/mnist.py b/fuel/datasets/mnist.py
index <HASH>..<HASH> 100644
--- a/fuel/datasets/mnist.py
+++ b/fuel/datasets/mnist.py
@@ -6,12 +6,13 @@ import numpy
from fuel import config
from fuel.datasets import InMemoryDataset
+from fuel.datasets.base import do_not_pickle_properties
from fuel.sche... | Renamed lazy properties in MNIST | py |
diff --git a/tests/test_log_help.py b/tests/test_log_help.py
index <HASH>..<HASH> 100644
--- a/tests/test_log_help.py
+++ b/tests/test_log_help.py
@@ -1,11 +1,6 @@
-import os
-import tempfile
-
import wal_e.log_help
-def test_nonexisting_socket():
- td = tempfile.mkdtemp(prefix='wal_e_test')
-
+def test_nonexisti... | Use pytest tmpdir support | py |
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/tests/test_mainwindow.py
+++ b/spyder/app/tests/test_mainwindow.py
@@ -23,6 +23,28 @@ def main_window():
return widget
+def test_maximize_minimize_plugins(main_window, qtbot):
+ ... | Testing: Add a test to verify that maximizing/minimizing plugins is working as expected | py |
diff --git a/angr/analyses/cfg/cfg_base.py b/angr/analyses/cfg/cfg_base.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_base.py
+++ b/angr/analyses/cfg/cfg_base.py
@@ -8,7 +8,7 @@ import networkx
import pyvex
from claripy.utils.orderedset import OrderedSet
-from cle import ELF, PE, Blob, TLSObject, Exter... | Support detecting segments for MachO binaries in CFG recovery (#<I>) This commit closes #<I>. | py |
diff --git a/backtrader/broker.py b/backtrader/broker.py
index <HASH>..<HASH> 100644
--- a/backtrader/broker.py
+++ b/backtrader/broker.py
@@ -55,7 +55,7 @@ class BrokerBack(six.with_metaclass(MetaParams, object)):
return self.cash
def setcash(self, cash):
- self.startingcash = self.p.cash = cash... | Fixes #3 cash set even if the broker is not initialized | py |
diff --git a/datasette/utils.py b/datasette/utils.py
index <HASH>..<HASH> 100644
--- a/datasette/utils.py
+++ b/datasette/utils.py
@@ -219,6 +219,10 @@ def get_all_foreign_keys(conn):
for info in infos:
if info is not None:
id, seq, table_name, from_, to_, on_update, on_delete, ma... | Fixed weird edge-case with foreign key detection It turns out it is possible for a SQLite table to define a foreign key relationship to a table that does not actually exist We should still be able to handle these databases. | py |
diff --git a/cumulusci/tasks/salesforce/Deploy.py b/cumulusci/tasks/salesforce/Deploy.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/salesforce/Deploy.py
+++ b/cumulusci/tasks/salesforce/Deploy.py
@@ -1,3 +1,4 @@
+from future.utils import bytes_to_native_str
import base64
import os
import tempfile
@@ -55,8 +56... | fix sending processed package.xml | py |
diff --git a/hack/build-local-images.py b/hack/build-local-images.py
index <HASH>..<HASH> 100755
--- a/hack/build-local-images.py
+++ b/hack/build-local-images.py
@@ -104,6 +104,15 @@ image_config = {
".": "/var/lib/haproxy"
}
},
+ "keepalived-ipfailover": {
+ "directory": "ipfailov... | Add keepalived-ipfailover image support (#<I>) Add in the rules needed to build keepalived-ipfailover. | py |
diff --git a/tests/test_integration.py b/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -207,7 +207,7 @@ def exec_loop(kernel, mode, code, opts=None, user_inputs=None):
while True:
result = kernel.execute(
run_id,
- ... | tests: fix broken exec_loop for user input | py |
diff --git a/src/pyop/provider.py b/src/pyop/provider.py
index <HASH>..<HASH> 100644
--- a/src/pyop/provider.py
+++ b/src/pyop/provider.py
@@ -172,7 +172,7 @@ class Provider(object):
self.signing_key = signing_key
self.configuration_information = configuration_information
if 'subject_types_su... | Default to only support 'pairwise' subject identifier. | py |
diff --git a/SolrClient/transport/transportbase.py b/SolrClient/transport/transportbase.py
index <HASH>..<HASH> 100755
--- a/SolrClient/transport/transportbase.py
+++ b/SolrClient/transport/transportbase.py
@@ -28,7 +28,7 @@ class TransportBase(object):
if len(self._action_log) >= self._action_log_count:
... | fixed bad commit on _retry | py |
diff --git a/python/segyio/segy.py b/python/segyio/segy.py
index <HASH>..<HASH> 100644
--- a/python/segyio/segy.py
+++ b/python/segyio/segy.py
@@ -1038,7 +1038,7 @@ class SegyFile(object):
if index > self.ext_headers:
raise IndexError("Textual header %d not in file" % index)
- ... | Coerce the argument to f.text[0] = to bytes By coercing it to bytes, the case of assigning a non-string-like type will raise an exception, instead of silently passing unsafe buffers to the ebcdic <-> ascii converters. | py |
diff --git a/blockstack/lib/atlas.py b/blockstack/lib/atlas.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/atlas.py
+++ b/blockstack/lib/atlas.py
@@ -3589,7 +3589,7 @@ class AtlasZonefileCrawler( threading.Thread ):
log.debug("%s: missing %s unique zonefiles" % (self.hostport, len(zonefile_hashes)))
-... | check to stop crawling zonefiles on each zonefile hash considered, not each batch considered | py |
diff --git a/epub_clean/unit_tests_epub.py b/epub_clean/unit_tests_epub.py
index <HASH>..<HASH> 100644
--- a/epub_clean/unit_tests_epub.py
+++ b/epub_clean/unit_tests_epub.py
@@ -88,7 +88,7 @@ class TestEpub(unittest.TestCase):
for index, c in enumerate(self.chapter_list):
output_name = os.path.jo... | change to write from write_to_xhtml | py |
diff --git a/salt/utils/path.py b/salt/utils/path.py
index <HASH>..<HASH> 100644
--- a/salt/utils/path.py
+++ b/salt/utils/path.py
@@ -6,7 +6,10 @@ lack of support for reading NTFS links.
# Import python libs
from __future__ import absolute_import, print_function, unicode_literals
-import collections
+try:
+ fro... | Porting PR #<I> to <I> | py |
diff --git a/ugly/models.py b/ugly/models.py
index <HASH>..<HASH> 100644
--- a/ugly/models.py
+++ b/ugly/models.py
@@ -253,8 +253,8 @@ class Feed(db.Model):
# Loop over the entries.
for e in tree.entries:
# See if the entry already exists.
- entry = Entry.query.filter(Entry.fee... | id doesn't always exists | py |
diff --git a/gwpy/timeseries/statevector.py b/gwpy/timeseries/statevector.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/statevector.py
+++ b/gwpy/timeseries/statevector.py
@@ -124,7 +124,7 @@ class StateTimeSeries(TimeSeries):
defines the `known` segments, while the contiguous `True`
se... | StateVector: fixed missing imports | py |
diff --git a/moderator/admin.py b/moderator/admin.py
index <HASH>..<HASH> 100644
--- a/moderator/admin.py
+++ b/moderator/admin.py
@@ -74,7 +74,7 @@ class CommentAdmin(DjangoCommentsAdmin):
For proxy models with cls apptribute limit comments to those classified as cls.
"""
qs = super(CommentA... | only show comments not made by a staff user | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.