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
add marble diagrams for single operators
03336a980d738426fb76202750befa48f3c1599e
<ide><path>src/main/java/rx/Single.java <ide> * <p> <ide> * The documentation for this class makes use of marble diagrams. The following legend explains these diagrams: <ide> * <p> <del> * <img width="640" height="301" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/legend.png" alt=""> <add> * ...
1
Mixed
Ruby
avoid duplicating routes for head requests
d3eb92d95a694905a80668dcde1fb49e2d08f388
<ide><path>actionpack/CHANGELOG.md <add>* Avoid duplicating routes for HEAD requests. <add> <add> Instead of duplicating the routes, we will first match the HEAD request to <add> HEAD routes. If no match is found, we will then map the HEAD request to <add> GET routes. <add> <add> *Guo Xiang Tan*, *Andrew ...
5
Text
Text
add consistent casing for javascript
9f32721de9de0fb60f0ad49841f8b2c488ef8a88
<ide><path>README.md <ide> <ide> # Introduction <ide> <del>webpack is a bundler for modules. The main purpose is to bundle javascript <add>webpack is a bundler for modules. The main purpose is to bundle JavaScript <ide> files for usage in a browser, yet it is also capable of transforming, bundling, <ide> or packaging...
1
Text
Text
add 16.6.3 changelog
d7fd679a31b4d5d1456bb56712d5a1a89ac1bb47
<ide><path>CHANGELOG.md <ide> </summary> <ide> </details> <ide> <add>## 16.6.3 (November 12, 2018) <add> <add>### React DOM <add> <add>* Fix bugs in `Suspense` and `lazy`. ([@acdlite](https://github.com/acdlite) in [#14133](https://github.com/facebook/react/pull/14133), [#14157](https://github.com/facebook/react/pul...
1
PHP
PHP
fix a typo in the annotation
c48a34880e578eb869a435e80088a0265e66c141
<ide><path>src/Http/Response.php <ide> public function withCharset($charset) <ide> * Sets the correct headers to instruct the client to not cache the response <ide> * <ide> * @return void <del> * @deprected 3.4.0 Use withDisabledCache() instead. <add> * @deprecated 3.4.0 Use withDisabledCache() i...
1
Ruby
Ruby
improve cache on route_key lookup
7280787a53436046e992305a235e66e4fb458e0f
<ide><path>actionpack/lib/action_dispatch/routing/polymorphic_routes.rb <ide> def build_named_route_call(records, inflection, options = {}) <ide> if parent.is_a?(Symbol) || parent.is_a?(String) <ide> parent <ide> else <del> ActiveModel::Naming.route_key(parent)...
3
Text
Text
add "real" name, meetup
5a657a7068efcd32b2147b773562fc9a0d1754ee
<ide><path>docs/New-Maintainer-Checklist.md <ide> If they accept, follow a few steps to get them set up: <ide> - Add them to the [Jenkins' GitHub Authorization Settings admin user names](https://jenkins.brew.sh/configureSecurity/) so they can adjust settings and restart jobs. <ide> - Add them to the [Jenkins' GitHub Pu...
1
PHP
PHP
add detection for toarray() method in xml
699ce324cc03d63b6ef236ae85225099274efaa5
<ide><path>src/Utility/Xml.php <ide> <?php <ide> /** <del> * XML handling for Cake. <del> * <del> * The methods in these classes enable the datasources that use XML to work. <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (http://cake...
2
PHP
PHP
fix inflection when baking models
d443c7455ddce6d0a2716e1a1e63aa3296a4954e
<ide><path>src/Core/ConventionsTrait.php <ide> protected function _modelKey($name) { <ide> */ <ide> protected function _modelNameFromKey($key) { <ide> $key = str_replace('_id', '', $key); <del> return Inflector::classify(Inflector::pluralize($key)); <add> return Inflector::camelize(Inflector::pluralize($key)); <i...
1
Python
Python
save one line of code
f758804401e288ee93561073ecee81f729a2b7a9
<ide><path>spacy/util.py <ide> def import_file(name: str, loc: Union[str, Path]) -> ModuleType: <ide> loc (str / Path): Path to the file. <ide> RETURNS: The loaded module. <ide> """ <del> loc = str(loc) <del> spec = importlib.util.spec_from_file_location(name, loc) <add> spec = importlib.util.spec_...
1
Python
Python
add a decorator for flaky tests
209bec463637182e5d7a36787d2901a5dcc24136
<ide><path>src/transformers/testing_utils.py <ide> <ide> import collections <ide> import contextlib <add>import functools <ide> import inspect <ide> import logging <ide> import os <ide> import subprocess <ide> import sys <ide> import tempfile <add>import time <ide> import unittest <ide> from collections.abc import Map...
4
Python
Python
drop broken placeholder serializations
3fba60e99c75dda4e14f7fe4f941d6fc84e4c986
<ide><path>rest_framework/renderers.py <ide> def data_to_form_fields(self, data): <ide> fields = {} <ide> for key, val in data.fields.items(): <ide> if getattr(val, 'read_only', True): <add> # Don't include read-only fields. <add> continue <add> <add> ...
3
Javascript
Javascript
add stream.pipe benchmarks
da97a47c4406d2c4bc867349dd039d6cc7cdff72
<ide><path>benchmark/streams/pipe-object-mode.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const { Readable, Writable } = require('stream'); <add> <add>const bench = common.createBenchmark(main, { <add> n: [5e6] <add>}); <add> <add>function main({ n }) { <add> const b = {}; <add> const ...
2
Ruby
Ruby
fix libarchive installed check
965dbaa1720bbfe2451022ebf082611d584a1382
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> def setup_tar_owner_group_args! <ide> return [].freeze <ide> end <ide> <del> unless libarchive.installed? <add> unless libarchive.any_version_installed? <ide> ohai "Installing `libarchive` for bottling..." <ide> safe_system HOMEBREW_BREW_F...
1
Text
Text
fix typo in action pack changelog. [ci skip]
849148b35fc1e5cbfa0fb228405c5d3b94c5a606
<ide><path>actionpack/CHANGELOG.md <ide> * Drop request class from RouteSet constructor. <ide> <del> If you would like to use a custom request class, please subclass and implemet <add> If you would like to use a custom request class, please subclass and implement <ide> the `request_class` method. <ide> <...
1
Ruby
Ruby
duplicate possible frozen string from route
c4106d0c08954b0761726e0015ec601b7bc7ea4b
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def decomposed_match(path, options) # :nodoc: <ide> <ide> def add_route(action, options) # :nodoc: <ide> path = path_for_action(action, options.delete(:path)) <add> action = action.to_s.dup <ide> <del> if action.to_s...
2
Javascript
Javascript
simplify reducer function
4a80c207d1113038e1f0a8a71dfab9de7b23e21e
<ide><path>examples/tree-view/reducers/index.js <ide> function childIds(state, action) { <ide> case ADD_CHILD: <ide> return [ ...state, action.childId ] <ide> case REMOVE_CHILD: <del> const index = state.indexOf(action.childId) <del> return [ <del> ...state.slice(0, index), <del> ....
1
Text
Text
add a note about deprecating react-addons-perf
7c78a38182bc411e36c86a54c1bcb5e9fc3186b6
<ide><path>docs/docs/addons-perf.md <ide> layout: docs <ide> category: Add-Ons <ide> --- <ide> <add>> Note: <add>> <add>> As of React 16, `react-addons-perf` is not supported. Please use [your browser's profiling tools](/react/docs/optimizing-performance.html#profiling-components-with-the-chrome-performance-tab) to ge...
1
PHP
PHP
fix failing tests
08bcca1a83cac7ccb04ef2f238c1a9d2d144cc07
<ide><path>Cake/Test/TestCase/Controller/ControllerTest.php <ide> public function testMergeVars() { <ide> $TestController->constructClasses(); <ide> <ide> $this->assertEquals( <del> 'Post', <add> 'Posts', <ide> $TestController->modelClass, <ide> 'modelClass should not be overwritten when defined.' <ide> ...
1
Ruby
Ruby
remove pin directory when empty
f222ca04fd31b0cd05e25b0c92b27049802147bb
<ide><path>Library/Homebrew/formula_pin.rb <ide> def pin <ide> <ide> def unpin <ide> path.unlink if pinned? <add> PINDIR.rmdir_if_possible <ide> end <ide> <ide> def pinned? <ide><path>Library/Homebrew/test/test_formula_pin.rb <ide> def test_pinnable_if_kegs_exist <ide> assert_predicate @pin, :pinnabl...
2
Python
Python
adjust error message related to args.do_eval
9aebc711c96c5d88eaba5fe385370de7924e6ec7
<ide><path>examples/run_lm_finetuning.py <ide> def main(): <ide> if n_gpu > 0: <ide> torch.cuda.manual_seed_all(args.seed) <ide> <del> if not args.do_train and not args.do_eval: <del> raise ValueError("At least one of `do_train` or `do_eval` must be True.") <add> if not args.do_train: <add> ...
1
Text
Text
update incorrect url in docs
5ae95d6245d30751951418650331def487bf935b
<ide><path>docs/reference/index.md <ide> keywords: "Engine" <ide> * [Dockerfile reference](builder.md) <ide> * [Docker run reference](run.md) <ide> * [Command line reference](commandline/index.md) <del>* [API Reference](api/index.md) <add>* [API Reference](https://docs.docker.com/engine/api/)
1
Ruby
Ruby
add app/{helpers,models} to autoload_once_paths
c431432f93a35530cd0544192b93dabda51f2bf7
<ide><path>actiontext/lib/action_text/engine.rb <ide> class Engine < Rails::Engine <ide> <ide> config.action_text = ActiveSupport::OrderedOptions.new <ide> config.action_text.attachment_tag_name = "action-text-attachment" <add> config.autoload_once_paths = %W( <add> #{root}/app/helpers <add> #{roo...
2
Javascript
Javascript
remove deprecated dedupeplugin
67f31aeebc8b90d48e6733bea60d2203c1b8507d
<ide><path>lib/optimize/DedupePlugin.js <del>/* <del> MIT License http://www.opensource.org/licenses/mit-license.php <del> Author Tobias Koppers @sokra <del>*/ <del>"use strict"; <del> <del>class DedupePlugin { <del> apply(compiler) { <del> compiler.hooks.compilation.tap("DedupePlugin", (compilation) => { <del> comp...
2
Ruby
Ruby
make `foreign_keys` queries to `schema`
16bb3d6f122c32e828a23ba24ffb14d60fdb9ba3
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def foreign_keys(table_name) <ide> <ide> schema, name = extract_schema_qualified_name(table_name) <ide> <del> fk_info = select_all <<-SQL.strip_heredoc <add> fk_info = select_all(<<-SQL.strip_heredoc, '...
2
Python
Python
replace labels that didn't make freq cutoff
4dc0fc9954ccac2998f2ebd117817566f5584132
<ide><path>examples/training/conllu.py <ide> def main(spacy_model, conllu_train_loc, text_train_loc, conllu_dev_loc, text_dev <ide> if tag is not None: <ide> nlp.tagger.add_label(tag) <ide> optimizer = nlp.begin_training(lambda: golds_to_gold_tuples(docs, golds)) <add> # Replace label...
1
Java
Java
fix failing tests
48eb416eccc6649296ad2e83e09ba8d2a766b6de
<ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ControllerMethodResolverTests.java <ide> public void requestMappingArgumentResolvers() throws Exception { <ide> assertEquals(RequestParamMapMethodArgumentResolver.class, next(resolvers, index).getClass()); <ide> assert...
1
PHP
PHP
fix doc @return class
5cf7fecc7d656de950ab93d80c3a4a3a4c68fc7d
<ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithConsole.php <ide> trait InteractsWithConsole <ide> * <ide> * @param string $command <ide> * @param array $parameters <del> * @return \Illuminate\Foundation\Testing\PendingCommand|int <add> * @return \Illuminate\Testing\Pending...
1
Javascript
Javascript
add deprecation notice
fc60a61284bd3fd9326019256c5dc98acf2bc515
<ide><path>src/geom/delaunay.js <ide> import "geom"; <ide> import "voronoi"; <ide> <del>/** <del>* @param vertices [[x1, y1], [x2, y2], …] <del>* @returns triangles [[[x1, y1], [x2, y2], [x3, y3]], …] <del> */ <add>// @deprecated; use d3.geom.voronoi links instead. <ide> d3.geom.delaunay = function(vertices) { <ide> ...
1
Javascript
Javascript
integrate sphere class into raycaster
49cdafe26e9b38410def197126b0b4bf3c16b957
<ide><path>src/core/Raycaster.js <ide> <ide> }; <ide> <add> var sphere = new THREE.Sphere(); <add> <ide> var originCopy = new THREE.Vector3(); <ide> <ide> var localOriginCopy = new THREE.Vector3(); <ide> <ide> } else if ( object instanceof THREE.Mesh ) { <ide> <del> // Checking boundingSphere <del> <del> ...
1
Javascript
Javascript
remove test dependencies on dom
afede9f189a2ae9f4361d6f1e8dc675d24925020
<ide><path>test/interpolate/array-test.js <ide> var suite = vows.describe("d3.interpolateArray"); <ide> <ide> suite.addBatch({ <ide> "interpolateArray": { <del> topic: load("interpolate/array").expression("d3.interpolateArray").document(), <add> topic: load("interpolate/array").expression("d3.interpolateArray"...
8
Text
Text
update translation greedy-algorithms
ad5b99ed09948ace51b7f5006d744a9e23e52e49
<ide><path>guide/portuguese/algorithms/greedy-algorithms/index.md <ide> title: Greedy Algorithms <ide> localeTitle: Algoritmos Greedy <ide> --- <del>## O que é um algoritmo ganancioso <add>## O que é um algoritmo guloso <ide> <ide> Você deve ter ouvido falar sobre muitas técnicas de design algorítmico enquanto analisa...
1
PHP
PHP
fix typo in with() docblock
ce2b1a271352bb19a1785a337c6551bc63d7fe23
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function load($relations) <ide> } <ide> <ide> /** <del> * Being querying a model with eager loading. <add> * Begin querying a model with eager loading. <ide> * <ide> * @param array|string $relations <ide> * @return \Ill...
1
Text
Text
fix formatting of toc
aa3eab00dacdd9243b9f4a44ea2aef20c55deeef
<ide><path>COLLABORATOR_GUIDE.md <ide> <ide> * [Issues and Pull Requests](#issues-and-pull-requests) <ide> * [Accepting Modifications](#accepting-modifications) <del> - [Internal vs. Public API](#internal-vs-public-api) <del> - [Breaking Changes](#breaking-changes) <del> - [Deprecations](#deprecations) <del> - [Involv...
1
Ruby
Ruby
use attr_accessor for installed_*
f0249643d47f1dee4a0d08c440eb3afd6da3558a
<ide><path>Library/Homebrew/cmd/upgrade.rb <ide> def upgrade_formula(f) <ide> fi.installed_on_request = !ARGV.named.empty? <ide> if tab <ide> fi.installed_as_dependency = tab.installed_as_dependency <del> #fi.installed_on_request ||= tab.installed_on_request <add> fi.installed_on_request ||= t...
2
Ruby
Ruby
remove trailing spaces
212927ee54cfcee0384ae3cac91e97516a5a02f8
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def rmdir_if_possible <ide> raise unless e.errno == Errno::ENOTEMPTY::Errno or e.errno == Errno::EACCES::Errno <ide> false <ide> end <del> <add> <ide> def chmod_R perms <ide> require 'fileutils' <ide> FileUtils.chmod_R perms, to_s <ide> def vers...
1
Ruby
Ruby
remove useless ivar
999b70320b0511b5e2c8663e56a68778b1615796
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def collect_join_chain <ide> # This is for clearing cache on the reflection. Useful for tests that need to compare <ide> # SQL queries on associations. <ide> def clear_association_scope_cache # :nodoc: <del> @chain = nil <ide> ...
1
Java
Java
use mit license
aa323d4aa9d87874f45eda8a4798086fa91fd08e
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/image/ScaleTypeStartInside.java <ide> /** <ide> * Copyright (c) 2017-present, Facebook, Inc. <del> * All rights reserved. <ide> * <del> * This source code is licensed under the BSD-style license found in the <del> * LICENSE file in the root directory of t...
1
Text
Text
fix spelling error in behavioral patterns page
8f4fb09ab142d1e08aeda2fb9ca215e602e11935
<ide><path>guide/english/algorithms/algorithm-design-patterns/behavioral-patterns/index.md <ide> title: Behavioral patterns <ide> <ide> ## Behavioral patterns <ide> <del>Behavioral design patterns are design patterns that identify common communication problems between objects and realize these patterns. By doing so, ...
1
Python
Python
show some information at startup
220ab777b381e1b3bf3f54bf36878cb4958be552
<ide><path>celery/bin/celeryd.py <ide> from celery.log import emergency_error <ide> from celery.conf import LOG_LEVELS, DAEMON_LOG_FILE, DAEMON_LOG_LEVEL <ide> from celery.conf import DAEMON_CONCURRENCY, DAEMON_PID_FILE <add>from celery import conf <ide> from celery import discovery <ide> from celery.task import discar...
1
Text
Text
explain installation in more detail
db140c887f389995b8be2ddbfb33601b49708c12
<ide><path>docs/docs/installation.md <ide> cd hello-world <ide> npm start <ide> ``` <ide> <del>Create React App doesn't handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. It uses Webpack, Babel and ESLint under the hood, but configures them for yo...
1
Javascript
Javascript
fix lint warnings
3e63197b51dc9d4ed7c9c145b6340fdf94317b4a
<ide><path>src/native-compile-cache.js <ide> const path = require('path') <ide> const cachedVm = require('cached-run-in-this-context') <ide> const crypto = require('crypto') <ide> <del>function computeHash(contents) { <add>function computeHash (contents) { <ide> return crypto.createHash('sha1').update(contents, 'utf...
1
Python
Python
fetch googletest dependency for v8 ci
e83c8aef4b787b531f23ad7abb498fe81db5ee83
<ide><path>tools/v8/fetch_deps.py <ide> "custom_deps" : { <ide> # These deps are already part of Node.js. <ide> "v8/base/trace_event/common" : None, <del> "v8/third_party/googletest/src" : None, <ide> # These deps are unnecessary for building. <ide> "v8/test/benchmark...
1
Javascript
Javascript
remove unused dependency
ad4296d966078d401fa346313da07f1e168eeaf9
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider() { <ide> return ChildScope; <ide> } <ide> <del> this.$get = ['$injector', '$exceptionHandler', '$parse', '$browser', <del> function($injector, $exceptionHandler, $parse, $browser) { <add> this.$get = ['$exceptionHandler', '$parse', '$browse...
1
Python
Python
fix side effect of commit fcc65bf
12f20feb31e584dbb9b1ad2748a012cdc7dd4452
<ide><path>glances/monitor_list.py <ide> def update(self): <ide> <ide> # Iter upon the monitored list <ide> for i in range(len(self.get())): <del> monitoredlist = [p for p in processlist if re.search(self.regex(i), p['cmdline']) is not None] <add> monitoredlist = [p for p in proce...
1
Javascript
Javascript
fix live_editor.js usage of class=
a78f752143cc8f54647df4ee0ea4e5e0c31ebd58
<ide><path>docs/_js/live_editor.js <ide> var ReactPlayground = React.createClass({ <ide> />; <ide> } else if (this.state.mode === this.MODES.JS) { <ide> content = <del> <div class={{playgroundJS: true, playgroundStage: true}}> <add> <div class="playgroundJS playgroundStage"> <ide> ...
1
PHP
PHP
add whitespace to end-of-file
7b27b0d1abf94c8aaea26e7a8b8195304762c81a
<ide><path>lib/Cake/Console/Templates/skel/Test/Case/AllTestsTest.php <ide> public static function suite() { <ide> $suite->addTestDirectoryRecursive(TESTS . 'Case'); <ide> return $suite; <ide> } <del>} <ide>\ No newline at end of file <add>}
1
Javascript
Javascript
include number of expected assertions
b2d86a3cfcca0d8b0974169fede63ed872b92fde
<ide><path>packages/ember-metal/tests/run_loop/run_bind_test.js <ide> test('Ember.run.bind builds a run-loop wrapped callback handler', function() { <ide> }); <ide> <ide> test('Ember.run.bind keeps the async callback arguments', function() { <add> expect(4); <ide> <ide> var asyncCallback = function(increment, incr...
1
Javascript
Javascript
fix a function name in webgldeferredrenderer
b7ddb8a3104dbd317a49fa43d2fd9e2f5797baaa
<ide><path>examples/js/renderers/WebGLDeferredRenderer.js <ide> THREE.WebGLDeferredRenderer = function ( parameters ) { <ide> return getMaterialFromCacheOrCreate( <ide> originalMaterial, <ide> _invisibleMultiMaterialsCache, <del> createInvisibleMultiMaterial <add> createInvisibleMaterial <ide> ); <ide> <...
1
Python
Python
fix clone action in kvm
23bb004d237e15e03443fac4de1ba2fdbdc9cbae
<ide><path>libcloud/compute/drivers/libvirt_driver.py <ide> import atexit <ide> import logging <ide> import netaddr <add>import random <ide> <ide> from tempfile import NamedTemporaryFile <ide> from os.path import join as pjoin <ide> def create_node(self, name, disk_size=4, ram=512, <ide> <ide> return True <id...
1
Javascript
Javascript
add user object to observables
c6b62fc7ab975db8718aeba3507dab2110f4431a
<ide><path>common/models/User-Identity.js <ide> import { wrapHandledError } from '../../server/utils/create-handled-error.js'; <ide> export default function(UserIdent) { <ide> UserIdent.on('dataSourceAttached', () => { <ide> UserIdent.findOne$ = observeMethod(UserIdent, 'findOne'); <del> UserIdent.create$ = ob...
3
Text
Text
fix redundant broken links
313594ef114fb97216cfe0e5a526d08f6570cd5c
<ide><path>CONTRIBUTING.md <ide> We welcome pull requests from freeCodeCamp campers (our students) and seasoned J <ide> <ide> 2. Let us know you are working on it by posting a comment on the issue. <ide> <del>3. Follow the [Contribution Guidelines](#contribution-guidelines) to start working on the issue. <add>3. Foll...
1
Python
Python
remove recursion detection
de6908fbef89f9fb02b5a2a7bfcd85280448f241
<ide><path>rest_framework/serializers.py <ide> class SortedDictWithMetadata(SortedDict, DictWithMetadata): <ide> pass <ide> <ide> <del>class RecursionOccured(BaseException): <del> pass <del> <del> <ide> def _is_protected_type(obj): <ide> """ <ide> True if the object is a native datatype that does not n...
1
Ruby
Ruby
remove warnings for already defined methods
682a579b25deb1142b8f445ad9ae0c661bc58564
<ide><path>activerecord/test/cases/scoping/named_scoping_test.rb <ide> def pro; end <ide> <ide> non_conflicts.each do |name| <ide> assert_nothing_raised do <del> klass.class_eval { scope name, ->{ where(approved: true) } } <add> silence_warnings do <add> klass.class_eval { scope name, ...
1
Ruby
Ruby
fix regression from rails 3.1
7b9baeed7cbcd896bbd4345ce3d9e95fb51ecb99
<ide><path>activerecord/lib/active_record/dynamic_matchers.rb <ide> def method_missing(method_id, *arguments, &block) <ide> if match = (DynamicFinderMatch.match(method_id) || DynamicScopeMatch.match(method_id)) <ide> attribute_names = match.attribute_names <ide> super unless all_attributes_exists?...
2
Ruby
Ruby
remove explicit return
1b6b80355c52cc97d96f6d747271ff43efebab0a
<ide><path>activerecord/lib/active_record/locking/optimistic.rb <ide> def attributes_from_column_definition <ide> result[self.class.locking_column] ||= 0 <ide> end <ide> <del> return result <add> result <ide> end <ide> <ide> def update(attribute_names = @attribu...
1
Javascript
Javascript
fix style errors
96345c248799a66df66e85c09ffdee75f0a1787d
<ide><path>lib/RemovedPluginError.js <del>'use strict'; <add>"use strict"; <ide> <del>module.exports = class RemovedPluginError extends Error {} <add>module.exports = class RemovedPluginError extends Error {}; <ide><path>lib/webpack.js <ide> const WebpackOptionsDefaulter = require("./WebpackOptionsDefaulter"); <ide> c...
3
Go
Go
avoid fallback to ssl protocols < tls1.0
8caacb18f8019dfda30d79c327397e5f5783c068
<ide><path>api/server/server.go <ide> func ListenAndServe(proto, addr string, job *engine.Job) error { <ide> tlsConfig := &tls.Config{ <ide> NextProtos: []string{"http/1.1"}, <ide> Certificates: []tls.Certificate{cert}, <add> // Avoid fallback on insecure SSL protocols <add> MinVersion: tls.VersionTLS10, ...
3
Ruby
Ruby
remove unused parameter from method
67ba041a324f705dca93ce231aa8f4444385d896
<ide><path>activemodel/lib/active_model/errors.rb <ide> def to_hash(full_messages = false) <ide> # # => {:base=>[{error: :name_or_email_blank}]} <ide> def add(attribute, message = :invalid, options = {}) <ide> message = message.call if message.respond_to?(:call) <del> detail = normalize_detail(att...
1
Ruby
Ruby
kill lingering acts
b4ad9e0cb9f0b21e454937625325c2b957ef7057
<ide><path>activerecord/test/associations/cascaded_eager_loading_test.rb <ide> require 'abstract_unit' <del>require 'active_record/acts/list' <ide> require 'fixtures/post' <ide> require 'fixtures/comment' <ide> require 'fixtures/author' <ide><path>activerecord/test/mixin_test.rb <ide> require 'abstract_unit' <del>requi...
2
Python
Python
fix metric computation in `run_glue_no_trainer`
87dd1a00ef1de8d8ccead5b095265906128d9e36
<ide><path>examples/pytorch/text-classification/run_glue_no_trainer.py <ide> def preprocess_function(examples): <ide> model.eval() <ide> for step, batch in enumerate(eval_dataloader): <ide> outputs = model(**batch) <del> predictions = outputs.logits.argmax(dim=-1) <add> ...
1
PHP
PHP
show all commands in dev
478076b1c61a637acfee137cbfc3862f22cc573c
<ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php <ide> public function register() <ide> { <ide> $this->registerCommands($this->commands); <ide> <del> if (! $this->app->environment('production')) { <add> //if (! $this->app->environment('production')) { <ide> ...
1
Go
Go
use spf13/cobra for docker images
65a0034c67dbcc9e7a2baf285fca7d2435b689a3
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) Command(name string) func(...string) error { <ide> "cp": cli.CmdCp, <ide> "events": cli.CmdEvents, <ide> "exec": cli.CmdExec, <del> "images": cli.CmdImages, <ide> "info": cli.CmdInfo, <ide> "inspect": cli.CmdInspect, <ide> "load": ...
6
PHP
PHP
add getviews method to return views
f4b4844682f05c0740b1c8f94e16c332b8cd5933
<ide><path>src/Illuminate/View/FileViewFinder.php <ide> public function getExtensions() <ide> { <ide> return $this->extensions; <ide> } <add> <add> /** <add> * Get registered views. <add> * <add> * @return array <add> */ <add> public function getViews() <add> { <add> retu...
1
Go
Go
add unit tests for parseenvfile
0dadf11bec88b14b9f9e2c6267f9bfb15d020923
<ide><path>opts/envfile_test.go <add>package opts <add> <add>import ( <add> "bufio" <add> "fmt" <add> "io/ioutil" <add> "os" <add> "reflect" <add> "strings" <add> "testing" <add>) <add> <add>func tmpFileWithContent(content string) (string, error) { <add> tmpFile, err := ioutil.TempFile("", "envfile-test") <add> if err ...
1
PHP
PHP
set mock methods for resultset
c62b18710ecad0026772eff8b7c217091869dbe0
<ide><path>tests/TestCase/ORM/QueryTest.php <ide> public function testCollectionProxy($method, $arg, $return) <ide> ->getMock(); <ide> $query->select(); <ide> $resultSet = $this->getMockbuilder('Cake\ORM\ResultSet') <add> ->onlyMethods([$method]) <ide> ->setConstructor...
1
Go
Go
expand prune to buildkit
760ecf958b741beb1c645a96e69065af9ebcad79
<ide><path>api/server/backend/build/backend.go <ide> import ( <ide> "github.com/docker/docker/image" <ide> "github.com/docker/docker/pkg/stringid" <ide> "github.com/pkg/errors" <add> "golang.org/x/sync/errgroup" <ide> ) <ide> <ide> // ImageComponent provides an interface for working with images <ide> func (b *Backe...
4
Javascript
Javascript
improve testing on the ci
6bc917c8e3168aee488f1b716bc1dbd174c52b95
<ide><path>src/core/core.tooltip.js <ide> module.exports = function(Chart) { <ide> model.opacity = 1; <ide> <ide> var labelColors = [], <del> tooltipPosition = tooltipPosition = getAveragePosition(active); <add> tooltipPosition = getAveragePosition(active); <ide> <ide> var tooltipItems = []; <del>...
2
PHP
PHP
fix cs error
2579df6e7bb936972c402f49120cc76f98b83f19
<ide><path>tests/TestCase/Routing/Middleware/RoutingMiddlewareTest.php <ide> use Cake\Routing\Router; <ide> use Cake\TestSuite\TestCase; <ide> use TestApp\Application; <add>use TestApp\Middleware\DumbMiddleware; <ide> use Zend\Diactoros\Response; <ide> use Zend\Diactoros\ServerRequestFactory; <del>use TestApp\Middlewar...
1
PHP
PHP
add equals to cache store
7f2822b40e228b5e2bb1da9ccc0d3ba21e557aa4
<ide><path>src/Illuminate/Cache/DatabaseStore.php <ide> public function get($key) <ide> { <ide> $prefixed = $this->prefix.$key; <ide> <del> $cache = $this->table()->where('key', $prefixed)->first(); <add> $cache = $this->table()->where('key', '=', $prefixed)->first(); <ide> <ide> // If we have a cache record w...
1
Ruby
Ruby
deduplicate some routing data
a55c57d0efecac2e11beef648d3550409b40f8a1
<ide><path>actionpack/lib/action_dispatch/http/parameters.rb <ide> def set_binary_encoding(params, controller, action) <ide> return params unless controller && controller.valid_encoding? <ide> <ide> if binary_params_for?(controller, action) <del> ActionDispatch::Request::Utils.each_param...
4
Text
Text
add flax/jax quickstart
f2c4ce7e339f4a2f8aaacb392496bc1a5743881f
<ide><path>examples/research_projects/jax-projects/README.md <ide> TODO (should be filled by 24.06.)... <ide> <ide> ## Quickstart flax and jax <ide> <del>TODO (should be filled by 25.06.)... <add>[JAX](https://jax.readthedocs.io/en/latest/index.html) is Autograd and XLA, brought together for high-performance numerica...
1
Javascript
Javascript
add jsdoc types for contextexclusionplugin
57f21c0d2094bef96582f17b28050657d5813fec
<ide><path>lib/ContextExclusionPlugin.js <ide> "use strict"; <ide> <add>/** @typedef {import("./Compiler")} Compiler */ <add>/** @typedef {import("./ContextModuleFactory")} ContextModuleFactory */ <add> <ide> class ContextExclusionPlugin { <add> /** <add> * @param {RegExp} negativeMatcher Matcher regular expression <...
2
Python
Python
add simple indexing test
b173aa1a6dc1c361d65150c6782db7618a5ff126
<ide><path>benchmarks/simpleindex.py <add>import timeit <add># This is to show that NumPy is a poorer choice than nested Python lists <add># if you are writing nested for loops. <add># This is slower than Numeric was but Numeric was slower than Python lists were <add># in the first place. <add> <add>N = 30 <add>co...
1
Text
Text
add changelogs for v8
5d462665602f9e3566e1cb62176132bd81d36e55
<ide><path>doc/api/v8.md <ide> const v8 = require('v8'); <ide> ## v8.getHeapSpaceStatistics() <ide> <!-- YAML <ide> added: v6.0.0 <add>changes: <add> - version: v7.5.0 <add> pr-url: https://github.com/nodejs/node/pull/10186 <add> description: Support values exceeding the 32-bit unsigned integer range. <ide> --> ...
1
Go
Go
implement docker resize with standalone client lib
d1057e4c4672b584590295f3d9b96a90183bbfcd
<ide><path>api/client/client.go <ide> type apiClient interface { <ide> ContainerExecAttach(execID string, config runconfig.ExecConfig) (types.HijackedResponse, error) <ide> ContainerExecCreate(config runconfig.ExecConfig) (types.ContainerExecCreateResponse, error) <ide> ContainerExecInspect(execID string) (types.Con...
4
Ruby
Ruby
copy all license files
7c1af56e43929ec004b02632c401be81b802433a
<ide><path>Library/Homebrew/metafiles.rb <ide> # <ide> # @api private <ide> module Metafiles <add> LICENSES = Set.new(%w[copying copyright license licence]).freeze <ide> # https://github.com/github/markup#markups <ide> EXTENSIONS = Set.new(%w[ <ide> .adoc .asc .asciidoc .creole .html .mark...
1
Javascript
Javascript
add $httpbackend mock example
997f482b38703b390a60cd6f5611901fcc944a24
<ide><path>src/ngMock/angular-mocks.js <ide> angular.mock.dump = function(object) { <ide> * Fake HTTP backend implementation suitable for unit testing applications that use the <ide> * {@link ng.$http $http service}. <ide> * <del> * *Note*: For fake HTTP backend implementation suitable for end-to-end testing or back...
1
Python
Python
add a --version switch to flask cli
6bee3e4995066466a35ac080844d4962a728d084
<ide><path>flask/cli.py <ide> <ide> from ._compat import iteritems, reraise <ide> from .helpers import get_debug_flag <del> <add>from . import __version__ <ide> <ide> class NoAppException(click.UsageError): <ide> """Raised if an application cannot be found or loaded.""" <ide> def find_default_import_path(): <ide>...
1
PHP
PHP
restore removed widgetinterface
79ace6033e2c9615b6bd81d667617e409a4b714d
<ide><path>src/View/Widget/WidgetRegistry.php <ide> use Cake\Core\App; <ide> use Cake\View\StringTemplate; <ide> use Cake\View\View; <add>use Cake\View\Widget\WidgetInterface; <ide> use Cake\Core\Configure\Engine\PhpConfig; <ide> use \ReflectionClass; <ide>
1
Mixed
Python
add lemma option to displacy 'dep' visualiser
479bd8d09fd22118463706363e7d23b0578ceea9
<ide><path>spacy/displacy/__init__.py <ide> def parse_deps(orig_doc, options={}): <ide> for span, tag, lemma, ent_type in spans: <ide> attrs = {"tag": tag, "lemma": lemma, "ent_type": ent_type} <ide> retokenizer.merge(span, attrs=attrs) <del> if options.get("fine_grained")...
5
Javascript
Javascript
fix grabquestion actions
5f9739452066a2a1a160a46d1f1e6a37dc9504e0
<ide><path>common/app/routes/Hikes/redux/actions.js <ide> export const resetHike = createAction(types.resetHike); <ide> <ide> export const toggleQuestionView = createAction(types.toggleQuestionView); <ide> <del>export const grabQuestions = createAction(types.grabQuestions, e => { <add>export const grabQuestion = crea...
1
Ruby
Ruby
add explicit mkpath to pathname#write_exec_script
d96f15e324d6757f8bb85fbd12cea777e0abc9bf
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def write_exec_script *targets <ide> opoo "tried to write exec scripts to #{self} for an empty list of targets" <ide> return <ide> end <add> mkpath <ide> targets.each do |target| <ide> target = Pathname.new(target) # allow pathnames or st...
1
Javascript
Javascript
improve enabling liveui when switching sources
6c67c3084b485ae158debba9ee4aeebde65640cf
<ide><path>src/js/live-tracker.js <ide> class LiveTracker extends Component { <ide> this.on(this.player_, 'durationchange', (e) => this.handleDurationchange(e)); <ide> // we should try to toggle tracking on canplay as native playback engines, like Safari <ide> // may not have the proper values for things li...
2
Text
Text
add kb_loader and get_candidates back to el api
2dfd91958523e4279c23accccd3435fc474a19a7
<ide><path>website/docs/api/architectures.md <ide> others, but may not be as accurate, especially if texts are short. <ide> <ide> An [`EntityLinker`](/api/entitylinker) component disambiguates textual mentions <ide> (tagged as named entities) to unique identifiers, grounding the named entities <del>into the "real worl...
2
Text
Text
fix grammatical error
04aa710947f98c512fbef4644ee0c609a1f8fb4f
<ide><path>docs/contents/examples/index.md <ide> var scaledViewport = page.getViewport({ scale: scale, }); <ide> ### Hello World with document load error handling <ide> <ide> The example demonstrates how promises can be used to handle errors during loading. <del>It also demonstrates how to wait until page loaded and r...
1
Javascript
Javascript
change global to window in syntheticclipboardevent
1584aaf746f8cbddaf1e2bd6a2329a1d08226ca8
<ide><path>src/event/synthetic/SyntheticClipboardEvent.js <ide> var ClipboardEventInterface = { <ide> return ( <ide> 'clipboardData' in event ? <ide> event.clipboardData : <del> global.clipboardData <add> window.clipboardData <ide> ); <ide> } <ide> };
1
Python
Python
fix typos in comments
f34dd0b98f2301b3ac5d6859992907405cd4a25f
<ide><path>spacy/pipeline/entity_linker.py <ide> def __init__( <ide> self.get_candidates = get_candidates <ide> self.cfg = {} <ide> self.distance = CosineDistance(normalize=False) <del> # how many neightbour sentences to take into account <add> # how many neighbour sentences to tak...
1
Mixed
Ruby
add an invert method for remove_foreign_key
a186663b3d274b7aa648683f3fdf7a816fe90763
<ide><path>activerecord/CHANGELOG.md <add>* Make remove_foreign_key invertible. Any foreign key options must be <add> specified, similar to remove_column. <add> <add> *Aster Ryan* <add> <ide> * Correctly handle decimal arrays with defaults in the schema dumper. <ide> <ide> Fixes #20515. <ide><path>active...
4
Javascript
Javascript
use relative imports in ember-testing
cbd680c42fba2fff7fed581ed33511a11b6eb8ab
<ide><path>packages/ember-testing/lib/adapters/qunit.js <del>import Adapter from 'ember-testing/adapters/adapter'; <add>import Adapter from './adapter'; <ide> import { inspect } from 'ember-metal/utils'; <ide> <ide> /** <ide><path>packages/ember-testing/lib/index.js <ide> import Ember from 'ember-metal/core'; // reexp...
2
PHP
PHP
error
0a90a98eab970271d7b49b535b13af5284300793
<ide><path>src/Illuminate/Routing/Router.php <ide> public function current() <ide> */ <ide> public function currentRouteName() <ide> { <del> return $this->current()->getName(); <add> return ($this->current()) ? $this->current()->getName() : null; <ide> } <ide> <ide> /** <ide> public function currentRouteName()...
1
Python
Python
change audio kwarg to images in trocr processor
0b8c1b6994082950044452a670e8417a5ebc2db0
<ide><path>src/transformers/models/trocr/processing_trocr.py <ide> def __call__(self, *args, **kwargs): <ide> if self._in_target_context_manager: <ide> return self.current_processor(*args, **kwargs) <ide> <del> if "raw_speech" in kwargs: <del> warnings.warn("Using `raw_speech` as ...
1
PHP
PHP
add test case
90220ed53d9e977bdf92b5f32d6f1c8eb231d689
<ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php <ide> public function testPrefers() <ide> } <ide> <ide> /** <del> * test that ajax requests involving redirects trigger requestAction instead. <add> * test that AJAX requests involving redirects trigger requestAction instead...
1
Javascript
Javascript
add missing semicolon in gpucomputationrenderer
bd958a146ad1423f2775d942649cb017544edd3e
<ide><path>examples/js/GPUComputationRenderer.js <ide> function GPUComputationRenderer( sizeX, sizeY, renderer ) { <ide> <ide> materialShader.defines.resolution = 'vec2( ' + sizeX.toFixed( 1 ) + ', ' + sizeY.toFixed( 1 ) + " )"; <ide> <del> }; <add> } <ide> this.addResolutionDefine = addResolutionDefine; <ide> <i...
1
Go
Go
put a timeout on containerd deletetask
05c20a6e1c708bc881dee36554c6598937afa699
<ide><path>daemon/monitor.go <ide> func (daemon *Daemon) setStateCounter(c *container.Container) { <ide> <ide> func (daemon *Daemon) handleContainerExit(c *container.Container, e *libcontainerdtypes.EventInfo) error { <ide> c.Lock() <del> <del> ec, et, err := daemon.containerd.DeleteTask(context.Background(), c.ID) <...
1
Python
Python
fix function call
19e49f4b867847bf1b8a0cd5f1233aa2bd456b57
<ide><path>glances/core/glances_client.py <ide> def serve_forever(self): <ide> # Export stats using export modules <ide> self.stats.export(self.stats) <ide> finally: <del> self.end <add> self.end() <ide> <ide> return self.client_mode <ide>
1
Javascript
Javascript
fix poor paragraph construction
b2b6d74ae5c9ed62ecd1a09a8631aeb90cec8d05
<ide><path>src/ng/directive/attrs.js <ide> * make the link go to the wrong URL if the user clicks it before <ide> * Angular has a chance to replace the `{{hash}}` markup with its <ide> * value. Until Angular replaces the markup the link will be broken <del> * and will most likely return a 404 error. <del> * <del> * ...
1
Go
Go
remove dead code in cmdpush
5ecd940a594507075e6cee80aa70c258a9d850ca
<ide><path>commands.go <ide> func (srv *Server) CmdPush(stdin io.ReadCloser, stdout io.Writer, args ...string <ide> return err <ide> } <ide> return nil <del> } else { <del> return err <ide> } <del> return nil <add> <add> return err <ide> } <ide> err = srv.runtime.graph.PushImage(stdout, img, srv.runt...
1
Python
Python
remove extra digit in binary_repr at limit
b10b4087132d51ee33bf5e0777282af23d6ee3cd
<ide><path>numpy/core/numeric.py <ide> def binary_repr(num, width=None): <ide> designated form. <ide> <ide> If the `width` value is insufficient, it will be ignored, and `num` will <del> be returned in binary(`num` > 0) or two's complement (`num` < 0) form <add> be returned in binary (`nu...
2
Text
Text
use kbd element in process doc
4952747b3792bed599d2d8fe13d8d937464a5310
<ide><path>doc/api/process.md <ide> process.on('SIGTERM', handle); <ide> installed its default behavior will be removed. <ide> * `'SIGTERM'` is not supported on Windows, it can be listened on. <ide> * `'SIGINT'` from the terminal is supported on all platforms, and can usually be <del> generated with `<Ctrl>+C` (thou...
1