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 |
|---|---|---|---|---|---|
Javascript | Javascript | improve message in net-connect-local-error | eeae3bd07145a770209e4899a9d40f67109d3d01 | <ide><path>test/parallel/test-net-connect-local-error.js
<ide> const client = net.connect({
<ide> });
<ide>
<ide> client.on('error', common.mustCall(function onError(err) {
<del> assert.strictEqual(err.localPort, common.PORT);
<del> assert.strictEqual(err.localAddress, common.localhostIPv4);
<add> assert.strictEqua... | 1 |
Javascript | Javascript | fix emberjs/website with unique header title | c3c283b6c031031cb7778a48ab88622365b52c59 | <ide><path>packages/ember-handlebars/lib/helpers/collection.js
<ide> var get = Ember.get, handlebarsGet = Ember.Handlebars.get, fmt = Ember.String.fm
<ide> </div>
<ide> ```
<ide>
<del> ### Blockless Use
<add> ### Blockless use in a collection
<ide>
<ide> If you provide an `itemViewClass` option that has its o... | 1 |
Ruby | Ruby | fix .keep file issue with actioncable | a859108c82cc96329fabf4f2488cec4ee77852df | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def app
<ide> directory 'app'
<ide>
<ide> keep_file 'app/assets/images'
<del> keep_file 'app/assets/javascripts/channels' unless options[:skip_action_cable]
<add> empty_directory_with_keep_file 'app/assets/javascripts/cha... | 1 |
Javascript | Javascript | move react native platform files back | fe395def652b65847de3912d64181b24f96f70fe | <ide><path>src/renderers/native/ReactIOS/YellowBox.js
<del>/**
<del> * Copyright (c) 2015-present, Facebook, Inc.
<del> * All rights reserved.
<del> *
<del> * This source code is licensed under the BSD-style license found in the
<del> * LICENSE file in the root directory of this source tree. An additional grant
<del> *... | 7 |
Text | Text | translate ref 07 to korean | 547baf82b52e698896edb9d57dc6709d8807dddb | <ide><path>docs/docs/ref-07-special-non-dom-attributes.ko-KR.md
<add>---
<add>id: special-non-dom-attributes-ko-KR
<add>title: DOM이 아닌 특별한 어트리뷰트
<add>permalink: special-non-dom-attributes.ko-KR.html
<add>prev: dom-differences.ko-KR.html
<add>next: reconciliation.ko-KR.html
<add>---
<add>
<add>[DOM 차이점](/react/docs/dom-... | 1 |
Javascript | Javascript | fix linting issues | a31795e1f30c0a1f0a113d2b31c1b75f2cd0aaea | <ide><path>src/main-process/parse-command-line.js
<ide> module.exports = function parseCommandLine (processArgs) {
<ide> const base = path.dirname(pathToProjectFile)
<ide> pathsToOpen.push(path.dirname(projectSpecificationFile))
<ide> projectSpecification = {
<del> originPath: projectSpecificationFile... | 1 |
PHP | PHP | add options for ses’s sendrawemail | e21b17fd277b9a2424ea2b3f727325d1df65c713 | <ide><path>src/Illuminate/Mail/Transport/SesTransport.php
<ide> class SesTransport extends Transport
<ide> */
<ide> protected $ses;
<ide>
<add> /**
<add> * Transmission options.
<add> *
<add> * @var array
<add> */
<add> protected $options = [];
<add>
<ide> /**
<ide> * Create a n... | 1 |
Javascript | Javascript | fix examples in action helper docs | 7d1d6a0c8d876f8899250ec5c8f7f2c27c1f7a58 | <ide><path>packages/ember-routing/lib/helpers/action.js
<ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) {
<ide>
<ide> ```javascript
<ide> AController = Ember.Controller.extend({
<del> anActionName: function() {}
<add> actions: {
<add> anActionName: function() {}
<add> }
<ide> ... | 1 |
Java | Java | make reactmarker initialization one-shot | cc3d034460770e36e08477283215cc95dacaaa90 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java
<ide> public interface MarkerListener {
<ide>
<ide> private static @Nullable MarkerListener sMarkerListener = null;
<ide>
<del> public static void setMarkerListener(MarkerListener listener) {
<del> SoftAssertions.assertCondition(
<... | 1 |
PHP | PHP | add deprecation warnings for belongstomany | 7eaa9ef25eb9971c33bec403deddc9caccf2af75 | <ide><path>src/ORM/Association/BelongsToMany.php
<ide> public function getTargetForeignKey()
<ide> */
<ide> public function targetForeignKey($key = null)
<ide> {
<add> deprecationWarning(
<add> 'BelongToMany::targetForeignKey() is deprecated. ' .
<add> 'Use setTargetForeignKey(... | 3 |
Ruby | Ruby | remove dead code | 79d21dddd6de11f4c2e7492167dbe0cb01a5335b | <ide><path>activerecord/test/cases/transactions_test.rb
<ide> def test_failing_on_exception
<ide> end
<ide>
<ide> def test_raising_exception_in_callback_rollbacks_in_save
<del> add_exception_raising_after_save_callback_to_topic
<del>
<del> begin
<del> @first.approved = true
<del> @first.save
<del> ... | 1 |
Python | Python | fix a possible typo in auto feature extraction | b10a3b3760eac3c3d201bfcad1d9ee1e3b26f3c0 | <ide><path>src/transformers/models/auto/feature_extraction_auto.py
<ide> ("swin", "ViTFeatureExtractor"),
<ide> ("swinv2", "ViTFeatureExtractor"),
<ide> ("van", "ConvNextFeatureExtractor"),
<del> ("videomae", "ViTFeatureExtractor"),
<add> ("videomae", "VideoMAEFeatureExtractor"),
<... | 1 |
PHP | PHP | fix failing tests because of new validator | 9232df839d6a0375e143732919f4f9ddd7777f7b | <ide><path>lib/Cake/Test/Case/Console/Command/Task/ModelTaskTest.php
<ide> public function testInteractiveFieldValidation() {
<ide> $this->Task->initValidations();
<ide> $this->Task->interactive = true;
<ide> $this->Task->expects($this->any())->method('in')
<del> ->will($this->onConsecutiveCalls('21', 'y', '17'... | 1 |
Ruby | Ruby | move method to private section | 71003d63b6e217625450b0942a7afb8d7d1d14d9 | <ide><path>activerecord/lib/active_record/attribute_assignment.rb
<ide> module AttributeAssignment
<ide> extend ActiveSupport::Concern
<ide> include ActiveModel::AttributeAssignment
<ide>
<add> # Alias for `assign_attributes`. See +ActiveModel::AttributeAssignment+.
<add> def attributes=(attributes)
<add... | 1 |
Text | Text | move andreasmadsen to emeritus | b7136827f5d9f4f65bd0a60e75c4a9531cf4312a | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Antoine du Hamel** <duhamelantoine1995@gmail.com> (he/him)
<ide> * [ak239](https://github.com/ak239) -
<ide> **Aleksei Koziatinskii** <ak239spb@gmail.com>
<del>* [AndreasMadsen](https://github.com/AndreasMads... | 1 |
Ruby | Ruby | avoid a subquery in updating counter cache | cbab69c2789ff49bd9e3580eba0ac273190c9dc7 | <ide><path>activerecord/lib/active_record/associations/builder/belongs_to.rb
<ide> def belongs_to_counter_cache_after_update(reflection)
<ide> private
<ide> def counter_cache_target(reflection, model, foreign_key)
<ide> primary_key = reflection.association_primary_key(model)
<del>
<del> ... | 2 |
Javascript | Javascript | use proper selector when overriding the css | 2264413beb96e390ae20518bc79b35c51569acce | <ide><path>src/ng/directive/ngShowHide.js
<ide> var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
<ide> *
<ide> * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change
<ide> * the hide behavior with ngShow/ngHide then this can be achieved by restating the styl... | 1 |
Text | Text | add rename instruction | 0252b6ac4e41f54621da90991bb40a2500f39ac6 | <ide><path>guide/chinese/bash/bash-mv/index.md
<ide> mv source target
<ide>
<ide> 第一个参数是要移动的文件,第二个参数是将其移动到的位置。
<ide>
<add>**更改档名。**
<add>```
<add>mv old_name new_name
<add>```
<add>
<add>第一个参数是原来的名字,第二个参数是要改成的名字
<add>
<ide> 常用选项:
<ide>
<ide> * `-f`强制移动它们并覆盖文件而不用与用户核对。
<ide> * `-i`在覆盖文件之前提示确认。
<ide>
<ide> ### 更多... | 1 |
Text | Text | replace first person point of view on guides | f52a13cdf457a4163de60c04801bc77954124a56 | <ide><path>guides/source/active_support_core_extensions.md
<ide> NOTE: Defined in `active_support/core_ext/module/aliasing.rb`.
<ide>
<ide> #### `alias_attribute`
<ide>
<del>Model attributes have a reader, a writer, and a predicate. You can alias a model attribute having the corresponding three methods defined for yo... | 3 |
Text | Text | add note about casing to getstaticpaths docs | 93cb635e9e15e0e9cac2b82b899b4da8c6614be0 | <ide><path>docs/api-reference/data-fetching/get-static-paths.md
<ide> The value for each `params` object must match the parameters used in the page na
<ide> - If the page name uses [catch-all routes](/docs/routing/dynamic-routes.md#catch-all-routes) like `pages/[...slug]`, then `params` should contain `slug` (which is ... | 1 |
Ruby | Ruby | deduplicate same clauses in `merge` | 5528a79dc787078b70240959c4905a53f985446c | <ide><path>activerecord/lib/active_record/relation/where_clause.rb
<ide> def merge(other, rewhere = nil)
<ide> predicates_unreferenced_by(other)
<ide> end
<ide>
<del> WhereClause.new(predicates + other.predicates)
<add> WhereClause.new(predicates | other.predicates)
<ide> end
<ide... | 2 |
PHP | PHP | allow custom queueing of commands and handlers | e33584db10fa3ca84bce135998a62e8c7529bff5 | <ide><path>src/Illuminate/Bus/Dispatcher.php
<ide> public function dispatchToQueue($command)
<ide> throw new \RuntimeException("Queue resolver did not return a Queue implementation.");
<ide> }
<ide>
<del> $queue->push($command);
<add> if (method_exists($command, 'queue'))
<add> {
<add> $command->queue($queue... | 4 |
PHP | PHP | check data with isset() before accessing it | d7d8fc00d1834b2ec00ecca16c23d6913f8b8c4c | <ide><path>lib/Cake/Model/Model.php
<ide> protected function _saveMulti($joined, $id, $db) {
<ide> * @return void
<ide> */
<ide> public function updateCounterCache($keys = array(), $created = false) {
<del> $keys = empty($keys) ? $this->data[$this->alias] : $keys;
<add> if (empty($keys) && isset($this->data[$this-... | 1 |
PHP | PHP | throw exception on cookie session driver | 378a4bff5f38f670a0c1a5978be523d70b00e0e3 | <ide><path>src/Illuminate/Session/SessionManager.php
<ide> <?php namespace Illuminate\Session;
<ide>
<add>use InvalidArgumentException;
<ide> use Illuminate\Support\Manager;
<ide> use Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler;
<ide>
<ide> protected function createArrayDriver()
<ide> ... | 1 |
Java | Java | improve annotation methods in typedescriptor | e543ffdfd7070a4b559d724ba4ffa37c58b66bb4 | <ide><path>spring-context/src/main/java/org/springframework/format/support/FormattingConversionService.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");
<... | 3 |
Ruby | Ruby | use sqlite3 adapter in examples | 15720df1808b249bae91e5600d6f0676990a7de0 | <ide><path>activerecord/lib/active_record/connection_handling.rb
<ide> module ConnectionHandling
<ide> # Example for SQLite database:
<ide> #
<ide> # ActiveRecord::Base.establish_connection(
<del> # adapter: "sqlite",
<add> # adapter: "sqlite3",
<ide> # database: "path/to/dbfile"
<... | 1 |
Text | Text | fix broken links in docs index.md | 4063f96bb5581123959fd17c10f666bf2bf17ebd | <ide><path>docs/index.md
<ide> There are two categories of docs: [Guides](./guides/) and [API docs](./api/). Gu
<ide> * [Removing Players](./guides/removing-players.md) - Helpful for using VideoJS in single page apps.
<ide>
<ide> ## API Docs
<del>- The most relevant API doc is the [player API doc](./api/vjs.Player.md)... | 1 |
Java | Java | add support for instant in @datetimeformat | 110e0f7f2b0a07699a96bf6410299d95635b2f63 | <ide><path>spring-context/src/main/java/org/springframework/format/datetime/standard/Jsr310DateTimeFormatAnnotationFormatterFactory.java
<ide>
<ide> package org.springframework.format.datetime.standard;
<ide>
<add>import java.time.Instant;
<ide> import java.time.LocalDate;
<ide> import java.time.LocalDateTime;
<ide> ... | 3 |
Python | Python | use proper default airflow_constraints_reference | f74a2236f42fbaa83c1ad8bf4fe9bce045f67571 | <ide><path>dev/breeze/src/airflow_breeze/params/build_ci_params.py
<ide> from pathlib import Path
<ide> from typing import List
<ide>
<add>from airflow_breeze.branch_defaults import DEFAULT_AIRFLOW_CONSTRAINTS_BRANCH
<ide> from airflow_breeze.global_constants import get_airflow_version
<ide> from airflow_breeze.params... | 2 |
PHP | PHP | add test for php7's error | 18e53502ab8cbf5103af588fa3dc72258150472e | <ide><path>tests/TestCase/Error/Middleware/ErrorHandlerMiddlewareTest.php
<ide> public function testHandleException()
<ide> $this->assertContains('was not found', '' . $result->getBody());
<ide> }
<ide>
<add> /**
<add> * Test handling PHP 7's Error instance.
<add> *
<add> * @return void
<add... | 1 |
Mixed | Javascript | add createrequire method | 411063c6f5750f4a2243ef5154c589109d9b807c | <ide><path>doc/api/deprecations.md
<ide> The `_channel` property of child process objects returned by `spawn()` and
<ide> similar functions is not intended for public use. Use `ChildProcess.channel`
<ide> instead.
<ide>
<add><a id="DEP0130"></a>
<add>### DEP00XX: Module.createRequireFromPath()
<add><!-- YAML
<add>chan... | 4 |
Python | Python | fix import of symbols (now nested one level lower) | 9b0de9fb43fc5fccaeb3115c5b24c123b45e89ab | <ide><path>spacy/lang/ga/tokenizer_exceptions.py
<ide> # encoding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>from ..symbols import ORTH, LEMMA, NORM, POS
<add>from ...symbols import ORTH, LEMMA, NORM, POS
<ide>
<ide>
<ide> _exc = { | 1 |
PHP | PHP | add additional test coverage | 9d3b5e63cc8ed75a5abdf8ebd683d48176f3bc9f | <ide><path>tests/TestCase/View/Form/EntityContextTest.php
<ide> public function testOperationsNoTableArg() {
<ide>
<ide> $result = $context->error('title');
<ide> $this->assertEquals($row->errors('title'), $result);
<add> $this->assertTrue($context->hasError('title'));
<ide> }
<ide>
<ide> /** | 1 |
Python | Python | fix broken migration for sqlite3 | 44031bf72b4c9dd9a71a16dc2743081403f9d28b | <ide><path>airflow/migrations/versions/98271e7606e2_add_scheduling_decision_to_dagrun_and_.py
<ide> def upgrade():
<ide> """Apply Add scheduling_decision to DagRun and DAG"""
<ide> conn = op.get_bind() # pylint: disable=no-member
<ide> is_mysql = bool(conn.dialect.name == "mysql")
<add> is_sqlite = bool... | 1 |
Ruby | Ruby | increase tests timeout | 2bdf0d60683111c96cb96d7cccfee4cf8ae8b372 | <ide><path>Library/Homebrew/test/cmd/reinstall_spec.rb
<ide> it_behaves_like "parseable arguments"
<ide> end
<ide>
<del>describe "brew reinstall", :integration_test, timeout: 120 do
<add>describe "brew reinstall", :integration_test do
<ide> it "reinstalls a Formula" do
<ide> install_test_formula "testball"
<id... | 3 |
Javascript | Javascript | add common.pipe, pipe name for tests | bff96029665ea430afff60aa481c09a5897168ed | <ide><path>test/common.js
<ide> exports.libDir = path.join(exports.testDir, '../lib');
<ide> exports.tmpDir = path.join(exports.testDir, 'tmp');
<ide> exports.PORT = 12346;
<ide>
<add>if (process.platform == 'win32') {
<add> exports.PIPE = '\\.\pipe\libuv-test';
<add>} else {
<add> exports.PIPE = exports.tmpDir + '/... | 1 |
PHP | PHP | move files to cake\auth | de1d35430ac93815305b8e7f9df15924adacf5aa | <add><path>src/Auth/AbstractPasswordHasher.php
<del><path>src/Controller/Component/Auth/AbstractPasswordHasher.php
<ide> * @since 2.4.0
<ide> * @license http://www.opensource.org/licenses/mit-license.php MIT License
<ide> */
<del>namespace Cake\Controller\Component\Auth;
<add>namespace Cake\Auth;
<ide>... | 20 |
Javascript | Javascript | add test case for tiny polygon area | b9bf5302b4f4bd6724ba57df397865c68ecfe955 | <ide><path>test/geo/area-test.js
<ide> suite.addBatch({
<ide> assert.equal(area({type: "MultiLineString", coordinates: [[[0, 1], [2, 3]], [[4, 5], [6, 7]]]}), 0);
<ide> },
<ide> "Polygon": {
<add> "tiny": function(area) {
<add> assert.inDelta(area({type: "Polygon", coordinates: [[
<add> ... | 1 |
Java | Java | make subscriptions of swingobservable thread-safe | 7babfaf1dcf8f20d02e0404c2f13f47c46a55391 | <ide><path>rxjava-contrib/rxjava-swing/src/main/java/rx/observables/SwingObservable.java
<ide> import java.util.Set;
<ide>
<ide> import javax.swing.AbstractButton;
<add>import javax.swing.SwingUtilities;
<ide>
<ide> import rx.Observable;
<ide> import rx.functions.Func1;
<ide> public static Observable<ComponentEvent> ... | 7 |
Python | Python | adjust variable names for consistency | a9790fe223a15419c68aa1dd6ee6ab45ad4b96c8 | <ide><path>numpy/polynomial/chebyshev.py
<ide> def _zseries_div(z1, z2):
<ide> """
<ide> z1 = z1.copy()
<ide> z2 = z2.copy()
<del> len1 = len(z1)
<del> len2 = len(z2)
<del> if len2 == 1:
<add> lc1 = len(z1)
<add> lc2 = len(z2)
<add> if lc2 == 1:
<ide> z1 /= z2
<ide> return ... | 2 |
Javascript | Javascript | fix animated lint warnings | 4373aa68228054916d55c0956ede6eeacd40241a | <ide><path>Libraries/Animated/src/Easing.js
<ide> class Easing {
<ide> static elastic(bounciness: number = 1): (t: number) => number {
<ide> var p = bounciness * Math.PI;
<ide> return (t) => 1 - Math.pow(Math.cos(t * Math.PI / 2), 3) * Math.cos(t * p);
<del> };
<add> }
<ide>
<ide> static back(s: number):... | 2 |
PHP | PHP | fix zrangebyscore syntax for phpredis | 20950646e0b8108599c1f87607d030af4152992e | <ide><path>src/Illuminate/Redis/Connections/PhpRedisConnection.php
<ide> public function disconnect()
<ide> */
<ide> public function __call($method, $parameters)
<ide> {
<add> $method = strtolower($method);
<add>
<ide> if ($method == 'eval') {
<ide> return $this->proxyToEval($par... | 1 |
Python | Python | factorize backend tests | 632d811f2f65bce1806559bf3eede37e517afb6d | <ide><path>tests/keras/backend/backend_test.py
<ide> def test_repeat_elements(self):
<ide> x = K.placeholder(shape=shape)
<ide> y = K.repeat_elements(x, reps, axis=rep_axis)
<ide> assert y._keras_shape == tuple(shape)
<del> if K.backend() == 'te... | 1 |
PHP | PHP | use str class | 361a6b71da52d9d3ad6d200b22eb8c2d939da729 | <ide><path>config/session.php
<ide> <?php
<ide>
<add>use Illuminate\Support\Str;
<add>
<ide> return [
<ide>
<ide> /*
<ide>
<ide> 'cookie' => env(
<ide> 'SESSION_COOKIE',
<del> str_slug(env('APP_NAME', 'laravel'), '_').'_session'
<add> Str::slug(env('APP_NAME', 'laravel'), '_').'_session... | 1 |
Python | Python | remove use of int as boolean | 2d66d07330486ebfec287c01f6b57f0d37433c2d | <ide><path>numpy/linalg/linalg.py
<ide> def eigh(a, UPLO='L'):
<ide>
<ide> # Singular value decomposition
<ide>
<del>def svd(a, full_matrices=1, compute_uv=1):
<add>def svd(a, full_matrices=True, compute_uv=True):
<ide> """
<ide> Singular Value Decomposition.
<ide>
<ide> def pinv(a, rcond=1e-15 ):
<ide> ... | 1 |
Javascript | Javascript | add headers.content-type to openfileineditor call | 43cf78d99ea016a4487f6855886a09f67d928b3d | <ide><path>Libraries/Core/Devtools/openFileInEditor.js
<ide> const getDevServer = require('./getDevServer');
<ide> function openFileInEditor(file: string, lineNumber: number) {
<ide> fetch(getDevServer().url + 'open-stack-frame', {
<ide> method: 'POST',
<add> headers: {
<add> 'Content-Type': 'application/... | 1 |
Text | Text | move the period outside of the code block | 11e2ad1231696f108449171f6e2a8e613778311b | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/6169b284950e171d8d0bb16a.md
<ide> dashedName: step-29
<ide>
<ide> # --description--
<ide>
<del>Finally, create a new `75%` selector between your `50%` and `100%` selectors. Give this new selector a `bac... | 1 |
PHP | PHP | update filesystemadapter.php | 452d7e0afb5740d204b6e078a24a14fb7270c4f3 | <ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php
<ide> public function put($path, $contents, $options = [])
<ide> * Store the uploaded file on the disk.
<ide> *
<ide> * @param string $path
<del> * @param \Illuminate\Http\UploadedFile $file
<add> * @param \Illuminate\Http\File|\Illu... | 1 |
Javascript | Javascript | use connect instead of connector in examples | c1b8acd3ccb84b5536aa54a4d2f11aec4e3c8ecc | <ide><path>examples/counter/containers/CounterApp.js
<ide> class CounterApp extends Component {
<ide> }
<ide> }
<ide>
<del>export default connect(state => ({
<del> counter: state.counter
<del>}))(CounterApp);
<add>function select(state) {
<add> return {
<add> counter: state.counter
<add> };
<add>}
<add>
<add>e... | 2 |
Mixed | Python | add export savedmodel to wide_deep | db778817305c786ccf0a57d5537da5af09dfe65a | <ide><path>official/mnist/mnist.py
<ide> def __init__(self):
<ide> super(MNISTArgParser, self).__init__(parents=[
<ide> parsers.BaseParser(),
<ide> parsers.ImageModelParser(),
<del> parsers.ExportParser(),
<ide> ])
<ide>
<ide> self.set_defaults(
<ide><path>official/resnet/resnet_run_... | 5 |
Mixed | Javascript | add cookie secrets to env | 72fe9c2463cd58ce31dba65e8a8440ce2d947eef | <ide><path>README.md
<ide> Edit your .env file with the following API keys accordingly (if you only use ema
<ide> ```
<ide>
<ide> MONGOHQ_URL='mongodb://localhost:27017/freecodecamp'
<del>BLOGGER_KEY=stuff
<add>
<ide> FACEBOOK_ID=stuff
<ide> FACEBOOK_SECRET=stuff
<add>
<ide> GITHUB_ID=stuff
<ide> GITHUB_SECRET=stuff
<... | 3 |
Javascript | Javascript | add zstddecoder, add zstd support to ktx2loader | 2e2d7e41a10c36ff72b87cf556f3e4a0ad36d5fa | <ide><path>examples/jsm/libs/zstddec.module.js
<add>/**
<add> * @author Don McCurdy / https://www.donmccurdy.com
<add> */
<add>
<add>let init, instance, heap;
<add>
<add>const importObject = {
<add>
<add> env: {
<add>
<add> emscripten_notify_memory_growth: function ( index ) {
<add>
<add> heap = new Uint8Array( inst... | 2 |
Ruby | Ruby | ask the formula if it can be cleaned up once | 338a08d8d6f10596593bfdf5ebc80e83c390069f | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_cellar
<ide> def cleanup_formula f
<ide> if f.installed?
<ide> eligible_kegs = f.rack.subdirs.map { |d| Keg.new(d) }.select { |k| f.pkg_version > k.version }
<del> eligible_kegs.each do |keg|
<del> if f.can_cleanup?
<del> clea... | 1 |
Javascript | Javascript | remove the need to install grunt globally | b2bbaa36d4d37bd48f954ed3cdbd50d3461a523d | <ide><path>build/release.js
<ide> module.exports = function( Release ) {
<ide> * @param {Function} callback
<ide> */
<ide> generateArtifacts: function( callback ) {
<del> Release.exec( "grunt", "Grunt command failed" );
<add> Release.exec( "npx grunt", "Grunt command failed" );
<ide> Release.exec(
<del> ... | 1 |
Text | Text | add description of when clause | 7ea5810a8acc055c42b0b05e6d09c917487e94bc | <ide><path>guide/english/csharp/switch-case/index.md
<ide> switch(myColor) {
<ide> ```
<ide> This will execute the same lines of code if myColor is either Red or Blue.
<ide>
<add>## When clause
<add>
<add>Starting with C# 7.0 you can use `when` clause to specify additional condition that must be satisfied. When clause... | 1 |
Javascript | Javascript | extract feature detection as an utilitiy module | 06388891a3441900d9eb04de23dcf00c55a65406 | <ide><path>Libraries/Core/setUpTimers.js
<ide> 'use strict';
<ide>
<ide> const {polyfillGlobal} = require('../Utilities/PolyfillFunctions');
<add>const {isNativeFunction} = require('../Utilities/FeatureDetection');
<ide>
<ide> if (__DEV__) {
<ide> if (typeof global.Promise !== 'function') {
<ide> const hasHermesPro... | 2 |
Javascript | Javascript | return error from cat_promise in node.fs.cat | 389c80aece99f95c30662332af31fd113511dce3 | <ide><path>src/file.js
<ide> node.fs.cat = function (path, encoding) {
<ide>
<ide> encoding = encoding || "utf8";
<ide>
<del> open_promise.addErrback(function () { cat_promise.emitError(); });
<add> open_promise.addErrback(function () {
<add> cat_promise.emitError(new Error("Could not open " + path));
<add> }... | 1 |
Go | Go | use tmp dir in driver home | 6669c86fdf1ae07b66a6e178e269d797f6397bca | <ide><path>aufs/aufs.go
<ide> func (a *AufsDriver) Remove(id string) error {
<ide>
<ide> // Remove the dirs atomically
<ide> for _, p := range tmpDirs {
<del> tmp := path.Join(os.TempDir(), p, id)
<add> // We need to use a temp dir in the same dir as the driver so Rename
<add> // does not fall back to the slow co... | 1 |
PHP | PHP | add task discovery to bakeshell | ee3003e2b8f24f33e503c4a9be1e87c6507be64f | <ide><path>src/Console/Command/BakeShell.php
<ide> protected function _findTasks($tasks, $path, $namespace, $prefix = false) {
<ide> if (!is_dir($path)) {
<ide> return $tasks;
<ide> }
<add> $candidates = $this->_findClassFiles($path, $namespace);
<add> $classes = $this->_findTaskClasses($candidates);
<add> fo... | 5 |
Python | Python | improve exception type | c8b0c1e551ed7f19ce2cfa3d4f84eddb2c371d5c | <ide><path>src/transformers/commands/serving.py
<ide> def __init__(self, pipeline: Pipeline, host: str, port: int):
<ide> self._host = host
<ide> self._port = port
<ide> if not _serve_dependancies_installed:
<del> raise ImportError(
<add> raise RuntimeError(
<ide> ... | 5 |
Python | Python | fix history callback | 1e73e1bc54a051db4a8215243a6caae61584b9b8 | <ide><path>keras/callbacks.py
<ide> def on_batch_end(self, batch, logs={}):
<ide> def on_epoch_end(self, epoch, logs={}):
<ide> self.epoch.append(epoch)
<ide> for k, v in self.totals.items():
<del> self.history[k] = v / self.seen
<add> if k not in self.history:
<add> ... | 1 |
Python | Python | add test for list_locations | 661edc23e3f770550eeafb96af94923ae22ffa76 | <ide><path>test/__init__.py
<ide> def test_list_images_response(self):
<ide> for image in images:
<ide> self.assertTrue(isinstance(image, NodeImage))
<ide>
<add>
<add> def test_list_images_response(self):
<add> locations = self.driver.list_locations()
<add> self.assertTrue(isinstan... | 1 |
Go | Go | add check for non-systemd fd use case | 3c69d340ebe35dc3adb56cd2345cbac3c1dd5fb8 | <ide><path>docker/listeners/listeners_unix.go
<ide> func listenFD(addr string, tlsConfig *tls.Config) ([]net.Listener, error) {
<ide> }
<ide>
<ide> if len(listeners) == 0 {
<del> return nil, fmt.Errorf("No sockets found")
<add> return nil, fmt.Errorf("No sockets found. Make sure the docker daemon was started by sy... | 1 |
Python | Python | fix issue with sequential deserialization | 8f8e4574dc1d807fe98553369499da892077f3d7 | <ide><path>keras/models.py
<ide> def get_config(self):
<ide> return copy.deepcopy(config)
<ide>
<ide> @classmethod
<del> def from_config(cls, config, layer_cache={}):
<add> def from_config(cls, config, layer_cache=None):
<ide> '''Supports legacy formats
<ide> '''
<ide> from ke... | 1 |
Javascript | Javascript | avoid garbage collector as all costs per @gero3 | 67fdeb97b935925df82b3a265ff4d383bf981337 | <ide><path>src/core/Box2.js
<ide> THREE.Box2.prototype = {
<ide>
<ide> setFromCenterAndSize: function ( center, size ) {
<ide>
<del> var halfSize = new THREE.Vector2().copy( size ).multiplyScalar( 0.5 );
<add> var halfSize = THREE.Box2.__v1.copy( size ).multiplyScalar( 0.5 );
<ide> this.min.copy( center ).subSel... | 2 |
Javascript | Javascript | replace clazz by classnames | f35176a32e1e39bdbe0e1fcb6968345419cc6f7a | <ide><path>src/core/xfa/template.js
<ide> class Draw extends XFAObject {
<ide> "borderMarginPadding"
<ide> );
<ide>
<del> const clazz = ["xfaDraw"];
<add> const classNames = ["xfaDraw"];
<ide> if (this.font) {
<del> clazz.push("xfaFont");
<add> classNames.push("xfaFont");
<ide> }
<ide... | 1 |
PHP | PHP | add better documentation to composers.php | 5b75546e7e5d253476e22862e23c0ca1f85e717c | <ide><path>application/composers.php
<ide> |--------------------------------------------------------------------------
<ide> |
<ide> | Named views give you beautiful syntax when working with your views.
<del> | After you have defined a name for a view, you can create an instance of
<del> | that view using the expres... | 1 |
Ruby | Ruby | add default value for `create_table_definition` | 84859c45a7411151c84b23c490a62b7e7f09b8e9 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def rename_column_indexes(table_name, column_name, new_column_name)
<ide> end
<ide>
<ide> private
<del> def create_table_definition(name, temporary, options, as = nil)
<add> def create_table_defini... | 3 |
Ruby | Ruby | enforce requirements in #find_versions | f8ded0a435700d1969a779d7b75047fbd2176d7a | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def latest_version(
<ide> end
<ide>
<ide> if livecheck_strategy.present?
<del> if livecheck_strategy == :page_match && (livecheck_regex.blank? && livecheck_strategy_block.blank?)
<del> odebug "#{strategy_name} strategy require... | 2 |
PHP | PHP | fix query string support | ac87e5c082195d6b4e9190f33a4777a10ad69bc5 | <ide><path>lib/Cake/Core/Object.php
<ide> public function requestAction($url, $extra = array()) {
<ide> $extra['autoRender'] = 1;
<ide> unset($extra[$index]);
<ide> }
<del> $extra = array_merge(array('autoRender' => 0, 'return' => 1, 'bare' => 1, 'requested' => 1), $extra);
<del> $data = isset($extra['post'])... | 4 |
Java | Java | require undertow 1.3 byte buffer pool | fb5a096ca259e9e623f09c70a40a618ab104fb12 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/UndertowXhrTransport.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License... | 1 |
Ruby | Ruby | revert a change made to the example in 1ac4525 | cd2d3664e3b434d15b6c19e652befb386187642f | <ide><path>activesupport/lib/active_support/core_ext/object/try.rb
<ide> class NilClass
<ide> # @person && @person.children.any? && @person.children.first.name
<ide> #
<ide> # With +try+
<del> # @person.try(:children).first.try(:name)
<add> # @person.try(:children).try(:first).try(:name)
<ide> def try(*... | 1 |
Text | Text | remove repl.it links russian challenge articles | ee952dee4298aa26f128f8631c9db23c2109cbb5 | <ide><path>guide/russian/certifications/coding-interview-prep/algorithms/find-the-symmetric-difference/index.md
<ide> A = {1, 2, 3}
<ide>
<ide> ```](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)
<ide>
<del> [ on the XNLI dataset. It runs in 106 mins
<del>on a single tesla V100 16GB. Th... | 2 |
Text | Text | fix code container in chapter 5.2 [ci-skip] | 713f1382586b68ba70fdac76164da76a516585e0 | <ide><path>guides/source/getting_started.md
<ide> Edit the `form_for` line inside `app/views/posts/new.html.erb` to look like this
<ide> In this example, the `posts_path` helper is passed to the `:url` option.
<ide> To see what Rails will do with this, we look back at the output of
<ide> `rake routes`:
<add>
<ide> ```b... | 1 |
Javascript | Javascript | trim html string in jqlite constructor | 36d37c0e3880c774d20c014ade60d2331beefa15 | <ide><path>src/jqLite.js
<ide> function JQLite(element) {
<ide> if (element instanceof JQLite) {
<ide> return element;
<ide> }
<add> if (isString(element)) {
<add> element = trim(element);
<add> }
<ide> if (!(this instanceof JQLite)) {
<ide> if (isString(element) && element.charAt(0) != '<') {
<ide> ... | 2 |
Javascript | Javascript | replace arrow function | b7b911b964713ba092fe3ad7b43b039f7f3b4893 | <ide><path>src/lib/duration/constructor.js
<ide> export function Duration (duration) {
<ide> var normalizedInput = normalizeObjectUnits(duration);
<ide>
<ide> this._isValid = isDurationValid(normalizedInput);
<del> this.isValid = () => this._isValid;
<add> this.isValid = function () {
<add> return... | 1 |
Javascript | Javascript | fix typo in datepickerandroidtypes.js | 11ac06fda4870f5fdf3e2e8deab32f2b778026a0 | <ide><path>Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js
<ide> export type Options = $ReadOnly<{|
<ide> date?: ?(Date | number),
<ide> minDate?: ?(Date | number),
<ide> maxDate?: ?(Date | number),
<del> mode?: ?('calender' | 'spinner' | 'default'),
<add> mode?: ?('calendar' | 'spinner' | 'def... | 1 |
Javascript | Javascript | preserve process.env in forked child_process | 47198af55a384788cda34c430531d928e24ae261 | <ide><path>test/simple/test-child-process-fork-exec-path.js
<ide> else {
<ide> fs.writeFileSync(copyPath, fs.readFileSync(nodePath));
<ide> fs.chmodSync(copyPath, '0755');
<ide>
<add> // slow but simple
<add> var envCopy = JSON.parse(JSON.stringify(process.env));
<add> envCopy.FORK = 'true';
<ide> var child =... | 1 |
Text | Text | copy changes from to package-level readme | 4316d3884e1ab7c4cec94c21e4b4928d33eeb079 | <ide><path>packages/create-next-app/README.md
<ide>
<ide> The easiest way to get started with Next.js is by using `create-next-app`. This CLI tool enables you to quickly start building a new Next.js application, with everything set up for you. You can create a new app using the default Next.js template, or by using on... | 1 |
Python | Python | remove macro auc per type from textcat defaults | f1e024345043cdc986e70308a09a7ca383b60dd0 | <ide><path>spacy/pipeline/textcat.py
<ide> "cats_macro_f": None,
<ide> "cats_macro_auc": None,
<ide> "cats_f_per_type": None,
<del> "cats_macro_auc_per_type": None,
<ide> },
<ide> )
<ide> def make_textcat(
<ide><path>spacy/pipeline/textcat_multilabel.py
<ide> "cats_macro_f": N... | 2 |
Text | Text | add @buildpulse link and logo | 48e69ea3474edde6b7a1d6cb6a16ec4f2e3ee748 | <ide><path>README.md
<ide> Secure password storage and syncing is provided by [1Password for Teams](https:/
<ide>
<ide> [](https://1password.com)
<ide>
<add>Flaky test detection and tracking is provided by [BuildPulse](htt... | 1 |
PHP | PHP | fix $groups param type | e9632af218c3e3d263526f4a19bcf6af4987a7fb | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> protected function addDynamic($segment, $connector, $parameters, $index)
<ide> /**
<ide> * Add a "group by" clause to the query.
<ide> *
<del> * @param array ...$groups
<add> * @param array|string ...$groups
<ide> * @return $this
... | 1 |
Javascript | Javascript | use a fresh input for the value-lossage check | e1dcf96b526a7fd9b323cdf7b4f68be1e72f0d6c | <ide><path>src/support.js
<ide> jQuery.support = (function() {
<ide> }
<ide>
<ide> // Check if an input maintains its value after becoming a radio
<add> input = document.createElement("input");
<ide> input.value = "t";
<ide> input.setAttribute( "type", "radio" );
<ide> support.radioValue = input.value === "t"; | 1 |
Mixed | Ruby | remove nodoc from eachvalidator [ci-skip] | 79bb7d0a2b8e1a443b323adbb05d764879d0216e | <ide><path>activemodel/lib/active_model/validator.rb
<ide> def validate(record)
<ide> # record, attribute and value.
<ide> #
<ide> # All \Active \Model validations are built on top of this validator.
<del> class EachValidator < Validator #:nodoc:
<add> class EachValidator < Validator
<ide> attr_reader :attr... | 2 |
Java | Java | fix headersadapters implementations | ab8310b5f37df0e1e86595acec05aff402c8f574 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/JettyHeadersAdapter.java
<ide> public boolean containsValue(Object value) {
<ide> @Nullable
<ide> @Override
<ide> public List<String> get(Object key) {
<del> if (key instanceof String) {
<add> if (containsKey(key)) {
<ide> return this.... | 4 |
PHP | PHP | make empty array as default | 080d36af36189f54669c48a71cb6279e19808eb0 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function __construct($items = [])
<ide> * @param mixed $items
<ide> * @return static
<ide> */
<del> public static function make($items = null)
<add> public static function make($items = [])
<ide> {
<ide> return new static($... | 1 |
Python | Python | update systemd doc | b7ac674b35c9e6592804a191e4499924569f44f6 | <ide><path>glances/amps/glances_nginx.py
<ide> Waiting – keep-alive connections, actually it is active – (reading + writing).
<ide> This value depends on keepalive-timeout. Do not confuse non-zero waiting value for poor
<ide> performance. It can be ignored.
<del>Source (https://easyengine.io/tutorials/nginx/status-page... | 2 |
Javascript | Javascript | move other branches out of the bail out | 26c82cea7244c333ee671a02ef976b87faa1d0a5 | <ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js
<ide> module.exports = function<T, P, I, TI, C, CX>(
<ide> workInProgress.effectTag |= Update;
<ide> }
<ide> }
<add>
<add> // Don't forget to push the context before returning.
<add> if (isContextProvider(workInProgress)) {
<... | 1 |
Javascript | Javascript | use a cache to minimize the number of name objects | fdb7c218daa2e372f20215fe67c022f991a02761 | <ide><path>src/core/crypto.js
<ide> var CipherTransformFactory = (function CipherTransformFactoryClosure() {
<ide> return userPassword;
<ide> }
<ide>
<del> var identityName = new Name('Identity');
<add> var identityName = Name.get('Identity');
<ide>
<ide> function CipherTransformFactory(dict, fileId, passwo... | 8 |
Java | Java | extend reactshadownode api to expose flex props | 6570f7887b8824705ae09b5653d631428e17bc5f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java
<ide>
<ide> YogaValue getStyleHeight();
<ide>
<add> float getFlex();
<add>
<ide> void setStyleHeight(float heightPx);
<ide>
<ide> void setStyleHeightPercent(float percent);
<ide><path>ReactAndroid/src/main/java/com/faceboo... | 2 |
Ruby | Ruby | convert tap test to spec | 3dcbb84fb5fd1601e669ea15c9ddb1056c839325 | <ide><path>Library/Homebrew/test/tap_spec.rb
<add>RSpec::Matchers.alias_matcher :have_formula_file, :be_formula_file
<add>RSpec::Matchers.alias_matcher :have_custom_remote, :be_custom_remote
<add>
<add>describe Tap do
<add> include FileUtils
<add>
<add> subject { Tap.new("Homebrew", "foo") }
<add> let(:path) { Tap::... | 2 |
Javascript | Javascript | fix romanian plural names | e5bb720882a81de84ecba88f45eea961ff6d2f72 | <ide><path>lang/ro.js
<ide> factory(window.moment); // Browser global
<ide> }
<ide> }(function (moment) {
<add> function relativeTimeWithPlural(number, withoutSuffix, key) {
<add> var format = {
<add> 'mm': 'minute',
<add> 'hh': 'ore',
<add> 'dd': 'zile',
<add> ... | 2 |
Javascript | Javascript | fix doc for react native mountcomponent | 85dcbf83c5c0c9165dfe7fc440faf9e019ba8642 | <ide><path>src/renderers/dom/shared/ReactDOMComponent.js
<ide> ReactDOMComponent.Mixin = {
<ide> *
<ide> * @internal
<ide> * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
<del> * @param {?ReactDOMComponent} the containing DOM component instance
<add> * @param {?ReactDOMComp... | 2 |
PHP | PHP | return cookie factory instance if name is null | 7074b9bdf341ab3136caa7afab019111edd9323a | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function config($key, $default = null)
<ide> * @param bool $httpOnly
<ide> * @return \Symfony\Component\HttpFoundation\Cookie
<ide> */
<del> function cookie($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true)
<add... | 1 |
PHP | PHP | update code to create and save entity | 162d8b392d65b9e28443e3e5e2af0970e29aa922 | <ide><path>src/ORM/Table.php
<ide> public function get($primaryKey, $options = []) {
<ide> *
<ide> * Using the attributes defined in $search a find() will be done to locate
<ide> * an existing record. If that record exists it will be returned. If it does
<del> * not exist, a new entity will be created. In both cases... | 2 |
PHP | PHP | fix cs error | 5b359de172fd412a18e7994fdc43944bb3ef54bc | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function sort(string $key, $title = null, array $options = []): string
<ide> * in non-standard contexts (i.e. JavaScript)
<ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#generating-pagination-urls
<ide> */
<del> p... | 1 |
Javascript | Javascript | add support for evaluating +xx | a3a4c1b9b1eb2f4de1a962495e060bd71c5d1724 | <ide><path>lib/JavascriptParser.js
<ide> class JavascriptParser {
<ide> res.setNumber(~argument.number);
<ide> res.setRange(expr.range);
<ide> return res;
<add> } else if (expr.operator === "+") {
<add> const argument = this.evaluateExpression(expr.argument);
<add> if (!argument) return;
<add> if... | 1 |
Javascript | Javascript | update polyfill for helio 0.98 | 46620b4f03b395558328deea349e31971b10ea75 | <ide><path>examples/js/vr/HelioWebXRPolyfill.js
<ide> * @author mvilledieu / http://github.com/mvilledieu
<ide> */
<ide>
<del>if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator && 'isSessionSupported' in navigator.xr === false) {
<add>if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator) {
... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.