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 |
|---|---|---|---|---|---|
ac4266833761858da71c6809a4bf9dc038de5c5f | diff --git a/lib/zipline/output_stream.rb b/lib/zipline/output_stream.rb
index <HASH>..<HASH> 100644
--- a/lib/zipline/output_stream.rb
+++ b/lib/zipline/output_stream.rb
@@ -17,12 +17,16 @@ module Zipline
def put_next_entry(entry_name, size)
new_entry = Zip::Entry.new(@file_name, entry_name)
- new_e... | Set uncompressed size in local file header to 0
The ZIP spec [1] describes in section <I> that the uncompressed size
field is set to zero in the local file header if bit 3 of the general
purpose flags is set, which zipline does.
Some applications actually care about this, e.g. Powerpoint regards a
file as corrupt whe... | fringd_zipline | train | rb |
26e498a21538a76421409881fd301d7a8b9278fb | diff --git a/lib/kleisli/maybe.rb b/lib/kleisli/maybe.rb
index <HASH>..<HASH> 100644
--- a/lib/kleisli/maybe.rb
+++ b/lib/kleisli/maybe.rb
@@ -18,6 +18,7 @@ module Kleisli
def *(other)
self >-> f {
+ f = f.to_proc
other >-> val {
Maybe.lift(f.arity > 1 ? f.curry.call(val) : f.ca... | Improve appl. functor in maybe | txus_kleisli | train | rb,rb |
fc8ed811841d25c69ee5b8536c98d4e681a01d28 | diff --git a/peri/fft.py b/peri/fft.py
index <HASH>..<HASH> 100644
--- a/peri/fft.py
+++ b/peri/fft.py
@@ -54,7 +54,7 @@ def load_wisdom(wisdomfile):
return
try:
- pyfftw.import_wisdom(pickle.load(open(wisdomfile)))
+ pyfftw.import_wisdom(pickle.load(open(wisdomfile, 'rb')))
except IO... | load with rb in load_wisdom to fix EOFError. | peri-source_peri | train | py |
7c9ced4a3e23ebfdea01b80e87b5a7de569dee1a | diff --git a/src/test/java/com/ecyrd/speed4j/MultiThreadTest.java b/src/test/java/com/ecyrd/speed4j/MultiThreadTest.java
index <HASH>..<HASH> 100644
--- a/src/test/java/com/ecyrd/speed4j/MultiThreadTest.java
+++ b/src/test/java/com/ecyrd/speed4j/MultiThreadTest.java
@@ -9,11 +9,11 @@ import com.ecyrd.speed4j.log.Period... | Now closes the PeriodicalLog properly. | jalkanen_speed4j | train | java |
aec60960cef7a30b2b7269cd2183fe865b764ff0 | diff --git a/synapse/cores/common.py b/synapse/cores/common.py
index <HASH>..<HASH> 100644
--- a/synapse/cores/common.py
+++ b/synapse/cores/common.py
@@ -321,6 +321,10 @@ class Cortex(EventBus,DataModel,Runtime,Configable):
for form,fnfo,props in modl.get('forms',()):
+ # allow forms declared w... | make ptype default to the same name as the property during model import | vertexproject_synapse | train | py |
875d7923318233513e4b602a8dad984d10d384c0 | diff --git a/source/js/date/VCO.Date.js b/source/js/date/VCO.Date.js
index <HASH>..<HASH> 100644
--- a/source/js/date/VCO.Date.js
+++ b/source/js/date/VCO.Date.js
@@ -102,7 +102,7 @@ VCO.Date = VCO.Class.extend({
_createDisplayType: function() {
if (Date == this.data.date_obj.constructor) {
this... | fix typo that wasn't using the short format. but this stuff is not long for this world anyway... | NUKnightLab_TimelineJS3 | train | js |
a9e616d87fc3b50ba81ea2bc3599b9d4d7b7d9cb | diff --git a/lib/components/resource-editing/resource-form/TypeAheadInput.js b/lib/components/resource-editing/resource-form/TypeAheadInput.js
index <HASH>..<HASH> 100644
--- a/lib/components/resource-editing/resource-form/TypeAheadInput.js
+++ b/lib/components/resource-editing/resource-form/TypeAheadInput.js
@@ -359,7... | Switching back to ES5 variable declaration to be compatible with build process | MortarJS_Mortar-JS | train | js |
195be9ef023cc582e9d75da6e8521e1efc1843df | diff --git a/spec/unit/shared/attributes_spec.rb b/spec/unit/shared/attributes_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/unit/shared/attributes_spec.rb
+++ b/spec/unit/shared/attributes_spec.rb
@@ -222,7 +222,7 @@ module ActiveGraph::Shared
it 'raises when setting an undefined attribute' do
exp... | relaxed match in a spec due to ruby <I> changes | neo4jrb_neo4j | train | rb |
902783c4dda9c5bfc73a3efe9f5daac682fb3fbe | diff --git a/volume/drivers/fake/fake.go b/volume/drivers/fake/fake.go
index <HASH>..<HASH> 100644
--- a/volume/drivers/fake/fake.go
+++ b/volume/drivers/fake/fake.go
@@ -322,6 +322,7 @@ func (d *driver) Set(volumeID string, locator *api.VolumeLocator, spec *api.Volu
v.Spec.Journal = spec.Journal
v.Spec.SnapshotI... | Fake driver needs to update spec | libopenstorage_openstorage | train | go |
4a2eab84257a00f4c3e93ed8c9ec28221b1ddabb | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ test_requirements = [
setup(
name='satel_integra',
- version='0.1.0',
+ version='0.2.0',
description="Communication library and basic testing tool for Satel "
"Integra alarm s... | Bounced version change, dropped Python 2 support in setup.py. | c-soft_satel_integra | train | py |
e757c3d2f10f2b19051017ccb6219251da288c22 | diff --git a/haphilipsjs/__init__.py b/haphilipsjs/__init__.py
index <HASH>..<HASH> 100644
--- a/haphilipsjs/__init__.py
+++ b/haphilipsjs/__init__.py
@@ -315,7 +315,9 @@ class PhilipsTV(object):
try:
resp = await self.session.get(self._url(path), timeout=TIMEOUT)
if resp.status_code ... | Log get responses when debug is on | danielperna84_ha-philipsjs | train | py |
41964721309abbf521bbe84235644153aa56b268 | diff --git a/bosh_aws_cpi/spec/unit/spot_manager_spec.rb b/bosh_aws_cpi/spec/unit/spot_manager_spec.rb
index <HASH>..<HASH> 100644
--- a/bosh_aws_cpi/spec/unit/spot_manager_spec.rb
+++ b/bosh_aws_cpi/spec/unit/spot_manager_spec.rb
@@ -102,19 +102,15 @@ describe Bosh::AwsCloud::SpotManager do
# When erroring, shoul... | Remove time-related assertions from spot manager tests. | cloudfoundry_bosh | train | rb |
9db026de95bb8f2cda6a1a61d870bbcfe51deb90 | diff --git a/framework/core/js/forum/src/components/UserCard.js b/framework/core/js/forum/src/components/UserCard.js
index <HASH>..<HASH> 100644
--- a/framework/core/js/forum/src/components/UserCard.js
+++ b/framework/core/js/forum/src/components/UserCard.js
@@ -26,10 +26,11 @@ export default class UserCard extends Com... | Don't apply background color if there is none | flarum_core | train | js |
7a1759af2c97c1dee091f2cc478a9c7b8d00de1a | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
name='duckling',
version='1.1.0',
description='A wrapper for wit.ai\'s Duckling',
- url='https://github.com/FraBle/duckling',
+ url='https://github.com/FraBle/python-duckling',
a... | fixed link to repo for pypi | FraBle_python-duckling | train | py |
de3a47344859f1c3f5391dec566d2ad639cbd0d8 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -76,16 +76,14 @@ class BuildWithPly(build):
tn.write(version)
def build_nt2(self):
- """
- Install NT2 from the github-generated archive
- """
+ """ Install NT2 from the github-g... | Ugly hack to make numpy.dot work | serge-sans-paille_pythran | train | py |
c79ca7fb58cda19852baea2de9a90c703ef9aa90 | diff --git a/benchmarks/benchmarks/compute.py b/benchmarks/benchmarks/compute.py
index <HASH>..<HASH> 100644
--- a/benchmarks/benchmarks/compute.py
+++ b/benchmarks/benchmarks/compute.py
@@ -32,14 +32,14 @@ class BenchmarkConstellation:
state = (0,) * 7
self.subsys = Subsystem(network, state, ... | Raise `ValueError` in `compute` benchmarks for bad params | wmayner_pyphi | train | py |
ce2f17b4f7631f7989c668495f93f1756312d350 | diff --git a/src/Laravel/Cashier/StripeGateway.php b/src/Laravel/Cashier/StripeGateway.php
index <HASH>..<HASH> 100644
--- a/src/Laravel/Cashier/StripeGateway.php
+++ b/src/Laravel/Cashier/StripeGateway.php
@@ -138,6 +138,10 @@ class StripeGateway {
$this->quantity(
$customer->subscription->quantity
);
+ ... | swap() doesn't reflect $quantity when provided
As best as I can tell $quantity is never assigned, only checked on Line <I>. | laravel_cashier | train | php |
bdff45f7434bab2962b870c485f8becce7345a80 | diff --git a/mode/xml/xml.js b/mode/xml/xml.js
index <HASH>..<HASH> 100644
--- a/mode/xml/xml.js
+++ b/mode/xml/xml.js
@@ -320,6 +320,7 @@ CodeMirror.defineMode("xml", function(config, parserConfig) {
};
});
+CodeMirror.defineMIME("text/xml", "xml");
CodeMirror.defineMIME("application/xml", "xml");
if (!CodeMir... | [xml] support mime type `text/xml` (see RFC <I>) | codemirror_CodeMirror | train | js |
595c19376329bd55f9a7b35f681a32ebe87e91f2 | diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -73,8 +73,8 @@ function createXHR(options, callback) {
xhr.setRequestHeader(key, headers[key])
}
}
- } else {
- options.headers || throw new Error("Headers cannot be set on an X... | Throw is a statement. Fix #<I> | naugtur_xhr | train | js |
baeeaea4c504704de421f38c11fb279a337c4384 | diff --git a/solr/parser.go b/solr/parser.go
index <HASH>..<HASH> 100644
--- a/solr/parser.go
+++ b/solr/parser.go
@@ -45,8 +45,8 @@ func (parser *StandardResultParser) ParseResponseHeader(response *SolrResponse,
}
func (parser *StandardResultParser) ParseError(response *SolrResponse, sr *SolrResult) {
- if error,... | Avoid to user \"error\" as variable name since we have type error | vanng822_go-solr | train | go |
090024c297e61170e3231aa2f7ca9d1a8ce7edfc | diff --git a/python/ray/air/config.py b/python/ray/air/config.py
index <HASH>..<HASH> 100644
--- a/python/ray/air/config.py
+++ b/python/ray/air/config.py
@@ -1,14 +1,5 @@
from dataclasses import dataclass
-from typing import (
- TYPE_CHECKING,
- Any,
- Callable,
- Dict,
- List,
- Mapping,
- Optio... | [AIR] Fix `FailureConfig` not being a dataclass (#<I>) | ray-project_ray | train | py |
aa3d0c6aa14e6f0970810c3f34b9bd3d0f8c35c3 | diff --git a/astroplan/core.py b/astroplan/core.py
index <HASH>..<HASH> 100644
--- a/astroplan/core.py
+++ b/astroplan/core.py
@@ -33,7 +33,7 @@ import numpy as np
__all__ = ["Observer", "Target", "FixedTarget", "NonFixedTarget",
"Constraint", "TimeWindow", "AltitudeRange",
- "AboveAirmass", "O... | Also removing Observation from __all__ | astropy_astroplan | train | py |
d92086568acf00f4d5553510fbe6b6b12b04f6df | diff --git a/src/main/java/com/redhat/victims/VictimsRecord.java b/src/main/java/com/redhat/victims/VictimsRecord.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/redhat/victims/VictimsRecord.java
+++ b/src/main/java/com/redhat/victims/VictimsRecord.java
@@ -167,7 +167,7 @@ public class VictimsRecord {
}
... | If not fingerprint matches were found, containsAll should rely on hash | victims_victims-lib-java | train | java |
08b3d3898dff93c61765084f3dd324f68fdad3e8 | diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -77,8 +77,30 @@ export class TypeaheadEditor extends Editor {
}
};
+ onEscape = (e) => {
+ const { onEscape, onTypeaheadChange } = this.props;
+
+ if (!this.getTypeaheadRange()) {
+ if (on... | Dismiss the typeahead when escape is pressed. | dooly-ai_draft-js-typeahead | train | js |
532a88c95f69f7b75f60cc62f6d8520ce13227ee | diff --git a/agent/lib/agent/handler.rb b/agent/lib/agent/handler.rb
index <HASH>..<HASH> 100644
--- a/agent/lib/agent/handler.rb
+++ b/agent/lib/agent/handler.rb
@@ -34,7 +34,7 @@ module Bosh::Agent
klazz = Bosh::Agent::Message.const_get(c)
if klazz.respond_to?(:process)
# CamelCase -> und... | <I> fix in handler - explicit to_s on symbol | cloudfoundry_bosh | train | rb |
d4aa74f7a7fe58fe4d065843e698a12281ca1d97 | diff --git a/src/ACacheManager.php b/src/ACacheManager.php
index <HASH>..<HASH> 100644
--- a/src/ACacheManager.php
+++ b/src/ACacheManager.php
@@ -84,7 +84,10 @@ abstract class ACacheManager
*/
protected function _createData(callable $func): array
{
- $data = (array) \call_user_func($func);
+ ... | Just a little improvement on last commit | GustavSoftware_Cache | train | php |
8c5ebff406e83eddf23698abc5167581293e060c | diff --git a/utils.py b/utils.py
index <HASH>..<HASH> 100644
--- a/utils.py
+++ b/utils.py
@@ -239,7 +239,6 @@ class MessagesHandlerMixIn(object):
chkid = msg.msgid[1:3]
if not msg.may_be_emitted():
self._msgs_state[msg.msgid] = False
- continue
sel... | Always register messages even if they may not be emitted.
This avoid several problems:
* error reported because the message is used in enable/disable
* check_message doesn't work properly because message is erroneously considered
as enabled (because check_message_id raise UnknownMessage)
So, put them all in linte... | PyCQA_pylint | train | py |
4dd60e3cd8bdba1812f42713dd927ce05c7e874b | diff --git a/lib/seahorse/model/shapes/shape.rb b/lib/seahorse/model/shapes/shape.rb
index <HASH>..<HASH> 100644
--- a/lib/seahorse/model/shapes/shape.rb
+++ b/lib/seahorse/model/shapes/shape.rb
@@ -57,7 +57,8 @@ module Seahorse
property :serialized_name, String
def serialized_name
- @seria... | Shape#serialized_name will no longer return the empty string. | aws_aws-sdk-ruby | train | rb |
3ac3bfcede7d4d523f9f9458500dd78b5eae7df4 | diff --git a/http/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/listener/WebSocketServerConnectorErrorHandler.java b/http/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/listener/WebSocketServerConnectorErrorHandler.java
index <HASH>..<HA... | Modified WebSocketServerConnectorErrorHandler to include more details about the error. | wso2_transport-http | train | java |
f8408d70e3cea58343d5dabdccbec4fc6f718449 | diff --git a/models/Assoc.py b/models/Assoc.py
index <HASH>..<HASH> 100644
--- a/models/Assoc.py
+++ b/models/Assoc.py
@@ -51,7 +51,7 @@ class Assoc:
return
- def addAssociationToGraph(self,g):
+ def addAssociationToGraph(self, g):
cu = self.cu
# first, add the direct triple
@@ -6... | added MONARCH:hasPredicate to assoc class | monarch-initiative_dipper | train | py |
bf3641311b6baaef760bee0df4bbeae2e778538a | diff --git a/client/me/concierge/shared/upsell.js b/client/me/concierge/shared/upsell.js
index <HASH>..<HASH> 100644
--- a/client/me/concierge/shared/upsell.js
+++ b/client/me/concierge/shared/upsell.js
@@ -30,7 +30,7 @@ class Upsell extends Component {
</CompactCard>
<CompactCard>
<p>
- { translat... | Update copy (#<I>) | Automattic_wp-calypso | train | js |
8758ca89a18fafd50be8105a41640f48cb766089 | diff --git a/nitro.js b/nitro.js
index <HASH>..<HASH> 100644
--- a/nitro.js
+++ b/nitro.js
@@ -336,7 +336,7 @@ function processPid(host,path,api_key,pid) {
.add(api.mProgrammesGenreGroupings)
if (upcoming || children) {
- query.add(api.fProgrammesChildrenOf,pid)
+ query.add(api.fProgrammesDescendantsOf,pid)
... | nitro; allow -z and -p together. -k now descendants | MikeRalphson_bbcparse | train | js |
8a8a04d88609acf735db0a7b176f6bfe9efa506e | diff --git a/lib/rika.rb b/lib/rika.rb
index <HASH>..<HASH> 100644
--- a/lib/rika.rb
+++ b/lib/rika.rb
@@ -4,7 +4,7 @@ raise "You need to run JRuby to use Rika" unless RUBY_PLATFORM =~ /java/
require "rika/version"
require 'uri'
-require 'net/http'
+require 'open-uri'
require 'java'
Dir[File.join(File.dirname(_... | Changed Net::HTTP to OpenURI | ricn_rika | train | rb |
e50d33308a910db54158ea438282f09621769e74 | diff --git a/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php b/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php
index <HASH>..<HASH> 100644
--- a/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php
+++ b/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php
@... | [HttpKernel] fixed the creation of the Profiler directory | symfony_symfony | train | php |
b252468ca293b1a72fc7af4184533b556e84df18 | diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_bare_client.py
+++ b/telethon/telegram_bare_client.py
@@ -299,6 +299,13 @@ class TelegramBareClient:
self.disconnect()
return self.connect()
+ def set_proxy... | TelegramBareClient: Add set_proxy() method
This allows to change proxy without recreation of the client instance. | LonamiWebs_Telethon | train | py |
be2492f2528258f12865b62ae6695587e60bd716 | diff --git a/writer/src/main/java/com/ning/metrics/serialization/writer/DiskSpoolEventWriter.java b/writer/src/main/java/com/ning/metrics/serialization/writer/DiskSpoolEventWriter.java
index <HASH>..<HASH> 100644
--- a/writer/src/main/java/com/ning/metrics/serialization/writer/DiskSpoolEventWriter.java
+++ b/writer/src... | writer: add shutdown method for executor
The DiskSpoolEventWriter periodically flushes events via an executor
service. Add a shutdown method for shutdown hooks. | pierre_serialization | train | java |
5796908aba8d96e10578eb69d1bffc2dd745c79d | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -99,11 +99,7 @@ for accessing Google's Cloud Platform services such as Google BigQuery.
'plotly==1.12.5',
'httplib2==0.10.3',
'oauth2client==2.2.0',
- # TODO(rajivpb): Pinning pandas to 0.19.1 is a temporary ... | Upgrade pandas (#<I>)
* Upgrade pandas and add pandas-gbq since apache-airflow wants these
* Remove pandas-gbq since this is only required by apache-airflow | googledatalab_pydatalab | train | py |
a659e0f8a5dad714a6acf427149726edf248b054 | diff --git a/lib/router.js b/lib/router.js
index <HASH>..<HASH> 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -293,7 +293,8 @@ mergeInto(Router.prototype, {
},
/**
- * Renders this router's component to the given DOM node.
+ * Renders this router's component to the given DOM node and returns a
+ * ref... | Return a reference to the rendered component | taion_rrtr | train | js |
b8db85e45d64457f92899341e431198208184923 | diff --git a/lib/plugin.js b/lib/plugin.js
index <HASH>..<HASH> 100644
--- a/lib/plugin.js
+++ b/lib/plugin.js
@@ -56,7 +56,14 @@ ManifestPlugin.prototype.apply = function(compiler) {
var seed = this.opts.seed || {};
var publicPath = this.opts.publicPath != null ? this.opts.publicPath : compilation.options.... | Fix high memory usage (#<I>)
closes #<I> | danethurber_webpack-manifest-plugin | train | js |
aba469e01bb4cae739035c370efbd5cfbe7ff71b | diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -133,7 +133,7 @@ html_theme = 'default'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builti... | Workaround for sphinx warning
Fixes following warning when generating documentation.
WARNING: html_static_path entry u'.../_static' does not exist
More info: <URL> | product-definition-center_pdc-client | train | py |
cd6e9d84fc78fe1f9c809ab78d13cfd0374e8ac6 | diff --git a/Tests/TestCase.php b/Tests/TestCase.php
index <HASH>..<HASH> 100644
--- a/Tests/TestCase.php
+++ b/Tests/TestCase.php
@@ -15,7 +15,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
- if (!class_exists('Monolog\Logger')) {
+ if (!class_exists('Mo... | Skip tests if some vendor are not available (prevents fatal errors) | symfony_monolog-bundle | train | php |
d3eda26bc4efb44c8794c662577bd4c949eeb7be | diff --git a/opal/corelib/regexp.rb b/opal/corelib/regexp.rb
index <HASH>..<HASH> 100644
--- a/opal/corelib/regexp.rb
+++ b/opal/corelib/regexp.rb
@@ -194,6 +194,10 @@ class Regexp
return result;
}
end
+
+ def casefold?
+ `self.ignoreCase`
+ end
alias to_s source
end
diff --git a/spec/filt... | Implement Regexp#casefold? | opal_opal | train | rb,rb |
3a1c3e5f7e7c619ef64e06448ff9a55cd10f6362 | diff --git a/actionbarsherlock/src/com/actionbarsherlock/internal/ResourcesCompat.java b/actionbarsherlock/src/com/actionbarsherlock/internal/ResourcesCompat.java
index <HASH>..<HASH> 100644
--- a/actionbarsherlock/src/com/actionbarsherlock/internal/ResourcesCompat.java
+++ b/actionbarsherlock/src/com/actionbarsherlock... | Update docs to reflect behavior. | JakeWharton_ActionBarSherlock | train | java |
11072ba940d4351ce6ed0c9ea1dfd432e29565a3 | diff --git a/scripts/build-dev-server-client.js b/scripts/build-dev-server-client.js
index <HASH>..<HASH> 100644
--- a/scripts/build-dev-server-client.js
+++ b/scripts/build-dev-server-client.js
@@ -29,7 +29,7 @@ async function bundleDevServerClient() {
banner: [
'<meta charset="utf-8">',
'💎 Stencil... | fix(hmr): main script needs to be sync | ionic-team_stencil | train | js |
ec38dffbd548bee4bd129b8bd907994c3cb68e2e | diff --git a/penaltymodel_maxgap/tests/test_interface.py b/penaltymodel_maxgap/tests/test_interface.py
index <HASH>..<HASH> 100644
--- a/penaltymodel_maxgap/tests/test_interface.py
+++ b/penaltymodel_maxgap/tests/test_interface.py
@@ -56,12 +56,3 @@ class TestInterface(unittest.TestCase):
else:
... | Remove test that checks the non-zero feasible state filter
Since MaxGap now supports non-zero feasible states, we no longer need to filter out non-zero feasible state problems. Since the filter has been removed, this test is no longer valid. | dwavesystems_penaltymodel | train | py |
9851579ef6514edf05c6af19aa5fd1f029405cbb | diff --git a/geocoder/gisgraphy.py b/geocoder/gisgraphy.py
index <HASH>..<HASH> 100644
--- a/geocoder/gisgraphy.py
+++ b/geocoder/gisgraphy.py
@@ -54,7 +54,7 @@ class GisgraphyQuery(MultipleResultsQuery):
API Reference
-------------
- http://www.gisgraphy.com/documentation/api/
+ http://www.gisgraphy.... | Change documentation to url provided by David Masclet | DenisCarriere_geocoder | train | py,py |
d9e8c0afd5deb6c60bfdc8aa600438fefacd84ee | diff --git a/urlfetch.py b/urlfetch.py
index <HASH>..<HASH> 100644
--- a/urlfetch.py
+++ b/urlfetch.py
@@ -677,16 +677,6 @@ class ObjectDict(dict):
self[name] = value
-def _flatten(lst):
- """Flatten nested list/tuple/set.
-
- modified from https://gist.github.com/1308410
- """
- return reduce(... | _flatten_list did so much, too. Remove it. | ifduyue_urlfetch | train | py |
9a7a420b648f9eca890704d85268a4bd71afaaa8 | diff --git a/lib/restify/context.rb b/lib/restify/context.rb
index <HASH>..<HASH> 100644
--- a/lib/restify/context.rb
+++ b/lib/restify/context.rb
@@ -40,7 +40,7 @@ module Restify
processor.new(context, response).resource
end
- def request(method, uri, data = nil, **kwargs)
+ def request(method, uri... | Fix wrong request data handling
Last hash passed to request method was handled as empty
keyword argument list instead of data argument. | jgraichen_restify | train | rb |
e2c64edd50ac177db6856fc9930c5e71a48b9a62 | diff --git a/lib/openapi3_parser/nodes/example.rb b/lib/openapi3_parser/nodes/example.rb
index <HASH>..<HASH> 100644
--- a/lib/openapi3_parser/nodes/example.rb
+++ b/lib/openapi3_parser/nodes/example.rb
@@ -8,19 +8,19 @@ module Openapi3Parser
include Node::Object
def summary
- fields["summary"]
+... | Fix using old accessor in Example node
This still referred to fields which was the old means to refer to
a nodes data. | kevindew_openapi3_parser | train | rb |
f936128f5b63ac563512e80c6802876f97857110 | diff --git a/lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js b/lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js
index <HASH>..<HASH> 100644
--- a/lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js
+++ b/lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js
@@ -93,7 ... | MDL-<I> fix TinyMCE managefiles plugin for textareas that do not support file uploads
The current managefiles plugin assumes that every file manager will be created
by either calling use_editor without filepicker options ($fpoptions) or with
filepicker options that include options for the moodleimage plugin. | moodle_moodle | train | js |
fc6844cca6bac20a8e4c79cd04dd71a937afc980 | diff --git a/src/File/File.php b/src/File/File.php
index <HASH>..<HASH> 100644
--- a/src/File/File.php
+++ b/src/File/File.php
@@ -13,7 +13,7 @@ use function Siler\Functional\concat;
*
* @param string $dirname
* @param string $regex
- * @param int $mode
+ * @param int(0)|int(1)|int(2)|int(3)|int(4) $mode
*
* ... | types: fix finite set of ints | leocavalcante_siler | train | php |
26400c8c4da9cb51d16fcebb3ad1a47498fd3f8c | diff --git a/lib/dynamoid/adapter_plugin/aws_sdk_v2.rb b/lib/dynamoid/adapter_plugin/aws_sdk_v2.rb
index <HASH>..<HASH> 100644
--- a/lib/dynamoid/adapter_plugin/aws_sdk_v2.rb
+++ b/lib/dynamoid/adapter_plugin/aws_sdk_v2.rb
@@ -587,7 +587,7 @@ module Dynamoid
expected = Hash.new { |h,k| h[k] = {} }
ret... | remove :unless_exists options as it is no longer accepted by aws sdk v2 | Dynamoid_dynamoid | train | rb |
917fbfaf368f2274f0928f8703b15a85a0c7bd6b | diff --git a/lib/fetch/index.js b/lib/fetch/index.js
index <HASH>..<HASH> 100644
--- a/lib/fetch/index.js
+++ b/lib/fetch/index.js
@@ -1597,13 +1597,10 @@ function httpNetworkFetch (
// 2. If aborted, then:
function onResponseAborted () {
- // 1. Finalize response for fetchParams and response.
- ... | fix: fetch don't finalize on abort | mcollina_undici | train | js |
36663add9f53da925f1d29c8c567ab30a1f33139 | diff --git a/tests/api_resources/checkout/test_session.py b/tests/api_resources/checkout/test_session.py
index <HASH>..<HASH> 100644
--- a/tests/api_resources/checkout/test_session.py
+++ b/tests/api_resources/checkout/test_session.py
@@ -3,7 +3,7 @@ from __future__ import absolute_import, division, print_function
imp... | Add support for retrieving a Checkout Session | stripe_stripe-python | train | py |
8f827456d240489ad8c8deaf95170c0ea41e0cf8 | diff --git a/lib/chalk-log.rb b/lib/chalk-log.rb
index <HASH>..<HASH> 100644
--- a/lib/chalk-log.rb
+++ b/lib/chalk-log.rb
@@ -36,6 +36,13 @@ module Chalk::Log
# add.)
LEVELS = [:debug, :info, :warn, :error, :fatal].freeze
+ module Clevels
+ Sheddable = 'sheddable'
+ SheddablePlus = 'sheddableplus'
+ ... | Add statically-defined constants for criticality levels | stripe-archive_chalk-log | train | rb |
eff9fbb3d3e0cea4a02821e46aee630ae73293b5 | diff --git a/dockerclient/client.go b/dockerclient/client.go
index <HASH>..<HASH> 100644
--- a/dockerclient/client.go
+++ b/dockerclient/client.go
@@ -25,6 +25,11 @@ import (
"io/ioutil"
)
+// NewClientFromEnv is exposed to simplify getting a client when vendoring this library.
+func NewClientFromEnv() (*docker.Cl... | Add a helper method for getting client library
Simplifies using the version of the docker client that is vendored with
this package (due to drastic changes in Docker client library
dependencies). | openshift_imagebuilder | train | go |
5fb000f7b458ff807985d9f00089bc7992e9e9dc | diff --git a/tests/TestCase/Database/Driver/SqlserverTest.php b/tests/TestCase/Database/Driver/SqlserverTest.php
index <HASH>..<HASH> 100644
--- a/tests/TestCase/Database/Driver/SqlserverTest.php
+++ b/tests/TestCase/Database/Driver/SqlserverTest.php
@@ -143,6 +143,7 @@ class SqlserverTest extends TestCase
$ex... | add 'port' to expected result | cakephp_cakephp | train | php |
d04f4b794ec2b27725223c2f807fc7c2e8cfcfa3 | diff --git a/metamorphosis-server/src/main/java/com/taobao/metamorphosis/server/stats/StatsManager.java b/metamorphosis-server/src/main/java/com/taobao/metamorphosis/server/stats/StatsManager.java
index <HASH>..<HASH> 100644
--- a/metamorphosis-server/src/main/java/com/taobao/metamorphosis/server/stats/StatsManager.jav... | Fixed issue <I>:added stats reset protocol to reset realtime statistics | killme2008_Metamorphosis | train | java |
aeb28073e95557122d7325f7addac9eca7b07e7f | diff --git a/paramiko/transport.py b/paramiko/transport.py
index <HASH>..<HASH> 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -1534,7 +1534,9 @@ class Transport (threading.Thread, ClosingContextManager):
m.add_bytes(self.H)
m.add_byte(b(id))
m.add_bytes(self.session_id)
- ... | Fallback to sha1 in _compute_key | paramiko_paramiko | train | py |
d730d4809273fe51a10274e6ac04432cbf5e47a5 | diff --git a/Tests/LocaleTest.php b/Tests/LocaleTest.php
index <HASH>..<HASH> 100644
--- a/Tests/LocaleTest.php
+++ b/Tests/LocaleTest.php
@@ -36,7 +36,7 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
public function testGetDisplayCountriesForSwitzerland()
{
- IntlTestHelper::requireFullIntl... | [ci] Testing with UTC hides bugs | symfony_locale | train | php |
07ecaa614b127a1a0b319c5f8eab3d6cad630ddc | diff --git a/activestorage/app/models/active_storage/blob.rb b/activestorage/app/models/active_storage/blob.rb
index <HASH>..<HASH> 100644
--- a/activestorage/app/models/active_storage/blob.rb
+++ b/activestorage/app/models/active_storage/blob.rb
@@ -205,8 +205,8 @@ class ActiveStorage::Blob < ActiveRecord::Base
# b... | Destroy blob record before deleting stored data | rails_rails | train | rb |
151ac861ed7c49d82ca5eae03ccd627123861853 | diff --git a/src/Keboola/Syrup/Controller/ApiController.php b/src/Keboola/Syrup/Controller/ApiController.php
index <HASH>..<HASH> 100644
--- a/src/Keboola/Syrup/Controller/ApiController.php
+++ b/src/Keboola/Syrup/Controller/ApiController.php
@@ -49,10 +49,7 @@ class ApiController extends BaseController
$this-... | fix: wrongly deprecated method | keboola_syrup | train | php |
0e6c5058cbd2a74d1606070f11ed3dd8c797adf8 | diff --git a/Lib/ufo2ft/featureWriters/kernFeatureWriter.py b/Lib/ufo2ft/featureWriters/kernFeatureWriter.py
index <HASH>..<HASH> 100644
--- a/Lib/ufo2ft/featureWriters/kernFeatureWriter.py
+++ b/Lib/ufo2ft/featureWriters/kernFeatureWriter.py
@@ -69,6 +69,8 @@ class KernFeatureWriter(BaseFeatureWriter):
ctx.ri... | [kernFeatureWriter] set_context must return updated namespace
so that subclasses can call the super's method and assign the returned
value to a variable and keep updating the context namespace. | googlefonts_ufo2ft | train | py |
1dc2c9964b3af2f089d6c4a81b3a8249584c34eb | diff --git a/src/Tokens/Element.php b/src/Tokens/Element.php
index <HASH>..<HASH> 100644
--- a/src/Tokens/Element.php
+++ b/src/Tokens/Element.php
@@ -211,7 +211,7 @@ class Element extends AbstractToken
$token = TokenFactory::buildFromHtml(
$remainingHtml,
- null,
+ ... | Added element tests and element bug fix. | kevintweber_HtmlTokenizer | train | php,php |
086083db0eb4dc505702217a32905968016a6e2b | diff --git a/spec/unit/parser_spec.rb b/spec/unit/parser_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/unit/parser_spec.rb
+++ b/spec/unit/parser_spec.rb
@@ -33,9 +33,18 @@ describe Metar::Parser do
parser.date. should == Date.new(2010, 2, 6)
end
- it 'observer_real' do
- parser = setup_pa... | Example for parsing of observer 'corrected' | joeyates_metar-parser | train | rb |
e2dea14e0573d9b4293d2eef13b03ec038c203ea | diff --git a/src/Illuminate/Foundation/Console/EventListCommand.php b/src/Illuminate/Foundation/Console/EventListCommand.php
index <HASH>..<HASH> 100644
--- a/src/Illuminate/Foundation/Console/EventListCommand.php
+++ b/src/Illuminate/Foundation/Console/EventListCommand.php
@@ -4,7 +4,6 @@ namespace Illuminate\Foundati... | Remove extra code from event list (#<I>) | laravel_framework | train | php |
7b80400de3b1670b6349a1616df98a7fa0578e81 | diff --git a/src/Prooph/EventStore/Aggregate/AggregateRepository.php b/src/Prooph/EventStore/Aggregate/AggregateRepository.php
index <HASH>..<HASH> 100644
--- a/src/Prooph/EventStore/Aggregate/AggregateRepository.php
+++ b/src/Prooph/EventStore/Aggregate/AggregateRepository.php
@@ -66,6 +66,7 @@ class AggregateReposito... | Fix AggregateType is ignored in repository | prooph_event-store | train | php |
afc18c7479e0d454b002f05d463b4f8778de02e1 | diff --git a/api_ai/schema_handlers.py b/api_ai/schema_handlers.py
index <HASH>..<HASH> 100644
--- a/api_ai/schema_handlers.py
+++ b/api_ai/schema_handlers.py
@@ -194,9 +194,9 @@ class IntentGenerator(SchemaHandler):
mapping = {}
for a in [a for a in annotations if a]:
for ann... | Fix. Issue #<I>. Treat entities and synonyms as strings when building entity_map. | treethought_flask-assistant | train | py |
877a78da4faa3cff819159a6869ba67c86d23f7e | diff --git a/src/Service/Config/Validation.php b/src/Service/Config/Validation.php
index <HASH>..<HASH> 100644
--- a/src/Service/Config/Validation.php
+++ b/src/Service/Config/Validation.php
@@ -375,10 +375,10 @@ class Validation extends Fallback
// Check if the combination of class and method is blacklisted... | Fixed a SonarCube finding in the configuratiuon validation class. | brainworxx_kreXX | train | php |
cceedcac4e84827316b0c7f7ce8857427a26d577 | diff --git a/tests/unittests/test_commands.py b/tests/unittests/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/unittests/test_commands.py
+++ b/tests/unittests/test_commands.py
@@ -218,11 +218,11 @@ class TestText(ShoebotTestCase):
"""
font("Inconsolata", var_wdth=100, var_wght=200)
... | Fix use of deprecated assertions in tests. | shoebot_shoebot | train | py |
e4a4fe97bc404b0a6c12f43f6a3788e34f378279 | diff --git a/grimoire_elk/elk/discourse.py b/grimoire_elk/elk/discourse.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/discourse.py
+++ b/grimoire_elk/elk/discourse.py
@@ -206,9 +206,10 @@ class DiscourseEnrich(Enrich):
# The first post is the first published, and it is the question
first_post ... | [enrich][discourse] Support that some categories ids don't appear in categories
names list. | chaoss_grimoirelab-elk | train | py |
d945672b89be7957b268e01df1dc6425de5932b1 | diff --git a/src/touch.js b/src/touch.js
index <HASH>..<HASH> 100644
--- a/src/touch.js
+++ b/src/touch.js
@@ -57,6 +57,8 @@
cancelLongTap()
touch.x2 = e.touches[0].pageX
touch.y2 = e.touches[0].pageY
+ if (Math.abs(touch.x1 - touch.x2) > 10)
+ e.preventDefault()
})
... | Prevent scrolling when swipe up/down is detected | madrobby_zepto | train | js |
736347b337c239fcd6d592db5b29e819f753c1ba | diff --git a/exchangelib/version.py b/exchangelib/version.py
index <HASH>..<HASH> 100644
--- a/exchangelib/version.py
+++ b/exchangelib/version.py
@@ -37,6 +37,7 @@ VERSIONS = {
'Exchange2015': ('Exchange2015', 'Microsoft Exchange Server 2015'),
'Exchange2015_SP1': ('Exchange2015_SP1', 'Microsoft Exchange Ser... | Support version of Exchange server <I> (#<I>) | ecederstrand_exchangelib | train | py |
380d82b0782986a272dca89ce70d668a7cdede38 | diff --git a/meta/store.go b/meta/store.go
index <HASH>..<HASH> 100644
--- a/meta/store.go
+++ b/meta/store.go
@@ -256,6 +256,7 @@ func (s *Store) Open() error {
// Wait for a leader to be elected so we know the raft log is loaded
// and up to date
+ <-s.ready
return s.WaitForLeader(0)
} | Fix race in local node creation
It was possible for the metastore Open call to return before it actually
created it's local node. | influxdata_influxdb | train | go |
b3b5412ea72034743524f448e8be2da9c450ae11 | diff --git a/lib/generators/rails/active_record/active_record_generator.rb b/lib/generators/rails/active_record/active_record_generator.rb
index <HASH>..<HASH> 100644
--- a/lib/generators/rails/active_record/active_record_generator.rb
+++ b/lib/generators/rails/active_record/active_record_generator.rb
@@ -44,5 +44,5 @@... | subpress the warning when rails tries to find the generator | mkristian_ixtlan-generators | train | rb |
195a0686d3b1d75ca0899ad8fdc65fea118f49ee | diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/io/parser/test_network.py
+++ b/pandas/tests/io/parser/test_network.py
@@ -22,14 +22,11 @@ from pandas.io.parsers import read_csv
@pytest.mark.network
-@pytest.mark.parametriz... | Fix Zstandard compression unit test (#<I>) | pandas-dev_pandas | train | py |
ae7791d30bdcde97332f6777102a6cfdf9a4d66e | diff --git a/salt/log/handlers/__init__.py b/salt/log/handlers/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/log/handlers/__init__.py
+++ b/salt/log/handlers/__init__.py
@@ -178,7 +178,7 @@ if sys.version_info < (3, 2):
self.queue.put_nowait(record)
except self.queue.Full:
... | Missing `format` in the call to write. | saltstack_salt | train | py |
22ebd9e5feab3ef6c818a30b0981600589002139 | diff --git a/storage/ctab/src/main/java/org/openscience/cdk/io/MDLV3000Writer.java b/storage/ctab/src/main/java/org/openscience/cdk/io/MDLV3000Writer.java
index <HASH>..<HASH> 100644
--- a/storage/ctab/src/main/java/org/openscience/cdk/io/MDLV3000Writer.java
+++ b/storage/ctab/src/main/java/org/openscience/cdk/io/MDLV3... | X coordinates should also be formatted using the same format | cdk_cdk | train | java |
4b6ba4951488c3c52a0cad31d1f112c6458589ba | diff --git a/cucumber/ios/features/step_definitions/shared_steps.rb b/cucumber/ios/features/step_definitions/shared_steps.rb
index <HASH>..<HASH> 100644
--- a/cucumber/ios/features/step_definitions/shared_steps.rb
+++ b/cucumber/ios/features/step_definitions/shared_steps.rb
@@ -1,4 +1,4 @@
-Given(/^I see the (controls|... | iOS Cucumber: remove tapping from shared_steps | calabash_calabash | train | rb |
4148d847c15320ad048c2afe04a3bb5a10351e4a | diff --git a/lib/geminabox.rb b/lib/geminabox.rb
index <HASH>..<HASH> 100644
--- a/lib/geminabox.rb
+++ b/lib/geminabox.rb
@@ -55,7 +55,7 @@ class Geminabox < Sinatra::Base
end
get '/api/v1/dependencies' do
- query_gems = (params[:gems] or '').split(',')
+ query_gems = params[:gems].to_s.split(',')
d... | Test the blank API request bundler now makes. | geminabox_geminabox | train | rb,rb |
f02aef884897ec446c57331f19a1092185cd741e | diff --git a/lib/convert_ids.js b/lib/convert_ids.js
index <HASH>..<HASH> 100644
--- a/lib/convert_ids.js
+++ b/lib/convert_ids.js
@@ -10,7 +10,7 @@ module.exports = async (property, ids, fromWdIds) => {
ids = uniq(ids)
if (ids.length === 0) return output({})
const sparqlBuilder = fromWdIds ? fromWbIds : fromE... | convert_ids: increase batch size
as it seems to get faster results | maxlath_wikidata-cli | train | js |
a75c99eb12ce3c68c07a7a3ed7ed4090a9d30e79 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ import sys
VERSION = '1.46'
-deps = ['psutil', 'colorama', 'six']
+install_requires = ['psutil', 'colorama', 'six']
if sys.version_info < (3,4):
deps.append('pathlib')
@@ -20,7 +20,7 @@ setup(name='th... | change deps to install_requires | nvbn_thefuck | train | py |
1ceb8c7c074e84249737c1f2674e73e4c6d83b86 | diff --git a/src/nu/validator/json/Serializer.java b/src/nu/validator/json/Serializer.java
index <HASH>..<HASH> 100644
--- a/src/nu/validator/json/Serializer.java
+++ b/src/nu/validator/json/Serializer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007 Mozilla Foundation
+ * Copyright (c) 2007-2018 Mozilla Foundation
*
... | Flush JSON output after emitting each JSON object
This change causes the output stream the checker uses for JSON output to
be flushed after emitting each JSON object. That prevents a problem
where the output can get truncated unexpectedly when it exceeds 8KB.
Fixes <URL> | validator_validator | train | java |
486a3ca14f0a24a491272e64a915190ddf7b3c1a | diff --git a/src/mongo/util/IndexUtils.class.php b/src/mongo/util/IndexUtils.class.php
index <HASH>..<HASH> 100644
--- a/src/mongo/util/IndexUtils.class.php
+++ b/src/mongo/util/IndexUtils.class.php
@@ -38,7 +38,7 @@ class IndexUtils
foreach ($indexes as $indexName=>$fields)
{
... | Updated is_int to is_numeric | talis_tripod-php | train | php |
637b7e9623a16a2ae81c02a1826abc818a21db5a | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(name='RPLCD',
url='https://github.com/dbrgn/RPLCD',
license='MIT',
keywords='raspberry, raspberry pi, lcd, liquid crystal, hitachi, hd44780',
- packages=['RPLCD', 'RPLCD_Tests'],
... | Fix packages in setup.py (#<I>) | dbrgn_RPLCD | train | py |
1a3ceeb4305da20f11d07ec37597477149d7fa17 | diff --git a/lib/ansiblelint/skip_utils.py b/lib/ansiblelint/skip_utils.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/skip_utils.py
+++ b/lib/ansiblelint/skip_utils.py
@@ -1,4 +1,4 @@
-# (c) 2012-2019, Ansible by Red Hat
+# (c) 2019, Ansible by Red Hat
#
# Permission is hereby granted, free of charge, to any p... | Fix a few nitpicks in skip_utils.py | ansible_ansible-lint | train | py |
3c1700860c498fe6405f6620890411c95e17c456 | diff --git a/lib/delfos/code_location/call_site.rb b/lib/delfos/code_location/call_site.rb
index <HASH>..<HASH> 100644
--- a/lib/delfos/code_location/call_site.rb
+++ b/lib/delfos/code_location/call_site.rb
@@ -15,10 +15,6 @@ module Delfos
@called_method = called_method
end
- def paths
- ... | only make logging dependent on call_site.called_method_path | ruby-analysis_delfos | train | rb,rb |
8dae5e07e347153c693b9cf243fadf8229c08fff | diff --git a/Command/GenerateDoctrineFormCommand.php b/Command/GenerateDoctrineFormCommand.php
index <HASH>..<HASH> 100644
--- a/Command/GenerateDoctrineFormCommand.php
+++ b/Command/GenerateDoctrineFormCommand.php
@@ -66,9 +66,8 @@ EOT
$entityClass = $this->getContainer()->get('doctrine')->getAliasNamespace($... | Fixed FormCommand to use unified generator interface | sensiolabs_SensioGeneratorBundle | train | php |
bccd3f85ed7c13331c8a1a0225266023927effb5 | diff --git a/app/models/user.rb b/app/models/user.rb
index <HASH>..<HASH> 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -62,6 +62,14 @@ class User < ActiveRecord::Base
end
end
+ # destroy own role for user
+ before_destroy do |u|
+ u.own_role.destroy
+ unless u.own_role.destroyed?
+ ... | <I> - Role - delete self-role on user delete
This commit is to ensure that a user's self-role is deleted when
the user is deleted. | Katello_katello | train | rb |
2f476160a0cb824a9c81c7148bf4439953ccbb0d | diff --git a/restcomm/restcomm.dao/src/main/java/org/restcomm/connect/dao/mybatis/MybatisCallDetailRecordsDao.java b/restcomm/restcomm.dao/src/main/java/org/restcomm/connect/dao/mybatis/MybatisCallDetailRecordsDao.java
index <HASH>..<HASH> 100644
--- a/restcomm/restcomm.dao/src/main/java/org/restcomm/connect/dao/mybati... | FS-<I>: Fixed code style issue | RestComm_Restcomm-Connect | train | java |
1b0db1a92b5798ed3ba061240dea143e14f90cff | diff --git a/Gruntfile.js b/Gruntfile.js
index <HASH>..<HASH> 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -78,7 +78,6 @@ module.exports = function(grunt) {
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
- grunt.loadN... | Remove unnecessary task load from Gruntfile | Wirecloud_grunt-wirecloud | train | js |
ba2926caad6c33c4ba4a0db73beace4fb787d006 | diff --git a/src/main/java/io/airlift/slice/Slice.java b/src/main/java/io/airlift/slice/Slice.java
index <HASH>..<HASH> 100644
--- a/src/main/java/io/airlift/slice/Slice.java
+++ b/src/main/java/io/airlift/slice/Slice.java
@@ -659,7 +659,7 @@ public final class Slice
compareLength--;
}
- ... | Fix bug in Slice.compareTo(int, int, Slice, int, int) | airlift_slice | train | java |
0f8176235e21379bb683b0e35b2fc25de63be1dc | diff --git a/lib/statistrano.rb b/lib/statistrano.rb
index <HASH>..<HASH> 100644
--- a/lib/statistrano.rb
+++ b/lib/statistrano.rb
@@ -47,11 +47,15 @@ module Statistrano
# @return [Statistrano::Deployment::Base]
def define_deployment name, type=:base
- @deployment = Statistrano::Deployment.const_get(type.to_... | add error handling for undefined deployment types | mailchimp_statistrano | train | rb |
6ffcc4e9ae18ac2df63c24cff68f02be3d140889 | diff --git a/preview/preview.js b/preview/preview.js
index <HASH>..<HASH> 100644
--- a/preview/preview.js
+++ b/preview/preview.js
@@ -179,7 +179,8 @@
tileLayerCode += "'" + escapeHtml(options[option]) + "'";
//jshint quotmark:single
} else {
- tileLayerCode += options[option];
+ /* g... | fixed source generation for arrays and objects | leaflet-extras_leaflet-providers | train | js |
78a555bca051581f26b830d7c7183adc75fc939f | diff --git a/addon/components/select-2.js b/addon/components/select-2.js
index <HASH>..<HASH> 100644
--- a/addon/components/select-2.js
+++ b/addon/components/select-2.js
@@ -333,7 +333,7 @@ var Select2Component = Ember.Component.extend({
break;
}
}
- } else {
+ } el... | Fixing an issue which, when compiling for production, a stange character is entered in this whitespace | iStefo_ember-select-2 | train | js |
0dbc26e352b770a7d029e82cee4ed86dd34265ec | diff --git a/logger.go b/logger.go
index <HASH>..<HASH> 100644
--- a/logger.go
+++ b/logger.go
@@ -462,6 +462,7 @@ func (l *Logger) Fprint(logLevel level, calldepth int,
var ok bool
pgmC, file, line, ok = runtime.Caller(calldepth)
+ // FIXME: NOT SURE HOW TO TEST THIS!
if !ok {
file = "???"
line = 0... | Add FIXME for missing tests | demizer_go-logs | train | go |
5101b5a0c7fc0b39800b442aaa75ef74821e1247 | diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -63,6 +63,13 @@ exports.attach = function (server) {
return shell.setVar('newCookies', newCookies);
};
+ // Create a shell helper function for retrieving a cookie.
+ shell.getCookie = func... | Added shell helper for retrieving cookies. | chevex-archived_shotgun-client | train | js |
b6c3e51f4f36e71a2a4afc5aad92c4ea448a5aab | diff --git a/src/ErrorHandler/UnknownReferenceIgnoringErrorHandler.php b/src/ErrorHandler/UnknownReferenceIgnoringErrorHandler.php
index <HASH>..<HASH> 100644
--- a/src/ErrorHandler/UnknownReferenceIgnoringErrorHandler.php
+++ b/src/ErrorHandler/UnknownReferenceIgnoringErrorHandler.php
@@ -37,7 +37,10 @@ class UnknownR... | Fix for unknown references in older twig versions | mariusbalcytis_webpack-bundle | train | php |
69ef4bacb62de1ec7304d1658bd320c8b597c14d | diff --git a/agrona/src/main/java/org/agrona/concurrent/HighResolutionTimer.java b/agrona/src/main/java/org/agrona/concurrent/HighResolutionTimer.java
index <HASH>..<HASH> 100644
--- a/agrona/src/main/java/org/agrona/concurrent/HighResolutionTimer.java
+++ b/agrona/src/main/java/org/agrona/concurrent/HighResolutionTime... | [Java] thread field should be volatile. | real-logic_agrona | train | java |
19d1ef63112c0bce0fab53ff7bc64d7804336cf1 | diff --git a/NavigationReactNative/sample/twitter/App.js b/NavigationReactNative/sample/twitter/App.js
index <HASH>..<HASH> 100644
--- a/NavigationReactNative/sample/twitter/App.js
+++ b/NavigationReactNative/sample/twitter/App.js
@@ -29,7 +29,6 @@ var getSceneTitle = (state, data) => {
var notificationsNavigator = ... | Waited to load notifictions until tab pressed | grahammendick_navigation | train | js |
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.