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 |
|---|---|---|---|---|---|
PHP | PHP | fix misspelling in mailer fake implementation | 3543314ce05a09d40a71bd43c89080084d3a1620 | <ide><path>src/Illuminate/Support/Testing/Fakes/MailFake.php
<ide> public function bcc($users)
<ide> }
<ide>
<ide> /**
<del> * Send a new message when only a raw text part.
<add> * Send a new message with only a raw text part.
<ide> *
<ide> * @param string $text
<ide> * @param \Closur... | 1 |
PHP | PHP | allow schema path on fresh | 6b14a77eec4f70ae86fbf3570c5318c296caa8dc | <ide><path>src/Illuminate/Database/Console/Migrations/FreshCommand.php
<ide> public function handle()
<ide> '--database' => $database,
<ide> '--path' => $this->input->getOption('path'),
<ide> '--realpath' => $this->input->getOption('realpath'),
<add> '--schema-path' => $th... | 1 |
Javascript | Javascript | fix bogus errno reporting | 5d97d727536b33dfca6fc582033aed64f921f65f | <ide><path>lib/net.js
<ide> Server.prototype._listen2 = function(address, port, addressType, backlog, fd) {
<ide> r = self._handle.listen(backlog || 511);
<ide>
<ide> if (r) {
<add> var ex = errnoException(errno, 'listen');
<ide> self._handle.close();
<ide> self._handle = null;
<ide> process.nextTic... | 1 |
Python | Python | improve documentation formatting | 0307f89d48368a39ed97a252f9faed3c7bf64446 | <ide><path>numpy/lib/function_base.py
<ide> def copy(a, order='K', subok=False):
<ide> >>> b[0] = 3
<ide> >>> b
<ide> array([3, 2, 3])
<del>
<add>
<ide> Note that np.copy is a shallow copy and will not copy object
<ide> elements within arrays. This is mainly important for arrays
<ide> contai... | 2 |
Python | Python | add missing parameter dtype | 91ad52244a7d4670b9569f46c857020eda1d0dc7 | <ide><path>keras/backend/cntk_backend.py
<ide> def truncated_normal(shape, mean=0.0, stddev=1.0, dtype=None, seed=None):
<ide> stddev, seed=seed), dtype=dtype)
<ide>
<ide>
<del>def zeros_like(x, dtype=None, name=None):
<del> return x * 0
<del>
<del>
<ide> def dtype(x):
<ide> return _convert_dtype_s... | 1 |
PHP | PHP | fix variable typo in collection | 11ed2b19166c20e15866492a7c61fb6951447707 | <ide><path>src/Illuminate/Support/Collection.php
<ide> private function getArrayableItems($items)
<ide> }
<ide> elseif ($items instanceof ArrayableInterface)
<ide> {
<del> $tiems = $items->toArray();
<add> $items = $items->toArray();
<ide> }
<ide>
<ide> return $items; | 1 |
Python | Python | add note and examples to `isrealobj` docstring | c00091e4265f5eaabc943c6990c65903522c6e45 | <ide><path>numpy/lib/type_check.py
<ide> def isrealobj(x):
<ide> --------
<ide> iscomplexobj, isreal
<ide>
<add> Notes
<add> -----
<add> The function is only meant for arrays with numerical values but it
<add> accepts all other objects. Since it assumes array input, the return
<add> value of oth... | 1 |
Python | Python | make test for more precise | fd9fd275c5209b64d163943da33cadeea01b247c | <ide><path>spacy/tests/regression/test_issue1945.py
<del>'''Test regression in PhraseMatcher introduced in v2.0.6.'''
<add>'''Test regression in Matcher introduced in v2.0.6.'''
<ide> from __future__ import unicode_literals
<ide> import pytest
<ide>
<del>from ...lang.en import English
<del>from ...matcher import Phras... | 1 |
Java | Java | implement equality for readablenativemap | f4536422d64f94938ddf5e83e1bb1c2d1d7aefa8 | <ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java
<ide> import com.facebook.react.bridge.ReadableType;
<ide> import com.facebook.react.bridge.UiThreadUtil;
<ide> import com.facebook.react.bridge.UnexpectedNativeTypeException;
<add>import com.facebook.rea... | 3 |
PHP | PHP | clear the facaded request on calls to kernel | 7861640f4d5c55b066f0ac5f017006d972e20b14 | <ide><path>src/Illuminate/Foundation/Http/Kernel.php
<ide> use Exception;
<ide> use Illuminate\Routing\Router;
<ide> use Illuminate\Pipeline\Pipeline;
<add>use Illuminate\Support\Facades\Facade;
<ide> use Illuminate\Contracts\Foundation\Application;
<ide> use Illuminate\Contracts\Routing\TerminableMiddleware;
<ide> use... | 1 |
Java | Java | fix typo in javadoc | 9656015d269d812928ac6c4ea6c45d16534b656e | <ide><path>spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperation.java
<ide> public int hashCode() {
<ide> /**
<ide> * Return an identifying description for this cache operation.
<ide> * <p>Returned value is produced by calling {@link Builder#getOperationDescription()}
<del> * during ob... | 2 |
Javascript | Javascript | allow omitting constant primitive deps | 0b8efb229c0b8e4b0919d855e926c7528e2246f0 | <ide><path>packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js
<ide> const tests = {
<ide> {
<ide> code: `
<ide> function MyComponent() {
<del> const local = 42;
<add> const local = {};
<ide> useEffect(() => {
<ide> console.log(local);
<ide> ... | 2 |
Python | Python | add initial epoch argument to fit functions | 06cc6d7fea7527e99e36c9fc766390c51e73ebba | <ide><path>keras/engine/training.py
<ide> def _make_predict_function(self):
<ide> def _fit_loop(self, f, ins, out_labels=[], batch_size=32,
<ide> nb_epoch=100, verbose=1, callbacks=[],
<ide> val_f=None, val_ins=None, shuffle=True,
<del> callback_metrics=[]):
<add... | 2 |
Text | Text | add guide to maintaining npm | f2eaf874ed6b8d701e9eac144cd6067ec9874d86 | <ide><path>doc/guides/maintaining-npm.md
<add># Maintaining npm in Node.js
<add>
<add>## Step 1: Clone npm
<add>
<add>```console
<add>$ git clone https://github.com/npm/npm.git
<add>$ cd npm
<add>```
<add>
<add>or if you already have npm cloned make sure the repo is up to date
<add>
<add>```console
<add>$ git remote up... | 1 |
Javascript | Javascript | remove unused variables | 92f0693914f3202a37aef1699d7cae7f01031dc5 | <ide><path>examples/jsm/csm/CSM.js
<ide> import {
<ide> DirectionalLight,
<ide> MathUtils,
<ide> ShaderChunk,
<del> LineBasicMaterial,
<del> Object3D,
<del> BufferGeometry,
<del> BufferAttribute,
<del> Line,
<ide> Matrix4,
<ide> Box3
<ide> } from '../../../build/three.module.js';
<ide> import Shader from './Shader... | 1 |
Python | Python | add __eq__/__ne__ and __repr__ | 769bc1336fd5d6a7fcf10d8be3b374c3e7a21bb3 | <ide><path>rest_framework/exceptions.py
<ide> from django.utils.translation import ungettext
<ide>
<ide> from rest_framework import status
<add>from rest_framework.compat import unicode_to_repr
<ide> from rest_framework.utils.serializer_helpers import ReturnDict, ReturnList
<ide>
<ide>
<ide> def __new__(cls, string,... | 2 |
PHP | PHP | add better comments in laravel file | 72aaf60241be68840ab94a6e5e20e9672bb4efcc | <ide><path>laravel/laravel.php
<ide> <?php namespace Laravel;
<ide>
<del>// --------------------------------------------------------------
<del>// Bootstrap the core framework components.
<del>// --------------------------------------------------------------
<add>/**
<add> * Bootstrap the core framework components lik... | 1 |
Ruby | Ruby | change mailer subjects lookup | 4a1f43878105d701fd2dd769ec3cf7e81d133c09 | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> def create!(method_name, *parameters) #:nodoc:
<ide> create_parts
<ide>
<ide> # Set the subject if not set yet
<del> @subject ||= I18n.t(method_name, :scope => [:actionmailer, :subjects, mailer_name],
<del> :... | 2 |
Javascript | Javascript | remove navigationexperimental examples | da04a6b1f3d7651da52ef4b9c0a0f210a1e39289 | <ide><path>Examples/UIExplorer/js/NavigationExperimental/NavigationCardStack-NavigationHeader-Tabs-example.js
<del>/**
<del> * Copyright (c) 2013-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 di... | 9 |
Python | Python | add check_type functionality to numpy.distutils | 8a36ae9ed4459e1a45a2656afeb862b5c96ce3f6 | <ide><path>numpy/distutils/command/config.py
<ide> def check_decl(self, symbol,
<ide>
<ide> return self.try_compile(body, headers, include_dirs)
<ide>
<add> def check_type(self, type_name, headers=None, include_dirs=None,
<add> library_dirs=None):
<add> """Check type availability. Return ... | 1 |
Text | Text | use sentence case for web crypto headers | 98659c04d5ca5664fa03857beed23c4e43d98c92 | <ide><path>doc/api/webcrypto.md
<ide> async function digest(data, algorithm = 'SHA-512') {
<ide> }
<ide> ```
<ide>
<del>## Algorithm Matrix
<add>## Algorithm matrix
<ide>
<ide> The table details the algorithms supported by the Node.js Web Crypto API
<ide> implementation and the APIs supported for each:
<ide> The wrap... | 1 |
PHP | PHP | track the exit code of scheduled event commands | dc8e71e174952f6810a9846a208395a17eee7569 | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> class Event
<ide> */
<ide> public $mutex;
<ide>
<add> /**
<add> * The command exit status code.
<add> *
<add> * @var int
<add> */
<add> public $exitCode;
<add>
<ide> /**
<ide> * Create a new event instance.
<ide> ... | 1 |
Text | Text | update sync instructions | 3345f603ac63549df01d2f12e3fb96bb6e84f11d | <ide><path>docs/how-to-setup-freecodecamp-locally.md
<ide> Start by installing these prerequisite software.
<ide> | Prerequisite | Version | Notes |
<ide> | ------------------------------------------- | ------- | ----- |
<ide> | [MongoDB Community Server](https://docs.mongodb.com/manual/a... | 1 |
Python | Python | avoid deprecated non-tuple indexing | 7bf34020951f2c99d390870b085843835057e4a7 | <ide><path>numpy/lib/index_tricks.py
<ide> def __getitem__(self, key):
<ide> slobj = [_nx.newaxis]*len(size)
<ide> for k in range(len(size)):
<ide> slobj[k] = slice(None, None)
<del> nn[k] = nn[k][slobj]
<add> nn[k] = nn[k][tuple(... | 2 |
Python | Python | fix various lossscaleoptimizer issues | c98ea36b96f6036b1dec569e5e496aee06a44b29 | <ide><path>keras/engine/training_v1.py
<ide> def _set_optimizer(self, optimizer):
<ide> if not isinstance(self.optimizer, optimizer_v2.OptimizerV2):
<ide> raise ValueError(
<ide> '"optimizer" must be an instance of '
<del> "tf.keras.optimizers.Optimizer... | 5 |
Go | Go | simplify udev log, and update link | a5ebd28797c8e757e08e2d5bf09f447793eadc72 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> import (
<ide> "time"
<ide>
<ide> "github.com/docker/docker/daemon/graphdriver"
<del> "github.com/docker/docker/dockerversion"
<ide> "github.com/docker/docker/pkg/devicemapper"
<ide> "github.com/docker/docker/pkg/dmesg"
<ide> "github.com/docker/docker/pkg... | 1 |
PHP | PHP | fix bug with force create | 1a4fe3e5518b87302ccc1ec82ba8e9a13a3a52a1 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function create(array $attributes = [])
<ide> */
<ide> public function forceCreate(array $attributes)
<ide> {
<del> $instance = $this->model->newInstance($attributes)->setConnection(
<add> $instance = $this->model->newInstan... | 1 |
Java | Java | log unresolved exceptions at error level | 324c310cbd3a95da73d36a6f868a538742a10c4f | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ReactorHttpHandlerAdapter.java
<ide> public Mono<Void> apply(HttpChannel channel) {
<ide>
<ide> return this.delegate.handle(adaptedRequest, adaptedResponse)
<ide> .otherwise(ex -> {
<del> logger.debug("Could not complete request", e... | 6 |
Ruby | Ruby | remove redundant check for `sorbet-runtime` | 117ae2c068e5795b08c15027ed89e7d1ddd004eb | <ide><path>Library/Homebrew/utils/sorbet.rb
<ide> Homebrew.install_bundler_gems!
<ide> require "sorbet-runtime"
<ide> else
<del> begin
<del> gem "sorbet-runtime"
<del> raise "Loaded `sorbet-runtime` instead of `sorbet-runtime-stub`."
<del> rescue Gem::LoadError
<del> nil
<del> end
<del>
<ide> require ... | 1 |
Ruby | Ruby | add homebrew to tex requirement | 68f27922bca5888d1003dcd736621657316d8a9e | <ide><path>Library/Homebrew/requirements.rb
<ide> def message;
<ide> end
<ide>
<ide> <<-EOS.undent
<del> A LaTeX distribution is required to install.
<add> A LaTeX distribution is required for Homebrew to install this formula.
<ide>
<ide> You can install MacTeX distribution from:
<ide> http://... | 1 |
Javascript | Javascript | throw exception when recursive $apply | 0bf611087b2773fd36cf95c938d1cda8e65ffb2b | <ide><path>src/service/scope.js
<ide> */
<ide> function $RootScopeProvider(){
<ide> this.$get = ['$injector', '$exceptionHandler', '$parse',
<del> function( $injector, $exceptionHandler, $parse){
<add> function( $injector, $exceptionHandler, $parse) {
<add>
<ide> /**
<ide> * @ngdoc functio... | 2 |
Java | Java | fix modal size on android tablet | 12a97e1ecd6895f8562d900904f5d1a4e182b838 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostHelper.java
<ide> import android.content.Context;
<ide> import android.graphics.Point;
<ide> import android.view.Display;
<del>import android.view.Surface;
<ide> import android.view.WindowManager;
<ide>
<ide> import com.facebook.infer.annota... | 1 |
Text | Text | fix a small typo | 993162cc74e01795c5b9b5528a7ea0be39d4592f | <ide><path>README.md
<ide> export default function counterStore(state = initialState, action) {
<ide> default:
<ide> return state;
<ide> }
<del>
<add>
<ide> // BUT THAT'S A SWITCH STATEMENT!
<ide> // Right. If you hate 'em, see the FAQ below.
<ide> }
<ide> Redux has no opinion on how you do this in your p... | 1 |
Text | Text | add a readme for resnet keras | f5bb2af2c2f00714723cc486726e534291206925 | <ide><path>official/resnet/keras/README.md
<add>This folder contains the Keras implementation of the ResNet models. For more
<add>information about the models, please refer to this [README file](../README.md).
<add>
<add>Similar to the [estimator implementation](/official/resnet), the Keras
<add>implementation has co... | 1 |
Ruby | Ruby | add join conditions to join clause, not where | 8d270a2abbc1601777f4918bd1968c18f7864ae5 | <ide><path>activerecord/lib/active_record/associations/join_dependency/join_association.rb
<ide> def join_to(relation)
<ide>
<ide> constraint = build_constraint(reflection, table, key, foreign_table, foreign_key)
<ide>
<del> relation.from(join(table, constraint))
<del>
<ide> unless ... | 2 |
Javascript | Javascript | remove excess colon | 951e67cd17f3b2591329ae500173da5425706253 | <ide><path>src/math/Matrix3.js
<ide> Object.assign( Matrix3.prototype, {
<ide>
<ide> if ( det === 0 ) {
<ide>
<del> var msg = "THREE.Matrix3: .getInverse(): can't invert matrix, determinant is 0";
<add> var msg = "THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";
<ide>
<ide> if ( throwOnD... | 2 |
Ruby | Ruby | fix a typo | dc69220e28e319fb557f87b92766f88d240a3327 | <ide><path>actionpack/lib/action_dispatch/testing/integration.rb
<ide> module RequestHelpers
<ide> # - +headers+: Additional headers to pass, as a Hash. The headers will be
<ide> # merged into the Rack env hash.
<ide> #
<del> # This method returns an Response object, which one can use to
<add> ... | 1 |
PHP | PHP | improve api docs | bc64e1f7e08af1c2e1b87a3c0d892040b46e56c0 | <ide><path>src/ORM/Association.php
<ide> public function conditions($conditions = null)
<ide> * Sets the name of the field representing the binding field with the target table.
<ide> * When not manually specified the primary key of the owning side table is used.
<ide> *
<del> * @param string $key the... | 1 |
Javascript | Javascript | fix markdown formatting | 4836dacae68106523ebc2295f515002780d4e0c3 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * To add or overwrite these defaults, simply add or remove a property from these configuration
<ide> * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object
<ide> * with the lowercased HTTP method name a... | 1 |
Text | Text | clarify test text for react challenge | 6c8df573c3f1e88f90499d5c08b9577b256569f9 | <ide><path>curriculum/challenges/english/03-front-end-libraries/react/render-state-in-the-user-interface.md
<ide> assert(
<ide> );
<ide> ```
<ide>
<del>The rendered `h1` header should contain text rendered from the component's state.
<add>The rendered `h1` header should only contain text rendered from the component's ... | 1 |
Ruby | Ruby | reverse universal_archs entries | 91dd4d56d426ed47c4e042f7b17d6560245fd60f | <ide><path>Library/Homebrew/os/mac/hardware.rb
<ide> def universal_archs
<ide> if MacOS.version <= :leopard && !MacOS.prefer_64_bit?
<ide> [arch_32_bit].extend ArchitectureListExtension
<ide> else
<del> [arch_32_bit, arch_64_bit].extend ArchitectureListExtension
<add> # Amazingly, this order (64... | 1 |
Ruby | Ruby | add more explanation to collectionassociation docs | c0c0ef59921a4a8795cd20348afc243cccc4821e | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> module Associations
<ide> # HasManyAssociation => has_many
<ide> # HasManyThroughAssociation + ThroughAssociation => has_many :through
<ide> #
<add> # CollectionAssociation class provides common methods to th... | 1 |
PHP | PHP | rename a few things to make more sense | 96fa470718120eb8569cc6068b265776fd7ebb46 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php
<ide> public function has($relation, $operator = '>=', $count = 1, $boolean = 'and', C
<ide> // optimize the subquery to only run a "where exists" clause instead of
<ide> // the full "count" clause. This will make the query ru... | 12 |
Go | Go | add helper function to make prctl system call | 65567e125d9bd4d4ede25dd03bda11ebf1ef7321 | <ide><path>pkg/system/calls_linux.go
<ide> func Mknod(path string, mode uint32, dev int) error {
<ide> return syscall.Mknod(path, mode, dev)
<ide> }
<ide>
<add>func Prctl(option int, arg2, arg3, arg4, arg5 uintptr) error {
<add> if _, _, err := syscall.Syscall6(syscall.SYS_PRCTL, uintptr(option), arg2, arg3, arg4, ar... | 1 |
PHP | PHP | bring the pluralization rules back | bb414d3ad37861a660173221beeea980294b9789 | <ide><path>src/Illuminate/Translation/MessageSelector.php
<ide> class MessageSelector
<ide> *
<ide> * @param string $line
<ide> * @param int $number
<add> * @param string $locale
<ide> * @return mixed
<ide> */
<del> public function choose($line, $number)
<add> public function ch... | 4 |
Text | Text | clarify recommendations in stream.md | b71779517dfb4e4b34c9fc04ee8b6678256b5ddd | <ide><path>doc/api/stream.md
<ide> The `writable.uncork()` method flushes all data buffered since
<ide> [`stream.cork()`][] was called.
<ide>
<ide> When using [`writable.cork()`][] and `writable.uncork()` to manage the buffering
<del>of writes to a stream, it is recommended that calls to `writable.uncork()` be
<del>de... | 1 |
PHP | PHP | shorten exception message | 2c2344c39f3237d2c84d2228569210a0dee2b4ea | <ide><path>laravel/input.php
<ide> public static function old($key = null, $default = null)
<ide> {
<ide> if (Config::get('session.driver') == '')
<ide> {
<del> throw new \UnexpectedValueException('A session driver must be specified in order to access old input.');
<add> throw new \UnexpectedValueException('A ... | 1 |
Text | Text | prevent object mutation; fix minor typos | 0af7ebad6dbd2fcccaccd8db7a25bf596453fb74 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/prevent-object-mutation.english.md
<ide> Once the object is frozen, you can no longer add, update, or delete properties f
<ide>
<ide> ## Instructions
<ide> <section id='instructions'>
<del>In this challenge you are going to use <... | 1 |
Javascript | Javascript | simplify cluster layout | 60b6a3d2e5c196d3fa09229f32bf3f5c72046583 | <ide><path>d3.layout.js
<ide> function d3_layout_hierarchySort(a, b) {
<ide> // Implements a hierarchical layout using the cluster (or dendogram) algorithm.
<ide> d3.layout.cluster = function() {
<ide> var hierarchy = d3.layout.hierarchy(),
<del> group = 0;
<add> separation = d3_layout_treeSeparation,
<add>... | 7 |
Javascript | Javascript | fix domain with abort-on-uncaught on ppc | f45c31576358cf587f2551f9fbd492d9e1b55983 | <ide><path>test/parallel/test-domain-with-abort-on-uncaught-exception.js
<ide> if (process.argv[2] === 'child') {
<ide> // --abort_on_uncaught_exception is passed on the command line,
<ide> // the process must abort.
<ide> //
<del> // We use an array of values since the ac... | 1 |
Text | Text | add v4.6.0-beta.2 to changelog | 9741caacedb3fec9e82a4752c88345380594571d | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.6.0-beta.2 (June 27, 2022)
<add>
<add>- [#20125](https://github.com/emberjs/ember.js/pull/20125) [BUGFIX] Replace deprecated substr() method with substring() method.
<add>- [#20120](https://github.com/emberjs/ember.js/pull/20120) [BUGFIX] Adjust uniqueI... | 1 |
Java | Java | fix generics and serialization warnings | f30b7e3125105e75a0c10a75a27949a2a6937f86 | <ide><path>org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java
<ide> /*
<del> * Copyright 2002-2010 the original author or authors.
<add> * Copyright 2002-2011 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, ... | 9 |
Ruby | Ruby | instruct users to run git fetch unshallow | 9cfef076821e03a2c3e5988cc9a69eb6017f64c7 | <ide><path>Library/Homebrew/dev-cmd/extract.rb
<ide> def extract
<ide> loop do
<ide> rev = rev.nil? ? "HEAD" : "#{rev}~1"
<ide> rev, (path,) = Git.last_revision_commit_of_files(repo, pattern, before_commit: rev)
<del> odie "Could not find #{name}! The formula or version may not have existed... | 1 |
Mixed | Java | move observable unittests | 8cb026af3efc1621ccbe5587ff3b66c2d2714543 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import java.util.Collection;
<ide> import java.util.List;
<ide> import java.util.Map;
<del>import java.util.concurrent.CountDownLatch;
<ide> import java.util.concurrent.Future;
<ide> import java.util.concurrent.TimeUnit;
<del>import java.util.concurrent.atom... | 3 |
Text | Text | improve ar/changelog [ci skip] | 0aaf87c1e17125af47b88db9d70bd6d9cc0b96ec | <ide><path>activerecord/CHANGELOG.md
<ide> self.primary_key = :title
<ide> end
<ide>
<del> Post.find_in_batches(:start => 'My First Post') do |batch|
<add> Post.find_in_batches(start: 'My First Post') do |batch|
<ide> batch.each { |post| post.author.greeting }
<ide> en... | 1 |
Javascript | Javascript | provide defaults for unmapped uv errors | c246f813f8b1bbc8f0e13ab77452da4dff437635 | <ide><path>lib/internal/errors.js
<ide> function lazyUv() {
<ide> return uvBinding;
<ide> }
<ide>
<add>const uvUnmappedError = ['UNKNOWN', 'unknown error'];
<add>
<ide> function uvErrmapGet(name) {
<ide> uvBinding = lazyUv();
<ide> if (!uvBinding.errmap) {
<ide> function uvErrmapGet(name) {
<ide> * @returns {Er... | 2 |
Python | Python | fix building docs in `main` builds | 16a17f731c25a079522ffa9a8ea6ebaa62bdd7b2 | <ide><path>docs/build_docs.py
<ide> 'failed to reach any of the inventories with the following issues',
<ide> 'undefined label:',
<ide> 'unknown document:',
<add> 'Error loading airflow.providers',
<ide> ]
<ide>
<ide> ON_GITHUB_ACTIONS = os.environ.get('GITHUB_ACTIONS', 'false') == "true" | 1 |
Python | Python | fix backend utf-8 encoding in s3 backend | 42c866ff516c8f5589fcb7aa97781e2be466d36b | <ide><path>celery/backends/s3.py
<ide> def get(self, key):
<ide> s3_object = self._get_s3_object(key)
<ide> try:
<ide> s3_object.load()
<del> return s3_object.get()['Body'].read().decode('utf-8')
<add> data = s3_object.get()['Body'].read()
<add> return data i... | 2 |
Python | Python | update basic_binary_tree.py (#725) | 2c67f6161ca4385d9728951f71c4d11fda2ef7df | <ide><path>binary_tree/basic_binary_tree.py
<del>class Node:
<add>class Node: # This is the Class Node with constructor that contains data variable to type data and left,right pointers.
<ide> def __init__(self, data):
<ide> self.data = data
<ide> self.left = None
<ide> self.right = None
<ide... | 1 |
PHP | PHP | fix failing tests | 3d0920a40581f397ae6c6640f79c596e4753bf94 | <ide><path>lib/Cake/Test/Case/Error/ErrorHandlerTest.php
<ide> public function testLoadPluginHandler() {
<ide> /**
<ide> * test handleFatalError generating a page.
<ide> *
<add> * These tests start two buffers as handleFatalError blows the outer one up.
<add> *
<ide> * @return void
<ide> */
<ide> public function t... | 1 |
Ruby | Ruby | use literal values in assertions | d2890f76d49542ab853bfcbe5f1c4c6924231591 | <ide><path>activesupport/test/json/encoding_test.rb
<ide> def test_exception_to_json
<ide>
<ide> class InfiniteNumber
<ide> def as_json(options = nil)
<del> { "number" => 1.0 / 0 }
<add> { "number" => Float::INFINITY }
<ide> end
<ide> end
<ide>
<ide> def test_to_json_works_when_as_json_returns... | 1 |
Go | Go | remove deprecated test helpers | da514223d1e441e2bab82bf3b30e1a1e0e222ac6 | <ide><path>graphdriver/devmapper/devmapper.go
<ide> var (
<ide> ErrTaskAddTarget = errors.New("dm_task_add_target failed")
<ide> ErrTaskSetSector = errors.New("dm_task_set_sector failed")
<ide> ErrTaskGetInfo = errors.New("dm_task_get_info failed")
<del> ErrTaskGetDriverVersion = error... | 2 |
Text | Text | add react amsterdam 2017 | ccf6f5922ed1b12ce5409180bf4adc0b056e0de9 | <ide><path>docs/community/conferences.md
<ide> May 18th & 19th in Paris, France
<ide>
<ide> [Website](http://www.react-europe.org/) - [Schedule](http://www.react-europe.org/#schedule)
<ide>
<add>### React Amsterdam 2017
<add>April 21st in Amsterdam, The Netherlands
<add>
<add>[Website](https://react.amsterdam) - [Twi... | 1 |
Javascript | Javascript | add default require directives for jquery | 9333ca74b37c6c24262783daf118984621ace69e | <ide><path>railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js
<ide> // Place your application-specific JavaScript functions and classes here
<ide> // FIXME: Tell people how Sprockets and Coffe works
<add>//
<add>//= require jquery
<add>//= require jquery_ujs
<add>//= require_tree . | 1 |
Ruby | Ruby | add methods in formulacop to find block nodes | 134da5b8c266d0e5f07a1f79bff233f372c7ef30 | <ide><path>Library/Homebrew/rubocops/extend/formula_cop.rb
<ide> def find_block(node, block_name)
<ide> nil
<ide> end
<ide>
<del> # Returns an array of block nodes named block_name inside node
<add> # Returns an array of block nodes of depth first order named block_name below node
<ide> d... | 1 |
Javascript | Javascript | fix negative index cases for range and take/skip | c1ce0735538bf8db04792ea78accaf16c2a6d343 | <ide><path>dist/Immutable.js
<ide> var $IndexedSequence = IndexedSequence;
<ide> if (skipSeq !== seq) {
<ide> skipSeq.get = function(index, notSetValue) {
<ide> index = wrapIndex(this, index);
<del> return index < 0 ? notSetValue : seq.get(index + amount, notSetValue);
<add> return index... | 4 |
PHP | PHP | fix dispatcher tests | 7fd727b6dfe62f47ac98c7bb6d140718a6c042cd | <ide><path>lib/Cake/Test/TestCase/Routing/DispatcherTest.php
<ide> public function testDispatchBasic() {
<ide>
<ide> $url = new Request('test_dispatch_pages/camelCased/something. .');
<ide> $Dispatcher->dispatch($url, $response, array('return' => 1));
<del> $this->assertEquals('something. .', $url->params['pass']... | 1 |
Javascript | Javascript | add comments for finding registry hook calls | 37080c9a8db7b4ff94bebcee3df990127d8d263a | <ide><path>src/core/core.registry.js
<ide> export class Registry {
<ide> */
<ide> _exec(method, registry, component) {
<ide> const camelMethod = _capitalize(method);
<del> call(component['before' + camelMethod], [], component);
<add> call(component['before' + camelMethod], [], component); // beforeRegiste... | 1 |
Javascript | Javascript | delay updating aspath for auto exported pages | a5ebe41a9a6e63827a5aaa28b2dec3fa095eb249 | <ide><path>packages/next/client/index.js
<ide> export default async ({ webpackHMR: passedWebpackHMR } = {}) => {
<ide> await window.__NEXT_PRELOADREADY(dynamicIds)
<ide> }
<ide>
<del> router = createRouter(page, query, asPath, {
<add> // if auto prerendered and dynamic route wait to update asPath
<add> // unt... | 2 |
Javascript | Javascript | use new function instead of eval() | 7903f4d9407b0ffe478341f9f88779f34efb218e | <ide><path>src/Scope.js
<ide> function getterFn(path){
<ide> var fn = getterFnCache[path];
<ide> if (fn) return fn;
<ide>
<del> var code = 'function (s){\n';
<del> code += ' var l, fn, t;\n';
<add> var code = 'var l, fn, t;\n';
<ide> foreach(path.split('.'), function(key) {
<ide> key = (JS_KEYWORDS[key])... | 1 |
Text | Text | fix typo on routing page's toc | 3ccc37bd8fd481d9eee38caa665b851d96736136 | <ide><path>laravel/documentation/routing.md
<ide>
<ide> - [The Basics](#the-basics)
<ide> - [Wildcards](#wildcards)
<del>- [The 404 Events](#the-404-event)
<add>- [The 404 Event](#the-404-event)
<ide> - [Filters](#filters)
<ide> - [Pattern Filters](#pattern-filters)
<ide> - [Global Filters](#global-filters) | 1 |
Javascript | Javascript | hide conditional lines by default | 5bfe1047ff1d3e06d98bc86e6fee5942e7ace23c | <ide><path>examples/js/loaders/LDrawLoader.js
<ide> THREE.LDrawLoader = ( function () {
<ide>
<ide> var lines = createObject( parseScope.conditionalSegments, 2 );
<ide> lines.isConditionalLine = true;
<add> lines.visible = false;
<ide> objGroup.add( lines );
<ide>
<ide> }
<ide>
<ide>... | 1 |
Javascript | Javascript | terminate worker of previous doc | 151cd6dee8118dc14adef60a07001b11292dd765 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> }
<ide> }
<ide>
<add> // Terminate worker of the previous document if any.
<add> if (this.pdfDocument) {
<add> this.pdfDocument.destroy();
<add> }
<ide> this.pdfDocument = null;
<ide> var self = this;
<ide> self.loading = true; | 1 |
Python | Python | add a test case for gandi live dns driver | 9d3ad46951af5252f74b31cca26b9e3c888034a3 | <ide><path>libcloud/test/dns/test_gandi_live.py
<ide> def test_create_record(self):
<ide> self.assertEqual(record.type, RecordType.AAAA)
<ide> self.assertEqual(record.data, '::1')
<ide>
<add> def test_create_record_doesnt_throw_if_ttl_is_not_provided(self):
<add> record = self.driver.create_r... | 1 |
Java | Java | add pathprefix predicate | 1d589eb6396531674d36cc80a62c912b5e004cb3 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
<ide> public static RequestPredicate method(HttpMethod httpMethod) {
<ide> }
<ide>
<ide> /**
<del> * Return a {@code RequestPredicate} that tests against the given path pattern.
<add> * Return a {@code R... | 2 |
Text | Text | improve the wording of a challenge | 8072041012a60ab0e72af6a3361b5e03c2ea6bad | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/614206033d366c090ca7dd42.md
<ide> dashedName: step-17
<ide>
<ide> Typeface plays an important role in the accessibility of a page. Some fonts are easier to read than others, and this is especially true on low-re... | 1 |
Ruby | Ruby | add only_numeric option to numericality validator | 318d6905e29483dc1281da045caa8c1240239566 | <ide><path>activemodel/lib/active_model/validations/numericality.rb
<ide> class NumericalityValidator < EachValidator # :nodoc:
<ide> RANGE_CHECKS = { in: :in? }
<ide> NUMBER_CHECKS = { odd: :odd?, even: :even? }
<ide>
<del> RESERVED_OPTIONS = COMPARE_CHECKS.keys + NUMBER_CHECKS.keys + RANGE_CHECKS.ke... | 2 |
Java | Java | add contenttyperesolver strategy | 641c6428e88bbdd30fac591bf33b0e94f5751d6a | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/ContentTypeResolver.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with th... | 5 |
Java | Java | improve the javadoc of the other lift() operators | 8068404179b0d2e07da6f0e10ea95110d98e118d | <ide><path>src/main/java/io/reactivex/Completable.java
<ide> public final Completable doFinally(Action onFinally) {
<ide> }
<ide>
<ide> /**
<del> * <strong>Advanced use without safeguards:</strong> lifts a CompletableOperator
<del> * transformation into the chain of Completables.
<add> * <strong>Th... | 5 |
Text | Text | add doi badge to readme | 2582e59a57154ec5a71321eda24019dd94824e71 | <ide><path>README.md
<ide> limitations under the License.
<ide> <a href="https://github.com/huggingface/transformers/blob/master/CODE_OF_CONDUCT.md">
<ide> <img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg">
<ide> </a>
<add> <a href="ht... | 1 |
Text | Text | remove guide contribution references | 7065ace345f61f1ec628889ec155bc89e29f1a52 | <ide><path>CONTRIBUTING.md
<ide> We have a huge open source codebase consisting of thousands of [coding challenge
<ide>
<ide> You can help us to:
<ide>
<del>- [📝 Research, Write and Update our guide articles](#research-write-and-update-our-guide-articles)
<del>
<ide> - [💻 Create, Update and Fix Bugs in our coding c... | 1 |
Ruby | Ruby | bring layouts with proc back alive | e274eb1df1dcf526febb7c3a1a8dc2c02325d68c | <ide><path>actionpack/lib/abstract_controller/layouts.rb
<ide> def _layout(details)
<ide> end
<ide> end
<ide> ruby_eval
<add> when Proc
<add> define_method :_layout_from_proc, &@_layout
<add> self.class_eval %{def _layout(details) _layout_from_proc(self) end}... | 2 |
Python | Python | fix docs for decoder_input_ids | 8d43c71a1ca3ad322cc45008eb66a5611f1e017e | <ide><path>src/transformers/models/bart/modeling_bart.py
<ide> def __init_subclass__(self):
<ide> :meth:`transformers.PreTrainedTokenizer.encode` and :meth:`transformers.PreTrainedTokenizer.__call__` for
<ide> details.
<ide>
<del> `What are input IDs? <../glossary.html#input-ids>`__
... | 17 |
PHP | PHP | remove incorrect example | a6b0480ccc3075083f7f1efdf618707f19fd3bbc | <ide><path>src/Database/Query.php
<ide> public function traverseExpressions(callable $callback)
<ide> /**
<ide> * Associates a query placeholder to a value and a type.
<ide> *
<del> * If type is expressed as "atype[]" (note braces) then it will cause the
<del> * placeholder to be re-written dynami... | 1 |
PHP | PHP | make existsin rule work with nullable columns | 49465ec929ae034a1a23fd223682f166036f1b0f | <ide><path>src/ORM/Rule/ExistsIn.php
<ide> public function __invoke(EntityInterface $entity, array $options)
<ide> return true;
<ide> }
<ide>
<add> $nulls = 0;
<add> $schema = $this->_repository->schema();
<add> foreach ($this->_fields as $field) {
<add> if ($schema-... | 2 |
Python | Python | add missing spaces | 4c95508f0f590f4f5900cf7c5a0df698edb77492 | <ide><path>airflow/bin/cli.py
<ide> def kerberos(args):
<ide> def get_parser():
<ide> parser = argparse.ArgumentParser()
<ide> subparsers = parser.add_subparsers(help='sub-command help', dest='subcommand')
<del> subparsers.required=True
<add> subparsers.required = True
<ide>
<ide> ht = "Run subsectio... | 1 |
Text | Text | update the changelog | 548a7a4e2190aba01883bd43704ff0dee229a67d | <ide><path>CHANGELOG.md
<ide> * **challenges:** improve template literal challenge instructions ([99f4b9f](https://github.com/freeCodeCamp/curriculum/commit/99f4b9f))
<ide> * **challenges:** inline style semicolon consistency ([3557016](https://github.com/freeCodeCamp/curriculum/commit/3557016)), closes [#17909](https:... | 1 |
Javascript | Javascript | use more `for...of` loops in the viewer | 7e57469683d51c1fffbdc9e9a736f6f176294a3b | <ide><path>web/base_viewer.js
<ide> class BaseViewer {
<ide> }
<ide>
<ide> cleanup() {
<del> for (let i = 0, ii = this._pages.length; i < ii; i++) {
<del> if (
<del> this._pages[i] &&
<del> this._pages[i].renderingState !== RenderingStates.FINISHED
<del> ) {
<del> this._pages[i].r... | 2 |
Ruby | Ruby | fix rsync for bottles with a revision number | 8c5a49067ef6ddf96c30cdc4e2e29390b25a1ac7 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def run
<ide> path = "/home/frs/project/m/ma/machomebrew/Bottles/"
<ide> url = "BrewTestBot,machomebrew@frs.sourceforge.net:#{path}"
<ide> options = "--partial --progress --human-readable --compress"
<del> safe_system "rsync #{options} *.bottle.tar.gz #... | 1 |
PHP | PHP | add withuseragent to http client | adbaf16c2ecea1ed7be657e3f1c4c9f8d77849ca | <ide><path>src/Illuminate/Http/Client/PendingRequest.php
<ide> public function withoutRedirecting()
<ide> });
<ide> }
<ide>
<add> /**
<add> * Specify the user agent for the request.
<add> *
<add> * @param string $userAgent
<add> * @return $this
<add> */
<add> public function wit... | 2 |
Go | Go | add more tests | 02f1eb89a42b4a9e91a8c80c213f7dc3193c75b9 | <ide><path>integration/container/copy_test.go
<ide> func TestCopyToContainerPathIsNotDir(t *testing.T) {
<ide> assert.Assert(t, is.ErrorContains(err, "not a directory"))
<ide> }
<ide>
<del>func TestCopyFromContainerRoot(t *testing.T) {
<add>func TestCopyFromContainer(t *testing.T) {
<ide> skip.If(t, testEnv.DaemonIn... | 1 |
Python | Python | remove references to missing files from install | 42aa77ff622fbcf7604a7842babb2c3a9961209a | <ide><path>numpy/f2py/setup.py
<ide> def configuration(parent_package='',top_path=None):
<ide> config = Configuration('f2py', parent_package, top_path)
<ide>
<del> config.add_data_dir('docs')
<ide> config.add_data_dir('tests')
<ide>
<ide> config.add_data_files('src/fortranobject.c',
<ide> ... | 2 |
Ruby | Ruby | fix variable name | b42259f628eb6c7452b3d54b54b1fbd699c8c794 | <ide><path>Library/Homebrew/cmd/test.rb
<ide> def test
<ide> if Sandbox.available? && ARGV.sandbox?
<ide> sandbox = Sandbox.new
<ide> formula.logs.mkpath
<del> sandbox.record_log(formula.logs/"sandbox.test.log")
<add> sandbox.record_log(f.logs/"sandbox.test.log")
... | 1 |
PHP | PHP | make underscore and dasherize consistent | 11c03e0aa0e3c343d2fd5fcac5cc0818c4cdd0e6 | <ide><path>src/Utility/Inflector.php
<ide> public static function camelize($string, $replacement = '_')
<ide> */
<ide> public static function underscore($string)
<ide> {
<del> return static::normalize($string, '_');
<add> return static::delimit(str_replace('-', '_', $string), '_');
<ide> ... | 2 |
Javascript | Javascript | add tests for d3.locale | 8b1e0ea9fec70b0c68498f12a797f69d8baeb884 | <ide><path>src/locale/ru-RU.js
<ide> import "locale";
<ide>
<del>var d3_locale_ruRU = d3.locale({
<add>d3.locale.ru_RU = d3.locale({
<ide> decimal: ",",
<ide> thousands: " ",
<ide> grouping: [3, 3],
<ide><path>test/locale/locale-test.js
<add>var vows = require("vows"),
<add> load = require("../load"),
<add> ... | 3 |
Javascript | Javascript | convert vars into let/const | 2a1b1f3094e524338b3eb3de51b23921576f02f5 | <ide><path>packages/react-test-renderer/index.js
<ide>
<ide> 'use strict';
<ide>
<del>var ReactTestRenderer = require('./src/ReactTestRenderer');
<add>const ReactTestRenderer = require('./src/ReactTestRenderer');
<ide>
<ide> // TODO: decide on the top-level export form.
<ide> // This is hacky but makes it work with ... | 6 |
Python | Python | address a few legacy issues in the test | b6780b59c39a32a5acb890a5e75475935b389343 | <ide><path>official/nlp/modeling/layers/tn_expand_condense_test.py
<ide> from absl.testing import parameterized
<ide> import numpy as np
<ide> import tensorflow as tf
<del># pylint: disable=g-direct-tensorflow-import
<del>from tensorflow.python.keras.testing_utils import layer_test
<ide> from official.nlp.modeling.laye... | 1 |
Ruby | Ruby | remove old call to sprockets context | 59baf2fc9c5e7aaf56cf36fdd70d9ecbc7a4a336 | <ide><path>actionpack/lib/sprockets/railtie.rb
<ide> def self.using_scss?
<ide> app.assets = asset_environment(app)
<ide>
<ide> ActiveSupport.on_load(:action_view) do
<del> if app.assets.respond_to?(:context_class)
<del> context = app.assets.context_class
<del>
<del> # TODO: Remove t... | 1 |
PHP | PHP | update example test | a536402228108da9423a0db1e0cf492f3f51c8b8 | <ide><path>tests/Feature/ExampleTest.php
<ide> namespace Tests\Feature;
<ide>
<ide> use Tests\TestCase;
<del>use Illuminate\Foundation\Testing\WithoutMiddleware;
<del>use Illuminate\Foundation\Testing\DatabaseMigrations;
<del>use Illuminate\Foundation\Testing\DatabaseTransactions;
<add>use Illuminate\Foundation\Testin... | 1 |
Java | Java | remove unused code | f5f03929792c03b02ad5b7294eaaed18ce6021bc | <ide><path>src/main/java/rx/internal/util/MpscPaddedQueue.java
<del>/**
<del> * Copyright 2014 Netflix, Inc.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License"); you may not
<del> * use this file except in compliance with the License. You may obtain a copy of
<del> * the License at
<del> *
<d... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.