hash stringlengths 40 40 | diff stringlengths 131 26.7k | message stringlengths 7 694 | project stringlengths 5 67 | split stringclasses 1
value | diff_languages stringlengths 2 24 |
|---|---|---|---|---|---|
0ee2315e8cae44eeaee9bf64a47fe9640f577f27 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -63,13 +63,6 @@ class build_ext(_build_ext):
self.discount_configure_opts = DEFAULT_DISCOUNT_CONFIGURE_OPTS
def build_extension(self, ext):
-#TODO: put all the build_extension_discount here since this is discou... | Updated setup.py file. | trapeze_python-discount | train | py |
8c8a6da0c253aaea1c0241011982fd922b3c347e | diff --git a/lib/Loop/UvDriver.php b/lib/Loop/UvDriver.php
index <HASH>..<HASH> 100644
--- a/lib/Loop/UvDriver.php
+++ b/lib/Loop/UvDriver.php
@@ -14,7 +14,7 @@ class UvDriver extends Driver {
/** @var resource[] */
private $events = [];
- /** @var \Amp\Loop\Watcher[]|\Amp\Loop\Watcher[][] */
+ /** @v... | Invoke watcher callback if events is 0 or 4
4 is UV_DISCONNECT | amphp_amp | train | php |
2b515ab0bd90b75e8ed43b12895f45e2e3c1a414 | diff --git a/salt/crypt.py b/salt/crypt.py
index <HASH>..<HASH> 100644
--- a/salt/crypt.py
+++ b/salt/crypt.py
@@ -227,7 +227,7 @@ def sign_message(privkey_path, message, passphrase=None):
return key.sign(digest)
else:
signer = PKCS1_v1_5.new(key)
- return signer.sign(SHA.new(message))
+ ... | salt.crypt: Ensure message is encoded before signing
Conflicts:
- salt/crypt.py | saltstack_salt | train | py |
2e0f1afca926b14d03478f8445651edfecf555ee | diff --git a/packages/core/parcel/src/cli.js b/packages/core/parcel/src/cli.js
index <HASH>..<HASH> 100755
--- a/packages/core/parcel/src/cli.js
+++ b/packages/core/parcel/src/cli.js
@@ -179,11 +179,15 @@ async function run(entries: Array<string>, command: any) {
}
let Parcel = require('@parcel/core').default;
... | fix: use require.resolve when resolving default config (#<I>) | parcel-bundler_parcel | train | js |
ee738312be8413c7b4bfba13deb60df5b7960efb | diff --git a/tests/test_io.py b/tests/test_io.py
index <HASH>..<HASH> 100644
--- a/tests/test_io.py
+++ b/tests/test_io.py
@@ -12,6 +12,8 @@ from auditok.io import (
AudioIOError,
AudioParameterError,
BufferAudioSource,
+ RawAudioSource,
+ WaveAudioSource,
check_audio_data,
_guess_audio_f... | Add tests for from_file with large_file=True | amsehili_auditok | train | py |
e3df1a5894d1e67800c3794498421be055d9ac93 | diff --git a/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java b/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java
index <HASH>..<HASH> 100644
--- a/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java
+++ b/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.ja... | Don't request to change locations if we're already there.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@<I> <I>f4-<I>e9-<I>-aa3c-eee0fc<I>fb1 | threerings_narya | train | java |
2de9c657e68c86cfeb4af10a049c5724dc938638 | diff --git a/resolwe/flow/executors/docker/run.py b/resolwe/flow/executors/docker/run.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/executors/docker/run.py
+++ b/resolwe/flow/executors/docker/run.py
@@ -312,7 +312,7 @@ class FlowExecutor(LocalFlowExecutor):
environment["LISTENER_IP"] = "host.docker.int... | Auto-remove finished docker containers | genialis_resolwe | train | py |
a157f3ac44273a04c559d43f3cb7bb83947ff0aa | diff --git a/core/src/test/java/org/kohsuke/stapler/framework/io/LargeTextTest.java b/core/src/test/java/org/kohsuke/stapler/framework/io/LargeTextTest.java
index <HASH>..<HASH> 100644
--- a/core/src/test/java/org/kohsuke/stapler/framework/io/LargeTextTest.java
+++ b/core/src/test/java/org/kohsuke/stapler/framework/io/... | remove @Ignore that should not have been added | stapler_stapler | train | java |
272fd716d636946cf7e17704730f364829e275da | diff --git a/views/js/qtiItem/core/Container.js b/views/js/qtiItem/core/Container.js
index <HASH>..<HASH> 100755
--- a/views/js/qtiItem/core/Container.js
+++ b/views/js/qtiItem/core/Container.js
@@ -156,7 +156,7 @@ define(['taoQtiItem/qtiItem/core/Element', 'lodash', 'jquery', 'taoQtiItem/qtiIt
if(this.e... | fixed issue : interaction removal does not remove its response
git-svn-id: <URL> | oat-sa_extension-tao-itemqti | train | js |
3499d319574a07211f193c7ef0c7626d6f096926 | diff --git a/lib/anyplayer/players/itunes_mac.rb b/lib/anyplayer/players/itunes_mac.rb
index <HASH>..<HASH> 100644
--- a/lib/anyplayer/players/itunes_mac.rb
+++ b/lib/anyplayer/players/itunes_mac.rb
@@ -1,4 +1,12 @@
class Anyplayer::ItunesMac < Anyplayer::Player
+ def play
+ itunes 'play'
+ end
+
+ def pause
+ ... | iTunes Mac now can play or pause independently | sunny_anyplayer | train | rb |
8e10b85d4ac097631d4a77d158b61a6c4b531fec | diff --git a/garlic.rb b/garlic.rb
index <HASH>..<HASH> 100644
--- a/garlic.rb
+++ b/garlic.rb
@@ -24,7 +24,7 @@ garlic do
run do
cd "vendor/plugins/response_for" do
- sh "rake spec:rcov:verify"
+ sh "rake spec"
end
end
end | Dropping coverage verification from garlic as it's different across the different targets (because of BC code) | ianwhite_response_for | train | rb |
66452a58de50e64258859b3b54a6ddb31c8c9e29 | diff --git a/epylint.py b/epylint.py
index <HASH>..<HASH> 100755
--- a/epylint.py
+++ b/epylint.py
@@ -58,7 +58,7 @@ def lint(filename):
parentPath = os.path.dirname(parentPath)
# Start pylint
- process = Popen("pylint -f parseable -r n --disable=C,R,I '%s'" %
+ process = Popen('pylint -f parseabl... | apply patch provided by vijayendra bapte on the python projects list for using epylint under windows environment | PyCQA_pylint | train | py |
724bb40e68e466b42650012f2a1851706c4da566 | diff --git a/lib/any.js b/lib/any.js
index <HASH>..<HASH> 100644
--- a/lib/any.js
+++ b/lib/any.js
@@ -182,7 +182,7 @@ class Collector {
if (this.one) {
// Shouldn’t happen, safeguards performance problems.
/* c8 ignore next */
- if (this.found) throw new Error('Cannot collect multiple nodes')
+... | Fix exception on selector list in `select` | syntax-tree_hast-util-select | train | js,js |
bc20b3e92227d3c8afa99776070788a29aba0510 | diff --git a/src/org/opencms/ade/contenteditor/shared/CmsContentDefinition.java b/src/org/opencms/ade/contenteditor/shared/CmsContentDefinition.java
index <HASH>..<HASH> 100644
--- a/src/org/opencms/ade/contenteditor/shared/CmsContentDefinition.java
+++ b/src/org/opencms/ade/contenteditor/shared/CmsContentDefinition.ja... | Fixing issue where nested value could not be read by path. | alkacon_opencms-core | train | java |
ac9d4b6616e07f6fc7de697bed3186c4770bf504 | diff --git a/structr-core/src/main/java/org/structr/core/entity/Principal.java b/structr-core/src/main/java/org/structr/core/entity/Principal.java
index <HASH>..<HASH> 100644
--- a/structr-core/src/main/java/org/structr/core/entity/Principal.java
+++ b/structr-core/src/main/java/org/structr/core/entity/Principal.java
@... | Removes uniqueness constraint on name property of class Principal. | structr_structr | train | java |
bef5fd6ed4dc1c96aa8823aee4ea2b97c796033b | diff --git a/lib/vagrant-vcloudair/driver/meta.rb b/lib/vagrant-vcloudair/driver/meta.rb
index <HASH>..<HASH> 100644
--- a/lib/vagrant-vcloudair/driver/meta.rb
+++ b/lib/vagrant-vcloudair/driver/meta.rb
@@ -124,10 +124,11 @@ module VagrantPlugins
# Instantiate the proper version driver for vCloud Air
... | Add API version <I> to driver map | frapposelli_vagrant-vcloudair | train | rb |
49e5efdaf871761d78c5247844a8a23c9515be33 | diff --git a/lib/utils/pathRegex.js b/lib/utils/pathRegex.js
index <HASH>..<HASH> 100644
--- a/lib/utils/pathRegex.js
+++ b/lib/utils/pathRegex.js
@@ -34,7 +34,12 @@ class PathRegexp {
};
let m = this.regexp.exec(path);
- if (!m) return result;
+ if (!m) {
+ if (path... | Fix bug in case of empty param in url ex: /api//test for /api/:name/test :name could be empty. | BenoitClaveau_qwebs | train | js |
576bc0d2960856280041634994b2c77c8f4b1a5f | diff --git a/plugins/snmppinfo/class.snmppinfo.inc.php b/plugins/snmppinfo/class.snmppinfo.inc.php
index <HASH>..<HASH> 100644
--- a/plugins/snmppinfo/class.snmppinfo.inc.php
+++ b/plugins/snmppinfo/class.snmppinfo.inc.php
@@ -81,7 +81,9 @@ class SNMPPInfo extends PSI_Plugin
}
... | reduce retry for offline printer to reduce load time and avoid timeout | phpsysinfo_phpsysinfo | train | php |
90ab8b635974c244f89575c2688d93dae1d7b493 | diff --git a/openquake/commonlib/calc.py b/openquake/commonlib/calc.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/calc.py
+++ b/openquake/commonlib/calc.py
@@ -218,10 +218,9 @@ class PmapGetter(object):
if len(self.weights) == 1: # one realization
return self.get(self.sids, 0, grp)
... | Fixed get_mean to dynamically recompute the mean [skip hazardlib] | gem_oq-engine | train | py |
eb6fc17e0d16240e359034e2478f9b9b7d35a702 | diff --git a/nhlib/gsim/chiou_youngs_2008.py b/nhlib/gsim/chiou_youngs_2008.py
index <HASH>..<HASH> 100644
--- a/nhlib/gsim/chiou_youngs_2008.py
+++ b/nhlib/gsim/chiou_youngs_2008.py
@@ -74,7 +74,7 @@ class ChiouYoungs2008(GMPE):
stddev_types, component_type):
"""
See :me... | gsim/chiou_youngs_<I> [doc]: fixed a typo in get_mean_and_stddevs() | gem_oq-engine | train | py |
ee23bdf0a044fe1bb2378f77e21181fe2d39b07f | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ def get_readme():
setup(
name="docx2html",
- version="0.0.10",
+ version="0.1.0",
description="docx (OOXML) to html converter",
author="Jason Ward",
author_email="jason.louard.ward@g... | Bumped to version <I> | PolicyStat_docx2html | train | py |
76bb8e34b2e540e66e0cfb423b10f45c24d355f1 | diff --git a/Controller/Widget/SimpleTextController.php b/Controller/Widget/SimpleTextController.php
index <HASH>..<HASH> 100644
--- a/Controller/Widget/SimpleTextController.php
+++ b/Controller/Widget/SimpleTextController.php
@@ -31,12 +31,15 @@ class SimpleTextController extends Controller
$form->bind($this->... | Fixed bug when submitting empty content at the first config of SimpleText widget | claroline_CoreBundle | train | php |
a876de5a82b8a60ccd3e83563b5f3b7064db14b8 | diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index <HASH>..<HASH> 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -7,7 +7,7 @@ require 'fileutils'
dir_config 'libyaml'
-if enable_config("bundled-libyaml", false) || !(find_header('yaml.h') && find_library('yaml', 'yaml_get_version'))
+if... | Added condition for macOS homebrew | ruby_psych | train | rb |
c0f09544e532c3f61c07c9ddd57cb9ade3088ae8 | diff --git a/checkers/classes.py b/checkers/classes.py
index <HASH>..<HASH> 100644
--- a/checkers/classes.py
+++ b/checkers/classes.py
@@ -585,6 +585,8 @@ a metaclass class method.'}
return
slots = klass.slots()
+ if slots is None:
+ return
# If any... | Check the return value of slots, it can be None. | PyCQA_pylint | train | py |
6e34547c1181f874b23621ea07c20d16c0e7779c | diff --git a/src/main/java/io/vlingo/actors/testkit/TestEnvironment.java b/src/main/java/io/vlingo/actors/testkit/TestEnvironment.java
index <HASH>..<HASH> 100644
--- a/src/main/java/io/vlingo/actors/testkit/TestEnvironment.java
+++ b/src/main/java/io/vlingo/actors/testkit/TestEnvironment.java
@@ -15,12 +15,12 @@ impor... | Refactored to make current TestWorld ThreadLocal to enable parallel tests. | vlingo_vlingo-actors | train | java |
9284baffb0f862c445becb02e0e47a595800d482 | diff --git a/lib/views/cpu-view.js b/lib/views/cpu-view.js
index <HASH>..<HASH> 100644
--- a/lib/views/cpu-view.js
+++ b/lib/views/cpu-view.js
@@ -43,7 +43,7 @@ class CpuView {
}
onEvent(data) {
- this.line.setLabel(` cpu utilization (${data.cpu.utilization}%) `);
+ this.line.setLabel(` cpu utilization ($... | Round cpu percentage to nearest decimal. | FormidableLabs_nodejs-dashboard | train | js |
142dff12942ea0608a0b3f62cabc2243d2807a6b | diff --git a/src/com/google/javascript/jscomp/Compiler.java b/src/com/google/javascript/jscomp/Compiler.java
index <HASH>..<HASH> 100644
--- a/src/com/google/javascript/jscomp/Compiler.java
+++ b/src/com/google/javascript/jscomp/Compiler.java
@@ -560,7 +560,7 @@ public class Compiler extends AbstractCompiler implements... | Make the Compiler's initBasedOnOptions() method public in order to allow non-standard Compiler flows to use the applyInputSourceMaps option.
-------------
Created by MOE: <URL> | google_closure-compiler | train | java |
352cf1db61aefd159554e210f44a2e3a38ced51d | diff --git a/tests/Routing/RouteTest.php b/tests/Routing/RouteTest.php
index <HASH>..<HASH> 100644
--- a/tests/Routing/RouteTest.php
+++ b/tests/Routing/RouteTest.php
@@ -419,7 +419,7 @@ class RouteTest extends TestCase
$responseProphecy = $this->prophesize(ResponseInterface::class);
$callableResolver... | Rename test callable to make it clear that Callable:toCall is not expected to be called | slimphp_Slim | train | php |
4a0a3bf2eb3acacf134f1825bbc4889fd1bbac3a | diff --git a/ezp/Persistence/Content/CreateStruct.php b/ezp/Persistence/Content/CreateStruct.php
index <HASH>..<HASH> 100644
--- a/ezp/Persistence/Content/CreateStruct.php
+++ b/ezp/Persistence/Content/CreateStruct.php
@@ -67,8 +67,7 @@ class CreateStruct extends ValueObject
public $remoteId;
/**
- * T... | PHPDoc: Sync doc from Content to CreateStruct | ezsystems_ezpublish-kernel | train | php |
8af8ed816dc9ed3a7f53a999273d81236a89cc9d | diff --git a/lib/boom/platform.rb b/lib/boom/platform.rb
index <HASH>..<HASH> 100644
--- a/lib/boom/platform.rb
+++ b/lib/boom/platform.rb
@@ -75,10 +75,12 @@ module Boom
#
# Returns the String value of the Item.
def copy(item)
+ value = item.value.gsub("\'","\\'")
unless windows?
-... | Percent signs should be escaped for `printf`
This is relevant to non-Windows environments. Closes #<I>. | holman_boom | train | rb,rb |
ea867cd199f96080648cf19992708fccf7f1b6d8 | diff --git a/pysparkling/sql/casts.py b/pysparkling/sql/casts.py
index <HASH>..<HASH> 100644
--- a/pysparkling/sql/casts.py
+++ b/pysparkling/sql/casts.py
@@ -6,7 +6,8 @@ from functools import lru_cache
import pytz
from dateutil.tz import tzlocal
-from pysparkling.sql.types import TimestampType, DateType, StringTyp... | Implement a cast of nested types | svenkreiss_pysparkling | train | py |
8eb7561ac6e8f020ec09608532de310c6b0b8dcd | diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb
index <HASH>..<HASH> 100644
--- a/activerecord/lib/active_record/attribute_methods.rb
+++ b/activerecord/lib/active_record/attribute_methods.rb
@@ -8,7 +8,7 @@ module ActiveRecord
include ActiveMo... | initialize generated modules on inclusion and on inheritence | rails_rails | train | rb,rb |
77e7bea7d8382d2df77877769ba284f59f29367e | diff --git a/lib/connection.js b/lib/connection.js
index <HASH>..<HASH> 100644
--- a/lib/connection.js
+++ b/lib/connection.js
@@ -44,7 +44,7 @@ function escapeCQL(val)
return 'NULL';
if (Buffer.isBuffer(val))
return val.toString('hex');
- if (isFinite(val))
+ if (typeof val == 'number' || ... | `escapeCQL`: Avoid serializing numeric strings as numbers. | lyveminds_scamandrios | train | js |
510f20048b7cf6bb403186842b7e58a6514c4610 | diff --git a/render/form/Foreignkey.php b/render/form/Foreignkey.php
index <HASH>..<HASH> 100644
--- a/render/form/Foreignkey.php
+++ b/render/form/Foreignkey.php
@@ -49,7 +49,7 @@ class Foreignkey extends Text
foreach ($parts as &$part) {
$part = ucfirst($part);
}
- $class = $name... | ehm, that should be an underscore, not a slash | monomelodies_monad | train | php |
771b1cbfa4a135f4f4c447f5c091d4f67d9c5885 | diff --git a/src/test/java/com/github/chen0040/gp/treegp/program/TerminalUnitTest.java b/src/test/java/com/github/chen0040/gp/treegp/program/TerminalUnitTest.java
index <HASH>..<HASH> 100644
--- a/src/test/java/com/github/chen0040/gp/treegp/program/TerminalUnitTest.java
+++ b/src/test/java/com/github/chen0040/gp/treegp... | Increase the code coverage for the terminal class | chen0040_java-genetic-programming | train | java |
10b2074d0d6bf97ef384c63e2ebb9680aafe11dd | diff --git a/pkg/datapath/linux/linux_defaults/linux_defaults.go b/pkg/datapath/linux/linux_defaults/linux_defaults.go
index <HASH>..<HASH> 100644
--- a/pkg/datapath/linux/linux_defaults/linux_defaults.go
+++ b/pkg/datapath/linux/linux_defaults/linux_defaults.go
@@ -23,6 +23,12 @@ const (
// RouteTableIPSec is the de... | linux_defaults: Add RouteTableInterfacesOffset
[ upstream commit e<I>b; forward-ported from <I> tree ]
This new value is the table ID for the per-ENI routing tables in the new
ENI datapath. Upcoming commits will use this value and implement the new
datapath.
See <URL> | cilium_cilium | train | go |
c7e4159780e7f58a134340ca93fdf212045ed390 | diff --git a/salt/modules/boto_vpc.py b/salt/modules/boto_vpc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/boto_vpc.py
+++ b/salt/modules/boto_vpc.py
@@ -1421,11 +1421,11 @@ def delete_nat_gateway(nat_gateway_id,
# wait for deleting nat gateway to finish prior to attempt to release elastic ips
if... | fixed a bug in retry mechanism. | saltstack_salt | train | py |
6d8d6a86f0354caa3b328a0554a53bdc830a790e | diff --git a/.buildkite/pipeline.py b/.buildkite/pipeline.py
index <HASH>..<HASH> 100644
--- a/.buildkite/pipeline.py
+++ b/.buildkite/pipeline.py
@@ -18,7 +18,7 @@ TOX_MAP = {
}
# https://github.com/dagster-io/dagster/issues/1662
-DO_COVERAGE = True
+DO_COVERAGE = False
def wait_step(): | Turn off coveralls
Summary: It's down
Test Plan: BK
Reviewers: alangenfeld
Reviewed By: alangenfeld
Differential Revision: <URL> | dagster-io_dagster | train | py |
2bc9d8098eab435aedfc04e0e6c33d124a14916e | diff --git a/soupsieve/__meta__.py b/soupsieve/__meta__.py
index <HASH>..<HASH> 100644
--- a/soupsieve/__meta__.py
+++ b/soupsieve/__meta__.py
@@ -186,5 +186,5 @@ def parse_version(ver, pre=False):
return Version(major, minor, micro, release, pre, post, dev)
-__version_info__ = Version(1, 0, 2, "final")
+__ver... | Use dev version for dev branch | facelessuser_soupsieve | train | py |
4ca0729caf000db2e7a1c23a86c12487fb20e5af | diff --git a/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java b/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java
index <HASH>..<HASH> 100644
--- a/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java
+++ b/s... | fix script error with extra paren left in | ios-driver_ios-driver | train | java |
739d4731fb82c69d662afdc0b3a0cf38f031922c | diff --git a/underscore.util.operators.js b/underscore.util.operators.js
index <HASH>..<HASH> 100644
--- a/underscore.util.operators.js
+++ b/underscore.util.operators.js
@@ -29,14 +29,38 @@
mod: function(x, y) {
return x % y;
},
- inc: function(x, y) {
+ inc: function(x) {
return ++x;
... | added equality operators, some may be redundant since underscore supports deep equality. | documentcloud_underscore-contrib | train | js |
c117ba8ebde27f535522506aaf66df2e44fb8651 | diff --git a/gntp/shim.py b/gntp/shim.py
index <HASH>..<HASH> 100644
--- a/gntp/shim.py
+++ b/gntp/shim.py
@@ -1,3 +1,10 @@
+"""
+Python2.5 and Python3.3 compatibility shim
+
+Heavily inspirted by the "six" library.
+https://pypi.python.org/pypi/six
+"""
+
import sys
PY3 = sys.version_info[0] == 3
@@ -13,9 +20,7 @@... | Cleanup and docs for our shim | kfdm_gntp | train | py |
691d3ce54d20d0cfeb8c0a8764814922ddc6448b | diff --git a/findbugsTestCases/src/java/npe/ErrorInFinallyClause.java b/findbugsTestCases/src/java/npe/ErrorInFinallyClause.java
index <HASH>..<HASH> 100644
--- a/findbugsTestCases/src/java/npe/ErrorInFinallyClause.java
+++ b/findbugsTestCases/src/java/npe/ErrorInFinallyClause.java
@@ -21,7 +21,7 @@ public class ErrorI... | actually, we should report medium priority NP warnings for both of these
git-svn-id: <URL> | spotbugs_spotbugs | train | java |
9754a0842aabdfbf2b1ba1797cda0a20699d9aca | diff --git a/lib/ApiRequest.js b/lib/ApiRequest.js
index <HASH>..<HASH> 100644
--- a/lib/ApiRequest.js
+++ b/lib/ApiRequest.js
@@ -8,7 +8,7 @@ var rest = require('restling');
var nconf = require('nconf');
var Q = require('q');
-var API = 'https://api.uber.com/v1/';
+var API = 'https://sandbox-api.uber.com/v1/';
va... | Explicitly using application/json for POSTs. | mjk_uber-rush | train | js |
38317d2cd99683dc920c8e64f81bf06abf25b281 | diff --git a/lib/rspec/requestable-examples.rb b/lib/rspec/requestable-examples.rb
index <HASH>..<HASH> 100644
--- a/lib/rspec/requestable-examples.rb
+++ b/lib/rspec/requestable-examples.rb
@@ -12,6 +12,10 @@ module RSpec
end
end
+ def examples_that_can_be_requested
+ @examples_that_can_be_re... | Adding #verify_requested_examples! which can be run at the end of any shared_examples block that uses requested examples. This will report any requested examples that do not exist (perhaps from typos or wording differences). | mhs_rspec-requestable-examples | train | rb |
b93be9d7a247b044f16b1622f589c1be2eaf223f | diff --git a/components/auth/auth.js b/components/auth/auth.js
index <HASH>..<HASH> 100644
--- a/components/auth/auth.js
+++ b/components/auth/auth.js
@@ -569,12 +569,12 @@ export default class Auth {
* if user is logged in or log her in otherwise
*/
async login() {
- await this._checkBackendsStatusesIfEn... | RG-<I> RG-<I> check backend statuses only if logging in without window login enabled: otherwise it causes blocked popup | JetBrains_ring-ui | train | js |
fffd223f90f4c4cacb041a602c5cafcac68b0da2 | diff --git a/lib/terraforming/cli.rb b/lib/terraforming/cli.rb
index <HASH>..<HASH> 100644
--- a/lib/terraforming/cli.rb
+++ b/lib/terraforming/cli.rb
@@ -43,6 +43,11 @@ module Terraforming
execute(Terraforming::Resource::IAMGroup, options)
end
+ desc "iamgm", "IAM Group Membership"
+ def iamgm
+ ... | Define CLI command iamgm for IAM Group Membership | dtan4_terraforming | train | rb,rb |
081f632daf9e598b818c1f07b7a069082685f38b | diff --git a/lib/active_admin/views/components/active_admin_form.rb b/lib/active_admin/views/components/active_admin_form.rb
index <HASH>..<HASH> 100644
--- a/lib/active_admin/views/components/active_admin_form.rb
+++ b/lib/active_admin/views/components/active_admin_form.rb
@@ -78,7 +78,7 @@ module ActiveAdmin
e... | Delegate to `helpers` instead of relying on `method_missing` | activeadmin_activeadmin | train | rb |
f1130b9833f477ae4fb050ea87a08e20f127435c | diff --git a/js/browser.js b/js/browser.js
index <HASH>..<HASH> 100755
--- a/js/browser.js
+++ b/js/browser.js
@@ -728,7 +728,7 @@ var igv = (function (igv) {
start = r[searchConfig.startField] - searchConfig.coords;
end = r[searchConfig.endField];
... | bug in call to "handleSearchResult" -- affects gtex | igvteam_igv.js | train | js |
6c3931cacb5d203a926217792634bfe61e0fb7f6 | diff --git a/source/test/common/test_data_ports.py b/source/test/common/test_data_ports.py
index <HASH>..<HASH> 100644
--- a/source/test/common/test_data_ports.py
+++ b/source/test/common/test_data_ports.py
@@ -87,6 +87,9 @@ def test_unique_port_names():
state.add_output_data_port("in", "int", 0)
state.add_in... | Extend tests to assert correct port count | DLR-RM_RAFCON | train | py |
3211b7ee3739c880077e15e7cc10a981467855f9 | diff --git a/torchvision/transforms.py b/torchvision/transforms.py
index <HASH>..<HASH> 100644
--- a/torchvision/transforms.py
+++ b/torchvision/transforms.py
@@ -204,7 +204,7 @@ class CenterCrop(object):
Args:
size (sequence or int): Desired output size of the crop. If size is an
- int inste... | Fix docs for CenterCrop and RandomCrop (#<I>)
Wrong order of dimensions In transforms.CenterCrop and transforms.RandomCrop:
Documentation says it should be (w, h), but it actually is (h, w).
Fixing docs to match the code | pytorch_vision | train | py |
5391524fc75aa9615fa2cb93f96a37b970d7dac9 | diff --git a/test/test_string.rb b/test/test_string.rb
index <HASH>..<HASH> 100644
--- a/test/test_string.rb
+++ b/test/test_string.rb
@@ -136,4 +136,9 @@ XML
CFPropertyList::List.parsers = orig_parsers
end
+ def test_data_string_is_blob
+ assert_equal parsed_binary('string_binary_data').class, CFProperty... | added a test for #<I>/#<I> | ckruse_CFPropertyList | train | rb |
0b4d21d4c4de55133bd4b55cf39126958e0dd105 | diff --git a/src/Condition/In.php b/src/Condition/In.php
index <HASH>..<HASH> 100644
--- a/src/Condition/In.php
+++ b/src/Condition/In.php
@@ -43,7 +43,7 @@ class In extends AbstractSpecification
*
* @return string
*/
- protected function generateParameterName(QueryBuilder $queryBuilder)
+ priva... | method should be private because it is overriden | rikbruil_Doctrine-Specification | train | php |
824dbedddac967c3ba779dba84118b15e3502e91 | diff --git a/tests/src/main/java/com/hazelcast/simulator/tests/icache/CreateDestroyICacheTest.java b/tests/src/main/java/com/hazelcast/simulator/tests/icache/CreateDestroyICacheTest.java
index <HASH>..<HASH> 100644
--- a/tests/src/main/java/com/hazelcast/simulator/tests/icache/CreateDestroyICacheTest.java
+++ b/tests/s... | Removed unused import in CreateDestroyICacheTest. | hazelcast_hazelcast-simulator | train | java |
cbb1446d163196d3715637cdaeceb968c0686375 | diff --git a/types/options.go b/types/options.go
index <HASH>..<HASH> 100644
--- a/types/options.go
+++ b/types/options.go
@@ -230,7 +230,11 @@ func getRootlessStorageOpts(rootlessUID int, systemOpts StoreOptions) (StoreOpti
opts.GraphDriverName = overlayDriver
}
- if opts.GraphDriverName == overlayDriver {
+ //... | options: copy all options on explicit config file
when the configuration file was explicitly specified, all the graph
drivers options are copied, not only the ones allowed for rootless.
Closes: <URL> | containers_storage | train | go |
89c9345e36591a87df654a08333eb20fb48984f8 | diff --git a/poseidon/tests/test_api.py b/poseidon/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/poseidon/tests/test_api.py
+++ b/poseidon/tests/test_api.py
@@ -46,8 +46,9 @@ def test_regions(client):
assert hasattr(client, 'regions')
assert isinstance(client.regions, P.Regions)
regions = client.re... | TST: update unit test for new region NYC3 | changhiskhan_poseidon | train | py |
17c6a11dd0f7d834aa76b1703185adf9cae1b8a9 | diff --git a/app/Statistics/Service/CountryService.php b/app/Statistics/Service/CountryService.php
index <HASH>..<HASH> 100644
--- a/app/Statistics/Service/CountryService.php
+++ b/app/Statistics/Service/CountryService.php
@@ -555,6 +555,7 @@ class CountryService
public function iso3166(): array
{
re... | Fix: GBR shown as England on distribution charts | fisharebest_webtrees | train | php |
c9c088cdd2577376ffa8a2fccb586eb959e79531 | diff --git a/bolt/org_config.go b/bolt/org_config.go
index <HASH>..<HASH> 100644
--- a/bolt/org_config.go
+++ b/bolt/org_config.go
@@ -67,15 +67,15 @@ func (s *OrganizationConfigStore) FindOrCreate(ctx context.Context, orgID string
// Update replaces the OrganizationConfig in the store
func (s *OrganizationConfigSt... | Move nil config guard to helper update method | influxdata_influxdb | train | go |
9a4b3f8abbf641312b0808728a73c79940e9051a | diff --git a/src/main/java/com/github/uderscore/_.java b/src/main/java/com/github/uderscore/_.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/github/uderscore/_.java
+++ b/src/main/java/com/github/uderscore/_.java
@@ -414,8 +414,7 @@ public final class _ {
}
public static <E> List<E> shuffle(final ... | Added test for the shuffle | javadev_underscore-java | train | java,java |
b1ee49de8c80ea72acf019315d3dffc0ce6e06ff | diff --git a/deprecated.go b/deprecated.go
index <HASH>..<HASH> 100644
--- a/deprecated.go
+++ b/deprecated.go
@@ -15,7 +15,7 @@ import (
func (c *Context) BindWith(obj interface{}, b binding.Binding) error {
log.Println(`BindWith(\"interface{}, binding.Binding\") error is going to
be deprecated, please check issu... | fix typo (#<I>) | gin-gonic_gin | train | go |
effff490ba4a30ecc5a5f353cab14cbc2e44ff14 | diff --git a/lib/chore/cli.rb b/lib/chore/cli.rb
index <HASH>..<HASH> 100644
--- a/lib/chore/cli.rb
+++ b/lib/chore/cli.rb
@@ -89,7 +89,7 @@ module Chore
register_option 'aws_secret_key', '--aws-secret-key KEY', 'Valid AWS Secret Key'
- register_option 'num_workers', '--concurrency NUM', 'Number of work... | Make sure we convert this to an integer, otherwise things don't work so
good. | Tapjoy_chore | train | rb |
41a22db8260a96d2bd3ccb70c77cd6c127a13f61 | diff --git a/raja.js b/raja.js
index <HASH>..<HASH> 100644
--- a/raja.js
+++ b/raja.js
@@ -27,8 +27,9 @@ Raja.prototype.updateLink = function(resource, mtime) {
link = document.createElement('link');
link.rel = "resource";
link.href = resource.url;
- document.head.appendChild(link);
- document.head.appendChi... | Keep a newline after a <link> | kapouer_raja | train | js |
03a2a3513ea7fb026dab40316d4dcf046af5c75e | diff --git a/webapps/ui/cockpit/plugins/base/app/views/processInstance/jobRetryBulkDialog.js b/webapps/ui/cockpit/plugins/base/app/views/processInstance/jobRetryBulkDialog.js
index <HASH>..<HASH> 100644
--- a/webapps/ui/cockpit/plugins/base/app/views/processInstance/jobRetryBulkDialog.js
+++ b/webapps/ui/cockpit/plugin... | fix(cockpit): show error message in "Increment Number of Retries" modal dialog
related to CAM-<I> | camunda_camunda-bpm-platform | train | js |
700521b2028b95266d95abf87a3539b59f10c201 | diff --git a/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java b/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java
index <HASH>..<HASH> 100644
--- a/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/... | [Misc] Fix error-reporting bug thanks to LGTM | xwiki_xwiki-commons | train | java |
ac18ec30ea7b34d3a6880dd3996867ae288a9ca5 | diff --git a/src/Behat/Gherkin/Dumper.php b/src/Behat/Gherkin/Dumper.php
index <HASH>..<HASH> 100644
--- a/src/Behat/Gherkin/Dumper.php
+++ b/src/Behat/Gherkin/Dumper.php
@@ -13,7 +13,7 @@ use Behat\Gherkin\Exception\Exception,
/*
* This file is part of the Behat Gherkin.
- * (c) 2011 Konstantin Kudryashov <ever.z... | copyrights, indent... | Behat_Gherkin | train | php |
9dad1d00a52ac6c308766a86257b8d3461d9af07 | diff --git a/client/js/util.js b/client/js/util.js
index <HASH>..<HASH> 100644
--- a/client/js/util.js
+++ b/client/js/util.js
@@ -1,4 +1,4 @@
-/*globals window, navigator, document, FormData, File, HTMLInputElement, XMLHttpRequest, Blob*/
+/*globals window, navigator, document, FormData, File, HTMLInputElement, XMLHtt... | fix(util.js): fix qq-each path detection for IE7 | FineUploader_fine-uploader | train | js |
d68b8e4524fd03d35333dfdcadc3fbd071be3ebd | diff --git a/fusesoc/simulator/verilator.py b/fusesoc/simulator/verilator.py
index <HASH>..<HASH> 100644
--- a/fusesoc/simulator/verilator.py
+++ b/fusesoc/simulator/verilator.py
@@ -106,7 +106,7 @@ class Verilator(Simulator):
stdout = open(_s.format('out'),'w')).run()
def run(self, a... | verilator: Check for cli_parser in tool_options before using it | olofk_fusesoc | train | py |
399512a4220e34825400b27317914108b6325c51 | diff --git a/saucelabs.karma.conf.js b/saucelabs.karma.conf.js
index <HASH>..<HASH> 100644
--- a/saucelabs.karma.conf.js
+++ b/saucelabs.karma.conf.js
@@ -65,7 +65,7 @@ module.exports = (config) => {
'libs/png_support/zlib.js',
'tests/utils/compare.js',
{
- pattern: 'tests/**/*.spec.js',
+ ... | Update saucelabs.karma.conf.js | MrRio_jsPDF | train | js |
3d4c5ae1f0fcc5ee97bc370baf9022746c31da49 | diff --git a/src/Support/helpers.php b/src/Support/helpers.php
index <HASH>..<HASH> 100644
--- a/src/Support/helpers.php
+++ b/src/Support/helpers.php
@@ -266,12 +266,12 @@ if (!function_exists('input')) {
function input($name = null, $default = null)
{
if ($name === null)
- return Input::... | Use Request facade instead of Input facade | tastyigniter_flame | train | php |
7fd036d7757e80bc5a53b0f626a4687a058d9f5c | diff --git a/cgi-bin/speed.py b/cgi-bin/speed.py
index <HASH>..<HASH> 100644
--- a/cgi-bin/speed.py
+++ b/cgi-bin/speed.py
@@ -1,15 +1,17 @@
#!c:/python33/python.exe
# -*- coding: utf-8 -*-
-
+import os
import cgi
import time
print('Content-type: text/html\n\n')
-
-fs = cgi.FieldStorage()
-src = fs['src'].va... | Add test on REMOTE_ADDR in speed.py | brython-dev_brython | train | py |
ef1ef234cc87737c631bdc31322495613c22715f | diff --git a/src/rejester/run.py b/src/rejester/run.py
index <HASH>..<HASH> 100644
--- a/src/rejester/run.py
+++ b/src/rejester/run.py
@@ -33,6 +33,8 @@ def getch():
capture one char from stdin for responding to Y/N prompt
'''
fd = sys.stdin.fileno()
+ if not os.isatty(fd):
+ return sys.stdin.r... | 'rejester delete' doesn't crash if run noninteractively | diffeo_rejester | train | py |
ffad10343916fb6cf3029742717936c8745932a5 | diff --git a/src/components/hand-controls.js b/src/components/hand-controls.js
index <HASH>..<HASH> 100644
--- a/src/components/hand-controls.js
+++ b/src/components/hand-controls.js
@@ -27,7 +27,6 @@ var EVENTS = {};
EVENTS[ANIMATIONS.fist] = 'grip';
EVENTS[ANIMATIONS.thumbUp] = 'pistol';
EVENTS[ANIMATIONS.point] =... | Remove unused reference to thumb events
`ANIMATIONS.thumb` did not exist, so "thumb" events would never be triggered | aframevr_aframe | train | js |
1f714c0faa495c21c73b16e8c85a7edba905cf09 | diff --git a/src/libhoney.js b/src/libhoney.js
index <HASH>..<HASH> 100644
--- a/src/libhoney.js
+++ b/src/libhoney.js
@@ -33,10 +33,10 @@ const defaults = Object.freeze({
// the maximum number of pending events we allow in our queue before they get batched
pendingWorkCapacity: 10000,
- // the maximum number o... | Tweak Libhoney config comments | honeycombio_libhoney-js | train | js |
2e17b88ef18ccf3d4aa74878ef5d932b0a44bd30 | diff --git a/src/PdoAdapter.php b/src/PdoAdapter.php
index <HASH>..<HASH> 100644
--- a/src/PdoAdapter.php
+++ b/src/PdoAdapter.php
@@ -370,9 +370,7 @@ class PdoAdapter implements AdapterInterface
*/
protected function getChunkResource($pathId, $isCompressed)
{
- $filename = $this->getTempFilename... | Fix #3 Use php://temp for file resources
When getChunkResource is called for file reads, it now uses the
php://temp resource which automatically cleans up. This should mean
less temporary files left behind. | phlib_flysystem-pdo | train | php |
c5baaaf034ebf79b3b775f3835e41754686a9ecd | diff --git a/lib/generators/hyrax/templates/catalog_controller.rb b/lib/generators/hyrax/templates/catalog_controller.rb
index <HASH>..<HASH> 100644
--- a/lib/generators/hyrax/templates/catalog_controller.rb
+++ b/lib/generators/hyrax/templates/catalog_controller.rb
@@ -21,6 +21,10 @@ class CatalogController < Applicat... | Switching blacklight http_method to :post
Because too many times on Samvera tech people raise a problem regarding
a failed query to SOLR. Often, it's because they inadvertantly exceeded
the character limit of a GET request. | samvera_hyrax | train | rb |
c5ddf8aa81e878538158cac3e998b803c639d524 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,8 +39,8 @@ install_requires = [
'Flask~=0.0,>=0.12.2',
'IDUtils~=0.0,>=0.2.4',
'dojson~=1.0,>=1.3.1',
- 'inspire-schemas~=54.0,>=54.0.0',
- 'inspire-utils~=0.0,>=0.1.0',
+ 'inspire-schemas~=55.0,>=5... | setup: bump inspire-schemas to version ~<I>
Sem-ver: breaks compatibility | inspirehep_inspire-dojson | train | py,py |
7c89c8037c3a6cb358c99732e83c4c6d5c791886 | diff --git a/salt/states/user.py b/salt/states/user.py
index <HASH>..<HASH> 100644
--- a/salt/states/user.py
+++ b/salt/states/user.py
@@ -270,7 +270,7 @@ def present(name,
gid
The id of the default group to assign to the user. Either a group name
or gid can be used. If not specified, and the use... | Porting PR #<I> to <I> | saltstack_salt | train | py |
d66ba348be507e530189e33c55e9678394e168b4 | diff --git a/presto-main/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java b/presto-main/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java
index <HASH>..<HASH> 100644
--- a/presto-main/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java
+++ b/pres... | Fix exception caused by coersion in plan printer
PlanPrinter can throw an exception when attempting to convert a constant to a String | prestodb_presto | train | java |
6847577c232e68bfa0b731c09bd29cd1c66e38eb | diff --git a/library/CM/SmartyPlugins/function.date_period.php b/library/CM/SmartyPlugins/function.date_period.php
index <HASH>..<HASH> 100644
--- a/library/CM/SmartyPlugins/function.date_period.php
+++ b/library/CM/SmartyPlugins/function.date_period.php
@@ -8,8 +8,8 @@ function smarty_function_date_period(array $param... | Make a month have <I> days, so it fits all our serviceBundles | cargomedia_cm | train | php |
a8aef8e6be1663e0327790abe25a2e9f3bba9cee | diff --git a/app/framework/directives/module.js b/app/framework/directives/module.js
index <HASH>..<HASH> 100644
--- a/app/framework/directives/module.js
+++ b/app/framework/directives/module.js
@@ -2,7 +2,7 @@ var directiveModules = angular.module('onsen.directives', []); // [] -> create n
directiveModules.factory(... | change template file path prefix with plugins | OnsenUI_OnsenUI | train | js |
4fef1f0154aaea41cf92de7366388cada38333d8 | diff --git a/lib/buildbox/monitor.rb b/lib/buildbox/monitor.rb
index <HASH>..<HASH> 100644
--- a/lib/buildbox/monitor.rb
+++ b/lib/buildbox/monitor.rb
@@ -20,11 +20,8 @@ module Buildbox
if build.started? || build.finished?
new_build = @api.update_build(build)
- p new_build.state
-
... | Removed some debugging code from the monitor. | buildkite_buildbox-agent-ruby | train | rb |
8860bfa6c9e656704fe0d843bb75117dc5d1958b | diff --git a/cmd/pivnet/commands/pivnet.go b/cmd/pivnet/commands/pivnet.go
index <HASH>..<HASH> 100644
--- a/cmd/pivnet/commands/pivnet.go
+++ b/cmd/pivnet/commands/pivnet.go
@@ -14,7 +14,7 @@ const (
printAsJSON = "json"
printAsYAML = "yaml"
- host = "https://network.pivotal.io"
+ defaultHost = "https://networ... | Inject version into cli correctly.
[#<I>] | pivotal-cf_go-pivnet | train | go,go |
a16e0bba2f3284278cafbc702c068f9fa4be5de0 | diff --git a/repo/config/init.go b/repo/config/init.go
index <HASH>..<HASH> 100644
--- a/repo/config/init.go
+++ b/repo/config/init.go
@@ -35,7 +35,8 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
"/ip4/0.0.0.0/tcp/4001",
// "/ip4/0.0.0.0/udp/4002/utp", // disabled for now.
},
- API... | repo/config: Added default gateway address to initial config | ipfs_go-ipfs | train | go |
e4ca183733535222018b86edb4d23697be0f49b8 | diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -65,7 +65,10 @@ def parse_info(response):
if line and not line.startswith('#'):
key, value = line.split(':')
try:
- info[key] = float(value) if '.' ... | Remove ternary operator to support Python <I> | andymccurdy_redis-py | train | py |
84af9dc155bc5430352e51bbd0d7d989a82f73a3 | diff --git a/devices/tuya.js b/devices/tuya.js
index <HASH>..<HASH> 100644
--- a/devices/tuya.js
+++ b/devices/tuya.js
@@ -331,6 +331,7 @@ module.exports = [
{modelID: 'TS0601', manufacturerName: '_TZE200_dfxkcots'},
{modelID: 'TS0601', manufacturerName: '_TZE200_ojzhk75b'},
{mode... | Add _TZE<I>_3p5ydos3 to TS<I>_dimmer (#<I>) | Koenkk_zigbee-shepherd-converters | train | js |
d5afa3c0508094f35f659cb22ce012143a9dd48f | diff --git a/api/src/main/java/org/hobsoft/microbrowser/MicrodataProperty.java b/api/src/main/java/org/hobsoft/microbrowser/MicrodataProperty.java
index <HASH>..<HASH> 100644
--- a/api/src/main/java/org/hobsoft/microbrowser/MicrodataProperty.java
+++ b/api/src/main/java/org/hobsoft/microbrowser/MicrodataProperty.java
@... | Issue #6: Added Javadoc for MicrodataProperty.unwrap | markhobson_microbrowser | train | java |
bc16ea79084120025e67f9d0875e3231ec8b5d13 | diff --git a/redis_collections/sortedsets.py b/redis_collections/sortedsets.py
index <HASH>..<HASH> 100644
--- a/redis_collections/sortedsets.py
+++ b/redis_collections/sortedsets.py
@@ -444,12 +444,9 @@ class GeoDB(SortedSetBase):
"""
pickled_place_1 = self._pickle(place_1)
pickled_place_2 =... | Rely on redis <I> | honzajavorek_redis-collections | train | py |
e2b217f2407a4f16b99516caf8934a12b16d58de | diff --git a/src/humanize/filesize.py b/src/humanize/filesize.py
index <HASH>..<HASH> 100644
--- a/src/humanize/filesize.py
+++ b/src/humanize/filesize.py
@@ -23,6 +23,9 @@ def naturalsize(value, binary=False, gnu=False, format="%.1f"):
gnu (bool): If `True`, the binary argument is ignored and GNU-style
... | Add some missing returns/raises | jmoiron_humanize | train | py,py |
0969439c702fb49430391f3655640eadafc43648 | diff --git a/_config.php b/_config.php
index <HASH>..<HASH> 100644
--- a/_config.php
+++ b/_config.php
@@ -9,8 +9,6 @@
* and if absolutely necessary if you can't use the yml file, mysite/_config.php instead.
*/
-use CWP\Core\Extension\CwpControllerExtension;
-use SilverStripe\Core\Config\Config;
use SilverStripe... | MINOR Remove deprecated use of characterStrength and remove unused imports | silverstripe_cwp-core | train | php |
ca95ef9bc5917d04bc21290bdb9a18c4789d3d1b | diff --git a/shims.php b/shims.php
index <HASH>..<HASH> 100644
--- a/shims.php
+++ b/shims.php
@@ -3,7 +3,7 @@
namespace {
// PHPUnit 6 compat
- if (class_exists('PHPUnit\Framework\TestCase')) {
+ if ( class_exists( 'PHPUnit\Runner\Version' ) && version_compare( PHPUnit\Runner\Version::id(), '6.0', '>=' ) ) ... | use the runner version to load shims | lucatume_wp-browser | train | php |
6c74bfdf1f0851ebb3d34811eac1488b48748471 | diff --git a/lib/Constants.js b/lib/Constants.js
index <HASH>..<HASH> 100644
--- a/lib/Constants.js
+++ b/lib/Constants.js
@@ -88,10 +88,11 @@ module.exports = {
changeNickname: 1 << 26,
manageNicknames: 1 << 27,
manageRoles: 1 << 28,
- all: 0b11111111101111111110... | Add manageEmojis permission constant
Bonus question: what's this hidden 1 << <I>? | abalabahaha_eris | train | js |
5f63670dabfe45ef72b618e5191e39c4fc48e012 | diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -190,9 +190,12 @@ def preclassical(srcs, srcfilter, params, monitor):
# this can be slow
for src in srcs... | Small fix of preclassical for missing sitecol | gem_oq-engine | train | py |
21d26012d58f0b2ef2b087e23c55e836cc4c98a6 | diff --git a/test/e2e/nvidia-gpus.go b/test/e2e/nvidia-gpus.go
index <HASH>..<HASH> 100644
--- a/test/e2e/nvidia-gpus.go
+++ b/test/e2e/nvidia-gpus.go
@@ -163,8 +163,17 @@ func dsFromManifest(url string) *extensions.DaemonSet {
var controller extensions.DaemonSet
framework.Logf("Parsing ds from %v", url)
- respon... | Retry downloading the daemonset installer few times to avoid spurious network issues. | kubernetes_kubernetes | train | go |
2f1dc83cd0ecf0e86ffb84afd8347bd071055b21 | diff --git a/sub_peers.js b/sub_peers.js
index <HASH>..<HASH> 100644
--- a/sub_peers.js
+++ b/sub_peers.js
@@ -88,6 +88,13 @@ TChannelSubPeers.prototype.add = function add(hostPort, options) {
peer = topChannel.peers.add(hostPort, options);
peer.setPreferConnectionDirection(self.preferConnectionDirection);
... | sub_peers: hook up event listeners | uber_tchannel-node | train | js |
ee7625a3a2d0c9db0ab7d1b4b98c5f6e705d970d | diff --git a/uDMX.py b/uDMX.py
index <HASH>..<HASH> 100644
--- a/uDMX.py
+++ b/uDMX.py
@@ -250,6 +250,7 @@ def send_dmx_message(message_tokens):
# Open the uDMX USB device
dev = pyuDMX.uDMXDevice()
if not dev.open():
+ print "Unable to find and open uDMX interface"
return False
# T... | Show error message when no uDMX is found | dhocker_udmx-pyusb | train | py |
6bab83683bf46352b59ab01cf596804dfdf7d973 | diff --git a/examples/seq2seq/finetune_trainer.py b/examples/seq2seq/finetune_trainer.py
index <HASH>..<HASH> 100755
--- a/examples/seq2seq/finetune_trainer.py
+++ b/examples/seq2seq/finetune_trainer.py
@@ -175,11 +175,11 @@ def main():
bool(training_args.parallel_mode == ParallelMode.DISTRIBUTED),
tr... | fix logger format for non-main process (#<I>) | huggingface_pytorch-pretrained-BERT | train | py |
3cfc9d43eb8f7c90e99bf09967027c8a9ccbddcd | diff --git a/test/minimal_app_test.rb b/test/minimal_app_test.rb
index <HASH>..<HASH> 100644
--- a/test/minimal_app_test.rb
+++ b/test/minimal_app_test.rb
@@ -26,7 +26,7 @@ if RubotoTest::RUBOTO_PLATFORM == 'STANDALONE'
'1.6.8' => 3.5,
'1.7.0.preview1' => 4.6,
'1.7.0.preview2' => ANDROI... | * Adjust minimal app side to new JRuby | ruboto_ruboto | train | rb |
c0da0af85d044e9a7bc7b64c86657857df1e27fe | diff --git a/src/app/Traits/UpdatedBy.php b/src/app/Traits/UpdatedBy.php
index <HASH>..<HASH> 100644
--- a/src/app/Traits/UpdatedBy.php
+++ b/src/app/Traits/UpdatedBy.php
@@ -6,6 +6,10 @@ trait UpdatedBy
{
protected static function bootUpdatedBy()
{
+ self::creating(function ($model) {
+ $m... | updates updatedBy to fit Laravel style | laravel-enso_TrackWho | train | php |
e33a160cf0f2943892f7698761d0500ee53c8e2a | diff --git a/demo/src/index.js b/demo/src/index.js
index <HASH>..<HASH> 100644
--- a/demo/src/index.js
+++ b/demo/src/index.js
@@ -8,7 +8,7 @@ import {
} from "three";
import { DemoManager } from "three-demo";
-import { EffectComposer } from "../../src";
+import { EffectComposer, OverrideMaterialManager } from "../... | Enable override material workaround | vanruesc_postprocessing | train | js |
b754836feb490091841366c0902d29c0816d9149 | diff --git a/lib/tomlrb.rb b/lib/tomlrb.rb
index <HASH>..<HASH> 100644
--- a/lib/tomlrb.rb
+++ b/lib/tomlrb.rb
@@ -1,6 +1,9 @@
require 'time'
require 'stringio'
require "tomlrb/version"
+require 'tomlrb/local_date_time'
+require 'tomlrb/local_date'
+require 'tomlrb/local_time'
require 'tomlrb/string_utils'
require... | Load LocalDateTime and so on | fbernier_tomlrb | train | rb |
Subsets and Splits
Java Commits in Train Set
Queries for all entries where the diff_languages column is 'java', providing a filtered dataset but without deeper analysis.
Java Commits Test Data
Returns a subset of 5000 entries from the dataset where the programming language difference is Java, providing basic filtering for exploration.
Java Commits Sample
Retrieves the first 1,000 records where the 'diff_languages' column is 'java', providing limited insight into the specific data entries.
Java Commits Validation Sample
Retrieves a sample of entries from the validation dataset where the diff languages are Java, providing limited insight into specific Java-related data points.
Java Commits in Validation
This query retrieves a limited sample of entries from the validation dataset where the programming language difference is Java, providing basic filtering with minimal insight.
Java Commits Sample
This query retrieves a sample of 100 records where the 'diff_languages' is 'java', providing basic filtering but limited analytical value.
Java Commits Sample
Retrieves 100 samples where the language difference is Java, providing basic filtering but minimal analytical value.
Java Commits Sample
Retrieves 10 samples where the diff_languages column is 'java', providing basic examples of data entries with this specific language.
Java Commits Validation Sample
Retrieves 1,000 records where the differences in languages are marked as Java, providing a snapshot of that specific subset but limited to raw data.
Java Commits Sample
This query retrieves 1000 random samples from the dataset where the programming language is Java, offering limited insight beyond raw data.