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 |
|---|---|---|---|---|---|
ee6c3b670c4a084210daee1b989aae3ba813bdfa | diff --git a/src/Content/Auditor/Result.php b/src/Content/Auditor/Result.php
index <HASH>..<HASH> 100644
--- a/src/Content/Auditor/Result.php
+++ b/src/Content/Auditor/Result.php
@@ -145,4 +145,20 @@ class Result extends Relational
return $this->get('status');
}
+
+ /**
+ * Load a record by scope and scope_id
+... | Adding helper method for retrieving a record by scope and scope_id (#<I>) | hubzero_framework | train | php |
47f5b5f3f7aeb7dfadfdc0dc1a1882d64d1d74fe | diff --git a/ui/js/directives/treeherder/clonejobs.js b/ui/js/directives/treeherder/clonejobs.js
index <HASH>..<HASH> 100644
--- a/ui/js/directives/treeherder/clonejobs.js
+++ b/ui/js/directives/treeherder/clonejobs.js
@@ -103,7 +103,7 @@ treeherder.directive('thCloneJobs', [
if ($(".selected-job")... | Bug <I> - Improve the unclassified failure selection message | mozilla_treeherder | train | js |
df7270d8a5509f24d487e26ac00bc17888da259b | diff --git a/smpte-timecode.js b/smpte-timecode.js
index <HASH>..<HASH> 100644
--- a/smpte-timecode.js
+++ b/smpte-timecode.js
@@ -50,7 +50,7 @@
}
else if (typeof timeCode == 'object' && timeCode instanceof Date) {
var midnight = new Date( timeCode.getFullYear(), timeCode.getMonth(), time... | Move floor() parenthesis for Date initializer
Instead of using Math.round(), moving the closing parenthesis to encapsulate the whole operation in Math.floor() avoids fractional frame counts while still maintaining the validity of the operation. | CrystalComputerCorp_smpte-timecode | train | js |
ff6b205cd87b68b1e4e32fff88a78225921e4400 | diff --git a/yamcs-client/yamcs/core/client.py b/yamcs-client/yamcs/core/client.py
index <HASH>..<HASH> 100644
--- a/yamcs-client/yamcs/core/client.py
+++ b/yamcs-client/yamcs/core/client.py
@@ -10,7 +10,7 @@ from yamcs.core.exceptions import (ConnectionFailure, NotFound, Unauthorized,
from yamcs.protobuf.web import w... | use TLS verify option in credentials related request | yamcs_yamcs-python | train | py |
a8202eb80d6f24afc996288f14873f58963d58bd | diff --git a/test/unit/data/schema/integrity_spec.js b/test/unit/data/schema/integrity_spec.js
index <HASH>..<HASH> 100644
--- a/test/unit/data/schema/integrity_spec.js
+++ b/test/unit/data/schema/integrity_spec.js
@@ -40,7 +40,7 @@ describe('DB version integrity', function () {
// If this test is failing, then it... | Fixed regression test for integrity check
no issue
- The file that is better suited for integrity check is the `*-default.yaml` config because it's the one that gets copied through when there is none or configuration is broken | TryGhost_Ghost | train | js |
440c3a08abc534834f8161a3c53d1fbeb67e50ec | diff --git a/server/libs/mongo.js b/server/libs/mongo.js
index <HASH>..<HASH> 100644
--- a/server/libs/mongo.js
+++ b/server/libs/mongo.js
@@ -86,7 +86,6 @@ export default {
}
}
}
- console.log(url + dbName, ' - db connected')
}
c... | Only log mongo connections on failure. | OpenNeuroOrg_openneuro | train | js |
93d702e3d2b1032bdc083fba8031be54bfc9e962 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,11 @@
-from setuptools import setup, find_packages
+import glob
+from io import open # for open(..,encoding=...) parameter in python 2
from os import walk
from os.path import join, dirname, sep
import os
-import... | Fix setup.py breaking when unicode characters are in README.md in Python 3 | kivy_python-for-android | train | py |
c66360ace0aa0e8d9068f9bd4c4c3b206327979e | diff --git a/tests/test_gaussian.py b/tests/test_gaussian.py
index <HASH>..<HASH> 100644
--- a/tests/test_gaussian.py
+++ b/tests/test_gaussian.py
@@ -122,8 +122,8 @@ class TestDiagonalGaussianNonconjNIG(BigDataGibbsTester,GewekeGibbsTester,BasicT
)
def params_close(self,d1,d2):
- return ... | relax DiagonalGaussianNonconjNIG test (these tests fail randomly) | mattjj_pybasicbayes | train | py |
ad1ccb3517f6016730d29966cb188cec74cfa973 | diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -159,6 +159,10 @@
if (typeof componentClass === "function" && !componentClass.prototype.render && !componentClass.isReactClass && !React.Component.isPrototypeOf(componentClass)) {
return observer(... | fixed propTypes and defaultProps on stateless components | mobxjs_mobx-react | train | js |
6f2b4bff34164624a5607d0e93c4c8674d6ccbc2 | diff --git a/lib/Saml2/Response.php b/lib/Saml2/Response.php
index <HASH>..<HASH> 100644
--- a/lib/Saml2/Response.php
+++ b/lib/Saml2/Response.php
@@ -525,6 +525,7 @@ class OneLogin_Saml2_Response
* Gets the Issuers (from Response and Assertion).
*
* @return array @issuers The issuers of the assertion... | Add missing throw tag to \OneLogin_Saml2_Response::getIssuers | onelogin_php-saml | train | php |
7821d93412d11c944ae6ea4078402a65b50809c3 | diff --git a/code/libraries/koowa/libraries/view/abstract.php b/code/libraries/koowa/libraries/view/abstract.php
index <HASH>..<HASH> 100644
--- a/code/libraries/koowa/libraries/view/abstract.php
+++ b/code/libraries/koowa/libraries/view/abstract.php
@@ -413,7 +413,7 @@ abstract class KViewAbstract extends KObject impl... | re #<I> : Do not include 'internal' state properties in the route. | joomlatools_joomlatools-framework | train | php |
5685e9aed618845d3ef6ba959e054c856456340f | diff --git a/lib50/_api.py b/lib50/_api.py
index <HASH>..<HASH> 100644
--- a/lib50/_api.py
+++ b/lib50/_api.py
@@ -485,12 +485,22 @@ class Slug:
"""Get branches from org/repo."""
if self.offline:
local_path = get_local_path() / self.org / self.repo
- get_refs = f"git -C {shlex.... | look for 'Username for' when doing git ls-remote | cs50_lib50 | train | py |
fc85517188bd6be95527b1262ad721f9949444ee | diff --git a/src/components/AutoCompleteInput.js b/src/components/AutoCompleteInput.js
index <HASH>..<HASH> 100644
--- a/src/components/AutoCompleteInput.js
+++ b/src/components/AutoCompleteInput.js
@@ -110,7 +110,6 @@ export default class AutoCompleteInput extends React.Component<AutoCompleteInput
isLoading... | Fix to prevent autocomplete shakiness when updating suggestions (#<I>) | attivio_suit | train | js |
7d0a7f610706c509b87eec1af71e2ab232b3d51f | diff --git a/src/main/java/org/deepsymmetry/beatlink/data/TimeFinder.java b/src/main/java/org/deepsymmetry/beatlink/data/TimeFinder.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/deepsymmetry/beatlink/data/TimeFinder.java
+++ b/src/main/java/org/deepsymmetry/beatlink/data/TimeFinder.java
@@ -452,7 +452,9 @@ p... | More graciously handle looping at end.
It is actually valid to get the beat packet telling us we have looped
before we know where we have looped to (an oversight in the protocol
does not include the beat number in a beat packet!) so assume we are
looping back a beat and don't log a warning. | Deep-Symmetry_beat-link | train | java |
3ca84399d6d3f7a4396ea841297d4155dffe8fb5 | diff --git a/lib/workers/pr/index.js b/lib/workers/pr/index.js
index <HASH>..<HASH> 100644
--- a/lib/workers/pr/index.js
+++ b/lib/workers/pr/index.js
@@ -120,8 +120,8 @@ async function ensurePr(prConfig) {
depName: upgrade.depName,
fromVersion: upgrade.fromVersion,
toVersion: upgrade.toVersion,
- ... | fix(changelog): use upgrade for lookups | renovatebot_renovate | train | js |
d54ef5988129012939b8be26a34a50fa9e719ac5 | diff --git a/tests/test_web.py b/tests/test_web.py
index <HASH>..<HASH> 100644
--- a/tests/test_web.py
+++ b/tests/test_web.py
@@ -677,6 +677,11 @@ class TestWeb():
return_data = json.loads(rv.data)
assert_equal(return_data['error'], "job_id not found")
+ def test_getting_job_data_for_missing_job... | Test getting data from job that does not exist | ckan_ckan-service-provider | train | py |
3c2791c30a1907178f8a82839d446b0d8d0139c2 | diff --git a/angularjs-portal-home/src/main/webapp/js/app-config.js b/angularjs-portal-home/src/main/webapp/js/app-config.js
index <HASH>..<HASH> 100644
--- a/angularjs-portal-home/src/main/webapp/js/app-config.js
+++ b/angularjs-portal-home/src/main/webapp/js/app-config.js
@@ -31,7 +31,7 @@ define(['angular'], functio... | mocking out the first variable in gcsURL | uPortal-Project_uportal-home | train | js |
dcb552198da5d76c14afccd33f88f45abff02778 | diff --git a/morango/models/core.py b/morango/models/core.py
index <HASH>..<HASH> 100644
--- a/morango/models/core.py
+++ b/morango/models/core.py
@@ -353,15 +353,19 @@ class Store(AbstractStore):
app_model._morango_dirty_bit = False
try:
+
# validate and return the model
... | Add comment to explain why exception is being re-raised | learningequality_morango | train | py |
3e2d120019ded6c4a1573908a345beb21111d111 | diff --git a/src/errors.js b/src/errors.js
index <HASH>..<HASH> 100644
--- a/src/errors.js
+++ b/src/errors.js
@@ -25,7 +25,7 @@ errors.SubstanceError = function(name, code, message) {
this.__stack = util.callstack(1);
};
-errors.SubstanceError.__prototype__ = function() {
+errors.SubstanceError.Prototype = funct... | rename: __prototype__ => Prototype | substance_util | train | js |
1d1b71e52e25bf7f6b79d1d16a58b49e32a276e8 | diff --git a/tests/unit/Codeception/Util/JsonArrayTest.php b/tests/unit/Codeception/Util/JsonArrayTest.php
index <HASH>..<HASH> 100644
--- a/tests/unit/Codeception/Util/JsonArrayTest.php
+++ b/tests/unit/Codeception/Util/JsonArrayTest.php
@@ -71,8 +71,14 @@ class JsonArrayTest extends \Codeception\TestCase\Test
... | Another test for issue #<I> | Codeception_base | train | php |
f483dc474c8c88eb0315489fd211ec819f717b42 | diff --git a/lib/ssh/connection.js b/lib/ssh/connection.js
index <HASH>..<HASH> 100644
--- a/lib/ssh/connection.js
+++ b/lib/ssh/connection.js
@@ -34,7 +34,7 @@ function Connection(options) {
*/
Connection.prototype.spawn = function (command) {
- return sh.spawn('ssh', [this.remote, command]);
+ return sh.spawn(... | Use a TTY in ssh command. | shipitjs_grunt-shipit | train | js,js |
e1ac6fa16c1e965891eb6b2ba87c81669648454a | diff --git a/classes/MUtil/Filter/Dutch/Burgerservicenummer.php b/classes/MUtil/Filter/Dutch/Burgerservicenummer.php
index <HASH>..<HASH> 100644
--- a/classes/MUtil/Filter/Dutch/Burgerservicenummer.php
+++ b/classes/MUtil/Filter/Dutch/Burgerservicenummer.php
@@ -55,8 +55,13 @@ class MUtil_Filter_Dutch_Burgerservicenumm... | To greedy in adding zero's | GemsTracker_gemstracker-library | train | php |
da90f46d762f9662036e56676e24ab44571d63b3 | diff --git a/lib/adapters/object.js b/lib/adapters/object.js
index <HASH>..<HASH> 100644
--- a/lib/adapters/object.js
+++ b/lib/adapters/object.js
@@ -243,8 +243,8 @@ var Graph = function (_AncientGraph) {
key: '_generateLink',
value: function _generateLink(document) {
var link = {};
- for (var f ... | fix(adapter): Fix document to link generation. | AncientSouls_Graph | train | js,js |
9fb02ed864e7b288c96eda360550cbee46edbddd | diff --git a/translator/src/main/java/com/google/devtools/j2objc/Options.java b/translator/src/main/java/com/google/devtools/j2objc/Options.java
index <HASH>..<HASH> 100644
--- a/translator/src/main/java/com/google/devtools/j2objc/Options.java
+++ b/translator/src/main/java/com/google/devtools/j2objc/Options.java
@@ -7... | Changed hide-private-members default to true, now that affected code has been updated. | google_j2objc | train | java |
df4076c772b2e5e47c71020bf7d725e50b28a7d5 | diff --git a/src/you_get/extractors/tumblr.py b/src/you_get/extractors/tumblr.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/tumblr.py
+++ b/src/you_get/extractors/tumblr.py
@@ -3,10 +3,13 @@
__all__ = ['tumblr_download']
from ..common import *
-
-import re
+from .universal import *
def tumblr_downl... | [tumblr] support direct URLs | soimort_you-get | train | py |
5d63f5ec92cb966862cb873c048672906c820e68 | diff --git a/packages/xod-espruino/webpack/base.js b/packages/xod-espruino/webpack/base.js
index <HASH>..<HASH> 100644
--- a/packages/xod-espruino/webpack/base.js
+++ b/packages/xod-espruino/webpack/base.js
@@ -20,6 +20,7 @@ module.exports = {
],
resolve: {
modulesDirectories: [
+ 'node_modules',
... | fix(xod-espruino): quick fix for webpack config (cant find isarray package in tests) | xodio_xod | train | js |
2ed4997061c6b9fa4bfc9063cc2f573e95da06c4 | diff --git a/lib/sloe/version.rb b/lib/sloe/version.rb
index <HASH>..<HASH> 100644
--- a/lib/sloe/version.rb
+++ b/lib/sloe/version.rb
@@ -1,3 +1,3 @@
module Sloe
- VERSION = "0.0.2"
+ VERSION = "0.0.3"
end | bumped version to <I> | dgjnpr_Sloe | train | rb |
b27f21b92edcf7b5350e5c03fe12df5426c8dc68 | diff --git a/cmd/runtimetest/main.go b/cmd/runtimetest/main.go
index <HASH>..<HASH> 100644
--- a/cmd/runtimetest/main.go
+++ b/cmd/runtimetest/main.go
@@ -41,7 +41,6 @@ var (
"/dev/random",
"/dev/urandom",
"/dev/tty",
- "/dev/console",
"/dev/ptmx",
}
)
@@ -344,6 +343,9 @@ func validateLinuxDevices(spec ... | runtimetest: fix linux default devices validation
According to runtime SPEC, /dev/console will exist if Terminal is true | opencontainers_runtime-tools | train | go |
1f857f0053606c23cb3f1abd794e3efbf6981e09 | diff --git a/tests/test_commands.py b/tests/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -2656,7 +2656,7 @@ class TestBinarySave(object):
r.rpush(key, *value)
# check that KEYS returns all the keys as they are
- assert sorted(r.... | Remove unnecessary coerce to list (#<I>)
sorted() takes any iterable and always returns a new list. No need to
eagerly coerce to a list. | andymccurdy_redis-py | train | py |
33e6e5b02b2fbb3cdcbb0163584f65b642d6e691 | diff --git a/Net/OpenID/CryptUtil.php b/Net/OpenID/CryptUtil.php
index <HASH>..<HASH> 100644
--- a/Net/OpenID/CryptUtil.php
+++ b/Net/OpenID/CryptUtil.php
@@ -51,7 +51,7 @@ class Net_OpenID_CryptUtil {
$bytes = '';
$f = @fopen("/dev/urandom", "r");
if ($f === FALSE) {
- if (!define... | [project @ Fixed defined() call] | openid_php-openid | train | php |
c4128be0f944b4c8bcc3dfffe9c3c4444b6b1d97 | diff --git a/ept/config/errors.go b/ept/config/errors.go
index <HASH>..<HASH> 100644
--- a/ept/config/errors.go
+++ b/ept/config/errors.go
@@ -10,4 +10,5 @@ var (
ErrCertCanNotRead = errors.New("cannot read certificate file")
ErrCertNotFound = errors.New("certificate can not be found in the specified path")
E... | the `retrySec` must be greater than 0 | Privatix_dappctrl | train | go,go |
51cc3de027526c37f968e4cf3f5a05b7b2d4d164 | diff --git a/lib/rubikon/application/instance_methods.rb b/lib/rubikon/application/instance_methods.rb
index <HASH>..<HASH> 100644
--- a/lib/rubikon/application/instance_methods.rb
+++ b/lib/rubikon/application/instance_methods.rb
@@ -88,7 +88,6 @@ module Rubikon
hook.call(:post_execute)
@current_... | Ensure resetting the application on errors | koraktor_rubikon | train | rb |
ff7728867b1a71cead4a582a0ee7fe17cf9fdc48 | diff --git a/lib/timezone/zone.rb b/lib/timezone/zone.rb
index <HASH>..<HASH> 100644
--- a/lib/timezone/zone.rb
+++ b/lib/timezone/zone.rb
@@ -83,9 +83,9 @@ module Timezone
# Get a list of specified timezones and the basic information accompanying that zone
#
- # zones = Timezone::Zone.infos(zone... | Old method name in the documentation for Timezone::Zone.list | panthomakos_timezone | train | rb |
cd1c7749e030c65d176e0735ff33b97bffeb8240 | diff --git a/extended-cpts.php b/extended-cpts.php
index <HASH>..<HASH> 100644
--- a/extended-cpts.php
+++ b/extended-cpts.php
@@ -212,7 +212,7 @@ class Extended_CPT {
# Rewrite testing:
if ( $this->args['rewrite'] ) {
- add_filter( 'rewrite_testing_tests', array( $this, 'rewrite_testing_tests' ) );
+ add_f... | Reduce the `rewrite_testing_tests` filter priority so it's more easily overridden. | johnbillion_extended-cpts | train | php |
124c4a7740bc44688fae37f35a0227ef5e399105 | diff --git a/lib/chef/resource/sysctl.rb b/lib/chef/resource/sysctl.rb
index <HASH>..<HASH> 100644
--- a/lib/chef/resource/sysctl.rb
+++ b/lib/chef/resource/sysctl.rb
@@ -25,11 +25,7 @@ class Chef
provides(:sysctl) { true }
provides(:sysctl_param) { true }
- description "Use the **sysctl** resource... | Update sysctl resource description to match reality
We don't do the backup mess anymore and we never did when this resource was in chef-client itself. | chef_chef | train | rb |
5a5a916438d5b6daeb30271a54bdb276ebb3c4bd | diff --git a/gulpfile.js b/gulpfile.js
index <HASH>..<HASH> 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,17 +1,21 @@
-var fs = require('fs')
-var exec = require('child_process').exec
-var gulp = require('gulp')
-var bump = require('gulp-bump')
+const f = require('util').format
+const fs = require('fs')
+const exec ... | refactor: gulpfile.js for log result | futurist_replace-css-url | train | js |
40fa692c74002b148d99b65e93c8a43f5f7fbd9b | diff --git a/claripy/claripy.py b/claripy/claripy.py
index <HASH>..<HASH> 100644
--- a/claripy/claripy.py
+++ b/claripy/claripy.py
@@ -308,6 +308,7 @@ Claripy.fpToUBV = op('fpToUBV', (RM, FP, (int, long)), BV, self_is_clrp=True, ca
def _fp_cmp_check(a, b):
return a.length == b.length, "FP lengths must be the same... | add __eq__ to FP | angr_claripy | train | py |
6c44d20194e0a3a7b54a16de5e502b821a7a3d6f | diff --git a/freeze.py b/freeze.py
index <HASH>..<HASH> 100755
--- a/freeze.py
+++ b/freeze.py
@@ -9,7 +9,8 @@ from cx_Freeze import setup, Executable
with open(os.path.join("r128gain", "__init__.py"), "rt") as f:
version = re.search("__version__ = \"([^\"]+)\"", f.read()).group(1)
-build_exe_options = {"optimize... | Windows freeze: Don't include tkinter | desbma_r128gain | train | py |
f08c4e2531965844956fe5c25a65c973a1a02014 | diff --git a/src/stream/pipe.js b/src/stream/pipe.js
index <HASH>..<HASH> 100644
--- a/src/stream/pipe.js
+++ b/src/stream/pipe.js
@@ -38,9 +38,17 @@ function _gpfStreamPipeToFlushableWrite (intermediate, destination) {
iWritableIntermediate = _gpfStreamQueryWritable(intermediate),
iFlushableIntermedi... | Implements non flushable intermediate streams (#<I>) | ArnaudBuchholz_gpf-js | train | js |
5b9dae5be797e231d941fabbda0517ccf816d2ad | diff --git a/sharding-core/src/main/java/io/shardingsphere/core/executor/sql/execute/row/QueryRow.java b/sharding-core/src/main/java/io/shardingsphere/core/executor/sql/execute/row/QueryRow.java
index <HASH>..<HASH> 100644
--- a/sharding-core/src/main/java/io/shardingsphere/core/executor/sql/execute/row/QueryRow.java
+... | rename to isEqualPartly() | apache_incubator-shardingsphere | train | java |
40cea6b487b40e597bf32dc84067d80d93c79066 | diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go
index <HASH>..<HASH> 100644
--- a/htlcswitch/link_test.go
+++ b/htlcswitch/link_test.go
@@ -5697,7 +5697,7 @@ func newHodlInvoiceTestCtx(t *testing.T) (*hodlInvoiceTestCtx, error) {
select {
case err := <-errChan:
t.Fatalf("no payment result expected... | htlcswitch/test: increase test timeout for hodl invoice tests | lightningnetwork_lnd | train | go |
6fc09eda3e3e377d2325ef20098ac2e4e798fd33 | diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Settings.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Settings.java
index <HASH>..<HASH> 100644
--- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Settings.java
+++ b/dependency-check-co... | removed unused properties and added BATCH_UPDATE_URL
Former-commit-id: <I>a8a2d<I>cf<I>fac<I>d<I>eea1b<I> | jeremylong_DependencyCheck | train | java |
8bec5814436556426990e15e57070425eb1c34c5 | diff --git a/src/main/java/nz/ac/auckland/integration/testing/MorcTest.java b/src/main/java/nz/ac/auckland/integration/testing/MorcTest.java
index <HASH>..<HASH> 100644
--- a/src/main/java/nz/ac/auckland/integration/testing/MorcTest.java
+++ b/src/main/java/nz/ac/auckland/integration/testing/MorcTest.java
@@ -265,8 +26... | fixed assertion time to wait time rather than sleeping for empty test | uoa-group-applications_morc | train | java |
9097a282359fd3cf4a75d9ebbc937746f5290acb | diff --git a/src/Calendar.php b/src/Calendar.php
index <HASH>..<HASH> 100644
--- a/src/Calendar.php
+++ b/src/Calendar.php
@@ -53,6 +53,29 @@ class Calendar extends CalendarAbstract
}
});
+ //Restructure events under their relevant day
+ foreach($this->events as $id_and_date => $event) {
+
+ list($id, $dat... | Restructure events under their relevant day and sort them. | benplummer_calendarful | train | php |
e237b4a5f4da8a6d0f2056622d2962bb827b5176 | diff --git a/src/org/opencms/xml/content/CmsDefaultXmlContentHandler.java b/src/org/opencms/xml/content/CmsDefaultXmlContentHandler.java
index <HASH>..<HASH> 100644
--- a/src/org/opencms/xml/content/CmsDefaultXmlContentHandler.java
+++ b/src/org/opencms/xml/content/CmsDefaultXmlContentHandler.java
@@ -2215,7 +2215,7 @@... | Corrected XSD Solr field configuration when no field mapping is defined
within the XSD. | alkacon_opencms-core | train | java |
c8becb8e3b163dc73acc2cca1581d9e2f34a7fc6 | diff --git a/src/test/java/org/takes/rq/RqWithDefaultHeaderTest.java b/src/test/java/org/takes/rq/RqWithDefaultHeaderTest.java
index <HASH>..<HASH> 100644
--- a/src/test/java/org/takes/rq/RqWithDefaultHeaderTest.java
+++ b/src/test/java/org/takes/rq/RqWithDefaultHeaderTest.java
@@ -73,16 +73,16 @@ public final class Rq... | CR #<I> - introduced variable for string literal | yegor256_takes | train | java |
eeac670391470893d850b098612eb13f5854a398 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,8 @@
# Setup file for feedstail
from setuptools import setup
-long_description = """\
-Feedstail monitor a feed and emits new entries. It aim to be simple,
-hackable and compatible with rsstail, its C brother."""
+... | [doc]: Setup: README.rst becomes the long description. | YoloSwagTeam_feedstail | train | py |
37dc4ba041aeba64c58c2ac510c6d44315b41eaf | diff --git a/test/test_coverer.py b/test/test_coverer.py
index <HASH>..<HASH> 100644
--- a/test/test_coverer.py
+++ b/test/test_coverer.py
@@ -1,3 +1,4 @@
+from __future__ import division
import pytest
import numpy as np
from sklearn import datasets, preprocessing | python <I> has a funny idea of what division means; import from future | scikit-tda_kepler-mapper | train | py |
0237fbc9226dcfb28e1dfb1cc6a831e7f5131ab8 | diff --git a/src/Pool/Flexible.php b/src/Pool/Flexible.php
index <HASH>..<HASH> 100644
--- a/src/Pool/Flexible.php
+++ b/src/Pool/Flexible.php
@@ -67,7 +67,6 @@ class Flexible implements PoolInterface
);
$this->manager->on('ready', function (WorkerInterface $worker) {
if ($this->queue->co... | Removed accidently comitted debug code | WyriHaximus_reactphp-child-process-pool | train | php |
1bf612c89584e1f42adc413cce9be16d55634177 | diff --git a/lib/DObject.rb b/lib/DObject.rb
index <HASH>..<HASH> 100644
--- a/lib/DObject.rb
+++ b/lib/DObject.rb
@@ -776,7 +776,7 @@ module DICOM
if bin.length > 0
pos = @tags.index("7FE0,0010")
# Modify element:
- set_value(bin, :label => "7FE0,0010", :create => true, :bin => true)... | Fixed a couple of bugs relating to the previous change of syntax in set_value() | dicom_ruby-dicom | train | rb |
fc42941c4eca96389b9d5eb76124eba60c120069 | diff --git a/helpers/TbHtml.php b/helpers/TbHtml.php
index <HASH>..<HASH> 100755
--- a/helpers/TbHtml.php
+++ b/helpers/TbHtml.php
@@ -4091,13 +4091,14 @@ EOD;
{
$htmlOptions['title'] = $title;
if (TbArray::popValue('animation', $htmlOptions)) {
- $htmlOptions['data-animation'] = tr... | Fix some issue with tooltip and popover data-attributes | crisu83_yiistrap | train | php |
6d43810e720f0c174d3eaa8dbf10b09abd023aa7 | diff --git a/django_auth_adfs/backend.py b/django_auth_adfs/backend.py
index <HASH>..<HASH> 100644
--- a/django_auth_adfs/backend.py
+++ b/django_auth_adfs/backend.py
@@ -173,13 +173,12 @@ class AdfsBaseBackend(ModelBackend):
"""
if settings.GROUPS_CLAIM is not None:
# Update the user's g... | Removed case insensitivity support after a discussion with Jobec | jobec_django-auth-adfs | train | py |
04048c7e484e54efa34dbb4013c61fb071e67b96 | diff --git a/spec/normalize_spec.rb b/spec/normalize_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/normalize_spec.rb
+++ b/spec/normalize_spec.rb
@@ -71,6 +71,10 @@ describe NormalizeUrl do
expect(n("http://example.com/?PHPSESSID=foo")).to eq("http://example.com/")
end
+ it "skips removing tracking params i... | Add test for skipping removing tracking | rwz_normalize_url | train | rb |
fa8a78d12ee470eb29d314a4f9ae5318bad4ae09 | diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb
index <HASH>..<HASH> 100644
--- a/activerecord/test/cases/associations/eager_test.rb
+++ b/activerecord/test/cases/associations/eager_test.rb
@@ -218,7 +218,7 @@ class EagerAssociationTest < ActiveRecord... | :scissors: | rails_rails | train | rb |
f3493446c203da50c4d510c1801a144fb5468d63 | diff --git a/nes_py/nes_env.py b/nes_py/nes_env.py
index <HASH>..<HASH> 100644
--- a/nes_py/nes_env.py
+++ b/nes_py/nes_env.py
@@ -243,14 +243,21 @@ class NESEnv(gym.Env):
# return the list of seeds used by RNG(s) in the environment
return [seed]
- def reset(self):
+ def reset(self, seed=None,... | update to resolve warnings from newer versions of gym | Kautenja_nes-py | train | py |
83020ccc0385121e325c785d97cac58456a61e5c | diff --git a/core/model/fieldtypes/Time.php b/core/model/fieldtypes/Time.php
index <HASH>..<HASH> 100755
--- a/core/model/fieldtypes/Time.php
+++ b/core/model/fieldtypes/Time.php
@@ -2,7 +2,6 @@
/**
* Represents a column in the database with the type 'Time'
*/
-require_once("DBField.php");
class Time extends ... | Removed require_once - it's not needed, and for some reason it makes PHP die on some servers
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@<I> <I>b<I>ca-7a2a-<I>-9d3b-<I>d<I>a<I>a9 | silverstripe_silverstripe-framework | train | php |
7851f7830fb61743d4b75fdcf39a0627fa1cf34a | diff --git a/src/Krystal/Db/Tests/QueryBuilderTest.php b/src/Krystal/Db/Tests/QueryBuilderTest.php
index <HASH>..<HASH> 100644
--- a/src/Krystal/Db/Tests/QueryBuilderTest.php
+++ b/src/Krystal/Db/Tests/QueryBuilderTest.php
@@ -46,6 +46,14 @@ class QueryBuilderTest extends \PHPUnit_Framework_TestCase
$this->ver... | Added test case for AVG function | krystal-framework_krystal.framework | train | php |
db3c91a0e1a108805fd8ab2e9a4ef274be709e42 | diff --git a/openquake/calculators/views.py b/openquake/calculators/views.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/views.py
+++ b/openquake/calculators/views.py
@@ -1003,3 +1003,19 @@ def view_event_loss_table(token, dstore):
del df['loss_id']
del df['variance']
return df[:20]
+
+
+@vie... | Added view delta_loss [ci skip] | gem_oq-engine | train | py |
2d6563d184cc5dc89cc093506a3a9f18b3b080d0 | diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php
index <HASH>..<HASH> 100644
--- a/Tests/bootstrap.php
+++ b/Tests/bootstrap.php
@@ -9,8 +9,8 @@ $loader->registerNamespace('Symfony', $_SERVER['SYMFONY']);
$loader->register();
spl_autoload_register(function($class) {
- if (0 === strpos($class, 'Manhattan\\P... | Updated bootstrap for tests to run. | frodosghost_PublishBundle | train | php |
8fc9009e6ea0e20f118375901dd395f7a99b24da | diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -826,7 +826,7 @@ def format_call(fun,
continue
extra[key] = copy.deepcopy(value)
- # We'll be showing errors to the users until Salt Lithium co... | Fix missed Lithium to Beryllium references | saltstack_salt | train | py |
16e18845c29e66141ab3a5053bd9cc26c4e5b469 | diff --git a/core/server/master/src/main/java/alluxio/master/file/UfsSyncChecker.java b/core/server/master/src/main/java/alluxio/master/file/UfsSyncChecker.java
index <HASH>..<HASH> 100644
--- a/core/server/master/src/main/java/alluxio/master/file/UfsSyncChecker.java
+++ b/core/server/master/src/main/java/alluxio/maste... | do not store listing results for non-existent dirs | Alluxio_alluxio | train | java |
d5594325409b49b021bfa7bbce83b936f18eb5a4 | diff --git a/src/decoder.js b/src/decoder.js
index <HASH>..<HASH> 100644
--- a/src/decoder.js
+++ b/src/decoder.js
@@ -88,7 +88,7 @@ var decode = function(bytes, mask, names) {
}, {});
}
-if (module) {
+if (typeof module === 'object' && typeof module.exports !== 'undefined') {
module.exports = {
... | fix: work in non-require env | thesolarnomad_lora-serialization | train | js |
f5fbd4e4abd82767f8cad7ca296ff700c2a506ca | diff --git a/types/container/config.go b/types/container/config.go
index <HASH>..<HASH> 100644
--- a/types/container/config.go
+++ b/types/container/config.go
@@ -19,7 +19,6 @@ type Config struct {
AttachStdout bool // Attach the standard output
AttachStderr bool // Attach th... | types/container: remove PublishService from container.Config
This was never used in a non-experimental branch. It was removed from
docker in <URL> | docker_engine-api | train | go |
be2b626d883789b008b092c50e5201c0861bb296 | diff --git a/five.js b/five.js
index <HASH>..<HASH> 100755
--- a/five.js
+++ b/five.js
@@ -100,7 +100,7 @@
return Math.pow(five(), pointFive) * pointFive + pointFive;
};
- five.negative = function() { return -5; };
+ five.negative = function() { return -five(); };
five.loud = function (lang) { return (la... | Reduce copy-paste to keep DRY | jackdclark_five | train | js |
94870eb3b7406c5ec7ea3a418afbd5c8d16368be | diff --git a/aeron-archive/src/main/java/io/aeron/archive/client/AeronArchive.java b/aeron-archive/src/main/java/io/aeron/archive/client/AeronArchive.java
index <HASH>..<HASH> 100644
--- a/aeron-archive/src/main/java/io/aeron/archive/client/AeronArchive.java
+++ b/aeron-archive/src/main/java/io/aeron/archive/client/Aer... | [Java] Avoid use of bridge methods. | real-logic_aeron | train | java |
d2e85c600665e502e0330033220c90633b7155c4 | diff --git a/framework/caching/CCache.php b/framework/caching/CCache.php
index <HASH>..<HASH> 100644
--- a/framework/caching/CCache.php
+++ b/framework/caching/CCache.php
@@ -79,7 +79,9 @@ abstract class CCache extends CApplicationComponent implements ICache, ArrayAcce
public $autoSerialize=true;
/**
- * @var b... | Added a warning to the CCache phpdoc regarding usage of the igbinary
serializer | yiisoft_yii | train | php |
1154a53a016a717d16487b1081c66f5ef48d1b10 | diff --git a/topydo/commands/ListCommand.py b/topydo/commands/ListCommand.py
index <HASH>..<HASH> 100644
--- a/topydo/commands/ListCommand.py
+++ b/topydo/commands/ListCommand.py
@@ -163,6 +163,8 @@ When an expression is given, only the todos matching that expression are shown.
E.g. %{(}p{)} will print (C) when... | Extend help text with right alignment with tab characters. | bram85_topydo | train | py |
ee9720038a94bbdce97db5230e19e189893db35d | diff --git a/satpy/tests/modifier_tests/test_parallax.py b/satpy/tests/modifier_tests/test_parallax.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/modifier_tests/test_parallax.py
+++ b/satpy/tests/modifier_tests/test_parallax.py
@@ -395,6 +395,7 @@ def test_correct_area_clearsky_different_resolutions(res1, res2):
... | Mark partly/no overlap as xfail
Mark the partly/no overlap tests as xfail, awaiting fixes in pyresample. | pytroll_satpy | train | py |
2df8def416e822c564f99bb15b75f9472bf55d6e | diff --git a/enforcer.go b/enforcer.go
index <HASH>..<HASH> 100644
--- a/enforcer.go
+++ b/enforcer.go
@@ -47,11 +47,16 @@ type Enforcer struct {
}
// NewEnforcer creates an enforcer via file or DB.
+//
// File:
-// e := casbin.NewEnforcer("path/to/basic_model.conf", "path/to/basic_policy.csv")
+//
+// e := casbi... | Properly indent sample code in doc | casbin_casbin | train | go |
280b938ed3c883a274a178b93c93c9c5129a1abf | diff --git a/app/controllers/deep_unrest/application_controller.rb b/app/controllers/deep_unrest/application_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/deep_unrest/application_controller.rb
+++ b/app/controllers/deep_unrest/application_controller.rb
@@ -74,7 +74,7 @@ module DeepUnrest
contex... | [bugfix] issue with nested array attributes | graveflex_deep_unrest | train | rb |
2985de6f72a9a01df3c31aabe219c6a8014bb942 | diff --git a/lib/ohai/plugins/linux/platform.rb b/lib/ohai/plugins/linux/platform.rb
index <HASH>..<HASH> 100644
--- a/lib/ohai/plugins/linux/platform.rb
+++ b/lib/ohai/plugins/linux/platform.rb
@@ -33,8 +33,11 @@ if lsb[:id] =~ /RedHat/i
platform "redhat"
platform_version lsb[:release]
elsif lsb[:id] =~ /Amazon... | OHAI-<I>: Fix detection of scientific linux out of lsb_release -a | chef_ohai | train | rb |
c5ccf82130804e87908c1f6d68f7e39062a99367 | diff --git a/setup.js b/setup.js
index <HASH>..<HASH> 100644
--- a/setup.js
+++ b/setup.js
@@ -7,9 +7,13 @@ var fs = require('fs');
var mode = process.argv[2];
var fsExists = fs.exists || sysPath.exists;
+var fsExistsSync = fs.existsSync || sysPath.existsSync;
var getBinaryPath = function(binary) {
- return sys... | fixed coffee-script compilation on installing from a git repository when coffee-script is a parent dependency and is not linked to node_modules subdirectory | brunch_brunch | train | js |
3396f0364daf57414e25a5619c088e3742cbb079 | diff --git a/client-side/grido.js b/client-side/grido.js
index <HASH>..<HASH> 100644
--- a/client-side/grido.js
+++ b/client-side/grido.js
@@ -22,7 +22,7 @@
var Grido = Grido || {};
- /* GRID CLASS DEFINITION */
+ /* GRID DEFINITION */
/* ========================== */
Grido.Grid = f... | Client side: Typo; Added returning Grido object | o5_grido | train | js |
763eb715342cfa5356e3a0c9768eaa4f5b071878 | diff --git a/test.js b/test.js
index <HASH>..<HASH> 100644
--- a/test.js
+++ b/test.js
@@ -53,23 +53,21 @@ scenario('widgets', {
// Test: Simple scenario with 1:M mapping {{{
scenario('users', {
- name: 'Wendy User',
+ name: 'Phil User',
role: 'user',
items: ['widget-quz']
});
scenario('widgets', {
- _ref: ... | BUGFIX: Buggy tests trying to create the same doc twice | hash-bang_Node-Mongoose-Scenario | train | js |
f53a4d955560ae563dad6d31f954be285014d63d | diff --git a/tests/Zepto/Extension/TwigTest.php b/tests/Zepto/Extension/TwigTest.php
index <HASH>..<HASH> 100644
--- a/tests/Zepto/Extension/TwigTest.php
+++ b/tests/Zepto/Extension/TwigTest.php
@@ -45,20 +45,4 @@ class TwigTest extends \PHPUnit_Framework_TestCase
// $this->twig->write('', 'Test content');
... | Removed useless tests from test class for ``Zepto\Extension\Twig`` | hassankhan_Sonic | train | php |
186263faa673cd1947823d7ad9af35efaa989f13 | diff --git a/lib/core/topologies/mongos.js b/lib/core/topologies/mongos.js
index <HASH>..<HASH> 100644
--- a/lib/core/topologies/mongos.js
+++ b/lib/core/topologies/mongos.js
@@ -612,7 +612,7 @@ function reconnectProxies(self, proxies, callback) {
})
);
- destroyServer(_server);
+ destroySer... | fix(mongos): force close servers during reconnect flow | mongodb_node-mongodb-native | train | js |
5fc820d3d23cf21bcacb4632beda8ac4ed1f8d3b | diff --git a/lib/src/start.js b/lib/src/start.js
index <HASH>..<HASH> 100644
--- a/lib/src/start.js
+++ b/lib/src/start.js
@@ -127,9 +127,9 @@ const resolveWith = res => contents => {
res.setHeader('Content-Type', 'text/html')
res.end(`${contents}
-<!-- Inserted by Reload -->
+<!-- Inserted by elm-live -->
<sc... | Change the html comment from "Reload" to "elm-live" | wking-io_elm-live | train | js |
54f3137e8bebf26f11858846d46603bb2be1a8c7 | diff --git a/modules/adkernelBidAdapter.js b/modules/adkernelBidAdapter.js
index <HASH>..<HASH> 100644
--- a/modules/adkernelBidAdapter.js
+++ b/modules/adkernelBidAdapter.js
@@ -67,7 +67,8 @@ export const spec = {
{code: 'stringads'},
{code: 'bcm'},
{code: 'engageadx'},
- {code: 'converge_digital', g... | Adkernel: alias for adomega network (#<I>) | prebid_Prebid.js | train | js |
f844a195ce394252f5cc529d92692c3e94475808 | diff --git a/tasks/release.py b/tasks/release.py
index <HASH>..<HASH> 100644
--- a/tasks/release.py
+++ b/tasks/release.py
@@ -182,7 +182,7 @@ def release_prepare(ctx, target, new_version):
update_requirements(req_file, target, get_requirement_line(target, new_version))
# commit the changes
- msg = "Bump... | add [ci skip] to check bumps (#<I>) | DataDog_integrations-core | train | py |
051b0bf700508913fbba35ae9c5fc8a11f1b976f | diff --git a/src/DbProfilerServiceProvider.php b/src/DbProfilerServiceProvider.php
index <HASH>..<HASH> 100644
--- a/src/DbProfilerServiceProvider.php
+++ b/src/DbProfilerServiceProvider.php
@@ -12,11 +12,20 @@ class DbProfilerServiceProvider extends ServiceProvider
public function boot()
{
- if (!$t... | DBP: Adopted for tests. | dmitry-ivanov_laravel-db-profiler | train | php |
1b14bff81a9ab6654badf52b552f90c8fc3ab0e3 | diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb
index <HASH>..<HASH> 100644
--- a/actionpack/lib/action_dispatch/http/url.rb
+++ b/actionpack/lib/action_dispatch/http/url.rb
@@ -102,10 +102,6 @@ module ActionDispatch
host && IP_HOST_REGEXP !~ host
... | rm `same_host?`. The same conditional is two lines down. | rails_rails | train | rb |
5f8aaafb7f431a85864e1eb8eca09ffcabb7a6c3 | diff --git a/chess/pgn.py b/chess/pgn.py
index <HASH>..<HASH> 100644
--- a/chess/pgn.py
+++ b/chess/pgn.py
@@ -571,7 +571,7 @@ class BaseVisitor(object):
Base class for visitors.
Use with :func:`chess.pgn.Game.accept()` or
- :func:`chess.pgn.GameNode.accept()`.
+ :func:`chess.pgn.GameNode.accept()` or... | Improve chess.pgn error handling docs (#<I>) | niklasf_python-chess | train | py |
3ff1f1a66b8b9990102e87d864b525f56d3b64b5 | diff --git a/lib/plugins/index.js b/lib/plugins/index.js
index <HASH>..<HASH> 100644
--- a/lib/plugins/index.js
+++ b/lib/plugins/index.js
@@ -315,7 +315,6 @@ function loadPlugins(plugins, callback) {
}
function getRulesFromPlugins(type, req, res, plugins, callback) {
- type = type;
loadPlugins(plugins, functio... | refactor: Refine lib/plugins/index.js | avwo_whistle | train | js |
087a3bf1aea5570ee2fb0c50045863a5ff43c628 | diff --git a/js/binance.js b/js/binance.js
index <HASH>..<HASH> 100644
--- a/js/binance.js
+++ b/js/binance.js
@@ -57,8 +57,8 @@ module.exports = class binance extends Exchange {
'api': {
'web': 'https://www.binance.com',
'wapi': 'https://www.binance.com/wapi',... | switched binance to newer urls | ccxt_ccxt | train | js |
cb45a6b70525290371eeb35d725c93c87419ae6d | diff --git a/src/console/Request.php b/src/console/Request.php
index <HASH>..<HASH> 100755
--- a/src/console/Request.php
+++ b/src/console/Request.php
@@ -194,9 +194,9 @@ class Request extends Component
foreach ($data as $prefix => $path) {
if (strpos($ns, $prefix) === 0) {
-
... | Fix bug with incorrect console controllers path detection | levmorozov_mii | train | php |
1bf85182305c64a85e8cef92af6d76972c42fd5a | diff --git a/selector-set.js b/selector-set.js
index <HASH>..<HASH> 100644
--- a/selector-set.js
+++ b/selector-set.js
@@ -184,6 +184,20 @@
return indexes;
};
+ // Public: Log when added selector falls under the default index.
+ //
+ // This API should not be considered stable. May change between
+ // min... | Add hook to log when default index is used | josh_selector-set | train | js |
4d37aa069ec32abfd323be1b42f2efe8603646c2 | diff --git a/lxd/instances.go b/lxd/instances.go
index <HASH>..<HASH> 100644
--- a/lxd/instances.go
+++ b/lxd/instances.go
@@ -295,13 +295,13 @@ func instancesRestart(s *state.State) error {
return nil
}
-type containerStopList []instance.Instance
+type instanceStopList []instance.Instance
-func (slice container... | lxd/instances: containerStopList -> instanceStopList | lxc_lxd | train | go |
5e2561a3be4752ecfee2112021913f2dbe2015e4 | diff --git a/lxd/rbac/server.go b/lxd/rbac/server.go
index <HASH>..<HASH> 100644
--- a/lxd/rbac/server.go
+++ b/lxd/rbac/server.go
@@ -332,7 +332,17 @@ func (r *Server) UserAccess(username string) (*UserAccess, error) {
continue
}
- access.Projects[k] = v
+ // Look for project name.
+ for projectName, resou... | lxd/rbac: Fix checks by matching proper name
The data from RBAC uses resource IDs not project names, so we need to
map things through r.resources. | lxc_lxd | train | go |
82f708dd88bd14bb14442ce0cd80aed3aeb01ea5 | diff --git a/src/ImmutableStore.es6.js b/src/ImmutableStore.es6.js
index <HASH>..<HASH> 100644
--- a/src/ImmutableStore.es6.js
+++ b/src/ImmutableStore.es6.js
@@ -19,6 +19,9 @@ var invariant = require('invariant');
var Immutable = require('immutable');
var ObjectOrientedStore = require('./ObjectOrientedStore.es6');
... | Fixes #<I> - disable immutable checks in production | addthis_fluxthis | train | js |
a8097f2c406bc6d5a16ba520957e72846cfc14c7 | diff --git a/spec/controllers/curation_concerns/admin_controller_spec.rb b/spec/controllers/curation_concerns/admin_controller_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/controllers/curation_concerns/admin_controller_spec.rb
+++ b/spec/controllers/curation_concerns/admin_controller_spec.rb
@@ -27,7 +27,7 @@ RSpec.d... | Updating specs to duck type workflows | samvera_hyrax | train | rb |
6a2d9c3b28fb7f1e3ca1b68d2e146ac5a19150f0 | diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -2,11 +2,14 @@ import querystring from 'querystring'
import 'isomorphic-fetch' // eslint-disable-line import/no-unassigned-import
import { required, checkStatus, parseJSON } from './helpers'
+const { localS... | feat(client): save token in localstorage | Syncano_syncano-client-js | train | js |
8549547e8f4b8991609070e6b37a1ff989918376 | diff --git a/order.js b/order.js
index <HASH>..<HASH> 100644
--- a/order.js
+++ b/order.js
@@ -9,25 +9,38 @@ Query.prototype.order = function (options) {
}
var
- key = null,
+ asc = [],
+ desc = [],
self = this,
sort = options.sort || {},
value = null;
- // TODO: Apply sort direction
- //if (sort.de... | modifying the sorting to allow for desc or asc... the order in which sort is applied is desc first then asc | PlayNetwork_mongoose-middleware | train | js |
038dfe35af2f346045b5b8133291d08825d842bf | diff --git a/lib/yardstick/version.rb b/lib/yardstick/version.rb
index <HASH>..<HASH> 100644
--- a/lib/yardstick/version.rb
+++ b/lib/yardstick/version.rb
@@ -2,5 +2,5 @@
module Yardstick
# Gem version
- VERSION = '0.9.7'.freeze
+ VERSION = '0.9.8'.freeze
end # module Yardstick | Bump to version <I> | dkubb_yardstick | train | rb |
8623a4e669e1a55f1f8f06236d1e381c2c660e16 | diff --git a/messenger.go b/messenger.go
index <HASH>..<HASH> 100644
--- a/messenger.go
+++ b/messenger.go
@@ -76,7 +76,7 @@ func (m *Messenger) handlePOST(rw http.ResponseWriter, req *http.Request) {
}
//Message integrity check
if m.AppSecret != "" {
- if req.Header.Get("x-hub-signature") == "" || !checkIntegri... | Fixed panic if forged request contained too short x-hub-signature | maciekmm_messenger-platform-go-sdk | train | go |
177a10ba1668f1319611f2e64e2e63a8bf486f1c | diff --git a/host/logmux/sink.go b/host/logmux/sink.go
index <HASH>..<HASH> 100644
--- a/host/logmux/sink.go
+++ b/host/logmux/sink.go
@@ -419,7 +419,9 @@ func (s *LogAggregatorSink) Connect() error {
}
func (s *LogAggregatorSink) Close() {
- s.conn.Close()
+ if s.conn != nil {
+ s.conn.Close()
+ }
}
func (s *... | host/logmux: Don't attempt to close nil conn on Close | flynn_flynn | train | go |
04fefc1487693e750ca5e2dd8fe7fe389d63ada0 | diff --git a/tests/system/View/ParserTest.php b/tests/system/View/ParserTest.php
index <HASH>..<HASH> 100644
--- a/tests/system/View/ParserTest.php
+++ b/tests/system/View/ParserTest.php
@@ -860,6 +860,28 @@ class ParserTest extends \CIUnitTestCase
$this->assertEquals('0. foo bar 1. baz 2. foo bar ', $parser->render... | add test for parse plugin with named params | codeigniter4_CodeIgniter4 | train | php |
33113e55cb500e71ccb89fe7ffc6861da4cbcb14 | diff --git a/metrics-jetty9/src/main/java/com/codahale/metrics/jetty9/InstrumentedHandler.java b/metrics-jetty9/src/main/java/com/codahale/metrics/jetty9/InstrumentedHandler.java
index <HASH>..<HASH> 100644
--- a/metrics-jetty9/src/main/java/com/codahale/metrics/jetty9/InstrumentedHandler.java
+++ b/metrics-jetty9/src/... | InstrumentedHandler: Remove duplicate calls to activeRequests.dec().
The counter is decremented inside updateResponses(). This caused the
active-requests counter to be negative. | dropwizard_metrics | train | java |
77633366cc6440ef3bed85c7546a187b33e2729f | diff --git a/src/java/com/threerings/media/sound/SoundManager.java b/src/java/com/threerings/media/sound/SoundManager.java
index <HASH>..<HASH> 100644
--- a/src/java/com/threerings/media/sound/SoundManager.java
+++ b/src/java/com/threerings/media/sound/SoundManager.java
@@ -1,5 +1,5 @@
//
-// $Id: SoundManager.java,v ... | Handle not finding a music player for a song gracefully.
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 |
1d974f5a481539fd427eea00d551fa3af918f80e | diff --git a/cake/console/shells/tasks/db_config.php b/cake/console/shells/tasks/db_config.php
index <HASH>..<HASH> 100644
--- a/cake/console/shells/tasks/db_config.php
+++ b/cake/console/shells/tasks/db_config.php
@@ -305,10 +305,9 @@ class DbConfigTask extends Shell {
$out .= "class DATABASE_CONFIG {\n\n";
fo... | Fixing issue that caused db config generation to fail. | cakephp_cakephp | train | php |
971c194624ee0736bb2fff94d0dae2cdcaeb3eee | diff --git a/mcex/distributions/distributions.py b/mcex/distributions/distributions.py
index <HASH>..<HASH> 100644
--- a/mcex/distributions/distributions.py
+++ b/mcex/distributions/distributions.py
@@ -94,4 +94,11 @@ def ZeroInflatedPoisson(theta, z):
return switch(z,
Poisson(theta)(va... | added trunction function for distributions | pymc-devs_pymc | train | py |
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.