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 |
|---|---|---|---|---|---|
Ruby | Ruby | remove conditional adding a new method | 863ea1b82691b5d10ff189fef162b9f760423ed6 | <ide><path>activerecord/lib/active_record/aggregations.rb
<ide> def composed_of(part_id, options = {})
<ide> writer_method(name, class_name, mapping, allow_nil, converter)
<ide>
<ide> reflection = ActiveRecord::Reflection.create(:composed_of, part_id, nil, options, self)
<del> Reflection.add_ref... | 2 |
Go | Go | add unlock key rotation | a6030a50c95cd4e8b39b5f4d5705bb23ebdb28c5 | <ide><path>api/server/router/swarm/cluster_routes.go
<ide> func (sr *swarmRouter) updateCluster(ctx context.Context, w http.ResponseWriter,
<ide> flags.RotateManagerToken = rot
<ide> }
<ide>
<add> if value := r.URL.Query().Get("rotateManagerUnlockKey"); value != "" {
<add> rot, err := strconv.ParseBool(value)
<add... | 4 |
Python | Python | put dimensions into variables | b5dac6bd6415838f95cf936e473a70fd00b0c8b1 | <ide><path>tests/auto/keras/layers/test_recurrent.py
<ide>
<ide> from keras.layers import recurrent
<ide>
<del>def recursive_runner(layer):
<del> layer.input = theano.shared(value=np.ones((10,10,10)))
<add>nb_samples, timesteps, input_dim, output_dim = 3, 3, 10, 5
<ide>
<del> config = layer.get_config()
<ide> ... | 1 |
Text | Text | update unprefixed css props doc | 51b6092264608c258d70451df9ed3f3f172c8d4f | <ide><path>docs/tips/06-style-props-value-px.md
<ide> See [Inline Styles](/react/tips/inline-styles.html) for more info.
<ide> Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix:
<ide>
<ide> - `boxFlex`
<add>- `boxFlexGroup`
<ide> - `column... | 1 |
Javascript | Javascript | specify global object for globals | 44243e59df293c3579eb1dc779d5c2aaefb4d8bd | <ide><path>test/parallel/test-fs-write.js
<ide> const fn4 = path.join(tmpdir.path, 'write4.txt');
<ide> const expected = 'ümlaut.';
<ide> const constants = fs.constants;
<ide>
<del>/* eslint-disable no-undef */
<del>common.allowGlobals(externalizeString, isOneByteString, x);
<add>const { externalizeString, isOneByteSt... | 1 |
Python | Python | fix url generation for triggerdagrunoperatorlink | aaa3bf6b44238241bd61178426b692df53770c22 | <ide><path>airflow/utils/helpers.py
<ide> from typing import Any, Callable, Dict, Generator, Iterable, List, Optional, TypeVar
<ide> from urllib import parse
<ide>
<add>from flask import url_for
<ide> from jinja2 import Template
<ide>
<ide> from airflow.configuration import conf
<ide> def build_airflow_url_with_query... | 2 |
Python | Python | fix data types in after_request test | f9e9e774646ff7cbd2df6386c7055760936a9fcd | <ide><path>flask/testsuite/basic.py
<ide> def before_request():
<ide> evts.append('before')
<ide> @app.after_request
<ide> def after_request(response):
<del> response.data += '|after'
<add> response.data += b'|after'
<ide> evts.append('after')
<ide> ... | 1 |
PHP | PHP | remove unneeded variable assignment | 4d0757b64f1b0565bf86b2767d290c9b2ff7ea0f | <ide><path>src/Http/Middleware/CallableMiddleware.php
<ide> public function __construct(callable $callable)
<ide>
<ide> public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
<ide> {
<del> return $response = ($this->callable)(
<add> return (... | 1 |
Javascript | Javascript | verify npm version | 634c995a71d29f25282c772ae8b1ed28a8aa9281 | <ide><path>script/utils/verify-requirements.js
<ide> module.exports = function(cb) {
<ide> return;
<ide> }
<ide>
<del> verifyPython27(function(error, pythonSuccessMessage) {
<del> cb(error, (nodeSuccessMessage + "\n" + pythonSuccessMessage).trim());
<add> verifyNpm(function(error, npmSuccessMessag... | 1 |
Javascript | Javascript | fix regression introduced in | 269103a0e5e30cc217bde1660087e87dfc722b8a | <ide><path>lib/_stream_readable.js
<ide> function onEofChunk(stream, state) {
<ide> }
<ide> }
<ide> state.ended = true;
<del> state.needReadable = false;
<ide>
<del> // We are not protecting if emittedReadable = true,
<del> // so 'readable' gets scheduled anyway.
<del> state.emittedReadable = true;
<del> ... | 7 |
Javascript | Javascript | enable eslint no-constant-condition rule | 5bce5b706ff192bd30138ced1b0862dcbe957f6c | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> 'no-class-assign': 'error',
<ide> 'no-confusing-arrow': 'error',
<ide> 'no-const-assign': 'error',
<add> 'no-constant-condition': ['error', { checkLoops: false }],
<ide> 'no-constructor-return': 'error',
<ide> 'no-control-regex': 'error',
<id... | 1 |
Javascript | Javascript | update htmlmesh.js | b3119d196ae99ed45eabbf173671db53a0001a97 | <ide><path>examples/jsm/interactive/HTMLMesh.js
<ide> function html2canvas( element ) {
<ide> drawBorder( style, 'borderBottom', x, y + height, width, 0 );
<ide> drawBorder( style, 'borderRight', x + width, y, 0, height );
<ide>
<del> if ( element.type === 'color' || element.type === 'text' ) {
<add> if ( el... | 1 |
Javascript | Javascript | update auth0 example with getserversideprops | f2315ffc8fc484177e5b9e4e08aeaa5f930da5a1 | <ide><path>examples/auth0/pages/advanced/ssr-profile.js
<del>import React from 'react'
<del>
<del>// This import is only needed when checking authentication status directly from getInitialProps
<add>// This import is only included in the server build, because it's only used by getServerSideProps
<ide> import auth0 from... | 2 |
Python | Python | build documentation breeze | 81c85a09d944021989ab530bc6caf1d9091a753c | <ide><path>dev/breeze/src/airflow_breeze/breeze.py
<ide> import subprocess
<ide> import sys
<ide> from pathlib import Path
<del>from typing import Optional
<add>from typing import Optional, Tuple
<ide>
<ide> import click
<ide> import click_completion
<ide> from click import ClickException
<ide> from click_completion i... | 9 |
Python | Python | handle empty inputs in cov and corrcoef. closes | 1dcf0c96df5e2f7b861c6054ead2ad7ebc77aa79 | <ide><path>numpy/lib/function_base.py
<ide> def cov(m, y=None, rowvar=1, bias=0, ddof=None):
<ide> raise ValueError("ddof must be integer")
<ide>
<ide> X = array(m, ndmin=2, dtype=float)
<add> if X.size == 0:
<add> # handle empty arrays
<add> return np.array(m)
<ide> if X.shape[0] == 1... | 2 |
Mixed | Javascript | fix compose() to have a less surprising api | 5b9a8b09e9573fcf88afbff8dd3b39dbbf837e04 | <ide><path>docs/api/compose.md
<ide> # `compose(...functions)`
<ide>
<del>Composes functions from left to right.
<add>Composes functions from right to left.
<ide>
<ide> This is a functional programming utility, and is included in Redux as a convenience.
<ide> You might want to use it to apply several [store enhance... | 4 |
Text | Text | organize structure and add section on packages | 65f02eab50f137e3da7bdd9c0e89d2c23946f494 | <ide><path>CONTRIBUTING.md
<ide>
<ide> :+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
<ide>
<del>The following is a set of guidelines for contributing to Atom and its packages,
<del>which are hosted in the [Atom Organization](https://github.com/atom) on GitHub.
<del>These are just guidelin... | 1 |
PHP | PHP | get/has with null values | 5b057e4d840d63e265268112be40074ceec076b2 | <ide><path>tests/Support/SupportArrayTest.php
<ide> public function testGet()
<ide> $value = Arr::get($array, 'products.desk');
<ide> $this->assertEquals(['price' => 100], $value);
<ide>
<add> // Test null array values
<add> $array = ['foo' => null, 'bar' => ['baz' => null]];
<add> ... | 1 |
Javascript | Javascript | add hashley app to showcase | e56ec9da359238d45a09138b65ed9bc796d25e98 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/fast-paper/id1001174614',
<ide> author: 'Liubomyr Mykhalchenko (@liubko)',
<ide> },
<add> {
<add> name: 'Hashley',
<add> icon: 'http://a2.mzstatic.com/us/r30/Purple4/v4/5f/19/fc/5f19fc13-e7af... | 1 |
PHP | PHP | apply fixes from styleci | 53675f12c79495abf7525731c1e784d02800c129 | <ide><path>src/Illuminate/Mail/Mailable.php
<ide> protected function setAddress($address, $name = null, $property = 'to')
<ide>
<ide> $this->{$property}[] = [
<ide> 'name' => isset($recipient->name) ? $recipient->name : null,
<del> 'address' => $recipient->email
<add> ... | 2 |
Text | Text | add tests to anonymous-message-board | 8f8a2cc0c588f320b6543aeb7a3ed6ab5591704f | <ide><path>curriculum/challenges/english/09-information-security/information-security-projects/anonymous-message-board.md
<ide> async (getUserInput) => {
<ide> You can send a POST request to `/api/replies/{board}` with form data including `text`, `delete_password`, & `thread_id`. This will update the `bumped_on` date t... | 1 |
Javascript | Javascript | fix header on rntester file | c78ddf2c3d00ececffd6634fc23df8df3cf33023 | <ide><path>RNTester/js/ARTExample.js
<ide> * LICENSE file in the root directory of this source tree. An additional grant
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> *
<del> * The examples provided by Facebook are for non-commercial testing and
<del> * evaluation purposes on... | 1 |
Go | Go | fix small \n error un docker build | ba17f4a06a75a66e11b6cf2ca2cdb5bee4f7bfa8 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdBuild(args ...string) error {
<ide> // FIXME: ProgressReader shouldn't be this annoyning to use
<ide> if context != nil {
<ide> sf := utils.NewStreamFormatter(false)
<del> body = utils.ProgressReader(ioutil.NopCloser(context), 0, cli.err, sf.FormatProgress("", ... | 4 |
Python | Python | fix t5 head mask in model_parallel | 248fa1ae72f01460c76c2450d747fa1cc29d85b0 | <ide><path>src/transformers/models/t5/modeling_t5.py
<ide> def forward(
<ide> hidden_states = self.dropout(inputs_embeds)
<ide>
<ide> for i, (layer_module, past_key_value) in enumerate(zip(self.block, past_key_values)):
<add> layer_head_mask = head_mask[i]
<add> encoder_layer_head... | 1 |
PHP | PHP | remove deprecation notice | 650afd814a81edeba93471f747a839d2fd35e496 | <ide><path>src/Collection/CollectionInterface.php
<ide> public function zipWith($items, $callable);
<ide> *
<ide> * @param int $chunkSize The maximum size for each chunk
<ide> * @return \Cake\Collection\CollectionInterface
<del> * @deprecated 4.0.0 Deprecated in favor of chunks
<ide> */
<ide> ... | 1 |
Mixed | Java | add showsoftinputonfocus to textinput | d88e4701fc46b028861ddcfa3e6ffb141b3ede3d | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> type AndroidProps = $ReadOnly<{|
<ide> | 'yes'
<ide> | 'yesExcludeDescendants'
<ide> ),
<add> showSoftInputOnFocus?: ?boolean,
<ide> |}>;
<ide>
<ide> type Props = $ReadOnly<{|
<ide> const TextInput = createReactClass({
<ide> 'newPassword',
<... | 3 |
Text | Text | add jenkins and godoc badges | 10005433eb3434d3f59ad99030591e5b1d8fc692 | <ide><path>README.md
<del>Docker: the container engine
<add>Docker: the container engine [](https://github.com/docker/docker/releases/latest)
<ide> ============================
<ide>
<ide> Docker is an open source project to pack, ship and run any appl... | 1 |
Java | Java | fix javadoc for single.flatmapobservable | 39a4e42e0aa18670e4af39c152a4dd0a74d01ad4 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public final <U> Observable<U> flattenAsObservable(final Function<? super T, ? e
<ide> }
<ide>
<ide> /**
<del> * Returns a Single that is based on applying a specified function to the item emitted by the source Single,
<del>>>>>>>> refs/remotes/akarno... | 1 |
Javascript | Javascript | fix minor grammar and typo errors in comments | 972ae4c18643535289a2e03f224911c668e5aba8 | <ide><path>Libraries/Components/MapView/MapView.js
<ide> var MapView = React.createClass({
<ide>
<ide> /**
<ide> * If `false` the user won't be able to pinch/zoom the map.
<del> * Default `value` is true.
<add> * Default value is `true`.
<ide> */
<ide> zoomEnabled: React.PropTypes.bool,
<ide>... | 1 |
Go | Go | add error check after parsestorageopt | 373654f43e87a2e0bd5388ca4ab1852fd51a7199 | <ide><path>daemon/graphdriver/zfs/zfs.go
<ide> func (d *Driver) Create(id string, parent string, mountLabel string, storageOpt
<ide> func (d *Driver) create(id, parent string, storageOpt map[string]string) error {
<ide> name := d.zfsPath(id)
<ide> quota, err := parseStorageOpt(storageOpt)
<add> if err != nil {
<add> ... | 1 |
Text | Text | add missing tick marks | 887da7f6c5a9e7b5007f5e4af32a6b93b18c70ea | <ide><path>docs/api-guide/throttling.md
<ide> The default throttling policy may be set globally, using the `DEFAULT_THROTTLE_C
<ide>
<ide> The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `second`, `minute`, `hour` or `day` as the throttle period.
<ide>
<del>By default Django REST Framework will try... | 1 |
Python | Python | fix e231 flake8 warning (x9) | ea89bec185f7acaeb4b7e5c0ee1082e541becedd | <ide><path>transformers/hf_api.py
<ide> def presign_and_upload(self, token, filename, filepath):
<ide> pf = TqdmProgressFileReader(f)
<ide> data = f if pf.total_size > 0 else ""
<ide>
<del> r = requests.put(urls.write, data=data, headers={"content-type": urls.type,})
<add> ... | 6 |
PHP | PHP | fix method name | f3d3a654726a55d8b0959e136070ad80e4683a6f | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function find($id, $columns = array('*'))
<ide> *
<ide> * @return \Illuminate\Database\Query\Builder
<ide> */
<del> public static function onWrite()
<add> public static function onWriteConnection()
<ide> {
<ide> $instance = new static;
<... | 1 |
Java | Java | correlate data buffers to request log messages | ad420107852bafa141dcd68120be6d6a24153bf8 | <ide><path>spring-core/src/main/java/org/springframework/core/codec/Hints.java
<ide>
<ide> import org.apache.commons.logging.Log;
<ide>
<add>import org.springframework.core.io.buffer.DataBuffer;
<add>import org.springframework.core.io.buffer.DataBufferUtils;
<ide> import org.springframework.lang.Nullable;
<ide> impor... | 11 |
Javascript | Javascript | fix user deletion of credentials | 0f5f92b937768adf3bc29a7d4dc39f51a5d8ad43 | <ide><path>server/boot/a-extendUser.js
<ide> var Rx = require('rx');
<ide> var debug = require('debug')('freecc:user:remote');
<ide>
<del>function destroyById(id, Model) {
<del> return Rx.Observable.create(function(observer) {
<del> Model.destroyById(id, function(err) {
<del> if (err) { return observer.onErro... | 1 |
Go | Go | fix a typo in comment | d30990d7b1468488768847521a3a7ce66a081015 | <ide><path>api/client/restart.go
<ide> import (
<ide>
<ide> // CmdRestart restarts one or more running containers.
<ide> //
<del>// Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
<add>// Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...]
<ide> func (cli *DockerCli) CmdRestart(args ...string) error {
<ide>... | 1 |
Javascript | Javascript | update pdbloader.js with comments | 6e0892b963bfc3d0d1f1dc162804dafca2fb4f18 | <ide><path>examples/js/loaders/PDBLoader.js
<ide> */
<ide>
<ide> THREE.PDBLoader = function ( manager ) {
<del>
<add> //add your own manager or use default manager
<ide> this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
<ide>
<ide> };
<ide> THREE.PDBLoader.prototype = {
<ide> ... | 1 |
PHP | PHP | add macroable trait to filesystem adapter | 943ed618870ad525824693d2dc9a0db1a20c36d0 | <ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Collection;
<ide> use Illuminate\Support\Str;
<add>use Illuminate\Support\Traits\Macroable;
<ide> use InvalidArgumentException;
<ide> use League\Flysystem\Adapter\Ftp;
<ide> use League\Flysystem\Ada... | 2 |
Javascript | Javascript | make isstackoverflowerror() engine-agnostic | cd5f353405842329fc44d25d677735a8538d6c43 | <ide><path>lib/internal/errors.js
<ide> function dnsException(err, syscall, hostname) {
<ide> return ex;
<ide> }
<ide>
<del>let MAX_STACK_MESSAGE;
<add>let maxStack_ErrorName;
<add>let maxStack_ErrorMessage;
<ide> /**
<del> * Returns true if `err` is a `RangeError` with an engine-specific message.
<add> * Returns tr... | 1 |
Python | Python | fix flax examples tests | 75ae287aecf20a37c232a41e25443a3421a8b5e2 | <ide><path>examples/flax/question-answering/run_qa.py
<ide> import transformers
<ide> from flax import struct, traverse_util
<ide> from flax.jax_utils import replicate, unreplicate
<del>from flax.metrics import tensorboard
<ide> from flax.training import train_state
<ide> from flax.training.common_utils import get_metr... | 5 |
Ruby | Ruby | use $stderr for debug and errors | 604323e641ccd0b125716f4a337b1f9384236716 | <ide><path>Library/brew.rb
<ide> def require?(path)
<ide> if empty_argv || (help_flag && (cmd.nil? || internal_cmd))
<ide> # TODO: - `brew help cmd` should display subcommand help
<ide> require "cmd/help"
<del> puts ARGV.usage
<add> if empty_argv
<add> $stderr.puts ARGV.usage
<add> else
<add> ... | 1 |
Text | Text | fix typo in doc at /set-up-dev-env | dd6f988b23b56ce0ca17ab892143db53f1fa2f84 | <ide><path>docs/sources/project/set-up-dev-env.md
<ide> with the `make.sh` script.
<ide> root@5f8630b873fe:/go/src/github.com/docker/docker# docker --version
<ide> Docker version 1.5.0-dev, build 6e728fb
<ide>
<del> Inside the container you are running a development version. This is version
<del> ... | 1 |
PHP | PHP | remove comment from duplicate bootstrap instance | c170d0dc38dd17ed8451177b23fba4968b610c1e | <ide><path>resources/views/app.blade.php
<ide> <meta name="viewport" content="width=device-width, initial-scale=1">
<ide> <title>Laravel</title>
<ide>
<del> <!-- Bootstrap -->
<ide> <link href="/css/app.css" rel="stylesheet">
<ide>
<ide> <!-- Fonts --> | 1 |
PHP | PHP | remove unused objects | 475ef7e3b9ed7938c0404a6ef962a45f445f0fb0 | <ide><path>tests/TestCase/View/ViewTest.php
<ide> public function tearDown()
<ide> */
<ide> public function testGetTemplate()
<ide> {
<del> $request = $this->getMockBuilder('Cake\Http\ServerRequest')->getMock();
<del> $response = $this->getMockBuilder('Cake\Http\Response')->getMock();
<del>
<... | 1 |
Javascript | Javascript | add js error to animatedvalue constructor | a3aaa471eca58b31597b9a0669f7ade385ccb175 | <ide><path>Libraries/Animated/src/nodes/AnimatedValue.js
<ide> class AnimatedValue extends AnimatedWithChildren {
<ide>
<ide> constructor(value: number) {
<ide> super();
<add> if (typeof value !== 'number') {
<add> throw new Error('AnimatedValue: Attempting to set value to undefined');
<add> }
<ide> ... | 1 |
Javascript | Javascript | remove the support of json parsing mode | 1d37239eaf18d46d76f510eec22fade8c250550e | <ide><path>src/ng/parse.js
<ide> Lexer.prototype = {
<ide>
<ide> this.tokens = [];
<ide>
<del> var token;
<del> var json = [];
<del>
<ide> while (this.index < this.text.length) {
<ide> this.ch = this.text.charAt(this.index);
<ide> if (this.is('"\'')) {
<ide> Lexer.prototype = {
<ide> ... | 1 |
Ruby | Ruby | remove deprecation warnings from action pack | 6c57177f2c7f4f934716d588545902d5fc00fa99 | <ide><path>actionpack/lib/action_dispatch/middleware/show_exceptions.rb
<ide> class ShowExceptions
<ide> "application's log file and/or the web server's log file to find out what " <<
<ide> "went wrong.</body></html>"]]
<ide>
<del> class << self
<del> def rescue_responses
<del> ActiveSuppo... | 9 |
Javascript | Javascript | return promise.all from dispatch | 03d16c4f5d111373a4a7275fd07bb096805c9950 | <ide><path>spec/command-registry-spec.js
<ide> describe("CommandRegistry", () => {
<ide> expect(calls).toEqual([]);
<ide> });
<ide>
<del> it("invokes callbacks registered with ::onWillDispatch and ::onDidDispatch and ::onDidFinish", () => {
<add> it("invokes callbacks registered with ::onWillDispatch and... | 2 |
Javascript | Javascript | add dblclick method to the ngscenario dsl | 8cb9c99ec064fd95567118d29bfa4a19b8613ab3 | <ide><path>src/ngScenario/dsl.js
<ide> angular.scenario.dsl('element', function() {
<ide> });
<ide> };
<ide>
<add> chain.dblclick = function() {
<add> return this.addFutureAction("element '" + this.label + "' dblclick", function($window, $document, done) {
<add> var elements = $document.elements();
<add... | 2 |
Python | Python | fix warnings in deberta | b6204c9e9b0c03a5a1209842d77a05eadbeb007e | <ide><path>src/transformers/models/deberta/modeling_deberta.py
<ide> def linear(w, b, x):
<ide> qkvw = [torch.cat([ws[i * 3 + k] for i in range(self.num_attention_heads)], dim=0) for k in range(3)]
<ide> qkvb = [None] * 3
<ide>
<del> q = linear(qkvw[0], qkvb[0], torch.tensor(query_st... | 3 |
Text | Text | improve translation for russian locale | e2832fe714b4096ff036b011c907d1320c161664 | <ide><path>curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/functional-programming/remove-elements-from-an-array-using-slice-instead-of-splice.russian.md
<ide> id: 9d7123c8c441eeafaeb5bdef
<ide> title: Remove Elements from an Array Using slice Instead of splice
<ide> challengeType: 1
<ide> vid... | 1 |
Javascript | Javascript | use more primordials | 1f6ca18c3b7c9527747bc23de8be87bfe338f239 | <ide><path>lib/internal/console/constructor.js
<ide> const {
<ide> ArrayFrom,
<ide> ArrayIsArray,
<add> ArrayPrototypePush,
<add> ArrayPrototypeUnshift,
<ide> Boolean,
<ide> ErrorCaptureStackTrace,
<del> Map,
<add> FunctionPrototypeBind,
<ide> MathFloor,
<ide> Number,
<add> NumberPrototypeToFixed,
<ide... | 2 |
Ruby | Ruby | require global_identification in serialisations | fc9267e34ac7ccb7f5cdfc9296bb38cd105c728b | <ide><path>lib/active_job/arguments.rb
<ide> require 'active_model/global_locator'
<add>require 'active_model/global_identification'
<ide>
<ide> module ActiveJob
<ide> class Arguments | 1 |
PHP | PHP | remove noise docblock annotations | 6dcabd25c407a40efb627728f03225dfa8416735 | <ide><path>src/Auth/BaseAuthenticate.php
<ide>
<ide> /**
<ide> * Base Authentication class with common methods and properties.
<del> *
<del> * @mixin \Cake\Core\InstanceConfigTrait
<ide> */
<ide> abstract class BaseAuthenticate implements EventListenerInterface
<ide> {
<del>
<ide> use InstanceConfigTrait;
<ide> ... | 13 |
Javascript | Javascript | add testids and names to animated examples | 7d4612b076529a1a868e52890c236375bb3f2814 | <ide><path>packages/rn-tester/js/components/RNTesterButton.js
<ide> const {StyleSheet, Text, TouchableHighlight} = require('react-native');
<ide> import type {PressEvent} from 'react-native/Libraries/Types/CoreEventTypes';
<ide>
<ide> type Props = $ReadOnly<{|
<add> testID?: string,
<ide> children?: React.Node,
<id... | 2 |
PHP | PHP | use table locator in databasesession | 9d2e619d848cef737a304f8902470ef6e2031792 | <ide><path>src/Network/Session/DatabaseSession.php
<ide> class DatabaseSession implements SessionHandlerInterface
<ide> */
<ide> public function __construct(array $config = [])
<ide> {
<add> $tableLocator = isset($config['tableLocator']) ? $config['tableLocator'] : TableRegistry::locator();
<add>
<i... | 1 |
Go | Go | add test for exec tty stdin close | 243a640d3e593ee11e31ac55a4df8c887c2b09c9 | <ide><path>integration-cli/docker_cli_exec_test.go
<ide> func TestExecPausedContainer(t *testing.T) {
<ide>
<ide> logDone("exec - exec should not exec a pause container")
<ide> }
<add>
<add>// regression test for #9476
<add>func TestExecTtyCloseStdin(t *testing.T) {
<add> defer deleteAllContainers()
<add>
<add> cmd :... | 1 |
Javascript | Javascript | return http request on load | 82a5a52b164137637908dd4a4eede6e7e7d703f7 | <ide><path>src/loaders/XHRLoader.js
<ide> THREE.XHRLoader.prototype = {
<ide>
<ide> scope.manager.itemStart( url );
<ide>
<add> return request;
<add>
<ide> },
<ide>
<ide> setResponseType: function ( value ) { | 1 |
Text | Text | add docs for --dns-search= | 36ffbd7acf60d15942c0591bb4fec498f021331e | <ide><path>docs/man/docker-create.1.md
<ide> docker-create - Create a new container
<ide> Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc:rwm)
<ide>
<ide> **--dns-search**=[]
<del> Set custom DNS search domains
<add> Set custom DNS search domains (Use --dns-search=. if you don't wish to set... | 4 |
Python | Python | fix build on rtd | be8f1ac0d730cf943743091fa865cdbbdde93b50 | <ide><path>docs/conf.py
<ide> ROOT_DIR = os.path.abspath(os.path.join(CONF_DIR, os.pardir))
<ide>
<ide> # By default (e.g. on RTD), build docs for `airflow` package
<del>PACKAGE_NAME = os.environ.get('AIRFLOW_PACKAGE_NAME', 'airflow')
<add>PACKAGE_NAME = os.environ.get('AIRFLOW_PACKAGE_NAME', 'apache-airflow')
<ide> i... | 1 |
PHP | PHP | last | 7d7b73231bbb6c5c1916ff4263b207f18b9342c9 | <ide><path>src/Illuminate/Support/Arr.php
<ide> public static function last($array, callable $callback = null, $default = null)
<ide> return empty($array) ? value($default) : end($array);
<ide> }
<ide>
<del> return static::first(array_reverse($array), $callback, $default);
<add> retur... | 3 |
Javascript | Javascript | fix minor typo | 543cf1803b2a9a89b55115ad1b665bbc38feb1db | <ide><path>src/ng/compile.js
<ide> * local name. Given `<widget my-attr="count = count + value">` and widget definition of
<ide> * `scope: { localFn:'&myAttr' }`, then isolate scope property `localFn` will point to
<ide> * a function wrapper for the `count = count + value` expression. Often it's desirable to
<... | 1 |
Text | Text | add example to if else in jsx | b9cf0d2bddf451167a8c8ea82b3f2d81c2a66935 | <ide><path>docs/tips/03-if-else-in-JSX.md
<ide> That's not valid JS. You probably want to make use of a ternary expression:
<ide> React.renderComponent(<div id={condition ? 'msg' : ''}>Hello World!</div>, mountNode);
<ide> ```
<ide>
<add>If a ternary expression isn't robust enough, you can use `if` statements to deter... | 1 |
Javascript | Javascript | add workaround for safari / webdriver problem | ab36c4b487032183833ab62656ed2dfaefb32b9e | <ide><path>src/Angular.js
<ide> function angularInit(element, bootstrap) {
<ide> });
<ide> if (appElement) {
<ide> if (!isAutoBootstrapAllowed) {
<del> try {
<del> window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
<add> window.console.error('Angular... | 1 |
Javascript | Javascript | add unit test for ie11 url parsing failure | b2b896f949b79f1d8c558f462fabad1c04bf564e | <ide><path>test/ng/directive/booleanAttrsSpec.js
<ide> describe('ngHref', function() {
<ide> expect(element.attr('href')).toEqual(undefined);
<ide> }));
<ide>
<add> if (msie) {
<add> // IE11/10/Edge fail when setting a href to a URL containing a % that isn't a valid escape sequence
<add> // See https://gi... | 1 |
Go | Go | remove 256 character limit of libdm logs | 63328c6882c3d1f54c66499ef9963adfbf1883f0 | <ide><path>pkg/devicemapper/devmapper_wrapper.go
<ide> package devicemapper
<ide>
<ide> /*
<ide> #cgo LDFLAGS: -L. -ldevmapper
<add>#define _GNU_SOURCE
<ide> #include <libdevmapper.h>
<ide> #include <linux/fs.h> // FIXME: present only for BLKGETSIZE64, maybe we can remove it?
<ide>
<ide> extern void DevmapperLogCal... | 1 |
Javascript | Javascript | use tempdir by default | 44cd9fcdeda000368d9927b784b3cfa80be87723 | <ide><path>packager/index.js
<ide> 'use strict';
<ide>
<ide> const Logger = require('./src/Logger');
<add>const TransformCaching = require('./src/lib/TransformCaching');
<ide>
<ide> const debug = require('debug');
<ide> const invariant = require('fbjs/lib/invariant');
<ide> function createServer(options: StrictOption... | 1 |
Go | Go | fix panic on daemon restart with running plugin | dbeb4329655e91dbe0e6574405937f03fabf3f2f | <ide><path>plugin/executor/containerd/containerd.go
<ide> type Executor struct {
<ide> exitHandler ExitHandler
<ide> }
<ide>
<add>// deleteTaskAndContainer deletes plugin task and then plugin container from containerd
<add>func deleteTaskAndContainer(ctx context.Context, cli Client, id string) {
<add> _, _, err := cl... | 5 |
Javascript | Javascript | assemble cmap table from strings instead of arrays | 70887f617fc5a8c9b953a3ebbfc507fb9c131bff | <ide><path>fonts.js
<ide> var Font = (function () {
<ide> function createCMAPTable(aGlyphs) {
<ide> var ranges = getRanges(aGlyphs);
<ide>
<del> // The size in bytes of the header is equal to the size of the
<del> // different fields * length of a short + (size of the 4 parallels arrays
<de... | 1 |
Javascript | Javascript | fix typo in testflags | cbafbf4f323ebbc13e9e24214978594d87e9b094 | <ide><path>scripts/jest/TestFlags.js
<ide> function getTestFlags() {
<ide> return new Proxy(
<ide> {
<ide> // Feature flag aliases
<del> old: featureFlags.enableNewReconciler === true,
<add> old: featureFlags.enableNewReconciler === false,
<ide> new: featureFlags.enableNewReconciler === true... | 1 |
Python | Python | add extrapolation tests | 98cf811e27138c41e365222cb70f06d70c0db4ee | <ide><path>numpy/lib/tests/test_function_base.py
<ide> def test_nearest(self, dtype):
<ide> assert_equal(np.percentile(np.arange(10, dtype=dtype), 49,
<ide> interpolation='nearest'), 4)
<ide>
<add> def test_linear_interpolation_extrapolation(self):
<add> arr = n... | 1 |
PHP | PHP | fix failing test in debugger test case | e9779e71266c68919e3a7221bc0147484f47ee18 | <ide><path>lib/Cake/Test/Case/Utility/DebuggerTest.php
<ide> public function testExportVar() {
<ide> $expected = <<<TEXT
<ide> object(View) {
<ide> Helpers => object(HelperCollection) {}
<add> Blocks => object(ViewBlock) {}
<ide> plugin => null
<ide> name => ''
<ide> passedArgs => array()
<ide> public function te... | 2 |
Python | Python | unbreak non-linux platforms | 837193ef7bdaf2b37d176cd750235ab0008c2e12 | <ide><path>unitest.py
<ide> import time
<ide> import unittest
<ide>
<del>from glances.outputs.glances_bars import Bar
<del>from glances.core.glances_globals import (
<del> appname,
<del> is_linux,
<del> version
<del>)
<del>
<ide> # Global variables
<ide> # =================
<ide>
<del># Unitary test is only ... | 1 |
Javascript | Javascript | fix typos in optional locale definitions | 8e1ec1e74ba68c0bb68ccd0257a37064e03d7b50 | <ide><path>src/locale/en-GB.js
<ide> import "locale";
<ide>
<del>var d3.locale.en_GB = d3.locale({
<add>d3.locale.en_GB = d3.locale({
<ide> decimal: ".",
<ide> thousands: ",",
<ide> grouping: [3],
<ide><path>src/locale/zh-CN.js
<ide> import "locale";
<ide>
<del>var d3.locale.zh_CN = d3.locale({
<add>d3.locale.z... | 2 |
Javascript | Javascript | set hot test cases timeout to 5s | f072fd2978a2e02f453aa7853953f11dcb94c079 | <ide><path>test/HotTestCases.test.js
<ide> describe("HotTestCases", () => {
<ide>
<ide> function _it(title, fn) {
<ide> const test = new Test(title, fn);
<add> test.timeout(5000);
<ide> suite.addTest(test);
<ide> exportedTests++;
<ide> return test; | 1 |
PHP | PHP | avoid failing tests by 1 second diff | 7e5ef1dc0d25fa6e4efdd4c8e2448871732a5fc2 | <ide><path>lib/Cake/Test/Case/Network/Email/DebugTransportTest.php
<ide> public function testSend() {
<ide> $email->bcc('phpnut@cakephp.org');
<ide> $email->messageID('<4d9946cf-0a44-4907-88fe-1d0ccbdd56cb@localhost>');
<ide> $email->subject('Testing Message');
<add> $date = date(DATE_RFC2822);
<add> $email->se... | 2 |
Javascript | Javascript | remove unneeded callback check | c9d7b753469e63bee13badff16ed6dbfb9222e6c | <ide><path>lib/_debugger.js
<ide> Client.prototype.mirrorObject = function(handle, depth, cb) {
<ide>
<ide> waitForOthers();
<ide> function waitForOthers() {
<del> if (--waiting === 0 && cb) {
<add> if (--waiting === 0) {
<ide> keyValues.forEach(function(kv) {
<ide> mirr... | 1 |
Javascript | Javascript | fix typo of unkown to unknown | b95228ed89fa163056945210f4ebd3554165f390 | <ide><path>examples/with-context-api/components/Counter.js
<ide> const reducer = (state, action) => {
<ide> case 'INCREASE_BY':
<ide> return state + action.payload
<ide> default:
<del> throw new Error(`Unkown action: ${action.type}`)
<add> throw new Error(`Unknown action: ${action.type}`)
<ide> ... | 1 |
Javascript | Javascript | remove outdated support tests | ccf7abafa6843e70fb71f458cea5d5567cb5984d | <ide><path>test/unit/support.js
<ide> testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
<ide> expect( 1 );
<ide> strictEqual( shrinkWrapBlocks, jQuery.support.shrinkWrapBlocks, "jQuery.support.shrinkWrapBlocks properties are the same" );
<ide> });
<del>
<del>(function() {
<del> var expe... | 1 |
Ruby | Ruby | require git log only when not strict | 84f544f08ff280ea1750a647933e4bb6420c5b22 | <ide><path>Library/Homebrew/formula_auditor.rb
<ide> def audit_conflicts
<ide> def audit_gcc_dependency
<ide> return unless @git
<ide> return unless @core_tap
<del> return unless formula.tap.git? # git log is required
<add> return if !@strict && !formula.tap.git? # git log is required for non-... | 1 |
Javascript | Javascript | add fix for overwriting style attribute bindings | db465aefdbe4472dc90bfdd481b7cdedd1095bda | <ide><path>packages/ember-views/lib/system/build-component-template.js
<ide> function normalizeComponentAttributes(component, attrs) {
<ide> }
<ide>
<ide> if (component.isVisible === false) {
<del> normalized.style = ['value', "display: none;"];
<add> var hiddenStyle = ['value', "display: none;"];
<add> v... | 2 |
Python | Python | fix gpu installation. closes | 02d7b41893a98800c3a9514234a1d525868e611e | <ide><path>setup.py
<ide> def setup_package():
<ide> ],
<ide> setup_requires=["wheel"],
<ide> extras_require={
<del> "cuda": ["cupy>=4.0"],
<del> "cuda80": ["cupy-cuda80>=4.0"],
<del> "cuda90": ["cupy-cuda90>=4.0"],
<del> "c... | 1 |
Text | Text | add guide for gatsby.js caching | 2b40551efb4addaa227f8ad4b3af9b937a475bf1 | <ide><path>guide/english/gatsbyjs/gatsbyjs-caching/index.md
<add>---
<add>title: Gatsby.js Caching
<add>---
<add>
<add>## Gatsby.js Caching Static Sites
<add>
<add>An important part of creating a very fast website is setting up proper HTTP caching. HTTP caching allows browsers to cache resources from a website so that ... | 1 |
Python | Python | fix high memory usage in download command | 692eb0603d5305a19407302721d4cd6790235496 | <ide><path>spacy/cli/download.py
<ide> def get_version(model, comp):
<ide> def download_model(filename):
<ide> util.print_msg("Downloading {f}".format(f=filename))
<ide> download_url = about.__download_url__ + '/' + filename
<del> subprocess.call([sys.executable, '-m', 'pip', 'install', download_url],
<add> ... | 1 |
Javascript | Javascript | remove time check | 9a6cfcef33f5c9d0bd53420987764bf06e9e6a8a | <ide><path>test/parallel/test-child-process-fork-net2.js
<ide> if (process.argv[2] === 'child') {
<ide> });
<ide>
<ide> var closeEmitted = false;
<del> server.on('close', function() {
<del> console.error('[m] server close');
<add> server.on('close', common.mustCall(function() {
<ide> closeEmitted = true;
... | 1 |
Text | Text | tweak the prose a little | 814916457b50082e4299691ae92b4ed368ddb076 | <ide><path>docs/sources/articles/host_integration.md
<ide> a new service that will be started after the docker daemon service has started.
<ide> [Service]
<ide> Restart=always
<ide> ExecStart=/usr/bin/docker start -a redis_server
<del> # for more options, use 'run' instead of 'start', but not suggested
<... | 1 |
Ruby | Ruby | add comment about refinement scope | ccf396887a283595affef49d8a1e445f45fecf06 | <ide><path>Library/Homebrew/cleanup.rb
<ide> def cleanup_unreferenced_downloads
<ide> return if dry_run?
<ide> return unless (cache/"downloads").directory?
<ide>
<add> # We can't use `.reject(&:incomplete?) here due to the refinement scope.
<ide> downloads = (cache/"downloads").children.reject {... | 1 |
Go | Go | remove hack in version | b2b9334f27e1a773b77241efa214af2e87439d3b | <ide><path>server/server.go
<ide> func (srv *Server) DockerInfo(job *engine.Job) engine.Status {
<ide> func (srv *Server) DockerVersion(job *engine.Job) engine.Status {
<ide> v := &engine.Env{}
<ide> v.Set("Version", dockerversion.VERSION)
<del> v.SetJson("ApiVersion", api.APIVERSION)
<add> v.Set("ApiVersion", string... | 1 |
PHP | PHP | improve doc blocks | 61608ca46d77c23de110419ee3d44845703d7848 | <ide><path>src/Validation/Validation.php
<ide> public static function truthy($check, array $truthyValues = [])
<ide> /**
<ide> * Validates if passed value is falsey.
<ide> *
<del> * The list of what is considered to be truthy values, may be set via $falseyValues.
<add> * The list of what is consid... | 1 |
Text | Text | remove the link for code.whytheluckystiff.net | 0dea33f770305f32ed7476f520f7c1ff17434fdc | <ide><path>guides/source/rails_application_templates.md
<ide> end
<ide>
<ide> Adds the given source to the generated application's `Gemfile`.
<ide>
<del>For example, if you need to source a gem from "[http://code.whytheluckystiff.net](http://code.whytheluckystiff.net)":
<add>For example, if you need to source a gem f... | 1 |
PHP | PHP | add missing underscore to _decodebody | b8b382f8e7f2e577d38650a5f73c74b01785e4fb | <ide><path>cake/libs/http_socket.php
<ide> function _decodeBody($body, $encoding = 'chunked') {
<ide> if (empty($encoding)) {
<ide> return array('body' => $body, 'header' => false);
<ide> }
<del> $decodeMethod = 'decode'.Inflector::camelize(str_replace('-', '_', $encoding)).'Body';
<add> $decodeMethod = '_deco... | 1 |
Text | Text | add cdnjs to docs. fixes #244 | 3d1cc16a9b143b96b353b7b03c06ca0f7e544304 | <ide><path>README.md
<ide> You'll notice that we used an XML-like syntax; [we call it JSX](http://facebook.
<ide>
<ide> ## Installation
<ide>
<del>The fastest way to get started is to serve JavaScript from the CDN:
<add>The fastest way to get started is to serve JavaScript from the CDN (also available on [CDNJS](http... | 2 |
Javascript | Javascript | ensure callback runs in test-vm-sigint | fd02c93d29da1ff18f33cc561bdddce2facd28db | <ide><path>test/parallel/test-vm-sigint.js
<ide> process.on('SIGUSR2', common.mustCall(() => {
<ide> process.kill(child.pid, 'SIGINT');
<ide> }));
<ide>
<del>child.on('close', function(code, signal) {
<add>child.on('close', common.mustCall((code, signal) => {
<ide> assert.strictEqual(signal, null);
<ide> assert.... | 1 |
Text | Text | update cloudml job counts in running_pets.md | 20da786b078c85af57a4c88904f7889139739ab0 | <ide><path>research/object_detection/g3doc/running_pets.md
<ide> python setup.py sdist
<ide> This will create python packages dist/object_detection-0.1.tar.gz,
<ide> slim/dist/slim-0.1.tar.gz, and /tmp/pycocotools/pycocotools-2.0.tar.gz.
<ide>
<del>For running the training Cloud ML job, we'll configure the cluster to ... | 1 |
PHP | PHP | fix double space in doc string | 475b19139e024f159a72d78a450e105ed204f7d5 | <ide><path>src/Routing/Exception/MissingRouteException.php
<ide> class MissingRouteException extends Exception
<ide> /**
<ide> * Message template to use when the requested method is included.
<ide> *
<del> * @var string
<add> * @var string
<ide> */
<ide> protected $_messageTemplateWithMe... | 1 |
Javascript | Javascript | pass modulegraph along with multiple methods | 11e127d162f7643ee8c4b684ec4b8ec848ea3903 | <ide><path>lib/CaseSensitiveModulesWarning.js
<ide> const WebpackError = require("./WebpackError");
<ide>
<ide> /** @typedef {import("./Module")} Module */
<add>/** @typedef {import("./ModuleGraph")} ModuleGraph */
<ide>
<ide> /**
<ide> * @param {Module[]} modules the modules to be sorted
<ide> const sortModules = m... | 57 |
Ruby | Ruby | add missing install require | e43d400fd20256411851b3b58ef58b27c3d27cde | <ide><path>Library/Homebrew/cmd/gist-logs.rb
<ide> #: If no logs are found, an error message is presented.
<ide>
<ide> require "formula"
<add>require "install"
<ide> require "system_config"
<ide> require "stringio"
<ide> require "socket" | 1 |
PHP | PHP | fix cs error | 342230f85d1662d9014bf9724a23ce5ad93f27e1 | <ide><path>src/Event/EventManager.php
<ide> namespace Cake\Event;
<ide>
<ide> use Cake\Core\Exception\Exception;
<del>use InvalidArgumentException;
<ide>
<ide> /**
<ide> * The event manager is responsible for keeping track of event listeners, passing the correct | 1 |
Java | Java | support @ordering of conditions | 70b5f319a956d2d6a89ac316c51e566a93856468 | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/ConditionEvaluator.java
<ide>
<ide> package org.springframework.context.annotation;
<ide>
<add>import java.util.ArrayList;
<ide> import java.util.Collections;
<ide> import java.util.List;
<ide>
<ide> import org.springframework.beans.facto... | 1 |
Python | Python | fix typo in shape_base | e4630a2f5273307983b6ddca9b72aa0cf5a65784 | <ide><path>numpy/core/shape_base.py
<ide> def _accumulate(values):
<ide> def _concatenate_shapes(shapes, axis):
<ide> """Given array shapes, return the resulting shape and slices prefixes.
<ide>
<del> These help in nested concatation.
<add> These help in nested concatenation.
<add>
<ide> Returns
<ide... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.