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
Text
Text
fix line length and output examples
7491653511f256fc40641c68a6338540ab75cc7f
<ide><path>src/I18n/README.md <ide> should you wish to create them manually instead of using the conventions this li <ide> ```php <ide> use Cake\I18n\I18n; <ide> <del>I18n::locale('de_DE'); <add>I18n::locale('en_US'); <ide> ``` <ide> <ide> ### Translating a message <ide> echo Number::format(100100100); <ide> <ide> `...
1
Text
Text
fix sentence 😳
fc1175b28dd1fe3751dc483b8fceb45d976e4fb2
<ide><path>docs/focus/2018-05-07.md <ide> - Clear the branch name after a successful checkout [atom/github#1438](https://github.com/atom/github/pull/1438) <ide> - Improve readability of console git diagnostic messages [atom/github#1439](https://github.com/atom/github/pull/1439) <ide> - Teletype <del> - Shipped [Te...
1
Ruby
Ruby
fix docs of `assert_no_emails` [ci skip]
ff090977c1e7f7e0382be6f62910af03788d2eeb
<ide><path>actionmailer/lib/action_mailer/test_helper.rb <ide> def assert_emails(number, &block) <ide> # <ide> # Note: This assertion is simply a shortcut for: <ide> # <del> # assert_emails 0 <add> # assert_emails 0, &block <ide> def assert_no_emails(&block) <ide> assert_emails 0, &block...
1
Javascript
Javascript
improve size output readability
62d87e20b15374c6292468ca775c2b504421f9eb
<ide><path>lib/Stats.js <ide> Stats.jsonToString = function jsonToString(obj, useColors) { <ide> newline(); <ide> } <ide> } <add> function formatSize(size) { <add> if(size <= 0) return "0 bytes"; <add> <add> var abbreviations = ["bytes", "kB", "MB", "GB"]; <add> var index = Math.floor(Math.log(size) / Math.log...
1
Javascript
Javascript
move text measurement into font
4a7fe7cb5d9a35b0bc67aaade6dfa476890b9caa
<ide><path>fonts.js <ide> var kMaxWaitForFontFace = 1000; <ide> */ <ide> <ide> var Fonts = (function Fonts() { <del> var kScalePrecision = 40; <ide> var fonts = []; <del> <del> if (!isWorker) { <del> var ctx = document.createElement('canvas').getContext('2d'); <del> ctx.scale(1 / kScalePrecision, 1); <del> ...
2
PHP
PHP
move htmlattributestrait methods into basicwiget
403ebbe9cc154c334ba86266bba882d39f579a69
<ide><path>src/View/Widget/BasicWidget.php <ide> */ <ide> namespace Cake\View\Widget; <ide> <add>use Cake\Database\Schema\TableSchema; <ide> use Cake\View\Form\ContextInterface; <ide> use Cake\View\StringTemplate; <ide> <ide> */ <ide> class BasicWidget implements WidgetInterface <ide> { <del> use HtmlAttributesT...
2
Python
Python
fix word embeddings example
ce406b773b9f36be5718a4369ad07fea4f9ebdba
<ide><path>examples/lstm_seq2seq.py <ide> latent_dim = 256 # Latent dimensionality of the encoding space. <ide> num_samples = 10000 # Number of samples to train on. <ide> # Path to the data txt file on disk. <del>data_path = '/Users/fchollet/Downloads/fra-eng/fra.txt' <add>data_path = 'fra-eng/fra.txt' <ide> <ide> #...
2
Python
Python
fix documentation for percentile and quantile
a52aae6793fbcea04148ca41456a3fe24b26efee
<ide><path>numpy/lib/function_base.py <ide> def percentile(a, <ide> <ide> Notes <ide> ----- <del> Given a vector ``V`` of length ``N``, the q-th percentile of ``V`` is <add> Given a vector ``V`` of length ``n``, the q-th percentile of ``V`` is <ide> the value ``q/100`` of the way from the minimum to ...
1
Ruby
Ruby
add cask reinstall command
a4e092a1c49bf7a81244a1f04ef1e115176754cc
<ide><path>Library/Homebrew/cask/lib/hbc/cli.rb <ide> require "hbc/cli/info" <ide> require "hbc/cli/install" <ide> require "hbc/cli/list" <add>require "hbc/cli/reinstall" <ide> require "hbc/cli/search" <ide> require "hbc/cli/style" <ide> require "hbc/cli/uninstall" <ide><path>Library/Homebrew/cask/lib/hbc/cli/reinstall...
3
Go
Go
use pivot_root instead of chroot for chrootarchive
85988b33d299697f410a3a92db5d537fdbee955b
<ide><path>pkg/chrootarchive/archive_unix.go <ide> import ( <ide> "io/ioutil" <ide> "os" <ide> "runtime" <del> "syscall" <ide> <ide> "github.com/docker/docker/pkg/archive" <ide> "github.com/docker/docker/pkg/reexec" <ide> ) <ide> <del>func chroot(path string) error { <del> if err := syscall.Chroot(path); err != ...
3
Python
Python
remove unused method
af7eeb6d260a240c3ce4c21d267aac2f1409a649
<ide><path>glances/outputs/glances_bottle.py <ide> def _favicon(self): <ide> # Return the static file <ide> return static_file('favicon.ico', root=self.STATIC_PATH) <ide> <del> def enable_cors(self): <del> """Enable CORS""" <del> response.headers['Access-Control-Allow-Origin'] = '*' <d...
1
Javascript
Javascript
fix semicolons and vars
fb99f542060d3959d273634c90889788861b5c05
<ide><path>src/ng/directive/select.js <ide> var selectDirective = ['$compile', '$parse', function($compile, $parse) { <ide> ngModelCtrl = ngModelCtrl_; <ide> nullOption = nullOption_; <ide> unknownOption = unknownOption_; <del> } <add> }; <ide> <ide> <ide> self.addOption = fu...
1
Javascript
Javascript
pass svg attributes through
232a47ad0493fa2664f3205986dbc73ac5061bff
<ide><path>src/renderers/dom/client/__tests__/ReactDOMSVG-test.js <ide> describe('ReactDOMSVG', function() { <ide> ReactDOMServer = require('ReactDOMServer'); <ide> }); <ide> <add> it('creates initial markup for known hyphenated attributes', function() { <add> var markup = ReactDOMServer.renderToString( <add...
5
Python
Python
remove unused 'staticviews'
afdda88b13bb168d91cee267799a7e8d9bf26366
<ide><path>djangorestframework/utils/staticviews.py <del>from django.contrib.auth.views import * <del>from django.conf import settings <del>from django.http import HttpResponse <del>from django.shortcuts import render_to_response <del>from django.template import RequestContext <del>import base64 <del> <del> <del># BLER...
1
PHP
PHP
get theme from viewbuilder if available
1678abe95ed42e298b24074dd68dffa0165583d2
<ide><path>src/View/CellTrait.php <ide> protected function _createCell($className, $action, $plugin, $options) <ide> return $instance; <ide> } <ide> <add> if (method_exists($this, 'viewBuilder')) { <add> $builder->theme($this->viewBuilder()->theme()); <add> } <add> <ide> ...
1
PHP
PHP
remove unneeded property
9f80a2adde929b653a2bf9430e9d3b696b3f2629
<ide><path>src/Illuminate/Notifications/Events/BroadcastNotificationCreated.php <ide> class BroadcastNotificationCreated implements ShouldBroadcast <ide> */ <ide> public $notification; <ide> <del> /** <del> * The queue connection. <del> * <del> * @var string <del> */ <del> public $connec...
1
Ruby
Ruby
add method tests
c8016f6c0af91ed5a105ea82911259a7bff03666
<ide><path>Library/Homebrew/test/cli/named_args_spec.rb <add># frozen_string_literal: true <add> <add>require "cli/named_args" <add> <add>describe Homebrew::CLI::NamedArgs do <add> let(:foo) do <add> formula "foo" do <add> url "https://brew.sh" <add> version "1.0" <add> end <add> end <add> <add> let(...
3
Javascript
Javascript
allow mutiple donations with warning
bcf99422638d486b3b9d4a3344abb7a62ebebc92
<ide><path>client/src/pages/donate.js <ide> import PropTypes from 'prop-types'; <ide> import { bindActionCreators } from 'redux'; <ide> import { connect } from 'react-redux'; <ide> import { createSelector } from 'reselect'; <del>import { Grid, Row, Col } from '@freecodecamp/react-bootstrap'; <add>import { Grid, Row, Co...
1
PHP
PHP
handle negative numbers in redis correctly
056e99e1718a3fbd1401f3135e2439b66706267a
<ide><path>src/Cache/Engine/RedisEngine.php <ide> public function read($key) <ide> $key = $this->_key($key); <ide> <ide> $value = $this->_Redis->get($key); <del> if (ctype_digit($value)) { <del> $value = (int)$value; <add> if (preg_match('/^[-]?\d+$/', $value)) { <add> ...
2
Ruby
Ruby
remove more mutations from the `build` method
8ea64bd0fce854a4bb85bf67c983d30358c8cd39
<ide><path>activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb <ide> def valid_options <ide> super + [:join_table, :association_foreign_key] <ide> end <ide> <del> def build <del> reflection = super <del> define_destroy_hook <del> reflection <del> end <del> <del...
1
Java
Java
fix regression with binding and validation
6fb31903536c0a41dd4fbe153c81494ccfd4d405
<ide><path>spring-beans/src/main/java/org/springframework/beans/AbstractPropertyAccessor.java <ide> import java.lang.reflect.Array; <ide> import java.lang.reflect.InvocationTargetException; <ide> import java.lang.reflect.UndeclaredThrowableException; <add>import java.security.PrivilegedActionException; <ide> import jav...
2
Text
Text
fix broken internal link in process.md
828f0c838e81096b9debd6e7f55e54b556eb7ef8
<ide><path>doc/api/process.md <ide> cases: <ide> [Readable]: stream.html <ide> [Child Process]: child_process.html <ide> [Cluster]: cluster.html <del>[`process.exitCode`]: #processexitcode-1 <add>[`process.exitCode`]: #process_process_exitcode <ide> [LTS]: https://github.com/nodejs/LTS/
1
Javascript
Javascript
build chunks on seal (fixes prefetching bug)
0870e00113e228275db72536d88e462078d8351f
<ide><path>lib/Compilation.js <ide> function Compilation(compiler) { <ide> this.bail = options && options.bail; <ide> this.profile = options && options.profile; <ide> this.entries = []; <add> this.preparedChunks = []; <ide> this.chunks = []; <ide> this.namedChunks = {}; <ide> this.modules = []; <ide> Compilation....
1
Javascript
Javascript
move function def out of loop
c785918cbd245cc8ecf9a38e373b121c4e68a55b
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide) { <ide> childTranscludeFn = nodeLinkFn.transclude; <ide> if (childTranscludeFn || (!boundTranscludeFn && transcludeFn)) { <ide> nodeLinkFn(childLinkFn, childScope, node, $rootElement, <del> (fun...
1
Java
Java
remove validation of ordering
1d0d90c0e595490b0944a7eaf11e6e317c998267
<ide><path>rxjava-core/src/test/java/rx/schedulers/AbstractSchedulerTests.java <ide> public String call(String s) { <ide> List<String> strings = m.toList().toBlockingObservable().last(); <ide> <ide> assertEquals(4, strings.size()); <del> assertEquals("names=>a-1", strings.get(0)); <del> a...
1
Mixed
Python
fix charset issues
f19e0d544fdcd318c2bde2057d91777beda78915
<ide><path>docs/api-guide/renderers.md <ide> If your API includes views that can serve both regular webpages and API response <ide> <ide> ## JSONRenderer <ide> <del>Renders the request data into `JSON` enforcing ASCII encoding <add>Renders the request data into `JSON`, using ASCII encoding. <ide> <ide> The client ma...
5
Python
Python
solve some encoding issue
b016d508f014721823d836486a419482c47e3fd4
<ide><path>glances/folder_list.py <ide> <ide> import os <ide> <del>from glances.compat import range <add>from glances.compat import range, nativestr <ide> from glances.logger import logger <ide> <ide> # Use the built-in version of scandir/walk if possible, otherwise <ide> def __set_folder_list(self, section): <ide> ...
2
Python
Python
fix wrong tokenizer checkpoint name in flax marian
6df29ba5e6d98d4cb661d00b569fd6f61e7286b0
<ide><path>src/transformers/models/marian/modeling_flax_marian.py <ide> def encode( <ide> ```python <ide> >>> from transformers import MarianTokenizer, FlaxMarianMTModel <ide> <del> >>> tokenizer = MarianTokenizer.from_pretrained("facebook/marian-large-cnn") <add> >>> tokenizer = MarianTo...
1
Ruby
Ruby
use the cached arel table
f6e7e11ad28555860bb8a1bb362fa091f48cc81a
<ide><path>activerecord/lib/active_record/associations/join_dependency/join_base.rb <ide> def aliased_prefix <ide> end <ide> <ide> def table <del> Arel::Table.new(table_name, arel_engine) <add> base_klass.arel_table <ide> end <ide> <ide> def aliased_table_name <ide><p...
2
Javascript
Javascript
ignore children with clashing keys
216fcdeb42cd4d783a89f618ed989010c10506fc
<ide><path>src/utils/ReactChildren.js <ide> <ide> var PooledClass = require('PooledClass'); <ide> <del>var invariant = require('invariant'); <ide> var traverseAllChildren = require('traverseAllChildren'); <add>var warning = require('warning'); <ide> <ide> var twoArgumentPooler = PooledClass.twoArgumentPooler; <ide> ...
3
Go
Go
remove unnecessary diff tests
038f3add5191240058c7a4154556553c5493ea44
<ide><path>integration/container/diff_test.go <ide> import ( <ide> "github.com/docker/docker/integration/internal/request" <ide> "github.com/docker/docker/pkg/archive" <ide> "github.com/gotestyourself/gotestyourself/poll" <del> "github.com/gotestyourself/gotestyourself/skip" <ide> "github.com/stretchr/testify/asser...
1
Ruby
Ruby
make bottle implementation more generic
7da459874fa289d3ebe8b82693e85893499a3148
<ide><path>Library/Homebrew/bottles.rb <ide> require 'extend/ARGV' <ide> require 'bottle_version' <ide> <del>def bottle_filename f, options={} <add>def bottle_filename options={} <ide> options = { :tag => bottle_tag }.merge(options) <del> name = f.name.downcase <del> version = PkgVersion.new(f.stable.version, f.re...
6
Python
Python
apply basestring fixer
68338eed3ae91c9846142e088c16b63635e58178
<ide><path>numpy/compat/py3k.py <ide> <ide> __all__ = ['bytes', 'asbytes', 'isfileobj', 'getexception', 'strchar', <ide> 'unicode', 'asunicode', 'asbytes_nested', 'asunicode_nested', <del> 'asstr', 'open_latin1', 'long'] <add> 'asstr', 'open_latin1', 'long', 'basestring'] <ide> <ide> im...
12
PHP
PHP
add types to core package
7570b54a3dd56948b0a279c6024d215c10cb742a
<ide><path>src/Core/BasePlugin.php <ide> public function initialize() <ide> /** <ide> * {@inheritDoc} <ide> */ <del> public function getName() <add> public function getName(): string <ide> { <ide> if ($this->name) { <ide> return $this->name; <ide> public function getName() <i...
12
Text
Text
add hardware flaws as a way to attack
0df20f3e7981bdb8a062ad78df566d566d27f13c
<ide><path>guide/english/security/cyberattacks/index.md <ide> In 2017, a Ukrainian government website was infected with malware that erases vi <ide> <ide> One of the biggest cyberattacks to date is the Yahoo hack, this affected all 3 billion user accounts. The hack was dangerous, as it exposed users names, <ide> email...
1
Javascript
Javascript
add gulp task to generate refs
8be4db1c34cfadd9d7da8c35b2d1a0af1cbe61f9
<ide><path>gulpfile.js <ide> function createTestSource(testsName) { <ide> return source; <ide> } <ide> <add>function makeRef(done, noPrompts) { <add> console.log(); <add> console.log('### Creating reference images'); <add> <add> var PDF_BROWSERS = process.env['PDF_BROWSERS'] || <add> 'resources/browser_manifes...
1
Javascript
Javascript
address more of max's comments
7ce5b000e448552bb4ba9556c8f38ccfef127162
<ide><path>src/atom-environment.js <ide> class AtomEnvironment { <ide> this.config.resetUserSettings(userSettings) <ide> <ide> if (projectSettings != null && projectSettings.config != null) { <add> console.log(projectSettings) <ide> this.project.replace(projectSettings) <ide> } <ide> <ide><path...
4
Ruby
Ruby
avoid range object creation
d3f8765482133df14d355f1763d3df1c883d2689
<ide><path>actionpack/lib/abstract_controller/rendering.rb <ide> def view_assigns <ide> hash = {} <ide> variables = instance_variable_names <ide> variables -= protected_instance_variables if respond_to?(:protected_instance_variables) <del> variables.each { |name| hash[name.to_s[1..-1]] = instanc...
1
Ruby
Ruby
ask the filename object for the prefix
49a97c280a35fe07bce036467da85ace0c006fa7
<ide><path>Library/Homebrew/bottles.rb <ide> def bottle_file_outdated? f, file <ide> bottle_ext && bottle_url_ext && bottle_ext != bottle_url_ext <ide> end <ide> <del>def bottle_suffix revision <del> revision = revision > 0 ? ".#{revision}" : "" <del> ".bottle#{revision}.tar.gz" <del>end <del> <ide> def bottle_nat...
4
Javascript
Javascript
remove usage of deprecated @flow weak in xplat
6a039d7be36cbf29d6efa3b4b9557f4f19f878a4
<ide><path>packages/rn-tester/js/examples/PanResponder/PanResponderExample.js <ide> * LICENSE file in the root directory of this source tree. <ide> * <ide> * @format <del> * @flow weak <add> * @flow <ide> */ <ide> <ide> 'use strict'; <ide> class PanResponderExample extends React.Component<Props, State> { <ide> ...
1
Javascript
Javascript
add a hint to a very common appregistry error
a6adc501e8902ce87b31917ea1d5299058c9aa7e
<ide><path>Libraries/ReactNative/AppRegistry.js <ide> const AppRegistry = { <ide> BugReporting.addSource('AppRegistry.runApplication' + runCount++, () => msg); <ide> invariant( <ide> runnables[appKey] && runnables[appKey].run, <del> 'Application ' + appKey + ' has not been registered. This ' + <del> ...
1
Ruby
Ruby
add protobuf to whitelist
486a557cf527761d9b5a0cf54674f4d562c7bfcb
<ide><path>Library/Homebrew/rubocops/lines.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> open-mpi <ide> openssl@1.1 <ide> pcre <add> protobuf <ide> wolfssl <ide> xz <ide> ].include?(@form...
1
Ruby
Ruby
improve tokenization of version strings
28acfbba51ea1e4e67365e5c9fa666d0c5ca9db5
<ide><path>Library/Homebrew/test/test_versions.rb <ide> def test_version_comparisons <ide> assert_operator version('0.1'), :==, version('0.1.0') <ide> assert_operator version('0.1'), :<, version('0.2') <ide> assert_operator version('1.2.3'), :>, version('1.2.2') <del> assert_operator version('1.2.3-p34')...
2
Ruby
Ruby
remove deprecate #calculate calls
759d302db851754a73ec4c74e951f8a5faf2bee1
<ide><path>activerecord/test/cases/associations/eager_test.rb <ide> def test_eager_with_has_many_and_limit_and_high_offset_and_multiple_hash_conditi <ide> end <ide> <ide> def test_count_eager_with_has_many_and_limit_and_high_offset <del> posts = Post.count(:all, :include => [ :author, :comments ], :limit => 2, ...
11
Python
Python
move comment outside of try/except
8922a6e025d53d5aaccba02b76dbef5a43afe768
<ide><path>numpy/polynomial/_polybase.py <ide> def _generate_string(self, term_method): <ide> out += " " <ide> power = str(i + 1) <ide> # Polynomial coefficient <add> # The coefficient array can be an object array with elements that <add> # will raise a TypeErro...
1
Python
Python
fix typo in cli.py
e3c853e60401bccf1564bee19dda7a3b41602ff9
<ide><path>flask/cli.py <ide> def shell_command(): <ide> namespace of this shell according to it's configuration. <ide> <ide> This is useful for executing small snippets of management code <del> without having to manually configuring the application. <add> without having to manually configure the applica...
1
Javascript
Javascript
add test for no-primitive-constructors rule
7d5cc2eee3aec0ec3871c56cee9ba7cc8744fcd8
<ide><path>eslint-rules/__tests__/no-primitive-constructors-test.js <add>/** <add> * Copyright 2015-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. An additional gra...
2
Javascript
Javascript
improve code coverage for streams/duplexify
0185464352353e87cd79f27347003e35b781d031
<ide><path>test/parallel/test-stream-duplex-from.js <ide> const common = require('../common'); <ide> const assert = require('assert'); <ide> const { Duplex, Readable, Writable, pipeline } = require('stream'); <add>const { Blob } = require('buffer'); <ide> <ide> { <ide> const d = Duplex.from({ <ide> const { Duplex, R...
1
Text
Text
clarify instructions for catphotoapp step 6
85a110e2642eee73f94b450ddf5ddff9c13854db
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23991f86c76b9248c6eb8.md <ide> dashedName: step-6 <ide> <ide> # --description-- <ide> <del>In the previous step, you nested the `h2` element, comment, and `p` element within the `main` element. Indenting nes...
1
Text
Text
improve security doc
e704dd31e79114a2156c4fdda3247a181ad6435d
<ide><path>docs/sources/articles/security.md <ide> page_keywords: Docker, Docker documentation, security <ide> <ide> # Docker Security <ide> <del>> *Adapted from* [Containers & Docker: How Secure are <del>> They?](http://blog.docker.com/2013/08/containers-docker-how-secure-are-they/) <del> <ide> There are three major...
1
PHP
PHP
add 'deprecated' docblock to 'defer' property
e5bf6463cf3debfed29efe879a7a4ff3455cc1f9
<ide><path>src/Illuminate/Support/ServiceProvider.php <ide> abstract class ServiceProvider <ide> /** <ide> * Indicates if loading of the provider is deferred. <ide> * <add> * @deprecated 5.8 Implement the \Illuminate\Contracts\Support\Deferred interface instead. <add> * <ide> * @var bool <ide...
1
Go
Go
fix cancellation context issue
2567dd9afc070428082aa1bec14ee037337dd5c4
<ide><path>builder/builder-next/builder.go <ide> func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder. <ide> b.jobs[buildID] = newBuildJob() <ide> } <ide> j := b.jobs[buildID] <del> ctx, cancel := context.WithCancel(ctx) <add> var cancel func() <add> ctx, cancel = context.WithCancel...
1
Javascript
Javascript
refactor the code in test-util-debug.js
8839d504cca2f404ff50842e9451a1a8a0ff28a0
<ide><path>test/sequential/test-util-debug.js <ide> function parent() { <ide> } <ide> <ide> function test(environ, shouldWrite) { <del> var expectErr = ''; <add> let expectErr = ''; <ide> if (shouldWrite) { <ide> expectErr = 'TUD %PID%: this { is: \'a\' } /debugging/\n' + <ide> 'TUD %PID%: numb...
1
PHP
PHP
fix sqs id returns
be6bcb19bcf90177cc5049419a1d2fbfe24bc5f5
<ide><path>src/Illuminate/Queue/SqsQueue.php <ide> public function push($job, $data = '', $queue = null) <ide> <ide> $response = $this->sqs->sendMessage(array('QueueUrl' => $this->getQueue($queue), 'MessageBody' => $payload)); <ide> <del> return $response->MessageId; <add> return $response->get('MessageId'); <ide...
1
Python
Python
remove hack from bigquery dts hook
fedab9d64a58f1b5d3c88fe7a67f1f4021db8d26
<ide><path>airflow/providers/google/cloud/hooks/bigquery_dts.py <ide> def _disable_auto_scheduling(config: Union[dict, TransferConfig]) -> TransferCon <ide> schedule_options["disable_auto_scheduling"] = True <ide> else: <ide> new_config["schedule_options"] = {"disable_auto_scheduling...
2
Javascript
Javascript
remove framestopop from bridge
a483f802fddfd927f2baa0d95e2b4094d452cddd
<ide><path>Libraries/BatchedBridge/MessageQueue.js <ide> class MessageQueue { <ide> ); <ide> } <ide> this.processCallbacks(moduleID, methodID, params, onFail, onSucc); <del> try { <del> return global.nativeCallSyncHook(moduleID, methodID, params); <del> } catch (e) { <del> if ( <del> ...
3
Text
Text
add advantages and disadvantages of array
493f8daa875751caa5213e05d3e9f3f428a080ad
<ide><path>guide/english/java/arrays/index.md <ide> Output: <ide> [ 0 | 1 | 2 | 3 | 4 ] <ide> ``` <ide> <add>**Advantages of Arrays** <add>- **Code Optimization**: It makes the code optimized, we can retrieve or sort the data efficiently. <add>+ **Random access**: We can get any data located at an index position. <a...
1
Ruby
Ruby
squelch an unused variable warning
db3a6e6a7fc80e85afe239abf5d01aa30685c1c1
<ide><path>activerecord/test/cases/counter_cache_test.rb <ide> class ::SpecialReply < ::Reply <ide> <ide> test "update other counters on parent destroy" do <ide> david, joanna = dog_lovers(:david, :joanna) <add> joanna = joanna # squelch a warning <ide> <ide> assert_difference 'joanna.reload.dogs_count',...
1
PHP
PHP
add constants for abstract schema types
50ddb7579de6ea1cd5c0dc2aa867da232a2b0601
<ide><path>src/Database/Schema/MysqlSchema.php <ide> */ <ide> namespace Cake\Database\Schema; <ide> <add>use Cake\Database\Schema\TableSchema; <ide> use Cake\Database\Exception; <ide> <ide> /** <ide> protected function _convertColumn($column) <ide> return ['type' => $col, 'length' => null]; <ide> ...
2
PHP
PHP
add dispatcherfilter settings
4639d3597ce3cb44712ea8cf9c2447a79dc9be13
<ide><path>app/Config/bootstrap.php <ide> * <ide> * Configure::write('Dispatcher.filters', array( <ide> * 'MyCacheFilter', // will use MyCacheFilter class from the Routing/Filter package in your app. <add> * 'MyCacheFilter' => array('prefix' => 'my_cache_'), // will use MyCacheFilter class from the Routing/Filte...
4
Python
Python
use deprecated decorator in testing ufunclike.log2
fcc0b79de4ae35548dbc711c9273ecd875764ccd
<ide><path>numpy/lib/tests/test_ufunclike.py <ide> from numpy.testing import * <ide> import numpy.core as nx <ide> import numpy.lib.ufunclike as ufl <del>import warnings <add>from numpy.testing.decorators import deprecated <ide> <ide> class TestUfunclike(TestCase): <ide> <ide> def test_isneginf(self): <ide> a...
2
PHP
PHP
extract mergevars into a trait
35641cdc70a65aaeccc64da493bbe2d18c769683
<ide><path>lib/Cake/Test/TestCase/Utility/MergeVariablesTraitTest.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * Redistributions ...
2
PHP
PHP
fix cs errors
f3cabe98c07e1ff7bd2f712f2bee5f5a4beebd69
<ide><path>tests/TestCase/Http/ServerRequestFactoryTest.php <ide> public function testFromGlobalsWithFilesAsObjectsDefault() <ide> 'error' => 0, <ide> 'name' => 'file.txt', <ide> 'type' => 'text/plain', <del> 'size' => 1234 <add> 'size' => 12...
2
Javascript
Javascript
adjust indentation for impending lint change
8cccdd96f597a62ff1ef1c695211707cad1cddb8
<ide><path>lib/net.js <ide> Socket.prototype.connect = function() { <ide> if (pipe) { <ide> if (typeof path !== 'string') { <ide> throw new errors.TypeError('ERR_INVALID_ARG_TYPE', <del> 'options.path', <del> 'string', <del> path); <add> 'options.path', <...
2
Python
Python
acknowledge ignore'd tasks when acks_late
903a960a3538cead258cc2ac4135ec94ffe55311
<ide><path>celery/worker/job.py <ide> def _log_error(self, einfo): <ide> description = 'ignored' <ide> severity = logging.INFO <ide> exc_info = None <add> self.acknowledge() <ide> else: <ide> format = self.internal_error_msg <ide...
1
Python
Python
add warnning info
603b470a3d855c5187564701c475cfef5826c224
<ide><path>examples/single_model_scripts/utils_multiple_choice.py <ide> def _truncate_seq_pair(tokens_a, tokens_b, max_length): <ide> if len(tokens_a) > len(tokens_b): <ide> tokens_a.pop() <ide> else: <del> logger.info('Attention! you are removing from question + options. Try to u...
1
Ruby
Ruby
return the result based on current active_spec
5aa6b5c5faa605d3dfd39ce86803c3d967093d06
<ide><path>Library/Homebrew/formula.rb <ide> class Formula <ide> # @see #active_spec <ide> attr_reader :active_spec_sym <ide> <del> # The {PkgVersion} for this formula with version and {#revision} information. <del> attr_reader :pkg_version <del> <ide> # Used for creating new Homebrew versions of software with...
1
Javascript
Javascript
add more information to activity events
90db4f3c6d0710b0da1827125390c032fcc48fb5
<ide><path>packager/react-packager/src/Bundler/index.js <ide> class Bundler { <ide> null, <ide> { <ide> telemetric: true, <add> entryPoint: entryFile, <ide> }, <ide> ); <ide> const modulesByName = Object.create(null); <ide><path>packager/react-packager/src/Server/index.js <ide> ...
2
Java
Java
update copyright dates
1c10cdd1e87f133c082771587a730bbf2255a920
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); ...
5
Javascript
Javascript
add missing bracket
97e72d58649e80196c1eef79d4e73ded3ed65893
<ide><path>src/core.js <ide> function getPdf(arg, callback) { <ide> calledErrorBack = true; <ide> params.error(); <ide> } <add> } <ide> } <ide> <ide> xhr.onreadystatechange = function getPdfOnreadystatechange(e) {
1
Python
Python
update nb tag_map
16cb19e960d614ddfcf04e35350f5c2fe4b6ba71
<ide><path>spacy/lang/nb/tag_map.py <ide> # coding: utf8 <ide> from __future__ import unicode_literals <ide> <del>from ...symbols import POS, PUNCT, ADJ, CONJ, SCONJ, SYM, NUM, DET, ADV, ADP, X <add>from ...symbols import POS, PUNCT, ADJ, CONJ, CCONJ, SCONJ, SYM, NUM, DET, ADV, ADP, X <ide> from ...symbols import VERB...
1
Javascript
Javascript
name anonymous functions for debugging purposes
2d03f93fedd5c1a6ea98954d2451375b3683c933
<ide><path>test/driver.js <ide> function load() { <ide> <ide> var r = new XMLHttpRequest(); <ide> r.open('GET', manifestFile, false); <del> r.onreadystatechange = function(e) { <add> r.onreadystatechange = function loadOnreadystatechange(e) { <ide> if (r.readyState == 4) { <ide> log('done\n'); <ide> ...
1
Ruby
Ruby
simplify non-plist return
4c67a8ce27394d05f7436907d7f0afb8f1845189
<ide><path>Library/Homebrew/extend/os/mac/caveats.rb <ide> class Caveats <ide> <ide> def plist_caveats <ide> s = [] <del> if !f.plist && !f.service? && !keg&.plist_installed? <del> caveat = "#{s.join("\n")}\n" if s.present? <del> return caveat <del> end <add> return if !f.plist && !f.service? ...
1
Javascript
Javascript
extract dommanip to a separate file
ee6e874075ba1fcd8f9e62cd1ee5c04f6518b6d6
<ide><path>src/manipulation.js <ide> import jQuery from "./core.js"; <ide> import isAttached from "./core/isAttached.js"; <del>import flat from "./var/flat.js"; <ide> import isIE from "./var/isIE.js"; <ide> import push from "./var/push.js"; <ide> import access from "./core/access.js"; <ide> import rtagName from "./mani...
3
Javascript
Javascript
allow usage of a string path with {{bind}} helper
65800fe09483bed3fc8adadd0678ee343f05a3e5
<ide><path>packages/ember-htmlbars/lib/helpers/binding.js <ide> function bindHelper(params, hash, options, env) { <ide> <ide> var property = params[0]; <ide> <add> if (options.types[0] === 'string') { <add> property = this.getStream(property); <add> } <add> <ide> if (options.render) { <ide> options.helpe...
2
Python
Python
correct an issue with the kill function
f43ed60ce86430efc88be114f29f89cc4dc5dd57
<ide><path>glances/outputs/glances_curses.py <ide> def display(self, stats, cs_status=None): <ide> # Display kill process confirmation popup <ide> # Only in standalone mode (cs_status is None) <ide> if self.kill_process and cs_status is None: <del> self.kill_process(stats.get_plugin('...
1
Ruby
Ruby
add address wrapping
731bfa7cf45b8b849e63990d933fc65a14a6b860
<ide><path>lib/action_mailbox/mail_ext/address_wrapping.rb <add>class Mail::Address <add> def self.wrap(address) <add> address.is_a?(Mail::Address) ? address : Mail::Address.new(address) <add> end <add>end <ide><path>test/unit/mail_ext/address_wrapping_test.rb <add>require_relative '../../test_helper' <add> <add>m...
2
PHP
PHP
remove extra argument
313ce9c9b96e9c2c329d1d77d303492854f07e31
<ide><path>src/View/Cell.php <ide> public function __get($name) <ide> if (in_array($name, $protected, true)) { <ide> deprecationWarning(sprintf( <ide> 'Cell::$%s is now protected and shouldn\'t be accessed from outside a child class.', <del> $name, <del> ...
1
Go
Go
defer udev wait during removal
cef27e1d6c0bd302e1c58e9478a0fba99fd3a2d0
<ide><path>pkg/devicemapper/devmapper.go <ide> func RemoveDevice(name string) error { <ide> if err := task.SetCookie(&cookie, 0); err != nil { <ide> return fmt.Errorf("Can not set cookie: %s", err) <ide> } <add> defer UdevWait(cookie) <ide> <add> dmSawBusy = false // reset before the task is run <ide> if err = ta...
1
Ruby
Ruby
add helper for printing file listings
d2d4813a07ccc077690bb86e522744fa19d2bdd4
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def find_relative_paths *relative_paths <ide> found + relative_paths.map{|f| File.join(prefix, f) }.select{|f| File.exist? f } <ide> end <ide> end <add> <add> def inject_file_list(list, str) <add> list.inject(str) { |s, f| s << " #{f}\n" } <add> end <i...
1
Mixed
Ruby
remove the dependent_restrict_raises option
5ad79989ef0a015fd22cfed90b2e8a56881e6c36
<ide><path>activerecord/CHANGELOG.md <ide> * Added the `ActiveRecord::NullRelation` class implementing the null <ide> object pattern for the Relation class. *Juanjo Bazán* <ide> <del>* Added deprecation for the `:dependent => :restrict` association option. <add>* Added new `:dependent => :restrict_with_error...
12
Ruby
Ruby
fix mktmp to be generic as-per sus/bsd
1dc384b4c4e94621b7ba1b62358e5730dfb8e8da
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_multiple_volumes <ide> # Find the volumes for the TMP folder & HOMEBREW_CELLAR <ide> real_cellar = HOMEBREW_CELLAR.realpath <ide> <del> tmp = Pathname.new with_system_path { `mktemp -d #{HOMEBREW_TEMP}/homebrew-brew-doctor-XXXX` }.strip <add> tmp = Pa...
2
Ruby
Ruby
restore definition of effective_sysroot
706e7e71a07784f14abbdf5f019428e04afcfae6
<ide><path>Library/Homebrew/extend/os/mac/extend/ENV/super.rb <ide> def self.bin <ide> bin.realpath unless bin.nil? <ide> end <ide> <add> def effective_sysroot <add> MacOS::Xcode.without_clt? ? MacOS.sdk_path.to_s : nil <add> end <add> <ide> def homebrew_extra_paths <ide> paths = [] <ide> # On 10....
1
Python
Python
fix typo in docstring
21a9740156eed349b908057856aef9acd0e620a9
<ide><path>rest_framework/throttling.py <ide> class SimpleRateThrottle(BaseThrottle): <ide> A simple cache implementation, that only requires `.get_cache_key()` <ide> to be overridden. <ide> <del> The rate (requests / seconds) is set by a `throttle` attribute on the View <add> The rate (requests / second...
1
Ruby
Ruby
add custom comparator for macos.version
b8231fc5f3e93f2d7a230e7880fb2fdc7c04c369
<ide><path>Library/Homebrew/macos.rb <ide> module MacOS extend self <ide> MDITEM_BUNDLE_ID_KEY = "kMDItemCFBundleIdentifier" <ide> <ide> def version <del> MACOS_VERSION <add> require 'version' <add> MacOSVersion.new(MACOS_VERSION.to_s) <ide> end <ide> <ide> def cat <ide><path>Library/Homebrew/test/te...
3
Ruby
Ruby
use `searchable` module
717032d86dd458539004b67e1ac883937df0121f
<ide><path>Library/Homebrew/cmd/desc.rb <ide> def desc <ide> results.print <ide> elsif search_type.size > 1 <ide> odie "Pick one, and only one, of -s/--search, -n/--name, or -d/--description." <del> elsif arg = ARGV.named.join(" ") <del> regex = query_regexp(arg) <del> results = Description...
7
Go
Go
organize server pre-func logic in middlewares
0fea04d27ee91d7b57e0a77b110db1c861768c74
<ide><path>api/server/middleware.go <add>package server <add> <add>import ( <add> "net/http" <add> "runtime" <add> "strings" <add> <add> "github.com/Sirupsen/logrus" <add> "github.com/docker/docker/api" <add> "github.com/docker/docker/autogen/dockerversion" <add> "github.com/docker/docker/context" <add> "github.com/doc...
5
Python
Python
drop unneeded assert
4e9385e709bcee87456a99839841ecf6b56f337a
<ide><path>rest_framework/tests/test_renderers.py <ide> def test_parse_error_renderers_browsable_api(self): <ide> """Invalid data should still render the browsable API correctly.""" <ide> resp = self.client.post('/parseerror', data='foobar', content_type='application/json', HTTP_ACCEPT='text/html') <ide...
1
Ruby
Ruby
remove side effects of [5684]
906bd93f4fdbad429cca8a0cfa7f32ec1eb7960a
<ide><path>activerecord/lib/active_record/associations/association_collection.rb <ide> def destroy_all <ide> end <ide> <ide> def create(attrs = {}) <del> record = @reflection.klass.with_scope(construct_scope) { @reflection.klass.create(attrs) } <add> record = @reflection...
2
Ruby
Ruby
add collectionproxy#delete documentation
29463aa15dd670621ad0de861b5aa66feeb09ffa
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> class CollectionProxy < Relation <ide> ## <ide> # :method: delete_all <ide> # <add> # :call-seq: <add> # delete_all() <add> # <ide> # Deletes all the records from the collection. For +has_many+ asss...
1
Javascript
Javascript
use monotonic clock instead of currenttimemillis
ac03c47895f59842a4e6528e8272f371d61e41cf
<ide><path>Libraries/Utilities/PerformanceLogger.js <ide> */ <ide> 'use strict'; <ide> <del>var BatchedBridge = require('BatchedBridge'); <add>const BatchedBridge = require('BatchedBridge'); <add>const fbjsPerformanceNow = require('fbjs/lib/performanceNow'); <ide> <del>var performanceNow = require('fbjs/lib/performa...
1
Mixed
Go
remove duplicate keys in labels of `docker info`
e4c9079d091a2eeac8a74a0356e3f348db873b87
<ide><path>cli/command/system/info.go <ide> func prettyPrintInfo(dockerCli *command.DockerCli, info types.Info) error { <ide> for _, attribute := range info.Labels { <ide> fmt.Fprintf(dockerCli.Out(), " %s\n", attribute) <ide> } <add> // TODO: Engine labels with duplicate keys has been deprecated in 1.13 and wi...
5
Javascript
Javascript
fix tab completion for a non-global context
d735b2c6ef9dc710a2e8c58bf56dc6d28f5a4bd3
<ide><path>lib/repl.js <ide> REPLServer.prototype.complete = function(line, callback) { <ide> if (!expr) { <ide> // If context is instance of vm.ScriptContext <ide> // Get global vars synchronously <del> if (this.useGlobal || <del> this.context.constructor && <del> thi...
2
PHP
PHP
fix bug with provider booting
05dccf1b72c38cba55db4f2b9140e305792657c9
<ide><path>src/Illuminate/Exception/Handler.php <ide> protected function handlesException(Closure $handler, $exception) <ide> { <ide> $reflection = new ReflectionFunction($handler); <ide> <del> return $reflection->getNumberOfParameters() == 0 or $this->hints($reflection, $exception); <add> return $reflection->get...
2
Javascript
Javascript
remove `view#destroyelement` method
5327eb0f699761c33341487d46334b56bbc4b57a
<ide><path>packages/ember-views/lib/mixins/view_support.js <ide> export default Mixin.create({ <ide> */ <ide> willClearRender: K, <ide> <del> /** <del> Destroys any existing element along with the element for any child views <del> as well. If the view does not currently have a element, then this method <del...
6
Text
Text
explain git_remote_ref in collaborator_guide
c8d00d9ed06a9983c02d7a250d96c81980e0e3a6
<ide><path>COLLABORATOR_GUIDE.md <ide> Build". It is in the left navigation of the relevant `node-test-pull-request` <ide> job. It will preserve all the green results from the current job but re-run <ide> everything else. <ide> <add>Some of the CI Jobs may require `GIT_REMOTE_REF` which is the remote portion <add>of G...
1
Python
Python
add missing whitespace to multiline strings
57420b103e2a99aea0f5f80e98216029f7349af2
<ide><path>src/transformers/benchmark/benchmark_args.py <ide> def __init__(self, **kwargs): <ide> default="O1", <ide> metadata={ <ide> "help": ( <del> "For fp16: Apex AMP optimization level selected in ['O0', 'O1', 'O2', and 'O3']." <add> "For fp16: Apex AMP opt...
56
Javascript
Javascript
remove error catch and use update method
fd442c55bb6006268de16dc4eaabf3a31ab51c4c
<ide><path>common/models/user.js <ide> module.exports = function(User) { <ide> renderSignUpEmail : renderSignInEmail; <ide> <ide> // create a temporary access token with ttl for 1 hour <del> user.createAccessToken({ ttl: 60 * 60 * 1000 }, (err, token) => { <add> return user.createAccess...
1
Mixed
Javascript
specify `options` parameter type in zlib.md
811598bcdae74ed8460ccb265d9939f36858f75a
<ide><path>doc/api/zlib.md <ide> Provides an object enumerating Zlib-related constants. <ide> added: v0.5.8 <ide> --> <ide> <del>* `options` {Object} <add>* `options` {zlib options} <ide> <del>Creates and returns a new [`Deflate`][] object with the given [`options`][]. <add>Creates and returns a new [`Deflate`][] obj...
2
Ruby
Ruby
add high_precision_current_timestamp to adapters
da41061b4ea1162fefe3a12b6215e4280ca42bf1
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb <ide> def with_yaml_fallback(value) # :nodoc: <ide> end <ide> end <ide> <add> # This is a safe default, even if not high precision on all databases <add> HIGH_PRECISION_CURRENT_TIMESTAMP = Arel.sql("CU...
4