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 |
|---|---|---|---|---|---|
aaa9a5512e8600b3a3bca5c9fdffaf615e3ba64d | diff --git a/lib/minitest/rake_ci.rb b/lib/minitest/rake_ci.rb
index <HASH>..<HASH> 100644
--- a/lib/minitest/rake_ci.rb
+++ b/lib/minitest/rake_ci.rb
@@ -1,6 +1,9 @@
require 'minitest'
-# Autodiscover the _plugin.rb file:
-Minitest.load_plugins
-Minitest::RakeCIReporter.enable!
+# Don't trigger full plugin autodisc... | # avoid triggering a minitest autodiscover in all spawned shells
Would lead to Rails being partially loaded in spawned Ruby process, breaking e.g. webpacker asset compilation | PublicHealthEngland_ndr_dev_support | train | rb |
b3c8036a02ccc3ddbd8d2041d07860eb1c191303 | diff --git a/angr/analyses/cfg/indirect_jump_resolvers/jumptable.py b/angr/analyses/cfg/indirect_jump_resolvers/jumptable.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/indirect_jump_resolvers/jumptable.py
+++ b/angr/analyses/cfg/indirect_jump_resolvers/jumptable.py
@@ -4,6 +4,7 @@ from collections import defau... | JumpTableResolver: Catch AngrError and SimError after stepping a path. | angr_angr | train | py |
92ce12e19dbde99c77b7a4a305d1a46a1fbfd62b | diff --git a/bin/screenstory.js b/bin/screenstory.js
index <HASH>..<HASH> 100755
--- a/bin/screenstory.js
+++ b/bin/screenstory.js
@@ -30,7 +30,7 @@ function collect(val, memo) {
}
program
- .version('0.0.1')
+ .version(require('package.json').version)
.usage('[options] <files ...>')
.option('-p, ... | Use package.json version in bin script | themouette_screenstory | train | js |
69199754744589feac1709e45bd84d9485739e5e | diff --git a/examples/src/main/java/alluxio/examples/keyvalue/KeyValueStoreOperations.java b/examples/src/main/java/alluxio/examples/keyvalue/KeyValueStoreOperations.java
index <HASH>..<HASH> 100644
--- a/examples/src/main/java/alluxio/examples/keyvalue/KeyValueStoreOperations.java
+++ b/examples/src/main/java/alluxio/... | [SMALLFIX] Address comments | Alluxio_alluxio | train | java |
f0248be012b094185958b5af549bb6ac111de385 | diff --git a/extraslibs/src/com/atlantbh/jmeter/plugins/jsonutils/jsonpathassertion/JSONPathAssertion.java b/extraslibs/src/com/atlantbh/jmeter/plugins/jsonutils/jsonpathassertion/JSONPathAssertion.java
index <HASH>..<HASH> 100644
--- a/extraslibs/src/com/atlantbh/jmeter/plugins/jsonutils/jsonpathassertion/JSONPathAsse... | Improved JsonAssertion
Tell the user which path was being evaluated | undera_jmeter-plugins | train | java |
fb078ce8e48c7564de84a3dc1bcf5651b1c6b44e | diff --git a/xml/node.go b/xml/node.go
index <HASH>..<HASH> 100644
--- a/xml/node.go
+++ b/xml/node.go
@@ -245,8 +245,3 @@ quit:
func Parse(r io.Reader) (*Node, error) {
return parse(r)
}
-
-// ParseXML returns the parse tree for the XML from the given Reader.Deprecated.
-func ParseXML(r io.Reader) (*Node, error) {... | refactor: remove ParseXML() method | antchfx_xmlquery | train | go |
c3857568173b91b1ade616547556f73a133d929f | diff --git a/python/ray/data/impl/progress_bar.py b/python/ray/data/impl/progress_bar.py
index <HASH>..<HASH> 100644
--- a/python/ray/data/impl/progress_bar.py
+++ b/python/ray/data/impl/progress_bar.py
@@ -1,6 +1,7 @@
from typing import List, Any
import ray
+from ray.ray_constants import env_integer
from ray.type... | [datasets] Add an env var for progress bar behavior (#<I>)
Adds a RAY_DATA_DISABLE_PROGRESS_BARS env var to control the default progress bar behavior. The default value is "0". Setting it to "1" disables progress bars, unless they are reenabled again by the set_progress_bars method. | ray-project_ray | train | py |
fa23a730bd26333184aac4984dcea2ee5eff5040 | diff --git a/upload/admin/controller/user/user.php b/upload/admin/controller/user/user.php
index <HASH>..<HASH> 100644
--- a/upload/admin/controller/user/user.php
+++ b/upload/admin/controller/user/user.php
@@ -125,7 +125,7 @@ class User extends \Opencart\System\Engine\Controller {
}
if (isset($this->request->g... | Added integer on $page get request. | opencart_opencart | train | php |
a5e634be62d1a0de5ecc36af8bb20bfe01f84e34 | diff --git a/intranet/apps/bus/serializers.py b/intranet/apps/bus/serializers.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/bus/serializers.py
+++ b/intranet/apps/bus/serializers.py
@@ -1,3 +1,4 @@
+# pylint: disable=abstract-method
from rest_framework import serializers
from .models import Route
diff --git a/... | chore(pylint): disable abstract method checks for serializers | tjcsl_ion | train | py,py,py |
067ec0bc5b5faa0aef570e655898c59138199568 | diff --git a/src/App.php b/src/App.php
index <HASH>..<HASH> 100644
--- a/src/App.php
+++ b/src/App.php
@@ -205,19 +205,19 @@ class App
}
/**
- * @param bool $from_shutdown
+ * @param bool $for_shutdown if true will not pass in caughtException method.
*
* @throws ExitApplicationException
... | Add some comment to callExit method | atk4_ui | train | php |
fafa51c58c584862a0286855ca90223fc7607622 | diff --git a/Tests/Twig/Extension/CSS/TypographyTwigExtensionTest.php b/Tests/Twig/Extension/CSS/TypographyTwigExtensionTest.php
index <HASH>..<HASH> 100644
--- a/Tests/Twig/Extension/CSS/TypographyTwigExtensionTest.php
+++ b/Tests/Twig/Extension/CSS/TypographyTwigExtensionTest.php
@@ -25,6 +25,18 @@ use WBW\Bundle\Boo... | Complete Typography Twig extension unit tests | webeweb_bootstrap-bundle | train | php |
3af82cff34450bf0da8b7f797c4880aa252c69e6 | diff --git a/syntax/lexer.go b/syntax/lexer.go
index <HASH>..<HASH> 100644
--- a/syntax/lexer.go
+++ b/syntax/lexer.go
@@ -676,7 +676,7 @@ func (p *parser) newLit(r rune) {
if r <= utf8.RuneSelf {
p.litBs = p.litBuf[:1]
p.litBs[0] = byte(r)
- } else {
+ } else if p.npos < len(p.bs) {
w := utf8.RuneLen(r)
... | syntax: don't slice past p.bs in p.newLit
If we see encounter an error right before its call, p.npos might be set
to len(p.bs)<I>. | mvdan_sh | train | go,go |
35472db4dbab4609836c4cf356917cf64fd4d3f3 | diff --git a/client/state/jetpack-connect/reducer/schema.js b/client/state/jetpack-connect/reducer/schema.js
index <HASH>..<HASH> 100644
--- a/client/state/jetpack-connect/reducer/schema.js
+++ b/client/state/jetpack-connect/reducer/schema.js
@@ -34,9 +34,15 @@ export const jetpackAuthAttemptsSchema = {
patternProper... | Fix schema properties and improve precision (#<I>)
Properties were not being validated, they must be in a properties
object.
Add `additionalProperties: false`.
Add `minimum: 0` to attempts. | Automattic_wp-calypso | train | js |
2a367a5066e4178f260633f5930190f18cf4eddc | diff --git a/lib/bmc-daemon-lib/mq_consumer.rb b/lib/bmc-daemon-lib/mq_consumer.rb
index <HASH>..<HASH> 100644
--- a/lib/bmc-daemon-lib/mq_consumer.rb
+++ b/lib/bmc-daemon-lib/mq_consumer.rb
@@ -37,18 +37,17 @@ module BmcDaemonLib
raise MqConsumerException, error
end
- # Link or create exchange
+... | consumer: don't try to create exchange if missing (revert behaviour change) | bmedici_bmc-daemon-lib | train | rb |
e7eb8b51d09199366abae5834e7a18e46a16c2e0 | diff --git a/lib/better_errors/repl/pry.rb b/lib/better_errors/repl/pry.rb
index <HASH>..<HASH> 100644
--- a/lib/better_errors/repl/pry.rb
+++ b/lib/better_errors/repl/pry.rb
@@ -5,11 +5,7 @@ module BetterErrors
module REPL
class Pry
class Input
- def initialize(fiber)
- @fiber = fiber
- ... | clean up unused code in Input class | BetterErrors_better_errors | train | rb |
8029d2da9be5d4d512064f24d01b7c39998cb7ec | diff --git a/leancloud/file_.py b/leancloud/file_.py
index <HASH>..<HASH> 100644
--- a/leancloud/file_.py
+++ b/leancloud/file_.py
@@ -56,6 +56,7 @@ class File(object):
try:
data.read
data.tell
+ data.seek(0, os.SEEK_END)
data.seek(0, os.SEEK_SET)
exce... | :ok_hand: Comply review suggestions | leancloud_python-sdk | train | py |
50e1d6526e8ca0da580bb56fe130d526ec4e648b | diff --git a/sqlite3.go b/sqlite3.go
index <HASH>..<HASH> 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -51,7 +51,7 @@ func (s sqlite3) HasTable(scope *Scope, tableName string) bool {
func (s sqlite3) HasColumn(scope *Scope, tableName string, columnName string) bool {
var count int
- s.RawScanInt(scope, &count, fmt.... | sqlite3: fix HasColumn - problem with detecting columns
Handle table definitions like ", \"col"" and ",col". | jinzhu_gorm | train | go |
4c36c28e1ac74f81c4767ce1e9c4188884d83deb | diff --git a/tasks/faker.js b/tasks/faker.js
index <HASH>..<HASH> 100644
--- a/tasks/faker.js
+++ b/tasks/faker.js
@@ -11,9 +11,9 @@
module.exports = function(grunt) {
var path = require('path');
- var faker = require('faker');
+ var Faker = require('Faker');
- // Loop through entire json object
+ //FLoop t... | Mke sure FakerJs is referred to with cap | chrisocast_grunt-faker | train | js |
58fc315fb0b05212dc6c4bd65bd50551f2f0c7b7 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(name='fontaine',
author_email='dave@lab6.com',
url='https://github.com/davelab6/pyfontaine',
# more examples here http://docs.python.org/distutils/examples.html#pure-python-distributio... | append ext to setup.py packages | davelab6_pyfontaine | train | py |
519d778a9fc6721a6902a6d5a3d97f4621e6ae92 | diff --git a/go/libkb/secret_store_windows.go b/go/libkb/secret_store_windows.go
index <HASH>..<HASH> 100644
--- a/go/libkb/secret_store_windows.go
+++ b/go/libkb/secret_store_windows.go
@@ -100,7 +100,7 @@ func (k WinCredentialStore) migrateSecretStoreFile(g *GlobalContext) error {
}
func NewSecretStoreAll(g *Glob... | don't gate wincred use on admin flag (#<I>) | keybase_client | train | go |
e3f397ec24b31dd3c4930095eed5034db1bcd565 | diff --git a/dallinger/experiment_server/experiment_server.py b/dallinger/experiment_server/experiment_server.py
index <HASH>..<HASH> 100644
--- a/dallinger/experiment_server/experiment_server.py
+++ b/dallinger/experiment_server/experiment_server.py
@@ -66,7 +66,7 @@ else:
@app.route('/')
def index():
"""Index ... | Return <I> instead of non-existent template
Closes #<I>. (Eventually, this should return the ad page with random
credentials.) | Dallinger_Dallinger | train | py,py |
394990452a51190ced887450c059e78c46bb9efd | diff --git a/treeherder/config/settings.py b/treeherder/config/settings.py
index <HASH>..<HASH> 100644
--- a/treeherder/config/settings.py
+++ b/treeherder/config/settings.py
@@ -246,13 +246,15 @@ SILENCED_SYSTEM_CHECKS = [
# User Agents
# User agents which will be blocked from making requests to the site.
DISALLOWE... | Bug <I> - Update list of blocked User Agents (#<I>)
These Golang related User Agents are accessing only the site root and
robots.txt, so safe to block. The ActiveData UA block can be removed,
since ActiveData no longer makes requests to our API. | mozilla_treeherder | train | py |
aa6e3bdae680811daaa0c3e01833b584a880b7f2 | diff --git a/txtorcon/torcontrolprotocol.py b/txtorcon/torcontrolprotocol.py
index <HASH>..<HASH> 100644
--- a/txtorcon/torcontrolprotocol.py
+++ b/txtorcon/torcontrolprotocol.py
@@ -713,7 +713,7 @@ class TorControlProtocol(LineOnlyReceiver):
d.addErrback(self._auth_failed)
return
- ... | Allow method 'PASSWORD' in addition to 'HASHEDPASSWORD' for password authentication | meejah_txtorcon | train | py |
7bd08d986d2201d66cb2637a31cd56864460fc3c | diff --git a/src/Phlexible/Bundle/FrontendMediaBundle/Controller/MediaController.php b/src/Phlexible/Bundle/FrontendMediaBundle/Controller/MediaController.php
index <HASH>..<HASH> 100644
--- a/src/Phlexible/Bundle/FrontendMediaBundle/Controller/MediaController.php
+++ b/src/Phlexible/Bundle/FrontendMediaBundle/Controll... | Add todos to get latest file version | phlexible_phlexible | train | php |
5ca0684968b84e72e95f560795cf0a1a089f3488 | diff --git a/angr/analyses/veritesting.py b/angr/analyses/veritesting.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/veritesting.py
+++ b/angr/analyses/veritesting.py
@@ -269,7 +269,11 @@ class Veritesting(Analysis):
else:
l.debug("Function inlining is disabled.")
+ self._input_path.s... | veritesting needs to enable history tracking | angr_angr | train | py |
59ada3b63d6ab798ae236674576b9c2296c510ad | diff --git a/glim/__init__.py b/glim/__init__.py
index <HASH>..<HASH> 100644
--- a/glim/__init__.py
+++ b/glim/__init__.py
@@ -2,7 +2,6 @@ version = "0.9.4"
from glim import config
from glim import core
-from glim import view
from glim import log
from glim import controller
from glim import ext
@@ -13,8 +12,6 @@... | fix glim package not resolving view module | aacanakin_glim | train | py |
99ffa9c03352f27bd00ae61cebbe4a11c2436f98 | diff --git a/run_tests.py b/run_tests.py
index <HASH>..<HASH> 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -58,7 +58,7 @@ def wait_until_stop():
def start_server():
- sys.stderr = open("/dev/null", "w")
+ sys.stderr = open(os.devnull, "w")
env.process = Process(target=start_flask_app, args=(env.host,... | Replace "/dev/null" with os.devnull (#<I>) | cobrateam_splinter | train | py |
e3145b956b8e77bc214c699749460bba2d394fef | diff --git a/tests/viewport-widget.py b/tests/viewport-widget.py
index <HASH>..<HASH> 100755
--- a/tests/viewport-widget.py
+++ b/tests/viewport-widget.py
@@ -23,7 +23,7 @@ for row, col in content.yield_cells():
style = dict(color=glooey.drawing.green)
WidgetClass = glooey.PlaceHolder
- content[r... | Test a non-square Viewport child. | kxgames_glooey | train | py |
5a470777197ceeb3703a1c605bb2e3bad77647cc | diff --git a/sphinxcontrib/dotnetdomain.py b/sphinxcontrib/dotnetdomain.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/dotnetdomain.py
+++ b/sphinxcontrib/dotnetdomain.py
@@ -8,7 +8,7 @@ from itertools import chain
from six import iteritems
-from sphinx import addnodes
+from sphinx import addnodes, version_inf... | Add support for sphinx <I> latex writer
Adds support for multiple formats of entry listing for the latex writer. I'm not sure if there is an easy way to mock out the latex builder, it seems to be more complicated than the others.
Fixes #<I> | rtfd_sphinxcontrib-dotnetdomain | train | py |
e8d45e2203f6e2abeb7270941cca51568b3631a1 | diff --git a/repository.go b/repository.go
index <HASH>..<HASH> 100644
--- a/repository.go
+++ b/repository.go
@@ -107,7 +107,6 @@ func (r *Repository) Get(ro *RepositoryOptions) (*Repository, error) {
func (r *Repository) ListFiles(ro *RepositoryFilesOptions) ([]RepositoryFile, error) {
filePath := path.Join("/repo... | Removed accidental print (#<I>) | ktrysmt_go-bitbucket | train | go |
a9a30bf2c776ac1a9b815cafe25386fd6e0e646b | diff --git a/Controller/SecurityFOSUser1Controller.php b/Controller/SecurityFOSUser1Controller.php
index <HASH>..<HASH> 100644
--- a/Controller/SecurityFOSUser1Controller.php
+++ b/Controller/SecurityFOSUser1Controller.php
@@ -80,11 +80,11 @@ class SecurityFOSUser1Controller extends SecurityController
? Se... | Fix non-use of container for has/get services. (#<I>) | sonata-project_SonataUserBundle | train | php |
d3ff831939aa35e487a24fea13e7278a146e763c | diff --git a/three/three.py b/three/three.py
index <HASH>..<HASH> 100644
--- a/three/three.py
+++ b/three/three.py
@@ -165,7 +165,11 @@ class Three(object):
url = self._create_path('requests')
self.request = requests.post(url, data=kwargs)
content = self.request.content
- return self.c... | Only try to convert successful POST requests | codeforamerica_three | train | py |
d125df519a7a40aa0d2e7c4f975f3be52e6fa9c3 | diff --git a/lib/toc.js b/lib/toc.js
index <HASH>..<HASH> 100644
--- a/lib/toc.js
+++ b/lib/toc.js
@@ -43,7 +43,7 @@ module.exports = function (source, options) {
cache[href] = 1;
}
- var tocElem = '* [' + header.text.replace(/\\/g, '\\\\') + '](#' + href + ')' + EOL,
+ var tocElem... | Use 'hyphen' instead of 'asterisk' in the generated TOC | eGavr_toc-md | train | js |
90268822ca5b9034fab7c638f8cbd0320edc6709 | diff --git a/src/main/java/co/aurasphere/botmill/fb/model/incoming/callback/Referral.java b/src/main/java/co/aurasphere/botmill/fb/model/incoming/callback/Referral.java
index <HASH>..<HASH> 100644
--- a/src/main/java/co/aurasphere/botmill/fb/model/incoming/callback/Referral.java
+++ b/src/main/java/co/aurasphere/botmil... | Fixed the unicode character that's preventing the CI build | BotMill_fb-botmill | train | java |
e72a48eb20804998050dc42dc07c3fcb427ca838 | diff --git a/js/base/Exchange.js b/js/base/Exchange.js
index <HASH>..<HASH> 100644
--- a/js/base/Exchange.js
+++ b/js/base/Exchange.js
@@ -2244,11 +2244,12 @@ module.exports = class Exchange {
const timeInForceUpper = timeInForce.toUpperCase ();
const typeLower = type.toLowerCase ();
const io... | fok added to disallowed timeInForce with postOnly | ccxt_ccxt | train | js |
66551c77ffac1da3295a5b7560be9c22e033b80d | diff --git a/app/helpers/xml_helper.rb b/app/helpers/xml_helper.rb
index <HASH>..<HASH> 100644
--- a/app/helpers/xml_helper.rb
+++ b/app/helpers/xml_helper.rb
@@ -1,2 +1,16 @@
module XmlHelper
+ def collection_lastmod(collection)
+ article_updated = collection.articles.find(:first, :order => 'updated_at DESC')
+ ... | Fix google sitemap.
Restores XmlHelper#collection_lastmod, which had been removed in
commit f4eeaaa<I>b4c<I>cfe<I>bea<I>f<I>. | publify_publify | train | rb,rb |
2cb05b1db1af0b4afdc5d4ac019c94e74bffa466 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,8 @@
from distutils.core import setup
setup(
name = 'redash_client',
- packages = ['redash_client'],
- version = '0.1.4',
+ packages = ['redash_client', 'redash_client.dashboards'],
+ version = '0.1.5',
des... | Pip packaging should include dashboards subdirectory. | mozilla_redash_client | train | py |
1aaf6837fc18fc89cef41ef7cb39c6d825366ab2 | diff --git a/test/unit/search_query_test.rb b/test/unit/search_query_test.rb
index <HASH>..<HASH> 100644
--- a/test/unit/search_query_test.rb
+++ b/test/unit/search_query_test.rb
@@ -10,6 +10,12 @@ module Slingshot::Search
assert_respond_to Query.new, :to_json
end
+ should "allow a block to be gi... | [REFACTORING] Added test for instance_eval in Search::Query#initialize | karmi_retire | train | rb |
92107b4284ce8fe82ab8996e59f34ec54f7eefa2 | diff --git a/internetarchive/internetarchive.py b/internetarchive/internetarchive.py
index <HASH>..<HASH> 100755
--- a/internetarchive/internetarchive.py
+++ b/internetarchive/internetarchive.py
@@ -60,7 +60,7 @@ class Item(object):
#_________________________________________________________________________________... | If file-level metadata is not available for an item, return an empty iterator rather than KeyError in item.files(). Added external_identifier attribute to the File class. | jjjake_internetarchive | train | py |
626224a70ca97d5eeffe549ea80bb4ea90c8bdd8 | diff --git a/Lib/fontParts/objects/nonelab/__init__.py b/Lib/fontParts/objects/nonelab/__init__.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/objects/nonelab/__init__.py
+++ b/Lib/fontParts/objects/nonelab/__init__.py
@@ -1 +1,17 @@
-from font import RFont
\ No newline at end of file
+from fontParts.objects.base.e... | adding imports to top level nonelab | robotools_fontParts | train | py |
f5ff61bc1f73829ff4edb34887df76cb466b46eb | diff --git a/src/MetaModels/MetaModel.php b/src/MetaModels/MetaModel.php
index <HASH>..<HASH> 100644
--- a/src/MetaModels/MetaModel.php
+++ b/src/MetaModels/MetaModel.php
@@ -729,10 +729,16 @@ class MetaModel implements IMetaModel
// Build the right key for the cache.
$sortKey = \sprin... | Fix slicing bug in MetaModel::getIdsFromFilter
The method `MetaModel::getIdsFromFilter` lost support for offset and
limit when we introduced the id cache. The functionality has been
restored. | MetaModels_core | train | php |
72744750c6046f0b45c4510d7a56562e5df01c04 | diff --git a/graylog2-server/src/main/java/org/graylog2/CommandLineArguments.java b/graylog2-server/src/main/java/org/graylog2/CommandLineArguments.java
index <HASH>..<HASH> 100644
--- a/graylog2-server/src/main/java/org/graylog2/CommandLineArguments.java
+++ b/graylog2-server/src/main/java/org/graylog2/CommandLineArgu... | Fixing compilation error related to new Version class | Graylog2_graylog2-server | train | java |
f501d3dcf35bacd3cfa6f6ef52c96d86377dd583 | diff --git a/spec/aggregator_cfgs_and_properties_spec.rb b/spec/aggregator_cfgs_and_properties_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/aggregator_cfgs_and_properties_spec.rb
+++ b/spec/aggregator_cfgs_and_properties_spec.rb
@@ -333,7 +333,7 @@ describe JsDuck::Aggregator do
/**
* Some document... | Remove use of reserved word from cfgs/props spec. | senchalabs_jsduck | train | rb |
8db200e56d524865263a3a42bfffd4af9ec285e1 | diff --git a/src/API.js b/src/API.js
index <HASH>..<HASH> 100644
--- a/src/API.js
+++ b/src/API.js
@@ -149,6 +149,12 @@ export class API extends ol.Object {
)
}
+ setVisibleBaseLayer (id) {
+ this.map_.get('baseLayers').recursiveForEach((layer) => {
+ layer.setVisible(layer.get('id') === id)
+ })
... | added setVisibleBaseLayer to API (selected by id) | KlausBenndorf_guide4you | train | js |
6fe02f9a2c6637ba6113d6130dbdf37aff2727d3 | diff --git a/activerecord/lib/active_record/test_case.rb b/activerecord/lib/active_record/test_case.rb
index <HASH>..<HASH> 100644
--- a/activerecord/lib/active_record/test_case.rb
+++ b/activerecord/lib/active_record/test_case.rb
@@ -1,3 +1,7 @@
+require 'active_support/deprecation'
+require 'active_support/test_case'... | deprecated AR::TestCase in favor of AS::TestCase | rails_rails | train | rb |
7ddbb2535d4f21a968dacb869860bffd50822c7f | diff --git a/core/src/main/java/tachyon/client/TachyonFS.java b/core/src/main/java/tachyon/client/TachyonFS.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/tachyon/client/TachyonFS.java
+++ b/core/src/main/java/tachyon/client/TachyonFS.java
@@ -11,6 +11,7 @@ import java.util.Map;
import java.util.Set;
impor... | Add check for empty String for the local directory in addition to null.
Add logging to detect why return null. | Alluxio_alluxio | train | java |
35cc2854a5ea921ec9b8c69b3edd5db1bbbd5687 | diff --git a/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ContaoBackendViewTemplate.php b/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ContaoBackendViewTemplate.php
index <HASH>..<HASH> 100644
--- a/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/Cont... | Revert some methods in the ContaoBackendViewTemplate and ignore from coding standard. It was broken by phpunit tests | contao-community-alliance_dc-general | train | php |
9f945c2216cd9d8a89f4f20794d63dbd11a6dcd4 | diff --git a/processing/src/main/java/io/druid/segment/data/CompressedObjectStrategy.java b/processing/src/main/java/io/druid/segment/data/CompressedObjectStrategy.java
index <HASH>..<HASH> 100644
--- a/processing/src/main/java/io/druid/segment/data/CompressedObjectStrategy.java
+++ b/processing/src/main/java/io/druid/... | Removed lz4Fast from CompressedObjectStrategy for compression since it is not currently used | apache_incubator-druid | train | java |
59e842925170200d9308e2130028714e10dfbfc0 | diff --git a/src/apb/engine.py b/src/apb/engine.py
index <HASH>..<HASH> 100644
--- a/src/apb/engine.py
+++ b/src/apb/engine.py
@@ -382,6 +382,7 @@ def get_registry_service_ip(namespace, svc_name):
def get_asb_route():
asb_route = None
route_list = None
+ suffix = None
possible_namespaces = ["ansible-... | Fix suffix so that its not hardcoded (#<I>)
* Fix suffix so that its not hardoded
* Fix typo | ansibleplaybookbundle_ansible-playbook-bundle | train | py |
3433001e4b312172ebf1ff8623922f7f4b2662ba | diff --git a/gruntfile.js b/gruntfile.js
index <HASH>..<HASH> 100644
--- a/gruntfile.js
+++ b/gruntfile.js
@@ -329,7 +329,7 @@ module.exports = function(grunt) {
buildOLDebug: '(node <%= olDir %>/tasks/build.js <%= olDir %>/config/ol-debug.json app/assets/libs/ol-debug.js)',
buildOL: '(node <%... | Build typescript on grunt execution | TissueMAPS_TmClient | train | js |
5b33df05f163f7f117312f3aad46411bdb0b4e76 | diff --git a/bundles/org.eclipse.orion.client.ui/web/plugins/languages/json/parser.js b/bundles/org.eclipse.orion.client.ui/web/plugins/languages/json/parser.js
index <HASH>..<HASH> 100644
--- a/bundles/org.eclipse.orion.client.ui/web/plugins/languages/json/parser.js
+++ b/bundles/org.eclipse.orion.client.ui/web/plugin... | Bug <I> - [json] The JSON parser should return location information when an error is encountered | eclipse_orion.client | train | js |
d638fe963a2372cfc4b9abcf2b72619a91079248 | diff --git a/netsnmptestenv.py b/netsnmptestenv.py
index <HASH>..<HASH> 100644
--- a/netsnmptestenv.py
+++ b/netsnmptestenv.py
@@ -59,19 +59,23 @@ class netsnmpTestEnv(object):
def shutdown(self):
def kill_process(pid):
- # First we ask it nicely to quit. If after a second it hasn't, we
- # will kill it the ... | Use slightly more intelligent process killing in netsnmptestenv module
Instead of hammering the process to be killed with signals continously,
sleep small amounts of time and check procfs. This is obviously
Linux-specific, but so far I have not heard of anyone trying to use
python-netsnmpagent with net-snmp on differe... | pief_python-netsnmpagent | train | py |
8e38b254ed785edc030fc1b1d2c523cd4a84968a | diff --git a/km3pipe/db.py b/km3pipe/db.py
index <HASH>..<HASH> 100644
--- a/km3pipe/db.py
+++ b/km3pipe/db.py
@@ -145,6 +145,17 @@ class DBManager(object):
else:
return dataframe
+ def t0sets(self, det_id):
+ content = self._get_content('streamds/t0sets.txt?detid={0}'
+ ... | Implements t0sets retrieval | tamasgal_km3pipe | train | py |
2ef63fc715446e2d16b681f37b106ff2891b8038 | diff --git a/vel/rl/env/wrappers/clip_episode_length.py b/vel/rl/env/wrappers/clip_episode_length.py
index <HASH>..<HASH> 100644
--- a/vel/rl/env/wrappers/clip_episode_length.py
+++ b/vel/rl/env/wrappers/clip_episode_length.py
@@ -19,6 +19,7 @@ class ClipEpisodeEnv(gym.Wrapper):
if self.current_episode_lengt... | Additional information from the clipped env length wrapper. | MillionIntegrals_vel | train | py |
c15a1e2f1037f9ec4202d0dc0eba0bc60654c10e | diff --git a/src/frontend/org/voltdb/iv2/DuplicateCounter.java b/src/frontend/org/voltdb/iv2/DuplicateCounter.java
index <HASH>..<HASH> 100644
--- a/src/frontend/org/voltdb/iv2/DuplicateCounter.java
+++ b/src/frontend/org/voltdb/iv2/DuplicateCounter.java
@@ -116,12 +116,9 @@ public class DuplicateCounter
Clien... | Remove redundant DuplicateCounter code that expects some old behavior. | VoltDB_voltdb | train | java |
a6024ed4780a913df8fc3f8af555c27b7abcc748 | diff --git a/nodeshot/scripts/snmp.py b/nodeshot/scripts/snmp.py
index <HASH>..<HASH> 100755
--- a/nodeshot/scripts/snmp.py
+++ b/nodeshot/scripts/snmp.py
@@ -75,7 +75,6 @@ def get_signal(ip):
oid_dbm = 1,3,6,1,4,1,14988,1,1,1,2,1,3
#get connected mac and their dbm
res = cmdgen.CommandGenerator().nextCmd... | minimal cleanup in snmp.py | ninuxorg_nodeshot | train | py |
0a8fe2c9acf2047be4ee2870d9a66b6e8e1a41e1 | diff --git a/global-fs/src/main/java/io/global/fs/http/GlobalFsDriverServlet.java b/global-fs/src/main/java/io/global/fs/http/GlobalFsDriverServlet.java
index <HASH>..<HASH> 100644
--- a/global-fs/src/main/java/io/global/fs/http/GlobalFsDriverServlet.java
+++ b/global-fs/src/main/java/io/global/fs/http/GlobalFsDriverSe... | Fix global-fs not urldecoding download file names | softindex_datakernel | train | java |
00ba520179e7efd0158229e9b678eb8a1e67c796 | diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/search/InlineSearchPane.js b/bundles/org.eclipse.orion.client.ui/web/orion/search/InlineSearchPane.js
index <HASH>..<HASH> 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/search/InlineSearchPane.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/... | Bug <I> - Search's "Find in" field should not show the workspace name | eclipse_orion.client | train | js |
5a39def902ddd24db19a9bc0bc8d468af6211e2d | diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php
index <HASH>..<HASH> 100644
--- a/mod/forum/discuss.php
+++ b/mod/forum/discuss.php
@@ -64,6 +64,16 @@
add_to_log($course->id, "forum", "move discussion", "discuss.php?d=$discussion->id", "$discussion->id");
}
$discuss... | re-merge of "Merged fix from <I> for Bug #<I> - RSS Feeds and Moving Discussions."
Originally by vyshane - got dropped accidentally in one of the biiiiig roles
commits. | moodle_moodle | train | php |
cac5e713e899cd16e5e775787acb34289ccf5057 | diff --git a/hvac/adapters.py b/hvac/adapters.py
index <HASH>..<HASH> 100644
--- a/hvac/adapters.py
+++ b/hvac/adapters.py
@@ -288,7 +288,7 @@ class RawAdapter(Adapter):
_kwargs.update(kwargs)
if self.strict_http and method.lower() in ('list',):
- # Encty point for standard HTTP substitut... | Encty -> Entry typo fix | hvac_hvac | train | py |
ad63a2841961ff45a23aa4602a2c74a0912332b8 | diff --git a/lib/objectcache.rb b/lib/objectcache.rb
index <HASH>..<HASH> 100644
--- a/lib/objectcache.rb
+++ b/lib/objectcache.rb
@@ -39,6 +39,10 @@ module Ronin
@store = Og.setup(:destroy => false, :evolve_schema => :full, :store => :sqlite, :name => @path)
end
+ def sql(*sql)
+ @store.get_store... | * Just in case anyone ever needs to, they can execute pure SQL. | ronin-ruby_ronin | train | rb |
3d598143f5314efd40142393b600023248c677d7 | diff --git a/src/main/java/org/fest/assertions/api/AbstractAssert.java b/src/main/java/org/fest/assertions/api/AbstractAssert.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/fest/assertions/api/AbstractAssert.java
+++ b/src/main/java/org/fest/assertions/api/AbstractAssert.java
@@ -36,6 +36,7 @@ public abstract... | Add comment to explain wht actual visbility has been set to protected (to allow custom assertion to access actual) | alexruiz_fest-assert-2.x | train | java |
ed08330d97fbecf45265b7d9292217274d92fee4 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(
author='Nicholas H.Tollervey',
author_email='ntoll@ntoll.org',
url='https://github.com/ntoll/uflash',
- py_modules=['uflash', 'hexify'],
+ py_modules=['uflash', 'py2hex'],
licens... | Updates to reflect hexify -> py2hex changes
Changed command name from hexify to py2hex
Changed entry point for py2hex | ntoll_uflash | train | py |
78f85c6a72eef58dfd3bc8c980829749c46c8312 | diff --git a/Str.php b/Str.php
index <HASH>..<HASH> 100644
--- a/Str.php
+++ b/Str.php
@@ -185,14 +185,21 @@ class Str
}
/**
- * Trims the given string and replaces multiple consecutive whitespaces with a single space.
+ * Trims the given string and replaces multiple consecutive whitespaces with a s... | [Utils/Str] Renamed Str::clean() -> Str::collapse() to narrow down its intent. Redirects to Str::trim() and Str::replace(), ie. uses mb_ereg_replace() now internally and properly handles encoding the way the rest of the Str utility does. | unyx_utils | train | php |
7fb1628c10f5349d0d57bdefe2210186a5a28280 | diff --git a/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java b/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java
index <HASH>..<HASH> 100644
--- a/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java
+++ b/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java
@@ -195,13 +195,15 @@ public ... | Print original line number of file in test<I>. | mozilla_rhino | train | java |
6a31f51ae9d9d09349b680065442619c74ac5024 | diff --git a/lib/generators/wanko/templates/lib/%name%/engine.rb b/lib/generators/wanko/templates/lib/%name%/engine.rb
index <HASH>..<HASH> 100644
--- a/lib/generators/wanko/templates/lib/%name%/engine.rb
+++ b/lib/generators/wanko/templates/lib/%name%/engine.rb
@@ -4,6 +4,6 @@ module <%= camelized %>
class Engine <... | Let newly created extensions be enabled by default | amatsuda_motorhead | train | rb |
113277ede126e52717c1ee54014ed8f91fce5d02 | diff --git a/src/pandas_profiling/utils/progress_bar.py b/src/pandas_profiling/utils/progress_bar.py
index <HASH>..<HASH> 100644
--- a/src/pandas_profiling/utils/progress_bar.py
+++ b/src/pandas_profiling/utils/progress_bar.py
@@ -1,6 +1,5 @@
-from collections import Callable
from functools import wraps
-from typing i... | refactor: typing progress_bar.py | pandas-profiling_pandas-profiling | train | py |
87e2bb881387ff3ac245ab9923347a5a616e197b | diff --git a/semantic_release/cli.py b/semantic_release/cli.py
index <HASH>..<HASH> 100644
--- a/semantic_release/cli.py
+++ b/semantic_release/cli.py
@@ -161,7 +161,8 @@ def changelog(*, unreleased=False, noop=False, post=False, **kwargs):
log = generate_changelog(current_version, None)
else:
lo... | fix(changelog): send changelog to stdout
Fixes #<I> | relekang_python-semantic-release | train | py |
1ed88eed1d179e5a27171324e57692366449eca0 | diff --git a/Facades/Notification.php b/Facades/Notification.php
index <HASH>..<HASH> 100644
--- a/Facades/Notification.php
+++ b/Facades/Notification.php
@@ -13,7 +13,9 @@ use Illuminate\Support\Testing\Fakes\NotificationFake;
* @method static mixed channel(string|null $name = null)
* @method static void assertNot... | Add missing methods to Notification facade (#<I>) | illuminate_support | train | php |
e35226a7538f12c613abecb5533a480a53bc28f1 | diff --git a/lib/Models/registerCatalogMembers.js b/lib/Models/registerCatalogMembers.js
index <HASH>..<HASH> 100644
--- a/lib/Models/registerCatalogMembers.js
+++ b/lib/Models/registerCatalogMembers.js
@@ -21,7 +21,6 @@ var createCatalogMemberFromType = require('./createCatalogMemberFromType');
var CsvCatalogItem = r... | Fix eslint warning. | TerriaJS_terriajs | train | js |
305276c0d3de7e0ad1e3f27caf3538e8b9242db1 | diff --git a/src/Escaper.php b/src/Escaper.php
index <HASH>..<HASH> 100644
--- a/src/Escaper.php
+++ b/src/Escaper.php
@@ -43,7 +43,7 @@ class Escaper
*/
public function escapeCharacterClass(string $char): string
{
- return (isset($this->inCharacterClass[$char])) ? $this->inCharacterClass[$char] : $char;
+ retu... | Replaced ternaries with null coalescing operator | s9e_RegexpBuilder | train | php,php |
fb8bfed69e776d050ef2f6029d376b1196add4e9 | diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js
index <HASH>..<HASH> 100644
--- a/lib/OpenLayers/Map.js
+++ b/lib/OpenLayers/Map.js
@@ -172,9 +172,8 @@ OpenLayers.Map.prototype = {
// Workaround for the fact that hidden elements return 0 for size.
if (size.w == 0 && size.h == 0) {... | element.getDimensions doesn't check styles of parent elements, so when an element is hideen because of a parent, this breaks. fall back to style.width/height in cases where we have a 0,0 size.
git-svn-id: <URL> | openlayers_openlayers | train | js |
6062fb5dc49d12e1e89873290b4a8d7f3411b4ab | diff --git a/lib/copy-file.js b/lib/copy-file.js
index <HASH>..<HASH> 100644
--- a/lib/copy-file.js
+++ b/lib/copy-file.js
@@ -1,7 +1,7 @@
'use strict';
const fs = require('fs');
-const {lstat, unlink} = fs.promises;
+const {lstat, unlink} = require('fs/promises');
const pipe = require('pipe-io');
const tryToCatc... | chore(copy-file) fs.promises -> fs/promises | cloudcmd_copy-file | train | js |
836bbcab7357b9753871e477282fde34ba0ffd5f | diff --git a/lib/fog/atmos/storage.rb b/lib/fog/atmos/storage.rb
index <HASH>..<HASH> 100644
--- a/lib/fog/atmos/storage.rb
+++ b/lib/fog/atmos/storage.rb
@@ -155,8 +155,10 @@ module Fog
signature = Base64.encode64( digest ).chomp()
params[:headers]["x-emc-signature"] = signature
- pars... | Delete invalid connection keys before request is made | fog_fog | train | rb |
74f2828105fc1711cb28b7b718e53c06a303a328 | diff --git a/OpenPNM/Algorithms/__LinearSolver__.py b/OpenPNM/Algorithms/__LinearSolver__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Algorithms/__LinearSolver__.py
+++ b/OpenPNM/Algorithms/__LinearSolver__.py
@@ -324,7 +324,8 @@ class LinearSolver(GenericAlgorithm):
self._logger.warning('The outlet pores... | temporary patch job (domain_size doesn't work)
Former-commit-id: <I>bf<I>a<I>a<I>f<I>b<I>d<I>d<I>baf3
Former-commit-id: <I>c8e<I>f<I>e<I>c<I>c2ea7dc<I>c3bba<I>bc8 | PMEAL_OpenPNM | train | py |
d3d9e0f5c0da8408bcdb241509cb7dd1f41fd4bd | diff --git a/src/you_get/extractors/imgur.py b/src/you_get/extractors/imgur.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/imgur.py
+++ b/src/you_get/extractors/imgur.py
@@ -65,7 +65,7 @@ class Imgur(VideoExtractor):
'container': 'jpg'
}
}
- sel... | [imgur] use hash when title not present | soimort_you-get | train | py |
6d3ae3b83cc0ad7f2551ad4d35819cb56129cb30 | diff --git a/lib/Cake/Test/Case/Event/CakeEventManagerTest.php b/lib/Cake/Test/Case/Event/CakeEventManagerTest.php
index <HASH>..<HASH> 100644
--- a/lib/Cake/Test/Case/Event/CakeEventManagerTest.php
+++ b/lib/Cake/Test/Case/Event/CakeEventManagerTest.php
@@ -235,7 +235,7 @@ class CakeEventManagerTest extends CakeTestCa... | Fix missed use of VERSION. | cakephp_cakephp | train | php |
ae5f5e7882db1f7696f6ef2442b1c2f375fd9e72 | diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -194,7 +194,7 @@ class BaseCalculator(with_metaclass(abc.ABCMeta)):
elif exports: # is a string
fmts = exports.split(',... | Fixed a small bug with exports
Former-commit-id: <I>adeff7e<I>f3c<I>f1a<I>f4fe3a<I>d4edd<I> | gem_oq-engine | train | py |
8f284278b5661230822ad5e7ff4829b18e4960f1 | diff --git a/loader.js b/loader.js
index <HASH>..<HASH> 100644
--- a/loader.js
+++ b/loader.js
@@ -17,7 +17,12 @@ module.exports.pitch = function(request, preReq, data) {
var query = loaderUtils.parseQuery(this.query);
this.addDependency(this.resourcePath);
// We already in child compiler, return empty bundle
- i... | Check if loader is used without plugin | webpack-contrib_extract-text-webpack-plugin | train | js |
06f1aa9181b453ec7a6d49cb89177763c21ced2b | diff --git a/lib/userlist/push/strategies.rb b/lib/userlist/push/strategies.rb
index <HASH>..<HASH> 100644
--- a/lib/userlist/push/strategies.rb
+++ b/lib/userlist/push/strategies.rb
@@ -11,9 +11,20 @@ module Userlist
def self.lookup_strategy(strategy)
return strategy unless strategy.is_a?(Symbol) || st... | Extracts methods to check and require strategies | userlistio_userlist-ruby | train | rb |
40e362ba0bd2fab404ee2f79efd968c8a76626cf | diff --git a/spyder/plugins/profiler/plugin.py b/spyder/plugins/profiler/plugin.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/profiler/plugin.py
+++ b/spyder/plugins/profiler/plugin.py
@@ -42,7 +42,7 @@ class Profiler(SpyderDockablePlugin):
NAME = 'profiler'
REQUIRES = [Plugins.Preferences, Plugins.Edit... | Pylint/Profiler: Add/fix their TABIFY class attribute respectively | spyder-ide_spyder | train | py,py |
dff50131a78f0ab363d098b28aff1ce4d9867794 | diff --git a/test/integration/tst_regression.py b/test/integration/tst_regression.py
index <HASH>..<HASH> 100644
--- a/test/integration/tst_regression.py
+++ b/test/integration/tst_regression.py
@@ -2,8 +2,7 @@ import shutil
import os
import autofit as af
-from autolens.data.instrument import ccd
-from autolens.dat... | Refactored data to use instrument module with abstract_data,
ready to add interferometry data class. | Jammy2211_PyAutoLens | train | py,py |
2effe1cb45311d12d42bb422eea7aca60e41d97e | diff --git a/routes/web.php b/routes/web.php
index <HASH>..<HASH> 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -62,7 +62,7 @@ Route::middleware(['web', 'admin.auth:admin', 'permission'])
Route::post('attribute/upload', [\AvoRed\Framework\Catalog\Controllers\AttributeController::class, 'upload'])
... | fixed Issue #<I> AdminUserController doesn't exist | avored_framework | train | php |
a7a3438b41e1c8637bf89d7e916dfda02daf27e8 | diff --git a/java-wrapper/src/test/java/com/codedisaster/steamworks/test/SteamTestApp.java b/java-wrapper/src/test/java/com/codedisaster/steamworks/test/SteamTestApp.java
index <HASH>..<HASH> 100644
--- a/java-wrapper/src/test/java/com/codedisaster/steamworks/test/SteamTestApp.java
+++ b/java-wrapper/src/test/java/com/... | Test applications load libraries from ./natives/libs instead of Maven package. | code-disaster_steamworks4j | train | java |
012daf558194a8287be1b567d30549c0596fb555 | diff --git a/lib/escobar/heroku/pipeline.rb b/lib/escobar/heroku/pipeline.rb
index <HASH>..<HASH> 100644
--- a/lib/escobar/heroku/pipeline.rb
+++ b/lib/escobar/heroku/pipeline.rb
@@ -65,10 +65,14 @@ module Escobar
end
def default_branch
- github_client.default_branch
+ @default_branch ||= ... | Cache calls to GitHub in Pipeline | atmos_escobar | train | rb |
38650495afd4001eb4ac5cf1b84acfec9db06fed | diff --git a/spec/controllers/spree/adyen_redirect_controller_spec.rb b/spec/controllers/spree/adyen_redirect_controller_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/controllers/spree/adyen_redirect_controller_spec.rb
+++ b/spec/controllers/spree/adyen_redirect_controller_spec.rb
@@ -32,16 +32,18 @@ module Spree
... | Restruct portion of test
Just put extra describe blocks to specify what the test is talking
about i.e. the created payment. | StemboltHQ_solidus-adyen | train | rb |
a8569ac2da57d75d613b6e020e5c9b37ac130249 | diff --git a/demo/start.rb b/demo/start.rb
index <HASH>..<HASH> 100644
--- a/demo/start.rb
+++ b/demo/start.rb
@@ -46,18 +46,15 @@ class App
dt = Rufus::Decision::Table.new(json.last)
- #out = dt.transform!(in_to_h(json.first))
- keys = json.first.first
- rows = json.first[1..-1]
- results = rows.c... | leveraging Rufus::Decision.transpose() | jmettraux_rufus-decision | train | rb |
b52c6f673e1fa0a14ebc758f53d26ec1e4dda72d | diff --git a/pkg/cloudprovider/gce/token_source.go b/pkg/cloudprovider/gce/token_source.go
index <HASH>..<HASH> 100644
--- a/pkg/cloudprovider/gce/token_source.go
+++ b/pkg/cloudprovider/gce/token_source.go
@@ -31,7 +31,7 @@ import (
const (
// Max QPS to allow through to the token URL.
- tokenURLQPS = 1
+ tokenUR... | Increase the rate limiting of GCE's token source. The burst being at 3
means transient errors won't incur such long waits, but repeating
failures shouldn't be retrying every second. | kubernetes_kubernetes | train | go |
97a7dbd34b0edcf751a94d3fd4f0dde11d829654 | diff --git a/spec/models/profile.rb b/spec/models/profile.rb
index <HASH>..<HASH> 100644
--- a/spec/models/profile.rb
+++ b/spec/models/profile.rb
@@ -1,5 +1,5 @@
class Profile
include Mongoid::Document
- field :name, type: String
+ field :name, :type => String
shard_key :name
end | Let tests pass for <I> and others. | mongodb_mongoid | train | rb |
f0cff41b76d4bc4321824bb401d05956f7f2a413 | diff --git a/lib/Condorcet/Condorcet.php b/lib/Condorcet/Condorcet.php
index <HASH>..<HASH> 100644
--- a/lib/Condorcet/Condorcet.php
+++ b/lib/Condorcet/Condorcet.php
@@ -1650,9 +1650,12 @@ class Vote
use CandidateVote_CondorcetLink ;
private $_ranking = array();
+ private $_rankingHistory = array();
+
private ... | Class Vote => setRanking() && archiveRanking() | julien-boudry_Condorcet | train | php |
fe3a1b19d9700183a684ff078dcd4d9f3459f553 | diff --git a/src/js/components/Clock/Clock.js b/src/js/components/Clock/Clock.js
index <HASH>..<HASH> 100644
--- a/src/js/components/Clock/Clock.js
+++ b/src/js/components/Clock/Clock.js
@@ -157,14 +157,11 @@ class Clock extends Component {
this.setState({ elements: nextElements }, () => {
if (onChang... | Fix Clock.onChange bug (#<I>) | grommet_grommet | train | js |
2169b3aafa34e5507e138bda63f58dbbdc3b9760 | diff --git a/concrete/src/Entity/File/Version.php b/concrete/src/Entity/File/Version.php
index <HASH>..<HASH> 100644
--- a/concrete/src/Entity/File/Version.php
+++ b/concrete/src/Entity/File/Version.php
@@ -1649,6 +1649,12 @@ class Version implements ObjectInterface
if ($type->shouldExistFor($imageWidt... | adding canonical url to thumbnail paths since the method implies we're getting a url back | concrete5_concrete5 | train | php |
867ce551e97a34c09aafe339e12eb87577b50af3 | diff --git a/generators/docker-base.js b/generators/docker-base.js
index <HASH>..<HASH> 100644
--- a/generators/docker-base.js
+++ b/generators/docker-base.js
@@ -68,10 +68,10 @@ function checkImages() {
this.appsFolders.forEach((appsFolder, index) => {
const appConfig = this.appConfigs[index];
i... | Modify the check to use the new Docker plugin
Not a perfect check, but similar to the previous one - this is just to help people when we can | jhipster_generator-jhipster | train | js |
f8775064d4ce9f1e642cfba487953a8b23d078fe | diff --git a/hazelcast/src/main/java/com/hazelcast/util/executor/DelegatingFuture.java b/hazelcast/src/main/java/com/hazelcast/util/executor/DelegatingFuture.java
index <HASH>..<HASH> 100644
--- a/hazelcast/src/main/java/com/hazelcast/util/executor/DelegatingFuture.java
+++ b/hazelcast/src/main/java/com/hazelcast/util/... | DelegatingFuture isDone | hazelcast_hazelcast | train | java |
c32a321224afdfb8059a9625d33ae98b421d0de3 | diff --git a/lib/GetStream/Stream/Client.php b/lib/GetStream/Stream/Client.php
index <HASH>..<HASH> 100644
--- a/lib/GetStream/Stream/Client.php
+++ b/lib/GetStream/Stream/Client.php
@@ -141,17 +141,20 @@ class Client
*/
public function getBaseUrl()
{
- $api_endpoint = static::API_ENDPOINT;
- ... | Added support for STREAM_BASE_URL environment variable | GetStream_stream-php | train | php |
5e8f319fa7e4530ab27d3e63e076b2fc51fd345a | diff --git a/app/controllers/storytime/subscriptions_controller.rb b/app/controllers/storytime/subscriptions_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/storytime/subscriptions_controller.rb
+++ b/app/controllers/storytime/subscriptions_controller.rb
@@ -6,6 +6,7 @@ module Storytime
def creat... | Remove site_id from permitted_attributes | CultivateLabs_storytime | train | rb |
d8f7f1a5f5d2c2aefdcc618f66f8ae0f214c65b7 | diff --git a/elasticstack/utils.py b/elasticstack/utils.py
index <HASH>..<HASH> 100644
--- a/elasticstack/utils.py
+++ b/elasticstack/utils.py
@@ -23,7 +23,6 @@
from haystack import connections
from importlib import import_module
-from django.apps import apps
def prepare_object(obj, using='default'):
@@ -45,13... | Import old get_model for older Django
Includes compulsive docstring formatting | bennylope_elasticstack | train | py |
66a579a1cce28222dd0fa2e44edf3913af54bdff | diff --git a/model/QueueDispatcher.php b/model/QueueDispatcher.php
index <HASH>..<HASH> 100644
--- a/model/QueueDispatcher.php
+++ b/model/QueueDispatcher.php
@@ -450,6 +450,8 @@ class QueueDispatcher extends ConfigurableService implements QueueDispatcherInte
*
* It will be deprecated once we have the gener... | TAO-<I> Put some dispatcher methods to deprecated | oat-sa_extension-tao-task-queue | train | php |
9cc06fda0c641fefc4e7beabadcad76aec18c707 | diff --git a/packages/vuetify/src/components/VSelect/VSelect.js b/packages/vuetify/src/components/VSelect/VSelect.js
index <HASH>..<HASH> 100644
--- a/packages/vuetify/src/components/VSelect/VSelect.js
+++ b/packages/vuetify/src/components/VSelect/VSelect.js
@@ -448,10 +448,16 @@ export default {
if (onlyBoo... | fix(Select): remove colon from menu-props suggestion with booleans only | vuetifyjs_vuetify | train | js |
8907f20c63b9f9af09697e49d4487f1910061ff1 | diff --git a/lib/zmachine/connection.rb b/lib/zmachine/connection.rb
index <HASH>..<HASH> 100644
--- a/lib/zmachine/connection.rb
+++ b/lib/zmachine/connection.rb
@@ -173,8 +173,14 @@ module ZMachine
def readable!
ZMachine.logger.debug("zmachine:connection:#{__method__}", connection: self) if ZMachine.debug... | allow for more than one receive_data per read_inbound_data | liquidm_zmachine | train | rb,rb |
Subsets and Splits
Java Commits in Train Set
Queries for all entries where the diff_languages column is 'java', providing a filtered dataset but without deeper analysis.
Java Commits Test Data
Returns a subset of 5000 entries from the dataset where the programming language difference is Java, providing basic filtering for exploration.
Java Commits Sample
Retrieves the first 1,000 records where the 'diff_languages' column is 'java', providing limited insight into the specific data entries.
Java Commits Validation Sample
Retrieves a sample of entries from the validation dataset where the diff languages are Java, providing limited insight into specific Java-related data points.
Java Commits in Validation
This query retrieves a limited sample of entries from the validation dataset where the programming language difference is Java, providing basic filtering with minimal insight.
Java Commits Sample
This query retrieves a sample of 100 records where the 'diff_languages' is 'java', providing basic filtering but limited analytical value.
Java Commits Sample
Retrieves 100 samples where the language difference is Java, providing basic filtering but minimal analytical value.
Java Commits Sample
Retrieves 10 samples where the diff_languages column is 'java', providing basic examples of data entries with this specific language.
Java Commits Validation Sample
Retrieves 1,000 records where the differences in languages are marked as Java, providing a snapshot of that specific subset but limited to raw data.
Java Commits Sample
This query retrieves 1000 random samples from the dataset where the programming language is Java, offering limited insight beyond raw data.