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 |
|---|---|---|---|---|---|
8c8668e7ef3d1c5688362e0a318614aa2b456000 | diff --git a/spec/shared_stripe_examples/charge_examples.rb b/spec/shared_stripe_examples/charge_examples.rb
index <HASH>..<HASH> 100644
--- a/spec/shared_stripe_examples/charge_examples.rb
+++ b/spec/shared_stripe_examples/charge_examples.rb
@@ -104,4 +104,18 @@ shared_examples 'Charge API' do
end
end
+ des... | Spec desired behavior upon Charge#capture | rebelidealist_stripe-ruby-mock | train | rb |
3a9e6def1b7fa425a638c4cf74704aa9aed1d5b0 | diff --git a/tests/test_wer.py b/tests/test_wer.py
index <HASH>..<HASH> 100644
--- a/tests/test_wer.py
+++ b/tests/test_wer.py
@@ -1,3 +1,4 @@
+from __future__ import unicode_literals
import wer
@@ -7,7 +8,7 @@ def test_main():
def test_loading_from_string():
- xml_string = """<?xml version="1.0" encoding=... | Improve test PY2-3 compatibility | gcrahay_python-wer | train | py |
b7ff72d044d647cb2beed68d018926c46824958f | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ extras = {
}
install_requires = [
- 'google-api-core >= 0.1.1, < 0.2.0dev',
+ 'google-api-core >= 0.1.1, < 2.0.0dev',
]
setup( | Support the current major of google-api-core (#<I>) | census-instrumentation_opencensus-python | train | py |
9682cd5f2620da0c3e475a58482407e28bd1302c | diff --git a/framework/core/js/lib/components/Dropdown.js b/framework/core/js/lib/components/Dropdown.js
index <HASH>..<HASH> 100644
--- a/framework/core/js/lib/components/Dropdown.js
+++ b/framework/core/js/lib/components/Dropdown.js
@@ -69,6 +69,10 @@ export default class Dropdown extends Component {
$menu.o... | Make sure dropdowns don't go above the edge of the screen | flarum_core | train | js |
bdec0c23ed7c6f5c50f0a94aa1b2bceaff5cfa42 | diff --git a/lib/uirusu/vturl.rb b/lib/uirusu/vturl.rb
index <HASH>..<HASH> 100644
--- a/lib/uirusu/vturl.rb
+++ b/lib/uirusu/vturl.rb
@@ -31,7 +31,7 @@ module Uirusu
# @param resource url to submit
#
# @return [JSON] Parsed response
- def self.scan_url(api_key, resource)
+ def self.scan_url api_key, resourc... | Fixed warning for ( ) around methods | hammackj_uirusu | train | rb |
72a9f8d68246de84c5e6af6f7cbc2599c1c8a776 | diff --git a/Document/CommentManager.php b/Document/CommentManager.php
index <HASH>..<HASH> 100644
--- a/Document/CommentManager.php
+++ b/Document/CommentManager.php
@@ -16,6 +16,7 @@ use Doctrine\ODM\MongoDB\DocumentManager;
use Sonata\DoctrineMongoDBAdminBundle\Datagrid\Pager;
use Sonata\DoctrineMongoDBAdminBund... | Including the use statement for the PostInterface class | sonata-project_SonataNewsBundle | train | php |
3300daaf23577c02a948a04553b25acb1f5153d1 | diff --git a/components/datepicker/index.js b/components/datepicker/index.js
index <HASH>..<HASH> 100644
--- a/components/datepicker/index.js
+++ b/components/datepicker/index.js
@@ -167,7 +167,7 @@ export default class Datepicker extends Intact {
} else if (!v.length) {
// calendar cancelled the ... | fix(datepicker): set the first value when pass an array which length is 0 | ksc-fe_kpc | train | js |
08add8b2836eeabd4d64c1d38c407df2eaeeb557 | diff --git a/src/Connection.php b/src/Connection.php
index <HASH>..<HASH> 100644
--- a/src/Connection.php
+++ b/src/Connection.php
@@ -20,7 +20,7 @@ class Connection {
}
try {
- $this->resource = new \PDO(...$arguments);
+ $this->database = new \PDO(...$arguments);
... | Fix: Assign PDO to correct property | p810_mysql-helper | train | php |
40f686e2bc991bbebf5439c7c103f774ef3c1e3a | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,6 +29,7 @@ install_requires = [
'djangosaml2>=0.11.0,<0.12',
'drf-extensions==0.2.6',
'logan==0.5.9.1',
+ 'ordereddict==1.1',
'python-cinderclient>=1.0.7,<=1.1.1',
'python-glanceclient>=0.12.0,<... | ordereddict added to requirements (itacloud-<I>) | opennode_waldur-core | train | py |
8b2141720d14ec810dfe09c79af46e50b11b26f7 | diff --git a/examples/example_brunel.py b/examples/example_brunel.py
index <HASH>..<HASH> 100644
--- a/examples/example_brunel.py
+++ b/examples/example_brunel.py
@@ -298,7 +298,7 @@ if properrun:
if properrun:
#execute network simulation
- BN.run()
+ BN.simulate()
#wait for the network simulation to f... | run function renamed simulate fix | INM-6_hybridLFPy | train | py |
411df151ad730f9ecd793e5bf491e012fa6c9ea1 | diff --git a/packages/ui-docs-client/src/Properties/index.js b/packages/ui-docs-client/src/Properties/index.js
index <HASH>..<HASH> 100644
--- a/packages/ui-docs-client/src/Properties/index.js
+++ b/packages/ui-docs-client/src/Properties/index.js
@@ -67,9 +67,14 @@ class Properties extends Component {
return Objec... | docs(ui-docs-client): filter out styles and makeStyles from component property lists
Closes: INSTUI-<I> | instructure_instructure-ui | train | js |
24e9a6978ba84973083c1242a319e8c67fe03c87 | diff --git a/tools/run_tests/artifacts/artifact_targets.py b/tools/run_tests/artifacts/artifact_targets.py
index <HASH>..<HASH> 100644
--- a/tools/run_tests/artifacts/artifact_targets.py
+++ b/tools/run_tests/artifacts/artifact_targets.py
@@ -254,6 +254,7 @@ class CSharpExtArtifact:
'tools\\run_tests\\... | Increase artifact build timeout for windows-C# (#<I>)
The <I>min timeout has caused the multiarch artifact build to fail twice
in the past week. See
http://sponge2/<I>f7f6f8-d3c0-4b6e-<I>c8-c0c<I>f<I>b | grpc_grpc | train | py |
570600514b30b34e776731b9f19a6f8be52988c5 | diff --git a/includes/functions/functions_charts.php b/includes/functions/functions_charts.php
index <HASH>..<HASH> 100644
--- a/includes/functions/functions_charts.php
+++ b/includes/functions/functions_charts.php
@@ -346,11 +346,13 @@ function print_family_children($famid, $childid = "", $sosa = 0, $label="", $per
... | Fix vertical lines in booklets to account for compact variables for second spouse. | fisharebest_webtrees | train | php |
98bbc34fac440d6741d819dcc3269b259f85bacc | diff --git a/tests/test_admin.rb b/tests/test_admin.rb
index <HASH>..<HASH> 100644
--- a/tests/test_admin.rb
+++ b/tests/test_admin.rb
@@ -41,6 +41,7 @@ class AdminTest < Test::Unit::TestCase
# Perform at least one query while profiling so we have something to see.
@admin.profiling_level = :all
@coll.fin... | minor reordering to minimize time spent profiling | mongodb_mongo-ruby-driver | train | rb |
51d836e0f23e3ee3cfc19e4946e93d4350890060 | diff --git a/jawa/constants.py b/jawa/constants.py
index <HASH>..<HASH> 100644
--- a/jawa/constants.py
+++ b/jawa/constants.py
@@ -534,7 +534,7 @@ class ConstantPool(object):
else:
# Every other constant type is trivial.
fmt, size = _constant_fmts[tag]
- sel... | Using new Py<I> tuple unpacking saves ~<I>ms by avoiding calls to tupleconcat. | TkTech_Jawa | train | py |
b25af9eb24bcb0175462d91398a6c725a279e3e4 | diff --git a/test/benchmark-test.js b/test/benchmark-test.js
index <HASH>..<HASH> 100644
--- a/test/benchmark-test.js
+++ b/test/benchmark-test.js
@@ -172,7 +172,7 @@ vows.describe('Benchmark').addBatch({
should.not.exist(err);
should.exist(result);
result.should.not.be.instanceof(Error); // can't trust vow... | fixed test to work with new should.js version. | oferei_json-gate | train | js |
96c1fd62e4704f4ec6b3bd5fae872a4e144acec7 | diff --git a/kite/kite.go b/kite/kite.go
index <HASH>..<HASH> 100644
--- a/kite/kite.go
+++ b/kite/kite.go
@@ -188,6 +188,10 @@ func New(options *Options) *Kite {
}
})
+ k.server.OnConnect(func(c *rpc.Client) {
+ k.Log.Info("Client is connected: %s", c.Conn.Request().RemoteAddr)
+ })
+
// Every kite should be... | kite: change the log how client connection is showed. | koding_kite | train | go |
affd9c91b146ca1784a04407880ca8f582693585 | diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index <HASH>..<HASH> 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -2,7 +2,9 @@ require "simplecov"
require "coveralls"
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
-SimpleCov.start
+SimpleCov.start do
+ add_filter "/spec"
+end
# Th... | Don't run the coverage metrics on the spec directory. | kevintuhumury_kuva | train | rb |
4725a378b730b5f05d167cf4370e130470e72a35 | diff --git a/tests/test_quoting.py b/tests/test_quoting.py
index <HASH>..<HASH> 100644
--- a/tests/test_quoting.py
+++ b/tests/test_quoting.py
@@ -37,6 +37,12 @@ def test_quote_from_bytes(quote):
assert quote('') == ''
+def test_issue_41(quote):
+ with pytest.raises(UnicodeEncodeError):
+ quote('j\x1... | [fix] test for issue <I> | aio-libs_yarl | train | py |
83e1c7353fb72b82b9dff88ee44ef6a502f87500 | diff --git a/stacker/plan.py b/stacker/plan.py
index <HASH>..<HASH> 100644
--- a/stacker/plan.py
+++ b/stacker/plan.py
@@ -121,6 +121,8 @@ class Plan(OrderedDict):
step.skip()
else:
time.sleep(self.sleep_time)
+
+ self._check_point()
return results
d... | Log the checkpoint message when the plan completes | cloudtools_stacker | train | py |
32d091e2520c8fcee90ae0a90b5a59dd4b57301e | diff --git a/src/App.php b/src/App.php
index <HASH>..<HASH> 100644
--- a/src/App.php
+++ b/src/App.php
@@ -16,7 +16,7 @@ class App
// @var array|false Location where to load JS/CSS files
public $cdn = [
- 'atk' => 'https://cdn.rawgit.com/atk4/ui/1.5.3/public',
+ 'atk' ... | Updated CDN and $version in App.php to <I> | atk4_ui | train | php |
4c3e70439c516f322023935a7f53f9d29ffe3f45 | diff --git a/sc2common/containers.py b/sc2common/containers.py
index <HASH>..<HASH> 100644
--- a/sc2common/containers.py
+++ b/sc2common/containers.py
@@ -56,7 +56,11 @@ class RestrictedType(object):
return not (self == other)
def __lt__(self, other):
"""allow basic sorting"""
- return sel... | - bug fix to allow None values to compare properly | ttinies_sc2common | train | py |
1b49d5de96d516934a3acf654206a61c3242277c | diff --git a/lib/ecstatic.js b/lib/ecstatic.js
index <HASH>..<HASH> 100755
--- a/lib/ecstatic.js
+++ b/lib/ecstatic.js
@@ -34,6 +34,7 @@ var ecstatic = module.exports = function (dir, options) {
// Support hashes and .types files in mimeTypes @since 0.8
if (opts.mimeTypes) {
if (typeof opts.mimeTypes === 'st... | @jfhbrook what do you think about the handleError option? Should we not throw if it is true? | jfhbrook_node-ecstatic | train | js |
3766c279dbaf262f64897159f489b6a80570c763 | diff --git a/jarallax/jarallax-video.js b/jarallax/jarallax-video.js
index <HASH>..<HASH> 100644
--- a/jarallax/jarallax-video.js
+++ b/jarallax/jarallax-video.js
@@ -724,6 +724,8 @@
mt += (imageData.image.height - h) / 2;
}
+ ml += imageData.container.left;
+
// ... | fixed video position when container is not in the left corner | nk-o_jarallax | train | js |
31f05bfd5670a825e7fd1eb6eccc9d6d70dda67e | diff --git a/mordred/config.py b/mordred/config.py
index <HASH>..<HASH> 100644
--- a/mordred/config.py
+++ b/mordred/config.py
@@ -441,8 +441,8 @@ class Config():
"optional": True,
"default": True,
"type": bool,
- "description": "rigorous... | [config] Fix flake8 error
This patch fixes some flake8 errors within the mordred/config.py | chaoss_grimoirelab-sirmordred | train | py |
9061cae165644af5e65e4e7a05725f9b0152195d | diff --git a/capybara/queries/selector_query.py b/capybara/queries/selector_query.py
index <HASH>..<HASH> 100644
--- a/capybara/queries/selector_query.py
+++ b/capybara/queries/selector_query.py
@@ -1,4 +1,4 @@
-from xpath.expression import ExpressionType
+from xpath.expression import AbstractExpression
from xpath.ren... | Upgrade xpath-py
And use a more defensive version specification. | elliterate_capybara.py | train | py,py |
21b1bb18b2c29a8dac186a1671baf28d3dba05b6 | diff --git a/lib/memcached/behaviors.rb b/lib/memcached/behaviors.rb
index <HASH>..<HASH> 100644
--- a/lib/memcached/behaviors.rb
+++ b/lib/memcached/behaviors.rb
@@ -60,6 +60,7 @@ class Memcached
# Scoped values; still annoying
when :hash then HASH_VALUES.invert[value]
when :distribution the... | Timeouts should never be reverse-mapped through BEHAVIOR_VALUES. | arthurnn_memcached | train | rb |
a45e07494b68f4439df2577847ec0a0046f0b44b | diff --git a/robolectric/src/test/java/org/robolectric/shadows/ShadowContextWrapperTest.java b/robolectric/src/test/java/org/robolectric/shadows/ShadowContextWrapperTest.java
index <HASH>..<HASH> 100644
--- a/robolectric/src/test/java/org/robolectric/shadows/ShadowContextWrapperTest.java
+++ b/robolectric/src/test/java... | Use the correct test runner for ShadowContextWrapperTest | robolectric_robolectric | train | java |
c85bba57388c39183e5372400185401314ed5f96 | diff --git a/src/main/java/org/seleniumhq/selenium/fluent/recording/RecordingFluentWebElements.java b/src/main/java/org/seleniumhq/selenium/fluent/recording/RecordingFluentWebElements.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/seleniumhq/selenium/fluent/recording/RecordingFluentWebElements.java
+++ b/src/... | List's get(n) can be recordable too | SeleniumHQ_fluent-selenium | train | java |
9d6480c3cd7e7380fd9fb90935d108bca12d33e6 | diff --git a/core/state/snapshot/snapshot.go b/core/state/snapshot/snapshot.go
index <HASH>..<HASH> 100644
--- a/core/state/snapshot/snapshot.go
+++ b/core/state/snapshot/snapshot.go
@@ -172,10 +172,10 @@ type Tree struct {
// If the snapshot is missing or the disk layer is broken, the snapshot will be
// reconstruct... | core/state/snapshot: gofmt | ethereum_go-ethereum | train | go |
124c2dfb998362a64ab73a7d0b8fec6f929546ce | diff --git a/suomimalaga/vvfst/generate_lex.py b/suomimalaga/vvfst/generate_lex.py
index <HASH>..<HASH> 100644
--- a/suomimalaga/vvfst/generate_lex.py
+++ b/suomimalaga/vvfst/generate_lex.py
@@ -94,7 +94,6 @@ def get_vfst_word_class(j_wordclasses):
# Returns a string describing the structure of a word, if necessary ... | Strip useless characters at the end of structure pattern | voikko_corevoikko | train | py |
4bf37d967d478413acf5bfba57e89f4fe9de4bb2 | diff --git a/thermo/base.py b/thermo/base.py
index <HASH>..<HASH> 100644
--- a/thermo/base.py
+++ b/thermo/base.py
@@ -28,7 +28,10 @@ try: # pragma: no cover
from appdirs import user_data_dir, user_config_dir
data_dir = user_config_dir('thermo')
if not os.path.exists(data_dir):
- os.mkdir(data_di... | make data_dir recursively if file not found | CalebBell_thermo | train | py |
3e5639a79428fd593adafb0082799bf3ffb215e6 | diff --git a/dist/angularJsOAuth2.js b/dist/angularJsOAuth2.js
index <HASH>..<HASH> 100755
--- a/dist/angularJsOAuth2.js
+++ b/dist/angularJsOAuth2.js
@@ -111,7 +111,7 @@
if (!parsedFromHash || previousState == service.token.state) {
$rootScope.$broadcast('oauth2:authSuccess', service.token);
var oau... | Handle secure login on the '/' path
It seems that for the case where the route is '/' the redirect that clears the uri hashes does not fire,
I believe this is because the 'oauthRedirectRoute' value stored in sessionStorage is an empty string in this case
which resolves to a truthy false. | JamesRandall_AngularJS-OAuth2 | train | js |
ea22eea697a97aece2e1470d0576588185174893 | diff --git a/parsedatetime/__init__.py b/parsedatetime/__init__.py
index <HASH>..<HASH> 100644
--- a/parsedatetime/__init__.py
+++ b/parsedatetime/__init__.py
@@ -966,6 +966,7 @@ class Calendar:
# check if the remaining text is parsable and if so,
# use it as the base time for the modi... | Chunk1 be dropped incorrectly,
"7pm next thursday" will not parse the "7pm" | bear_parsedatetime | train | py |
53ce14d1dca4624b50b665160ac90777adf77b9e | diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -805,7 +805,6 @@ class BasicChecker(_BasicChecker):
'Used when the first argument to reversed() builtin '
'isn\'t a sequence (do... | Fix wrong continued indentation (bad-continuation) (#<I>)
Fixes a pylint warning for wrong continued indentation (bad-continuation) | PyCQA_pylint | train | py |
dc3b915417f58a251b169505756193e66e8ef7d0 | diff --git a/test/lib/appTest.js b/test/lib/appTest.js
index <HASH>..<HASH> 100644
--- a/test/lib/appTest.js
+++ b/test/lib/appTest.js
@@ -23,6 +23,8 @@ describe('lib/app', () => {
const spy = sinon.spy();
const expected = `${dirname}/../foo/bar`;
testModule.relativeRequire('foo',... | test: Update tests for relativeRequire() | SockDrawer_SockBot | train | js |
fb84f7713d6ced0031dacb0e7e59d516cc681a4d | diff --git a/cherrypy/_cptree.py b/cherrypy/_cptree.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cptree.py
+++ b/cherrypy/_cptree.py
@@ -283,5 +283,8 @@ class Tree(object):
# Python 3/WSGI u.0: all strings MUST be full unicode
environ['SCRIPT_NAME'] = sn
environ['PAT... | Reverting cb<I>b<I> that was breaking dispatching in Python 3.
By trying to solve a double encoding issue, wsgi vars were not being
written in python 3.
Issue #<I> must be reopened. | cherrypy_cheroot | train | py |
37a6512cc5a0d5101cf90ebad58973f6437ff9b6 | diff --git a/src/kahlan/reporter/Terminal.php b/src/kahlan/reporter/Terminal.php
index <HASH>..<HASH> 100644
--- a/src/kahlan/reporter/Terminal.php
+++ b/src/kahlan/reporter/Terminal.php
@@ -58,7 +58,8 @@ class Terminal extends Reporter {
*/
public function begin($params) {
parent::begin($params);
- $this->con... | Don't use color for the first character. | kahlan_kahlan | train | php |
14f3c1e3d1333b2d3d903aeba79d510212e9498a | diff --git a/influxql/ast.go b/influxql/ast.go
index <HASH>..<HASH> 100644
--- a/influxql/ast.go
+++ b/influxql/ast.go
@@ -2394,7 +2394,7 @@ func (s *ShowMeasurementsStatement) String() string {
// RequiredPrivileges returns the privilege(s) required to execute a ShowMeasurementsStatement.
func (s *ShowMeasurements... | auth: fix required permissions for SHOW MEASUREMENTS
When using `SHOW MEASUREMENTS ON <db>`, the required permissions didn't
take into account `<db>` and would only use the `db` parameters from the
HTTP parameters. | influxdata_influxdb | train | go |
e784ee381a576861df0930a772f1adeb34213a18 | diff --git a/dnsimple/dnsimple.go b/dnsimple/dnsimple.go
index <HASH>..<HASH> 100644
--- a/dnsimple/dnsimple.go
+++ b/dnsimple/dnsimple.go
@@ -75,8 +75,8 @@ func NewClient(credentials Credentials) *Client {
// NewRequest creates an API request.
// The path is expected to be a relative path and will be resolved
// ac... | Fix warning: receiver name c should be consistent with previous receiver name | dnsimple_dnsimple-go | train | go |
c89be4dc64557498f087ebed61b7f22bf5dda333 | diff --git a/cumulusci/core/config.py b/cumulusci/core/config.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/config.py
+++ b/cumulusci/core/config.py
@@ -132,7 +132,10 @@ class BaseProjectConfig(BaseTaskFlowConfig):
continue
if line.find('url =') != -1:
line_parts = l... | Handle git repos with .git extension in origin url | SFDO-Tooling_CumulusCI | train | py |
ecd0b13c2b92456ff02c0ca501a6c3c8e3adf3b7 | diff --git a/lib/Models/ArcGisFeatureServerCatalogItem.js b/lib/Models/ArcGisFeatureServerCatalogItem.js
index <HASH>..<HASH> 100644
--- a/lib/Models/ArcGisFeatureServerCatalogItem.js
+++ b/lib/Models/ArcGisFeatureServerCatalogItem.js
@@ -244,10 +244,18 @@ function setupUniqueValRenderer(renderer) {
return out;
}
... | add support for classMinValue | TerriaJS_terriajs | train | js |
b930d650d86f959fa4f83354741df7ac2b477734 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,6 +32,7 @@ except ImportError:
with open('oct2py/__init__.py', 'rb') as fid:
for line in fid:
+ line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip(... | Fix setup.py in Py3K | blink1073_oct2py | train | py |
c8482799008d9b0f965391ce1121a65ef7726ef9 | diff --git a/app/assets/javascripts/controllers/posts/edit.seo.js b/app/assets/javascripts/controllers/posts/edit.seo.js
index <HASH>..<HASH> 100644
--- a/app/assets/javascripts/controllers/posts/edit.seo.js
+++ b/app/assets/javascripts/controllers/posts/edit.seo.js
@@ -9,7 +9,7 @@ angular.module('cortex.controllers.po... | We should not be slugifying SEO title | cortex-cms_cortex | train | js |
7b524bc5571f2c49d7375d2cbd4eb3c7d303dca8 | diff --git a/patroni/postgresql.py b/patroni/postgresql.py
index <HASH>..<HASH> 100644
--- a/patroni/postgresql.py
+++ b/patroni/postgresql.py
@@ -363,7 +363,7 @@ class Postgresql:
env = os.environ.copy()
if 'username' in self.superuser:
env['PGUSER'] = self.superuser['username']
- ... | Create new session and set the process group ID for the postmaster
Otherwice it was receiving signal when you pressed Ctrl+C in the
terminal where patroni is running. | zalando_patroni | train | py |
58ab3e4b841dfbc0beba0a38dd284c2f2a39640c | diff --git a/opal/opal-jquery/local_storage.rb b/opal/opal-jquery/local_storage.rb
index <HASH>..<HASH> 100644
--- a/opal/opal-jquery/local_storage.rb
+++ b/opal/opal-jquery/local_storage.rb
@@ -8,6 +8,17 @@ module Browser
#
# ## Usage
#
+ # LocalStorage is not included by default when you require opal-jquery... | Clarify that LocalStorage needs to be required | opal_opal-jquery | train | rb |
9d040c9ca0817e41703054abe4fd42442b5b18e5 | diff --git a/Block/AccountBlockService.php b/Block/AccountBlockService.php
index <HASH>..<HASH> 100644
--- a/Block/AccountBlockService.php
+++ b/Block/AccountBlockService.php
@@ -12,7 +12,7 @@
namespace Sonata\UserBundle\Block;
use Sonata\BlockBundle\Block\BlockContextInterface;
-use Sonata\BlockBundle\Block\Servic... | fix class inheritance (#<I>)
Fix class inheritance as discussed in <URL> | sonata-project_SonataUserBundle | train | php |
cf6f925fe0778a08749349fa376818be501d37a7 | diff --git a/src/main/java/net/finmath/montecarlo/interestrate/LIBORMarketModel.java b/src/main/java/net/finmath/montecarlo/interestrate/LIBORMarketModel.java
index <HASH>..<HASH> 100644
--- a/src/main/java/net/finmath/montecarlo/interestrate/LIBORMarketModel.java
+++ b/src/main/java/net/finmath/montecarlo/interestrate... | use .discount(RV, rate) | finmath_finmath-lib | train | java |
e90d801bee1bd014bb2a34299dd0171de3d7eb5a | diff --git a/lib/rbvmomi/vim/ResourcePool.rb b/lib/rbvmomi/vim/ResourcePool.rb
index <HASH>..<HASH> 100644
--- a/lib/rbvmomi/vim/ResourcePool.rb
+++ b/lib/rbvmomi/vim/ResourcePool.rb
@@ -22,20 +22,18 @@ class RbVmomi::VIM::ResourcePool
def self.resourcePoolSubTree objs, fields = []
fields = (fields + ['name... | no need to create unique names for the traversal specs | vmware_rbvmomi | train | rb |
583b743822d9416fe1865a9dd728af4bb7afac87 | diff --git a/quantecon/models/solow/impulse_response.py b/quantecon/models/solow/impulse_response.py
index <HASH>..<HASH> 100644
--- a/quantecon/models/solow/impulse_response.py
+++ b/quantecon/models/solow/impulse_response.py
@@ -240,10 +240,7 @@ class ImpulseResponse(object):
"""Validates the kind attribute.... | Changed way attribute validation is done on string attributes to ease Python 2 to 3 transition. | QuantEcon_QuantEcon.py | train | py |
f9308c5beb7ee4235df0f79f503181655712d3bc | diff --git a/besticon/besticon/cmd.go b/besticon/besticon/cmd.go
index <HASH>..<HASH> 100644
--- a/besticon/besticon/cmd.go
+++ b/besticon/besticon/cmd.go
@@ -3,11 +3,15 @@ package main
import (
"flag"
"fmt"
- "github.com/mat/besticon/besticon"
+ "io/ioutil"
"os"
+
+ "github.com/mat/besticon/besticon"
)
func... | Disable verbose logging in command line tool. | mat_besticon | train | go |
884c2d620384408b23d7576f2614e69a63a17307 | diff --git a/inginious/frontend/course_factory.py b/inginious/frontend/course_factory.py
index <HASH>..<HASH> 100644
--- a/inginious/frontend/course_factory.py
+++ b/inginious/frontend/course_factory.py
@@ -99,6 +99,12 @@ class CourseFactory(object):
course_structure[key] = value
self.update_course_de... | Fix task format check when editing task
Wrong fs was passed as argument
Closes #<I> | UCL-INGI_INGInious | train | py,py |
746f32b8338d3ddbff933db368f62311c16e362b | diff --git a/src/Framework/Route.php b/src/Framework/Route.php
index <HASH>..<HASH> 100644
--- a/src/Framework/Route.php
+++ b/src/Framework/Route.php
@@ -22,7 +22,7 @@ class Route
}
static function action($method, $path, $function) {
-
+ $restInput =array();
$me = self::getInstance();
... | updated Route to support resful with param within url request | cinnamonlab_framework | train | php |
fd1d4ac17f809b1d038115ce29d9d80c01cfa178 | diff --git a/pymzn/mzn/minizinc.py b/pymzn/mzn/minizinc.py
index <HASH>..<HASH> 100644
--- a/pymzn/mzn/minizinc.py
+++ b/pymzn/mzn/minizinc.py
@@ -60,6 +60,16 @@ def minizinc_version():
return m[0]
+def check_version():
+ version = minizinc_version()
+ logger.info('Using MiniZinc {}.'.format(version))
+ ... | minizinc: check version at the beginning | paolodragone_pymzn | train | py |
b012040193b967ab273540b9cc79f4ee2be9ecfc | diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -141,7 +141,7 @@ function queryCriteriaToMongo(query, options) {
var hash = {}, p, v, deep
options = options || {}
for (var key in query) {
- if (query.hasOwnProperty(key) && (!options.ignore || options.i... | Modified use of hasOwnProperty to instead call it from Object.prototype as it is no longer supported in Node.js 6. | pbatey_query-to-mongo | train | js |
f50dee591a7c38ab40dbc96c7c4aae894491bf33 | diff --git a/plugins/org.eclipse.xtext.xbase/src/org/eclipse/xtext/xbase/validation/XbaseJavaValidator.java b/plugins/org.eclipse.xtext.xbase/src/org/eclipse/xtext/xbase/validation/XbaseJavaValidator.java
index <HASH>..<HASH> 100644
--- a/plugins/org.eclipse.xtext.xbase/src/org/eclipse/xtext/xbase/validation/XbaseJavaV... | [xbase][validation] Prevent CCE in validator | eclipse_xtext-extras | train | java |
afd7a50eaa899bf3da556038f08d5ce471226667 | diff --git a/src/controllers/UsersController.php b/src/controllers/UsersController.php
index <HASH>..<HASH> 100644
--- a/src/controllers/UsersController.php
+++ b/src/controllers/UsersController.php
@@ -250,17 +250,17 @@ class UsersController extends AdminController {
*/
public function destroy($id)
{
- $user =... | use findOrFail and avoid deleting relationship as this going to be buggy on softdeleting. | orchestral_foundation | train | php |
5f3f2f3baef1369b167a897ad0709f63e9769430 | diff --git a/tests/unit/modules/ddns_test.py b/tests/unit/modules/ddns_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/ddns_test.py
+++ b/tests/unit/modules/ddns_test.py
@@ -29,6 +29,9 @@ ddns.__grains__ = {}
ddns.__salt__ = {}
+@skipif(True, 'mocking dnspython without depending on it being installed'... | fix ddns tests
These tests will only work if dnspython is installed. Mocking away
dnspython is a great amount of work, so we'll just disable these tests
for now. | saltstack_salt | train | py |
5f2a087d9471cad8ec93a70ddd6f4037f420d75e | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ REQUIRES = [
'pandas>=0.20.1',
'webcolors>=1.7.0',
'carto>=1.1.0',
- 'tqdm>=4.14.0',
+ 'tqdm>=4.14.0,!=4.18.0',
'appdirs>=1.4.3',
] | updates to excluded problematic tqdm version | CartoDB_cartoframes | train | py |
785636163d560153122ff44c7aae3f64d3d7656b | diff --git a/lib/i18n_rails_helpers/version.rb b/lib/i18n_rails_helpers/version.rb
index <HASH>..<HASH> 100644
--- a/lib/i18n_rails_helpers/version.rb
+++ b/lib/i18n_rails_helpers/version.rb
@@ -1,3 +1,3 @@
module I18nRailsHelpers
- VERSION = "2.0.0.beta0"
+ VERSION = "2.0.0.beta1"
end | Bump to <I>.beta1 | huerlisi_i18n_rails_helpers | train | rb |
2b99ea9efb6d65a2e8e63a0c4ea3a25af0266f04 | diff --git a/mod/glossary/print.php b/mod/glossary/print.php
index <HASH>..<HASH> 100644
--- a/mod/glossary/print.php
+++ b/mod/glossary/print.php
@@ -41,6 +41,10 @@
require_course_login($course);
+ if (!$cm->visible and !isteacher($course->id)) {
+ notice(get_string("activityiscurrentlyhidden"));
+ ... | Print view isn't accesible if the activity is hidden.
Bug <I>
(<URL>)
Merged from MOODLE_<I>_STABLE | moodle_moodle | train | php,php |
26ad479c0adf2b6aea02f81ba8793c6de36517f8 | diff --git a/test/test_remote.py b/test/test_remote.py
index <HASH>..<HASH> 100644
--- a/test/test_remote.py
+++ b/test/test_remote.py
@@ -596,7 +596,7 @@ run:
touch test.py
[20]
-output: "${input}.bak"
+output: "${input!R}.bak"
task:
run:
cp ${input} ${output} | Fix string interpolation for remote targets. Honor option -r for magic %run | vatlab_SoS | train | py |
903d9847ee65de9cb8db0ca4567e0ab62087ccaf | diff --git a/src/Request.php b/src/Request.php
index <HASH>..<HASH> 100644
--- a/src/Request.php
+++ b/src/Request.php
@@ -19,7 +19,7 @@ class Request implements RequestInterface
/** @var null|string */
private $requestTarget;
- /** @var null|UriInterface */
+ /** @var UriInterface */
private $ur... | $uri cannot be null
by this guard, $this->uri cannot be null.
```php
if (!($uri instanceof UriInterface)) {
$uri = new Uri($uri);
}
``` | guzzle_psr7 | train | php |
f97a14e9c0336d1a0a36c12897c0c3295759f2c7 | diff --git a/src/Versatile/Geo/GoogleCoder.php b/src/Versatile/Geo/GoogleCoder.php
index <HASH>..<HASH> 100644
--- a/src/Versatile/Geo/GoogleCoder.php
+++ b/src/Versatile/Geo/GoogleCoder.php
@@ -48,7 +48,24 @@ class GoogleCoder implements Coder
protected function formatAddress($address)
{
- return st... | Added support for geocoding Address objects | mtils_versatile | train | php |
2b77bde174bc6d89edc63e984feb4ad2e670ac5f | diff --git a/src/test/java/integration/AlertTest.java b/src/test/java/integration/AlertTest.java
index <HASH>..<HASH> 100644
--- a/src/test/java/integration/AlertTest.java
+++ b/src/test/java/integration/AlertTest.java
@@ -29,6 +29,14 @@ public class AlertTest extends IntegrationTest {
}
@Test
+ public void ca... | new test in AlertTest for prompt() with default value | selenide_selenide | train | java |
88166a3e05410a60dd71b71adc3d46ceef6c5b7f | diff --git a/lib/watir-webdriver/locators/text_field_locator.rb b/lib/watir-webdriver/locators/text_field_locator.rb
index <HASH>..<HASH> 100644
--- a/lib/watir-webdriver/locators/text_field_locator.rb
+++ b/lib/watir-webdriver/locators/text_field_locator.rb
@@ -20,11 +20,11 @@ module Watir
@building = :input
... | Optimize the common case when locating text fields | watir_watir | train | rb |
b8721c9bd3a8726887a2aecd4ab80b0a117de4f9 | diff --git a/src/main/java/org/mariadb/jdbc/internal/protocol/AbstractConnectProtocol.java b/src/main/java/org/mariadb/jdbc/internal/protocol/AbstractConnectProtocol.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/mariadb/jdbc/internal/protocol/AbstractConnectProtocol.java
+++ b/src/main/java/org/mariadb/jdbc/... | [CONJ-<I>] regression connection on galera in detached state | MariaDB_mariadb-connector-j | train | java |
37809fb8237fb0b58787900646429b310dfe520e | diff --git a/cmd/peglint/peglint.go b/cmd/peglint/peglint.go
index <HASH>..<HASH> 100644
--- a/cmd/peglint/peglint.go
+++ b/cmd/peglint/peglint.go
@@ -51,8 +51,8 @@ func SetupTracer(p *peg.Parser) {
return s
}
- fmt.Fprintf(os.Stderr, "pos:lev\trule/ope")
- fmt.Fprintf(os.Stderr, "-------\t--------")
+ fmt.Print... | Use standard out for pegint trace | yhirose_go-peg | train | go |
b24a77bb50289954f6cc41806db0ea249aaf7d28 | diff --git a/Tests/Functional/CacheAnnotationTest.php b/Tests/Functional/CacheAnnotationTest.php
index <HASH>..<HASH> 100644
--- a/Tests/Functional/CacheAnnotationTest.php
+++ b/Tests/Functional/CacheAnnotationTest.php
@@ -87,8 +87,8 @@ class CacheAnnotationTest extends FunctionalTestCase
public function testCache... | Fix syntax to be compatible with php <I> | TheBigBrainsCompany_TbbcCacheBundle | train | php |
b7cad0b689088255eec8384c03b97265c9c1bb42 | diff --git a/tests/WrappedStringListTest.php b/tests/WrappedStringListTest.php
index <HASH>..<HASH> 100644
--- a/tests/WrappedStringListTest.php
+++ b/tests/WrappedStringListTest.php
@@ -114,4 +114,17 @@ class WrappedStringListTest extends \PHPUnit_Framework_TestCase {
"Lists, wraps, and regular strings"
);
}
... | tests: Complete code coverage to <I>%
WrappedStringList::__toString() wasn't covered yet.
Everything else is covered.
Change-Id: I<I>d1c<I>dc2cab5dda<I>ef2b<I>da6dc<I> | wikimedia_WrappedString | train | php |
7d0caeb6133c08059bb9381d32b5397e5735c698 | diff --git a/tests/test_event.py b/tests/test_event.py
index <HASH>..<HASH> 100644
--- a/tests/test_event.py
+++ b/tests/test_event.py
@@ -164,7 +164,7 @@ class TestEvent(TestCase):
occurrences = recurring_event.get_occurrences(start=datetime.datetime(2008, 1, 5, tzinfo=pytz.utc),
end = datetime.da... | Fixes test for python 3 compatibility | llazzaro_django-scheduler | train | py |
25b1e5538bde41e7a29ec5bc85bcae51e4f3719a | diff --git a/lib/diarize/speaker.rb b/lib/diarize/speaker.rb
index <HASH>..<HASH> 100644
--- a/lib/diarize/speaker.rb
+++ b/lib/diarize/speaker.rb
@@ -4,7 +4,10 @@ module Diarize
# Some possible matching heuristics if using GDMAP:
# - speaker mean_log_likelihood needs to be more than -33 to be considered fo... | A first stab at cross-show identification using GDMAP + heuristics | bbc_diarize-jruby | train | rb |
a978d64edc2a4b1ec97af281f15cce4b0bd0d20d | diff --git a/core/src/main/java/tachyon/worker/TachyonWorker.java b/core/src/main/java/tachyon/worker/TachyonWorker.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/tachyon/worker/TachyonWorker.java
+++ b/core/src/main/java/tachyon/worker/TachyonWorker.java
@@ -242,7 +242,7 @@ public class TachyonWorker implem... | Change name of connect method in worker to match master's. | Alluxio_alluxio | train | java |
846389663cd8e3404b8aaa7e20e23240200a8ce2 | diff --git a/src/file/NativeFileSystem.js b/src/file/NativeFileSystem.js
index <HASH>..<HASH> 100644
--- a/src/file/NativeFileSystem.js
+++ b/src/file/NativeFileSystem.js
@@ -243,6 +243,17 @@ define(function (require, exports, module) {
}
});
},
+
+ isRelativePath: ... | Added isRelativePath public method. | adobe_brackets | train | js |
af7e41c3556bc41855aee564fb00afcfa16a61cf | diff --git a/test/tools/javac/api/TestJavacTaskScanner.java b/test/tools/javac/api/TestJavacTaskScanner.java
index <HASH>..<HASH> 100644
--- a/test/tools/javac/api/TestJavacTaskScanner.java
+++ b/test/tools/javac/api/TestJavacTaskScanner.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliate... | <I>: javac test failing after Lambda changes to java.util.List
Reviewed-by: mduigou | wmdietl_jsr308-langtools | train | java |
2a29f85ae161a9176edba23c5a186f47f3e34aad | diff --git a/lib/core/generator.js b/lib/core/generator.js
index <HASH>..<HASH> 100644
--- a/lib/core/generator.js
+++ b/lib/core/generator.js
@@ -78,30 +78,34 @@ function findData (dataPath) {
return presskits
}
-function generateHTML (dataPath, presskits) {
+function generateHTML (dataPath, pages) {
showHead... | Rename presskits to pages in generateHTML() | pixelnest_presskit.html | train | js |
f6b02d5823fe20ca296000c99dd9f86956d11bcb | diff --git a/salt/modules/win_dsc.py b/salt/modules/win_dsc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_dsc.py
+++ b/salt/modules/win_dsc.py
@@ -362,9 +362,10 @@ def apply_config(path, source=None, salt_env='base'):
Required.
:param str source: Path to the directory that contains the .mof file on ... | Updated docs for apply_config | saltstack_salt | train | py |
6517f456309085636658c1c27c2788e81b92b515 | diff --git a/app/src/Bolt/Config.php b/app/src/Bolt/Config.php
index <HASH>..<HASH> 100644
--- a/app/src/Bolt/Config.php
+++ b/app/src/Bolt/Config.php
@@ -516,7 +516,7 @@ class Config
'notfound_image' => 'view/img/default_notfound.png',
'error_image' => 'view/img/default_error... | 'accept_file_types' should be an array, not something regexy.. | bolt_bolt | train | php |
c020ddd33e013cfc5b589826fdcdd5cfe41e0872 | diff --git a/lib-dempsyimpl/src/main/java/com/nokia/dempsy/router/DecentralizedRoutingStrategy.java b/lib-dempsyimpl/src/main/java/com/nokia/dempsy/router/DecentralizedRoutingStrategy.java
index <HASH>..<HASH> 100644
--- a/lib-dempsyimpl/src/main/java/com/nokia/dempsy/router/DecentralizedRoutingStrategy.java
+++ b/lib-... | [fix] Logic was incorrect when determining whether or not a node handles a particular key in the DecentralizedRoutingStratgey.Inbound. Need to handle the negative result of a mod. | Dempsy_dempsy | train | java |
76cc40b0e9a5668a2702b214a9b7ab33d3ff94f8 | diff --git a/lib/omnibus/whitelist.rb b/lib/omnibus/whitelist.rb
index <HASH>..<HASH> 100644
--- a/lib/omnibus/whitelist.rb
+++ b/lib/omnibus/whitelist.rb
@@ -1,5 +1,5 @@
-# Copyright 2012-2018 Chef Software, Inc.
+# Copyright 2012-2020, Chef Software Inc.
#
# Licensed under the Apache License, Version 2.0 (the "Li... | Whitelist libanl
Necessary for linux boxes and ruby <I>
This appears to be "needed for asynchronous network address and service
translation" and is part of glibc | chef_omnibus | train | rb |
85b6260d80dc6e4922219db50dea24643f38d782 | diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py
index <HASH>..<HASH> 100644
--- a/zipline/assets/assets.py
+++ b/zipline/assets/assets.py
@@ -118,6 +118,10 @@ class AssetFinder(object):
self.conn = sqlite3.connect(db_path)
self.cursor = self.conn.cursor()
+ # The AssetFinder ... | BUG: Make sure metadata_cache is created.
Fix issue where metadata_cache was missing causing an AttributeError. | quantopian_zipline | train | py |
18fa32f2c21f9c67e97f6f806ae69aa8d1e587da | diff --git a/lib/active_interaction/base.rb b/lib/active_interaction/base.rb
index <HASH>..<HASH> 100644
--- a/lib/active_interaction/base.rb
+++ b/lib/active_interaction/base.rb
@@ -225,6 +225,7 @@ module ActiveInteraction
# Example.run!() # => false
# Example.run!(x: nil) # => fals... | make the docs a bit more clear | AaronLasseigne_active_interaction | train | rb |
acd87918d2259d5fa61f24ba6229cc92c5197e65 | diff --git a/core/src/main/java/org/springframework/security/util/InMemoryResource.java b/core/src/main/java/org/springframework/security/util/InMemoryResource.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/org/springframework/security/util/InMemoryResource.java
+++ b/core/src/main/java/org/springframework/s... | Implemented hashcode (and equals) to prevent NPE with Spring <I> | spring-projects_spring-security | train | java |
5244b02c7bb6e9bbead600b4cb5ebe0f43849f77 | diff --git a/core/src/main/java/io/ddf/DDFManager.java b/core/src/main/java/io/ddf/DDFManager.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/io/ddf/DDFManager.java
+++ b/core/src/main/java/io/ddf/DDFManager.java
@@ -86,6 +86,8 @@ public abstract class DDFManager extends ALoggable implements IDDFManager, IHan... | DDFManager.removeDDF also clear and uncache all representations | ddf-project_DDF | train | java |
0b74fa630a80777464cd15c2a25582e3a7ec321e | diff --git a/test/tests.js b/test/tests.js
index <HASH>..<HASH> 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -89,6 +89,8 @@ describe('buildcontrol', function() {
beforeEach(function(done) {
+ var scenarioPath = this.currentTest.parent.title;
+
// ensure that we reset to `test/` dir
process.chdi... | (tests) throw error for missing scenarios | robwierzbowski_grunt-build-control | train | js |
082d4dd409f636715da0b8b77bc32c956cd84c6b | diff --git a/azureiothub.js b/azureiothub.js
index <HASH>..<HASH> 100644
--- a/azureiothub.js
+++ b/azureiothub.js
@@ -109,7 +109,7 @@ module.exports = function (RED) {
if (client) {
node.log('Disconnecting from Azure IoT Hub');
client.removeAllListeners();
- client.close(p... | Corrected incorrect call to printResultFor | Azure_node-red-contrib-azure | train | js |
b66891b0800affb938f66e431add19bae8bc325b | diff --git a/squad/frontend/tests.py b/squad/frontend/tests.py
index <HASH>..<HASH> 100644
--- a/squad/frontend/tests.py
+++ b/squad/frontend/tests.py
@@ -57,7 +57,7 @@ class TestResultTable(list):
if search:
query_set = query_set.filter(name__icontains=search)
- tests = query... | frontend: tests: remove unecessary ordering
Ordering is already done in python, so no need for this
to be done in the db, making it a bit faster | Linaro_squad | train | py |
83d7db3e505f2d080ac78ca7777937c812588003 | diff --git a/pkg/mount/mountinfo_linux_test.go b/pkg/mount/mountinfo_linux_test.go
index <HASH>..<HASH> 100644
--- a/pkg/mount/mountinfo_linux_test.go
+++ b/pkg/mount/mountinfo_linux_test.go
@@ -446,3 +446,32 @@ func TestParseGentooMountinfo(t *testing.T) {
t.Fatal(err)
}
}
+
+func TestParseFedoraMountinfoFields(... | pkg/mount: testing mountinfo fields | moby_moby | train | go |
50598fec8f00d44c9069a85dc3db5ce649232177 | diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -36,7 +36,7 @@ function gulpRubySass (source, options) {
var base;
var intermediateDir;
var dest;
- var compileMappings;
+ var compileMapping;
// redundant but necessary
stream._read = function () {};
@@ -70,7 +70,... | Rename compileMappings to compileMapping
It's a single mapping. | sindresorhus_gulp-ruby-sass | train | js |
391853f04ebff25994cd86a0cbe9f905cdce616b | diff --git a/tests/test_get_user_config.py b/tests/test_get_user_config.py
index <HASH>..<HASH> 100644
--- a/tests/test_get_user_config.py
+++ b/tests/test_get_user_config.py
@@ -36,14 +36,26 @@ def back_up_rc(request, user_config_path):
shutil.copy(user_config_path, user_config_path_backup)
os.remove... | Add finalizer to remove the rc created by the tests | audreyr_cookiecutter | train | py |
51fda3d66114c6160edd0212fd627d06fd9a6bf2 | diff --git a/pypsa/opf.py b/pypsa/opf.py
index <HASH>..<HASH> 100644
--- a/pypsa/opf.py
+++ b/pypsa/opf.py
@@ -1089,7 +1089,7 @@ def extract_optimisation_results(network, snapshots, formulation="angles"):
'Link': ['p0', 'p1', 'mu_lower', 'mu_upper']})
#get value of objec... | opf: Change objective from "Lower bound" to "Upper bound"
Because for MILP problems under certain circumstances CPLEX records
the "Lower bound" as the relaxed value. "Upper bound" is correctly
recorded as the integer objective value.
See Issue #<I>. | PyPSA_PyPSA | train | py |
69a197405eb66366eda6d51c46f0c88f8d18f190 | diff --git a/tests/test_helper.rb b/tests/test_helper.rb
index <HASH>..<HASH> 100644
--- a/tests/test_helper.rb
+++ b/tests/test_helper.rb
@@ -225,7 +225,7 @@ ensure
end
end
-def with_unicorn_rackup(name, file_name='/tmp/unicorn.sock')
+def with_unicorn(name, file_name='/tmp/unicorn.sock')
unless RUBY_PLATFORM... | Doesn't make sense with rackup anymore | excon_excon | train | rb,rb |
03513e2755b67c0fad5e1173c0ff80563bb94b0e | diff --git a/lib/logidze/versioned_association.rb b/lib/logidze/versioned_association.rb
index <HASH>..<HASH> 100644
--- a/lib/logidze/versioned_association.rb
+++ b/lib/logidze/versioned_association.rb
@@ -2,7 +2,7 @@
# `inversed` attr_accessor has been removed in Rails 5.2.1
# See https://github.com/rails/rails/c... | I made a type which doesn't break anything :) | palkan_logidze | train | rb |
00b8d5b401aa8aa47bc664b9a976bf57ca7344e8 | diff --git a/api/src/opentrons/hardware_control/__init__.py b/api/src/opentrons/hardware_control/__init__.py
index <HASH>..<HASH> 100644
--- a/api/src/opentrons/hardware_control/__init__.py
+++ b/api/src/opentrons/hardware_control/__init__.py
@@ -543,8 +543,8 @@ class API(HardwareAPILike):
for smoothie... | fix(api): Ensure position is fully updated after a home (#<I>) | Opentrons_opentrons | train | py |
995d45a380903578b481b997266b839d05f61b3b | diff --git a/packages/article-skeleton/src/article-body/article-body.js b/packages/article-skeleton/src/article-body/article-body.js
index <HASH>..<HASH> 100644
--- a/packages/article-skeleton/src/article-body/article-body.js
+++ b/packages/article-skeleton/src/article-body/article-body.js
@@ -309,7 +309,7 @@ const ren... | feat(TDP-<I>) Sport widget update (#<I>) | newsuk_times-components | train | js |
8098db89604ce9c48cb6efb7e3a5af33773e8791 | diff --git a/vyked/registry.py b/vyked/registry.py
index <HASH>..<HASH> 100644
--- a/vyked/registry.py
+++ b/vyked/registry.py
@@ -24,8 +24,8 @@ class Repository:
service_name = self._get_full_service_name(service.name, service.version)
service_entry = (service.host, service.port, service.node_id, ser... | Fix bug where registered packet wasn't received by standalone services | kashifrazzaqui_vyked | train | py |
8bcfe23a1d6d8ae136f0568806bf8e5372cca073 | diff --git a/JSAT/test/jsat/math/FastMathTest.java b/JSAT/test/jsat/math/FastMathTest.java
index <HASH>..<HASH> 100644
--- a/JSAT/test/jsat/math/FastMathTest.java
+++ b/JSAT/test/jsat/math/FastMathTest.java
@@ -149,7 +149,11 @@ public class FastMathTest
relErrs.add(relErr(Math.pow(y, x), FastMath.pow(y, x)... | Improved conditions on FastPow to avoid false fails | EdwardRaff_JSAT | train | java |
cc9b4cf7b9457b25b23579515666e4022d376069 | diff --git a/jpype/imports.py b/jpype/imports.py
index <HASH>..<HASH> 100644
--- a/jpype/imports.py
+++ b/jpype/imports.py
@@ -96,7 +96,7 @@ def _getStaticMethods(cls):
for u in cls.class_.getMethods():
if not _modifier.isStatic(u.getModifiers()):
continue
- name = _keywordWrap(u.getNa... | Fixing "attribute name must be string" | jpype-project_jpype | train | py |
8c5bf83fbd2102d2dedb0bb7b06fce00e2d1cb1c | diff --git a/lib/kiss/kiss.rb b/lib/kiss/kiss.rb
index <HASH>..<HASH> 100644
--- a/lib/kiss/kiss.rb
+++ b/lib/kiss/kiss.rb
@@ -47,9 +47,25 @@ module KISS
return (port << 4) & command_code
end
+ protected
+ def write_setting(name, value)
+ # return self.write_interface(
+... | Added some more methods to the KISS class. | Syncleus_apex-aprs | train | rb |
8b3a6edd3d1ea1b7a61576e2b60d63f75b6e5a91 | diff --git a/lib/deviceSpecs/index.js b/lib/deviceSpecs/index.js
index <HASH>..<HASH> 100644
--- a/lib/deviceSpecs/index.js
+++ b/lib/deviceSpecs/index.js
@@ -4,7 +4,9 @@ var dir = require('../../settings').ensureFolder();
var fs = require('fs');
function userDeviceSpecs() {
+
var specFile = path.join(dir, 'devic... | Fixed ENOENT errors for some commands. | particle-iot_particle-cli | 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.