content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Java
Java
fix possible npe in statusbarmodule
0f3be77b7d4177c8f94d775bf8ef2a2b68f1e828
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java <ide> public void run() { <ide> } <ide> <ide> @ReactMethod <del> public void setStyle(final String style) { <add> public void setStyle(@Nullable final String style) { <ide> final Activity activity = getCurrentActi...
1
PHP
PHP
add a setup method in broadcastertest
fa9359c8fed0211ddff970ee99a61e75bcd4fca8
<ide><path>tests/Broadcasting/BroadcasterTest.php <ide> <ide> class BroadcasterTest extends TestCase <ide> { <add> /** <add> * @var \Illuminate\Tests\Broadcasting\FakeBroadcaster <add> */ <add> public $broadcaster; <add> <add> public function setUp() <add> { <add> parent::setUp(); <add> <add...
1
Python
Python
improve the computation of polynomials from roots
ef767a54fae8977cb15d7e0849a8cb626c4b0f2c
<ide><path>numpy/polynomial/chebyshev.py <ide> def chebfromroots(roots) : <ide> return np.ones(1) <ide> else : <ide> [roots] = pu.as_series([roots], trim=False) <del> prd = np.array([1], dtype=roots.dtype) <del> for r in roots: <del> prd = chebsub(chebmulx(prd), r*prd) <del>...
6
Javascript
Javascript
add missing @returns to extend()
59eb50204a046599e02a7af0bc31d83a95b81f15
<ide><path>src/Angular.js <ide> function setHashKey(obj, h) { <ide> * <ide> * @param {Object} dst Destination object. <ide> * @param {...Object} src Source object(s). <add> * @returns {Object} Reference to `dst`. <ide> */ <ide> function extend(dst) { <ide> var h = dst.$$hashKey;
1
Javascript
Javascript
rerun $digest from root, rather then per scope
1c9fc1e1dec67c8c05f02da1e0853439238c4d8e
<ide><path>src/Scope.js <ide> Scope.prototype = { <ide> watch, value, last, <ide> watchers = this.$$watchers, <ide> length, count = 0, <del> iterationCount, ttl = 100; <add> dirtyCount, ttl = 100, <add> recheck = !this.$parent || !this.$parent.$$phase; <ide> <ide> if (t...
2
Python
Python
fix model init from jsonl
59d655e8d04814896ce173a35e0c1788563d5f15
<ide><path>spacy/cli/init_model.py <ide> def init_model(lang, output_dir, freqs_loc=None, clusters_loc=None, jsonl_loc=No <ide> if vectors_loc and vectors_loc.parts[-1].endswith('.npz'): <ide> vectors_data = numpy.load(vectors_loc.open('rb')) <ide> vector_keys = [lex['orth'] for lex in lex_attrs <de...
1
Javascript
Javascript
provide better error message for unhandled error
8b9a1537ad5c34c92215660291e962558b6bc8d3
<ide><path>lib/events.js <ide> EventEmitter.prototype.emit = function emit(type) { <ide> } else if (er instanceof Error) { <ide> throw er; // Unhandled 'error' event <ide> } else { <del> throw new Error('Uncaught, unspecified "error" event.'); <add> // At least give some kind of context to the u...
2
Javascript
Javascript
update path calculation
b1b949d35ee995ee75c6968715a7f8c8ea601157
<ide><path>test/jquery.js <ide> ( function() { <ide> /* global loadTests: false */ <ide> <del> var path = window.location.pathname.split( "test" )[ 0 ], <add> var pathname = window.location.pathname, <add> path = pathname.slice( 0, pathname.lastIndexOf( "test" ) ), <ide> QUnit = window.QUnit || parent.QUnit, <ide>...
1
Java
Java
improve exception message
7f4bf41c2320aa8e552ca3c6d568cfa65adc7f65
<ide><path>spring-test/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java <ide> private RequestMatcherClientHttpRequest createRequestInternal(URI uri, HttpMetho <ide> this.requestIterator = MockRestServiceServer.this.expectedRequests.iterator(); <ide> } <ide> if (!this.requestIterato...
1
Javascript
Javascript
handle empty username
138115f2a8752e6d7198fefce9e563d994e7b1e2
<ide><path>src/main-process/atom-application.js <ide> class AtomApplication extends EventEmitter { <ide> // Public: The entry point into the Atom application. <ide> static open (options) { <ide> if (!options.socketPath) { <del> const username = process.platform === 'win32' ? process.env.USERNAME : process....
1
Python
Python
fix a typo
72a51ef373ec41e99f719e2c41f32606279ddbc4
<ide><path>libcloud/storage/drivers/local.py <ide> 'using pip: pip install lockfile') <ide> <ide> from libcloud.utils.files import read_in_chunks <del>from libcloud.utils.py import relpath <add>from libcloud.utils.py3 import relpath <ide> from libcloud.common.base import Connection <ide> from lib...
1
Ruby
Ruby
extract methods out of the cache update method
9798a11c2bc9cef5d66efe5006b607c9d858da76
<ide><path>activerecord/lib/active_record/associations/belongs_to_association.rb <ide> def update_counters(record) <ide> <ide> return unless counter_cache_name && owner.persisted? <ide> <del> diff_target = if record <del> different_target?(record) <del> ...
1
Python
Python
add new reshape option
84d06a530ebbe59679acdc03b3b13460037582e9
<ide><path>keras/engine/topology.py <ide> def save_weights(self, filepath, overwrite=True): <ide> f.flush() <ide> f.close() <ide> <del> def load_weights(self, filepath, by_name=False, skip_mismatch=False): <add> def load_weights(self, filepath, by_name=False, <add> skip_mismat...
3
Text
Text
add some (very) late links
346ad93f901b50f200c5f869cf77fa727abe0d23
<ide><path>SUPPORTERS.md <ide> These brilliant people supported our Kickstarter by giving us £15 or more: <ide> * [Nick Jones](mailto:nick@dischord.org) <ide> * [Esmé Cowles](https://github.com/escowles) <ide> * [Garrett L. Ward](http://glward.net) <del>* Carl Laird <add>* [Carl Laird](http://allthingsoptimal.com) <ide...
1
Python
Python
update output shape in docstrings
88c26e2fbb92a93d884f405ebbec7eb1ad3daf50
<ide><path>keras/backend.py <ide> def rnn(step_function, <ide> - If `return_all_outputs=True`: a tensor with shape <ide> `(samples, time, ...)` where each entry `outputs[s, t]` is the <ide> output of the step function at time `t` for sample `s` <del> - Else, a ...
3
Text
Text
add link to `net.server` in tls.md
1d21c05a677d433c606031623d37cd9e0c194547
<ide><path>doc/api/tls.md <ide> connections on the specified `port` and `hostname`. <ide> This function operates asynchronously. If the `callback` is given, it will be <ide> called when the server has started listening. <ide> <del>See `net.Server` for more information. <add>See [`net.Server`][] for more information. <...
1
Mixed
Javascript
move dep0006 to end of life
d4934ae6f2745f8fab1a83821f50290c9688c326
<ide><path>doc/api/deprecations.md <ide> outside `node_modules` in order to better target developers, rather than users. <ide> ### DEP0006: child\_process options.customFds <ide> <!-- YAML <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/25279 <add> description: End-of-...
3
PHP
PHP
fix other failing test by 1 second difference
3b8990ffca90fd79b4cb51ca2676424d6f55a655
<ide><path>lib/Cake/Test/Case/Utility/FileTest.php <ide> public function testLastAccess() { <ide> * @return void <ide> */ <ide> public function testLastChange() { <add> $ts = time(); <ide> $someFile = new File(TMP . 'some_file.txt', false); <ide> $this->assertFalse($someFile->lastChange()); <ide> $this->asser...
1
Python
Python
fix mlib.ini generation
35114ae7c33384b0acf7903469426a6955b23b7a
<ide><path>numpy/core/setup.py <ide> def visibility_define(config): <ide> return '' <ide> <ide> def mlib_pkg_content(mathlibs): <del> posix_mlib = ' -l'.join(mathlibs) <del> msvc_mlib = ' '.join(['%s.lib' for l in mathlibs]) <add> posix_mlib = ' '.join(['-l%s' % l for l in mathlibs]) <add> msvc_mli...
1
Javascript
Javascript
remove space from generated unit-tests
30172c7bc91ae86cb61d79dbcd2328abca09570d
<ide><path>blueprints/component-test/qunit-files/tests/__testType__/__path__/__test__.js <ide> moduleForComponent('<%= componentPathName %>', '<%= friendlyTestDescription %>', <ide> }); <ide> <ide> test('it renders', function(assert) { <del> <% if (testType === 'integration' ) { %>// Set any properties with this.set(...
1
Ruby
Ruby
pass explicit sort to handle apfs
e308df25a9af0e84172448f03a91892a98c92b8a
<ide><path>Library/Homebrew/cmd/commands.rb <ide> def commands <ide> else <ide> # Find commands in Homebrew/cmd <ide> puts "Built-in commands" <del> puts Formatter.columns(internal_commands) <add> puts Formatter.columns(internal_commands.sort) <ide> <ide> # Find commands in Homebrew/dev...
1
Javascript
Javascript
remove race condition in http flood test
cee14f52a3bdbd870429de49d8075c24798916c3
<ide><path>test/parallel/test-http-pipeline-flood.js <ide> const assert = require('assert'); <ide> // Normally when the writable stream emits a 'drain' event, the server then <ide> // uncorks the readable stream, although we arent testing that part here. <ide> <add>// The issue being tested exists in Node.js 0.10.20 a...
1
Javascript
Javascript
remove some leftovers from the previous patch
88512fbdd9fda60993ad718b97a407e81f5f33c1
<ide><path>PDFFont.js <ide> var FontsUtils = { <ide> }; <ide> <ide> <del>/** Implementation dirty logic starts here */ <del> <ide> /** <ide> * The TrueType class verify that the ttf embedded inside the PDF is correct in <ide> * the point of view of the OTS sanitizer and rewrite it on the fly otherwise. <ide> TrueTy...
1
Mixed
Java
move default spacing out of csslayout
fd34c6d56757618364d2cb9c5fbe3ee10915620a
<ide><path>Examples/UIExplorer/js/TextInputExample.android.js <ide> class BlurOnSubmitExample extends React.Component { <ide> } <ide> } <ide> <add>class ToggleDefaultPaddingExample extends React.Component { <add> constructor(props) { <add> super(props); <add> this.state = {hasPadding: false}; <add> } <add> ...
8
Javascript
Javascript
replace string concatenation with template
0e003a3508af944587e7e1a7d36a2ce3519c3dbf
<ide><path>test/fixtures/guess-hash-seed.js <ide> const slow_str_gen = (function*() { <ide> let strgen_i = 0; <ide> outer: <ide> while (1) { <del> const str = '#' + (strgen_i++); <add> const str = `#${strgen_i++}`; <ide> for (let i = 0; i < 1000; i++) { <ide> if (time_set_lookup(tester_set, str) <...
1
Text
Text
add list of deprecated methods
bbf839d1a8461ecc5ff78765d2a17abd042d39a7
<ide><path>activemodel/CHANGELOG.md <ide> `errors.messages` and `errors.details` hashes directly. Moving forward, <ide> please convert those direct manipulations to use provided API methods instead. <ide> <add> The list of deprecated methods and their planned future behavioral changes at the next major rel...
1
Javascript
Javascript
add svg polygon
5661d5168e7a521c8abd73eeda61956cab5c091b
<ide><path>src/core/ReactDOM.js <ide> var ReactDOM = objMapKeyVal({ <ide> g: false, <ide> line: false, <ide> path: false, <add> polygon: false, <ide> polyline: false, <ide> rect: false, <ide> svg: false,
1
Ruby
Ruby
pass strings to demodulize method
c20fe91b0562987f5d9e57caee0bdbb6c9ef3220
<ide><path>activemodel/lib/active_model/conversion.rb <ide> module ClassMethods #:nodoc: <ide> # internal method and should not be accessed directly. <ide> def _to_partial_path #:nodoc: <ide> @_to_partial_path ||= begin <del> element = ActiveSupport::Inflector.underscore(ActiveSupport::Infl...
1
PHP
PHP
register swiftmailer before mailer
1178f619426b2ac689f3d8163db36d3c841fe163
<ide><path>src/Illuminate/Mail/MailServiceProvider.php <ide> class MailServiceProvider extends ServiceProvider <ide> */ <ide> public function register() <ide> { <del> $this->app->singleton('mailer', function ($app) { <del> $this->registerSwiftMailer(); <add> $this->registerSwiftMai...
1
Javascript
Javascript
fix error in flow types
0c5b3901781f145d77dc627fddb54bc88fd8afab
<ide><path>Libraries/Share/Share.js <ide> const { <ide> } = require('NativeModules'); <ide> <ide> type Content = { title?: string, message: string } | { title?: string, url: string }; <del>type Options = { dialogTitle?: string, excludeActivityTypes?: Array<string>, tintColor?: string }; <add>type Options = { dialogTit...
1
Go
Go
pass message to aux callback
f784907eae4f2e8bd4d9dea3d45c790c92689f3d
<ide><path>pkg/jsonmessage/jsonmessage.go <ide> func (jm *JSONMessage) Display(out io.Writer, termInfo termInfo) error { <ide> // DisplayJSONMessagesStream displays a json message stream from `in` to `out`, `isTerminal` <ide> // describes if `out` is a terminal. If this is the case, it will print `\n` at the end of <id...
1
Javascript
Javascript
fix default $http cache name
c0f0d136f0675ef699d6d6d183f11a3829bcfcb3
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> * * cache a specific response - set config.cache value to TRUE or to a cache object <ide> * <ide> * If caching is enabled, but neither the default cache nor config.cache are set to a cache object, <del> * then the default `$cacheFacto...
1
Javascript
Javascript
add v8 benchmark test
cac4e6dd27d51072732724f79aff1ff05c1aae4e
<ide><path>test/parallel/test-benchmark-v8.js <add>'use strict'; <add> <add>require('../common'); <add> <add>const runBenchmark = require('../common/benchmark'); <add> <add>runBenchmark('v8', <add> [ <add> 'method=getHeapStatistics', <add> 'n=1' <add> ], <add> ...
1
Javascript
Javascript
remove obsolete route
b39b44ac23ce1b8d87d776b7c42fde44079a194d
<ide><path>server/index.js <ide> export default class Server { <ide> // (but it should support as many as params, seperated by '/') <ide> // Othewise this will lead to a pretty simple DOS attack. <ide> // See more: https://github.com/zeit/next.js/issues/2617 <del> routes['/_next/:path*'] = async ...
1
Javascript
Javascript
add draw calls to non-indexed buffers
c2d8c3d5b7400bf5582bff77266321d1e652d236
<ide><path>src/renderers/WebGLRenderer.js <ide> THREE.WebGLRenderer = function ( parameters ) { <ide> <ide> if ( extension === null ) { <ide> <del> THREE.error( 'THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.' );...
1
Go
Go
improve deprecation message
f0eb227548427f6fc829f2b270ad83d22bd90c69
<ide><path>pkg/mflag/example/example.go <ide> var ( <ide> <ide> func init() { <ide> flag.Bool([]string{"#hp", "#-halp"}, false, "display the halp") <del> flag.BoolVar(&b, []string{"b"}, false, "a simple bool") <add> flag.BoolVar(&b, []string{"b", "#bal", "#bol", "-bal"}, false, "a simple bool") <add> flag.BoolVar(&b,...
2
Ruby
Ruby
convert javarequirement test to spec
f7151e589fec5cd8caef00798c02e0c54eff5419
<ide><path>Library/Homebrew/test/java_requirement_spec.rb <add>require "requirements/java_requirement" <add> <add>describe JavaRequirement do <add> subject { described_class.new([]) } <add> <add> before(:each) do <add> ENV["JAVA_HOME"] = nil <add> end <add> <add> describe "#message" do <add> its(:message) { i...
2
Text
Text
describe the changes in transactional tests
deba47799ff905f778e0c98a015789a1327d5087
<ide><path>guides/source/5_1_release_notes.md <ide> can generate form tags based on URLs, scopes or models. <ide> </form> <ide> ``` <ide> <add>Incompatibilities <add>----------------- <add> <add>The following changes may require immediate action upon upgrade. <add> <add>### Transactional tests with multiple connection...
1
Ruby
Ruby
use binary io throughout, not utf-8
92a4f5b3f42c92ec272eb28adebea83faa012afb
<ide><path>lib/active_storage/service/disk_service.rb <ide> require "fileutils" <ide> require "pathname" <add>require "digest/md5" <ide> require "active_support/core_ext/numeric/bytes" <ide> <ide> class ActiveStorage::Service::DiskService < ActiveStorage::Service <ide> def initialize(root:) <ide> end <ide> <ide> ...
2
Python
Python
use promise from amqp.utils
3539b96dab51216a74841ba2820e228a0ba8bff9
<ide><path>celery/concurrency/processes.py <ide> from time import sleep, time <ide> from weakref import ref <ide> <add>from amqp.utils import promise <ide> from billiard import forking_enable <ide> from billiard import pool as _pool <ide> from billiard.exceptions import WorkerLostError <ide> def _select(readers=None, ...
1
Text
Text
update javascript guide for turbolinks 5
2f792616ab01754f432d8642de12faee6aff3535
<ide><path>guides/source/working_with_javascript_in_rails.md <ide> $("<%= escape_javascript(render @user) %>").appendTo("#users"); <ide> Turbolinks <ide> ---------- <ide> <del>Rails 4 ships with the [Turbolinks gem](https://github.com/turbolinks/turbolinks). <del>This gem uses Ajax to speed up page rendering in most a...
1
Javascript
Javascript
add loop protection on keyup update
096fba0de7d1052a7f33e57fde7c8de1f0053029
<ide><path>client/commonFramework/end.js <ide> $(document).ready(function() { <ide> const common = window.common; <ide> const { Observable } = window.Rx; <del> const { challengeName, challengeType, challengeTypes } = common; <add> const { <add> addLoopProtect, <add> challengeName, <add> challengeType, <a...
3
Javascript
Javascript
add unit tests for requestshortener
4f3c662f82d12b934e71a90c7ce351166b488338
<ide><path>lib/RequestShortener.js <ide> class RequestShortener { <ide> result = result.replace(this.currentDirectoryRegExp, "!."); <ide> } <ide> if (this.parentDirectoryRegExp) { <del> result = result.replace(this.parentDirectoryRegExp, `!../`); <add> result = result.replace(this.parentDirectoryRegExp, "!.....
2
Java
Java
reduce an empty observable
f1a21147939eb2173c64c5e488c3ce784816dd61
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public Observable<T> onErrorReturn(Func1<Throwable, ? extends T> resumeFunction) <ide> * Observable, whose result will be used in the next accumulator call <ide> * @return an Observable that emits a single item that is the result of accu...
2
Python
Python
add atrousconv2d layer for dilated convolution
b3a26a5b3048c6fc0911e219b6fa61b5ae2b86f5
<ide><path>keras/backend/tensorflow_backend.py <ide> def batch_set_value(tuples): <ide> ops = [tf.assign(x, np.asarray(value)) for x, value in tuples] <ide> get_session().run(ops) <ide> <add> <ide> # GRAPH MANIPULATION <ide> <ide> class Function(object): <ide> def _postprocess_conv3d_output(x, dim_ord...
5
Python
Python
move json tests to separate file
a0e2aca770c756d9f7de53339e2cf9067a52df11
<ide><path>tests/test_helpers.py <ide> import io <ide> import os <ide> import sys <del>import uuid <ide> <ide> import pytest <ide> from werkzeug.datastructures import Range <ide> from flask.helpers import get_env <ide> <ide> <del>def has_encoding(name): <del> try: <del> import codecs <del> <del> cod...
2
Text
Text
fix credential typo in guide
575a2c6ce03e283b75b0043727a77c29f85f9a66
<ide><path>guides/source/active_record_encryption.md <ide> First, you need to add some keys to your [rails credentials](/security.html#cust <ide> $ bin/rails db:encryption:init <ide> Add this entry to the credentials of the target environment: <ide> <del>active_record.encryption: <add>active_record_encryption: <ide> ...
1
Javascript
Javascript
fix typeerror in syntheticevent
cf3ff07f92736476d15d1ed7f5fc04274d2a8b77
<ide><path>src/event/synthetic/SyntheticEvent.js <ide> function SyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent) { <ide> <ide> var Interface = this.constructor.Interface; <ide> for (var propName in Interface) { <add> if (!Interface.hasOwnProperty(propName)) { <add> continue; <add> } <ide> ...
1
Javascript
Javascript
add tests for stats true
e374ab15827ae7a914c6387feff0f8d4a8a998b9
<ide><path>test/Defaults.unittest.js <ide> describe("Defaults", () => { <ide> + "uniqueName": "@@@Hello World!", <ide> `) <ide> ); <add> test("stats true", { stats: true }, e => <add> e.toMatchInlineSnapshot(` <add> - Expected <add> + Received <add> <add> <add> - "stats": Object {}, <add> + "stats"...
1
Python
Python
fix azure blobs and skip failed backblaze test
80d7cb0d4302b2b628953b6b1a7b1da89ae01897
<ide><path>libcloud/http.py <ide> def request(self, method, url, body=None, headers=None, raw=False, <ide> stream=False): <ide> url = urlparse.urljoin(self.host, url) <ide> # all headers should be strings <del> if 'Content-Length' in headers and isinstance(headers['Content-Length'...
3
Ruby
Ruby
relax assertions in connection config tests
c03c519db0f5bcbb9f1151db5774921ea9bd3a22
<ide><path>activerecord/test/cases/connection_adapters/connection_handler_test.rb <ide> def test_establish_connection_using_3_level_config_defaults_to_default_env_prima <ide> <ide> ActiveRecord::Base.establish_connection <ide> <del> assert_equal "db/primary.sqlite3", ActiveRecord::Base.connection.p...
1
Go
Go
remove icmp dependency from test, use nslookup
004ac85aa25f08e350465140ee7404ad31602d75
<ide><path>integration-cli/docker_cli_run_test.go <ide> func TestRunLeakyFileDescriptors(t *testing.T) { <ide> logDone("run - check file descriptor leakage") <ide> } <ide> <del>// it should be possible to ping Google DNS resolver <add>// it should be possible to lookup Google DNS <ide> // this will fail when Internet...
1
Text
Text
add descriptions of state properties
800caac2362e602d80b5c61fe1cb288bbcdb316a
<ide><path>doc/api/http2.md <ide> All other interactions will be routed directly to the socket. <ide> added: v8.4.0 <ide> --> <ide> <add>Provides miscellaneous information about the current state of the <add>`Http2Session`. <add> <ide> * Value: {Object} <del> * `effectiveLocalWindowSize` {number} <del> * `effectiveR...
1
Javascript
Javascript
add defaults and message to pm2start.js
edd4037a0bd74c5e18e7a41e14e446898a8dfdca
<ide><path>pm2Start.js <add>require('dotenv').load(); <ide> var pm2 = require('pm2'); <add>var instances = process.env.INSTANCES || 1; <add>var serverName = process.env.SERVER_NAME || 'server'; <add>var maxMemory = process.env.MAX_MEMORY || '390M'; <add> <ide> pm2.connect(function() { <ide> pm2.start({ <del> name:...
1
Text
Text
correct typo on the word "realizing"
527569b95b73d18afb6069091038e8e15caafc5e
<ide><path>guide/english/working-in-tech/unconscious-bias/index.md <ide> Bias is a prejudice in favor of or against one thing, person, or group compared <ide> <ide> <p>Unconscious bias, otherwise known as "implicit bias", occurs when people favour others who look like them and/or share their values. For example a pers...
1
Text
Text
add usage of port mapping for boot2docker
9dc2d0b8a35724946139f954f9575411b31695ea
<ide><path>docs/sources/examples/nodejs_web_app.md <ide> Now you can call your app using `curl` (install if needed via: <ide> <ide> Hello world <ide> <add>If you use Boot2docker on OS X, the port is actually mapped to the Docker host VM, <add>and you should use the following command: <add> <add> $ curl $(boot2...
1
Text
Text
add clearer setup description
3f263403e53af403196207e60841f3012e41b2af
<ide><path>BUILDING.md <ide> To run the tests: <ide> $ make test <ide> ``` <ide> <add>At this point you are ready to make code changes and re-run the tests! <add>Optionally, continue below. <add> <ide> To run the tests and generate code coverage reports: <ide> <ide> ```console <ide> and overwrites the `lib/` director...
1
Ruby
Ruby
duplicate active record objects on inverse_of
6f6c441662e73084087da3f564e71f0a174c3ee4
<ide><path>activerecord/lib/active_record/associations/collection_association.rb <ide> def replace_on_target(record, skip_callbacks, replace:, inversing: false) <ide> <ide> yield(record) if block_given? <ide> <add> if !index && @replaced_or_added_targets.include?(record) <add> index = @t...
2
Python
Python
replace getters/setters with properties - round 4
abec1a72de592e6bac601b480e0c0b8d3aea6636
<ide><path>glances/core/glances_stats.py <ide> def getAllAsDict(self): <ide> <ide> def getAllLimits(self): <ide> """Return the plugins limits list.""" <del> return [self._plugins[p].get_limits() for p in self._plugins] <add> return [self._plugins[p].limits for p in self._plugins] <ide> <ide>...
27
PHP
PHP
add lots of tests for routecollection
d25b456d2767bc73f1c6c571daff28d2f50f3f30
<ide><path>tests/Routing/RouteCollectionTest.php <add><?php <add> <add>use Illuminate\Routing\Route; <add>use Illuminate\Routing\RouteCollection; <add> <add>class RouteCollectionTest extends PHPUnit_Framework_TestCase <add>{ <add> /** <add> * @var \Illuminate\Routing\RouteCollection <add> */ <add> protect...
1
PHP
PHP
replace deprecated class
f54b58433d42a30754719895b653116d20c800f2
<ide><path>src/Illuminate/Redis/Connections/PhpRedisConnection.php <ide> namespace Illuminate\Redis\Connections; <ide> <ide> use Closure; <add>use Illuminate\Collections\Arr; <ide> use Illuminate\Contracts\Redis\Connection as ConnectionContract; <del>use Illuminate\Support\Arr; <ide> use Illuminate\Support\Str; <ide> ...
1
Python
Python
add size_type in definition for volume creation
e438a8f3d957cb7e37e68927d228e83190f6d2b4
<ide><path>libcloud/container/drivers/lxd.py <ide> class LXDContainerDriver(ContainerDriver): <ide> default_profiles = 'default' <ide> <ide> # An ephemeral container means that it <del> # will be restroyed once it is stopped <add> # will be destroyed once it is stopped <ide> default_ephemeral = False...
1
Python
Python
add reverse_code optional argument to runpython
6d3faba2d28f07f8cd7cf7aa91a6f8a555021d4f
<ide><path>django/db/migrations/operations/special.py <ide> class RunPython(Operation): <ide> reduces_to_sql = False <ide> reversible = False <ide> <del> def __init__(self, code): <add> def __init__(self, code, reverse_code=None): <add> # Forwards code <ide> if isinstance(code, six.string_...
1
PHP
PHP
fix double printing of models in consoleshell
5bd45ec65dac99fb8868e7b7b347984b1579f650
<ide><path>lib/Cake/Console/Command/ConsoleShell.php <ide> public function startup() { <ide> <ide> foreach ($this->models as $model) { <ide> $class = $model; <del> $this->models[$model] = $class; <ide> App::uses($class, 'Model'); <ide> $this->{$class} = new $class(); <ide> }
1
Ruby
Ruby
use different test formula
49d2d7b94d85dd150956ea14d66a34870d2f70fd
<ide><path>Library/Homebrew/test/cmd/home_spec.rb <ide> end <ide> <ide> it "opens the homepage for a given Formula" do <del> setup_test_formula "testball" <add> setup_test_formula "testballhome" <ide> <del> expect { brew "home", "testball", "HOMEBREW_BROWSER" => "echo" } <del> .to output("#{Formula[...
1
Ruby
Ruby
combine #should_copy? and #include?
fef866aae4f13d2789d156de33fce1ab1e99db5f
<ide><path>Library/Homebrew/metafiles.rb <ide> class Metafiles <ide> news notes notice readme todo <ide> ] <ide> <del> def should_copy? file <del> include? file <del> end <del> <ide> def should_list? file <ide> return false if %w[.DS_Store INSTALL_RECEIPT.json].include? file <del> not include? file...
1
Javascript
Javascript
remove unnecessary 'use strict' in the source
45c1ff348e1c7d03567f5bba6cb32cffa9222972
<ide><path>packages/events/EventPluginHub.js <ide> * LICENSE file in the root directory of this source tree. <ide> */ <ide> <del>'use strict'; <del> <ide> import ReactErrorUtils from 'shared/ReactErrorUtils'; <ide> import invariant from 'fbjs/lib/invariant'; <ide> <ide><path>packages/events/EventPluginRegistry.js <...
179
Ruby
Ruby
tell user to `brew update' if no .git
c28943de7b99b2298d60b0cbbbc0d5fa72a9777d
<ide><path>Library/Homebrew/cmd/versions.rb <ide> <ide> module Homebrew extend self <ide> def versions <del> raise "Please `brew install git` first" unless system "/usr/bin/which -s git" <add> raise "Please `brew install git' first" unless system "/usr/bin/which -s git" <add> raise "Please `brew update' fir...
1
Python
Python
remove unused imports
cd466a9a05388434f4a45e04a7a03ba0c3fb70ce
<ide><path>libcloud/container/drivers/kubernetes.py <ide> <ide> from libcloud.compute.types import NodeState <ide> from libcloud.compute.base import Node <del>from libcloud.compute.base import NodeDriver <ide> from libcloud.compute.base import NodeSize <ide> from libcloud.compute.base import NodeImage <del>from libclo...
1
Ruby
Ruby
implement exec_query on mysql2 adapter
269cd1b3c55c6ceb69c167ad97c357b56f49cb4b
<ide><path>activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb <ide> def configure_connection <ide> <ide> # Returns an array of record hashes with the column names as keys and <ide> # column values as values. <del> def select(sql, name = nil) <del> execute(sql, name).ea...
1
Python
Python
fix queue import
ae50fa99b0852668c1deabc94876835747e06017
<ide><path>textsum/batch_reader.py <ide> import time <ide> <ide> import numpy as np <del>from six.moves.queue import Queue <add>from six.moves import queue as Queue <ide> from six.moves import xrange <ide> import tensorflow as tf <ide>
1
Text
Text
add a numfocus badge to readme.md
27b960eaac6681893fbcf4220ce348f8a056223a
<ide><path>README.md <ide> <img src="http://www.numpy.org/_static/numpy_logo.png"><br> <ide> </div> <ide> <add>[![Powered by NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A)](http://numfocus.org) <add> <ide> ----------------- <ide> | **`Travis CI Status...
1
Python
Python
fix typo in docscrape_sphinx.py import
211154eb336f5314b33e2486fa79953c90be8a11
<ide><path>doc/sphinxext/numpydoc/docscrape_sphinx.py <ide> from __future__ import division, absolute_import, print_function <ide> <del>import re, inspect, textwrap, pydoc, aya <add>import re, inspect, textwrap, pydoc <ide> import sphinx <ide> import collections <ide> from .docscrape import NumpyDocString, FunctionDoc...
1
Javascript
Javascript
add support for buffergeometry
02888c4051d3f2b42c3e3e8334f406064777bf3d
<ide><path>examples/js/exporters/OBJExporter.js <ide> THREE.OBJExporter.prototype = { <ide> var nbNormals = 0; <ide> <ide> var geometry = mesh.geometry; <del> <add> if ( geometry instanceof THREE.BufferGeometry ) { <add> geometry = new THREE.Geometry().fromBufferGeometry(geometry); <add> } <ide> if ( g...
1
Javascript
Javascript
serialize complete texture info (numeric)
612aa17d75ab4a11f8ea0fe130983edfa4e191f3
<ide><path>src/textures/Texture.js <ide> THREE.Texture.prototype = { <ide> type: 'Texture', <ide> generator: 'Texture.toJSON' <ide> }, <add> <ide> uuid: this.uuid, <del> mapping: this.mapping <add> name: this.name, <add> <add> mapping: this.mapping, <add> <add> repeat: [ this.repeat.x, this.repeat...
1
Go
Go
remove json alteration
e09383bccfcefa3699aa959dedbd8364d505bf9c
<ide><path>registry.go <ide> func NewImgJson(src []byte) (*Image, error) { <ide> func NewMultipleImgJson(src []byte) ([]*Image, error) { <ide> ret := []*Image{} <ide> <del> dec := json.NewDecoder(strings.NewReader(strings.Replace(string(src), "null", "\"\"", -1))) <add> dec := json.NewDecoder(strings.NewReader(string...
1
Text
Text
fix word 'sintaxe' to 'syntax' in readme.md
88dbb82d77155d3a8af37b35ef3add6b5fa34855
<ide><path>README.md <ide> These are the available config options for making requests. Only the `url` is re <ide> firstName: 'Fred' <ide> }, <ide> <del> // sintaxe alternative to send data into the body <add> // syntax alternative to send data into the body <ide> // method post <ide> // only the value is...
1
Text
Text
expand use of ctc issue tracker
b899140291f6bd6aabc04cb8e1b114b8ee85a5fe
<ide><path>GOVERNANCE.md <ide> The [nodejs/node](https://github.com/nodejs/node) GitHub repository is <ide> maintained by the CTC and additional Collaborators who are added by the <ide> CTC on an ongoing basis. <ide> <del>Individuals making significant and valuable contributions are made <del>Collaborators and given c...
1
Javascript
Javascript
improve array path matching in history
60fc36a96910a1735ebd7abbd8b4ceb6c0feba09
<ide><path>spec/history-manager-spec.js <ide> describe("HistoryManager", () => { <ide> }) <ide> <ide> it("returns null when it can't find the project", () => { <add> debugger <ide> const project = historyManager.getProject(['/1']) <ide> expect(project).toBeNull() <ide> }) <ide><path>src/hi...
2
Ruby
Ruby
convert values to strings in cc setters
7e079fc37db703da48efff9e6d2f3ab3f1178f0c
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def remove keys, value <ide> end <ide> <ide> def cc= val <del> self['CC'] = self['OBJC'] = val <add> self['CC'] = self['OBJC'] = val.to_s <ide> end <ide> <ide> def cxx= val <del> self['CXX'] = self['OBJCXX'] = val <add> self['CXX'] = self['OBJ...
1
Python
Python
remove 415 immediateresponse
3928802178c8361d6d24364a5d0b866d6907c084
<ide><path>djangorestframework/exceptions.py <ide> def __init__(self, detail=None): <ide> <ide> class PermissionDenied(Exception): <ide> status_code = status.HTTP_403_FORBIDDEN <del> default_detail = 'You do not have permission to access this resource.' <add> default_detail = 'You do not have permission to a...
2
Javascript
Javascript
fix lint error
79c66a2f13b39f5663fe0ff4d523a4dc89fa3c5e
<ide><path>src/core/BufferGeometry.js <ide> BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy <ide> <ide> addAttribute: function ( name, attribute ) { <ide> <del> if ( ! (attribute && (attribute.isBufferAttribute || attribute.isInterleavedBufferAttribute || attribute.isGLBufferAttribu...
1
Go
Go
add more names
ed55a2db06c7343f00a71844b166da1bbfbb812d
<ide><path>pkg/namesgenerator/names-generator.go <ide> import ( <ide> ) <ide> <ide> var ( <del> left = [...]string{"happy", "jolly", "dreamy", "sad", "angry", "pensive", "focused", "sleepy", "grave", "distracted", "determined", "stoic", "stupefied", "sharp", "agitated", "cocky", "tender", "goofy", "furious", "desperat...
1
Ruby
Ruby
add tests around opt links
c0baad7e68940c9783dcfe04b87918ef4029e24b
<ide><path>Library/Homebrew/test/test_keg.rb <ide> def test_unlink_ignores_DS_Store_when_pruning_empty_dirs <ide> refute_predicate HOMEBREW_PREFIX/"lib/foo", :directory? <ide> refute_predicate HOMEBREW_PREFIX/"lib/foo/.DS_Store", :exist? <ide> end <add> <add> def test_existing_opt_link <add> @keg.opt_reco...
1
Ruby
Ruby
fix whitespace errors
d0d4ef6e8be08ab4f6a7faa2b3a5ef8423a99350
<ide><path>activerecord/lib/active_record/transactions.rb <ide> def with_transaction_returning_status <ide> begin <ide> status = yield <ide> rescue ActiveRecord::Rollback <del> if defined?(@_start_transaction_state) <add> if defined?(@_start_transaction_state) <ide> ...
1
Ruby
Ruby
use new selectmanager#projections= method
cc206a3507699e2c94b2d62ec5226fd20d5d98b3
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb <ide> def sanitize_limit(limit) <ide> # on mysql (even when aliasing the tables), but mysql allows using JOIN directly in <ide> # an UPDATE statement, so in the mysql adapters we redefine this to do that. <ide> ...
3
Python
Python
fix marian slow test
8af1970e45dc86688b70e1f3fa76d6cc5eca94e9
<ide><path>tests/test_modeling_marian.py <ide> convert_hf_name_to_opus_name, <ide> convert_opus_name_to_hf_name, <ide> ) <add> from transformers.modeling_bart import shift_tokens_right <ide> from transformers.pipelines import TranslationPipeline <ide> <ide> <ide> def test_forward(self): <id...
1
Javascript
Javascript
remove implicit setting of dns hints
b85a50b6da5bbd7e9c8902a13dfbe1a142fd786a
<ide><path>lib/net.js <ide> function lookupAndConnect(self, options) { <ide> hints: options.hints || 0 <ide> }; <ide> <del> if (dnsopts.family !== 4 && dnsopts.family !== 6 && dnsopts.hints === 0) { <del> dnsopts.hints = dns.ADDRCONFIG; <del> // The AI_V4MAPPED hint is not supported on FreeBSD or Android,...
1
PHP
PHP
fix misleading docblocks
fefb64ec0de7bf49fb416ac4b022cc7ff901fdd9
<ide><path>src/Illuminate/Collections/EnumeratesValues.php <ide> public function where($key, $operator = null, $value = null) <ide> } <ide> <ide> /** <del> * Filter items where the given key is not null. <add> * Filter items where the value for the given key is null. <ide> * <ide> * @param s...
1
Text
Text
add translation kr/threejs-shadertoy.md
93c3d48e2587eca9a3987a334c65719808a05daf
<ide><path>threejs/lessons/kr/threejs-shadertoy.md <add>Title: 쉐이더토이(Shadertoy) 활용하기 <add>Description: Three.js에서 쉐이더토이의 쉐이더를 사용하는 법을 알아봅니다 <add>TOC: 쉐이더토이 쉐이더 활용하기 <add> <add>[쉐이더토이(Shadertoy)](https://shadertoy.com)는 다양한 쉐이더를 제공하는 유명한 사이트입니다. 시리즈를 진행하다보니 쉐이더토이에서 받은 쉐이더를 Three.js에 적용하는 법을 물어보시는 분들이 꽤 있더군요. <add> <add>...
1
PHP
PHP
remove redundant code
f09d7adab905e74858cd53b0f87e4590919a5c0e
<ide><path>src/Utility/Security.php <ide> public static function decrypt(string $cipher, string $key, ?string $hmacSalt = <ide> * @param mixed $original The original value. <ide> * @param mixed $compare The comparison value. <ide> * @return bool <del> * @see https://github.com/resonantcore/php-future...
1
Mixed
Python
add logger debug for project push and pull
0485cdefcc0d6f2fd81ac2191e36543a2a6d54f1
<ide><path>.github/contributors/nsorros.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project <a...
3
PHP
PHP
return bulider instance on setbindings
be734eca9ba8ec7142c06d2662356e69c12f5257
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function getBindings() <ide> * Set the bindings on the query builder. <ide> * <ide> * @param array $bindings <del> * @return void <add> * @return \Illuminate\Database\Query\Builder <ide> */ <ide> public function setBindings(array $bindings) ...
1
Text
Text
update styles for listview in tutorial
bc0ecaddc99378625624164cd624f57366b8ffd6
<ide><path>docs/Tutorial.md <ide> var AwesomeProject = React.createClass({ <ide> <ListView <ide> dataSource={this.state.dataSource} <ide> renderRow={this.renderMovie} <add> style={styles.listView} <ide> /> <ide> ); <ide> },
1
Javascript
Javascript
fix ambiguity in eof handling
31196eaa936e38a1a2bc189f4fcd5f633d814c13
<ide><path>lib/net.js <ide> function onread(nread, buffer) { <ide> <ide> debug('EOF'); <ide> <add> // push a null to signal the end of data. <add> // Do it before `maybeDestroy` for correct order of events: <add> // `end` -> `close` <add> self.push(null); <add> <ide> if (self._readableState.length === 0) { <i...
2
Javascript
Javascript
add simple example of inlined template
b37e8a2b141761d3211b52b8b6802c49c92d44f8
<ide><path>src/widgets.js <ide> var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp <ide> }]; <ide> <ide> <add>/** <add> * @ngdoc widget <add> * @name angular.module.ng.$compileProvider.directive.script <add> * <add> * @description <add> * Load content of a script tag, with type `text/ng-...
1
Javascript
Javascript
use tabs instead of spaces
2dd2e4886b394a85b86da9fbd433706a8af9b7cd
<ide><path>test/unit/manipulation.js <ide> test( "insertAfter, insertBefore, etc do not work when destination is original e <ide> test( "Index for function argument should be received (#13094)", 2, function() { <ide> var i = 0; <ide> <del> jQuery("<div/><div/>").before(function( index ) { <del> equal( in...
1
Python
Python
update error message
0881455a5d9d71a0c2810f6aa05416220d60337d
<ide><path>spacy/errors.py <ide> class Errors: <ide> # TODO: fix numbering after merging develop into master <ide> E941 = ("Can't find model '{name}'. It looks like you're trying to load a " <ide> "model from a shortcut, which is deprecated as of spaCy v3.0. To " <del> "load the model, us...
1
Javascript
Javascript
replace fixturesdir with fixtures
3a265556ece7c23e2d9afdfe492bff2812e43bfb
<ide><path>test/parallel/test-stdin-from-file.js <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <del>const join = require('path').join; <add>const { join } = require('path'); <ide> const childProcess = require('...
1
Python
Python
use list to be safe
8c9b5bbf9a5603a4f33b1196e42ea1cc3ab9344e
<ide><path>airflow/utils.py <ide> def import_module_attrs(parent_module_globals, module_attrs_dict): <ide> brings functional operators to those namespaces. <ide> ''' <ide> imported_attrs = [] <del> for mod, attrs in module_attrs_dict.items(): <add> for mod, attrs in list(module_attrs_dict.items()): <i...
1