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 |
|---|---|---|---|---|---|
Go | Go | make use of builder/command | 72a070c5da8b6fe832794a6de37aace7f9b93306 | <ide><path>builder/parser/parser.go
<ide> import (
<ide> "regexp"
<ide> "strings"
<ide> "unicode"
<add>
<add> "github.com/docker/docker/builder/command"
<ide> )
<ide>
<ide> // Node is a structure used to represent a parse tree.
<ide> func init() {
<ide> // functions. Errors are propagated up by Parse() and the res... | 1 |
PHP | PHP | apply fixes from styleci | 97833b3105f71567867c6360878b568b0c063afa | <ide><path>src/Illuminate/Database/Eloquent/Relations/HasManyThrough.php
<ide> protected function shouldSelect(array $columns = ['*'])
<ide> */
<ide> public function chunk($count, callable $callback)
<ide> {
<del> return $this->prepareQueryBuilder()->chunk($count,$callback);
<add> return $thi... | 2 |
Text | Text | remove double reference | be001a3b6492255ee35c8c40d1ecd6398db8a88c | <ide><path>threejs/lessons/threejs-textures.md
<ide> It works!
<ide> {{{example url="../threejs-textured-cube-6-textures.html" }}}
<ide>
<ide> It should be noted though that not all geometry types supports multiple
<del>materials. `BoxGeometry` and `BoxGeometry` can use 6 materials one for each face.
<del>`ConeGeometr... | 1 |
Javascript | Javascript | add unit-tests for `stringtopdfstring` | c5c8b239e920ede477f989c097224d05ed43bf9f | <ide><path>test/unit/util_spec.js
<ide> /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
<ide> /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
<del>/* globals expect, it, describe, combineUrl, Dict, isDict, Name */
<add>/* globals expect, it, describe, combineUrl, Dic... | 1 |
Javascript | Javascript | check arg types of renegotiate() | 6b7c402518d4b77687584eba2a9284674962f343 | <ide><path>lib/_tls_wrap.js
<ide> const { owner_symbol } = require('internal/async_hooks').symbols;
<ide> const { SecureContext: NativeSecureContext } = internalBinding('crypto');
<ide> const {
<ide> ERR_INVALID_ARG_TYPE,
<add> ERR_INVALID_CALLBACK,
<ide> ERR_MULTIPLE_CALLBACK,
<ide> ERR_SOCKET_CLOSED,
<ide> E... | 2 |
Text | Text | fix typo in rewrites docs | 0d401ddcb58b6b602c0ff7098893c91f973b99d2 | <ide><path>docs/api-reference/next.config.js/rewrites.md
<ide> If you're using `trailingSlash: true`, you also need to insert a trailing slash
<ide>
<ide> ```js
<ide> module.exports = {
<del> trailingSlash: 'true',
<add> trailingSlash: true,
<ide> async rewrites() {
<ide> return [
<ide> { | 1 |
Ruby | Ruby | inline versions of upgraded formulae | da5d804bd9fca474eb2a7f484559ad9cd1534d89 | <ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> def upgrade_formula(f)
<ide> end
<ide> fi.prelude
<ide>
<del> oh1 "Upgrading #{Formatter.identifier(f.full_specified_name)} #{fi.options.to_a.join " "}"
<add> if f.optlinked?
<add> oh1 "Upgrading #{Formatter.identifier(f.full_specified_name)} #{Keg.ne... | 1 |
Ruby | Ruby | fix a typo in date | 21b4244d410bf5832b09f9b0bb06a12f8c886072 | <ide><path>activesupport/lib/active_support/time_with_zone.rb
<ide> module ActiveSupport
<ide> #
<ide> # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)'
<ide> # Time.zone.local(2007, 2, 10, 15, 30, 45) # => Sat, 10 Feb 2007 15:30:45 EST -05:00
<del> # Time.zone.pars... | 1 |
Javascript | Javascript | use regex to compare error message | 4eb194a2b10194f3ac1a4c8914d725aa90da265e | <ide><path>lib/util.js
<ide> const inspectDefaultOptions = Object.seal({
<ide> breakLength: 60
<ide> });
<ide>
<del>const CIRCULAR_ERROR_MESSAGE = 'Converting circular structure to JSON';
<del>
<add>var CIRCULAR_ERROR_MESSAGE;
<ide> var Debug;
<ide>
<ide> function tryStringify(arg) {
<ide> try {
<ide> return ... | 1 |
Text | Text | add additional cra info to remaining examples | bb3314fcd2829a1b4a75ca48f54905e3acbcf6d7 | <ide><path>examples/async/README.md
<ide> # Redux Async Example
<ide>
<del>This project template was built with [Create React App](https://github.com/facebookincubator/create-react-app).
<add>This project template was built with [Create React App](https://github.com/facebookincubator/create-react-app), which provides ... | 8 |
Text | Text | adjust readme and release notes | 8d740a11e409693332d421f203425d968b30e73c | <ide><path>README.md
<ide> There is a live example API for testing purposes, [available here][sandbox].
<ide>
<ide> # Requirements
<ide>
<del>* Python (2.6.5+, 2.7, 3.2, 3.3, 3.4)
<del>* Django (1.6.3+, 1.7, 1.8)
<add>* Python (2.7, 3.2, 3.3, 3.4)
<add>* Django (1.7, 1.8)
<ide>
<ide> # Installation
<ide>
<ide><path... | 2 |
Javascript | Javascript | deprecate reactdom.render and reactdom.hydrate | aecb3b6d114e8fafddf6982133737198e8ea7cb3 | <ide><path>fixtures/dom/src/__tests__/wrong-act-test.js
<ide> it('warns when using the wrong act version - test + dom: render', () => {
<ide> TestRenderer.act(() => {
<ide> ReactDOM.render(<App />, document.createElement('div'));
<ide> });
<del> }).toWarnDev(["It looks like you're using the wrong act()"]... | 10 |
Javascript | Javascript | remove babel from tests | 99580664af941cf4caf19e2dd5f802689a96d1b8 | <ide><path>karma.conf.js
<ide> /* eslint-disable import/no-commonjs */
<ide>
<del>const babel = require('rollup-plugin-babel');
<ide> const commonjs = require('@rollup/plugin-commonjs');
<ide> const json = require('@rollup/plugin-json');
<ide> const resolve = require('@rollup/plugin-node-resolve').default;
<ide> modul... | 1 |
PHP | PHP | add url method to cloud filesystem interface | 6199d9f9ab862849cfd80b708b115d0eff38b2fc | <ide><path>src/Illuminate/Contracts/Filesystem/Cloud.php
<ide>
<ide> interface Cloud extends Filesystem
<ide> {
<del> //
<add> /**
<add> * Get the URL for the file at the given path.
<add> *
<add> * @param string $path
<add> * @return string
<add> */
<add> public function url($path);
<id... | 1 |
Java | Java | fix minor issue in mockhttpservletrequest | 59d80ec19e7e6333a2af64b98f68d3efecc58a97 | <ide><path>spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java
<ide> /*
<del> * Copyright 2002-2011 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you m... | 2 |
Text | Text | simplify navigation copy | 3acc64051f830097c06a593bebbca36e64fc5cce | <ide><path>laravel/documentation/contents.md
<ide> - [Installation & Setup](/docs/install)
<ide> - [Requirements](/docs/install#requirements)
<ide> - [Installation](/docs/install#installation)
<del> - [Server Configuration: Why Public?](/docs/install#server-configuration)
<add> - [Server Configuration](/docs/install#... | 1 |
Text | Text | add translation kr/threejs-billboards.md | 2a76908bcf50c966146e593ea6efd174382adf6a | <ide><path>threejs/lessons/kr/threejs-billboards.md
<add>Title: Three.js 빌보드(Billboards)
<add>Description: 물체가 항상 카메라를 바라보도록 하는 법을 알아봅니다
<add>TOC: 빌보드와 파사드
<add>
<add>[이전 글](threejs-canvas-textures.html)에서는 `CanvasTexture`를 이용해 캐릭터에 이름표/명찰을 붙이는 법을 알아봤습니다. 때로는 이 이름표가 항상 카메라를 향하게 해야 할 경우도 있겠죠. Three.js의 `Sprite`와 `Sprite... | 1 |
Text | Text | change todo to todoindex in app.js | 2246250699c540537bdd7272893618943cf92896 | <ide><path>docs/basics/UsageWithReact.md
<ide> export default class App extends Component {
<ide> text: 'Learn to connect it to React',
<ide> completed: false
<ide> }]}
<del> onTodoClick={todo =>
<del> console.log('todo clicked', todo)
<add> onTodoClick={to... | 1 |
Javascript | Javascript | prevent multiple connection errors | b94ce575f57fa883b93ce8948730577a9bde8603 | <ide><path>lib/_tls_wrap.js
<ide> function onocspresponse(resp) {
<ide> function onerror(err) {
<ide> const owner = this[owner_symbol];
<ide>
<del> if (owner._writableState.errorEmitted)
<add> if (owner._hadError)
<ide> return;
<ide>
<add> owner._hadError = true;
<add>
<ide> // Destroy socket if error happ... | 1 |
Javascript | Javascript | fix crash with skipnull and uneven datasets | e3b2b5279081b9040fdc493030e2c70ca8f71cc7 | <ide><path>src/controllers/controller.bar.js
<ide> export default class BarController extends DatasetController {
<ide> * @private
<ide> */
<ide> _getStacks(last, dataIndex) {
<del> const meta = this._cachedMeta;
<del> const iScale = meta.iScale;
<del> const metasets = iScale.getMatchingVisibleMetas(this... | 2 |
Ruby | Ruby | fix missing link in deprecation | b8b1c9eba9ade21fd1e48c7d4b8f3b1d46b843fc | <ide><path>activerecord/lib/active_record/core.rb
<ide> def self.connection_handlers=(handlers)
<ide> The new connection handling does not support `connection_handlers`
<ide> getter and setter.
<ide>
<del> Read more about how to migrate at:
<add> Read more about how to mig... | 1 |
Javascript | Javascript | remove unused url-utils | 0c771b7000f05cae900d9158c6964ba84189bd04 | <ide><path>api-server/server/utils/url-utils.js
<del>const isDev = process.env.FREECODECAMP_NODE_ENV !== 'production';
<del>const isBeta = !!process.env.BETA;
<del>
<ide> export function getEmailSender() {
<ide> return process.env.SES_MAIL_FROM || 'team@freecodecamp.org';
<ide> }
<del>
<del>export function getPort() ... | 1 |
Ruby | Ruby | update usage info and move to --help function | a4355c9f67529b8f9568d1981826837a184a6584 | <ide><path>Library/Contributions/cmd/brew-bundle.rb
<ide> # brew-bundle.rb
<del>#
<del># Usage: brew bundle [path]
<del>#
<del># Looks for a Brewfile and runs each line as a brew command.
<del>#
<del># brew bundle # Looks for "./Brewfile"
<del># brew bundle path/to/dir # Looks for "path/to/dir/Brewfile"
<... | 1 |
Javascript | Javascript | fix memory leak with rendercomponenttostring() | 526be1570e1c08c381d88e7c54703b9f8356cb1e | <ide><path>src/core/ReactDOMComponent.js
<ide> function assertValidProps(props) {
<ide> );
<ide> }
<ide>
<del>function putListener(id, registrationName, listener) {
<add>function putListener(id, registrationName, listener, transaction) {
<ide> var container = ReactMount.findReactContainerForID(id);
<ide> if (con... | 7 |
PHP | PHP | fix bad merge and failing test | ab5bfdccfd1cf4dc5ff115a09a83fd40ff48cc74 | <ide><path>lib/Cake/Test/Case/Utility/ClassRegistryTest.php
<ide> class RegisterCategory extends ClassRegisterModel {
<ide> */
<ide> public $name = 'RegisterCategory';
<ide> }
<add> /**
<add> * RegisterPrefixedDs class
<add> *
<add> * @package Cake.Test.Case.Utility
<add> */
<add>class RegisterPrefixedDs extend... | 1 |
Ruby | Ruby | install task works within engine | c5b900da7323d33ae10e00c45ca7aaebc0e9c75c | <ide><path>railties/test/railties/engine_test.rb
<ide> def index
<ide> assert_equal "/fruits/2/bukkits/posts", last_response.body
<ide> end
<ide>
<add> test "active_storage:install task works within engine" do
<add> @plugin.write "Rakefile", <<-RUBY
<add> APP_RAKEFILE = '#{app_path}/Rakefile'
... | 1 |
Ruby | Ruby | add relation#merge to merge two relations | a8b10a2a8d6f8d861453803264b9ef1b0cadbc6b | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def initialize(klass, relation, readonly = false, preload = [], eager_load = [])
<ide> @loaded = false
<ide> end
<ide>
<add> def merge(r)
<add> joins(r.relation.joins(r.relation)).
<add> group(r.send(:group_clauses).join(', ')).
<add>... | 2 |
Text | Text | add advantages and disadvantages of an array | 7a976c5b0d72e49a9522e8d99f2542b24373da21 | <ide><path>client/src/pages/guide/english/csharp/array/index.md
<ide> title: Arrays
<ide>
<ide> An array is used to store a collection of data of the same type. This can be used as a single variable that holds multiple values, or a collection of variables.
<ide>
<del># Rules of Arrays
<add>## Rules of Arrays
<ide>
<... | 1 |
PHP | PHP | move transport registration to separate class | 30001aa8f5ac79dfdb27270f8bc82e8c37d7e0b1 | <ide><path>src/Illuminate/Mail/MailServiceProvider.php
<ide>
<ide> use Swift_Mailer;
<ide> use Illuminate\Support\ServiceProvider;
<del>use Swift_SmtpTransport as SmtpTransport;
<del>use Swift_MailTransport as MailTransport;
<del>use Illuminate\Mail\Transport\LogTransport;
<del>use Illuminate\Mail\Transport\MailgunTra... | 2 |
Python | Python | add spaces around '-' | 860c8b82939d1535351f7b651c284a55efe21b10 | <ide><path>numpy/linalg/linalg.py
<ide> def lstsq(a, b, rcond="warn"):
<ide> equal to, or greater than its number of linearly independent columns).
<ide> If `a` is square and of full rank, then `x` (but for round-off error)
<ide> is the "exact" solution of the equation. Else, `x` minimizes the
<del> Eucl... | 1 |
Text | Text | fix typo in 0.12 rc blog post | 32630cd8cf65f53cd683ec962994b508644b4f66 | <ide><path>docs/_posts/2014-10-16-react-v0.12-rc1.md
<ide> You do NOT need to change the way to define `key` and `ref`, only if you need to
<ide>
<ide> ## Breaking Change: Default Props Resolution
<ide>
<del>This is a subtle difference but `defaultProps` are now resolved at `ReactElement` creation time instead of whe... | 1 |
Text | Text | use code markup/markdown in headers | 79f6412f47adcefcc03d39f8c0037781c4ec566e | <ide><path>doc/api/url.md
<ide> const myURL =
<ide>
<ide> ## The WHATWG URL API
<ide>
<del>### Class: URL
<add>### Class: `URL`
<ide> <!-- YAML
<ide> added:
<ide> - v7.0.0
<ide> using the `delete` keyword on any properties of `URL` objects (e.g. `delete
<ide> myURL.protocol`, `delete myURL.pathname`, etc) has no ef... | 1 |
PHP | PHP | fix invalid tags | 2a217b485c5054847e6e4a733329e0756b153968 | <ide><path>src/Validation/Validation.php
<ide> public static function time($check): bool
<ide> * @param string|int|null $format any format accepted by IntlDateFormatter
<ide> * @return bool Success
<ide> * @throws \InvalidArgumentException when unsupported $type given
<del> * @see \Cake\I18n\Time::pa... | 2 |
Javascript | Javascript | use lanes instead of priority event constants | 35f7441d374bfa7be8e3e9576fd1388333df49cb | <ide><path>packages/react-dom/src/events/ReactDOMEventListener.js
<ide> import type {AnyNativeEvent} from '../events/PluginModuleType';
<ide> import type {FiberRoot} from 'react-reconciler/src/ReactInternalTypes';
<ide> import type {Container, SuspenseInstance} from '../client/ReactDOMHostConfig';
<ide> import type {DO... | 2 |
Text | Text | add rezerotransformer to readme | f499e880b6cb5b0b47f3ddc0af8ed085ca8e278d | <ide><path>official/nlp/modeling/layers/README.md
<ide> for auto-agressive decoding.
<ide> * [Transformer](transformer.py) implements an optionally masked transformer as
<ide> described in ["Attention Is All You Need"](https://arxiv.org/abs/1706.03762).
<ide>
<add>* [ReZeroTransformer](rezero_transformer.py) implement... | 1 |
Ruby | Ruby | fix the interlock middleware | 48a735aff7032afaf5534613b10c635acead042a | <ide><path>actionpack/lib/action_dispatch/middleware/load_interlock.rb
<ide> require 'active_support/dependencies'
<del>require 'rack/lock'
<add>require 'rack/body_proxy'
<ide>
<ide> module ActionDispatch
<del> class LoadInterlock < ::Rack::Lock
<del> FLAG = 'activesupport.dependency_race'.freeze
<add> class Load... | 1 |
Go | Go | use same signature on windows | 6e5a304675648a9f3d9b0ae95e7610337c8bd6c3 | <ide><path>container/container_windows.go
<ide> func (container *Container) ConfigsDirPath() string {
<ide> }
<ide>
<ide> // ConfigFilePath returns the path to the on-disk location of a config.
<del>func (container *Container) ConfigFilePath(configRef swarmtypes.ConfigReference) string {
<del> return filepath.Join(con... | 2 |
Ruby | Ruby | invert the conditionals to make easier to read | baf62e531686ee157746d239037be121f8191275 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def column_exists?(table_name, column_name, type = nil, options = {})
<ide> def create_table(table_name, options = {})
<ide> td = create_table_definition table_name, options[:temporary], options[:options], op... | 1 |
Text | Text | add missing space | b5b7c3b432cf60ff5b5e11ee4bc7df85a4185d1e | <ide><path>doc/api/errors.md
<ide> urlSearchParams.has.call(buf, 'foo');
<ide> ### ERR_INVALID_TUPLE
<ide>
<ide> Used when an element in the `iterable` provided to the [WHATWG][WHATWG URL
<del>API] [`URLSearchParams`constructor][`new URLSearchParams(iterable)`] does not
<add>API] [`URLSearchParams` constructor][`new U... | 1 |
Ruby | Ruby | fix typo on the variable name | d4df7ce7b356835208141e6ac8e5ffb09ece8401 | <ide><path>actionview/lib/action_view/renderer/partial_renderer.rb
<ide> def collection_with_template
<ide> layout = find_template(layout, @template_keys)
<ide> end
<ide>
<del> partial_interation = PartialIteration.new(@collection.size)
<del> locals[iteration] = partial_interation
<add> pa... | 1 |
Python | Python | pass a `context` when chaining fail results | 5c47c1ff1aebd04b8e6b47255414e6f121b5c59f | <ide><path>celery/backends/base.py
<ide> def mark_as_failure(self, task_id, exc,
<ide> except (AttributeError, TypeError):
<ide> chain_data = tuple()
<ide> for chain_elem in chain_data:
<del> chain_elem_opts = chain_elem['options']
<add> # Reconstruc... | 1 |
Java | Java | add a base activity for react native apps. fixes | 935cbb76c02cffd378a8f391c6e7443a3da13adc | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java
<add>package com.facebook.react;
<add>
<add>import android.app.Activity;
<add>import android.content.Intent;
<add>import android.os.Build;
<add>import android.os.Bundle;
<add>import android.os.Handler;
<add>import android.provider.Settings;
<ad... | 2 |
Text | Text | replace inline code blocks | b5ed2619eb09cd9c0f18fc6ab59f46e5fd1cc79e | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/add-new-properties-to-a-javascript-object.md
<ide> You can add new properties to existing JavaScript objects the same way you would
<ide>
<ide> Here's how we would add a `bark` property to `ourDog`:
<ide>
<del>`ourD... | 25 |
Ruby | Ruby | create empty zshrc when zsh is shell | 4625fd335c62e0bc6bcad2d4de482174bc353ee3 | <ide><path>Library/Homebrew/formula.rb
<ide> def stage
<ide> @buildpath = Pathname.pwd
<ide> env_home = buildpath/".brew_home"
<ide> mkdir_p env_home
<add> touch env_home/".zshrc" if ENV["SHELL"].include? "zsh"
<ide>
<ide> old_home, ENV["HOME"] = ENV["HOME"], env_home
<ide> | 1 |
Java | Java | release databuffers in freemarkerview | 78434c8e2043e18040ea8a57868b2cee46fbd8a5 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerView.java
<ide> import org.springframework.context.ApplicationContextException;
<ide> import org.springframework.context.i18n.LocaleContextHolder;
<ide> import org.springframework.core.io.buffer.DataBuffer;
<add>im... | 1 |
Javascript | Javascript | add rfc232 variants | afa52d11bcebe84976d0402a189440d7a92bf84e | <ide><path>blueprints/util-test/qunit-rfc-232-files/tests/unit/utils/__name__-test.js
<add>import <%= camelizedModuleName %> from '<%= dasherizedModulePrefix %>/utils/<%= dasherizedModuleName %>';
<add>import { module, test } from 'qunit';
<add>import { setupTest } from 'ember-qunit';
<add>
<add>module('<%= friendlyTes... | 3 |
Text | Text | move "fixes" to a new line | 82aa2c124f4c2091ca4924735af466c22f0eebb4 | <ide><path>railties/CHANGELOG.md
<ide> * Avoid running system tests by default with the `bin/rails test`
<ide> and `bin/rake test` commands since they may be expensive.
<ide>
<del> *Robin Dupret* (#28286)
<add> Fixes #28286.
<add>
<add> *Robin Dupret*
<ide>
<ide> * Improve encryption for encrypted se... | 1 |
Javascript | Javascript | add regression tests for http parser crash | 18667ac6f54a4a2a781f1cf6380ac0660196e5e5 | <ide><path>test/parallel/test-http-sync-write-error-during-continue.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const http = require('http');
<add>const MakeDuplexPair = require('../common/duplexpair');
<add>
<add>// Regression test for the crash reported ... | 1 |
Text | Text | fix header depth of util.issymbol | 267556762dee3daf723c2ea617d413d42ba6d59a | <ide><path>doc/api/util.md
<ide> util.isString(5);
<ide> // false
<ide> ```
<ide>
<del>## util.isSymbol(object)
<add>### util.isSymbol(object)
<ide>
<ide> Stability: 0 - Deprecated
<ide> | 1 |
Javascript | Javascript | allow 1px margin to getrelativeposition test | bc59038772b74bff64127098115604520fbf769f | <ide><path>test/specs/helpers.dom.tests.js
<ide> describe('DOM helpers tests', function() {
<ide> };
<ide>
<ide> const rect = chart.canvas.getBoundingClientRect();
<del> expect(helpers.getRelativePosition(event, chart)).toEqual({
<del> x: Math.round(event.clientX - rect.x),
<del> y: Math.round(event.clie... | 1 |
Javascript | Javascript | remove accidental global vars | 07f5351fdc237dfd16188b2640e4135971aa89a3 | <ide><path>src/geom/hull.js
<ide> d3.geom.hull = function(vertices) {
<ide>
<ide> var fx = d3_functor(x),
<ide> fy = d3_functor(y),
<del> n = data.length;
<add> n = data.length,
<add> points = [], // of the form [[x0, y0, 0], ..., [xn, yn, n]]
<add> flipped_points = [];
<ide>
... | 1 |
Javascript | Javascript | remove extraneous helper | 596ee9c19b076239dd281dfb7739b428c22b425d | <ide><path>test/integration/create-next-app/index.test.js
<ide> const run = (cwd, args, input) => {
<ide> const options = input ? { cwd, input } : { cwd }
<ide> return execa('node', [cli].concat(args), options)
<ide> }
<del>const runStarter = (cwd, ...args) => {
<del> const res = run(cwd, args)
<del>
<del> res.st... | 1 |
PHP | PHP | use progresshelper in i18n task | e738c9cc3f69f9815a27937ef444639c6c5fd273 | <ide><path>src/Shell/Helper/ProgressHelper.php
<ide> public function increment($num = 1)
<ide> public function draw()
<ide> {
<ide> $numberLen = strlen(' 100%');
<del> $complete = ($this->_progress / $this->_total);
<del> $barLen = floor(($this->_width - $numberLen) * ($this->_progress / $... | 3 |
Javascript | Javascript | remove common.port from http tests | abce60cec050f85f372b102a50220445e128bdfb | <ide><path>test/parallel/test-http-client-keep-alive-release-before-finish.js
<ide> const http = require('http');
<ide>
<ide> const server = http.createServer((req, res) => {
<ide> res.end();
<del>}).listen(common.PORT, common.mustCall(() => {
<add>}).listen(0, common.mustCall(() => {
<ide> const agent = new http.... | 2 |
Ruby | Ruby | remove deprecation silencing in debug exceptions | 99b6e23d1c6c3a77e3a45392220370fb230cc9a9 | <ide><path>actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
<ide> def log_error(request, wrapper)
<ide> exception = wrapper.exception
<ide> trace = wrapper.exception_trace
<ide>
<del> ActiveSupport::Deprecation.silence do
<del> message = []
<del> message << " "
<d... | 1 |
Ruby | Ruby | fix typo in assertion message | e8458d37c56a94fae5f4c762b1767f67e10ddb43 | <ide><path>activemodel/lib/active_model/lint.rb
<ide> def test_to_param
<ide> assert model.respond_to?(:to_param), "The model should respond to to_param"
<ide> def model.to_key() [1] end
<ide> def model.persisted?() false end
<del> assert model.to_param.nil?, "to_param should return nil w... | 1 |
Python | Python | update links to diveintomark.org | 9a25d8618a6a3fa91605b17b55f9f89fddee9b8f | <ide><path>django/utils/feedgenerator.py
<ide> ... feed.write(fp, 'utf-8')
<ide>
<ide> For definitions of the different versions of RSS, see:
<del>http://diveintomark.org/archives/2004/02/04/incompatible-rss
<add>http://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004/02/04/incompatible-rss... | 1 |
Mixed | Python | unify command names in cli | ab5235ee1232bb60b180dfd5f10c980d66cb75d7 | <ide><path>UPDATING.md
<ide> you have to run the help command: ``airflow celery --help``.
<ide> | ``airflow list_dag_runs`` | ``airflow dags list-runs`` | ``dags`` |
<ide> | ``airflow pause`` | ``airflow dags pause`` | ``dags`` |
<ide> | ``airflow unpause`` ... | 4 |
Python | Python | add dataproc sparkr example | efcffa323ddb5aa9f5907aa86808f3f3b4f5bd87 | <ide><path>airflow/providers/google/cloud/example_dags/example_dataproc.py
<ide> OUTPUT_PATH = "gs://{}/{}/".format(BUCKET, OUTPUT_FOLDER)
<ide> PYSPARK_MAIN = os.environ.get("PYSPARK_MAIN", "hello_world.py")
<ide> PYSPARK_URI = "gs://{}/{}".format(BUCKET, PYSPARK_MAIN)
<del>
<add>SPARKR_MAIN = os.environ.get("SPARKR_M... | 2 |
Ruby | Ruby | fix rubocop warnings | 6a81782753d660eb3a9b6b2f303015205177c518 | <ide><path>Library/Homebrew/extend/os/mac/development_tools.rb
<ide> def installed?
<ide>
<ide> def installation_instructions
<ide> if MacOS.version >= "10.9"
<del> <<-EOS.undent
<del> Install the Command Line Tools:
<del> xcode-select --install
<del> EOS
<add> <<-EOS.undent
... | 1 |
Ruby | Ruby | remove libiconv duplicate | c59be1a930fa1237e3ea84dca9c484037f1ba5a1 | <ide><path>Library/Homebrew/blacklist.rb
<ide> def blacklisted? name
<ide> when 'libarchive', 'libpcap' then <<-EOS.undent
<ide> Apple distributes #{name} with OS X, you can find it in /usr/lib.
<ide> EOS
<add> when 'libiconv' then <<-EOS.undent
<add> Apple distributes #{name} with OS X, you can find it i... | 2 |
Javascript | Javascript | upgrade requestshortner to es6 | ded39c11691f354b4595e38bdb69c52f46a178a0 | <ide><path>lib/RequestShortener.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var path = require("path");
<del>
<del>function RequestShortener(directory) {
<del> directory = directory.replace(/\\/g, "/");
<del> var parentDirectory = path.dirna... | 1 |
Javascript | Javascript | clean undefined check | 1ec2e33c65403abbe258c51db13475ab1c3a1277 | <ide><path>packages/ember-routing/lib/system/router.js
<ide> const EmberRouter = EmberObject.extend(Evented, {
<ide> let initialURL = get(this, 'initialURL');
<ide>
<ide> if (this.setupRouter()) {
<del> if (typeof initialURL === 'undefined') {
<add> if (initialURL === undefined) {
<ide> initi... | 1 |
Text | Text | add 16.6.0 changelog | eac092ecacf737bd7b3ded933510ff421350acc1 | <ide><path>CHANGELOG.md
<ide>
<ide> </details>
<ide>
<add>
<add>## 16.6.0 (October 23, 2018)
<add>
<add>### React
<add>
<add>* Add `React.memo()` as an alternative to `PureComponent` for functions. ([@acdlite](https://github.com/acdlite) in [#13748](https://github.com/facebook/react/pull/13748))
<add>* Add `React.laz... | 1 |
PHP | PHP | apply fixes from styleci | 730daa7dce9e069fed832e19cbdb1c23d6864b80 | <ide><path>src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
<ide>
<ide> use Illuminate\Config\Repository;
<ide> use Symfony\Component\Finder\Finder;
<del>use Symfony\Component\Finder\SplFileInfo;
<ide> use Illuminate\Contracts\Foundation\Application;
<ide> use Illuminate\Contracts\Config\Repository as Reposit... | 1 |
Javascript | Javascript | move img[srcset] sanitizing to helper method | 88a12f8623d53579f8a21ac48d02ae1834fa7acb | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> }
<ide>
<ide>
<add> function sanitizeSrcset(value) {
<add> if (!value) {
<add> return value;
<add> }
<add> if (!isString(value)) {
<add> throw $compileMinErr('srcset', 'Can\'t pass... | 1 |
PHP | PHP | fix return type to match documentation | 40a6201413266289ff303788b9615aa07f8bc6b6 | <ide><path>src/Cache/Engine/ArrayEngine.php
<ide> public function increment($key, $offset = 1)
<ide> $key = $this->_key($key);
<ide> $this->data[$key][1] += $offset;
<ide>
<del> return true;
<add> return $this->data[$key][1];
<ide> }
<ide>
<ide> /**
<ide> public function decremen... | 2 |
Python | Python | fix displacy test | a6f33ac27dc35acaf34c495d0aa39fd716c76055 | <ide><path>spacy/tests/test_misc.py
<ide> def test_displacy_parse_deps(en_vocab):
<ide> """Test that deps and tags on a Doc are converted into displaCy's format."""
<ide> words = ["This", "is", "a", "sentence"]
<ide> heads = [1, 0, 1, -2]
<del> tags = ['DT', 'VBZ', 'DT', 'NN']
<add> pos = ['DET', 'VER... | 1 |
Text | Text | improve reading / style of hashes in ar guide | 20d3484f32f22b6775f3ff6e8983c5bc021855eb | <ide><path>guides/source/active_record_querying.md
<ide> In the case of a belongs_to relationship, an association key can be used to spec
<ide>
<ide> ```ruby
<ide> Post.where(author: author)
<del>Author.joins(:posts).where(posts: {author: author})
<add>Author.joins(:posts).where(posts: { author: author })
<ide> ```
<i... | 1 |
Text | Text | simplify collaborator pre-nomination text | 859421188b0f350d0a17270a54a67f6554713d71 | <ide><path>GOVERNANCE.md
<ide> the nomination.
<ide> The nomination passes if no Collaborators oppose it after one week. Otherwise,
<ide> the nomination fails.
<ide>
<del>Prior to the public nomination, the Collaborator initiating it can seek
<del>feedback from other Collaborators in private using
<del>[the GitHub dis... | 1 |
Text | Text | add missing toc entries | 5f6438f62537779eff6402688cbe7ef30b63202e | <ide><path>test/common/README.md
<ide> This directory contains modules used to test the Node.js implementation.
<ide>
<ide> ## Table of Contents
<ide>
<add>* [ArrayStream module](#arraystream-module)
<ide> * [Benchmark module](#benchmark-module)
<ide> * [Common module API](#common-module-api)
<ide> * [Countdown modul... | 1 |
Text | Text | add paragraph about online women in tech groups | 26f4e58410f6a786101970185e0283e13832d8d4 | <ide><path>guide/english/working-in-tech/women-in-tech/index.md
<ide> The worst thing you can do is to sell yourself short. If you want something, tak
<ide>
<ide> Encouraging girls in elementary, middle, and high school can also help to increase the number of women going to work in the tech industry as they get older.... | 1 |
Javascript | Javascript | fix a typo | 3b714740fdc2b97c2375324ee46b222c23c06bf5 | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
<ide> * phones.push(phone);
<ide> * return [200, phone, {}];
<ide> * });
<del> * $httpBackend.whenGET(/^\/templates\//).passThrough(); // Requests for templare are handled by ... | 1 |
Ruby | Ruby | fix eager loading with dynamic finders | e94e53f9cd70bee69759661e9771da3fe0ee9554 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def conditions_tables(options)
<ide> end
<ide>
<ide> def order_tables(options)
<del> order = options[:order]
<add> order = [options[:order], scope(:find, :order) ].join(", ")
<ide> return [] unless order && orde... | 8 |
Javascript | Javascript | add isenabled function to autoupdatemanager | c19296efb753167619a66532ecb6481339415b9d | <ide><path>spec/auto-update-manager-spec.js
<ide> describe('AutoUpdateManager (renderer)', () => {
<ide> })
<ide> })
<ide>
<add> describe('::isEnabled', () => {
<add> let platform, releaseChannel
<add> it('returns true on OS X and Windows, when in stable', () => {
<add> spyOn(autoUpdateManager, 'getP... | 2 |
PHP | PHP | add missing skip if pdo_sqlsrv is not installed | eb9918ff29e4bb3eecfd3c11c82619e3ccf6a7f9 | <ide><path>tests/TestCase/Database/Driver/SqlserverTest.php
<ide> public function dnsStringDataProvider()
<ide> */
<ide> public function testDnsString($constructorArgs, $dnsString)
<ide> {
<add> $this->skipIf($this->missingExtension, 'pdo_sqlsrv is not installed.');
<ide> $driver = $this->ge... | 1 |
Ruby | Ruby | fix some typos | b1ee5e8e7f98b32196423a144e7a87ae284c7a5c | <ide><path>actionpack/lib/action_controller/metal/redirecting.rb
<ide> def redirect_to(options = {}, response_status = {})
<ide> #
<ide> # ==== Options
<ide> # * <tt>:fallback_location</tt> - The default fallback location that will be used on missing `Referer` header.
<del> # * <tt>:allow_other_host</tt>... | 4 |
Javascript | Javascript | remove an unnecessary condition | 080f21e64f28552bd63590db0b470d15d1990c96 | <ide><path>src/renderers/native/ReactNativeFiber.js
<ide> const NativeRenderer = ReactFiberReconciler({
<ide> },
<ide>
<ide> appendInitialChild(parentInstance : Instance, child : Instance | TextInstance) : void {
<del> if (typeof child === 'number') {
<del> parentInstance._children.push(child);
<del> } ... | 1 |
Python | Python | add clarification of weights to documentation | 35c2d9c9bb597be696005e325742fb8ae3e8f117 | <ide><path>numpy/lib/polynomial.py
<ide> def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
<ide> default) just the coefficients are returned, when True diagnostic
<ide> information from the singular value decomposition is also returned.
<ide> w : array_like, shape (M,), optional
<de... | 1 |
Javascript | Javascript | update amp example | 3b6aeaae8270588cd1b6d48cc72beb0b3bc0643a | <ide><path>examples/amp/pages/dog.js
<ide> import Head from 'next/head'
<ide> import { useAmp, withAmp } from 'next/amp'
<ide> import Byline from '../components/Byline'
<ide>
<del>export default withAmp(() => {
<del> const isAmp = useAmp()
<add>export default withAmp(
<add> () => {
<add> const isAmp = useAmp()
<i... | 3 |
Javascript | Javascript | fix eventdispatcher test | 5f0621c9381c3e3c67aca4ae3bc430f8d9ab2492 | <ide><path>packages/@ember/-internals/glimmer/tests/integration/event-dispatcher-test.js
<ide> import { RenderingTestCase, moduleFor, runTask } from 'internal-test-helpers';
<ide>
<ide> import { Component } from '../utils/helpers';
<del>import { getCurrentRunLoop, run } from '@ember/runloop';
<add>import { getCurrentR... | 2 |
PHP | PHP | add missing option | a439d75d42efba42411589fa3288cbd595822802 | <ide><path>src/ORM/Marshaller.php
<ide> protected function _marshalAssociation($assoc, $value, $options)
<ide> * * associated: Associations listed here will be marshalled as well.
<ide> * * fieldList: A whitelist of fields to be assigned to the entity. If not present,
<ide> * the accessible fields list... | 1 |
Python | Python | add job labels to bigquery check operators. | 943baff6701f9f8591090bf76219571d7f5e2cc5 | <ide><path>airflow/providers/google/cloud/hooks/bigquery.py
<ide> def __init__(
<ide> bigquery_conn_id: Optional[str] = None,
<ide> api_resource_configs: Optional[Dict] = None,
<ide> impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
<add> labels: Optional[Dict] = None,
<ide... | 2 |
PHP | PHP | add missing consoleio method | eef11456b51cd140c0cb47f33cdf58d7f966edf4 | <ide><path>src/Console/ConsoleIo.php
<ide> public function ask($prompt, $default = null) {
<ide> *
<ide> * @param int $mode
<ide> * @return void
<add> * @see \Cake\Console\ConsoleOutput::outputAs()
<ide> */
<ide> public function outputAs($mode) {
<ide> $this->_out->outputAs($mode);
<ide> }
<ide>
<add>/**
<add>... | 3 |
Ruby | Ruby | make uniq in lookupcontext#formats= | ffc842a09927986819cf7a66ae6a15f97bfeed76 | <ide><path>actionview/lib/action_view/lookup_context.rb
<ide> def formats=(values)
<ide> if values
<ide> values = values.compact
<ide> values.concat(default_formats) if values.delete "*/*"
<add> values.uniq!
<add>
<ide> if values == [:js]
<ide> values << :html
<ide> ... | 2 |
Python | Python | fix testawsdatasyncoperatorupdate.__init__ method | 0e0aefb8f00ec0cc7844abe6753a6b654d5039d9 | <ide><path>tests/providers/amazon/aws/operators/test_datasync.py
<ide> def test_xcom_push(self, mock_get_conn):
<ide> mock_datasync == no_datasync, "moto datasync package missing"
<ide> ) # pylint: disable=W0143
<ide> class TestAWSDataSyncOperatorUpdate(AWSDataSyncTestCaseBase):
<del> def __init(self, *args, **... | 1 |
Python | Python | update variable names | 75111a446e8323df607c17703bfb4303eb966dde | <ide><path>libcloud/common/dimensiondata.py
<ide> class DimensionDataConnection(ConnectionUserAndKey):
<ide>
<ide> api_path_version_1 = '/oec'
<ide> api_path_version_2 = '/caas'
<del> api_version_1 = '0.9'
<del> api_version_2 = '2.3'
<add> api_version_1 = 0.9
<add>
<add> # Earliest version supporte... | 1 |
Ruby | Ruby | fix tests on 1.8 | 309001fd9f510879693828c340654f44ccc82406 | <ide><path>Library/Homebrew/test/test_dependency_collector.rb
<ide> def test_add_returns_created_dep
<ide> def test_dependency_tags
<ide> assert_predicate Dependency.new('foo', [:build]), :build?
<ide> assert_predicate Dependency.new('foo', [:build, :optional]), :optional?
<del> assert_includes Dependency.... | 1 |
Python | Python | use new sphinx autodoc mock import path | 517ffe9a3d2ca3608b8044e88d74d16fe5e65db1 | <ide><path>docs/exts/docroles.py
<ide> from functools import partial
<ide>
<ide> from docutils import nodes, utils
<del>from sphinx.ext.autodoc.importer import import_module, mock
<add>from sphinx.ext.autodoc.importer import import_module
<add>from sphinx.ext.autodoc.mock import mock
<ide>
<ide>
<ide> class RoleExce... | 1 |
Go | Go | get process list after pid 1 dead | ac8bd12b39d39a9361adc174bdff7837e771460d | <ide><path>daemon/execdriver/native/driver.go
<ide> func notifyOnOOM(container libcontainer.Container) <-chan struct{} {
<ide> return oom
<ide> }
<ide>
<add>func killCgroupProcs(c libcontainer.Container) {
<add> var procs []*os.Process
<add> if err := c.Pause(); err != nil {
<add> logrus.Warn(err)
<add> }
<add> pids... | 2 |
PHP | PHP | fix bad merge | 4235ab8d3768b1467ec6273c7503f519b6c886dc | <ide><path>src/Validation/Validation.php
<ide> public static function date($check, $format = 'ymd', ?string $regex = null): boo
<ide> $regex['Mdy'] = '/^(?:(((Jan(uary)?|Ma(r(ch)?|y)|Jul(y)?|Aug(ust)?|Oct(ober)?|Dec(ember)?)\\ 31)|((Jan(uary)?|Ma(r(ch)?|y)|Apr(il)?|Ju((ly?)|(ne?))|Aug(ust)?|Oct(ober)?|(Sep)(tem... | 1 |
Ruby | Ruby | show correct return types for examples [ci skip] | 0a96195119b38b18ee5bd68bc6d4c5feb75d2f65 | <ide><path>activesupport/lib/active_support/core_ext/numeric/conversions.rb
<ide> module ActiveSupport::NumericWithFormat
<ide> # ==== Examples
<ide> #
<ide> # Phone Numbers:
<del> # 5551234.to_s(:phone) # => 555-1234
<del> # 1235551234.to_s(:phone) ... | 2 |
Python | Python | remove exec_command from build_ext | 2f1dcd0c178a08ed30ceaf6dbf85edec94e8c3a0 | <ide><path>numpy/distutils/command/build_ext.py
<ide> import os
<ide> import sys
<ide> import shutil
<add>import subprocess
<ide> from glob import glob
<ide>
<ide> from distutils.dep_util import newer_group
<ide> from distutils.file_util import copy_file
<ide>
<ide> from numpy.distutils import log
<del>from numpy.dis... | 1 |
Ruby | Ruby | fix install --force-bottle for non-standard prefix | 33483e9478bf8b48f69b1c517e634f499a47094b | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def install
<ide>
<ide> # Warn if a more recent version of this formula is available in the tap.
<ide> begin
<del> if formula.pkg_version < (v = Formulary.factory(formula.full_name).pkg_version)
<add> if formula.pkg_version < (v = Formulary.facto... | 1 |
Python | Python | fix exception in mini task scheduler. | c23b31cd786760da8a8e39ecbcf2c0d31e50e594 | <ide><path>airflow/models/baseoperator.py
<ide> def on_kill(self) -> None:
<ide> """
<ide>
<ide> def __deepcopy__(self, memo):
<del> """
<del> Hack sorting double chained task lists by task_id to avoid hitting
<del> max_depth on deepcopy operations.
<del> """
<add> # Hack... | 2 |
Go | Go | use spf13/cobra for docker update | 9765593c5f7cdd3ef16dbd0cae35bb68cf5542ef | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) Command(name string) func(...string) error {
<ide> return map[string]func(...string) error{
<ide> "exec": cli.CmdExec,
<ide> "inspect": cli.CmdInspect,
<del> "update": cli.CmdUpdate,
<ide> }[name]
<ide> }
<ide><path>api/client/container/update.go
... | 5 |
Javascript | Javascript | introduce ember._cache still private api | fde1505b1720c940239c5f29ccc40d5fe2279530 | <ide><path>packages/ember-metal/lib/cache.js
<add>import dictionary from 'ember-metal/dictionary';
<add>export default Cache;
<add>
<add>function Cache(limit, func) {
<add> this.store = dictionary(null);
<add> this.size = 0;
<add> this.misses = 0;
<add> this.hits = 0;
<add> this.limit = limit;
<add> this.fu... | 1 |
Text | Text | remove article for cloning objects in javascript | af1922a971216674c90b6a3034661128ef8fb2ad | <ide><path>docs/faq/Performance.md
<ide> However, you _do_ need to create a copied and updated object for each level of n
<ide> - [#758: Why can't state be mutated?](https://github.com/reduxjs/redux/issues/758)
<ide> - [#994: How to cut the boilerplate when updating nested entities?](https://github.com/reduxjs/redux/is... | 1 |
Text | Text | add async_hooks, n-api to _toc.md and all.md | 38cec08ff74f2a02850bd036c17d375f8f38a58b | <ide><path>doc/api/_toc.md
<ide> <div class="line"></div>
<ide>
<ide> * [Assertion Testing](assert.html)
<add>* [Async Hooks](async_hooks.html)
<ide> * [Buffer](buffer.html)
<ide> * [C++ Addons](addons.html)
<ide> * [C/C++ Addons - N-API](n-api.html)
<ide><path>doc/api/all.md
<ide> @include documentation
<ide> @includ... | 2 |
Python | Python | add test for tensorinv() | e9b1fb1c8f0abb6aa27b223d969b2f0797f77235 | <ide><path>numpy/linalg/tests/test_linalg.py
<ide> def test_dynamic_programming_logic(self):
<ide> def test_too_few_input_arrays(self):
<ide> assert_raises(ValueError, multi_dot, [])
<ide> assert_raises(ValueError, multi_dot, [np.random.random((3, 3))])
<add>
<add>
<add>class TestTensorinv(object):
... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.