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 |
|---|---|---|---|---|---|
Python | Python | set version to v3.1.0 | caba63b74f556f4e0b36f1c9f608e765772ea24e | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "3.1.0.dev0"
<add>__version__ = "3.1.0"
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.... | 2 |
Python | Python | add tests for expand_dims | 455b5c567f75486b121c33f82bcb8f8da9683b5a | <ide><path>numpy/lib/tests/test_shape_base.py
<ide> def test_deprecations(self):
<ide> assert_warns(DeprecationWarning, expand_dims, a, -6)
<ide> assert_warns(DeprecationWarning, expand_dims, a, 5)
<ide>
<add> def test_subclasses(self):
<add> a = np.arange(10).reshape((2, 5))
<add> ... | 2 |
Javascript | Javascript | remove invoke optimization that doesn't work | 05e4fd3488b89e670c36869f18defe26deac2efa | <ide><path>src/auto/injector.js
<ide> function createInjector(modulesToLoad) {
<ide> fn = fn[length];
<ide> }
<ide>
<del>
<del> // Performance optimization: http://jsperf.com/apply-vs-call-vs-invoke
<del> switch (self ? -1 : args.length) {
<del> case 0: return fn();
<del> case 1... | 1 |
Javascript | Javascript | fix previous commit | 134c6db6977a9218c1ff96d634412ece7529d5e2 | <ide><path>examples/js/loaders/FBXLoader.js
<ide> var poseNode = BindPoseNode[ nodeID ].subNodes.PoseNode;
<ide>
<ide> var rawMatWrd = new THREE.Matrix4().fromArray( poseNode.subNodes.Matrix.properties.a );
<del> worldMatrices.set( parseInt( poseNode.properties.Node ), rawMatWrd )
<del>
<del>
<add> w... | 1 |
Python | Python | remove stray comma that made the msg a tuple | 2f9f10a5ab1bc863d276a5155cc74af9e3916e72 | <ide><path>numpy/linalg/linalg.py
<ide> def qr(a, mode='reduced'):
<ide> mode = 'reduced'
<ide> elif mode in ('e', 'economic'):
<ide> # 2013-04-01, 1.8
<del> msg = "The 'economic' option is deprecated.",
<add> msg = "The 'economic' option is deprecated."
<ide> ... | 1 |
Javascript | Javascript | fix flow annotations in scrollviewsimpleexample | df288564c6e2b1b268ee9dcf3254c7a6da08f41b | <ide><path>Examples/UIExplorer/ScrollViewSimpleExample.js
<ide> var ScrollViewSimpleExample = React.createClass({
<ide> title: '<ScrollView>',
<ide> description: 'Component that enables scrolling through child components.'
<ide> },
<del> makeItems: function(nItems, styles) {
<add> makeItems: function(nItems... | 1 |
Text | Text | rewrote challenge instructions and tests | 3bff4151cf2391d45a9b5cd533e1e8867d771b9b | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/-iterate-through-the-keys-of-an-object-with-a-for...in-statement.english.md
<ide> challengeType: 1
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>Sometimes you may need to iterate through all t... | 1 |
PHP | PHP | upgrade shell - 'configure' subcommand | 78a376ebc40bc17701462bb8b23391f3b80c7664 | <ide><path>cake/console/shells/upgrade.php
<ide> public function basics() {
<ide> $patterns = array(
<ide> array(
<ide> 'a(*) -> array(*)',
<del> '/a\((.*)\)/',
<add> '/\ba\((.*)\)/',
<ide> 'array(\1)'
<ide> ),
<ide> array(
<ide> public function request() {
<ide> $this->_filesRegexpUpdate($pa... | 1 |
Ruby | Ruby | add a starter file for spec | 875885dda69ee2040f28187d7ca5f53e9ffa5c33 | <ide><path>Library/Homebrew/test/dev-cmd/extract_spec.rb
<add>describe "brew extract", :integration_test do
<add> it "extracts the most recent formula version without version argument" do
<add> path = Tap::TAP_DIRECTORY/"homebrew/homebrew-foo"
<add> (path/"Formula").mkpath
<add> target = Tap.from_path(path)
<... | 1 |
Javascript | Javascript | use arrow functions in addons tests | 79faa875026a275b3e5eca019b3c50e1cbe2e34e | <ide><path>test/addons/async-hello-world/test-makecallback.js
<ide> const common = require('../../common');
<ide> const assert = require('assert');
<ide> const { runMakeCallback } = require(`./build/${common.buildType}/binding`);
<ide>
<del>runMakeCallback(5, common.mustCall(function(err, val) {
<add>runMakeCallback(5... | 14 |
Ruby | Ruby | require api credentials | a9c64c319f8b8ef4aa3c0265bbe735002daa0d60 | <ide><path>Library/Homebrew/cmd/gist-logs.rb
<ide> def gistify_logs(f)
<ide> files["00.tap.out"] = { content: tap }
<ide> end
<ide>
<add> if GitHub.api_credentials_type == :none
<add> puts <<~EOS
<add> You can create a new personal access token:
<add> #{GitHub::ALL_SCOPES_URL}
<add> ... | 1 |
Text | Text | add hint on after_action filters | 2b3a3738b7a519f32f593f6e6b9c6ba89daa72ea | <ide><path>guides/source/action_controller_overview.md
<ide> Now, the `LoginsController`'s `new` and `create` actions will work as before wit
<ide>
<ide> In addition to "before" filters, you can also run filters after an action has been executed, or both before and after.
<ide>
<del>"after" filters are similar to "be... | 1 |
Javascript | Javascript | use fixtures in test-tls-multi-key.js | 5d80f0048e7a97029d5298427b1f29a1d0d301cd | <ide><path>test/parallel/test-tls-multi-key.js
<ide> const common = require('../common');
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<add>const fixtures = require('../common/fixtures');
<ide> const assert = require('assert');
<ide> const tls = require('tls');
<del>const fs = require('fs'... | 1 |
Javascript | Javascript | update imports in ember package tests | 42a9ea3fa6e3bdab36b4ba416851668999796627 | <ide><path>packages/ember/tests/application_lifecycle_test.js
<del>import Application from 'ember-application/system/application';
<del>import Route from 'ember-routing/system/route';
<del>import run from 'ember-metal/run_loop';
<del>import { Component, setTemplates, getTemplates } from 'ember-glimmer';
<del>import jQu... | 20 |
Javascript | Javascript | remove check for condition that is always true | 1e4a2bcbee3559f9d665ba54a27991af9f24ff30 | <ide><path>lib/internal/crypto/sig.js
<ide> function signOneShot(algorithm, data, key, callback) {
<ide> let keyData;
<ide> if (isKeyObject(key) || isCryptoKey(key)) {
<ide> ({ data: keyData } = preparePrivateKey(key));
<del> } else if (key != null && (isKeyObject(key.key) || isCryptoKey(key.key))) {
<add> } ... | 1 |
Python | Python | change tooslow to slow | 12d9b957237ae55886d781cf84eb53e241bfa766 | <ide><path>tests/test_modeling_tf_vit.py
<ide>
<ide> from transformers import ViTConfig
<ide> from transformers.file_utils import cached_property, is_tf_available, is_vision_available
<del>from transformers.testing_utils import require_tf, require_vision, slow, tooslow
<add>from transformers.testing_utils import requi... | 1 |
Text | Text | update handleclick method to use state function | d70b17bca7a40f1869866fac4c31b083b1542523 | <ide><path>curriculum/challenges/english/03-front-end-libraries/react/render-conditionally-from-props.md
<ide> class GameOfChance extends React.Component {
<ide> this.handleClick = this.handleClick.bind(this);
<ide> }
<ide> handleClick() {
<del> this.setState({
<del> counter: 0 // Change this line
<add>... | 1 |
Python | Python | update korean defaults for tokenizer | 30030176ee066e2de92238802d7af9d6120d689f | <ide><path>spacy/lang/ko/__init__.py
<ide> from typing import Iterator, Any, Dict
<ide>
<add>from .punctuation import TOKENIZER_INFIXES
<ide> from .stop_words import STOP_WORDS
<ide> from .tag_map import TAG_MAP
<ide> from .lex_attrs import LEX_ATTRS
<ide> class KoreanDefaults(BaseDefaults):
<ide> lex_attr_getters... | 4 |
Text | Text | reword docs on actiontext [ci skip] | e1e9373fae9a55340b78e588533281ed4dffb876 | <ide><path>guides/source/action_text_overview.md
<ide> happens after every keystroke, and avoids the need to use execCommand at all.
<ide>
<ide> Run `rails action_text:install` to add the Yarn package and copy over the necessary migration. Also, you need to set up Active Storage for embedded images and other attachmen... | 1 |
Python | Python | add basic tests for clip | 7ba189197a05ad3b6645abf7864a675f31326c9d | <ide><path>numpy/core/tests/test_multiarray.py
<ide> from numpy.testing import *
<ide> from numpy.core import *
<ide> from numpy import random
<add>import numpy as N
<ide>
<ide> class test_flags(NumpyTestCase):
<ide> def setUp(self):
<ide> def check_basic(self):
<ide> res = 250*sk[:,newaxis]
<ide> ... | 1 |
Mixed | Ruby | commit flash changes when using a redirect route | 558336ee2afad116077df07b5b963077ac5f5021 | <ide><path>actionpack/CHANGELOG.md
<add>* Commit flash changes when using a redirect route.
<add>
<add> Fixes #27992.
<add>
<add> *Andrew White*
<add>
<add>
<ide> ## Rails 5.1.0.beta1 (February 23, 2017) ##
<ide>
<ide> * Prefer `remove_method` over `undef_method` when reloading routes
<ide><path>actionpack/l... | 3 |
Java | Java | fix typo in contextlifecyclescheduledtaskregistrar | 3b8aba9ccd0ca0a437a9425471644b1d01a99795 | <ide><path>spring-context/src/main/java/org/springframework/scheduling/config/ContextLifecycleScheduledTaskRegistrar.java
<ide> import org.springframework.context.event.ContextRefreshedEvent;
<ide>
<ide> /**
<del> * {@link ScheduledTaskRegistrar} subclass that redirect the actual scheduling
<add> * {@link ScheduledTas... | 1 |
Javascript | Javascript | detect conflicts with other variables | cc8e729ff4c308ab27abbbae263b1c6765c682d8 | <ide><path>lib/optimize/ConcatenatedModule.js
<ide> function getFinalName(info, exportName, moduleToInfoMap, requestShortener) {
<ide> `known reexports: ${Array.from(info.reexportMap.keys()).join(" ")})`);
<ide> }
<ide>
<add>function getSymbolsFromScope(s, untilScope) {
<add> const allUsedNames = new Set();
<add> le... | 4 |
Text | Text | link the active record pattern to the eaa catalog | d131c9a4f6f49b8c7378fedd651d81f423dec193 | <ide><path>guides/source/active_record_basics.md
<ide> Object Relational Mapping system.
<ide>
<ide> ### The Active Record Pattern
<ide>
<del>Active Record was described by Martin Fowler in his book _Patterns of Enterprise
<del>Application Architecture_. In Active Record, objects carry both persistent data
<del>and b... | 1 |
Go | Go | dry metric definitions | 1d6e0fb10326dc7362e96523c65a559085dcad3d | <ide><path>daemon/metrics.go
<ide> import (
<ide> const metricsPluginType = "MetricsCollector"
<ide>
<ide> var (
<del> containerActions metrics.LabeledTimer
<del> networkActions metrics.LabeledTimer
<del> hostInfoFunctions metrics.LabeledTimer
<del> engineInfo metrics.Labeled... | 1 |
Python | Python | remove local used in debugging | b3f1af8364aa73242c9edc7bf2570dbce2ff5446 | <ide><path>utils/exporters/obj/convert_obj_three.py
<ide> def parse_obj(fname):
<ide> if vertex['n'] < 0:
<ide> vertex['n'] += normlen
<ide> normal_index.append(vertex['n'])
<del>
<del> d = {
<add> faces.append({
<... | 1 |
Javascript | Javascript | use smaller input file for test-zlib.js | bf2e96460c930437a0fe98220fd3a085d2007513 | <ide><path>test/parallel/test-zlib.js
<ide> assert.doesNotThrow(() => {
<ide> }, 'windowsBits set to 8 should follow legacy zlib behavior');
<ide>
<ide> {
<del> const node = fs.createReadStream(process.execPath);
<add> const node = fs.createReadStream(fixtures.path('person.jpg'));
<ide> const raw = [];
<ide> con... | 1 |
Javascript | Javascript | use arrow functions instead of bind | 707cd3f6153941d63adc731314c10a5fc90c5f14 | <ide><path>test/parallel/test-stream-push-strings.js
<ide> class MyStream extends Readable {
<ide> case 0:
<ide> return this.push(null);
<ide> case 1:
<del> return setTimeout(function() {
<add> return setTimeout(() => {
<ide> this.push('last chunk');
<del> }.bind(this)... | 2 |
PHP | PHP | fix cs and typeing issues | 5c2996d67d406da754e0e7998ebdb956650160c4 | <ide><path>src/TestSuite/Stub/ConsoleInput.php
<ide> <?php
<add>declare(strict_types=1);
<add>
<ide> /**
<ide> * CakePHP : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> public function __construct(array $replies)
<ide> /*... | 5 |
Javascript | Javascript | remove energypreservation flags | 3ac3c1ee896d5cc511d3ffee4ba15883619b3e80 | <ide><path>examples/jsm/nodes/materials/nodes/StandardNode.js
<ide> StandardNode.prototype.build = function ( builder ) {
<ide>
<ide> builder.define( this.clearCoat || this.clearCoatRoughness ? 'PHYSICAL' : 'STANDARD' );
<ide>
<del> if ( this.energyPreservation ) builder.define( 'ENERGY_PRESERVATION' );
<del>
<ide> ... | 1 |
Python | Python | patch notification service | 60d5bda4fd0381075a300dc11903c76df694bd1c | <ide><path>utils/notification_service.py
<ide> def format_for_slack(total_results, results, scheduled: bool):
<ide> results[job] = {"failed": 0, "success": 0, "time_spent": "", "failures": ""}
<ide>
<ide> for key, file_path in file_dict.items():
<del> with open(file_path.replace(... | 1 |
Java | Java | defer decision on bindingresult type until access | 6403a9f10e45db0eea40c6bd7361a5fe9ad0c04b | <ide><path>spring-context/src/main/java/org/springframework/validation/DataBinder.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not u... | 2 |
Python | Python | set version to v2.2.0.dev13 | 0df2a599b7bb3ab79e1ed89185ea15ed90f6d2ca | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0.dev12"
<add>__version__ = "2.2.0.dev13"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) in Python"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion" | 1 |
Python | Python | inspect a running worker | bda9e5f74fd50387e51cdcdb4676e38e4bd31b0c | <ide><path>celery/task/control.py
<ide> def rate_limit(task_name, rate_limit, destination=None, **kwargs):
<ide> **kwargs)
<ide>
<ide>
<add>def flatten_reply(reply):
<add> nodes = {}
<add> for item in reply:
<add> nodes.update(item)
<add> return nodes
<add>
<add>
<ad... | 1 |
Python | Python | set version to 2.0.14.dev1 | d6e9cf8b09bf186a1b53a1a391abfb6a8717fbbe | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '2.0.14'
<add>__version__ = '2.0.14.dev1'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = 'https:/... | 1 |
Javascript | Javascript | increase default timeout | 38a30a69c88321d6dc734641d8775764a9e77171 | <ide><path>common/app/toasts/redux/actions.js
<ide> export const makeToast = createAction(
<ide> // assign current value of key to new toast
<ide> // and then increment key value
<ide> key: key++,
<del> dismissAfter: timeout || 2000,
<add> dismissAfter: timeout || 6000,
<ide> position: rest.positi... | 1 |
Javascript | Javascript | remove the need for the extra watch in $watchgroup | 28540c804a1b2e4dd3328b3caca1391c696da1ca | <ide><path>src/ng/rootScope.js
<ide> function $RootScopeProvider(){
<ide> var oldValues = new Array(watchExpressions.length);
<ide> var newValues = new Array(watchExpressions.length);
<ide> var deregisterFns = [];
<del> var changeCount = 0;
<ide> var self = this;
<del> var ... | 4 |
PHP | PHP | support dark mode | bafe68fa48e16cecb54a8e9e670b878cc98e4f5e | <ide><path>src/Illuminate/Foundation/Exceptions/views/minimal.blade.php
<ide> <link rel="dns-prefetch" href="//fonts.gstatic.com">
<ide> <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<ide>
<del> <!-- Styles -->
<del> <link href="https://unpkg.com/tailwindcs... | 1 |
Javascript | Javascript | remove unused internal error constructors | 49963f4da9fba92d54536fa39786478dd96c057c | <ide><path>lib/fs.js
<ide> const fs = exports;
<ide> const { Buffer } = require('buffer');
<ide> const errors = require('internal/errors');
<ide> const {
<add> ERR_FS_WATCHER_ALREADY_STARTED,
<add> ERR_FS_WATCHER_NOT_STARTED,
<ide> ERR_INVALID_ARG_TYPE,
<ide> ERR_INVALID_CALLBACK,
<ide> ERR_OUT_OF_RANGE
<ide> F... | 4 |
Ruby | Ruby | add cdk8s to blocklist | 677714d801969aedc57ab01d9ad395ef3bbba11e | <ide><path>Library/Homebrew/utils/pypi.rb
<ide> module PyPI
<ide> AUTOMATIC_RESOURCE_UPDATE_BLOCKLIST = %w[
<ide> ansible
<ide> ansible@2.8
<add> cdk8s
<ide> cloudformation-cli
<ide> diffoscope
<ide> dxpy | 1 |
Go | Go | remove daemon/discovery as it's now unused | c741ab0efa300c98881a2dc032b55723de2657f2 | <ide><path>daemon/discovery/discovery.go
<del>package discovery // import "github.com/docker/docker/daemon/discovery"
<del>
<del>import (
<del> "errors"
<del> "fmt"
<del> "strconv"
<del> "time"
<del>
<del> "github.com/docker/docker/pkg/discovery"
<del> "github.com/sirupsen/logrus"
<del>
<del> // Register the libkv back... | 2 |
Javascript | Javascript | terminate statement in keyframetrackprototype | b39fd5605fd6cea4bf2db315e7dad06ac62b711d | <ide><path>src/animation/KeyframeTrackPrototype.js
<ide> KeyframeTrackPrototype = {
<ide>
<ide> }
<ide>
<del>}
<add>};
<ide>
<ide> export { KeyframeTrackPrototype }; | 1 |
Javascript | Javascript | fix typos and incorrect example | 1147f0e213d4b79c4878639ef0ed56afe457a860 | <ide><path>src/ng/compile.js
<ide> *
<ide> * This example show how you might use `$doCheck` to trigger changes in your component's inputs even if the
<ide> * actual identity of the component doesn't change. (Be aware that cloning and deep equality checks on large
<del> * arrays or objects can have a negative impact ... | 1 |
Java | Java | fix failing tests due to last commit | 37f9c8675804d4282bed9d2d1fb9da9761aee86a | <ide><path>spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java
<ide> public ReactiveAdapter getAdapter(Class<?> reactiveType, Object source) {
<ide> Object sourceToUse = (source instanceof Optional ? ((Optional<?>) source).orElse(null) : source);
<ide> Class<?> clazz = (sourceToUse != nu... | 1 |
Ruby | Ruby | fix a typo in databasetasks#current_config | 9dfdc752eb40cd5ec6cabfecc1904663f3387a7e | <ide><path>activerecord/lib/active_record/tasks/database_tasks.rb
<ide> def seed_loader
<ide> end
<ide>
<ide> def current_config(options = {})
<del> options.reverse_merge! env: env
<del> options[:spec] ||= "primary"
<ide> if options.has_key?(:config)
<ide> @current_config = ... | 2 |
Java | Java | extract various constants in defaultkeygenerator | 06306f91499db610fdef12bbd4ecd7790f5b9370 | <ide><path>org.springframework.context/src/main/java/org/springframework/cache/interceptor/DefaultKeyGenerator.java
<ide> import org.springframework.cache.interceptor.KeyGenerator;
<ide>
<ide> /**
<del> * Default key generator. Returns 0 if no param is given, the param itself if
<del> * only one is given or a hash cod... | 1 |
Text | Text | add link to new comunity notebook (optimization) | 0cca61925c3b3245465eac1bd00df278ebdb757f | <ide><path>notebooks/README.md
<ide> Pull Request so it can be included under the Community notebooks.
<ide> | [Fine-tune DistilBert for Multiclass Classification](https://github.com/abhimishra91/transformers-tutorials/blob/master/transformers_multiclass_classification.ipynb) | How to fine-tune DistilBert for multiclas... | 1 |
Ruby | Ruby | enhance time #since and #ago dst tests | ea8077c6427d208188f9cd11f88ebdc8f60dec28 | <ide><path>activesupport/test/core_ext/time_ext_test.rb
<ide> def test_ago
<ide> def test_daylight_savings_time_crossings_backward_start
<ide> with_env_tz 'US/Eastern' do
<ide> # dt: US: 2005 April 3rd 4:18am
<del> assert_equal Time.local(2005,4,2,3,18,0), Time.local(2005,4,3,4,18,0).ago(24.hours), 'dt... | 1 |
PHP | PHP | fix docblock in collectioninterface | 497b0e632a950a0d10c1ec038a58b707249a6ede | <ide><path>src/Collection/CollectionInterface.php
<ide> public function every(callable $c);
<ide> * ```
<ide> *
<ide> * @param callable $c a callback function
<del> * @return bool true if for all elements in this collection the provided
<del> * callback returns true, false otherwise
<add> * @... | 1 |
Python | Python | remove reshape() which has no effect | c24406fc9ff05edb2ab261a65e7e07ced9094a0d | <ide><path>examples/cifar10_resnet.py
<ide> (x_train, y_train), (x_test, y_test) = cifar10.load_data()
<ide>
<ide> # Input image dimensions.
<del>if K.image_data_format() == 'channels_first':
<del> img_rows = x_train.shape[2]
<del> img_cols = x_train.shape[3]
<del> channels = x_train.shape[1]
<del> x_train... | 1 |
Java | Java | add getcachemanager() for access to native class | 66d4e45b58b626e7fdd3f25206e06a20694a99e5 | <ide><path>org.springframework.context/src/main/java/org/springframework/cache/ehcache/EhCacheCacheManager.java
<ide> public class EhCacheCacheManager extends AbstractCacheManager {
<ide>
<ide>
<ide> /**
<del> * Set the backing EhCache {@link net.sf.ehcache.CacheManager}.
<add> * Returns the backing Ehcache {@link... | 1 |
Text | Text | add documentation for the defaultport option | f42bf397bdb16c057eb0328b4c5bd019c45b5431 | <ide><path>doc/api/http.md
<ide> changes:
<ide> * `family` {number} IP address family to use when resolving `host` or
<ide> `hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and
<ide> v6 will be used.
<del> * `port` {number} Port of remote server. **Default:** `80`.
<add> * `defaultPort`... | 1 |
PHP | PHP | fix boolean precendence problem. closes | 5889a048aa9b4f996377c5f1ce90a525c200b500 | <ide><path>src/Illuminate/Exception/ExceptionServiceProvider.php
<ide> protected function registerWhoopsHandler()
<ide> */
<ide> protected function shouldReturnJson()
<ide> {
<del> $definitely = $this->app['request']->ajax() or $this->app->runningInConsole();
<add> $definitely = ($this->app['request']->ajax() or ... | 1 |
Javascript | Javascript | update router.js (allow redirection) | 7867be4471a3111e828b35dade7c8b2d036e5a78 | <ide><path>packages/ember-routing/lib/vendor/router.js
<ide> define("router",
<ide>
<ide> var params = output.params, toSetup = output.toSetup;
<ide>
<del> setupContexts(this, toSetup);
<ide> var url = this.recognizer.generate(name, params);
<ide> this.updateURL(url);
<add>
<add> ... | 1 |
Javascript | Javascript | allow status code 0 from any protocol | 28fc80bba0107075ab371fd0a7634a38891626b2 | <ide><path>src/ng/httpBackend.js
<ide> function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDoc
<ide> }
<ide>
<ide> function completeRequest(callback, status, response, headersString) {
<del> var protocol = urlResolve(url).protocol;
<del>
<ide> // cancel timeout and subsequen... | 2 |
Text | Text | update changelog for 2.29.2 | 4fd847b7a8c7065d88ba0a64b727660190dd45d7 | <ide><path>CHANGELOG.md
<ide> Changelog
<ide> =========
<ide>
<add>### 2.29.2 [See full changelog](https://gist.github.com/ichernev/1904b564f6679d9aac1ae08ce13bc45c)
<add>
<add>* Release Apr 3 2022
<add>
<add>Address https://github.com/advisories/GHSA-8hfj-j24r-96c4
<add>
<ide> ### 2.29.1 [See full changelog](https://... | 1 |
Text | Text | add explicit deprecation and semver-major policy | e5bd880a20e9553804c5240c949feddcf7fef772 | <ide><path>COLLABORATOR_GUIDE.md
<ide>
<ide> * [Issues and Pull Requests](#issues-and-pull-requests)
<ide> * [Accepting Modifications](#accepting-modifications)
<add> - [Internal vs. Public API](#internal-vs-public-api)
<add> - [Breaking Changes](#breaking-changes)
<add> - [Deprecations](#deprecations)
<ide> - [Invol... | 1 |
Python | Python | add a missing compilation dependency to setup.py | f4a5e5f45a0f779f0d216ef99150cb2042013221 | <ide><path>numpy/core/setup.py
<ide> def generate_umath_c(ext, build_dir):
<ide> join('src', 'private', 'templ_common.h.src'),
<ide> join('src', 'umath', 'simd.inc.src'),
<ide> join(codegen_dir, 'generate_ufunc_api.py'),
<add> join('src', 'private', 'lowlevel_strided_loops... | 1 |
Mixed | Javascript | add color support | 57e8793c4393aa3fafd87f289b19078b1918c166 | <ide><path>doc/api/console.md
<ide> changes:
<ide> description: The `ignoreErrors` option was introduced.
<ide> - version: REPLACEME
<ide> pr-url: https://github.com/nodejs/node/pull/19372
<del> description: The `Console` constructor now supports an `options` argument.
<add> description: The `Console` c... | 5 |
Ruby | Ruby | add flag for ppc support | bad80d58f9bafc5ab80d7b1062712ce60a8f9eff | <ide><path>Library/Homebrew/mach.rb
<ide> def universal?
<ide> self.include? :i386 and self.include? :x86_64
<ide> end
<ide>
<add> def ppc?
<add> self.include? :ppc7400 or self.include? :ppc64
<add> end
<add>
<ide> def remove_ppc!
<ide> self.delete :ppc7400
<ide> self.delete :ppc64 | 1 |
Python | Python | fix indentation in blender exporter once more | e2cffeef012628f4ca0eaff42b9d973497f9845f | <ide><path>utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/export_threejs.py
<ide> def generate_cameras(data):
<ide> "target" : generate_vec3([0, 0, 0])
<ide> }
<ide>
<del> elif camera.id_data.type == "ORTHO":
<add> elif camera.id_data.ty... | 1 |
Text | Text | fix readme inconsistencies | 8bbcbed46aa807f52040c5bb185b6d64807fc363 | <ide><path>README.md
<ide> Here's how you create a binding between two objects:
<ide>
<ide> ```javascript
<ide> MyApp.president = Ember.Object.create({
<del> name: "Barack Obama"
<add> name: 'Barack Obama'
<ide> });
<ide>
<ide> MyApp.country = Ember.Object.create({
<ide> MyApp.country = Ember.Object.create({
<ide> ... | 1 |
Go | Go | remove deprecated pkg/locker | 7449ca078b0eed3d667a34dabd9b32c4e7ad337c | <ide><path>pkg/locker/locker.go
<del>/*
<del>Package locker provides a mechanism for creating finer-grained locking to help
<del>free up more global locks to handle other tasks.
<del>
<del>The implementation looks close to a sync.Mutex, however the user must provide a
<del>reference to use to refer to the underlying lo... | 1 |
Python | Python | fix typo in datafusion operator | eb6f1d1cf0503fa763c0d8d34a2fe16efb390b9c | <ide><path>airflow/providers/google/cloud/operators/datafusion.py
<ide> def execute(self, context: Dict):
<ide> delegate_to=self.delegate_to,
<ide> api_version=self.api_version,
<ide> )
<del> self.log.info("Restarting Data Fusion instace: %s", self.instance_name)
<add> self... | 1 |
Javascript | Javascript | use more inclusive language in animated | 3137c443f498002dcf0f6addd8fafc7a31bce218 | <ide><path>Libraries/Animated/src/NativeAnimatedHelper.js
<ide> const API = {
<ide> * In general native animated implementation should support any numeric property that doesn't need
<ide> * to be updated through the shadow view hierarchy (all non-layout properties).
<ide> */
<del>const STYLES_WHITELIST = {
<add>cons... | 1 |
Ruby | Ruby | fix rubocop warnings | df5605fa01cea58928d39bf12b27912c39c3f646 | <ide><path>Library/Homebrew/extend/fileutils.rb
<ide> def run
<ide> # > When a new file is created, it is given the group of the directory which
<ide> # contains it.
<ide> group_id = if HOMEBREW_BREW_FILE.grpowned?
<del> HOMEBREW_BREW_FILE.stat.gid
<del> else
<del> ... | 1 |
Javascript | Javascript | add more asserts to `test-internal-errors` | 15016f227b371c85dc74c0ad3d773ce9814fdfb3 | <ide><path>test/parallel/test-internal-errors.js
<ide> common.expectsError(() => {
<ide> message: /^Error for testing 2/ });
<ide> }, {
<ide> code: 'ERR_ASSERTION',
<add> type: assert.AssertionError,
<ide> message: /.+ does not match \S/
<ide> });
<ide>
<ide> common.expectsError(
<ide> () => errors.messa... | 1 |
Python | Python | update description for executor-bound dependencies | b0b69f3ea7186e76a04b733022b437b57a087a2e | <ide><path>setup.py
<ide> def replace_extra_requirement_with_provider_packages(extra: str, providers: List
<ide> In the constraint mechanism we save both - provider versions and it's dependencies
<ide> version, which means that installation using constraints is repeatable.
<ide>
<del> For K8s, Celery which ... | 1 |
Javascript | Javascript | remove invalid usage of run.later | 177733b42d7aef11a7b63f684d3194ddeb6e1447 | <ide><path>packages/ember-htmlbars/tests/integration/will-destroy-element-hook-test.js
<ide> QUnit.module('ember-htmlbars: destroy-element-hook tests', {
<ide> });
<ide>
<ide> QUnit.test('willDestroyElement is only called once when a component leaves scope', function(assert) {
<del> var done = assert.async();
<ide> ... | 1 |
Mixed | Text | remove bundled builds | dd8d267956686cd2237134157e2e1b7bb8b2c244 | <ide><path>docs/developers/README.md
<ide> Latest documentation and samples, including unreleased features, are available a
<ide>
<ide> Latest builds are available for testing at:
<ide>
<add> - https://www.chartjs.org/dist/master/Chart.js
<ide> - https://www.chartjs.org/dist/master/Chart.min.js
<del> - https://www.c... | 4 |
PHP | PHP | implement assertresponsexx methods | 7038e6acda4f80e917ffb907212a5cc6c2ffdc01 | <ide><path>src/TestSuite/IntegrationTestCase.php
<ide> protected function _buildRequest($url, $method, $data) {
<ide> return new Request($props);
<ide> }
<ide>
<add>/**
<add> * Assert that the response status code is in the 2xx range.
<add> *
<add> * @return void
<add> */
<add> public function assertResponseOk() {
... | 2 |
Javascript | Javascript | remove excess calls to removesocket | 6e11e220814e469cbbbe91b895362f6f11311c08 | <ide><path>lib/_http_agent.js
<ide> function Agent(options) {
<ide> count += self.sockets[name].length;
<ide>
<ide> if (count > self.maxSockets || freeLen >= self.maxFreeSockets) {
<del> self.removeSocket(socket, options);
<ide> socket.destroy();
<ide> } else {
<ide> ... | 2 |
Python | Python | make enhancements to versionview | aedb667d50e512655a590ec2af03504947dd9acb | <ide><path>airflow/www/views.py
<ide> def version(self):
<ide> # Get the Git repo and git hash
<ide> git_version = None
<ide> try:
<del> with open("airflow/git_version") as f:
<add> with open(os.path.join(*[settings.AIRFLOW_HOME, 'airflow', 'git_version'])) as f:
<ide> ... | 2 |
Text | Text | add @raisinten to collaborators | b58fe52692659c0bc25ddbe6afa7f4ae2c7f14a8 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Andrey Pechkurov** <apechkurov@gmail.com> (he/him)
<ide> * [Qard](https://github.com/Qard) -
<ide> **Stephen Belanger** <admin@stephenbelanger.com> (he/him)
<add>* [RaisinTen](https://github.com/RaisinTen) -
... | 1 |
Python | Python | check the type of the args of layer.__init__ | c3370abc94e0d2699a3f40d7330920292b259071 | <ide><path>keras/engine/base_layer.py
<ide> def __init__(self,
<ide> (isinstance(trainable, (tf.Tensor, tf.Variable)) and
<ide> trainable.dtype is tf.bool)):
<ide> raise TypeError(
<del> f'Expected trainable argument to be a boolean, but got: {trainable}')
<add> 'Expecte... | 2 |
Text | Text | add v1.3.4 changes | 9474ec120acc425103516f1018e63ae39d7d629b | <ide><path>CHANGELOG.md
<add><a name="1.3.4"></a>
<add># 1.3.4 highfalutin-petroglyph (2014-11-24)
<add>
<add>## Bug Fixes
<add>
<add>- **$browser:** allow chaining url() calls in setter mode
<add> ([764fa869](https://github.com/angular/angular.js/commit/764fa869dd8809d494924c23f30ddaa4cac84249),
<add> [#10157](http... | 1 |
PHP | PHP | fix code style | b68826962fe28117f0efa9be001eee4d8fe7ad2e | <ide><path>src/Illuminate/Contracts/Foundation/ExceptionRenderer.php
<ide> interface ExceptionRenderer
<ide> /**
<ide> * Renders the given exception as HTML.
<ide> *
<del> * @param \Throwable $throwable
<del> *
<add> * @param \Throwable $throwable
<ide> * @return string
<ide> */
<i... | 1 |
Python | Python | fix network deletion | 9cf6c5a53b27878ef7ae3354e5385f7c47cd870e | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def ex_create_network(self, name, admin_state_up=True, shared=False):
<ide>
<ide>
<ide> @_neutron_endpoint
<del> def ex_delete_network(self, network_id):
<add> def ex_delete_network(self, network):
<ide> """
<ide> Delete neutron network
... | 1 |
Python | Python | fix job deletion | fd682fd70a97a1f937786a1a136f0fa929c8fb80 | <ide><path>airflow/providers/microsoft/azure/operators/azure_batch.py
<ide> def clean_up(self, pool_id: Optional[str] = None, job_id: Optional[str] = None)
<ide> """
<ide> if job_id:
<ide> self.log.info("Deleting job: %s", job_id)
<del> self.hook.connection.job.delete(pool_id)
<ad... | 2 |
Python | Python | fix indentation for unconditional generation | 07154dadb4fc5ce47e3d82dd33debb8e588039bd | <ide><path>examples/run_gpt2.py
<ide> def run_model():
<ide> print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
<ide> print(text)
<ide> print("=" * 80)
<del> if args.unconditional:
<del> generated = 0
<del> for _ in range(args.nsamples // ... | 1 |
Python | Python | add support for reflectivity in maya exporter | 8d5fca0a266b8440062de3823a9624dacc7d9a25 | <ide><path>utils/exporters/maya/plug-ins/threeJsFileTranslator.py
<ide> def _exportMaterial(self, mat):
<ide> "vertexColors": False
<ide> }
<ide> if isinstance(mat, nodetypes.Phong):
<add> result["reflectivity"] = mat.getReflectivity()
<ide> result["colorSpecular"] = m... | 1 |
Java | Java | add a reference to kt-18833 in jdk 9 ignored tests | f57e5584af36abe8211df1b89071a0cee68466a3 | <ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/result/view/script/KotlinScriptTemplateTests.java
<ide> *
<ide> * @author Sebastien Deleuze
<ide> */
<del>@Ignore // for JDK 9 compatibility
<add>@Ignore // for JDK 9 compatibility, see KT-18833
<ide> public class KotlinScriptTemplateTests {
... | 2 |
Text | Text | fix jsx in readme | a3495b364de9e199e468b8f0e231beefeb9e55e0 | <ide><path>readme.md
<ide> export default () => (
<ide> // pages/index.js
<ide> import Link from 'next/link'
<ide> export default () => (
<del> <div>Click <Link href='/about'><img src="/static/image.png"></Link></div>
<add> <div>Click <Link href='/about'><img src="/static/image.png" /></Link></div>
<ide> )
<ide> ```
... | 1 |
Mixed | Go | fix flag descriptions for content-trust | bb3c0b246617aecb8ecf9120f07efcf45b94ae09 | <ide><path>cli/command/container/create.go
<ide> func NewCreateCommand(dockerCli *command.DockerCli) *cobra.Command {
<ide> // with hostname
<ide> flags.Bool("help", false, "Print usage")
<ide>
<del> command.AddTrustedFlags(flags, true)
<add> command.AddTrustVerificationFlags(flags)
<ide> copts = addFlags(flags)
<i... | 10 |
Java | Java | add consumer methods to rsocketrequester | 58e9266e99c2931b97849feb28a1419636fe6457 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequester.java
<ide>
<ide> import java.util.Collections;
<ide> import java.util.Map;
<add>import java.util.function.Consumer;
<ide>
<ide> import io.rsocket.Payload;
<ide> import io.rsocket.RSocket;
<ide> public RequestSpec m... | 3 |
PHP | PHP | add new integration test to soft deletes | 491fdb07e78325b50f805df55c6c428718117a71 | <ide><path>tests/Database/DatabaseEloquentSoftDeletesIntegrationTest.php
<ide> use Carbon\Carbon;
<ide> use Illuminate\Database\Connection;
<ide> use Illuminate\Database\Eloquent\SoftDeletes;
<add>use Illuminate\Database\Capsule\Manager as DB;
<ide> use Illuminate\Database\Eloquent\Model as Eloquent;
<ide>
<ide> class... | 1 |
Ruby | Ruby | remove jenkins git debugging | 2b078be186dec5d56ef11e1fcca4927506756704 | <ide><path>Library/Homebrew/dev-cmd/test-bot.rb
<ide> def safe_formula_canonical_name(formula_name)
<ide> end
<ide>
<ide> def git(*args)
<del> puts "#{@repository}: git #{args.join " "}" if ENV["JENKINS_HOME"]
<ide> @repository.cd { Utils.popen_read("git", *args) }
<ide> end
<ide> | 1 |
Text | Text | use correct identifier for callback argument | a02de1bc3520465fdcfd2495b36a9053daeddd93 | <ide><path>doc/api/fs.md
<ide> Using [`fs.watch()`][] is more efficient than `fs.watchFile` and
<ide> `fs.unwatchFile` when possible.
<ide>
<ide> When a file being watched by `fs.watchFile()` disappears and reappears,
<del>then the `previousStat` reported in the second callback event (the file's
<del>reappearance) wil... | 1 |
Text | Text | add 8.4.0 link to changelog.md | 65c9537adc867ea65c20df6ef599e7f2ae7f2e49 | <ide><path>CHANGELOG.md
<ide> release.
<ide> </tr>
<ide> <tr>
<ide> <td valign="top">
<del><b><a href="doc/changelogs/CHANGELOG_V8.md#8.3.0">8.3.0</a></b><br/>
<add><b><a href="doc/changelogs/CHANGELOG_V8.md#8.4.0">8.4.0</a></b><br/>
<add><a href="doc/changelogs/CHANGELOG_V8.md#8.3.0">8.3.0</a><br/>
<ide> <a href="... | 1 |
Ruby | Ruby | remove unused cache | 08cc49b919cfa43a19f55b761dba56bc3673b6b7 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def #{runner_method}(key = nil, &blk)
<ide> #
<ide> def __run_keyed_callback(key, kind, object, &blk) #:nodoc:
<ide> name = "_run__#{self.name.hash.abs}__#{kind}__#{key.hash.abs}__callbacks"
<del> unless respond_to?(name)
<del> ... | 1 |
Ruby | Ruby | allow optional override" | 0ea6245094673beb6022c3f1482a461a3b59bb30 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def install_symlink_p(src, new_basename)
<ide> alias old_write write
<ide>
<ide> # We assume this pathname object is a file, obviously
<del> def write(content, overwrite = false, *open_args)
<del> raise "Will not overwrite #{self}" if exist? && !overwrite
<a... | 1 |
Javascript | Javascript | use array index instead of array.shift() | 4a14a798845e42e946f41da89a4bdc6ceab4a08d | <ide><path>src/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide> return;
<ide>
<ide> var self = this;
<add> var textDivIndex = 0;
<ide> var renderTextLayer = function canvasRenderTextLayer() {
<del> var finished = true;
<add> var finished = false;
<id... | 1 |
Python | Python | add topological sort | 455509acee831cb4a8c3bf9d495fd0e296825c68 | <ide><path>blockchain/chinese_remainder_theorem.py
<ide> def chinese_remainder_theorem(n1, r1, n2, r2):
<ide> (x, y) = extended_euclid(n1, n2)
<ide> m = n1 * n2
<ide> n = r2 * x * n1 + r1 * y * n2
<del> return ((n % m + m) % m)
<add> return (n % m + m) % m
<ide>
<ide>
<ide> # ----------SAME SOLUTION... | 8 |
Text | Text | fix small typo | b2bb637359045d2333c3c33149845ca76067a2ae | <ide><path>docs/introduction/PriorArt.md
<ide> Note that, even if your immutable library supports cursors, you shouldn’t use
<ide>
<ide> ### Baobab
<ide>
<del>[Baobab](https://github.com/Yomguithereal/baobab) is another popular library implementing immutable API for updating plain JavaScript objects. While you can us... | 1 |
Javascript | Javascript | fix rebase conflicts and get tests passing | 2dd00930d3e7b64346a18f7b11939bda72646578 | <ide><path>packages/ember-htmlbars/tests/attr_nodes/style_test.js
<ide> import EmberView from "ember-views/views/view";
<ide> import compile from "ember-template-compiler/system/compile";
<ide> import { SafeString } from "ember-htmlbars/utils/string";
<ide> import { runAppend, runDestroy } from "ember-runtime/tests/uti... | 12 |
Python | Python | unify imports in __init__.py | d3653bc6be7a655c2322b2d95f6209626e438171 | <ide><path>numpy/__init__.py
<ide> import sys
<ide> import warnings
<ide>
<del>from ._globals import ModuleDeprecationWarning, VisibleDeprecationWarning
<del>from ._globals import _NoValue
<add>from ._globals import (
<add> ModuleDeprecationWarning, VisibleDeprecationWarning, _NoValue
<add>)
<ide>
<ide> # We first... | 1 |
Go | Go | fix typo in libcontainerd/client.go | 39a24019e3a7b2f423090dff4793698001620737 | <ide><path>libcontainerd/client.go
<ide> type clientCommon struct {
<ide> backend Backend
<ide> containers map[string]*container
<ide> locker *locker.Locker
<del> mapMutex sync.RWMutex // protects read/write oprations from containers map
<add> mapMutex sync.RWMutex // protects read/write operations from c... | 1 |
PHP | PHP | add assertqueuedtimes method | b8ba38ff9a432ca8be42e2b7581bddb3456300da | <ide><path>src/Illuminate/Support/Testing/Fakes/MailFake.php
<ide> public function assertNothingSent()
<ide> * Assert if a mailable was queued based on a truth-test callback.
<ide> *
<ide> * @param string $mailable
<del> * @param callable|null $callback
<add> * @param callable|int|null $cal... | 1 |
Javascript | Javascript | add direct memory cache | 4ed5622b53e541757e128d8288da86381a9c95b6 | <ide><path>lib/cache/FileCachePlugin.js
<ide> class FileCachePlugin {
<ide> */
<ide> constructor(options) {
<ide> this.options = options;
<add> this.directMemoryCache = new Map();
<ide> }
<ide>
<ide> static purgeMemoryCache() {
<ide> class FileCachePlugin {
<ide> };
<ide> const relativeFilename = toHas... | 1 |
Python | Python | fix typos in variable and comments | a3266ba2b9c0d6d8b669178f3ce8752bef92924f | <ide><path>airflow/cli/commands/task_command.py
<ide> from airflow.utils.session import create_session, provide_session
<ide>
<ide>
<del>def _get_dag_run(dag, exec_date_or_run_id, create_if_necssary, session):
<add>def _get_dag_run(dag, exec_date_or_run_id, create_if_necessary, session):
<ide> dag_run = dag.get_d... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.