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
abersnaze/rxjava into merge-940
8c1e037d9f6c8a0cc2b691db0adf282aa4733e3a
<ide><path>rxjava-contrib/rxjava-debug/src/main/java/rx/operators/DebugSubscriber.java <ide> import rx.Observable.Operator; <ide> import rx.Observer; <ide> import rx.Subscriber; <del>import rx.functions.Action1; <del>import rx.functions.Action2; <del>import rx.functions.Func1; <ide> import rx.plugins.DebugNotification;...
11
Text
Text
add facebook group to readme.md
48ac4cdfbaef15b9ca5cad6f571c4ad5e76fca1d
<ide><path>README.md <ide> This code is running live at [freeCodeCamp.org](https://www.freecodecamp.org). <ide> <ide> Our community also has: <ide> <del>- A super active [forum](https://www.freecodecamp.org/forum) <del>- Thousands of [local study groups](https://study-group-directory.freecodecamp.org/) around the wor...
1
Java
Java
add more maybe operators 9/09-1
db8b73317d662336ffabbb8285b1395ca977b890
<ide><path>src/main/java/io/reactivex/Maybe.java <ide> public static <T, R> Maybe<R> zipArray(Function<? super Object[], ? extends R> z <ide> // Instance methods <ide> // ------------------------------------------------------------------ <ide> <add> /** <add> * Mirrors the MaybeSource (current or provid...
18
Python
Python
use rpc backend for integration tests
0a8568ddff20e317ca8039d1ab88f4b453940a5e
<ide><path>t/integration/conftest.py <ide> def celery_config(): <ide> return { <ide> 'broker_url': 'pyamqp://', <del> 'result_backend': 'redis://', <add> 'result_backend': 'rpc', <ide> } <ide> <ide>
1
Javascript
Javascript
remove max_safe_integer check on length
e6e6b07e512dd4e71b0458cb02901ce6d5398e29
<ide><path>lib/buffer.js <ide> function fromArrayBuffer(obj, byteOffset, length) { <ide> if (length !== length) { <ide> length = 0; <ide> } else if (length > 0) { <del> length = (length < Number.MAX_SAFE_INTEGER ? <del> length : Number.MAX_SAFE_INTEGER); <ide> if (length > maxLen...
1
Javascript
Javascript
evaluate nginit before nginclude
0e50810c53428f4c1f5bfdba9599df54cb7a6c6e
<ide><path>src/ng/directive/ngInit.js <ide> * to initialize values on a scope. <ide> * </div> <ide> * <add> * @priority 450 <add> * <ide> * @element ANY <ide> * @param {expression} ngInit {@link guide/expression Expression} to eval. <ide> * <ide> </doc:example> <ide> */ <ide> var ngInitDirective = ngDirective...
2
Javascript
Javascript
move $injector into the providercache
e3e8813e3c586093c79cffe2b17418c0c1797d4a
<ide><path>src/auto/injector.js <ide> function createInjector(modulesToLoad) { <ide> decorator: decorator <ide> } <ide> }, <del> providerInjector = createInternalInjector(providerCache, function() { <del> throw Error("Unknown provider: " + path.join(' <- ')); <del> }), <add>...
2
Javascript
Javascript
add tests for challenge>builduserupdate
953e1b2e113245186451e53c58afe2828f0afe47
<ide><path>api-server/server/boot/challenge.js <ide> const jsProjects = [ <ide> 'aa2e6f85cab2ab736c9a9b24' <ide> ]; <ide> <del>function buildUserUpdate(user, challengeId, _completedChallenge, timezone) { <add>export function buildUserUpdate( <add> user, <add> challengeId, <add> _completedChallenge, <add> timezon...
3
Python
Python
close taskconsumer on reset_connection
98137ba36d1f922b4967c5d15b71c7288d6565c6
<ide><path>celery/worker.py <ide> def __init__(self, concurrency=None, logfile=None, loglevel=None, <ide> self.reset_connection() <ide> <ide> def reset_connection(self): <add> if hasattr(self, "task_consumer"): <add> self.task_consumer.close() <ide> self.task_consumer = TaskConsum...
1
Ruby
Ruby
add documentation for add_flash_types [ci skip]
b163754bc55c3d23e62071d39451c2fbe4579e99
<ide><path>actionpack/lib/action_controller/metal/flash.rb <ide> module Flash <ide> end <ide> <ide> module ClassMethods <add> # Creates new flash types. You can pass as many types as you want to create <add> # flash types other than the default <tt>alert</tt> and <tt>notice</tt> in <add> # your ...
1
Ruby
Ruby
add a test
2a9a10f5e3d4d8fc607606e700d1fd2dfec4eda2
<ide><path>activemodel/test/cases/serialization_test.rb <ide> def test_method_serializable_hash_should_work_with_except_and_methods <ide> assert_equal expected , @user.serializable_hash(:except => [:name, :email], :methods => [:foo]) <ide> end <ide> <add> def test_should_not_call_methods_that_dont_respond <add>...
1
Ruby
Ruby
remove unused method
45285f56f4993e3910df59e7e68b465a287ef089
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def ==(other_aggregation) <ide> active_record == other_aggregation.active_record <ide> end <ide> <del> def sanitized_conditions #:nodoc: <del> @sanitized_conditions ||= klass.send(:sanitize_sql, options[:conditions]) if options[:...
1
Text
Text
remove references to rails versions
ed78770b1a13788a5d3fcae484f34654de580bd5
<ide><path>guides/source/action_controller_overview.md <ide> NOTE: Certain exceptions are only rescuable from the `ApplicationController` cla <ide> Force HTTPS protocol <ide> -------------------- <ide> <del>Sometime you might want to force a particular controller to only be accessible via an HTTPS protocol for securit...
13
Ruby
Ruby
remove dead code
dcabc6c04301a44d875447e4f88534ca04a538d6
<ide><path>actionpack/lib/action_view/helpers/url_helper.rb <ide> def convert_options_to_data_attributes(options, html_options) <ide> html_options['data-remote'] = 'true' <ide> end <ide> <del> confirm = html_options.delete("confirm") <del> method, href = html_options.delete("met...
1
Go
Go
remove engine.job from create action
98996a432e079d1434182ea1cf84e70c927da4c2
<ide><path>api/server/server.go <ide> func postContainersCreate(eng *engine.Engine, version version.Version, w http.Re <ide> return err <ide> } <ide> var ( <del> job = eng.Job("create", r.Form.Get("name")) <del> outWarnings []string <del> stdoutBuffer = bytes.NewBuffer(nil) <del> warnings = bytes....
4
Javascript
Javascript
remove dublicate classname from head
267cff3b81a90307dbb522552043aa6adfdff8bc
<ide><path>lib/head.js <ide> class Head extends React.Component { <ide> } <ide> } <ide> <del>export function defaultHead () { <del> return [<meta charSet='utf-8' className='next-head' />] <add>const NEXT_HEAD_IDENTIFIER = 'next-head' <add> <add>export function defaultHead (className = NEXT_HEAD_IDENTIFIER) { <add> ...
1
Ruby
Ruby
add as_cmake_arch_flags helper
b0d45b29bd91a76d1fc41a2aedd0cfe5238fd6da
<ide><path>Library/Homebrew/mach.rb <ide> def as_arch_flags <ide> self.collect{ |a| "-arch #{a}" }.join(' ') <ide> end <ide> <add> def as_cmake_arch_flags <add> self.join(';') <add> end <add> <ide> protected <ide> <ide> def intersects_all?(*set)
1
Text
Text
remove uneccesary colon
473097144cbfa183bdc3c4e7d2b742affd2fc7f2
<ide><path>docs/docs/08.1-more-about-refs.md <ide> permalink: more-about-refs.html <ide> prev: working-with-the-browser.html <ide> next: tooling-integration.html <ide> --- <del>After building your component, you may find yourself wanting to "reach out" and invoke methods on component instances returned from `render()`....
1
Java
Java
improve coverage, fix operator logic 03/12
90bca55c39fcc515013f2737e2f6fb6cbd2e660b
<ide><path>src/main/java/io/reactivex/exceptions/CompositeException.java <ide> public int size() { <ide> * @param e the {@link Throwable} {@code e}. <ide> * @return The root cause of {@code e}. If {@code e.getCause()} returns {@code null} or {@code e}, just return {@code e} itself. <ide> */ <del> priv...
24
Javascript
Javascript
add support for tabindex in ember controls
b4f4edd67b076fcd91bc1763693611577244b92a
<ide><path>packages/ember-handlebars/lib/controls/button.js <ide> Ember.Button = Ember.View.extend(Ember.TargetActionSupport, { <ide> <ide> propagateEvents: false, <ide> <del> attributeBindings: ['type', 'disabled', 'href'], <add> attributeBindings: ['type', 'disabled', 'href', 'tabindex'], <ide> <ide> /** @pr...
9
Python
Python
fix broken format string
ef1f7661c77a9e606189a52a5fb1a219e22400c8
<ide><path>tools/icu/shrink-icu-src.py <ide> shutil.rmtree(options.icusmall) <ide> <ide> if not os.path.isdir(options.icusrc): <del> print 'Missing source ICU dir --icusrc=%' % (options.icusrc) <add> print 'Missing source ICU dir --icusrc=%s' % (options.icusrc) <ide> sys.exit(1) <ide> <ide>
1
PHP
PHP
reword exception message and assert it in test
984d070a777519a7622e45994901cd58fcd6c43f
<ide><path>src/Collection/CollectionTrait.php <ide> public function last() <ide> public function takeLast($howMany) <ide> { <ide> if ($howMany < 1) { <del> throw new \InvalidArgumentException("takeLast requires a number greater than 0"); <add> throw new \InvalidArgumentException("T...
2
Go
Go
fix compilation issue
93f57705110e196dca1cf2b2ce7d261ee97b9e4e
<ide><path>runconfig/opts/parse.go <ide> func Parse(cmd *flag.FlagSet, args []string) (*container.Config, *container.Host <ide> entrypoint = strslice.StrSlice{*flEntrypoint} <ide> } <ide> // Validate if the given hostname is RFC 1123 (https://tools.ietf.org/html/rfc1123) compliant. <add> hostname := *flHostname <id...
1
Go
Go
add test case check connect.endpointconfig not nil
fd74940304c86e43d8e8d44d0d8315086d5596c4
<ide><path>client/network_connect_test.go <ide> func TestNetworkConnect(t *testing.T) { <ide> return nil, fmt.Errorf("expected 'container_id', got %s", connect.Container) <ide> } <ide> <add> if connect.EndpointConfig == nil { <add> return nil, fmt.Errorf("expected connect.EndpointConfig to be not nil, got ...
1
Mixed
Ruby
add update_sql option to #upsert_all
8f3c12f8803b56943956e8a1539eca5df9f5a6a6
<ide><path>activerecord/CHANGELOG.md <add>* Add `update_sql` option to `#upsert_all` to make it possible to use raw SQL to update columns on conflict: <add> <add> ```ruby <add> Book.upsert_all( <add> [{ id: 1, status: 1 }, { id: 2, status: 1 }], <add> update_sql: "status = GREATEST(books.status, EXCLU...
7
Text
Text
introduce runhaskell option
69a6531bb9f7a89fbed80c3b3c899358a1a8ab9f
<ide><path>guide/english/haskell/index.md <ide> stack ghc hello.hs <ide> ./hello <ide> ``` <ide> <add>Alternatively, you can use `runhaskell` to skip the compiling step. <add> <add>```shell <add>stack runhaskell hello.hs <add>``` <add> <ide> ## Documentation <ide> Hackage provides documentation for Haskell <ide>
1
Text
Text
add new wordings to the api description
2b985a2027e99a3cff277fa21a42903316e9c248
<ide><path>doc/api/process.md <ide> exception value itself as its first argument. <ide> If such a function is set, the [`'uncaughtException'`][] event will <ide> not be emitted. If `--abort-on-uncaught-exception` was passed from the <ide> command line or set through [`v8.setFlagsFromString()`][], the process will <del>...
1
PHP
PHP
add encrypt() and decrypt() methods
215d43eb066369681b0a7637392a287bd36abf5d
<ide><path>lib/Cake/Test/Case/Utility/SecurityTest.php <ide> public function testRijndaelInvalidKey() { <ide> Security::rijndael($txt, $key, 'encrypt'); <ide> } <ide> <add>/** <add> * Test encrypt/decrypt. <add> * <add> * @return void <add> */ <add> public function testEncryptDecrypt() { <add> $txt = 'The quick br...
2
Javascript
Javascript
fix lint errors thrown in ci
c0104faa38a61647b57280499fd8dcb84eebec32
<ide><path>api-server/server/middlewares/jwt-authorizaion.test.js <add>/* global describe xdescribe it expect */ <ide> import { isWhiteListedPath } from './jwt-authorization'; <ide> <ide> describe('jwt-authorization', () => { <ide> describe('jwt-authorization', () => { <ide> }); <ide> }); <ide> <del> xdescribe...
3
Python
Python
add missing tokenizer exceptions (resolves )
edc596d9a77cf0281b3641297fd5abd62a74edf2
<ide><path>spacy/en/tokenizer_exceptions.py <ide> {ORTH: "are", LEMMA: "be", TAG: "VBP", "number": 2}, <ide> {ORTH: "is", LEMMA: "be", TAG: "VBZ"}, <ide> {ORTH: "was", LEMMA: "be"}, <del> {ORTH: "were", LEMMA: "be"} <add> {ORTH: "were", LEMMA: "be"}, <add> {ORTH: "have"}, <add> {ORTH: "has", LEM...
1
Javascript
Javascript
allow publishing with `beta` tag
96ca8d9155043e4636308edd6501fde67ce40aa5
<ide><path>scripts/release/publish-commands/parse-params.js <ide> module.exports = () => { <ide> case 'next': <ide> case 'experimental': <ide> case 'alpha': <add> case 'beta': <ide> case 'untagged': <ide> break; <ide> default:
1
Javascript
Javascript
reset meta on recompile
862478e3b4956caa10527d760baf775c2d2f79b2
<ide><path>lib/NormalModule.js <ide> NormalModule.prototype.build = function build(options, compilation, resolver, fs <ide> _this.error = null; <ide> _this.errors.length = 0; <ide> _this.warnings.length = 0; <add> _this.meta = {}; <ide> return _this.doBuild(options, compilation, resolver, fs, function(err) { <ide> ...
1
Text
Text
add notes to contributing docs
e80b353085c460c5ab7e9b4d22249f01176c5eb1
<ide><path>docs/topics/contributing.md <ide> Some tips on good issue reporting: <ide> * When describing issues try to phrase your ticket in terms of the *behavior* you think needs changing rather than the *code* you think need changing. <ide> * Search the issue list first for related items, and make sure you're running...
1
Text
Text
fix email with name format in guides. [ci skip]
ac6180ec1b25563405cbcb868804a098424e3a0f
<ide><path>guides/source/action_mailer_basics.md <ide> The same format can be used to set carbon copy (Cc:) and blind carbon copy <ide> <ide> Sometimes you wish to show the name of the person instead of just their email <ide> address when they receive the email. The trick to doing that is to format the <del>email addr...
1
Text
Text
update cryptocurrency chinese index.md
2baac0f8fe2fd9021fd6f5a069bdcb26e84d0422
<ide><path>guide/chinese/blockchain/cryptocurrency/index.md <ide> localeTitle: Cryptocurrency <ide> --- <ide> ## Cryptocurrency <ide> <del>> 宣布首次发布比特币,这是一种新的电子现金系统,它使用点对点网络来防止双重支出。它完全是分散的,没有服务器或中央权限。 <add>> 宣告首次发布比特币,这是一种新的电子现金系统,它使用点对点网络来防止双重支出。它完全是去中心化的,没有服务器或中央权限。 <ide> > <del>> \- Satoshi Nakamoto,2009年1月9日,在Sour...
1
Python
Python
fix word typos in comments
90db98304e06a60a3c578e9f55fe139524a4c3f8
<ide><path>sorts/bead_sort.py <ide> """ <del>Bead sort only works for sequences of nonegative integers. <add>Bead sort only works for sequences of non-negative integers. <ide> https://en.wikipedia.org/wiki/Bead_sort <ide> """ <ide> <ide><path>sorts/odd_even_transposition_single_threaded.py <ide> """ <ide> Source: http...
4
Go
Go
remove cache opti that cause wrong cache miss
881fdc59edf39ba8d87b44b05db7fcd95661d083
<ide><path>server.go <ide> func (srv *Server) ImageDelete(name string) error { <ide> } <ide> <ide> func (srv *Server) ImageGetCached(imgId string, config *Config) (*Image, error) { <del> byParent, err := srv.runtime.graph.ByParent() <add> <add> // Retrieve all images <add> images, err := srv.runtime.graph.All() <ide> ...
1
Python
Python
update create_global_jinja_loader docstring, #321
f6798885e6cc97bccd1e0fd861b54b01fcdb9605
<ide><path>flask/app.py <ide> def create_global_jinja_loader(self): <ide> """Creates the loader for the Jinja2 environment. Can be used to <ide> override just the loader and keeping the rest unchanged. It's <ide> discouraged to override this function. Instead one should override <del> ...
1
PHP
PHP
fix 0/'0' not being patched properly
b2ed6a289e40ed12509a0364a09e0610e667e377
<ide><path>src/ORM/Marshaller.php <ide> public function merge(EntityInterface $entity, array $data, array $options = []) <ide> } elseif ($columnType) { <ide> $converter = Type::build($columnType); <ide> $value = $converter->marshal($value); <del> if ($original == $value) { <add> $isObject = is_object($...
2
Java
Java
replace slf4j with acl tilesconfigurer for tiles 3
fb05c7b33c469d5a7826ff8efe3168329617b6b5
<ide><path>spring-webmvc-tiles3/src/main/java/org/springframework/web/servlet/view/tiles3/TilesConfigurer.java <ide> import javax.servlet.ServletContext; <ide> import javax.servlet.jsp.JspFactory; <ide> <add>import org.apache.commons.logging.Log; <add>import org.apache.commons.logging.LogFactory; <ide> import org.apac...
1
Ruby
Ruby
remove inner uncaptured group
17aa90a2c591d922b293a73bdf68e0bfeb0e1301
<ide><path>Library/Homebrew/version.rb <ide> def self._parse(spec) <ide> <ide> # date-based versioning <ide> # e.g. ltopers-v2017-04-14.tar.gz <del> m = /-v?((?:\d{4}-\d{2}-\d{2}))/.match(stem) <add> m = /-v?(?:\d{4}-\d{2}-\d{2})/.match(stem) <ide> return m.captures.first unless m.nil? <ide> <ide> ...
1
Text
Text
demonstrate dangers of `buffer.slice()`
087939471a47d7059223a5f52c933d37cbe547a9
<ide><path>doc/api/buffer.md <ide> console.log(copiedBuf.toString()); <ide> <ide> console.log(buf.toString()); <ide> // Prints: buffer <add> <add>// With buf.slice(), the original buffer is modified. <add>const notReallyCopiedBuf = buf.slice(); <add>notReallyCopiedBuf[0]++; <add>console.log(notReallyCopiedBuf.toString...
1
Mixed
Ruby
add x-original-to to mail using mailgun recipient
667d69cc5b0527d0c3d0887cd175114e9310d519
<ide><path>actionmailbox/CHANGELOG.md <add>* Mailgun ingress now passes through the envelope recipient as `X-Original-To`. <add> <add> *Rikki Pitt* <add> <ide> * Deprecate `Rails.application.credentials.action_mailbox.api_key` and `MAILGUN_INGRESS_API_KEY` in favor of `Rails.application.credentials.action_mailbo...
3
Text
Text
fix broken markup [ci skip]
22483b86a6c779743b30e2f23bb46accfbf96b28
<ide><path>activesupport/CHANGELOG.md <ide> * `Array#to_sentence` no longer returns a frozen string. <ide> <ide> Before: <add> <ide> ['one', 'two'].to_sentence.frozen? <ide> # => true <ide> <ide> After: <add> <ide> ['one', 'two'].to_sentence.frozen? <ide> # => false <ide>
1
Ruby
Ruby
get all resources in all formulae
59165ed3ec78466b0536f347dcbeb60cde7587cc
<ide><path>Library/Homebrew/dev-cmd/livecheck.rb <ide> def livecheck <ide> formulae = args.cask? ? [] : Formula.installed <ide> casks = args.formula? ? [] : Cask::Caskroom.casks <ide> formulae + casks <add> elsif args.resources? <add> resources = Formula.all do |formula| <add> formula.r...
1
PHP
PHP
pass response in laravel done event
17bd505ff6d331530232a5da8e3c0a28220f1e64
<ide><path>laravel/laravel.php <ide> | <ide> */ <ide> <del>Event::fire('laravel.done'); <ide>\ No newline at end of file <add>Event::fire('laravel.done', array($response)); <ide>\ No newline at end of file <ide><path>laravel/profiling/profiler.php <ide> public static function attach() <ide> // We'll attach the profi...
2
Text
Text
fix broken links on using immutable.js docs
885a2db6ef8721bb8facd1a6df2fcff979237ee4
<ide><path>docs/recipes/UsingImmutableJS.md <ide> hide_title: true <ide> <ide> ## Table of Contents <ide> <del>- [Why should I use an immutable-focused library such as Immutable.JS?](#why-should-i-use-an-immutable-focused-library-such-as-immutable-js) <del>- [Why should I choose Immutable.JS as an immutable library?]...
1
Python
Python
add basic benchmarks for take and putmask
9fc60fb5462beff905a582536033f40030bc7291
<ide><path>benchmarks/benchmarks/bench_itemselection.py <add>from __future__ import absolute_import, division, print_function <add> <add>from .common import Benchmark, TYPES1 <add> <add>import numpy as np <add> <add> <add>class Take(Benchmark): <add> params = [ <add> [(1000, 1), (1000, 2), (2, 1000, 1), (1000...
1
PHP
PHP
fix
07177e94983f20d478026dc93278c05f6f18c0dd
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> public function firstOrFail($columns = ['*']) <ide> return $model; <ide> } <ide> <del> throw new ModelNotFoundException; <add> throw (new ModelNotFoundException)->setModel(get_class($this->parent)); <ide> ...
4
Text
Text
add sense360 to list of users
a38687024ae69c5eeea41460b40291a88485093c
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> * [Jampp](https://github.com/jampp) <ide> * [LingoChamp](http://www.liulishuo.com/) [[@haitaoyao](https://github.com/haitaoyao)] <ide> * Lyft <add>* [Sense360](https://github.com/Sense360) [[@kamilmroczek](https://github.com/KamilMroczek)] <ide> *...
1
Text
Text
add v3.16.5 to changelog.md
efdbce3d1321652b0b9ad55a5837d8fd9cb15b42
<ide><path>CHANGELOG.md <ide> - [#18694](https://github.com/emberjs/ember.js/pull/18694) [BUGFIX] Ensure tag updates are buffered, remove error message <ide> - [#18709](https://github.com/emberjs/ember.js/pull/18709) [BUGFIX] Fix `this` in `@tracked` initializer <ide> <add>### v3.16.5 (March 23, 2020) <add> <add>- [#...
1
Ruby
Ruby
call it compile_methods! and do the same on am
6067d1620075c1c311bbae01993453cd80967804
<ide><path>actionmailer/lib/action_mailer/railtie.rb <ide> class Railtie < Rails::Railtie <ide> options.javascripts_dir ||= paths.public.javascripts.to_a.first <ide> options.stylesheets_dir ||= paths.public.stylesheets.to_a.first <ide> <add> # make sure readers methods get compiled <add> options....
4
Text
Text
add syntax of inheritance to article
b04cc579a6a323dfdb1b4364f416b09cc1778eaa
<ide><path>guide/english/java/inheritance/index.md <ide> Java inheritance refers to the ability of a Java Class to `inherit` the properti <ide> <ide> Thus, inheritance gives Java the cool capability of _re-using_ code, or sharing code between classes! <ide> <add>## Syntax <add>```java <add>class Subclass-name extends...
1
Ruby
Ruby
move common stuff to extend/env.rb
eebc04ec9bfaca32024e2cb80ebf52b8ee68a7c9
<ide><path>Library/Homebrew/build.rb <ide> def main <ide> <ide> require 'hardware' <ide> require 'keg' <del> require 'superenv' <add> require 'extend/ENV' <ide> <ide> # Force any future invocations of sudo to require the user's password to be <ide> # re-entered. This is in-case any build script call sudo. C...
7
Javascript
Javascript
allow onclick on next/link component's child
669225263dfea787812c494759706f913e4c080a
<ide><path>lib/link.js <ide> export default class Link extends Component { <ide> // This will return the first child, if multiple are provided it will throw an error <ide> const child = Children.only(children) <ide> const props = { <del> onClick: this.linkClicked <add> onClick: (e) => { <add> ...
4
Ruby
Ruby
use arel rather than generate sql strings
cdf6cf01cb47bdcbc1e011c8f5f72b161f12bf9c
<ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency.rb <ide> def join_base <ide> join_parts.first <ide> end <ide> <del> def columns(connection) <add> def columns <ide> join_parts.collect { |join_part| <add> table = Arel::Nodes::Table...
2
PHP
PHP
add priority to email
31417c2567aa72d1289141cb20d4416a91defb27
<ide><path>src/Mailer/Email.php <ide> class Email implements JsonSerializable, Serializable <ide> */ <ide> protected $_boundary = null; <ide> <add> /** <add> * Contains the optional priority of the email. <add> * <add> * @var int|null <add> */ <add> protected $_priority = null; <add> <id...
2
Javascript
Javascript
update version to 1.12.0
020aaa53e1fe89d318557b1be0267777cc0127e8
<ide><path>d3.js <del>(function(){d3 = {version: "1.11.1"}; // semver <add>(function(){d3 = {version: "1.12.0"}; // semver <ide> if (!Date.now) Date.now = function() { <ide> return +new Date(); <ide> }; <ide><path>d3.min.js <del>(function(){function bS(){return"circle"}function bR(){return 64}function bP(a){return[a....
3
Python
Python
add license='bsd' to setup.py
5d5d23eef072ab0832b7fa26e3a665c63d614739
<ide><path>setup.py <ide> def run(self): <ide> author_email=celery.__contact__, <ide> url=celery.__homepage__, <ide> platforms=["any"], <add> license="BSD", <ide> packages=find_packages(exclude=['ez_setup']), <ide> scripts=["bin/celeryd", "bin/celeryinit"], <ide> zip_safe=False,
1
Javascript
Javascript
reuse pythonexecutable variable
b7bd11a8839a82879cdc9e029aca26061e8434c1
<ide><path>script/utils/verify-requirements.js <ide> var path = require('path'); <ide> var fs = require('fs'); <ide> var cp = require('child_process'); <ide> var execFile = cp.execFile; <del>var pythonPath = process.env.PYTHON; <add>var pythonExecutable = process.env.PYTHON; <ide> <ide> module.exports = function(cb) {...
1
Go
Go
stop controllers at end of test
a0f9caec99e343e219c47161190a99f561a85632
<ide><path>libnetwork/sandbox_test.go <ide> func getTestEnv(t *testing.T, opts ...[]NetworkOption) (NetworkController, []Net <ide> if err != nil { <ide> t.Fatal(err) <ide> } <add> t.Cleanup(c.Stop) <ide> <ide> if len(opts) == 0 { <ide> return c, nil <ide><path>libnetwork/store_linux_test.go <ide> func TestNoPer...
3
Ruby
Ruby
convert javarequirement test to spec
9c1db3c820f715f62f550ba1e54f16f9b89bc6ed
<ide><path>Library/Homebrew/test/os/mac/java_requirement_spec.rb <add>require "requirements/java_requirement" <add>require "fileutils" <add> <add>describe JavaRequirement do <add> subject { described_class.new(%w[1.8]) } <add> let(:java_home) { Dir.mktmpdir } <add> let(:java_home_path) { Pathname.new(java_home) } <a...
2
Javascript
Javascript
add contexttag field to fiber type
f1df675b9343163f56aa22e705c3d82b7d026948
<ide><path>src/renderers/shared/fiber/ReactFiber.js <ide> import type {ReactFragment} from 'ReactTypes'; <ide> import type {ReactCoroutine, ReactYield} from 'ReactCoroutine'; <ide> import type {ReactPortal} from 'ReactPortal'; <ide> import type {TypeOfWork} from 'ReactTypeOfWork'; <add>import type {TypeOfContext} from ...
2
Ruby
Ruby
fix broken list formatting [ci skip]
f5d79d765043e4fabfae977fa8884162839fc01c
<ide><path>actionview/lib/action_view/helpers/rendering_helper.rb <ide> module RenderingHelper <ide> # * <tt>:inline</tt> - Renders an inline template similar to how it's done in the controller. <ide> # * <tt>:text</tt> - Renders the text passed in out. <ide> # * <tt>:plain</tt> - Renders the text pas...
1
Ruby
Ruby
fix deprecation warning on actionpack request test
eab5a3877e4c23b3988ad4dec7c8d0ff8645adf7
<ide><path>actionpack/test/dispatch/request_test.rb <ide> def url_for(options = {}) <ide> private <ide> def stub_request(env = {}) <ide> ip_spoofing_check = env.key?(:ip_spoofing_check) ? env.delete(:ip_spoofing_check) : true <del> @trusted_proxies ||= nil <del> ip_app = ActionDispatch::RemoteIp.n...
1
Javascript
Javascript
fix typo in test-child-process-stdout-flush
8cdbf014bd40c679970f6a73173a80d15e5f2275
<ide><path>test/simple/test-child-process-stdout-flush.js <ide> child.stderr.on('data', function(data) { <ide> assert.ok(false); <ide> }); <ide> <del>child.stderr.setEncoding('utf8'); <add>child.stdout.setEncoding('utf8'); <ide> child.stdout.on('data', function(data) { <ide> count += data.length; <ide> console.l...
1
Ruby
Ruby
fix typo in isolated engine docs
45b4ebc7df1b0e25a38862d61566d8b380cb3798
<ide><path>railties/lib/rails/engine.rb <ide> module Rails <ide> # <ide> # Additionally, an isolated engine will set its name according to namespace, so <ide> # MyEngine::Engine.engine_name will be "my_engine". It will also set MyEngine.table_name_prefix <del> # to "my_engine_", changing the MyEngine::Article mo...
1
Text
Text
add note regarding non-existant fonts
7a02d93db4025387adfbc91fb2bc5e250f0a0672
<ide><path>docs/general/fonts.md <ide> let chart = new Chart(ctx, { <ide> | `defaultFontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Default font family for all text. <ide> | `defaultFontSize` | `Number` | `12` | Default font size (in px) for text. Does not apply to radialLinear scale p...
1
Text
Text
update configuration docs
8d193d542bf923489855b9d026eef0f2e82b2fee
<ide><path>docs/internals/configuration.md <ide> ### Reading Config Settings <ide> <ide> If you are writing a package that you want to make configurable, you'll need to <del>read config settings. You can read a value from `config` with `config.get`: <add>read config settings via the `atom.config` global. You can read ...
1
Text
Text
correct code indent
76db7d4c590957c7e81ce521a1ab5bfb6760afaf
<ide><path>docs/tutorial/1-serialization.md <ide> For the purposes of this tutorial we're going to start by creating a simple `Sni <ide> default='python', <ide> max_length=100) <ide> style = models.CharField(choices=STYLE_CHOICES, <del> ...
1
Text
Text
add references to outside c++ guides
0f8eaa4712c575951a703f175daaf0a4e66198a0
<ide><path>CPP_STYLE_GUIDE.md <ide> <ide> ## Table of Contents <ide> <add>* [Guides and References](#guides-and-references) <ide> * [Formatting](#formatting) <ide> * [Left-leaning (C++ style) asterisks for pointer declarations](#left-leaning-c-style-asterisks-for-pointer-declarations) <ide> * [C++ style comments]...
1
Text
Text
fix comments about the black formatter
8f2c9932e09948a046f8d11b18f7c634ee4161fe
<ide><path>CONTRIBUTING.md <ide> We want your work to be readable by others; therefore, we encourage you to note <ide> - Expand acronyms because __gcd()__ is hard to understand but __greatest_common_divisor()__ is not. <ide> - Please follow the [Python Naming Conventions](https://pep8.org/#prescriptive-naming-conve...
1
Java
Java
update the jetty websocket adapter
164a9f938ccef29923476a4cf50565d4fa54d528
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MessageHandlingException.java <ide> */ <ide> public class MessageHandlingException extends MessagingException { <ide> <add> private static final long serialVersionUID = 690969923668400297L; <add> <ide> <ide> public Me...
14
Javascript
Javascript
add fast internal array join method
01652ccc682d2ed678d43a22d1ceb33776c0d4b1
<ide><path>lib/internal/util.js <ide> function promisify(original) { <ide> <ide> promisify.custom = kCustomPromisifiedSymbol; <ide> <add>// The build-in Array#join is slower in v8 6.0 <add>function join(output, separator) { <add> var str = ''; <add> if (output.length !== 0) { <add> for (var i = 0; i < output.len...
1
PHP
PHP
correct testtask tests
a56ec8d6cf371684f65a88fc718611f3575f3786
<ide><path>lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php <ide> public function testBakeControllerTest() { <ide> $this->assertContains("App::uses('TestTaskCommentsController', 'Controller')", $result); <ide> $this->assertContains('class TestTaskCommentsControllerTest extends ControllerTestCase', $result);...
1
Javascript
Javascript
replace the iframe resizer by divs
2c52209ba73cc9b190608319dbba0593f3df455e
<ide><path>src/core/core.controller.js <ide> module.exports = function(Chart) { <ide> listeners[type] = listener; <ide> }); <ide> <del> // Responsiveness is currently based on the use of an iframe, however this method causes <del> // performance issues and could be troublesome when used with ad blockers. So...
3
Ruby
Ruby
add pinned version to outdated output
70446d9112c0d42ca1ab469af07716bb7281169e
<ide><path>Library/Homebrew/cmd/outdated.rb <ide> def print_outdated(formulae) <ide> "#{full_name} (#{kegs.map(&:version).join(", ")})" <ide> end.join(", ") <ide> <del> puts "#{outdated_versions} < #{current_version}" <add> pinned_version = " [pinned at #{f.pinned_version}]" if f.pinned...
2
PHP
PHP
fix cs error
ba06069e6884d21ca99c04ea6b343b1eb5257139
<ide><path>tests/TestCase/Http/Middleware/SessionCsrfProtectionMiddlewareTest.php <ide> */ <ide> namespace Cake\Test\TestCase\Http\Middleware; <ide> <del>use Cake\Http\Cookie\Cookie; <del>use Cake\Http\Cookie\CookieInterface; <ide> use Cake\Http\Exception\InvalidCsrfTokenException; <ide> use Cake\Http\Middleware\Sess...
1
Javascript
Javascript
use a mock for filewatcher
44b051d98d5fec5887e7fea482237a927a118643
<ide><path>packager/react-packager/src/DependencyResolver/__tests__/Module-test.js <ide> jest <ide> .dontMock('../fastfs') <ide> .dontMock('../replacePatterns') <ide> .dontMock('../DependencyGraph/docblock') <del> .dontMock('../../FileWatcher') <ide> .dontMock('../Module'); <ide> <ide> jest <ide> var Module =...
3
Python
Python
add eval and parallel dataset
1635e56144ad4289faa7441f20c4b27a02e41dac
<ide><path>research/deep_speech/data/dataset.py <ide> from __future__ import division <ide> from __future__ import print_function <ide> <add>import functools <add>import multiprocessing <add> <ide> import numpy as np <ide> import scipy.io.wavfile as wavfile <ide> from six.moves import xrange # pylint: disable=redefin...
4
Text
Text
fix some bullet points so they render correctly
a247af9c97be92f91242db51f4a9545db1bda702
<ide><path>docs/sources/introduction/understanding-docker.md <ide> Docker images are then built from these base images using a simple, descriptive <ide> set of steps we call *instructions*. Each instruction creates a new layer in our <ide> image. Instructions include actions like: <ide> <del>* Run a command. * Add a f...
1
Python
Python
fix typo in exception
f36c16f2debd65c2f9c011b07ca72a77b300db4e
<ide><path>celery/backends/base.py <ide> def exception_to_python(self, exc): <ide> try: <ide> exc_type = exc['exc_type'] <ide> except KeyError as e: <del> raise ValueError("Exception information must include" <add> raise ValueError("Exception information must include " ...
1
Java
Java
use context from entry point for prerendering
f58c496e07845e5fb765f051246160077fcf98e4
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> public <T extends View> int addRootView( <ide> ThemedReactContext reactContext = <ide> new ThemedReactContext( <ide> mReactApplicationContext, rootView.getContext(), reactRootView.getSurfaceID(), rootTag);...
3
Ruby
Ruby
handle untarred bzip2 files
cb5da28b5cdf7a76e9e1220e6701b4b905ce04a3
<ide><path>Library/Homebrew/download_strategy.rb <ide> def stage <ide> end <ide> end <ide> end <add> when :bzip2_only <add> with_system_path do <add> target = File.basename(basename_without_params, ".bz2") <add> <add> IO.popen("bunzip2 -f '#{tarball_path}' -c") do |pipe| <a...
2
PHP
PHP
apply fixes from styleci
105037b619bb1e180e79e2e0c634294d1859b406
<ide><path>src/Illuminate/Foundation/Testing/DatabaseTransactions.php <ide> public function beginDatabaseTransaction() <ide> $connection->unsetEventDispatcher(); <ide> $connection->beginTransaction(); <ide> $connection->setEventDispatcher($dispatcher); <del> <add> <ide> ...
1
Go
Go
remove transaction id update from savemetadata()
0db6cc85edfccb16ce5308eea767530e1a3f6906
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> func (devices *DeviceSet) allocateTransactionId() uint64 { <ide> return devices.NewTransactionId <ide> } <ide> <add>func (devices *DeviceSet) updatePoolTransactionId() error { <add> if devices.NewTransactionId != devices.TransactionId { <add> if err := devic...
1
Javascript
Javascript
collapse object initialization in xplat
e7d9e4dbb5cf8a9a5d615cd15e23ec107fa1ae1c
<ide><path>Libraries/Utilities/__tests__/stringifySafe-test.js <ide> describe('stringifySafe', () => { <ide> }); <ide> <ide> it('stringifySafe stringifies circular objects with toString', () => { <del> const arg = {}; <add> const arg: {arg?: {...}} = {...null}; <ide> arg.arg = arg; <ide> const result...
3
Ruby
Ruby
add test cases for #in? and #presence_in
f64819524716c14061914584db66ac2a3e1e72b2
<ide><path>activesupport/test/core_ext/object/inclusion_test.rb <ide> class B <ide> end <ide> class C < B <ide> end <add> class D <add> end <ide> <ide> def test_in_module <ide> assert A.in?(B) <ide> assert A.in?(C) <ide> assert !A.in?(A) <add> assert !A.in?(D) <ide> end <ide> <ide> def ...
1
Javascript
Javascript
pass user to api and foursquare api pages
594760b2e6428d4cd36d879a5f5e73dec4cb43b6
<ide><path>controllers/api.js <ide> var foursquareAccessToken = 'MY_FOURSQUARE_ACCESS_TOKEN'; <ide> <ide> exports.apiBrowser = function(req, res) { <ide> res.render('api', { <del> title: 'API Browser' <add> title: 'API Browser', <add> user: req.user <ide> }); <ide> }; <ide> <ide> <ide> exports.foursquar...
1
Ruby
Ruby
fix uninstallation of non-formula kegs
8fbf3a43c39f74e75aae0530c3ef3a9aebe2cd59
<ide><path>Library/Homebrew/cmd/uninstall.rb <ide> def uninstall <ide> keg.lock do <ide> puts "Uninstalling #{keg}..." <ide> keg.unlink <del> Formula.factory(keg.fname).unpin <ide> keg.uninstall <ide> rm_opt_link keg.fname <add> unpin keg.fname <ide> ...
1
Javascript
Javascript
pass the version info through the event
c9293e7733502c0551438a41633031c902ab43c6
<ide><path>spec/auto-update-manager-spec.js <ide> fdescribe('AutoUpdateManager (renderer)', () => { <ide> it('subscribes to "did-complete-downloading-update" event', () => { <ide> const spy = jasmine.createSpy('spy') <ide> autoUpdateManager.onDidCompleteDownload(spy) <del> electronAutoUpdater.emit(...
2
Ruby
Ruby
replace mentions of easy_install by pip
33b2a29e1460ef307254dfab9a849dd972e5a5c8
<ide><path>Library/Homebrew/blacklist.rb <ide> def blacklisted? name <ide> We recommend using a MacTeX distribution: http://www.tug.org/mactex/ <ide> EOS <ide> when 'pip' then <<-EOS.undent <del> Install pip with easy_install: <del> <del> easy_install pip <add> pip is installed by `brew install p...
2
PHP
PHP
simplify path logic
8b1045a631cf146d7800fba26cdbbe97e15816c9
<ide><path>lib/Cake/Console/Command/TestShell.php <ide> protected function _mapFileToCase($file, $category) { <ide> return false; <ide> } <ide> <add> $_file = realpath($file); <add> if ($_file) { <add> $file = $_file; <add> } <add> <ide> $testFile = $testCase = null; <ide> <ide> if (preg_match('@Test[\\...
1
Text
Text
update context menu doc
7e52c860955bd8084282b52dac8302b06b06080a
<ide><path>docs/creating-a-package.md <ide> elements until reaching the top of the DOM tree. <ide> In the example above, the `Add file` item will only appear when the focused item <ide> or one of its parents has the `tree-view` class applied to it. <ide> <del>You can also add separators and submenus to your context me...
1
Python
Python
show less messages in --help-fcompiler
24b8ecc423d48a06af98be34e97ebda4fee397bc
<ide><path>numpy/distutils/command/config_compiler.py <ide> def show_fortran_compilers(_cache=[]): <ide> # Using cache to prevent infinite recursion <ide> if _cache: return <ide> _cache.append(1) <del> <add> log.set_verbosity(-2) <ide> from numpy.distutils.fcompiler import show_fcompilers <ide> i...
1
Javascript
Javascript
count space for line numbers correctly
5b230007adba91163a2f49dbdd9a16d5834fd322
<ide><path>lib/_debugger.js <ide> Interface.prototype.debugEval = function(code, context, filename, callback) { <ide> <ide> // Utils <ide> <del>// Returns number of digits (+1) <del>function intChars(n) { <del> // TODO dumb: <del> if (n < 50) { <del> return 3; <del> } else if (n < 950) { <del> return 4; <del...
1
Javascript
Javascript
improve read() performance further
382f84a7f87296fe81e247051ccfc830d71fabca
<ide><path>lib/internal/streams/buffer_list.js <ide> module.exports = class BufferList { <ide> <ide> // Consumes a specified amount of bytes or characters from the buffered data. <ide> consume(n, hasStrings) { <del> var ret; <del> if (n < this.head.data.length) { <add> const data = this.head.data; <add> ...
1
Javascript
Javascript
use defined function to remove duplicates
2f143e0ff0e292261915cff52a4350ba1bb4a46f
<ide><path>packages/ember-metal/lib/computed.js <ide> function keysForDep(obj, depsMeta, depKey) { <ide> <ide> /* return obj[META_KEY].deps */ <ide> function metaForDeps(obj, meta) { <del> var deps = meta.deps; <del> // If the current object has no dependencies... <del> if (!deps) { <del> // initialize the depen...
1
Go
Go
use prefix naming for rm tests
cc54b77fce1ab0d6bfa78947ee46ffdd104f21c5
<ide><path>integration-cli/docker_cli_rm_test.go <ide> import ( <ide> "testing" <ide> ) <ide> <del>func TestRemoveContainerWithRemovedVolume(t *testing.T) { <add>func TestRmContainerWithRemovedVolume(t *testing.T) { <ide> cmd := exec.Command(dockerBinary, "run", "--name", "losemyvolumes", "-v", "/tmp/testing:/test",...
1
Javascript
Javascript
improve .inspect() array grouping
87a22cff77f923d69797c29a766b21f63f8dc5a9
<ide><path>lib/internal/util/inspect.js <ide> function formatRaw(ctx, value, recurseTimes, typedArray) { <ide> } <ide> <ide> const res = reduceToSingleString( <del> ctx, output, base, braces, extrasType, recurseTimes); <add> ctx, output, base, braces, extrasType, recurseTimes, value); <ide> const budget = ...
2