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 |
|---|---|---|---|---|---|
7ec23ffd702bdff09429ebf2b6ee80ef9c0b566b | diff --git a/spec/page_spec.js b/spec/page_spec.js
index <HASH>..<HASH> 100644
--- a/spec/page_spec.js
+++ b/spec/page_spec.js
@@ -5,7 +5,9 @@ describe("page", function () {
var source = require('../lib/source')(separator);
- var process_file = function (process, name) { return process(partials[name]) };
+ var... | Add params argument to handle passing of data to a partial | cambridge-healthcare_grunt-stencil | train | js |
3dc1f3da7377e5a5cf55ad0e30abeb309232a80e | diff --git a/tests/test_json_posts.php b/tests/test_json_posts.php
index <HASH>..<HASH> 100644
--- a/tests/test_json_posts.php
+++ b/tests/test_json_posts.php
@@ -123,6 +123,8 @@ class WP_Test_JSON_Posts extends WP_UnitTestCase {
$this->assertEquals( $data['name'], $edited_post->post_name );
$this->assertEquals( ... | Added response test for edit context of edit_post endpoint. | WP-API_WP-API | train | php |
b2d3054ddc10c4467dadc9870b8516b23d66f6f5 | diff --git a/topology-graph.js b/topology-graph.js
index <HASH>..<HASH> 100644
--- a/topology-graph.js
+++ b/topology-graph.js
@@ -203,8 +203,8 @@
}
function resized() {
- if (!timeout)
- timeout = window.setTimeout(adjust, 50);
+ window.clearTimeout(timeout);
+ tim... | Only relayout graph when resize operation is done or paused
The resizing jerks quite a bit (which is unsolved) so at least
mitigate by doing it less often. | kubernetes-ui_topology-graph | train | js |
8cee846a5602b42417494326245d805cd68f293f | diff --git a/vault/external_tests/misc/kvv2_upgrade_test.go b/vault/external_tests/misc/kvv2_upgrade_test.go
index <HASH>..<HASH> 100644
--- a/vault/external_tests/misc/kvv2_upgrade_test.go
+++ b/vault/external_tests/misc/kvv2_upgrade_test.go
@@ -12,8 +12,8 @@ import (
"github.com/hashicorp/vault/api"
"github.com/h... | Fixed wrong imports in test after refactoring (#<I>) | hashicorp_vault | train | go |
03d97cb2776496726f95a793499133e278c71211 | diff --git a/TYPO3.Neos/Classes/TYPO3/Neos/Routing/FrontendNodeRoutePartHandler.php b/TYPO3.Neos/Classes/TYPO3/Neos/Routing/FrontendNodeRoutePartHandler.php
index <HASH>..<HASH> 100644
--- a/TYPO3.Neos/Classes/TYPO3/Neos/Routing/FrontendNodeRoutePartHandler.php
+++ b/TYPO3.Neos/Classes/TYPO3/Neos/Routing/FrontendNodeRo... | BUGFIX: Valid URLs with `supportEmptySegmentForDimensions`
Makes sure that generated URLs observe the setting.
Fixes: #<I> | neos_neos-development-collection | train | php |
bb8f8b71f45446780449a730a741cc952a9f8578 | diff --git a/src/bitbangio.py b/src/bitbangio.py
index <HASH>..<HASH> 100755
--- a/src/bitbangio.py
+++ b/src/bitbangio.py
@@ -16,6 +16,11 @@ class I2C(Lockable):
# TODO: This one is a bit questionable:
if agnostic.board_id == ap_board.PYBOARD:
raise NotImplementedError("No software I2C o... | Display message to linux user to use new Bitbang Library for now | adafruit_Adafruit_Blinka | train | py |
65960d7be6ce6f46569d5576d427b8ef1694ea2f | diff --git a/fluent.js b/fluent.js
index <HASH>..<HASH> 100644
--- a/fluent.js
+++ b/fluent.js
@@ -22,10 +22,13 @@ function floc(target){
return new Floc(instance);
}
+var returnsSelf = 'addClass removeClass append prepend'.split(' ');
+
for(var key in doc){
if(typeof doc[key] === 'function'){
... | Fixed self-returning functions in fluent api | KoryNunn_doc | train | js |
bb705842d796aa3a37ae9bb391df39bbec55805a | diff --git a/builder/tmpl.go b/builder/tmpl.go
index <HASH>..<HASH> 100644
--- a/builder/tmpl.go
+++ b/builder/tmpl.go
@@ -1,6 +1,8 @@
package builder
-var tmpl = `package {{.Name}}
+var tmpl = `// Code generated by github.com/gobuffalo/packr. DO NOT EDIT
+
+package {{.Name}}
import "github.com/gobuffalo/packr" | Add code generation comment to top of generated files
By convention, a comment at the top of a file which matches this
regular expression:
'^// Code generated .* DO NOT EDIT$'
indicates that a file is generated, and so it can be treated
differently by linters, code review tools, etc. This convention was
established ... | gobuffalo_packr | train | go |
dda5020aa3023656d4507283d8ad0da3d7b39698 | diff --git a/lib/dm-core/adapters/data_objects_adapter.rb b/lib/dm-core/adapters/data_objects_adapter.rb
index <HASH>..<HASH> 100644
--- a/lib/dm-core/adapters/data_objects_adapter.rb
+++ b/lib/dm-core/adapters/data_objects_adapter.rb
@@ -175,9 +175,6 @@ module DataMapper
def update(attributes, collection)
... | Removed comments about subqueries that are no longer valid | datamapper_dm-core | train | rb |
2cbe6cdfd816eab82a697ae9d3620d2d9c897d0e | diff --git a/build.go b/build.go
index <HASH>..<HASH> 100644
--- a/build.go
+++ b/build.go
@@ -210,7 +210,7 @@ func createPackage(options linuxPackageOptions) {
// copy sample ini file to /etc/grafana
runPrint("cp", "conf/sample.ini", filepath.Join(packageRoot, options.configFilePath))
// copy sample ldap toml co... | fix(build): fixed issue in build.go | grafana_grafana | train | go |
e307c3b47d92140409274661acda379a4da75690 | diff --git a/flask2postman.py b/flask2postman.py
index <HASH>..<HASH> 100644
--- a/flask2postman.py
+++ b/flask2postman.py
@@ -140,6 +140,8 @@ def main():
help="the base of every URL (default: {{base_url}})")
parser.add_argument("-a", "--all", action="store_true",
... | Add an option to indent the output | numberly_flask2postman | train | py |
f88e5f6056459daa469b8acaf3ffc095db89c35a | diff --git a/salt/modules/network.py b/salt/modules/network.py
index <HASH>..<HASH> 100644
--- a/salt/modules/network.py
+++ b/salt/modules/network.py
@@ -1832,7 +1832,6 @@ def default_route(family=None):
ret = []
for route in _routes:
if family:
- def_route_family = default_route[family]
... | Remove unused debug variable as per review comments | saltstack_salt | train | py |
4e4b933e73c467207d47a9aa96d5691430a0d954 | diff --git a/twitter4j-core/src/main/java/twitter4j/TwitterStream.java b/twitter4j-core/src/main/java/twitter4j/TwitterStream.java
index <HASH>..<HASH> 100644
--- a/twitter4j-core/src/main/java/twitter4j/TwitterStream.java
+++ b/twitter4j-core/src/main/java/twitter4j/TwitterStream.java
@@ -660,6 +660,8 @@ public final ... | Be more resilient to exceptions thrown during stream processing. | Twitter4J_Twitter4J | train | java |
3846d25bb0d8f956522012dc72def9b95df7a3a4 | diff --git a/src/sftp-ws/client/SFTPv3.js b/src/sftp-ws/client/SFTPv3.js
index <HASH>..<HASH> 100644
--- a/src/sftp-ws/client/SFTPv3.js
+++ b/src/sftp-ws/client/SFTPv3.js
@@ -669,7 +669,15 @@ SFTP.prototype.readdir = function(where, cb) {
buf.writeUInt32BE(handlelen, p, true);
where.copy(buf, p += 4);
- return... | SFTPv3: strip out '.' and '..' from readdir list
This matches behavior of node's fs.readdir() | lukaaash_sftp-ws | train | js |
1a90fb746595d3238cd3d59915c14c0cd5d9fad7 | diff --git a/salt/modules/glance.py b/salt/modules/glance.py
index <HASH>..<HASH> 100644
--- a/salt/modules/glance.py
+++ b/salt/modules/glance.py
@@ -130,9 +130,12 @@ def _auth(profile=None, api_version=2, **connection_args):
g_endpoint_url = g_endpoint_url['internalurl'].strip('v'+str(api_version))
if adm... | fix authentication when keystone.token is defined | saltstack_salt | train | py |
5ad57ec5a5e58440655f872389f58613e6c3c067 | diff --git a/src/main/java/com/github/parboiled1/grappa/buffers/CharSequenceInputBuffer.java b/src/main/java/com/github/parboiled1/grappa/buffers/CharSequenceInputBuffer.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/github/parboiled1/grappa/buffers/CharSequenceInputBuffer.java
+++ b/src/main/java/com/github/... | Add a .length() method to InputBuffer
Will allow in the long run to rework the "end of input" matcher. and to get rid
of EOI. | fge_grappa | train | java,java |
0190b0cb2333d6fe9e00773c8a3b451f8e4b7451 | diff --git a/classes/Swift/AWSTransport.php b/classes/Swift/AWSTransport.php
index <HASH>..<HASH> 100644
--- a/classes/Swift/AWSTransport.php
+++ b/classes/Swift/AWSTransport.php
@@ -84,9 +84,11 @@
}
protected function _debug ( $message ) {
- if( false === $this->debug ) { return; }
- if( true === $this->de... | Check if debug function is_callable before execution.
Cases where configuration variables do not evaulate to true/false result in errors when Swift
attempts to call that value as a function. | jmhobbs_Swiftmailer-Transport--AWS-SES | train | php |
11aa4f0d14dfcde3cbcfbf4433041d92e2aa4214 | diff --git a/app/models/glue/pulp/errata.rb b/app/models/glue/pulp/errata.rb
index <HASH>..<HASH> 100644
--- a/app/models/glue/pulp/errata.rb
+++ b/app/models/glue/pulp/errata.rb
@@ -155,10 +155,14 @@ class Glue::Pulp::Errata
def product_ids
product_ids = []
- self.repoids.each{ |repoid|
- repo = Repo... | <I> - Count on the fact that repo in errata might be deleted
Handling a problem described also in <I>. | Katello_katello | train | rb |
47b9ac64ab88fff12b6003fd9e13eb6712bd20b6 | diff --git a/src/main/java/com/visenze/visearch/ResizeSettings.java b/src/main/java/com/visenze/visearch/ResizeSettings.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/visenze/visearch/ResizeSettings.java
+++ b/src/main/java/com/visenze/visearch/ResizeSettings.java
@@ -7,7 +7,7 @@ public class ResizeSettings {... | Reduce visibility for delta in ResizeSettings | visenze_visearch-sdk-java | train | java |
1fd8644ffecf19f8b16fbd35d706b2ee5bc67efa | diff --git a/thjs.js b/thjs.js
index <HASH>..<HASH> 100644
--- a/thjs.js
+++ b/thjs.js
@@ -1032,6 +1032,7 @@ function raw(type, arg, callback)
if(!hn.chans[chan.id]) return debug("dropping receive packet to dead channel",chan.id,packet.js)
// if err'd or ended, delete ourselves
if(packet.js.err || packet... | add little convenience flag to channels for apps | telehash_e3x-js | train | js |
f18541e05ec19e7bd854f8d667a19f039a130de5 | diff --git a/tests/TestCase/Integration/JsonApi/SearchIntegrationTest.php b/tests/TestCase/Integration/JsonApi/SearchIntegrationTest.php
index <HASH>..<HASH> 100644
--- a/tests/TestCase/Integration/JsonApi/SearchIntegrationTest.php
+++ b/tests/TestCase/Integration/JsonApi/SearchIntegrationTest.php
@@ -13,13 +13,14 @@ c... | Do a Case Sensitive search to prevent Travis Postgres tests from failing | FriendsOfCake_crud-json-api | train | php |
e8cd6853ba5cd47c53073af5bc9c17f88457bed4 | diff --git a/rimraf.js b/rimraf.js
index <HASH>..<HASH> 100644
--- a/rimraf.js
+++ b/rimraf.js
@@ -350,10 +350,13 @@ function rmkidsSync (p, options) {
var retries = isWindows ? 100 : 1
var i = 0
do {
+ var threw = true
try {
- return options.rmdirSync(p, options)
+ var ret = options.rmdirSyn... | only run rmdirSync 'retries' times when it throws | isaacs_rimraf | train | js |
172376b323f75391805ffe95704d0f1130257b17 | diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -113,7 +113,7 @@
}
if (!invokedByParse){
- carryFiller = filler;
+ carryFiller = filler.length === 1 ? filler[0] : filler;
filler = [];
} | made rolled return change non-breaking
rolled will either be an array of what was rolled or with compound rolls that have a parser-invoked component, an array of arrays | troygoode_node-roll | train | js |
099b174e0463cd2c9c2bdfce8a454a75768eb63b | diff --git a/classes/model/page.php b/classes/model/page.php
index <HASH>..<HASH> 100755
--- a/classes/model/page.php
+++ b/classes/model/page.php
@@ -249,7 +249,7 @@ class Model_Page extends ORM_Versioned {
*/
public function delete()
{
- foreach( $this->mptt->descendants() as $p )
+ foreach( $this->mptt->chil... | Fixed a bug in the page::delete() method | boomcms_boom-core | train | php |
ffa8fc37bfd455054ecc72ca278081d1a505ed9b | diff --git a/svg-android/src/com/applantation/android/svg/SVGParser.java b/svg-android/src/com/applantation/android/svg/SVGParser.java
index <HASH>..<HASH> 100644
--- a/svg-android/src/com/applantation/android/svg/SVGParser.java
+++ b/svg-android/src/com/applantation/android/svg/SVGParser.java
@@ -1560,7 +1560,13 @@ pu... | SVG: reenable viewbox scaling (old traffic lights are visible again) | mapsforge_mapsforge | train | java |
18ac7b6d343f0d69cb0aae36d760cb319391b93b | diff --git a/src/js/modules/rangy-util.js b/src/js/modules/rangy-util.js
index <HASH>..<HASH> 100644
--- a/src/js/modules/rangy-util.js
+++ b/src/js/modules/rangy-util.js
@@ -69,17 +69,15 @@ rangy.createModule("Util", function(api, module) {
*/
rangeProto.setStartAndEnd = function() {
var args = a... | Tidied setStartAndEnd() method | timdown_rangy | train | js |
ba438410709bbff27d461b7beec88797f74c1b59 | diff --git a/src/components/button/component.js b/src/components/button/component.js
index <HASH>..<HASH> 100644
--- a/src/components/button/component.js
+++ b/src/components/button/component.js
@@ -594,6 +594,32 @@ if (Button.isChild()) {
awaitPopupBridgeOpener();
+ let debounce = false;
+ let renderTo ... | Do not allow button clicks while the Checkout component is open | paypal_paypal-checkout-components | train | js |
18127d9ab3012d27b38480e3f63d9fb073b9e23f | diff --git a/Siel/Acumulus/OpenCart/Helpers/Registry.php b/Siel/Acumulus/OpenCart/Helpers/Registry.php
index <HASH>..<HASH> 100644
--- a/Siel/Acumulus/OpenCart/Helpers/Registry.php
+++ b/Siel/Acumulus/OpenCart/Helpers/Registry.php
@@ -62,7 +62,7 @@ class Registry
*
* @param \Registry $registry
*/
- ... | Singleton design pattern: make constructor protected. | SIELOnline_libAcumulus | train | php |
40d5e9a4fdf620160b4924364c18e34a4f433c1b | diff --git a/salt/states/git.py b/salt/states/git.py
index <HASH>..<HASH> 100644
--- a/salt/states/git.py
+++ b/salt/states/git.py
@@ -627,7 +627,7 @@ def latest(name,
elif fast_forward is True:
merge_action = 'fast-forwarded'
else:
- merge_actio... | Fix test=True reporting when action is dependent on fetch | saltstack_salt | train | py |
1f5d26b7d377701187e319c761a13ab25448d503 | diff --git a/discord/voice_client.py b/discord/voice_client.py
index <HASH>..<HASH> 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -482,7 +482,7 @@ class VoiceClient:
Parameters
----------
sample_rate : int
- Sets the sample rate of the OpusEncoder.
+ ... | Unit correction in voice docstrings. | Rapptz_discord.py | train | py |
11e1ae7656283babdbbe671b550beb81826887dd | diff --git a/tests/test_suds.py b/tests/test_suds.py
index <HASH>..<HASH> 100644
--- a/tests/test_suds.py
+++ b/tests/test_suds.py
@@ -1948,7 +1948,7 @@ def _assert_dynamic_type(anObject, typename):
assert anObject.__class__.__name__ == typename
-def _client_from_wsdl(wsdl_content):
+def _client_from_wsdl(... | Added support for passing additional test client construction parameters. | ovnicraft_suds2 | train | py |
041f6304effebb6c2c7088005c6dd04ca7c754f4 | diff --git a/lib/visitor/compiler.js b/lib/visitor/compiler.js
index <HASH>..<HASH> 100644
--- a/lib/visitor/compiler.js
+++ b/lib/visitor/compiler.js
@@ -479,7 +479,7 @@ Compiler.prototype.compileSelectors = function(arr){
Compiler.prototype.debugInfo = function(node){
- var path = fs.realpathSync(node.filename)... | Fixed crash when using --line-numbers or --firebug and stdin together
This is a fix for issue #<I> which caused stylus to crash when using
--line-numbers or firebug and stein at the same time. This was caused
by trying to call fs.realpathSync with a bogus file named stdin.
<URL> | stylus_stylus | train | js |
1de8938d0c7ec469a26a8b36406b2afa36486d60 | diff --git a/src/org/jgroups/blocks/RpcDispatcher.java b/src/org/jgroups/blocks/RpcDispatcher.java
index <HASH>..<HASH> 100644
--- a/src/org/jgroups/blocks/RpcDispatcher.java
+++ b/src/org/jgroups/blocks/RpcDispatcher.java
@@ -1,4 +1,4 @@
-// $Id: RpcDispatcher.java,v 1.23 2006/06/15 23:39:56 belaban Exp $
+// $Id: Rpc... | added setter for server_obj (<URL>) | belaban_JGroups | train | java |
bcfa8436e84cd3d289660c3b70aa62b1d61a8620 | diff --git a/src/geo/leaflet/torque.js b/src/geo/leaflet/torque.js
index <HASH>..<HASH> 100644
--- a/src/geo/leaflet/torque.js
+++ b/src/geo/leaflet/torque.js
@@ -45,6 +45,7 @@ var LeafLetTorqueLayer = L.TorqueLayer.extend({
named_map: layerModel.get('named_map'),
auth_token: layerModel.get('auth_token'),... | added dynamic cdn option for torque | CartoDB_carto.js | train | js |
128cdb9112389f18d864dd2cb11bc584a0af55da | diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -125,7 +125,6 @@ class DockerClientTest(unittest.TestCase):
fake_request.assert_called_with('unix://var/run/docker.sock/v1.4/containers/ps',
params={
- 'only_ids': 0,
... | fixed test list_containers to account for upstream changes | docker_docker-py | train | py |
30b0ab4a0b4e87153c0b787cc40283fc204b556e | diff --git a/src/components/VSelect/index.js b/src/components/VSelect/index.js
index <HASH>..<HASH> 100644
--- a/src/components/VSelect/index.js
+++ b/src/components/VSelect/index.js
@@ -28,6 +28,8 @@ const wrapper = {
}
if (props.autocomplete || props.combobox || props.tags) {
+ data.attrs.combobox = ... | fix(VAutocomplete): pass correct props in through the VSelect wrapper | vuetifyjs_vuetify | train | js |
4f04f77ac8828bc91e134961840781ff06cc8f4d | diff --git a/lib/toml.rb b/lib/toml.rb
index <HASH>..<HASH> 100644
--- a/lib/toml.rb
+++ b/lib/toml.rb
@@ -1,10 +1,6 @@
$:.unshift(File.dirname(__FILE__))
require 'time'
-# lmao unescaping
-require 'syck/encoding'
-require 'yaml'
-
require 'parslet'
require 'toml/key'
@@ -14,7 +10,7 @@ require 'toml/transformer... | Remove yaml/syck | jm_toml | train | rb |
f1f19e644afe2f31cc947f1b953329adda5a35bb | diff --git a/tests/unit/components/sl-date-range-picker-test.js b/tests/unit/components/sl-date-range-picker-test.js
index <HASH>..<HASH> 100755
--- a/tests/unit/components/sl-date-range-picker-test.js
+++ b/tests/unit/components/sl-date-range-picker-test.js
@@ -38,7 +38,8 @@ test( 'Change focus to end date input upon ... | fixed lingering datepicker in sl-date-range-picker test | softlayer_sl-ember-components | train | js |
2f2904af6cd859faabb07ee19792e2790de41da4 | diff --git a/actor-sdk/sdk-core/runtime/runtime-js/src/main/java/im/actor/runtime/js/websocket/WebSocketConnection.java b/actor-sdk/sdk-core/runtime/runtime-js/src/main/java/im/actor/runtime/js/websocket/WebSocketConnection.java
index <HASH>..<HASH> 100644
--- a/actor-sdk/sdk-core/runtime/runtime-js/src/main/java/im/ac... | fix(js): Fixing web socket initialization | actorapp_actor-platform | train | java |
58669371e7a2e996fd87b9b5a8d90e55ea401776 | diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -25,6 +25,24 @@ def relevance():
relevance = db.get_relevance()
print repr(relevance)
+def upload():
+ s = get_session()
+ acct = Account('admin', s)
+ resp = acct.create_project('api-create-test-2')
+ if r... | Implementing a database creation and document upload test | LuminosoInsight_luminoso-api-client-python | train | py |
22489634a2da95c16e75b0c80731c0d3975d5f3f | diff --git a/example/app.js b/example/app.js
index <HASH>..<HASH> 100644
--- a/example/app.js
+++ b/example/app.js
@@ -1,7 +1,7 @@
var feathers = require('feathers');
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
-var mongooseService = require('../lib').service;
+var mongooseService = ... | updating in example how a service is required | feathersjs-ecosystem_feathers-mongoose | train | js |
3d4fe11de6c3efdf31a543bea4aed2d496eda975 | diff --git a/memcache/memcache.go b/memcache/memcache.go
index <HASH>..<HASH> 100644
--- a/memcache/memcache.go
+++ b/memcache/memcache.go
@@ -527,7 +527,7 @@ func (c *Client) sendConnCommand(cn *conn, key string, cmd command, item *Item,
}
if kl > 0 {
// Key itself
- buf.Write(stobs(key))
+ buf.WriteString(k... | Use WriteString() to write the key to the buf | rainycape_memcache | train | go |
a8b8300fa50b27b13b343e6f80ed72bf9cc8e421 | diff --git a/app/controllers/user_sessions_controller.rb b/app/controllers/user_sessions_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/user_sessions_controller.rb
+++ b/app/controllers/user_sessions_controller.rb
@@ -68,6 +68,7 @@ class UserSessionsController < ApplicationController
# set the... | Made the login page choose the first 'accessible org' as users org | Katello_katello | train | rb |
a98adb103ce809443885b4182b072877fe158250 | diff --git a/lib/p2ruby/connection.rb b/lib/p2ruby/connection.rb
index <HASH>..<HASH> 100644
--- a/lib/p2ruby/connection.rb
+++ b/lib/p2ruby/connection.rb
@@ -152,8 +152,18 @@ module P2
end
# method UI4 Connect2
- # �������� ���������� ���������� ���������� � ��������. ������� � ���������� � ������ Conn... | VCL/Privod source files reorganized | arvicco_p2ruby | train | rb |
b33f9157c4625a9642803dcf1dfa37807493552e | diff --git a/src/Field/Field.php b/src/Field/Field.php
index <HASH>..<HASH> 100644
--- a/src/Field/Field.php
+++ b/src/Field/Field.php
@@ -63,5 +63,4 @@ class Field extends AbstractField implements TypeInterface
return $output;
}
-
} | Applied fixes from StyleCI (#2) | marcmascarell_formality | train | php |
df9cb92224e9382f921d85db3949663bf0f8bf6a | diff --git a/lib/middleware.js b/lib/middleware.js
index <HASH>..<HASH> 100644
--- a/lib/middleware.js
+++ b/lib/middleware.js
@@ -113,7 +113,7 @@ module.exports = less.middleware = function(source, options){
render: {
compress: 'auto',
yuicompress: false,
- importPaths: []
+ paths: []
... | fixed wrongly named default paths key in render options | emberfeather_less.js-middleware | train | js |
1ea34481c16cfca84c3cbce8bf80493b18db6d8b | diff --git a/test/fragments/test_putint.rb b/test/fragments/test_putint.rb
index <HASH>..<HASH> 100644
--- a/test/fragments/test_putint.rb
+++ b/test/fragments/test_putint.rb
@@ -5,6 +5,11 @@ class TestPutint < MiniTest::Test
def test_putint
@string_input = <<HERE
+class Integer
+ int putint()
+ return 1
... | define putting dummy to fix test | ruby-x_rubyx | train | rb |
f0cf1f9373c04a55aade57f19690e47cd755f43d | diff --git a/fuel/converters/cifar100.py b/fuel/converters/cifar100.py
index <HASH>..<HASH> 100644
--- a/fuel/converters/cifar100.py
+++ b/fuel/converters/cifar100.py
@@ -4,7 +4,7 @@ import tarfile
import h5py
import numpy
import six
-from six.moves import range, cPickle
+from six.moves import cPickle
from fuel.c... | Fixed more PEP8 formatting issues. | mila-iqia_fuel | train | py |
48202a6e0b8a97225dfa5f5ed027e5eb5dcb2551 | diff --git a/src/ossos/core/ossos/gui/models/workload.py b/src/ossos/core/ossos/gui/models/workload.py
index <HASH>..<HASH> 100644
--- a/src/ossos/core/ossos/gui/models/workload.py
+++ b/src/ossos/core/ossos/gui/models/workload.py
@@ -619,7 +619,7 @@ class WorkUnitProvider(object):
version = basenames[... | Removed unneeded printout of directory listing matches when running track. | OSSOS_MOP | train | py |
c7fb61120e1af77841753e19fa0e30fe6df17dd7 | diff --git a/_config.php b/_config.php
index <HASH>..<HASH> 100644
--- a/_config.php
+++ b/_config.php
@@ -38,12 +38,6 @@ ShortcodeParser::get('default')->register('embed', array('Oembed', 'handle_short
$_ENV['TMPDIR'] = TEMP_FOLDER; // for *nix
$_ENV['TMP'] = TEMP_FOLDER; // for Windows
-$aggregatecachedir = TEMP_... | Removing redundant aggregatestore cache config (#<I>) | silverstripe_silverstripe-framework | train | php |
46401588656f165959d5361466aaef66af6ab9da | diff --git a/autograd/convenience_wrappers.py b/autograd/convenience_wrappers.py
index <HASH>..<HASH> 100644
--- a/autograd/convenience_wrappers.py
+++ b/autograd/convenience_wrappers.py
@@ -1,4 +1,7 @@
"""Convenience functions built on top of `grad`."""
+import itertools as it
+
+import autograd.numpy as np
from aut... | Added missing imports to convenience_wrappers | HIPS_autograd | train | py |
ad38f741abebd81b56a4120a766e0d8f6e22584d | diff --git a/libraries/lithium/tests/cases/data/model/DocumentTest.php b/libraries/lithium/tests/cases/data/model/DocumentTest.php
index <HASH>..<HASH> 100644
--- a/libraries/lithium/tests/cases/data/model/DocumentTest.php
+++ b/libraries/lithium/tests/cases/data/model/DocumentTest.php
@@ -16,9 +16,7 @@ class DocumentP... | fixed items syntax for find('first') to pass all existing tests | UnionOfRAD_framework | train | php |
c5ce69466d7381536f87a11946028b1be5390e7f | diff --git a/plugin/init_npm.js b/plugin/init_npm.js
index <HASH>..<HASH> 100644
--- a/plugin/init_npm.js
+++ b/plugin/init_npm.js
@@ -29,12 +29,6 @@ if(canProceed() && !fs.existsSync(npmContainerDir)) {
// add new container as a package
echo.sync("\nnpm-container", ">>", ".meteor/packages");
-
- console.log()... | Removed process.exit call
There's no need for the build process to stop after making the npm-container
directory. Meteor will automatically restart the build when it detects the
addition to .meteor/packages. I've tested that the declared npm modules in
package.json are brought in when running `meteor` in development a... | meteorhacks_npm | train | js |
db1d93321efa2f44a756561bd1cefec8ec830a35 | diff --git a/lib/query.js b/lib/query.js
index <HASH>..<HASH> 100644
--- a/lib/query.js
+++ b/lib/query.js
@@ -3,7 +3,7 @@
module.exports = function (target) {
let fileTypeSet = new Set(['json', 'csv', 'tsv']),
fileType = target.substring(target.lastIndexOf('.') + 1).toLowerCase(),
- headerline = fileTy... | bug/4
Query string for JSON data should be using "--jsonArray" flag
./lib/query.js
- when fileType is "json", headerline will be replaced with "--jsonArray" and included in query string
./test/specs/querySpec.js
- added test to confirm "--jsonArray" flag is correctly added. | otterthecat_mongonaut | train | js,js |
350bbedf5db2a7c1d67f19b99cb3644a4a51fce9 | diff --git a/sharpy/client.py b/sharpy/client.py
index <HASH>..<HASH> 100644
--- a/sharpy/client.py
+++ b/sharpy/client.py
@@ -1,6 +1,5 @@
from urllib import urlencode
-from elementtree.ElementTree import XML
import httplib2
from sharpy.exceptions import CheddarError, AccessDenied, BadRequest, NotFound, Precondi... | Added the ability to use lxml if it's available and to fall back to elementtree if lxml is not available. | SeanOC_sharpy | train | py,py |
e7813ac74e37f47234f4fcfe032d21a0a180ca23 | diff --git a/core/src/main/java/io/fabric8/maven/core/util/ProcessUtil.java b/core/src/main/java/io/fabric8/maven/core/util/ProcessUtil.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/io/fabric8/maven/core/util/ProcessUtil.java
+++ b/core/src/main/java/io/fabric8/maven/core/util/ProcessUtil.java
@@ -18,17 +18... | removed dodgy imports IDEA added! | fabric8io_fabric8-maven-plugin | train | java |
03b4095f9de08af16db9698f15161b5a13a42286 | diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -653,12 +653,20 @@ def linkcode_resolve(domain, info):
try:
fn = inspect.getsourcefile(inspect.unwrap(obj))
except TypeError:
- fn = None
+ try: # prope... | DOC: add source link to properties (#<I>) | pandas-dev_pandas | train | py |
aa697743829d24e72310ab7167ddb3f1540a436e | diff --git a/rails_event_store-rspec/spec/rails_event_store/rspec/be_event_spec.rb b/rails_event_store-rspec/spec/rails_event_store/rspec/be_event_spec.rb
index <HASH>..<HASH> 100644
--- a/rails_event_store-rspec/spec/rails_event_store/rspec/be_event_spec.rb
+++ b/rails_event_store-rspec/spec/rails_event_store/rspec/be... | Test for mixing and matching built-in and BeEvent matchers. | RailsEventStore_rails_event_store | train | rb |
e04a02df069b3f4163f71baf7e23d1c496ae01cd | diff --git a/Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubelet/kubelet.go b/Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubelet/kubelet.go
index <HASH>..<HASH> 100644
--- a/Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubelet/kubelet.go
+++ b/Godeps/_workspace/src/k8s.io/kubernetes/pkg/kubelet/kubelet.go
@@ -2226,7 +2... | UPSTREAM: <I>: Mirror pods don't show logs | openshift_origin | train | go |
03a9a5b018e958ac9ab8ca6a8d8366273b0adad1 | diff --git a/src/Readdle/Database/FQDB.php b/src/Readdle/Database/FQDB.php
index <HASH>..<HASH> 100644
--- a/src/Readdle/Database/FQDB.php
+++ b/src/Readdle/Database/FQDB.php
@@ -163,7 +163,7 @@ final class FQDB implements \Serializable
* executes REPLACE query with placeholders in 2nd param
* @param string... | Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on <URL> | readdle_fqdb | train | php |
4ee9a160dd0313b4972fcae7a398d3b23a99127e | diff --git a/Godeps/_workspace/src/github.com/tendermint/tendermint/types/node.go b/Godeps/_workspace/src/github.com/tendermint/tendermint/types/node.go
index <HASH>..<HASH> 100644
--- a/Godeps/_workspace/src/github.com/tendermint/tendermint/types/node.go
+++ b/Godeps/_workspace/src/github.com/tendermint/tendermint/typ... | use hex to log bytes | hyperledger_burrow | train | go |
a1edeacf6079544beb5f4641414cb63db60431ad | diff --git a/tests/__main__.py b/tests/__main__.py
index <HASH>..<HASH> 100644
--- a/tests/__main__.py
+++ b/tests/__main__.py
@@ -28,6 +28,7 @@ if sys.version_info.minor > 5:
from .test_dataloader import *
from .test_datadumper import *
from .test_dumpload import *
+ from .test_exceptions import *
i... | Run the new test only from python<I>
It uses a new syntax and I don't want to use the horrible <I> one.
I doubt it will be an issue. | ltworf_typedload | train | py |
90c46e896de13064d3c8d5b36e0cbf1a68cccd9b | diff --git a/pkg/chartutil/values.go b/pkg/chartutil/values.go
index <HASH>..<HASH> 100644
--- a/pkg/chartutil/values.go
+++ b/pkg/chartutil/values.go
@@ -94,12 +94,18 @@ func tableLookup(v Values, simple string) (Values, error) {
if !ok {
return v, ErrNoTable
}
- //vv, ok := v2.(map[string]interface{})
- vv, ok... | fix(chartutil): fix Table() method to test Values
This makes the Table() method more flexible than the original version.
It allows either a map[string]interface{} or a chartutil.Values to be
treated as a table. | helm_helm | train | go |
5fa389014a3ce40534703c8a5731c8a9a955058a | diff --git a/flink-streaming-connectors/flink-connector-cassandra/src/main/java/org/apache/flink/streaming/connectors/cassandra/CassandraSinkBase.java b/flink-streaming-connectors/flink-connector-cassandra/src/main/java/org/apache/flink/streaming/connectors/cassandra/CassandraSinkBase.java
index <HASH>..<HASH> 100644
-... | [hotfix] [cassandra] Fix CassandraSinkBase serialization issue | apache_flink | train | java |
a6188ad98eae928bdd93a4f484730b58b125d8f1 | diff --git a/lib/application.js b/lib/application.js
index <HASH>..<HASH> 100644
--- a/lib/application.js
+++ b/lib/application.js
@@ -324,6 +324,13 @@ Application.prototype.initialize = function() {
*/
Application.prototype.routeRequest = function(req, res) {
+
+ // Prevent malformed HTTP Requests
+ if (req.u... | Don't allow invalid HTTP Requests | derdesign_protos | train | js |
d06ed98cd87a20145b572124a670a457f92c3dc0 | diff --git a/napalm/nxos/nxos.py b/napalm/nxos/nxos.py
index <HASH>..<HASH> 100644
--- a/napalm/nxos/nxos.py
+++ b/napalm/nxos/nxos.py
@@ -800,7 +800,9 @@ class NXOSDriver(NXOSDriverBase):
show_version = self._send_command("show version")
facts["model"] = show_version.get("chassis_id", "")
fa... | #<I> Use new dictionary key to fetch OS version (#<I>)
Some Cisco Nexus equipment doesn’t have `sys_ver_str`, but has `rr_sys_ver` instead. Use this as a backup. | napalm-automation_napalm | train | py |
200c141737440d55039780f5bd205e1e81bf20fe | diff --git a/datafilters/decorators.py b/datafilters/decorators.py
index <HASH>..<HASH> 100644
--- a/datafilters/decorators.py
+++ b/datafilters/decorators.py
@@ -28,7 +28,7 @@ def filter_powered(filterform_cls, queryset_name='object_list', pass_params=Fals
runtime_context=kwarg... | Add distinct() in filter_powered decorator | freevoid_django-datafilters | train | py |
99b5395de2e50f4176327dcb1b64bd102202d73f | diff --git a/src/apps/chart.js b/src/apps/chart.js
index <HASH>..<HASH> 100644
--- a/src/apps/chart.js
+++ b/src/apps/chart.js
@@ -249,7 +249,7 @@ d3plus.apps.chart.draw = function(vars) {
else {
var text = vars.format(d,vars[axis].key);
}
-
+
... | fixed y-axis tick positioning on update | alexandersimoes_d3plus | train | js |
b859194e84fcc8147a5dc1acda32ba6e58caee11 | diff --git a/src/ORM.js b/src/ORM.js
index <HASH>..<HASH> 100644
--- a/src/ORM.js
+++ b/src/ORM.js
@@ -64,6 +64,10 @@ export class ORM {
*/
register(...models) {
models.forEach((model) => {
+ if (model.modelName === undefined) {
+ throw new Error('A model was passed that do... | Throwing an error when no modelName is set in register (#<I>)
Adding tests to expect an error to be thrown | redux-orm_redux-orm | train | js,js |
18070b690f42b75432c702e6a2c7eccf8b46c25d | diff --git a/lib/jss/api_connection.rb b/lib/jss/api_connection.rb
index <HASH>..<HASH> 100644
--- a/lib/jss/api_connection.rb
+++ b/lib/jss/api_connection.rb
@@ -269,6 +269,17 @@ module JSS
@connected = false
end # disconnect
+
+ def raise_conflict_error(exception)
+ exception.http_body =~ %r{<p>... | catch <I>Conflict errors and report what caused them in the error message. | PixarAnimationStudios_ruby-jss | train | rb |
4c880f590f282f3ebaae4ad730d18e083e9d7b19 | diff --git a/client/signup/config/flows-pure.js b/client/signup/config/flows-pure.js
index <HASH>..<HASH> 100644
--- a/client/signup/config/flows-pure.js
+++ b/client/signup/config/flows-pure.js
@@ -259,6 +259,7 @@ export function generateFlows( {
description: 'WordPress.com Connect signup flow',
lastModified: ... | Add showRecaptch for wpcc and crowdsignal flows (#<I>) | Automattic_wp-calypso | train | js |
5f6699ac3d3bd8a8b5d792489908fd917f01feae | diff --git a/cloudmesh/common/util.py b/cloudmesh/common/util.py
index <HASH>..<HASH> 100644
--- a/cloudmesh/common/util.py
+++ b/cloudmesh/common/util.py
@@ -163,14 +163,14 @@ def str_banner(txt=None, c="#", debug=True):
:param c: the character used instead of c
:type c: character
"""
- str = ""
+ ... | chg:usr: replace str with line to avoid buildin conflict | cloudmesh_cloudmesh-common | train | py |
aea9ff89f23f5ff9ad179ea63770462f55dd2515 | diff --git a/pypet/tests/integration/merge_test.py b/pypet/tests/integration/merge_test.py
index <HASH>..<HASH> 100644
--- a/pypet/tests/integration/merge_test.py
+++ b/pypet/tests/integration/merge_test.py
@@ -226,15 +226,15 @@ class MergeTest(TrajectoryComparator):
self.filenames = [make_temp_dir(os.path.joi... | FIX: fixed test battery to avoid deleting of used files; | SmokinCaterpillar_pypet | train | py |
a441418b1d2cf87ada0e4b195361b7120107dd9e | diff --git a/lazyconf/lazyconf.py b/lazyconf/lazyconf.py
index <HASH>..<HASH> 100644
--- a/lazyconf/lazyconf.py
+++ b/lazyconf/lazyconf.py
@@ -172,30 +172,6 @@ class Lazyconf():
print(green('Saved data to file: ' + f))
### Prompt/Deprompt functions ###
- def prompt_db_engine(self, p):
- fo... | Removed old prompt functions now handled by lists | fmd_lazyconf | train | py |
441713897ef5604e8105379f45ebb982ab2c9a75 | diff --git a/fixtures/fixtures.go b/fixtures/fixtures.go
index <HASH>..<HASH> 100644
--- a/fixtures/fixtures.go
+++ b/fixtures/fixtures.go
@@ -264,20 +264,34 @@ func (g Fixtures) Exclude(tag string) Fixtures {
return r
}
-type Suite struct{}
-
-func (s *Suite) SetUpSuite(c *check.C) {
+// Init set the correct path... | fixtures: initialize fixtures into separated methods (#<I>)
To be able to use fixtures with other test frameworks than go-check,
we created two methods, one to set fixtures path correctly, and
another to remove all the temporal data created when testing. | src-d_go-git | train | go |
fd4f7901bbae9bb4d8f42318107109050e9ae331 | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -67,11 +67,13 @@ if isWindows or isMac:
cmake_build = 'external/lensfun/cmake_build'
install_dir = os.path.join(cmake_build, 'install')
- include_dirs += ['external/stdint',
- os.path.jo... | don't include stdint header for Mac builds | letmaik_lensfunpy | train | py |
9c640847fd95e87255e9ca39b61b449b2ed3675c | diff --git a/lib/cucumber/configuration.rb b/lib/cucumber/configuration.rb
index <HASH>..<HASH> 100644
--- a/lib/cucumber/configuration.rb
+++ b/lib/cucumber/configuration.rb
@@ -4,9 +4,17 @@ module Cucumber
new
end
+ def initialize(options = {})
+ @options = options
+ end
+
+ def dr... | Making specs pass: get StepMother to accept a Hash or a Configuration object in her constructor | cucumber_cucumber-ruby | train | rb,rb |
4f2a3d3af3b344fdd40cd0f147d97089dd637dff | diff --git a/src/invoice2data/input/tesseract.py b/src/invoice2data/input/tesseract.py
index <HASH>..<HASH> 100644
--- a/src/invoice2data/input/tesseract.py
+++ b/src/invoice2data/input/tesseract.py
@@ -25,7 +25,7 @@ def to_text(path):
raise EnvironmentError('imagemagick not installed.')
# convert = "co... | allow reading of text with background by tesseract (#<I>) | invoice-x_invoice2data | train | py |
7e2d6c0043e076f41091cc849d082aee1ccd30b6 | diff --git a/src/Symfony/Components/DependencyInjection/BuilderConfiguration.php b/src/Symfony/Components/DependencyInjection/BuilderConfiguration.php
index <HASH>..<HASH> 100644
--- a/src/Symfony/Components/DependencyInjection/BuilderConfiguration.php
+++ b/src/Symfony/Components/DependencyInjection/BuilderConfigurati... | [DependencyInjection] added some missing accessors | symfony_symfony | train | php |
ab5bb2fb3a123c294765d2643d6e738c75ba9639 | diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -64,7 +64,7 @@ release = '0.0'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
-exclude_patterns = []
+exclude_patterns = ['buil... | Added the build directory to list of exclusion patterns since it's a subdirectory in the Sphinx source directory. | vecnet_vecnet.openmalaria | train | py |
777a6a012d5d1a049329b70a8911c67552d7d729 | diff --git a/src/functions.php b/src/functions.php
index <HASH>..<HASH> 100644
--- a/src/functions.php
+++ b/src/functions.php
@@ -220,7 +220,7 @@ function unwrap($promises)
function all($promises, $recursive = false)
{
$results = [];
- $promise = each(
+ $promise = \GuzzleHttp\Promise\each(
$prom... | help code analysers not confuse each function with the deprecated php global one | guzzle_promises | train | php |
7631202155628981a0bb8d0def7167324715ace5 | diff --git a/src/Symfony/Component/Yaml/Tests/ParserTest.php b/src/Symfony/Component/Yaml/Tests/ParserTest.php
index <HASH>..<HASH> 100644
--- a/src/Symfony/Component/Yaml/Tests/ParserTest.php
+++ b/src/Symfony/Component/Yaml/Tests/ParserTest.php
@@ -896,10 +896,10 @@ EOF;
$this->parser->parse($yaml);
+ ... | [Yaml] always restore the error handler in tests
The error handler must be restored even when assertions failed. | symfony_symfony | train | php |
643b7899ff0bc59eb695fb6402368f6e29107ca3 | diff --git a/locales/sw/auth.php b/locales/sw/auth.php
index <HASH>..<HASH> 100644
--- a/locales/sw/auth.php
+++ b/locales/sw/auth.php
@@ -14,5 +14,5 @@
return [
'failed' => 'Hii hati tambulishi hailingani na rekodi zetu.',
'password' => 'Nenosiri lililotolewa si sahihi.',
- 'throttle' => 'Majaribio men... | Update auth.php
I have updated the translation, for the placeholders | caouecs_Laravel-lang | train | php |
353a0e728f28c658fd41eab5dd7f820c11a8546b | diff --git a/lib/search-index/index.js b/lib/search-index/index.js
index <HASH>..<HASH> 100644
--- a/lib/search-index/index.js
+++ b/lib/search-index/index.js
@@ -24,7 +24,7 @@ exports.init = function(options) {
stats = fs.existsSync(home);
// Is it a directory?
- if (!stats.isDirectory()) {
+ if (!stats || !... | make sure stats is not falsy | fergiemcdowall_search-index | train | js |
54797c584207257ca7bc720ad3fc2c168dd79df9 | diff --git a/client/my-sites/checkout/composite-checkout/components/wp-checkout-order-summary.js b/client/my-sites/checkout/composite-checkout/components/wp-checkout-order-summary.js
index <HASH>..<HASH> 100644
--- a/client/my-sites/checkout/composite-checkout/components/wp-checkout-order-summary.js
+++ b/client/my-sit... | Don't show "switch to annual plan" link for monthly renewals (#<I>) | Automattic_wp-calypso | train | js |
d8f06ada52a8201369b520ef39d9206442ed256b | diff --git a/src/selectors/index.js b/src/selectors/index.js
index <HASH>..<HASH> 100644
--- a/src/selectors/index.js
+++ b/src/selectors/index.js
@@ -411,7 +411,7 @@ export const getFailedImports = createSelector(
const burnHash = get(tx, 'meta.metronome.export.currentBurnHash', null)
const wasImportRe... | Fix crash when one of enabled chains has no transactions | autonomoussoftware_metronome-wallet-ui-logic | train | js |
aecf1d50833e0148347975c9cdc640d7f089fda1 | diff --git a/openjscad.js b/openjscad.js
index <HASH>..<HASH> 100644
--- a/openjscad.js
+++ b/openjscad.js
@@ -1055,6 +1055,7 @@ OpenJsCad.Processor.prototype = {
{
this.worker = OpenJsCad.parseJsCadScriptASync(this.script, paramValues, this.options, function(err, obj) {
that.processing = false;
+ ... | terminate unused workers - they make later workers queue in firefox if count ><I> | jscad_csg.js | train | js |
a4f07b08141ac79d620187d43997e0ab5c60c379 | diff --git a/resources/lang/sq-AL/cachet.php b/resources/lang/sq-AL/cachet.php
index <HASH>..<HASH> 100644
--- a/resources/lang/sq-AL/cachet.php
+++ b/resources/lang/sq-AL/cachet.php
@@ -117,9 +117,18 @@ return [
],
],
+ // Meta descriptions
+ 'meta' => [
+ 'description' => [
+ '... | New translations cachet.php (Albanian) | CachetHQ_Cachet | train | php |
e793ff895387da1b8c1ad1aa38a99348fae96bcf | diff --git a/tornado/testing.py b/tornado/testing.py
index <HASH>..<HASH> 100644
--- a/tornado/testing.py
+++ b/tornado/testing.py
@@ -656,7 +656,9 @@ def main(**kwargs):
This test runner is essentially equivalent to `unittest.main` from
the standard library, but adds support for tornado-style option
- p... | testing: Clarify docs of testing.main() | tornadoweb_tornado | train | py |
cfc6232d55167f0ff0168fc3261d513c048b3996 | diff --git a/ofblockmeshdicthelper/__init__.py b/ofblockmeshdicthelper/__init__.py
index <HASH>..<HASH> 100644
--- a/ofblockmeshdicthelper/__init__.py
+++ b/ofblockmeshdicthelper/__init__.py
@@ -259,7 +259,7 @@ class ArcEdge(object):
"""
index = ' '.join(str(vertices[vn].index) for vn in self.vnames)
... | Corrected format in ArcEdge. Now the interVertex is written with more accuracy. Otherwise it can give error in planar faces for wedge | takaakiaoki_ofblockmeshdicthelper | train | py |
e1796b9e96d3873f8e236d6636286477b57cf925 | diff --git a/java/messaging/messaging-common/src/main/java/io/joynr/arbitration/ArbitrationStrategyFunction.java b/java/messaging/messaging-common/src/main/java/io/joynr/arbitration/ArbitrationStrategyFunction.java
index <HASH>..<HASH> 100644
--- a/java/messaging/messaging-common/src/main/java/io/joynr/arbitration/Arbi... | [Java] fix abstract class ArbitrationStrategyFunction
to allow custom ArbitrationStrategyFunction in packages different
from io.joynr.arbitration
Change-Id: Ic3d<I>fc<I>a4b2e7c<I>de<I>de | bmwcarit_joynr | train | java |
a1fb83a3aae7e8cd093ae8c160cc99a5e73cc1b5 | diff --git a/src/ScnSocialAuth/Options/ModuleOptions.php b/src/ScnSocialAuth/Options/ModuleOptions.php
index <HASH>..<HASH> 100644
--- a/src/ScnSocialAuth/Options/ModuleOptions.php
+++ b/src/ScnSocialAuth/Options/ModuleOptions.php
@@ -274,7 +274,7 @@ class ModuleOptions extends AbstractOptions
/**
* @var boo... | #<I> Debug configuration for Hybrid_Auth | SocalNick_ScnSocialAuth | train | php |
91cc3cdb7505a95cc1fd574ea83e338a0563ca55 | diff --git a/src/Result.php b/src/Result.php
index <HASH>..<HASH> 100644
--- a/src/Result.php
+++ b/src/Result.php
@@ -102,10 +102,13 @@ class Result extends ResultInterface
return;
}
+ if ($style === Sql::FETCH_RAW) {
+ return $data;
+ }
+
$row = [];
... | Added a new fetch style of raw
This is to replace public calls to _fetch() which should be an internal method | duncan3dc_sql-class | train | php,php |
898ab57d65473fd8ee14997986e3ce7c505a9da4 | diff --git a/backlash/utils.py b/backlash/utils.py
index <HASH>..<HASH> 100644
--- a/backlash/utils.py
+++ b/backlash/utils.py
@@ -21,6 +21,11 @@ def escape(s, quote=False):
return s.__html__()
if not isinstance(s, (text_type, binary_type)):
s = text_type(s)
+ if isinstance(s, binary_type):
+ ... | This should fix issue with utf8 exceptions | TurboGears_backlash | train | py |
19e9c26bf5e5441c59d5d57be74c380f28757cdd | diff --git a/cmp/compare.go b/cmp/compare.go
index <HASH>..<HASH> 100644
--- a/cmp/compare.go
+++ b/cmp/compare.go
@@ -491,6 +491,9 @@ func (s *state) compareStruct(vx, vy reflect.Value, t reflect.Type) {
step.idx = i
step.unexported = !isExported(step.name)
if step.unexported {
+ if step.name == "_" {
+ ... | Always ignore _ fields (#<I>)
The _ field in Go is special in that it cannot be read from or written to.
Thus, skip it by default. It is pointless to require the user to use
cmpopts.IgnoreUnexported just for the _ field. | google_go-cmp | train | go,go |
58816dd24981a78909bf63c821088c5099c2024b | diff --git a/js/plugins.js b/js/plugins.js
index <HASH>..<HASH> 100644
--- a/js/plugins.js
+++ b/js/plugins.js
@@ -6,16 +6,15 @@ window.log = function(){
log.history.push(arguments);
if(this.console) {
arguments.callee = arguments.callee.caller;
- if(typeof console.log === 'object'){
- Function.proto... | golf down the size of @kirbysayshi's log() improvement. ref #<I>.
I steal log's apply method instead of reaching all the way into Function.prototype.apply.. timesaver and bytesaver. just really ugly.
And then a nasty ( omg ? ternary : action); as a statement. But hey.. sometimes you feel like a nut.
kirby, plz code r... | h5bp_html5-boilerplate | train | js |
5afdab4f089decc28bf5a5efaba655e773337857 | diff --git a/test/function.combinators.js b/test/function.combinators.js
index <HASH>..<HASH> 100644
--- a/test/function.combinators.js
+++ b/test/function.combinators.js
@@ -53,6 +53,16 @@ $(document).ready(function() {
equal(obj.numIsNotPositive(), false, 'should function as a method combinator');
});
+ te... | Added unit test for _.splat | documentcloud_underscore-contrib | train | js |
c874e38b38d6597d5da5a957d6a11da8eecf9616 | diff --git a/Util/Data.php b/Util/Data.php
index <HASH>..<HASH> 100755
--- a/Util/Data.php
+++ b/Util/Data.php
@@ -125,7 +125,7 @@ class Data
$this->milestonesData .= '},';
}
- return null;
+ return rtrim($this->milestonesData, ',');
}
public function getMilestonesMarki... | #CE-<I> put back milestone data | CampaignChain_report-analytics-metrics-per-activity | train | php |
5f433585c20f68d429af34abb1b7499fcd9866a3 | diff --git a/lib/Less/Parser.php b/lib/Less/Parser.php
index <HASH>..<HASH> 100755
--- a/lib/Less/Parser.php
+++ b/lib/Less/Parser.php
@@ -35,6 +35,8 @@ class Less_Parser{
'sourceMapWriteTo' => null,
'sourceMapURL' => null,
+ 'indentation' => ' ',
+
'plugins' => array(),
); | Added indentation option
THis adds the option to set (overrule) the indentation.
By default it will indent with 2 spaces.
You can now make the output use 4 spaces, or tabs, like:
[code]$less = new Less_Parser(array('indentation' => "\t"));[/code] | oyejorge_less.php | train | php |
1cbe3de2a2c6e125eb13daf086ac0d968934c09e | diff --git a/salt/modules/defaults.py b/salt/modules/defaults.py
index <HASH>..<HASH> 100644
--- a/salt/modules/defaults.py
+++ b/salt/modules/defaults.py
@@ -14,7 +14,7 @@ def _mk_client():
'''
Create a file client and add it to the context
'''
- if not 'cp.fileclient' in __context__:
+ if 'cp.fil... | Fix PEP8 E<I> - test for membership should be "not in" | saltstack_salt | train | py |
Subsets and Splits
Java Commits in Train Set
Queries for all entries where the diff_languages column is 'java', providing a filtered dataset but without deeper analysis.
Java Commits Test Data
Returns a subset of 5000 entries from the dataset where the programming language difference is Java, providing basic filtering for exploration.
Java Commits Sample
Retrieves the first 1,000 records where the 'diff_languages' column is 'java', providing limited insight into the specific data entries.
Java Commits Validation Sample
Retrieves a sample of entries from the validation dataset where the diff languages are Java, providing limited insight into specific Java-related data points.
Java Commits in Validation
This query retrieves a limited sample of entries from the validation dataset where the programming language difference is Java, providing basic filtering with minimal insight.
Java Commits Sample
This query retrieves a sample of 100 records where the 'diff_languages' is 'java', providing basic filtering but limited analytical value.
Java Commits Sample
Retrieves 100 samples where the language difference is Java, providing basic filtering but minimal analytical value.
Java Commits Sample
Retrieves 10 samples where the diff_languages column is 'java', providing basic examples of data entries with this specific language.
Java Commits Validation Sample
Retrieves 1,000 records where the differences in languages are marked as Java, providing a snapshot of that specific subset but limited to raw data.
Java Commits Sample
This query retrieves 1000 random samples from the dataset where the programming language is Java, offering limited insight beyond raw data.