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
translate 02.3-jsx-gotchas.md to japanese
19e1d11d2fe35976686f8084e4cbc893cac8ebc5
<ide><path>docs/docs/02.3-jsx-gotchas.ja-JP.md <add>--- <add>id: jsx-gotchas <add>title: JSXの理解 <add>permalink: jsx-gotchas-ja-JP.html <add>prev: jsx-spread-ja-JP.html <add>next: interactivity-and-dynamic-uis-ja-JP.html <add> <add>--- <add> <add>JSXはHTMLに似ていますが、重要な違いがいくつかあります。 <add> <add>> 注意: <add>> インラインの `style` 属性の...
1
Text
Text
add jasongin & kunalspathak to collaborators
f5df94bf78edbf71a2fae98b8ca1ba7eb0597d9b
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Italo A. Casas** &lt;me@italoacasas.com&gt; (he/him) <ide> * [JacksonTian](https://github.com/JacksonTian) - <ide> **Jackson Tian** &lt;shyvo1987@gmail.com&gt; <add>* [jasongin](https://github.com/jasongin) - <add>**Jas...
1
Javascript
Javascript
remove dag implementation
cfe3dbf4bdbfb62d0256f3cb55efefe2ed19aa37
<ide><path>packages/ember-application/lib/system/dag.js <del>import EmberError from "ember-metal/error"; <del> <del>function visit(vertex, fn, visited, path) { <del> var name = vertex.name; <del> var vertices = vertex.incoming; <del> var names = vertex.incomingNames; <del> var len = names.length; <del> var i; <del...
1
Mixed
Ruby
remove deprecated `serialized_attributes`
82043ab53cb186d59b1b3be06122861758f814b2
<ide><path>activerecord/CHANGELOG.md <add>* Remove deprecated `serialized_attributes`. <add> <add> *Rafael Mendonça França* <add> <ide> * Remove deprecated automatic counter caches on `has_many :through`. <ide> <ide> *Rafael Mendonça França* <ide><path>activerecord/lib/active_record/attribute_methods/serial...
3
PHP
PHP
use types consistently
bbcddb3f7146686eb96e64d511a0788101da2abd
<ide><path>src/Console/Command/Task/ModelTask.php <ide> public function getBehaviors($model) { <ide> return []; <ide> } <ide> if (in_array('created', $fields) || in_array('modified', $fields)) { <del> $behaviors['Timestamp'] = ''; <add> $behaviors['Timestamp'] = []; <ide> } <ide> <ide> if (in_array('lft...
2
Python
Python
update some note comments in numpy.array_api
7ed0189477ed4a7d2907d0728b3b8121722d8a2f
<ide><path>numpy/array_api/_array_object.py <ide> def _promote_scalar(self, scalar): <ide> integer that is too large to fit in a NumPy integer dtype, or <ide> TypeError when the scalar type is incompatible with the dtype of self. <ide> """ <add> # Note: Only Python scalar types that match...
2
Go
Go
add riscv64 build tags
75bc82fe5c6351430e495ea1312803ea2b81b623
<add><path>libnetwork/drivers/bridge/netlink_deprecated_linux_rawsockaddr_data_int8.go <del><path>libnetwork/drivers/bridge/netlink_deprecated_linux_notarm.go <del>// +build !arm,!ppc64,!ppc64le <add>// +build !arm,!ppc64,!ppc64le,!riscv64 <ide> <ide> package bridge <ide> <add><path>libnetwork/drivers/bridge/netlink_...
2
PHP
PHP
remove a default helper from view
229c824da66a33dda7fe4aa3e8fe6e08e92a2c0d
<ide><path>lib/Cake/Test/Case/View/HelperTest.php <ide> public function testThatHelperHelpersAreNotAttached() { <ide> $Helper->OtherHelper; <ide> <ide> $result = $this->View->Helpers->enabled(); <del> $expected = array('Html'); <del> $this->assertEquals($expected, $result, 'Helper helpers were attached to the co...
2
Mixed
Text
allow use of minitest-rails gem with test runner
9ebda29135acde842e180169c69ce07076bbdd6b
<ide><path>railties/CHANGELOG.md <add>* Allow use of minitest-rails gem with Rails test runner. <add> <add> Fixes #22455. <add> <add> *Chris Kottom* <add> <ide> * Add `bin/test` script to rails plugin. <ide> <ide> `bin/test` can use the same API as `bin/rails test`. <ide><path>railties/lib/rails/test_uni...
2
Javascript
Javascript
add quicksuggestions false to editor options
9e01ead291746c00e7f996ad85ece23f579307df
<ide><path>client/src/templates/Challenges/classic/Editor.js <ide> class Editor extends Component { <ide> dragAndDrop: true, <ide> lightbulb: { <ide> enabled: false <del> } <add> }, <add> quickSuggestions: false <ide> }; <ide> <ide> this._editor = null;
1
Python
Python
add example for shortcircuitoperator
f9f94672c12a138e0c6ee89f62e96eec7bcb3432
<ide><path>airflow/example_dags/example_short_circuit_operator.py <add>from airflow.operators import ShortCircuitOperator, DummyOperator <add>from airflow.models import DAG <add>import airflow.utils <add>from datetime import datetime, timedelta <add> <add>seven_days_ago = datetime.combine(datetime.today() - timedelta(7...
2
Text
Text
translate 11 to korean
2bc8a36ab991c48331737bc4dd8ffebfbbf248a5
<ide><path>docs/docs/11-advanced-performance.ko-KR.md <add>--- <add>id: advanced-performance-ko-KR <add>title: 성능 심화 <add>permalink: advanced-performance-ko-KR.html <add>prev: perf-ko-KR.html <add>--- <add> <add>React를 도입하려 할 때 많은 사람이 묻는 첫 번째 질문은 React를 사용하지 않을 때처럼 애플리케이션이 빠르고 반응성도 좋을 것이냐는 것입니다. 모든 상태변화에 대해 컴포넌트의 하위 트리...
1
Go
Go
add environment variable to enable
fe5b34ba8828dc2f2f7db180a102cee360fec6e0
<ide><path>cmd/dockerd/daemon.go <ide> import ( <ide> "github.com/docker/docker/pkg/pidfile" <ide> "github.com/docker/docker/pkg/plugingetter" <ide> "github.com/docker/docker/pkg/signal" <add> "github.com/docker/docker/pkg/system" <ide> "github.com/docker/docker/plugin" <ide> "github.com/docker/docker/registry" <i...
6
Ruby
Ruby
make local bottle installation more robust
1bc460403bc690460eac6da739e50321642d5754
<ide><path>Library/Homebrew/formula.rb <ide> def self.factory name <ide> install_type = :from_url <ide> elsif name.match bottle_regex <ide> bottle_filename = Pathname(name).realpath <del> name = bottle_filename.basename.to_s.rpartition('-').first <add> version = Version.parse(bottle_filename)....
1
Ruby
Ruby
handle linux bottles
b0198d097e115d304d1169709c6029fa24e0f2fa
<ide><path>Library/Homebrew/compat.rb <add>require "compat/extend/os/mac/utils/bottles" <ide> require "compat/requirements/x11_requirement" <ide> require "compat/requirements/xcode_requirement" <ide> require "compat/cask" <ide><path>Library/Homebrew/compat/extend/os/mac/utils/bottles.rb <add>module Utils <add> class B...
3
Text
Text
fix typos in timers topic to aid readability
af61ebf6e261f479ed93ca3f3fd2f5cbaeb63b2f
<ide><path>doc/topics/the-event-loop-timers-and-nexttick.md <ide> ways depending on when they are called. <ide> * `setTimeout()` schedules a script to be run <ide> after a minimum threshold in ms has elapsed. <ide> <del>The order in which they are execute varies depending on the context in <del>which they are called. ...
1
PHP
PHP
fix error handling
2e01c58f92761ac24f9feb759d6f46c539984668
<ide><path>laravel/error.php <ide> public static function exception($exception, $trace = true) <ide> { <ide> $response = Event::first('500'); <ide> <del> return Response::prepare($response)->send(); <add> echo Response::prepare($response)->render(); <ide> } <ide> <ide> exit(1);
1
Text
Text
replace incorrect symbols [ci skip]
f8e33fbc6ca62fc81f01c9dfff8b0cff02a3ad13
<ide><path>guides/source/i18n.md <ide> This means, that in the `:en` locale, the key _hello_ will map to the _Hello wor <ide> <ide> The I18n library will use **English** as a **default locale**, i.e. if a different locale is not set, `:en` will be used for looking up translations. <ide> <del>NOTE: The i18n library ta...
1
Java
Java
expose build method in sseeventbuilder
1c382be00e39060a0a4005d80098365f2bee45d4
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyEmitter.java <ide> interface Handler { <ide> <ide> <ide> /** <del> * Simple struct for a data entry. <add> * A simple holder of data to be written along with a MediaType hint for <add> * selecting a message co...
2
Python
Python
fix a typo
58dfc295997d436e6f94f1fdf312a24f99d3744a
<ide><path>libcloud/storage/base.py <ide> <ide> __all__ = [ <ide> 'Object', <del> 'Contaner', <add> 'Container', <ide> 'StorageDriver' <ide> ] <ide>
1
Java
Java
remove @nonnull annotations in biconsumer
83d1a4f4eb66fbf6e2afd6045f96e31ced6aedfc
<ide><path>src/main/java/io/reactivex/functions/BiConsumer.java <ide> <ide> package io.reactivex.functions; <ide> <del>import io.reactivex.annotations.NonNull; <del> <ide> /** <ide> * A functional interface (callback) that accepts two values (of possibly different types). <ide> * @param <T1> the first value type <i...
1
PHP
PHP
fix doc block
04057caba52b304d846d306e7795a45dcd38d229
<ide><path>src/View/Helper/UrlHelper.php <ide> class UrlHelper extends Helper <ide> * @param string|array|null $url Either a relative string url like `/products/view/23` or <ide> * an array of URL parameters. Using an array for URLs will allow you to leverage <ide> * the reverse routing features of...
1
PHP
PHP
remove duplicated header
bacd8afde3d62ad212e7c68b7bf25493b93c50d9
<ide><path>lib/Cake/Console/Command/SchemaShell.php <ide> <?php <ide> /** <del> * Command-line database management utility to automate programmer chores. <del> * <del> * Schema is CakePHP's database management utility. This helps you maintain versions of <del> * of your database. <del> * <del> * PHP 5 <del> * <ide> * ...
1
Javascript
Javascript
add codementor to showcase
c9fa7c1ce8a5bdfbf3636e3cec1eb2850bb0a94e
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> icon: 'http://a2.mzstatic.com/us/r30/Purple69/v4/7b/0c/a0/7b0ca007-885a-7cfc-9fa2-2ec4394c2ecc/icon175x175.png', <ide> link: 'https://play.google.com/store/apps/details?id=com.cbssports.fantasy.franchisefootball2015', <ide> author: 'CB...
1
Javascript
Javascript
favor strict equality in http tests
c89b6ee347f0247254fb08999d06301937a965fd
<ide><path>test/parallel/test-http-agent.js <ide> server.listen(0, function() { <ide> for (var j = 0; j < M; j++) { <ide> http.get({ port: port, path: '/' }, function(res) { <ide> console.log('%d %d', responses, res.statusCode); <del> if (++responses == N * M) { <add> if (++res...
17
Javascript
Javascript
remove useless internalfs
3681ddd96744e46f12e11e3d5154ab4070e7290c
<ide><path>lib/fs.js <ide> const { <ide> } = errors.codes; <ide> <ide> const { FSReqCallback, statValues } = binding; <del>const internalFS = require('internal/fs/utils'); <ide> const { toPathIfFileURL } = require('internal/url'); <ide> const internalUtil = require('internal/util'); <ide> const { <ide> const { <ide> ...
1
Ruby
Ruby
update queue_classic details
76056c627c1b3fa804f45a38a7af824b48791b33
<ide><path>activejob/lib/active_job/queue_adapters.rb <ide> module ActiveJob <ide> # * {Delayed Job}[https://github.com/collectiveidea/delayed_job] <ide> # * {Qu}[https://github.com/bkeepers/qu] <ide> # * {Que}[https://github.com/chanks/que] <del> # * {QueueClassic 2.x}[https://github.com/ryandotsmith/queue_clas...
2
PHP
PHP
use new uuid factory
b90fa4eeb1338b3d871c2b0f54cffff5265a061a
<ide><path>src/Illuminate/Support/Str.php <ide> namespace Illuminate\Support; <ide> <ide> use Ramsey\Uuid\Uuid; <add>use Ramsey\Uuid\UuidFactory; <ide> use Illuminate\Support\Traits\Macroable; <ide> use Ramsey\Uuid\Generator\CombGenerator; <ide> use Ramsey\Uuid\Codec\TimestampFirstCombCodec; <ide> public static functi...
1
Ruby
Ruby
fix logic in `check_binary_arches`
1678a3785e1e04a6976e723a9e176defd2ab41f4
<ide><path>Library/Homebrew/formula_cellar_checks.rb <ide> def check_binary_arches(formula) <ide> mismatches = keg.binary_executable_or_library_files.reject do |file| <ide> file.arch == Hardware::CPU.arch <ide> end <add> return if mismatches.empty? <ide> <ide> compatible_universal_binaries = misma...
1
Python
Python
remove messy handling of output tuple in np.unique
3c05221dd443323e7948eadf8105c0b52e760f70
<ide><path>numpy/lib/arraysetops.py <ide> def ediff1d(ary, to_end=None, to_begin=None): <ide> return result <ide> <ide> <add>def _unpack_tuple(x): <add> """ Unpacks one-element tuples for use as return values """ <add> if len(x) == 1: <add> return x[0] <add> else: <add> return x <add> <add>...
1
PHP
PHP
update version constant
e405c532a06f8de4503d78fcdab77046177497cc
<ide><path>src/Illuminate/Foundation/Application.php <ide> class Application extends Container implements HttpKernelInterface, ResponsePrep <ide> * <ide> * @var string <ide> */ <del> const VERSION = '4.0.7'; <add> const VERSION = '4.1-dev'; <ide> <ide> /** <ide> * Indicates if the application has "booted".
1
Text
Text
update widget examples.
4731a00c3e23bb5c4dd8d0e43a95e777a8a8f02a
<ide><path>model_cards/ethanyt/guwenbert-base/README.md <ide> license: "apache-2.0" <ide> pipeline_tag: "fill-mask" <ide> widget: <ide> - text: "[MASK]太元中,武陵人捕鱼为业。" <del>- text: "山不在[MASK],有仙则名。" <add>- text: "问征夫以前路,恨晨光之[MASK]微。" <ide> - text: "浔阳江头夜送客,枫叶[MASK]花秋瑟瑟。" <ide> --- <ide> <ide><path>model_cards/ethanyt/guw...
2
Python
Python
fix typos in percentile
eb12b7106fb2962167627af21bc0bef24f6f650d
<ide><path>numpy/lib/function_base.py <ide> def percentile(a, q, axis=None, out=None, <ide> Notes <ide> ----- <ide> Given a vector ``V`` of length ``N``, the ``q``-th percentile of <del> ``V`` is the value ``q/100`` of the way from the mimumum to the <del> maximum in in a sorted copy of ``V``. The val...
2
Javascript
Javascript
add disconnectoutlet method to controller
933b2b4a6eb4f82884c4ec5c567890ffb458beab
<ide><path>packages/ember-views/lib/system/controller.js <ide> Ember.ControllerMixin.reopen(/** @scope Ember.ControllerMixin.prototype */ { <ide> Ember.assert("The name you supplied " + name + " did not resolve to a controller " + name + 'Controller', (!!controller && !!context) || !context); <ide> } <ide> <...
2
Ruby
Ruby
add check for osx-gcc-installer
ef054a2d029199a1a67c45c7e44ee82f0f6a828c
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def __check_clt_up_to_date <ide> end <ide> end <ide> <add>def check_for_osx_gcc_installer <add> if (MacOS.version < 10.7 || MacOS::Xcode.version < "4.1") && \ <add> MacOS.clang_version == "2.1" then <<-EOS.undent <add> You have osx-gcc-installer installed. <add>...
1
Ruby
Ruby
rename some variables
12ceb4581aeef1638b9e38545210bd0004adbb8f
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc: <ide> # <ide> # Any fixture labeled "DEFAULTS" is safely ignored. <ide> class Fixtures <add> #-- <add> # NOTE: an instance of Fixtures can be called fixture_set, it is normally s...
2
Python
Python
improve ndarray.shape property documentation
db59c45e5d02877bb246838a7cb277e5e3eed48c
<ide><path>numpy/add_newdocs.py <ide> def luf(lamdaexpr, *args, **kwargs): <ide> """ <ide> Tuple of array dimensions. <ide> <add> As with `numpy.reshape`, one shape dimension can be -1. In this case, the value is <add> inferred from the length of the array and remaining dimensions. <ide> Notes <ide> ...
1
Text
Text
add release date of rails 3.2.0 to documentation
6d426b103580c80902ab64849cce7960107d7d70
<ide><path>actionpack/CHANGELOG.md <ide> This is a behavior change, previously the hidden tag had a value of the disabled checkbox. <ide> *Tadas Tamosauskas* <ide> <del>## Rails 3.2.0 (unreleased) ## <add>## Rails 3.2.0 (January 20, 2012) ## <ide> <ide> * Add `config.action_dispatch.default_charset` to conf...
6
Javascript
Javascript
fix hash returning 0 for large strings
f443e2df3785a2a54abc49811e29ed8ca83d4803
<ide><path>dist/Immutable.dev.js <ide> function cachedHashString(string) { <ide> function hashString(string) { <ide> var hash = 0; <ide> for (var ii = 0; ii < string.length; ii++) { <del> hash = (31 * hash + string.charCodeAt(ii)); <add> hash = (31 * hash + string.charCodeAt(ii)) % HASH_MAX_VAL; <ide> } <de...
3
PHP
PHP
add optional priority to eloquent observer
eeb0f30b07ff0614384129b5498daad9f9e3e689
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function getGlobalScopes() <ide> * Register an observer with the Model. <ide> * <ide> * @param object|string $class <add> * @param int $priority <ide> * @return void <ide> */ <del> public static function observe($clas...
1
Javascript
Javascript
fix log scale when value is 0
939756c26083d5fbd7c8ae2ed7981696566684eb
<ide><path>src/scales/scale.logarithmic.js <ide> module.exports = function(Chart) { <ide> getPixelForTick: function(index) { <ide> return this.getPixelForValue(this.tickValues[index]); <ide> }, <add> /** <add> * Returns the value of the first tick. <add> * @param {Number} value - The minimum not zero value....
2
Javascript
Javascript
adjust error emit in core, add tests
ccd3afc84303247b32c011fea7630d150f07849d
<ide><path>lib/internal/http2/core.js <ide> const { <ide> } = constants; <ide> <ide> // Top level to avoid creating a closure <del>function emit() { <del> this.emit.apply(this, arguments); <add>function emit(self, ...args) { <add> self.emit(...args); <ide> } <ide> <ide> // Called when a new block of headers has bee...
11
Ruby
Ruby
remove unneeded reject
093c4eedd0296b6297ab4359d7d873cdf0daf43e
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def includes(*args) <ide> end <ide> <ide> def eager_load(*args) <del> args.reject! { |a| a.blank? } <ide> clone.tap { |r| r.eager_load_values += args if args.present? } <ide> end <ide> <ide> def preload(*args) <del> ...
1
Javascript
Javascript
remove ternary, add unit test
697203b545f6fd459b15f3159ab023a53c454ac1
<ide><path>src/lib/moment/to-type.js <ide> export function unix () { <ide> } <ide> <ide> export function toDate () { <del> return this._offset ? new Date(this.valueOf()) : new Date(this._d); <add> return new Date(this.valueOf()); <ide> } <ide> <ide> export function toArray () { <ide><path>src/test/moment/to_typ...
2
Ruby
Ruby
handle error when 'brew search' can't reach github
296d48ba7af0daf010fdb412288b395ea2422bfb
<ide><path>Library/Homebrew/cmd/search.rb <ide> def search_taps(query, silent: false) <ide> end <ide> <ide> valid_dirnames = ["Formula", "HomebrewFormula", "Casks", "."].freeze <del> matches = GitHub.search_code(user: ["Homebrew", "caskroom"], filename: query, extension: "rb") <del> <add> matches = begin...
1
Javascript
Javascript
remove redundant code directive
b517f49a802a721ce903c751fa293b26f915c3b0
<ide><path>docs/app/src/directives.js <ide> angular.module('directives', []) <ide> <del>.directive('code', function() { <del> return { restrict:'E', terminal: true }; <del>}) <del> <ide> /** <ide> * backToTop Directive <ide> * @param {Function} $anchorScroll
1
Javascript
Javascript
revise argument processing
4069e7eddb4bdefebcf1e2be2bbcd0f3d35f64b1
<ide><path>lib/child_process.js <ide> const MAX_BUFFER = 1024 * 1024; <ide> * }} [options] <ide> * @returns {ChildProcess} <ide> */ <del>function fork(modulePath /* , args, options */) { <add>function fork(modulePath, args = [], options) { <ide> modulePath = getValidatedPath(modulePath, 'modulePath'); <ide> <id...
1
Ruby
Ruby
remove useless ivar clearing
889a4a3da025e52d0f044d9b1b832a45fcc88c01
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> def assign_parameters(routes, controller_path, action, parameters = {}) <ide> path_parameters[:action] = action <ide> <ide> self.path_parameters = path_parameters <del> <del> # Clear the combined params hash in case it was already referenc...
1
Ruby
Ruby
implement bottles again
6ac0a285239d5fbd7943f070eac0e68847046ff8
<ide><path>Library/Homebrew/download_strategy.rb <ide> def _fetch <ide> class CurlBottleDownloadStrategy <CurlDownloadStrategy <ide> def initialize url, name, version, specs <ide> super <del> HOMEBREW_CACHE_BOTTLES.mkpath <del> @tarball_path=HOMEBREW_CACHE_BOTTLES+("#{name}-#{version}"+ext) <add> @tarbal...
3
Java
Java
promote anonymous observables to top-level types.
5273cf05e6e4d12bf3e4bd716d036600a80c4919
<ide><path>src/main/java/io/reactivex/Observable.java <ide> import io.reactivex.disposables.*; <ide> import io.reactivex.exceptions.Exceptions; <ide> import io.reactivex.functions.*; <del>import io.reactivex.internal.disposables.EmptyDisposable; <ide> import io.reactivex.internal.functions.Functions; <ide> import io.re...
5
Python
Python
fix long lines reported by flake8
36c93d40a6b4b510cbf98237257d9ff21acd946b
<ide><path>libcloud/compute/drivers/ec2.py <ide> def ex_authorize_security_group_ingress(self, id, from_port, to_port, <ide> <ide> [{'group_name': 'default', 'user_id': '1234567890'}] <ide> <del> VPC example: To allow access from any system associated with <del> ...
1
Text
Text
translate a subtitle that was in english
846634ce363a5875ecf49611c457f1dd9336f579
<ide><path>guide/spanish/c/pointers/index.md <ide> Eche un vistazo a este código, que cambia algo de mayúsculas a minúsculas: <ide> <ide> Esto comienza tomando una cadena (algo sobre lo que aprenderá cuando ingrese a los arreglos) y se ejecuta en cada ubicación. Note el p ++. Esto incrementa el puntero, lo que signifi...
1
Javascript
Javascript
reset module cache between tests
d6183570e3f9dd54ca02dca55fd0f518b2218084
<ide><path>src/isomorphic/deprecated/__tests__/cloneWithProps-test.js <ide> var emptyObject; <ide> describe('cloneWithProps', function() { <ide> <ide> beforeEach(function() { <add> require('mock-modules').dumpCache(); <ide> React = require('React'); <ide> ReactTestUtils = require('ReactTestUtils'); <ide> ...
2
Python
Python
use hashlib instead of deprecated md5 library
2db323a9ed2b2b0109f3e7bc356d9f984d69d68e
<ide><path>libcloud/drivers/gogrid.py <ide> import httplib <ide> import time <ide> import urllib <del>import md5, hashlib <add>import hashlib <ide> <ide> # JSON is included in the standard library starting with Python 2.6. For 2.5 <ide> # and 2.4, there's a simplejson egg at: http://pypi.python.org/pypi/simplejson <i...
1
Javascript
Javascript
fix uint usage
23bc284ab57e57d2a3f66c42cb3b4db99a21121b
<ide><path>examples/jsm/nodes/shadernode/ShaderNodeUtils.js <ide> import ArrayElementNode from '../utils/ArrayElementNode.js'; <ide> import ConvertNode from '../utils/ConvertNode.js'; <ide> import JoinNode from '../utils/JoinNode.js'; <ide> import SplitNode from '../utils/SplitNode.js'; <del> <ide> import ConstNode fro...
1
Ruby
Ruby
fix gap in line between reqs and deps
62d48b4f9d5d0b11db514e5b5245b9f4fb1d2f66
<ide><path>Library/Homebrew/cmd/deps.rb <ide> def puts_deps_tree(formulae) <ide> <ide> def recursive_deps_tree(f, prefix) <ide> reqs = f.requirements.select(&:default_formula?) <add> deps = f.deps.default <ide> max = reqs.length - 1 <ide> reqs.each_with_index do |req, i| <del> chr = i == max ? "└...
1
Javascript
Javascript
use radix in parseint function calls
0b19fd525173827fe62a88880f3fe072d3c7a0fa
<ide><path>fonts.js <ide> var Type1Parser = function() { <ide> i += length; <ide> token = ''; <ide> } else if (isSeparator(c)) { <del> length = parseInt(token); <add> length = parseInt(token, 10); <ide> token = ''; <ide> } else { <ide> token += c; <ide> var Type...
1
Python
Python
fix mypy neo4j and influxdb
36aa695ea817ea6f7e446558ef108d2c450ebb0c
<ide><path>airflow/providers/influxdb/hooks/influxdb.py <ide> <ide> """This module allows to connect to a InfluxDB database.""" <ide> <del>from typing import List <add>from typing import Dict, List <ide> <ide> import pandas as pd <ide> from influxdb_client import InfluxDBClient <ide> def __init__(self, conn_id: str ...
3
Text
Text
fix typo in openssl upgrading doc
b22a189b430e87d225279b43148b11f68fca8f49
<ide><path>deps/openssl/doc/UPGRADING.md <ide> Since perl is not a build requirement in node, they all should be <ide> generated in advance and statically stored in the repository. We <ide> provide two sets of asm files, one is asm_latest(avx2 and addx <ide> supported) in `deps/openssl/asm` and the other asm_obsolete(w...
1
Text
Text
add object_detection to the main readme
0f1bd993f1be399ce9fb849580ade94d56943c6d
<ide><path>README.md <ide> running TensorFlow 0.12 or earlier, please <ide> - [neural_gpu](neural_gpu): highly parallel neural computer. <ide> - [neural_programmer](neural_programmer): neural network augmented with logic and mathematic operations. <ide> - [next_frame_prediction](next_frame_prediction): probabilistic fu...
1
Javascript
Javascript
fix deprecation warning on moment().locale()
677db209498780f5c0eeec5de71569d28f1d48cd
<ide><path>moment.js <ide> }, <ide> <ide> lang : deprecate( <del> "moment().lang is deprecated. Use moment().locale instead.", <add> "moment().lang() is deprecated. Use moment().localeData() instead.", <ide> function (key) { <ide> return this.localeData...
1
PHP
PHP
fix undeclared property
4ce55910cf590de5e87d7d347e262d1f399fe4a5
<ide><path>src/Routing/Middleware/RoutingMiddleware.php <ide> */ <ide> class RoutingMiddleware <ide> { <add> /** <add> * The application that will have its routing hook invoked. <add> * <add> * @var \Cake\Http\BaseApplication <add> */ <add> protected $app; <add> <ide> /** <ide> * Constru...
1
Text
Text
add docs to show how to select specific simulator
b0dbb4210fa2201b6977599c8aab58157101a7e1
<ide><path>docs/RunningOnDeviceIOS.md <ide> title: Running On Device <ide> layout: docs <ide> category: Guides (iOS) <ide> permalink: docs/running-on-device-ios.html <del>next: communication-ios <add>next: running-on-simulator-ios <ide> --- <ide> <ide> Note that running on device requires [Apple Developer account](htt...
2
Text
Text
clarify manual merging of pr in release doc
bfe51ea64a6957587c33baf32916b205dea91a45
<ide><path>dev/README_RELEASE_AIRFLOW.md <ide> The Release Candidate artifacts we vote upon should be the exact ones we vote ag <ide> <ide> - Update the `REVISION_HEADS_MAP` at airflow/utils/db.py to include the revision head of the release even if there are no migrations. <ide> - Commit the version change. <del>- PR ...
1
Javascript
Javascript
change api to clearatomproject
89fbf1e25b344152e674eadd2ddde5cdabb2a011
<ide><path>src/project.js <ide> class Project extends Model { <ide> this.projectFilePath = newSettings.originPath <ide> } <ide> <del> clearProjectSettings () { <add> clearAtomProject () { <ide> atom.config.clearProjectSettings() <ide> } <ide>
1
Python
Python
remove metrics hack for dist strat
6cfa81a1ff52d5804ba9df6a766991dbb53eeb3c
<ide><path>official/transformer/v2/metrics.py <ide> def get_config(self): <ide> <ide> def call(self, inputs): <ide> logits, targets = inputs[0], inputs[1] <del> # TODO(guptapriya): Remove this check when underlying issue to create <del> # metrics with dist strat in cross replica context is fixed. <del> ...
1
PHP
PHP
fix phpcs and php5.3 error
b55a88508f52c5449ddf57a5019c70fac2348a4d
<ide><path>lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php <ide> * Secondary Post stub class. <ide> */ <ide> class SecondaryPost extends Model { <add> <ide> /** <ide> * @var string <ide> */ <ide> class SecondaryPost extends Model { <ide> * @var string <ide> */ <ide> public $useDbConfig = 'secondary'; <add> <id...
1
PHP
PHP
remove unused variable $declaringclass
e5853da9a0484d54aa28a9a2e4ed774bb4f954a4
<ide><path>src/Illuminate/Container/Container.php <ide> protected function getDependencies(array $parameters, array $primitives = []) <ide> */ <ide> protected function resolveNonClass(ReflectionParameter $parameter) <ide> { <del> $declaringClass = $parameter->getDeclaringClass(); <del> <ide> ...
1
PHP
PHP
fix duplicate items in habtm associations
89b9bb72972365a817530ad68fbf60be9765acd8
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> protected function _mergeAssociation(&$data, &$merge, $association, $type, $self <ide> } <ide> } else { <ide> foreach ($merge as $i => $row) { <add> $insert = array(); <ide> if (count($row) === 1) { <del> if (empty($data[$association]) ||...
1
Python
Python
make test(all=true) the default
ceb9ec29824966383c20364697a330577bd159d5
<ide><path>numpy/testing/numpytest.py <ide> def _test_suite_from_all_tests(self, this_package, level, verbosity): <ide> all_tests = unittest.TestSuite(suite_list) <ide> return all_tests <ide> <del> def test(self, level=1, verbosity=1, all=False, sys_argv=[], <add> def test(self, level=1, verbosit...
1
PHP
PHP
add a basic application contract
c79c1ed4ff05f30e6e882473c8dc11f99422a4a4
<ide><path>src/Illuminate/Contracts/Foundation/Application.php <add><?php namespace Illuminate\Contracts\Foundation; <add> <add>interface Application { <add> <add> /** <add> * Register a service provider with the application. <add> * <add> * @param \Illuminate\Support\ServiceProvider|string $provider <add> * @par...
2
Javascript
Javascript
replace concatenation with string templates
27b5bf14ca8958d44d75030477b85a6bd34d6490
<ide><path>tools/lint-js.js <ide> if (cluster.isMaster) { <ide> } else { <ide> failures += results.length; <ide> } <del> outFn(formatter(results) + '\r\n'); <add> outFn(`${formatter(results)}\r\n`); <ide> printProgress(); <ide> } else { <ide> successes += results; <ide> if ...
1
Ruby
Ruby
remove redundant `squish` for single line message
12c2f44316848ac88f6b2b49edff96a83acf190c
<ide><path>activemodel/lib/active_model/attribute_set/builder.rb <ide> def marshal_dump <ide> <ide> def marshal_load(values) <ide> if values.is_a?(Hash) <del> ActiveSupport::Deprecation.warn(<<~MSG.squish) <add> ActiveSupport::Deprecation.warn(<<~MSG) <ide> Marshalling load from legac...
2
Text
Text
use consistent header style in tutorial part 5
ad9aa23198bf1008651a778dd3f633570d4ee2d3
<ide><path>docs/tutorial/5-relationships-and-hyperlinked-apis.md <del># Tutorial 5 - Relationships & Hyperlinked APIs <add># Tutorial 5: Relationships & Hyperlinked APIs <ide> <ide> At the moment relationships within our API are represented by using primary keys. In this part of the tutorial we'll improve the cohesio...
1
Text
Text
fix typo error, link to field
0484d01aae4906b07ae7485e6fa173c71a8f1a1e
<ide><path>docs/api-guide/schemas.md <ide> that do not expect a request body. <ide> <ide> ### get_path_fields(self, path, method): <ide> <del>Return a list of `coreapi.Link()` instances. One for each path parameter in the URL. <add>Return a list of `coreapi.Field()` instances. One for each path parameter in the URL. ...
1
Text
Text
update korean translation to e928c65
dc56073d681af450236e14861bf96e57b532ed97
<ide><path>docs/docs/04-multiple-components.ko-KR.md <ide> var MyComponent = React.createClass({ <ide> ); <ide> } <ide> }); <del> <add>``` <add>```javascript <ide> // 맞음 :) <ide> var ListItemWrapper = React.createClass({ <ide> render: function() { <ide><path>docs/docs/07-forms.ko-KR.md <ide> HTML에서는 `<textarea>...
11
Text
Text
remove undefined reference variable
a84e10eba0f79608711285f673c4103940e00c2c
<ide><path>doc/api/http2.md <ide> const req = client.request({ <ide> ':authority': `localhost:${port}` <ide> }); <ide> <del>req.on('response', common.mustCall()); <add>req.on('response', (headers) => { <add> console.log(headers[http2.constants.HTTP2_HEADER_STATUS]); <add>}); <ide> let data = ''; <ide> req.setEncodi...
1
PHP
PHP
fix issue with pusher channel
c51ef988d8c6d10d5613dc58f4fdd255edf70216
<ide><path>src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php <ide> <ide> use Illuminate\Broadcasting\BroadcastException; <ide> use Illuminate\Support\Arr; <add>use Illuminate\Support\Collection; <ide> use Pusher\ApiErrorException; <ide> use Pusher\Pusher; <ide> use Symfony\Component\HttpKernel\Exception\A...
1
PHP
PHP
increase test coverage
d58bb116856319e123d82256b576095e42231a55
<ide><path>tests/TestCase/Validation/ValidatorTest.php <ide> public function testLengthBetween() <ide> $this->assertNotEmpty($validator->errors(['username' => 'foo'])); <ide> } <ide> <add> /** <add> * Tests the lengthBetween proxy method <add> * <add> * @expectedException InvalidArgumentExce...
1
Javascript
Javascript
remove unused `return` statement
73f3515ba79aace9332e140ff60615a425c5f4c4
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> if (!letter || letter !== lowercase(letter)) { <ide> throw $compileMinErr('baddir', "Directive name '{0}' is invalid. The first character must be a lowercase letter", name); <ide> } <del> return name; ...
1
PHP
PHP
add better bitwise operators support
a9c50095980e6f24ca23c811fa55752e0f50dd6c
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> class Builder <ide> 'not similar to', 'not ilike', '~~*', '!~~*', <ide> ]; <ide> <add> /** <add> * All of the available binary operators. <add> * <add> * @var string[] <add> */ <add> public $binaryOperators = [ <add> '&...
4
Ruby
Ruby
extract a relation#arel_attribute
5952861948a0918b1955202c1ea19589634537dc
<ide><path>activerecord/lib/active_record/core.rb <ide> def arel_engine # :nodoc: <ide> end <ide> end <ide> <del> def arel_attribute(name, table) # :nodoc: <add> def arel_attribute(name, table = arel_table) # :nodoc: <ide> name = attribute_alias(name) if attribute_alias?(name) <ide> ...
7
PHP
PHP
add thenreturn helper method to pipeline
d261f9fc75e888fd15895f1354b7ac338638dc47
<ide><path>src/Illuminate/Pipeline/Pipeline.php <ide> public function then(Closure $destination) <ide> return $pipeline($this->passable); <ide> } <ide> <add> /** <add> * Run the pipeline and return the result. <add> * <add> * @return mixed <add> */ <add> public function thenReturn() <...
2
Text
Text
write reusable javascript with functions
cab064a183df281e24ef8d4551c4c480f9182b81
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/write-reusable-javascript-with-functions.english.md <ide> tests: <ide> - text: <code>reusableFunction</code> should be a function <ide> testString: assert(typeof reusableFunction === 'function', '<code>reusableF...
1
Javascript
Javascript
update react native types
8336f19aa80c6646d6969fa61e34420776d884be
<ide><path>packages/react-native-renderer/src/ReactFabric.js <ide> <ide> import type {HostComponent} from './ReactNativeTypes'; <ide> import type {ReactNodeList} from 'shared/ReactTypes'; <del>import type {ElementRef} from 'react'; <add>import type {ElementRef, Element, ElementType} from 'react'; <ide> <ide> import '...
6
Mixed
Javascript
apply component and mixins specs deterministically
367c88e399d60dfa5a5611fcaa5769c18b7ca86e
<ide><path>docs/docs/05-reusable-components.md <ide> React.renderComponent( <ide> ); <ide> ``` <ide> <del>A nice feature of mixins is that if a component is using multiple mixins and several mixins define the same lifecycle method (i.e. several mixins want to do some cleanup when the component is destroyed), all of th...
3
PHP
PHP
add way to get argument names as a list
a57945d9cdad67972f4125744bbeeddfe936a965
<ide><path>src/Console/ConsoleOptionParser.php <ide> public function arguments() <ide> return $this->_args; <ide> } <ide> <add> /** <add> * Get the list of argument names. <add> * <add> * @return string[] <add> */ <add> public function argumentNames() <add> { <add> $out = []...
2
Mixed
Javascript
assign error code to bootstrap_node created error
251e5ed8ee91747e31233fb2711f31be5d2e98a6
<ide><path>doc/api/errors.md <ide> found [here][online]. <ide> encountered by [`http`][] or [`net`][] -- often a sign that a `socket.end()` <ide> was not properly called. <ide> <add> <ide> <a id="nodejs-error-codes"></a> <ide> ## Node.js Error Codes <ide> <ide> An error using the `'ERR_STDOUT_CLOSE'` code is thro...
3
Javascript
Javascript
pick the right architecture on linux
35bc2cf520fb96b5dd43d86938f90c4e6e597194
<ide><path>script/lib/package-application.js <ide> module.exports = function () { <ide> 'app-bundle-id': 'com.github.atom', <ide> 'app-copyright': `Copyright © 2014-${(new Date()).getFullYear()} GitHub, Inc. All rights reserved.`, <ide> 'app-version': CONFIG.appMetadata.version, <del> 'arch': process.pla...
1
Javascript
Javascript
prevent example breaking on key update
00d5fde49ca50eb777ac61541bdd9cc68fd52f20
<ide><path>src/ng/cacheFactory.js <ide> $scope.keys = []; <ide> $scope.cache = $cacheFactory('cacheId'); <ide> $scope.put = function(key, value) { <del> $scope.cache.put(key, value); <del> $scope.keys.push(key); <add> if ($scope.cache.get(key) === und...
1
Ruby
Ruby
add missing developer_tools methods
ed9f7308b265944c27c833b9a2aaa0e911ff5667
<ide><path>Library/Homebrew/compat/macos.rb <ide> def mountain_lion? <ide> def macports_or_fink_installed? <ide> !macports_or_fink.empty? <ide> end <add> <add> def locate(tool) <add> DeveloperTools.locate(tool) <add> end <add> <add> def default_cc <add> DeveloperTools.default_cc <add> ...
1
Python
Python
fix tests on python 2
a0833836e07aeabde98eb3cfa1a583b3dd4a9439
<ide><path>numpy/tests/test_public_api.py <ide> from __future__ import division, absolute_import, print_function <ide> <add>import sys <add> <ide> import numpy as np <add>import pytest <ide> <ide> <ide> def check_dir(module, module_name=None): <ide> def check_dir(module, module_name=None): <ide> return results <...
1
PHP
PHP
remove extra line
f00248acf69c35570326ba9a6870d8750ff6f23d
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> protected function isClassCastable($key) <ide> throw new InvalidCastException($this->getModel(), $key, $castType); <ide> } <ide> <del> <ide> /** <ide> * Determine if the key is serializable using a custom class. <ide> ...
1
Python
Python
add auto next sentence prediction
8551a992326d3c538c40ad944898f079203b5491
<ide><path>src/transformers/modeling_tf_auto.py <ide> from .modeling_tf_bert import ( <ide> TFBertForMaskedLM, <ide> TFBertForMultipleChoice, <add> TFBertForNextSentencePrediction, <ide> TFBertForPreTraining, <ide> TFBertForQuestionAnswering, <ide> TFBertForSequenceClassification, <ide> from .mod...
2
Javascript
Javascript
add spec for devsettings
85252a6cac044872e80f35fb3ab1c198d92cbf21
<ide><path>Libraries/NativeModules/specs/NativeDevSettings.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @flow strict-local <add> * @form...
1
Ruby
Ruby
avoid deprecation warning
6e5b98e9102373957d748aa084f625d2d56e02ff
<ide><path>activerecord/lib/active_record/railtie.rb <ide> class Railtie < Rails::Railtie <ide> <ide> config.after_initialize do <ide> ActiveSupport.on_load(:active_record) do <del> instantiate_observers <add> ActiveRecord::Base.instantiate_observers <ide> <ide> ActionDispatch::Reloade...
1
Python
Python
fix a typo in doc string
5775220a931b1bc5da89c01a9ca624d664130593
<ide><path>official/utils/misc/keras_utils.py <ide> class TimeHistory(tf.keras.callbacks.Callback): <ide> <ide> def __init__(self, batch_size, log_steps): <ide> """Callback for logging performance (# examples/second). <del>k <add> <ide> Args: <ide> batch_size: Total batch size. <ide> log_steps: I...
1
Mixed
Javascript
add new functions to outgoingmessage
3e6f1032a4fdb8ca7fba02c7d2103fba68c0ee1f
<ide><path>doc/api/http.md <ide> Example: <ide> var contentType = response.getHeader('content-type'); <ide> ``` <ide> <add>### response.getHeaderNames() <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* Returns: {Array} <add> <add>Returns an array containing the unique names of the current outgoing headers. <...
3
Javascript
Javascript
switch _writablestate.buffer to queue
91586661c983f45d650644451df73c8649a8d459
<ide><path>lib/_stream_writable.js <ide> Writable.WritableState = WritableState; <ide> <ide> var util = require('util'); <ide> var Stream = require('stream'); <add>var debug = util.debuglog('stream'); <ide> <ide> util.inherits(Writable, Stream); <ide> <ide> function WriteReq(chunk, encoding, cb) { <ide> this.chunk...
3
Python
Python
fix an `automodule` path
65ec64c932626689b50b53e0909ced47f5a821fa
<ide><path>numpy/typing/__init__.py <ide> <ide> .. versionadded:: 1.21 <ide> <del>.. automodule:: numpy._typing.mypy_plugin <add>.. automodule:: numpy.typing.mypy_plugin <ide> <ide> .. currentmodule:: numpy.typing <ide>
1