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 | update exampleredditapi.md to react 0.14 | 460a4dc9d7c959892a2b06c76a74f376f7799714 | <ide><path>docs/advanced/ExampleRedditAPI.md
<ide> This is the complete source code of the Reddit headline fetching example we buil
<ide> import 'babel-core/polyfill';
<ide>
<ide> import React from 'react';
<add>import { render } from 'react-dom';
<ide> import Root from './containers/Root';
<ide>
<del>React.render(
<... | 1 |
PHP | PHP | use strict comparison | 9eb11508763024f150adefb17c0d8a6632e90a00 | <ide><path>src/Database/Schema/SqliteSchema.php
<ide> public function convertColumnDescription(Table $table, $row) {
<ide> 'null' => !$row['notnull'],
<ide> 'default' => $row['dflt_value'] === null ? null : trim($row['dflt_value'], "'"),
<ide> ];
<del> if ($row['pk'] == true) {
<add> if ($row['pk'] === true) ... | 5 |
PHP | PHP | remove unused variables | c06ea522ca7e553584e7fb0f3726d2c979c25ec5 | <ide><path>tests/Log/LogLoggerTest.php
<ide> public function testListenShortcutFailsWithNoDispatcher()
<ide> $this->expectException(RuntimeException::class);
<ide> $this->expectExceptionMessage('Events dispatcher has not been set.');
<ide>
<del> $writer = new Logger($monolog = m::mock(Monolog::c... | 1 |
Ruby | Ruby | add tests for unless build.with? | ec2b0df10e62152529386cf2a696f9aaece405ea | <ide><path>Library/Homebrew/rubocops/lines_cop.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> problem "Use if #{correct} instead of unless #{m.source}"
<ide> end
<ide>
<del> # find_instance_method_call(body_node, :build, :with?) do |m|
<del> ... | 2 |
Go | Go | check all required fields | 4c69d0dd8ade90b6602147b8dfb8c1f4c267d3bc | <ide><path>integration-cli/docker_cli_info_test.go
<ide> func TestInfoEnsureSucceeds(t *testing.T) {
<ide> t.Fatalf("failed to execute docker info: %s, %v", out, err)
<ide> }
<ide>
<del> stringsToCheck := []string{"Containers:", "Execution Driver:", "Logging Driver:", "Kernel Version:"}
<add> // always shown fields... | 1 |
Java | Java | update copyright date | 88af24c1cb5cb0325c2322e0efdc109e4eceb487 | <ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactory.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licens... | 1 |
PHP | PHP | explain modulus 0 | a3178708884f73448d215d5a06db57166a6412c4 | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function counter($options = [])
<ide> * - `after` Content to be inserted after the numbers, but before the last links.
<ide> * - `model` Model to create numbers for, defaults to PaginatorHelper::defaultModel()
<ide> * - `modulus` How many number... | 1 |
Javascript | Javascript | fix uniforms that need unsharing for outline pass | b01a230aa98d74d2b6bd1d903623a86194b2b767 | <ide><path>examples/js/postprocessing/OutlinePass.js
<ide> THREE.OutlinePass = function ( resolution, scene, camera, selectedObjects ) {
<ide> var MAX_EDGE_GLOW = 4;
<ide>
<ide> this.separableBlurMaterial1 = this.getSeperableBlurMaterial(MAX_EDGE_THICKNESS);
<del> this.separableBlurMaterial1.uniforms[ "texSize" ].va... | 1 |
Java | Java | fix timing issue with obtaining async result | 705efc5bdf7971cde7a1de1b05b437cea557eee9 | <ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/DefaultMvcResult.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 2 |
Ruby | Ruby | ensure cmake uses the desired sdk | 2592b937706a4393ad2f275da32ae9dab48e594d | <ide><path>Library/Homebrew/formula.rb
<ide> def std_cmake_args
<ide> # CMake cache entries for other weak symbols may be added here as needed.
<ide> args << "-DHAVE_CLOCK_GETTIME:INTERNAL=0" if MacOS.version == "10.11" && MacOS::Xcode.version >= "8.0"
<ide>
<add> # Ensure CMake is using the same SDK we are... | 1 |
Python | Python | fix formatting errors | 0bac2ade9154b4c1a267990238e2ab84931a0cb4 | <ide><path>tests/test_user_error_handler.py
<ide>
<ide>
<ide> def test_error_handler_subclass():
<del> app = flask.Flask(__name__)
<add> app = flask.Flask(__name__)
<ide>
<del> class ParentException(Exception):
<del> pass
<add> class ParentException(Exception):
<add> pass
<ide>
<del> class ChildExcept... | 1 |
PHP | PHP | remove unnecessary comments from input class | 0e02a8a53df9a11d8fa88ca5ebfde8615e96605e | <ide><path>system/input.php
<ide> public static function had($key)
<ide> /**
<ide> * Get input data from the previous request.
<ide> *
<del> * Since input data is flashed to the session, a session driver must be specified
<del> * in order to use this method.
<del> *
<ide> * @param string $key
<ide> * @par... | 1 |
Javascript | Javascript | change some magic numbers to hoist exports | a952bb99a6830804d06c5b8e04b75c66100fbae9 | <ide><path>lib/dependencies/HarmonyCompatibilityDependency.js
<ide> HarmonyCompatibilityDependency.Template = class HarmonyExportDependencyTemplate
<ide> if(usedExports && !Array.isArray(usedExports)) {
<ide> const exportName = dep.originModule.exportsArgument || "exports";
<ide> const content = `Object.defineP... | 5 |
Javascript | Javascript | allow periods in doc shortnames | 95102a5afef6a6f36aefd3d3590e305cc972881d | <ide><path>docs/src/ngdoc.js
<ide> function scenarios(docs){
<ide> function metadata(docs){
<ide> var pages = [];
<ide> docs.forEach(function(doc){
<del> var path = (doc.name || '').split(/(\.|\:\s*)/);
<add> var path = (doc.name || '').split(/(\:\s*)/);
<ide> for ( var i = 1; i < path.length; i++) {
<ide... | 1 |
Ruby | Ruby | update connection_pool docs | b00fc77f772260eb23d120b2c4d19b346293ad69 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def async_executor; end
<ide> # handle cases in which there are more threads than connections: if all
<ide> # connections have been checked out, and a thread tries to checkout a
<ide> # connection anyway, then Co... | 1 |
Javascript | Javascript | increase coverage internal readline | f77bb3cb0043f1f7908fa668b40052c331e5af50 | <ide><path>test/parallel/test-readline-keys.js
<ide> addTest('\n\r\t', [
<ide> ]);
<ide>
<ide> // space and backspace
<del>addTest('\b\x7f\x1b\b\x1b\x7f \x1b ', [
<add>addTest('\b\x7f\x1b\b\x1b\x7f\x1b\x1b \x1b ', [
<ide> { name: 'backspace', sequence: '\b' },
<ide> { name: 'backspace', sequence: '\x7f' },
<ide> ... | 1 |
Ruby | Ruby | move tests to namespace | 79173314dea2fa02f54fb1cc9316a9ce1838b86c | <ide><path>activerecord/test/cases/encryption/concurrency_test.rb
<ide> require "cases/encryption/helper"
<ide> require "models/post"
<ide>
<del>module ActiveRecord::Encryption
<del> class ConcurrencyTest < ActiveRecord::TestCase
<del> setup do
<del> ActiveRecord::Encryption.config.support_unencrypted_data = ... | 9 |
Text | Text | use vercel.app for blog starter url | 817cffdcbe6149b78d52a43d6d28da3b0e4ab3dd | <ide><path>docs/basic-features/data-fetching.md
<ide> description: 'Next.js has 2 pre-rendering modes: Static Generation and Server-si
<ide> <summary><b>Examples</b></summary>
<ide> <ul>
<ide> <li><a href="https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress">WordPress Example</a> (<a href="http... | 3 |
Text | Text | use shields.io image | 18c93912180aa93d1120495d4f7e47d7bed025f4 | <ide><path>README.md
<ide> Send a description of the issue via email to [rest-framework-security@googlegrou
<ide>
<ide> [build-status-image]: https://secure.travis-ci.org/tomchristie/django-rest-framework.svg?branch=master
<ide> [travis]: http://travis-ci.org/tomchristie/django-rest-framework?branch=master
<del>[cover... | 1 |
Java | Java | support multiple sources | c61aafe95db4ad26b78650c4156250a6e730f736 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/DrawImage.java
<ide> import android.content.Context;
<ide>
<ide> import com.facebook.drawee.drawable.ScalingUtils.ScaleType;
<add>import com.facebook.react.bridge.ReadableArray;
<ide>
<ide> /**
<ide> * Common interface for DrawImageWithPipeline and DrawIm... | 5 |
Javascript | Javascript | reduce sortableset memory consumption | a4fec7932e45ad357ca44ae869f7f9c29c926e2e | <ide><path>lib/util/SortableSet.js
<ide> "use strict";
<ide>
<del>module.exports = class SortableSet extends Set {
<add>class SortableSet extends Set {
<ide>
<ide> constructor(initialIterable, defaultSort) {
<ide> super(initialIterable);
<ide> this._sortFn = defaultSort;
<ide> this._lastActiveSortFn = null;
<d... | 1 |
Javascript | Javascript | fix jpx colors | 9457095c9c89b7362b4847b83449719b374547cb | <ide><path>src/core/jpx.js
<ide> var JpxImage = (function JpxImageClosure() {
<ide> 'HL': 1,
<ide> 'HH': 2
<ide> };
<add> var TransformType = {
<add> IRREVERSIBLE: 0,
<add> REVERSIBLE: 1
<add> };
<ide> function JpxImage() {
<ide> this.failOnCorruptedImage = false;
<ide> }
<ide> var JpxImage = ... | 1 |
Python | Python | set version to v2.1.0.dev0 | f55a52a2ddb8adbb2be23d0e0c77e367829a0038 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a13"
<add>__version__ = "2.1.0.dev0"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Ruby | Ruby | fix cross-references in httphelper methods | 49744bdaee899d64f8c70f65b2c1d63ace41cafa | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def define_generate_prefix(app, name)
<ide>
<ide> module HttpHelpers
<ide> # Define a route that only recognizes HTTP GET.
<del> # For supported arguments, see +match+.
<add> # For supported arguments, see <tt>Base#match</tt>... | 1 |
Python | Python | import abc from collections.abc | 46e34ab4fbfa6a861920b7870e95f370df4c70bc | <ide><path>airflow/utils/email.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide>
<del>import collections
<add>import collections.abc
<ide> import logging
<ide> import os
<ide> import smtplib | 1 |
Python | Python | fix pretrain script | 2ddd4288349db030e33335dfadc218b950b0e45e | <ide><path>spacy/cli/pretrain.py
<ide>
<ide> import spacy
<ide> from spacy.attrs import ID
<del>from spacy.util import minibatch_by_words, use_gpu, compounding, ensure_path
<add>from spacy.util import minibatch, minibatch_by_words, use_gpu, compounding, ensure_path
<ide> from spacy._ml import Tok2Vec, flatten, chain, ... | 1 |
Javascript | Javascript | use document from store context | d263ed4ed7fe2c992477889753c7ec8bc7305a27 | <ide><path>client/src/redux/createStore.js
<ide> import { isBrowser } from '../../utils';
<ide>
<ide> const clientSide = isBrowser();
<ide>
<del>const sagaMiddleware = createSagaMiddleware();
<add>const sagaMiddleware = createSagaMiddleware({
<add> context: {
<add> document: clientSide ? document : {}
<add> }
<a... | 2 |
Javascript | Javascript | fix finger print, remove unused code | eba8f5a22cc8997a73947ba5cc023edf8c50cc9d | <ide><path>src/worker.js
<ide> var WorkerMessageHandler = {
<ide> pdfModel = new PDFDocument(new Stream(data));
<ide> var doc = {
<ide> numPages: pdfModel.numPages,
<del> fingerprint: pdfModel.fingerprint,
<add> fingerprint: pdfModel.getFingerprint(),
<ide> destinations: pdfMod... | 2 |
PHP | PHP | fix job release on exception | b27f967b43e9b1bb54fc68bb07e65023e866d0c7 | <ide><path>src/Illuminate/Queue/Worker.php
<ide> protected function handleJobException($connectionName, $job, WorkerOptions $opti
<ide> // If we catch an exception, we will attempt to release the job back onto the queue
<ide> // so it is not lost entirely. This'll let the job be retried at a lat... | 2 |
Java | Java | fix checkstyle violation | b5fba14ab8396fb50b9ec3e6b19dea9f1c74b350 | <ide><path>spring-test/src/test/java/org/springframework/test/context/support/TestConstructorUtilsTests.java
<ide> import org.springframework.test.context.TestConstructor;
<ide>
<ide> import static org.assertj.core.api.Assertions.assertThat;
<del>import static org.springframework.test.context.TestConstructor.TEST_CONS... | 1 |
Javascript | Javascript | use a proper lognormal cdf approximation | cdbb9b78384e9a7cfae8f26630cad322afd0d339 | <ide><path>test/math/random-test.js
<ide> var suite = vows.describe("d3.random");
<ide> * @see http://www.johndcook.com/Beautiful_Testing_ch10.pdf
<ide> */
<ide>
<del>// Arbitrarily chosen parameters for the normal RNG. It's good practice to set
<del>// |STDDEV| << |MEAN| to help catch bugs involving accidental swap... | 1 |
PHP | PHP | make contains() non-recursive | 885d5dfd802a699fbb2f4813f64cebb1815307a9 | <ide><path>lib/Cake/Test/Case/Utility/Set2Test.php
<ide> public function testNormalize() {
<ide> */
<ide> public function testContains() {
<ide> $data = array('apple', 'bee', 'cyclops');
<del> // $this->assertTrue(Set2::contains($data, array('apple')));
<del> // $this->assertFalse(Set2::contains($data, array('dat... | 2 |
Text | Text | update examples in builder.md | 744cf2c9718a43aad21c6dee53a07856ef06fc79 | <ide><path>docs/reference/builder.md
<ide> of this dockerfile is that second and third lines are considered a single
<ide> instruction:
<ide>
<ide> ```Dockerfile
<del>FROM windowsservercore
<add>FROM microsoft/nanoserver
<ide> COPY testfile.txt c:\\
<ide> RUN dir c:\
<ide> ```
<ide> Results in:
<ide>
<ide> PS C:\... | 1 |
Ruby | Ruby | fix issue with params in url_for | e492c446d520e8941624564b157b297cfd0aeaa9 | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> def url_for(options = {})
<ide> path = options.delete(:script_name).to_s.chomp("/")
<ide> path << options.delete(:path).to_s
<ide>
<del> params = options[:params] || {}
<add> params = options[:params].is_a?(Hash) ? optio... | 2 |
Javascript | Javascript | revert two missed files | 197f989c1ade6da99d5c1a21d1c1eaf4bbe26b21 | <ide><path>src/test/locale/de-at.js
<ide> test('weeks year starting sunday formatted', function (assert) {
<ide> assert.equal(moment([2012, 0, 9]).format('w ww wo'), '2 02 2.', 'Jan 9 2012 should be week 2');
<ide> assert.equal(moment([2012, 0, 15]).format('w ww wo'), '2 02 2.', 'Jan 15 2012 should be week 2')... | 2 |
Python | Python | improve test slightly | 7e5f63a59596a7951af4ccfb286cc831c3972822 | <ide><path>spacy/tests/regression/test_issue587.py
<ide> import spacy
<ide> import spacy.matcher
<add>from spacy.attrs import IS_PUNCT, ORTH
<ide>
<ide> import pytest
<ide>
<ide> def test_matcher_segfault():
<ide> nlp = spacy.load('en', parser=False, entity=False)
<ide> matcher = spacy.matcher.Matcher(nlp.voc... | 1 |
Javascript | Javascript | fix greek characters | 0d67dea6b1a0fbf3eb26c432c41a680c1124f85e | <ide><path>examples/js/loaders/SVGLoader.js
<ide> THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
<ide> var cxp = q * rx * y1p / ry;
<ide> var cyp = - q * ry * x1p / rx;
<ide>
<del> // Step 3: Compute (cx, cy) from (cxâ², cyâ²)
<add> // Step 3: Compute (cx, cy) from (cx', c... | 1 |
Python | Python | fix crash on 0d return value in apply_along_axis | 52988ea98120c10a927325401257eb3715a51b15 | <ide><path>numpy/lib/shape_base.py
<ide> from numpy.core.numeric import (
<ide> asarray, zeros, outer, concatenate, isscalar, array, asanyarray
<ide> )
<del>from numpy.core.fromnumeric import product, reshape
<add>from numpy.core.fromnumeric import product, reshape, transpose
<ide> from numpy.core import vstack... | 2 |
Ruby | Ruby | fix uninitialized ivar | 8234ac22e9c797a6f50ff9bf496bf789fa7bf901 | <ide><path>Library/Homebrew/formula_lock.rb
<ide> class FormulaLock
<ide> def initialize(name)
<ide> @name = name
<ide> @path = LOCKDIR.join("#{@name}.brewing")
<add> @lockfile = nil
<ide> end
<ide>
<ide> def lock | 1 |
Javascript | Javascript | reuse local "hash" variable | 5cbb34a841ed22c495761e6a924f36a7051ee7bc | <ide><path>packages/ember-handlebars/lib/helpers/action.js
<ide> ActionHelper.registerAction = function(actionName, eventName, target, view, cont
<ide>
<ide> EmberHandlebars.registerHelper('action', function(actionName, options) {
<ide> var hash = options.hash || {},
<del> eventName = options.hash.on || "click"... | 1 |
Ruby | Ruby | prepare inline patch specs | 644ae115f56de90a72ab0fac68d5bdac906cf82e | <ide><path>Library/Homebrew/test/rubocops/patches_spec.rb
<ide> def patches
<ide> end
<ide> end
<ide>
<add> context "When auditing inline patches" do
<add> it "reports no offenses for valid inline patches" do
<add> expect_no_offenses(<<~RUBY)
<add> class Foo < Formula
<add> url 'https://... | 1 |
PHP | PHP | add macros to tables | 906d0d851e182ee832100af207a555e6919acf65 | <ide><path>laravel/database/schema/table.php
<ide> class Table {
<ide> */
<ide> public $commands = array();
<ide>
<add> /**
<add> * The registered custom macros.
<add> *
<add> * @var array
<add> */
<add> public static $macros = array();
<add>
<add> /**
<add> * Registers a custom macro.
<add> *
<add> * @param... | 1 |
Text | Text | fix "summary" block titles | 7e949501d60eb201194277668ef052f9f06904c1 | <ide><path>docs/tutorials/essentials/part-1-overview-concepts.md
<ide> Here's what that data flow looks like visually:
<ide>
<ide> Redux does have a number of new terms and concepts to remember. As a reminder, here's what we just covered:
<ide>
<del>:::Summary
<add>:::tip Summary
<ide>
<ide> - **Redux is a library f... | 14 |
Ruby | Ruby | fix info --github | faaac9482efdc35268382b65dcea41a274ea4846 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def github_info f
<ide> path = "Library/Formula/#{path.basename}"
<ide> end
<ide>
<del> "From: https://github.com/#{user}/#{repo}/commits/master/#{path}"
<add> "https://github.com/#{user}/#{repo}/commits/master/#{path}"
<ide> end
<ide>
<ide> def info_f... | 1 |
Text | Text | adjust text to code example | 2400fcb432d4bce68abfbe54cbc9cc8c930c381f | <ide><path>docs/general/fonts.md
<ide>
<ide> There are special global settings that can change all of the fonts on the chart. These options are in `Chart.defaults.font`. The global font settings only apply when more specific options are not included in the config.
<ide>
<del>For example, in this chart the text will a... | 1 |
Javascript | Javascript | incapsulate tag variable | 432d338f9a457551591cfdceef71de95ce0b096f | <ide><path>lib/optimize/InnerGraph.js
<ide> exports.getExportDependentDependencies = state => {
<ide> };
<ide>
<ide> /**
<del> * @param {ParserState} state parser state
<add> * @param {TODO} parser parser
<ide> * @param {string} name symbol name
<ide> * @returns {TopLevelSymbol} usage data
<ide> */
<del>exports.cre... | 2 |
Text | Text | add a guide for the live ui and live api | c1475819b2e2983ece6e0c42ae7a29daaf4ae51b | <ide><path>docs/guides/live.md
<add># The live user interface and API in Video.js
<add>> Note the the "old" live user interface is currently the default, see the section on [the new user interface](#the-new-user-interface) for information on setting that up.
<add>
<add>
<add>## The default live user interface
<add>The ... | 1 |
Text | Text | fix typo in with-unstated/readme.md | a1dc5588c2bbbecf2ee164206879562a387c7f89 | <ide><path>examples/with-unstated/README.md
<ide>
<ide> This example shows how to integrate [Unstated Next](https://github.com/jamiebuilds/unstated-next) with Next.js.
<ide>
<del>There are two pages, `/` and `/about`, both render a counter and a timer, the state is saved for the current page and resetted when switchi... | 1 |
Go | Go | fix the regexp for matching an ip address | e5d44569fb15a0a0b66437104615ccc97bdde076 | <ide><path>libnetwork/resolvconf/dns/resolvconf.go
<ide> import (
<ide> )
<ide>
<ide> // IPLocalhost is a regex patter for localhost IP address range.
<del>const IPLocalhost = `((127\.([0-9]{1,3}.){2}[0-9]{1,3})|(::1))`
<add>const IPLocalhost = `((127\.([0-9]{1,3}\.){2}[0-9]{1,3})|(::1))`
<ide>
<ide> var localhostIPR... | 1 |
Java | Java | update copyright of change file | 87c0e9b48a3e2219de75fb517a700d360acc3b32 | <ide><path>spring-web/src/test/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactoryTests.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lic... | 1 |
PHP | PHP | use config instead of middleware property | 860ec9f2a48c65d30998942263a4f9a849e9b0a0 | <ide><path>app/Http/Middleware/HandleCors.php
<ide>
<ide> class HandleCors extends Middleware
<ide> {
<del> /**
<del> * The paths to enable CORS on.
<del> * Example: ['api/*']
<del> *
<del> * @var array
<del> */
<del> protected $paths = [];
<add>
<ide> }
<ide><path>config/cors.php
<add><?php
... | 3 |
Javascript | Javascript | fix move gesture handling | e0d53e1c48d34419ea9a0622bd9b360c51ec3b78 | <ide><path>Libraries/CustomComponents/Navigator/Navigator.js
<ide> var Navigator = React.createClass({
<ide> });
<ide> this.panGesture = PanResponder.create({
<ide> onMoveShouldSetPanResponder: this._handleMoveShouldSetPanResponder,
<del> onPanResponderGrant: this._handlePanResponderGrant,
<ide> ... | 1 |
Text | Text | add changes " define " to article. | 7bd91ddffdcd63dc81b09472f61c3c6f3c2f838e | <ide><path>guide/english/product-design/brand-identity/index.md
<ide> title: Brand Identity
<ide>
<ide> ## Brand Identity
<ide>
<add>Brand identity is how a business presents itself to, and wants to be perceived by, its consumers.
<add>
<ide> Brand identity is the face of a brand. While a brand is an emotional and ev... | 1 |
Ruby | Ruby | add glibc to os.version on linux | 4e94f75bcb10971ef421e075f297a4e35d52fcd1 | <ide><path>Library/Homebrew/github_packages.rb
<ide> def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:)
<ide> end
<ide> raise TypeError, "unknown tab['built_on']['os']: #{tab["built_on"]["os"]}" if os.blank?
<ide>
<del> os_version = if tab["built_on"].present? && tab["bui... | 1 |
Ruby | Ruby | remove unneeded objectwrapper class | df36a6f7598a7e963fb3d79fb48fd1c073045a43 | <ide><path>actionpack/lib/action_controller/base.rb
<ide> def render(options = nil, extra_options = {}, &block) #:doc:
<ide> else
<ide> render_for_text(
<ide> @template.send!(:render_partial, partial,
<del> ActionView::Base::ObjectWrapper.new(options[:object]), o... | 3 |
Java | Java | implement cloning for all reactshadownodes | 62efff8ab8e05d27da24e50d1751660138a8ac76 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java
<ide> private static class MutableYogaValue {
<ide> float value;
<ide> YogaUnit unit;
<ide>
<add> private MutableYogaValue() { }
<add>
<add> private MutableYogaValue(MutableYogaValue mutableYogaValue) {
<add> th... | 12 |
Mixed | Python | update a3c_cartpole.py to tf2.x | 8722f59f87acc4c386c10bb7bf5c0f73c6469812 | <ide><path>research/a3c_blogpost/README.md
<ide> In order to run this code, you will need the following prerequisites:
<ide>
<ide> * [OpenAI Gym](https://github.com/openai/gym) - `pip install gym`
<ide> * [pyglet](https://bitbucket.org/pyglet/pyglet/wiki/Home) - `pip install pyglet`
<del>* [TensorFlow](https://www.te... | 2 |
Text | Text | fix changelog entry [ci skip] | d7d228402efd1ddbbdb2b15d2e91ec22693b9298 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<del>* `CollectionAssociation#count` returns 0 without querying if the
<del> parent record is new.
<add>* `CollectionAssociation#count` returns `0` without querying if the
<add> parent record is not persisted.
<ide>
<ide> Be... | 1 |
Ruby | Ruby | remove @secure ivar | aad33d5808a8c5fd10732db1045fb3367a4e72f4 | <ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb
<ide> def exists?
<ide> class NullCookieJar < ActionDispatch::Cookies::CookieJar #:nodoc:
<ide> def self.build(request)
<ide> host = request.host
<del> secure = request.ssl?
<ide>
<d... | 2 |
Javascript | Javascript | use d3.quantile in d3.chart.box | c6c70d4730e182cae80277f0dc7ba1fb04cf296e | <ide><path>d3.chart.js
<ide> function d3_chart_boxWhiskers(d) {
<ide> }
<ide>
<ide> function d3_chart_boxQuartiles(d) {
<del> // TODO avoid sorting data twice?
<del> var n = d.length;
<del> return [.25, .5, .75].map(function(q) {
<del> q *= n;
<del> return ~~q === q ? (d[q] + d[q + 1]) / 2 : d[Math.round(q)];... | 3 |
Java | Java | add a compiler for spel | 2eeb2e92359381328789585233e54c9bbd41e6dc | <ide><path>spring-expression/src/main/java/org/springframework/expression/CompilablePropertyAccessor.java
<add>/*
<add> * Copyright 2014 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License... | 47 |
Javascript | Javascript | add testid prop to button component | 5fdd6b33fa79189c124c122381bdbc35a855ae33 | <ide><path>Libraries/Components/Button.js
<ide> class Button extends React.Component {
<ide> color?: ?string,
<ide> accessibilityLabel?: ?string,
<ide> disabled?: ?boolean,
<add> testID?: ?string,
<ide> };
<ide>
<ide> static propTypes = {
<ide> class Button extends React.Component {
<ide> * Han... | 1 |
Python | Python | remove redundant check if method=='delete' | c30712a5c8e89c7d3e235c72867288a4cb5c8c85 | <ide><path>rest_framework/renderers.py
<ide> def get_form(self, view, method, request):
<ide> fields[k] = forms.CharField()
<ide>
<ide> OnTheFlyForm = type("OnTheFlyForm", (forms.Form,), fields)
<del> if obj and not view.request.method == 'DELETE': # Don't fill in the form when the obje... | 1 |
Mixed | Javascript | simplify test skipping | 2d2986ae72f2f5c63d95a94f05fa996d9f0609f1 | <ide><path>test/abort/test-abort-backtrace.js
<ide> 'use strict';
<ide> const common = require('../common');
<add>if (common.isWindows)
<add> common.skip('Backtraces unimplemented on Windows.');
<add>
<ide> const assert = require('assert');
<ide> const cp = require('child_process');
<ide>
<del>if (common.isWindows) {... | 300 |
PHP | PHP | check datatype for localizedtime cakephp | 7e4d7d13217190a5771ed8da6eec6a466407d2d8 | <ide><path>src/Validation/Validation.php
<ide> public static function localizedTime($check, string $type = 'datetime', $format
<ide> if ($check instanceof DateTimeInterface) {
<ide> return true;
<ide> }
<del> if (is_object($check)) {
<add> if (!is_string($check)) {
<ide> ... | 1 |
Text | Text | fix a typo in docs | bc139c29b77d0abcc73217b12bde3d2582a79b87 | <ide><path>docs/advanced-features/custom-server.md
<ide> description: Start a Next.js app programmatically using a custom server.
<ide> <li><a href="https://github.com/zeit/next.js/tree/canary/examples/custom-server-express">Express integration</a></li>
<ide> <li><a href="https://github.com/zeit/next.js/tree/ca... | 1 |
Ruby | Ruby | improve various examples and api description texts | 6547e6897cb07f73f05c13eef3bd6d211ec6dafd | <ide><path>activerecord/lib/active_record/base.rb
<ide> def update(id, attributes)
<ide> # is executed on the database which means that no callbacks are fired off running this. This is an efficient method
<ide> # of deleting records that don't need cleaning up after or other actions to be taken.
<ide> ... | 1 |
Text | Text | add "math planet" | 70841e6497ec3019ba428128ed5c25429ff8a3d8 | <ide><path>guide/english/mathematics/algebra/index.md
<ide> Linear algebra: the study of vector spaces and linear mappings.
<ide> <!-- Please add any articles you think might be helpful to read before writing the article -->
<ide> [Wikipedia article](https://en.wikipedia.org/wiki/Algebra)
<ide> [Learn algebra on Khan... | 1 |
Javascript | Javascript | fix invalid octal number | 35c0d2304fc43e2a2371ab7f16a0adf3981efa1c | <ide><path>test/moment/create.js
<ide> exports.create = {
<ide> },
<ide>
<ide> "parsing iso" : function (test) {
<del> var offset = moment([2011, 9, 08]).zone(),
<add> var offset = moment([2011, 9, 8]).zone(),
<ide> pad = function (input) {
<ide> if (input < 10) {
<ide... | 1 |
Text | Text | update the security policy | 6f0d2fa502c75f73d1d54e6d9abe49b6c9edfd31 | <ide><path>docs/security.md
<del># Security Policy
<add># freeCodeCamp.org's Security Policy
<ide>
<ide> This document outlines our security policy for the codebases, platforms that we operate, and how to report vulnerabilities.
<ide>
<ide> ## Reporting a Vulnerability
<ide>
<del>If you think you have found a vulner... | 1 |
Go | Go | use containerd/sys to detect usernamespaces | f7d5d70e44e3717f308c43b35aca5968ee8df4f1 | <ide><path>pkg/archive/archive_linux_test.go
<ide> import (
<ide> "syscall"
<ide> "testing"
<ide>
<add> "github.com/containerd/containerd/sys"
<ide> "github.com/docker/docker/pkg/reexec"
<ide> "github.com/docker/docker/pkg/system"
<ide> "github.com/moby/sys/mount"
<del> rsystem "github.com/opencontainers/runc/lib... | 4 |
Ruby | Ruby | remove unecessary config_accessors | e6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6 | <ide><path>actionpack/lib/abstract_controller/rendering.rb
<ide> module Rendering
<ide> include AbstractController::ViewPaths
<ide>
<ide> included do
<del> config_accessor :protected_instance_variables, :instance_reader => false
<add> class_attribute :protected_instance_variables
<ide> self.pro... | 3 |
Python | Python | fix dummy creation script | 032d63b97657d802362a707f57641ad702d5a0df | <ide><path>utils/check_dummies.py
<ide> _re_backend = re.compile(r"is\_([a-z_]*)_available()")
<ide> # Matches from xxx import bla
<ide> _re_single_line_import = re.compile(r"\s+from\s+\S*\s+import\s+([^\(\s].*)\n")
<del>_re_test_backend = re.compile(r"^\s+if\s+is\_[a-z]*\_available\(\)")
<add>_re_test_backend = re.com... | 1 |
PHP | PHP | allow newlines in confirm messages | 6790a901a553b54cc60c5cf8689b72f416a1f95a | <ide><path>src/View/Helper.php
<ide> public function __get($name)
<ide> */
<ide> protected function _confirm($message, $okCode, $cancelCode = '', $options = [])
<ide> {
<del> $message = json_encode($message);
<add> $message = str_replace('\n', "\n", json_encode($message));
<ide> $conf... | 2 |
Go | Go | use go-generate to build volume/driver/proxy.go | 88e4dff9a966485413d4acc1ecd99de6a6574e10 | <ide><path>volume/drivers/api.go
<add>//go:generate pluginrpc-gen -i $GOFILE -o proxy.go -type VolumeDriver -name VolumeDriver
<add>
<ide> package volumedrivers
<ide>
<ide> import "github.com/docker/docker/volume"
<ide>
<del>type client interface {
<del> Call(string, interface{}, interface{}) error
<del>}
<del>
<ide>... | 2 |
Javascript | Javascript | make reloads faster for simple file changes | 5df9c673517fe14c64762ad979c2c50adca5b41e | <ide><path>packager/react-packager/src/Bundler/Bundle.js
<ide> class Bundle extends BundleBase {
<ide> this._addRequireCall(super.getMainModuleId());
<ide> }
<ide>
<del> super.finalize();
<add> super.finalize(options);
<ide> }
<ide>
<ide> _addRequireCall(moduleId) {
<ide><path>packager/react-packa... | 6 |
Javascript | Javascript | update collada exporter to export lightmap uvs | b886901e6ce83ff42b2286879c58c586e5f2f835 | <ide><path>examples/jsm/exporters/ColladaExporter.js
<ide> ColladaExporter.prototype = {
<ide> triangleInputs += `<input semantic="TEXCOORD" source="#${ uvName }" offset="0" set="0" />`;
<ide>
<ide> }
<add>
<add> // serialize lightmap uvs
<add> if ( 'uv2' in bufferGeometry.attributes ) {
<add> v... | 1 |
Text | Text | add link to systemd article, fix typo | b9e6be25d1afbf04a3455ff55394bd9037238b2c | <ide><path>docs/installation/debian.md
<ide> To verify that everything has worked as expected:
<ide> This command downloads and runs the `hello-world` image in a container. When the
<ide> container runs, it prints an informational message. Then, it exits.
<ide>
<add>If you need to add an HTTP Proxy, set a different di... | 1 |
Javascript | Javascript | add deprecation to `name_key` | 914f3cc37763cad7d48a22fef65d979743d5a26e | <ide><path>packages/ember/index.js
<ide> Ember.canInvoke = utils.canInvoke;
<ide> Ember.tryInvoke = utils.tryInvoke;
<ide> Ember.wrap = utils.wrap;
<ide> Ember.uuid = utils.uuid;
<del>Ember.NAME_KEY = utils.NAME_KEY;
<add>
<add>Object.defineProperty(Ember, 'NAME_KEY', {
<add> enumerable: false,
<add> get() {
<add> ... | 2 |
Java | Java | fix race condition on startsurface | 74a756846fdab1ef7d183c4df3069a23fcd0d49e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public void showDevOptionsDialog() {
<ide> }
<ide>
<ide> private void clearReactRoot(ReactRoot reactRoot) {
<add> if (ReactFeatureFlags.enableStartSurfaceRaceConditionFix) {
<add> reactRoot.getState().compareAndSet(Rea... | 4 |
PHP | PHP | add additional tests to verify listener identity | e79c9f76ba84c49f23d99e00ce61706607abaab2 | <ide><path>Cake/Test/TestCase/ORM/BehaviorRegistryTest.php
<ide> public function testLoadBindEvents() {
<ide> $this->Behaviors->load('Sluggable');
<ide> $result = $this->EventManager->listeners('Model.beforeFind');
<ide> $this->assertCount(1, $result);
<add> $this->assertInstanceOf('TestApp\Model\Behavior\Slugga... | 1 |
Python | Python | add direction in security_group_rule creation | 33e694f37876693ec2bcb772684900f1ef3d38a1 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def ex_create_security_group_rule(self, security_group, ip_protocol,
<ide> return self._to_security_group_rule(self.network_connection.request(
<ide> '/v2.0/security-group-rules', method='POST',
<ide> data={'security_group_rule': {
<... | 1 |
Text | Text | add v3.13.4 to changelog | 93b2e873acd01347b5f792e233d6417a2670003d | <ide><path>CHANGELOG.md
<ide> - [#18381](https://github.com/emberjs/ember.js/pull/18381) Drop Node 6 and 11 support.
<ide> - [#18410](https://github.com/emberjs/ember.js/pull/18410) Use ember-cli-htmlbars for inline precompilation if possible.
<ide>
<add>### v3.13.4 (October 29,2019)
<add>
<add>- [#18476](https://gith... | 1 |
Javascript | Javascript | fix two overflow cases in sourcemap vlq decoding | 0214b90308404b18efd60ce07cb89014073ee161 | <ide><path>lib/internal/source_map/source_map.js
<ide> function decodeVLQ(stringCharIterator) {
<ide>
<ide> // Fix the sign.
<ide> const negative = result & 1;
<del> result >>= 1;
<del> return negative ? -result : result;
<add> // Use unsigned right shift, so that the 32nd bit is properly shifted to the
<add> ... | 2 |
Javascript | Javascript | compile only content | c2989f6cc6ea8be34101b9ab9bc25d14a2468e20 | <ide><path>src/widgets.js
<ide> var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile'
<ide> var srcExp = attr.src,
<ide> scopeExp = attr.scope || '',
<ide> autoScrollExp = attr.autoscroll;
<del> if (!element[0]['ng:compiled']) {
<del> element[0]['ng:compi... | 2 |
PHP | PHP | remove extra space | 4e8fe094179116471e64c336d8516d4dd483e6ea | <ide><path>src/Illuminate/Cache/RedisTaggedCache.php
<ide> public function forever($key, $value)
<ide> {
<ide> $this->pushForeverKeys($namespace = $this->tags->getNamespace(), $key);
<ide>
<del> parent::forever( $key, $value);
<add> parent::forever($key, $value);
<ide> }
<ide>
<ide> /** | 1 |
Text | Text | fix anchor links in reference-react documentation | 81cf21c6d1bffe1f0b09d4c2a52c0fb19f40b59f | <ide><path>docs/docs/reference-react.md
<ide> redirect_from:
<ide>
<ide> React components let you split the UI into independent, reusable pieces, and think about each piece in isolation. React components can be defined by subclassing `React.Component` or `React.PureComponent`.
<ide>
<del> - [`React.Component`](#react... | 1 |
Ruby | Ruby | add configuration to new appcast check | 0939c8832d9a12b436bc570240ab29e9f26a0298 | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def check_download
<ide> def check_appcast_contains_version
<ide> return unless check_appcast?
<ide> return if cask.appcast.to_s.empty?
<add> return if cask.appcast.configuration == :no_check
<ide>
<ide> appcast_stanza = cask.appcast.to_s
<del>... | 2 |
PHP | PHP | add class_exists() check for view class | f1931e43efa2221bc8f1d4a43f8c99aae67f7835 | <ide><path>lib/Cake/Controller/Component/RequestHandlerComponent.php
<ide> public function renderAs(Controller $controller, $type, $options = array()) {
<ide> $controller->ext = '.ctp';
<ide>
<ide> $viewClass = Inflector::classify($type);
<del> App::uses($viewClass . 'View', 'View');
<del>
<del> if (class_exists... | 1 |
Javascript | Javascript | remove unnecessary checks | 7f909c3b7922a3c7cdca03527dd6dc3687ae4e8b | <ide><path>lib/events.js
<ide> EventEmitter.prototype.removeListener =
<ide> if (!list)
<ide> return this;
<ide>
<del> if (list === listener || (list.listener && list.listener === listener)) {
<add> if (list === listener || list.listener === listener) {
<ide> if (--this._eventsCount ===... | 1 |
PHP | PHP | apply fixes from styleci | 6b849d116167d57be4d0ac9c6e49be85602381db | <ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php
<ide> protected function shouldBlockPhpUpload($value, $parameters)
<ide> }
<ide>
<ide> $phpExtensions = [
<del> 'php', 'php3', 'php4', 'php5', 'phtml', 'phar'
<add> 'php', 'php3', 'php4', 'php5', 'phtml', 'phar'... | 1 |
Javascript | Javascript | exclude specific spec folders | 83bc6b8379de88649de20a50be6ba2a3527d7b73 | <ide><path>script/lib/include-path-in-packaged-app.js
<ide> const EXCLUDE_REGEXPS_SOURCES = [
<ide> escapeRegExp(path.sep),
<ide> 'node_modules' + escapeRegExp(path.sep) + '.*' + '\\.d\\.ts$',
<ide> 'node_modules' + escapeRegExp(path.sep) + '.*' + '\\.js\\.map$',
<del> '.*' + escapeRegExp(path.sep) + 'test.*\\... | 1 |
Go | Go | add some debug to runtime.restore() | fde909ffb8e09ae39310093b7389f61aa4ec29df | <ide><path>graph.go
<ide> func (graph *Graph) restore() error {
<ide> graph.idIndex.Add(id)
<ide> }
<ide> }
<add> utils.Debugf("Restored %d elements", len(dir))
<ide> return nil
<ide> }
<ide>
<ide><path>runtime.go
<ide> func (runtime *Runtime) Register(container *Container) error {
<ide> }
<ide>
<ide> co... | 2 |
Ruby | Ruby | remove explicit return | a3bd62e1bae64569d0c2d45f8068f291e3e0e776 | <ide><path>activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
<ide> def insert_record(record, force = true, validate = true)
<ide> relation.insert(attributes)
<ide> end
<ide>
<del> return true
<add> true
<ide> end
<ide>
<ide> def ... | 1 |
Text | Text | correct typo in readme.md | 415bd8222605687f06b1ff1e021e83e2718321d5 | <ide><path>README.md
<ide> Once you have earned the Responsive Web Design, Algorithms and Data Structures,
<ide>
<ide> #### Legacy Certifications
<ide>
<del>We also have 4 legacy certifications dating back to our 2015 curriculum, which is still available. All of the required projects for these legacy certifications w... | 1 |
Javascript | Javascript | fix passport js maybe | a2259c937c5a48e1695f0f7ae3dcc847e87ed78b | <ide><path>config/passport.js
<ide> passport.use(new LinkedInStrategy(secrets.linkedin, function(req, accessToken, r
<ide> }
<ide> }));
<ide>
<del>
<del>// Login Required middleware.
<del>
<del>module.exports = {
<del> isAuthenticated: isAuthenticated,
<del> isAuthorized: isAuthorized
<del>};
<del>
<del>function... | 1 |
Text | Text | add missing newline for bash code example | ed7907a988fe336711603e38c8b79d673e87c902 | <ide><path>docs/sources/installation/ubuntulinux.md
<ide> install Docker using the following:
<ide>
<ide> If `wget` isn't installed, install it after updating your manager:
<ide>
<del> $ sudo apt-get update $ sudo apt-get install wget
<add> $ sudo apt-get update
<add> $ sudo apt-get install wget
<ide>
<ide> 3. ... | 1 |
Go | Go | move testmergeoncommit to integration-cli | ed6074ea6be17518a3b21e4dd5038f13ca835194 | <ide><path>integration-cli/docker_cli_commit_test.go
<ide> func TestCommitChange(t *testing.T) {
<ide>
<ide> logDone("commit - commit --change")
<ide> }
<add>
<add>// TODO: commit --run is deprecated, remove this once --run is removed
<add>func TestCommitMergeConfigRun(t *testing.T) {
<add> defer deleteAllContainers(... | 2 |
Text | Text | fix grammatical errors | a50c6edd30f87269b82080d467e368a341247e98 | <ide><path>guide/spanish/accessibility/index.md
<ide> title: Accessibility
<ide> localeTitle: Accesibilidad
<ide> ---
<del>## Accesibilidad
<add>## La Accesibilidad
<ide>
<ide> **La accesibilidad web significa que las personas con discapacidades pueden usar la web** .
<ide>
<del>Más específicamente, la accesibilidad ... | 1 |
Javascript | Javascript | isolate unusual assert test in its own file | 6e1324e4cfd28ee1ddcc8a6957f6134948b268ce | <ide><path>test/parallel/test-assert-builtins-not-read-from-filesystem.js
<add>// Flags: --expose-internals
<add>
<add>'use strict';
<add>
<add>require('../common');
<add>
<add>const assert = require('assert');
<add>const EventEmitter = require('events');
<add>const { errorCache } = require('internal/assert');
<add>con... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.