content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Java | Java | add support to receive null payload in events | 936de607b185c2c9411e5268a6ce4014ad179a79 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> public void invoke(long eventTarget, String name, WritableMap params) {
<ide> TAG,
<ide> "Dispatching event for target: " + eventTarget);
<ide> }
<add> if (params == null) {
<add> params = new Writable... | 1 |
PHP | PHP | fix unique validation without ignored column | 93abbf579b18b28b70ba18db7468c1dc500b60da | <ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php
<ide> public function validateUnique($attribute, $value, $parameters)
<ide> if (isset($parameters[2])) {
<ide> [$idColumn, $id] = $this->getUniqueIds($parameters);
<ide>
<del> $id = stripslashes($id);
<add> ... | 2 |
Text | Text | fix lint errors for readme | 680cb9954389c108d111e438997d1b039a277997 | <ide><path>README.md
<ide> To specify how the actions transform the state tree, you write pure *reducers*.
<ide> That’s it!
<ide>
<ide> ```js
<del>import { createStore } from 'redux';
<add>import { createStore } from 'redux'
<ide>
<ide> /**
<ide> * This is a reducer, a pure function with (state, action) => state sig... | 1 |
Java | Java | implement file resolution for isreadable() as well | bda3d81bc9cda4ec8da79da3c45c6b2a5b6713bd | <ide><path>org.springframework.core/src/main/java/org/springframework/core/io/AbstractFileResolvingResource.java
<ide> public boolean exists() {
<ide> }
<ide> }
<ide>
<add> @Override
<add> public boolean isReadable() {
<add> try {
<add> URL url = getURL();
<add> if (ResourceUtils.isFileURL(url)) {
<add> // ... | 1 |
Text | Text | update docker stack experimental notes | 3225150b164c97e5e67893e93f45888d552f4919 | <ide><path>experimental/docker-stacks-and-bundles.md
<ide> Wrote bundle to vossibility-stack.dab
<ide> A stack is created using the `docker deploy` command:
<ide>
<ide> ```bash
<del># docker deploy --help
<del>
<add>$ docker deploy --help
<ide> Usage: docker deploy [OPTIONS] STACK
<ide>
<del>Create and update a stac... | 1 |
Python | Python | add missing word to warning message | e3e6c41843c6c0842d55304b0fc9d88cf1408893 | <ide><path>numpy/lib/function_base.py
<ide> def _check_interpolation_as_method(method, interpolation, fname):
<ide> f"the `interpolation=` argument to {fname} was renamed to "
<ide> "`method=`, which has additional options.\n"
<ide> "Users of the modes 'nearest', 'lower', 'higher', or "
<del> ... | 1 |
Javascript | Javascript | move changes into js directory rather than jsm | 66b7db927b6947c629c3cf9b266824a8474c5898 | <ide><path>examples/js/loaders/SVGLoader.js
<ide> THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
<ide> var numbers = parseFloats( data );
<ide>
<ide> for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) {
<add>
<add> // skip command if start point == end poi... | 1 |
PHP | PHP | trim trailing whitespace | 805d52de8e5b31f488fe1f1503f24045b553cbcc | <ide><path>src/Http/ResponseEmitter.php
<ide> *
<ide> * - It logs headers sent using CakePHP's logging tools.
<ide> * - Cookies are emitted using setcookie() to not conflict with ext/session
<del> * - For fastcgi servers with PHP-FPM session_write_close() is called just
<del> * before fastcgi_finish_request() to ... | 1 |
Text | Text | change links to use head in top level docs | 7a4c2c8d86031b986e8a514d5c64b42d8a6b1806 | <ide><path>BUILDING.md
<ide> packages:
<ide>
<ide> To install Node.js prerequisites using
<ide> [Boxstarter WebLauncher](https://boxstarter.org/WebLauncher), open
<del><https://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/nodejs/node/master/tools/bootstrap/windows_boxstarter>
<add><https://boxstarte... | 4 |
Text | Text | add proper stetho debugging setup documentation | c5bd033e4b7fe0299792b52893809320354acd9b | <ide><path>docs/Debugging.md
<ide> Alternatively, select "Dev Settings" from the Developer Menu, then update the "D
<ide>
<ide> ### Debugging with [Stetho](http://facebook.github.io/stetho/) on Android
<ide>
<del>1. In ```android/app/build.gradle```, add these lines in the `dependencies` section:
<add>Follow this gui... | 1 |
Javascript | Javascript | remove rogue terminal.log() | 48b86022fbf0895242bf3c16f3c8b043fc48d6bc | <ide><path>packager/react-packager/src/lib/TerminalReporter.js
<ide> class TerminalReporter {
<ide> case 'global_cache_disabled':
<ide> this._logCacheDisabled(event.reason);
<ide> break;
<add> case 'transform_cache_reset':
<add> reporting.logWarning(terminal, 'the transform cache was r... | 4 |
Ruby | Ruby | fix a state leak in `autosave_association_test` | dedb946bfb940ece65064175f09ed55815768ec6 | <ide><path>activerecord/test/cases/autosave_association_test.rb
<ide> def test_should_merge_errors_on_the_associated_models_onto_the_parent_even_if_it
<ide> end
<ide>
<ide> def test_should_not_ignore_different_error_messages_on_the_same_attribute
<add> old_validators = Ship._validators.deep_dup
<add> old_cal... | 1 |
Python | Python | fix docstrings in preprocessing/text.py | 9f4734cbf1044cb5eb921f8e834423c3f528d0d4 | <ide><path>keras/preprocessing/text.py
<ide> def base_filter():
<ide>
<ide>
<ide> def text_to_word_sequence(text, filters=base_filter(), lower=True, split=" "):
<del> """prune: sequence of characters to filter out
<add> """Converts a text to a sequence of word indices.
<add>
<add> # Arguments
<add> te... | 1 |
Go | Go | fix empty reference | 795ecf02ce25007932cdc0b676f08f32fcb8509d | <ide><path>builder/builder-next/exporter/export.go
<ide> func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
<ide> for k, v := range opt {
<ide> switch k {
<ide> case keyImageName:
<del> i.targetName = v
<add> for _, v := range strings.Split(v, ",") {
<add> ref, err := distref.P... | 1 |
Javascript | Javascript | remove appetize embedded examples | 3153c3baa00a8e7e3b0299c9476af3f8eccd162e | <ide><path>website/layout/AutodocsLayout.js
<ide> var TypeDef = React.createClass({
<ide> },
<ide> });
<ide>
<del>var EmbeddedSimulator = React.createClass({
<del> render: function() {
<del> if (!this.props.shouldRender) {
<del> return null;
<del> }
<del>
<del> var metadata = this.props.metadata;
<del... | 1 |
Javascript | Javascript | extract sc.touchlist into its own file | ce52f618113242a8464e38eac94c984ddac1c72c | <ide><path>packages/sproutcore-touch/lib/system/gesture.js
<ide> var set = SC.set;
<ide>
<ide> var sigFigs = 100;
<ide>
<del>SC.TouchList = SC.Object.extend({
<del> touches: null,
<del>
<del> timestamp: null,
<del>
<del> init: function() {
<del> this._super();
<del>
<del> set(this, 'touches', []);
<del> },
... | 2 |
Javascript | Javascript | remove unused functions | b7b7b29f509c46e6d5854b1cd04c0ec757de6389 | <ide><path>lib/dns.js
<ide> function errnoException(errorno, syscall) {
<ide> }
<ide>
<ide>
<del>function familyToSym(family) {
<del> switch (family) {
<del> case 4: return cares.AF_INET;
<del> case 6: return cares.AF_INET6;
<del> default: return cares.AF_UNSPEC;
<del> }
<del>}
<del>
<del>
<del>function sy... | 1 |
Javascript | Javascript | add key to inspected-element error boundary | ebcec3cc20417528ffe80f0b11701af42b399939 | <ide><path>packages/react-devtools-shared/src/devtools/views/Components/InspectedElementErrorBoundary.js
<ide> */
<ide>
<ide> import * as React from 'react';
<add>import {useContext} from 'react';
<ide> import ErrorBoundary from '../ErrorBoundary';
<add>import {TreeStateContext} from './TreeContext';
<ide> import sty... | 1 |
PHP | PHP | add tests related to | 8b2f80b83f3e2c8dd8099f30dbd0729310edac9d | <ide><path>tests/TestCase/I18n/TimeTest.php
<ide> public function tearDown()
<ide> Time::setTestNow($this->now);
<ide> Time::setDefaultLocale($this->locale);
<ide> Time::resetToStringFormat();
<add> Time::setJsonEncodeFormat("yyyy-MM-dd'T'HH:mm:ssxxx");
<ide>
<ide> FrozenTime::se... | 1 |
Java | Java | fix compilation warnings | d37f29e420003c8e040669e76f99e1f9c2de4876 | <ide><path>src/main/java/io/reactivex/internal/operators/completable/CompletableFromSource.java
<ide> public CompletableFromSource(CompletableSource source) {
<ide> extends AtomicBoolean
<ide> implements CompletableObserver, Disposable {
<ide>
<add> /** */
<add> private static final long serialVe... | 4 |
Python | Python | restore correct ordering for latestcommentsfeed | cc72e64e19f57954f86e866d245aff9c52bde642 | <ide><path>django/contrib/comments/feeds.py
<ide> def items(self):
<ide> where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
<ide> params = [settings.COMMENTS_BANNED_USERS_GROUP]
<ide> qs = qs.extra(where=where, params=params)
<del> return qs[... | 1 |
Ruby | Ruby | remove useless method | f6fecabc0cb8ad7be3783d31656a0b10fe3b5bc7 | <ide><path>actionview/lib/action_view/lookup_context.rb
<ide> def self.clear
<ide> @details_keys.clear
<ide> end
<ide>
<del> def self.empty?; @details_keys.empty?; end
<del>
<ide> def self.digest_caches
<ide> @details_keys.values.map(&:digest_cache)
<ide> end | 1 |
PHP | PHP | prevent null in fixture files | 0c4613fdd217a48faebe23085839d01b8c47cd0a | <ide><path>lib/Cake/Model/CakeSchema.php
<ide> protected function _values($values) {
<ide> $vals[] = "'{$key}' => array('" . implode("', '", $val) . "')";
<ide> } elseif (!is_numeric($key)) {
<ide> $val = var_export($val, true);
<add> if ($val === 'NULL') {
<add> $val = 'null';
<add> }
<ide>... | 1 |
Javascript | Javascript | fix spelling mistakes | c11015ff4f610ac2924d1fc6d569a17657a404fd | <ide><path>packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
<ide> export default {
<ide> // hook functions.
<ide> const codePathFunctionName = getFunctionName(codePathNode);
<ide>
<del> // This is a valid code path for React hooks if we are direcly in a React
<add> // This is a vali... | 8 |
Javascript | Javascript | create hostcontainer component type | f04c38ed656a513fe5515e54d7645883767a177e | <ide><path>src/renderers/noop/ReactNoop.js
<ide> var NoopRenderer = ReactFiberReconciler({
<ide>
<ide> });
<ide>
<add>var root = null;
<add>
<ide> var ReactNoop = {
<ide>
<ide> render(element : ReactElement<any>) {
<del>
<del> NoopRenderer.mountNewRoot(element);
<del>
<add> if (!root) {
<add> root = Noo... | 7 |
Text | Text | fix the url in comparison of "copy" and "run curl" | 3dd134cecaa045e73706c6ce4ab55188e98d1066 | <ide><path>docs/articles/dockerfile_best-practices.md
<ide> things like:
<ide> And instead, do something like:
<ide>
<ide> RUN mkdir -p /usr/src/things \
<del> && curl -SL http://example.com/big.tar.gz \
<add> && curl -SL http://example.com/big.tar.xz \
<ide> | tar -xJC /usr/src/things \
<ide... | 1 |
Ruby | Ruby | fix flaky foreign key test | c1122879744fea71b356af78ba70bdd87153c214 | <ide><path>activerecord/test/cases/migration/foreign_key_test.rb
<ide> def test_schema_dumping_with_defferable_initially_immediate
<ide> end
<ide> end
<ide>
<del> unless in_memory_db?
<del> def test_does_not_create_foreign_keys_when_bypassed_by_config
<del> connection = Act... | 1 |
Ruby | Ruby | remove more warnings on ap | 523f98099d331908db6ab4c45f7657e61a8a4d5f | <ide><path>actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
<ide> def loaded?
<ide>
<ide> def destroy
<ide> clear
<del> @by.send(:destroy, @env) if @by
<del> @env[ENV_SESSION_OPTIONS_KEY][:id] = nil if @env && @env[ENV_SESSION_OPTIONS_KEY]
<add> @by.send(... | 3 |
Text | Text | add note about hoc possibly adding gip to _app | 467b65a889cc8d40d38910bdfdb28c756086a926 | <ide><path>errors/opt-out-auto-static-optimization.md
<ide> This causes **all non-getStaticProps pages** to be executed on the server -- dis
<ide> Be sure you meant to use `getInitialProps` in `pages/_app`!
<ide> There are some valid use cases for this, but it is often better to handle `getInitialProps` on a _per-page_... | 1 |
Ruby | Ruby | nullify the relation at a more general level | aae4f357b5dae389b91129258f9d6d3043e7631e | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> def sum(*args)
<ide> # association, it will be used for the query. Otherwise, construct options and pass them with
<ide> # scope to the target class's +count+.
<ide> def count(column_name = nil, count_options = {})
... | 3 |
Go | Go | export more functions from libcontainer | b6b0dfdba7bda13d630217830423580c3152899d | <ide><path>pkg/libcontainer/nsinit/command.go
<ide> package nsinit
<ide>
<ide> import (
<del> "github.com/dotcloud/docker/pkg/libcontainer"
<del> "github.com/dotcloud/docker/pkg/system"
<ide> "os"
<ide> "os/exec"
<add>
<add> "github.com/dotcloud/docker/pkg/libcontainer"
<add> "github.com/dotcloud/docker/pkg/system"
... | 5 |
Java | Java | add error message to mockserverhttprequest | 955f77bf5d30d74e28fa7c3f61fddc45aff771c4 | <ide><path>spring-test/src/main/java/org/springframework/mock/http/server/reactive/MockServerHttpRequest.java
<ide> public static BodyBuilder method(HttpMethod method, URI url) {
<ide> * @return the created builder
<ide> */
<ide> public static BodyBuilder method(HttpMethod method, String urlTemplate, Object... var... | 2 |
Text | Text | fix typo in pipe from async iterator example | eb4c1d5663ff7089badfeaf37dbe246df60607e9 | <ide><path>doc/api/stream.md
<ide> const writeable = fs.createWriteStream('./file');
<ide> (async function() {
<ide> for await (const chunk of iterator) {
<ide> // Handle backpressure on write
<del> if (!writeable.write(value))
<add> if (!writeable.write(chunk))
<ide> await once(writeable, 'drain');
<... | 1 |
Ruby | Ruby | decrease allocations in transliterate | 57ba9cbc6ccaa20a1ac3ca671d17040946839db3 | <ide><path>activesupport/lib/active_support/inflector/transliterate.rb
<ide> module Inflector
<ide> # I18n.locale = :de
<ide> # transliterate('Jürgen')
<ide> # # => "Juergen"
<del> def transliterate(string, replacement = "?")
<add> def transliterate(string, replacement = "?".freeze)
<ide> ... | 1 |
PHP | PHP | add application stack to app server provider | 2893433b35c96a210564e4468ba4b5830c560477 | <ide><path>app/Providers/AppServiceProvider.php
<ide> <?php namespace App\Providers;
<ide>
<add>use Illuminate\Routing\Router;
<ide> use Illuminate\Support\ServiceProvider;
<add>use Illuminate\Routing\Stack\Builder as Stack;
<ide>
<ide> class AppServiceProvider extends ServiceProvider {
<ide>
<ide> class AppServiceP... | 1 |
Text | Text | restore missing "format" example | edbb8fb86d7d0b715adc15415f0cb187433092a5 | <ide><path>docs/reference/commandline/create.md
<ide> Options:
<ide> 'host': Use the Docker host user namespace
<ide> '': Use the Docker daemon user namespace specified by `--userns-remap` option.
<ide> --uts string UTS names... | 2 |
Text | Text | remove unstable branch badge | ee858fadd593fc2d8867efebd5b202f9933786a7 | <ide><path>README.md
<ide> [](http://squizlabs.github.io/PHP_CodeSniffer/analysis/cakephp/cakephp/)
<ide> [](https://packagist.o... | 1 |
Javascript | Javascript | remove deprecated helpers | 92a4654d9b2ae91683c179cbf6186b31952cfcd1 | <ide><path>src/core/core.helpers.js
<ide> module.exports = function() {
<ide> return Math.sqrt(Math.pow(pt2.x - pt1.x, 2) + Math.pow(pt2.y - pt1.y, 2));
<ide> };
<ide>
<del> /**
<del> * Provided for backward compatibility, not available anymore
<del> * @function Chart.helpers.aliasPixel
<del> * @deprecated since... | 9 |
Text | Text | add some links and update test commands | 1dccaaaaa27a4db91d5271438688bc96e199e561 | <ide><path>README.md
<del>Angular
<del>======
<add>AngularJS
<add>=========
<add>
<add>* Web site: http://angularjs.org
<add>* Tutorial: http://docs.angularjs.org/#!/tutorial
<add>* API Docs: http://docs.angularjs.org
<add>* Developer Guide: http://docs.angularjs.org/#!/guide
<ide>
<ide> Compiling
<ide> ---------
<ide... | 1 |
Text | Text | add v3.20.3 to changelog.md | 0bd4855c2d2b77f1b4ad92372a6e7c96d52430a9 | <ide><path>CHANGELOG.md
<ide> - [#19048](https://github.com/emberjs/ember.js/pull/19048) [BUGFIX] Update router.js to ensure transition.abort works for query param only transitions.
<ide> - [#19056](https://github.com/emberjs/ember.js/pull/19056) [BUGFIX] Update glimmer-vm to 0.54.2.
<ide>
<del>### v3.20.2 (July 26, 2... | 1 |
Python | Python | add missing parameters to npyio.genfromtxt, fix | 479437d295edde0158cff805c40fe3e5a17d3954 | <ide><path>numpy/lib/npyio.py
<ide> def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
<ide> The string used to separate values. By default, any consecutive
<ide> whitespaces act as delimiter. An integer or sequence of integers
<ide> can also be provided as width(s) of each field... | 1 |
Javascript | Javascript | ignore textnode's in quoted class ast transform | 9e45c360163b19e9e41e51e8245bd1aa33f7485b | <ide><path>packages/ember-htmlbars/lib/plugins/transform-quoted-class.js
<ide> export default function(ast) {
<ide> var eachValue, currentValue, parts, containsNonStringLiterals;
<ide> var i, l;
<ide> while (eachValue = values[eachIndex]) {
<add> if (eachValue.type === 'TextNode') {
<add> ... | 1 |
Ruby | Ruby | add inbound email | 627bbd34e142fa7caff49fd660a9a586f3ed6826 | <ide><path>app/models/action_mailbox/inbound_email.rb
<add>class ActionMailbox::InboundEmail < ActiveRecord::Base
<add> self.table_name = "action_mailbox_inbound_email"
<add>
<add> after_create_commit :deliver_to_mailroom_later
<add> has_one_attached :raw_message
<add>
<add> enum status: %i[ pending processing deli... | 3 |
Python | Python | add check for ndarray/scalar in build_err_msg | 2e58804fe546bf6d476d09ba186c36a69bc577c4 | <ide><path>numpy/testing/utils.py
<ide> import re
<ide> import operator
<ide> import warnings
<add>from functools import partial
<ide> from .nosetester import import_nose
<del>from numpy.core import float32, empty, arange, array_repr
<add>from numpy.core import float32, empty, arange, array_repr, ndarray
<ide>
<ide> i... | 1 |
Ruby | Ruby | fix rubocop warnings | 0f09674fe61f58572190f263d9173422d4e417d8 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_pour_bottle_dsl
<ide> url "foo-1.0"
<ide> pour_bottle? do
<ide> reason "true reason"
<del> satisfy { var == var }
<add> satisfy { true }
<ide> end
<ide> end
<ide> assert f_true.pour_bottle?
<ide> class Outdat... | 1 |
Python | Python | add status codes as per rfc 6585 | edd8f5963cb32063931a1557d3c6ac29d19b3425 | <ide><path>djangorestframework/status.py
<ide> """
<ide> Descriptive HTTP status codes, for code readability.
<ide>
<del>See RFC 2616 - Sec 10: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
<del>Also see django.core.handlers.wsgi.STATUS_CODE_TEXT
<add>See RFC 2616 - http://www.w3.org/Protocols/rfc2616/rfc2616... | 1 |
Python | Python | use managers for queue synchronization | 5649c70822e0866b4c6ec01bc7706c77599d0d7c | <ide><path>airflow/utils/dag_processing.py
<ide> def end(self):
<ide> self.log.info("Killing manager process: %s", manager_process.pid)
<ide> manager_process.kill()
<ide> manager_process.wait()
<del> self._result_queue.join()
<add> # TODO: bring it back once we replace ... | 1 |
Java | Java | introduce reset() method in contextcache | 2a4f4cd258967494ba41fba1ef48d98fedaf1e85 | <ide><path>spring-test/src/main/java/org/springframework/test/context/ContextCache.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not ... | 4 |
Python | Python | add exception for tf + ntm | ef3ef71ee6836a69201f908c9ea907f08151bfef | <ide><path>keras/datasets/data_utils.py
<ide> def get_file(fname, origin, untar=False):
<ide>
<ide> if not os.path.exists(fpath):
<ide> print('Downloading data from', origin)
<add> global progbar
<ide> progbar = None
<ide>
<ide> def dl_progress(count, block_size, total_size):
<ide>... | 2 |
Python | Python | fix post_process_signature for floating point | b5612acd748b90dc5853cd11f357536a20dba1ec | <ide><path>docs/autogen.py
<ide> def get_class_signature(cls):
<ide>
<ide>
<ide> def post_process_signature(signature):
<del> parts = signature.split('.')
<add> parts = re.split('\.(?!\d)', signature)
<ide> if len(parts) >= 4:
<ide> if parts[1] == 'layers':
<ide> signature = 'keras.layer... | 1 |
Javascript | Javascript | remove unnecessary return values | 3ed1f732211f6f6578014fd86f31978ad905ca82 | <ide><path>client/gatsby-node.js
<ide> exports.createPages = function createPages({ graphql, actions, reporter }) {
<ide> } = edge;
<ide>
<ide> if (!fields) {
<del> return null;
<add> return;
<ide> }
<ide> const { slug, nodeIdentity } = fields;
<ide> ... | 1 |
Ruby | Ruby | fix tests for explain plan + binds | 91d3d00240a2f75c74664580398628207bb7d350 | <ide><path>activerecord/test/cases/explain_test.rb
<ide> def test_collecting_queries_for_explain
<ide>
<ide> sql, binds = queries[0]
<ide> assert_match "SELECT", sql
<del> assert_match "honda", sql
<del> assert_equal [], binds
<add> assert_equal "honda", binds.flatten.last
<add> assert_... | 2 |
Python | Python | fix incorrect comment | dd84fc077eed7d7ac4bbc6c79d5acf3d111d21a0 | <ide><path>numpy/core/arrayprint.py
<ide> def __call__(self, x):
<ide> i = self.imag_format(x.imag)
<ide> return r + i + 'j'
<ide>
<del># for back-compatibility, we keep the classes for each float type too
<add># for back-compatibility, we keep the classes for each complex type too
<ide> class ComplexF... | 1 |
Javascript | Javascript | fix slow iterator for set | b9dabc177570d43dca5390a1b7c8da7fe5d053b9 | <ide><path>src/Set.js
<ide> export class Set extends SetCollection {
<ide> // @pragma Modification
<ide>
<ide> add(value) {
<del> return updateSet(this, this._map.set(value, true));
<add> return updateSet(this, this._map.set(value, value));
<ide> }
<ide>
<ide> remove(value) {
<ide> export class Set exte... | 1 |
Javascript | Javascript | convert tab indent to spaces | 4f45bf1a41cd69a01e76f81438877461a755872a | <ide><path>src/ngRoute/route.js
<ide> function $RouteProvider(){
<ide> for (var i = 1, len = m.length; i < len; ++i) {
<ide> var key = keys[i - 1];
<ide>
<del> var val = m[i];
<add> var val = m[i];
<ide>
<ide> if (key && val) {
<ide> params[key.name] = val; | 1 |
PHP | PHP | fix wildcard events | 36668bfbe3b7de25cd3d27587024057c9e49b056 | <ide><path>src/Illuminate/Events/Dispatcher.php
<ide> class Dispatcher {
<ide> */
<ide> protected $listeners = array();
<ide>
<add> /**
<add> * The wildcard listeners.
<add> *
<add> * @var array
<add> */
<add> protected $wildcards = array();
<add>
<ide> /**
<ide> * The sorted event listeners.
<ide> *
<ide>... | 1 |
PHP | PHP | follow redirects when fetching xml files | 689745d7054fb7adae1b1f1faad99945c1a65521 | <ide><path>lib/Cake/Utility/Xml.php
<ide> public static function build($input, $options = array()) {
<ide> } elseif (file_exists($input)) {
<ide> return self::_loadXml(file_get_contents($input), $options);
<ide> } elseif (strpos($input, 'http://') === 0 || strpos($input, 'https://') === 0) {
<del> $socket = ne... | 1 |
Java | Java | use the diamond syntax | c1d44d9a34a34dd657d113a6e0a45d4704628935 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/MethodOverrides.java
<ide> */
<ide> public class MethodOverrides {
<ide>
<del> private final Set<MethodOverride> overrides =
<del> Collections.synchronizedSet(new LinkedHashSet<MethodOverride>(0));
<add> private final Set<MethodOverride... | 16 |
Javascript | Javascript | remove old seed code | 912e7a5c2f179b4a9526045c7450a3d5b799574b | <ide><path>curriculum/index.js
<del>/* eslint-disable no-process-exit */
<del>require('babel-register');
<del>require('dotenv').load();
<del>const adler32 = require('adler32');
<del>
<del>const Rx = require('rx');
<del>const _ = require('lodash');
<del>const createDebugger = require('debug');
<del>const { dasherize, na... | 1 |
Text | Text | correct apm command | 5091efab8ef2902553a217769435dae610ce011a | <ide><path>docs/proposals/private-beta-tasks.md
<ide> package authors about breaking API changes.
<ide>
<ide> * Finish APM backend (integrate with GitHub Releases)
<ide> * Streamline Dev workflow
<del> * `api create` - create package scaffolding
<add> * `apm create` - create package scaffolding
<ide> * `... | 1 |
Ruby | Ruby | fix undefined method error on exception | f48dc782167fea0a1f13759ed6596a004dd746f3 | <ide><path>activerecord/lib/active_record/tasks/mysql_database_tasks.rb
<ide> def create
<ide> end
<ide> rescue error_class => error
<ide> if error.respond_to?(:errno) && error.errno == ACCESS_DENIED_ERROR
<del> $stdout.print error.error
<add> $stdout.print error.message
<ide> ... | 1 |
Javascript | Javascript | update route-recognizer with wildcard fixes | a5d45f66e1f71bb5eda417c688db0ea08b474903 | <ide><path>packages/ember-routing/lib/vendor/route-recognizer.js
<ide> define("route-recognizer",
<ide>
<ide> charSpec = child.charSpec;
<ide>
<del> if (chars = charSpec.validChars) {
<add> if (typeof (chars = charSpec.validChars) !== 'undefined') {
<ide> if (chars.indexOf(char... | 1 |
Text | Text | update changelog.md for readability | 8e86d161dfba57c8d77a701d92debf19b850c601 | <ide><path>actionview/CHANGELOG.md
<ide>
<ide> *Bernerd Schaefer*
<ide>
<del>* `number_to_currency` and `number_with_delimiter` now accept custom `delimiter_pattern` option
<add>* `number_to_currency` and `number_with_delimiter` now accepts acustom `delimiter_pattern` option
<ide> to handle placement o... | 1 |
Text | Text | improve readability of cachehelper section | 34f5704b8561571c0992b4f1dacff30aacb0e249 | <ide><path>guides/source/action_view_overview.md
<ide> This would add something like "Process data files (0.34523)" to the log, which y
<ide>
<ide> #### cache
<ide>
<del>A method for caching fragments of a view rather than an entire action or page. This technique is useful caching pieces like menus, lists of news top... | 1 |
Text | Text | add benchmarking tutorial | 4c6fec902fcaaebd70716e429fb37914d48f735f | <ide><path>docs/docs/addons-perf.md
<ide> React is usually quite fast out of the box. However, in situations where you nee
<ide>
<ide> In addition to giving you an overview of your app's overall performance, `Perf` is a profiling tool that tells you exactly where you need to put these hooks.
<ide>
<del>See these arti... | 1 |
Mixed | Javascript | change android permission module to use promises | 6df41d518434c22105930462085efe26b65dc328 | <ide><path>Libraries/PermissionsAndroid/PermissionsAndroid.js
<ide> 'use strict';
<ide>
<ide> const DialogManagerAndroid = require('NativeModules').DialogManagerAndroid;
<del>const AndroidPermissions = require('NativeModules').AndroidPermissions;
<add>const Permissions = require('NativeModules').PermissionsAndroid;
<i... | 2 |
Ruby | Ruby | remove test with too much implementation knowledge | 662560e40d347b996efe85313f9be1f852a31fd3 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_class_naming
<ide> assert_equal 'FooBar', Formula.class_s('foo_bar')
<ide> end
<ide>
<del> def test_mirror_support
<del> f = Class.new(Formula) do
<del> url "file:///#{TEST_FOLDER}/bad_url/testball-0.1.tbz"
<del> mirror "file:///#{TEST... | 1 |
Go | Go | do nothing in bulksync if nodes is empty | af3158ecdb75d907df621a9f99cb491cf5b80f6f | <ide><path>libnetwork/networkdb/cluster.go
<ide> func (nDB *NetworkDB) bulkSync(nid string, nodes []string, all bool) ([]string,
<ide> nodes = nDB.mRandomNodes(1, nodes)
<ide> }
<ide>
<add> if len(nodes) == 0 {
<add> return nil, nil
<add> }
<add>
<ide> logrus.Debugf("%s: Initiating bulk sync with nodes %v", nDB.c... | 1 |
Javascript | Javascript | move concat into hooks module | cb7d7cd80b05a6db36974f55894e4e7015148de6 | <ide><path>packages/ember-htmlbars/lib/attr_nodes/concat.js
<ide> */
<ide>
<ide> import SimpleAttrNode from "./simple";
<del>import concat from "ember-htmlbars/system/concat";
<ide> import { create as o_create } from "ember-metal/platform";
<ide>
<ide> function ConcatAttrNode(element, attrName, attrValue, dom) {
<add... | 3 |
Javascript | Javascript | replace the atomapplication test suite | c4f3b519d3801a0037422a7f3b8b921c23d9b2d6 | <ide><path>spec/main-process/atom-application.new.test.js
<del>/* globals assert */
<del>
<del>const path = require('path')
<del>const {EventEmitter} = require('events')
<del>const temp = require('temp').track()
<del>const fs = require('fs-plus')
<del>const electron = require('electron')
<del>const {sandbox} = require(... | 2 |
Text | Text | fix some typos | 4d2af4430080e9c7ed5badc465be0e8f04b4b1a4 | <ide><path>docs/reference/commandline/ps.md
<ide> CONTAINER ID IMAGE COMMAND CREATED
<ide> ```
<ide>
<ide> The following matches containers based on the layer `d0e008c6cf02` or an image
<del>that have this layer in it's layer stack.
<add>that have this layer in its layer stack.
<ide>
... | 1 |
Java | Java | resolve ${...} placeholders in @propertysource | 234bca64624d0fadd0333e1ec3fc2c680308f081 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java
<ide> protected void doProcessConfigurationClass(ConfigurationClass configClass, Annot
<ide> String[] locations = (String[]) propertySourceAttributes.get("value");
<ide> ClassLoader classLoade... | 3 |
PHP | PHP | remove unneeded parent boot calls | d53c56e4e0bdc2b9a3c14511bdcbe48c4914f084 | <ide><path>app/Providers/EventServiceProvider.php
<ide> class EventServiceProvider extends ServiceProvider
<ide> */
<ide> public function boot()
<ide> {
<del> parent::boot();
<del>
<ide> //
<ide> }
<ide> }
<ide><path>app/Providers/RouteServiceProvider.php
<ide> class RouteServiceProvider... | 2 |
Javascript | Javascript | fix layout service | 0c534e1eb8140e09f8d55bba7431fd4116dc9dd6 | <ide><path>src/core/core.layoutService.js
<ide> bottom: 0,
<ide> };
<ide>
<del> box.update(box.options.fullWidth ? chartWidth : maxChartAreaWidth, minBoxSize.minSize.height, scaleMargin);
<add> // Don't use min size here because of label rotation. When the labels are rotated, their rotation high... | 1 |
Javascript | Javascript | remove unnecessary else branch | b98027ee5f4e906c84e8d92e8d76baeefa60b8cf | <ide><path>lib/zlib.js
<ide> function zlibBufferSync(engine, buffer) {
<ide> buffer = processChunkSync(engine, buffer, engine._finishFlushFlag);
<ide> if (engine._info)
<ide> return { buffer, engine };
<del> else
<del> return buffer;
<add> return buffer;
<ide> }
<ide>
<ide> function zlibOnError(message, e... | 1 |
Javascript | Javascript | fix typo in spy name | f69ee170ed1eb2ba3fdde5d91760d2b139b41a4c | <ide><path>test/ng/httpBackendSpec.js
<ide> describe('$httpBackend', function() {
<ide> return {};
<ide> }),
<ide> body: {
<del> appendChild: jasmine.createSpy('body.appendChid').andCallFake(function(script) {
<add> appendChild: jasmine.createSpy('body.appendChild').andCallFake(functio... | 1 |
Text | Text | improve matcher example (resolves ) | 38e4422c0db522e23c86728824ae09966d4ad14c | <ide><path>website/docs/usage/rule-based-matching.md
<ide> match on the uppercase versions, in case someone has written it as "Google i/o".
<ide> ### {executable="true"}
<ide> import spacy
<ide> from spacy.matcher import Matcher
<add>from spacy.tokens import Span
<ide>
<ide> nlp = spacy.load("en_core_web_sm")
<ide> ma... | 1 |
Go | Go | extract volume interaction to a volumes service | e4b6adc88e967971de634596654d9bc33e7bd7e0 | <ide><path>api/server/router/volume/backend.go
<ide> package volume // import "github.com/docker/docker/api/server/router/volume"
<ide> import (
<ide> "context"
<ide>
<add> "github.com/docker/docker/volume/service/opts"
<ide> // TODO return types need to be refactored into pkg
<ide> "github.com/docker/docker/api/ty... | 50 |
Ruby | Ruby | ensure @@homebrew_repository@@ is always relocated | e2d032a6b6c765e0a6311a84a7b70f5ddf12b665 | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> class Keg
<ide> PREFIX_PLACEHOLDER = ""
<ide> CELLAR_PLACEHOLDER = ""
<add> REPOSITORY_PLACEHOLDER = ""
<ide> LIBRARY_PLACEHOLDER = ""
<ide>
<del> # TODO: delete these after Homebrew 2.7.0 is released.
<del> REPOSITORY_PLACEHOLDER = ""
<add> # TODO: delete th... | 1 |
Ruby | Ruby | add missing require | ceba010ea254e987eb266e31c55f45fe51b80713 | <ide><path>activesupport/lib/active_support/notifications/instrumenter.rb
<add>require 'securerandom'
<add>
<ide> module ActiveSupport
<ide> module Notifications
<ide> # Instrumentors are stored in a thread local. | 1 |
PHP | PHP | add new test file | ac78ad07c2a18a18ec7ce93d56824a55d56768bc | <ide><path>build/test/data/text.php
<add>Lorem ipsum dolor sit amet
<add>consectetuer adipiscing elit
<add>Sed lorem leo
<add>lorem leo consectetuer adipiscing elit
<add>Sed lorem leo
<add>rhoncus sit amet
<add>elementum at
<add>bibendum at, eros
<add>Cras at mi et tortor egestas vestibulum
<add>sed Cras at mi vestibul... | 1 |
PHP | PHP | add messege test to allowempty when set as array | d9f362e7ff5da39812a84373b7375084675411be | <ide><path>src/Validation/Validator.php
<ide> public function remove($field, $rule = null)
<ide> */
<ide> public function requirePresence($field, $mode = true, $message = null)
<ide> {
<add> $settingsDefault = [
<add> 'mode' => $mode,
<add> 'message' => $message
<add> ];... | 2 |
Javascript | Javascript | stringify jsonpscripttype option | 21b5a026baa846679cab96f55d9d7ebfb7e34174 | <ide><path>lib/JsonpMainTemplatePlugin.js
<ide> class JsonpMainTemplatePlugin {
<ide> });
<ide> return this.asString([
<ide> "var script = document.createElement('script');",
<del> `script.type = '${jsonpScriptType}';`,
<add> `script.type = ${JSON.stringify(jsonpScriptType)};`,
<ide> "script.charset... | 1 |
PHP | PHP | add tests for url generated with named route | 0ae87e3d3f9aeaeed629fb58f9d108dd9032d193 | <ide><path>tests/TestCase/Routing/RouterTest.php
<ide> public function testUrlGenerationNamedRoute() {
<ide> array('controller' => 'users', 'action' => 'view'),
<ide> array('_name' => 'test')
<ide> );
<add> Router::connect(
<add> '/view/*',
<add> ['action' => 'view'],
<add> ['_name' => 'Articles::view']
... | 1 |
Ruby | Ruby | consolidate sudo checks | 4c9ac19e878750cf2c2832759d9902796079d9f0 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> end
<ide> end unless ARGV.force?
<ide>
<del> if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero?
<del> raise "Cowardly refusing to `sudo brew install'\n#{SUDO_BAD_ERRMSG}"
<del> end
<del>
<ide> install_formulae... | 8 |
Ruby | Ruby | add missing require to active_support/callbacks.rb | 3b3a43eb097a1aac197193fc68269af489504b89 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> require "active_support/core_ext/array/extract_options"
<ide> require "active_support/core_ext/class/attribute"
<ide> require "active_support/core_ext/string/filters"
<add>require "active_support/core_ext/object/blank"
<ide> require "thread"
<ide>
<ide> mo... | 1 |
Text | Text | remove reverted commits from 1.2.4 | 78ba429e6a3269594afbffcca2980e76281c43e0 | <ide><path>CHANGELOG.md
<ide> - **$parse:** micro-optimization for ensureSafeObject function
<ide> ([689dfb16](https://github.com/angular/angular.js/commit/689dfb167924a61aef444ce7587fb987d8080990),
<ide> [#5246](https://github.com/angular/angular.js/issues/5246))
<del>- **$resource:** Use shallow copy instead of ... | 1 |
Javascript | Javascript | provide template inlining | e2b1d9e994e50bcd01d237302a3357bc7ebb6fa5 | <ide><path>src/AngularPublic.js
<ide> function publishExternalAPI(angular){
<ide> input: inputDirective,
<ide> textarea: inputDirective,
<ide> form: ngFormDirective,
<add> script: scriptTemplateLoader,
<ide> select: selectDirective,
<ide> option: op... | 3 |
Javascript | Javascript | fix silly unnecessary defprop | c64b3166dc1d2855266ec2b86a03ec2d786398f1 | <ide><path>packages/ember-metal/lib/meta.js
<ide> export function meta(obj, writable) {
<ide> return ret || EMPTY_META;
<ide> }
<ide>
<del> if (obj.__defineNonEnumerable) {
<del> obj.__defineNonEnumerable(EMBER_META_PROPERTY);
<del> } else {
<del> Object.defineProperty(obj, '__ember_meta__', META_DESC);
... | 1 |
Text | Text | fix formdata example | 3d13b67c562d45434536697bb232e2b1fba8e035 | <ide><path>README.md
<ide> form.append('my_field', 'my value');
<ide> form.append('my_buffer', new Buffer(10));
<ide> form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
<ide>
<del>axios.post('https://example.com', form, { headers: form.getHeaders() })
<add>axios.post('https://example.com', form.getBuffer(), ... | 1 |
Text | Text | add missing period in getting started guide | 25a49953133f40cec4967a67c660332fa51db33c | <ide><path>guides/source/getting_started.md
<ide> These changes will ensure that all articles have a title that is at least five
<ide> characters long. Rails can validate a variety of conditions in a model,
<ide> including the presence or uniqueness of columns, their format, and the
<ide> existence of associated object... | 1 |
Ruby | Ruby | promote log stream to a local | effddda4f9efc336bef6e39eb93a6a9985b3ed44 | <ide><path>Library/Homebrew/formula.rb
<ide> def system cmd, *args
<ide> pid = fork { exec_cmd(cmd, args, rd, wr, logfn) }
<ide> wr.close
<ide>
<del> File.open(logfn, 'w') do |f|
<del> f.puts Time.now, "", cmd, args, ""
<del>
<del> if ARGV.verbose?
<del> while buf = rd.gets
<del... | 1 |
Python | Python | apply renames fixer | ffdad17d0db1d55d39911d637c650ea0acada78b | <ide><path>numpy/core/arrayprint.py
<ide> from .multiarray import format_longfloat, datetime_as_string, datetime_data
<ide> from .fromnumeric import ravel
<ide>
<add>if sys.version_info[0] >= 3:
<add> _MAXINT = sys.maxsize
<add> _MININT = -sys.maxsize - 1
<add>else:
<add> _MAXINT = sys.maxint
<add> _MININT... | 3 |
Text | Text | add link to github-pr-helper | 8383ecfcdfae662e0f3269d333538a55540d9270 | <ide><path>CONTRIBUTING.md
<ide> That's it! Thank you for your contribution!
<ide> When the patch is reviewed and merged, you can safely delete your branch and pull the changes
<ide> from the main (upstream) repository:
<ide>
<del>```shell
<del># Delete the remote branch on Github:
<del>git push origin --delete my-fix... | 1 |
Javascript | Javascript | increase maxbuffer to fix enobufs error | bdf248d4db30fac4a6c23337e5c4db1e2fa6892a | <ide><path>script/lib/compress-artifacts.js
<ide> function compress(inputDirPath, outputArchivePath) {
<ide> }
<ide> compressArguments.push(outputArchivePath, path.basename(inputDirPath));
<ide> spawnSync(compressCommand, compressArguments, {
<del> cwd: path.dirname(inputDirPath)
<add> cwd: path.dirname(inp... | 1 |
Text | Text | make labels and list style consistent | 1676b8477f2f2ae3b6f603a1e89c73400beb156d | <ide><path>CHANGELOG.md
<ide> is `$locals`.
<ide> [#13236](https://github.com/angular/angular.js/issues/13236))
<ide>
<ide>
<del>## Breaking Changes
<del>
<del>
<ide> <a name="1.5.0-beta.2"></a>
<ide> # 1.5.0-beta.2 effective-delegation (2015-11-17)
<ide>
<ide> requirement more strict and alerts the developer ex... | 1 |
Python | Python | apply suggestions from code review | 8d297a801eabaa740fc07d4826cb03951cc1d729 | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_creation_with_list_of_maskedarrays_no_bool_cast(self):
<ide> normal_int = np.arange(2)
<ide> res = np.ma.asarray([masked_str, normal_int])
<ide> assert_array_equal(res.mask, [[True, False], [False, False]])
<del> # Te above only failed... | 1 |
Text | Text | expand bi-directional associations guide [ci skip] | 9e4b3f4e9e23420703bbee01a511f43d513b5841 | <ide><path>guides/source/association_basics.md
<ide> class Book < ApplicationRecord
<ide> end
<ide> ```
<ide>
<del>Active Record will attempt to automatically identify that these two models share a bi-directional association based on the association name. In this way, Active Record will only load one copy of the `Auth... | 1 |
Javascript | Javascript | improve description for reset type flags | ea9bfc70ac7a099d12bd5f42fb7e5633a1596390 | <ide><path>lib/cli.js
<ide> const getArguments = (schema = webpackSchema) => {
<ide> {
<ide> type: "reset",
<ide> multiple: false,
<del> description: `Clear all items provided in configuration. ${description}`,
<add> description: `Clear all items provided in "${schemaPath}" configuration. ${descri... | 1 |
Ruby | Ruby | avoid early return | f6eedf946487980c740f5e0595fb46a5a2710597 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def run
<ide> @status = success ? :passed : :failed
<ide> puts_result
<ide>
<del> return unless File.exist?(log)
<del> @output = File.read(log)
<del> if has_output? and (not success or @puts_output_on_success)
<del> puts @output
<add> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.