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 |
|---|---|---|---|---|---|
Text | Text | remove broken link | 72a08c11c67a3f664873480f6b1e8526cc46af3b | <ide><path>docs/NativeComponentsIOS.md
<ide> RCT_EXPORT_MODULE()
<ide> }
<ide> ```
<ide>
<del>You can see we're setting the manager as the delegate for every view that it vends, then in the delegate method `-mapView:regionDidChangeAnimated:` the region is combined with the `reactTag` target to make an event that is di... | 1 |
Go | Go | enable a unit test on windows | 9484c3bd81fa8aab46b7268c5c3bfeb8e14aa369 | <ide><path>pkg/fileutils/fileutils_test.go
<ide> import (
<ide> "runtime"
<ide> "strings"
<ide> "testing"
<add>
<add> "fmt"
<add> "github.com/stretchr/testify/assert"
<add> "github.com/stretchr/testify/require"
<ide> )
<ide>
<ide> // CopyFile with invalid src
<ide> func TestMatchesWithMalformedPatterns(t *testing.T... | 1 |
Go | Go | remove doc that doesn't apply to journald | f1412f29423def166b0d77e162eec867afc56a8c | <ide><path>daemon/logger/journald/journald.go
<ide> func init() {
<ide> }
<ide>
<ide> // New creates a journald logger using the configuration passed in on
<del>// the context. Supported context configuration variables are
<del>// syslog-address, syslog-facility, & syslog-tag.
<add>// the context.
<ide> func New(ctx l... | 1 |
Javascript | Javascript | fix typo in test description | cb9447b2c3579e1f00b7d9318ca8ba7f42ff7beb | <ide><path>test/unit/api.js
<ide> test('should be able to initialize player twice on the same tag using string ref
<ide> player.dispose();
<ide> });
<ide>
<del>test('videojs.players should be availble after minification', function() {
<add>test('videojs.players should be available after minification', function() {
<... | 1 |
Javascript | Javascript | use transclusion function passed in to link | 08793a690abe3eda40deae10f8a0a117779bdbd9 | <ide><path>src/ng/directive/ngTransclude.js
<ide> *
<ide> */
<ide> var ngTranscludeDirective = ngDirective({
<del> controller: ['$element', '$transclude', function($element, $transclude) {
<add> link: function($scope, $element, $attrs, controller, $transclude) {
<ide> if (!$transclude) {
<ide> throw minEr... | 1 |
Python | Python | make __all__ immutable. | d59518f5fb68957b2d179aa572af6f58cd02de40 | <ide><path>celery/__init__.py
<ide>
<ide> # -eof meta-
<ide>
<del>__all__ = [
<add>__all__ = (
<ide> 'Celery', 'bugreport', 'shared_task', 'task',
<ide> 'current_app', 'current_task', 'maybe_signature',
<ide> 'chain', 'chord', 'chunks', 'group', 'signature',
<ide> 'xmap', 'xstarmap', 'uuid',
<del>]
<a... | 135 |
Java | Java | update todos in annotatedelementutils[tests] | 91e46cf2ad55fc8ec3bda087d5fe9c02aa1ec45b | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java
<ide> private static <T> T processWithFindSemantics(AnnotatedElement element, String a
<ide> }
<ide>
<ide> try {
<del> // TODO [SPR-12738] Resolve equivalent parameterized
<del> // method (i.... | 2 |
Python | Python | remove trailing whitespace from all python files | 28e608a2c2340ec33b8f5f49d36626eb12811866 | <ide><path>examples/benchmarks.py
<ide> from transformers import AutoModel
<ide>
<ide>
<del>input_text = """Bent over their instruments, three hundred Fertilizers were plunged, as
<del>the Director of Hatcheries and Conditioning entered the room, in the
<del>
<del>
<del>
<del>scarcely breathing silence, the abs... | 27 |
Javascript | Javascript | expose tapable plugins on export | 6b679341b12f996e0db0b4edef58741099074559 | <ide><path>lib/index.js
<ide> exportPlugins(module.exports, {
<ide> ExternalsPlugin: () => require("./ExternalsPlugin"),
<ide> HotModuleReplacementPlugin: () => require("./HotModuleReplacementPlugin"),
<ide> IgnorePlugin: () => require("./IgnorePlugin"),
<add> JavascriptModulesPlugin: () => require("./JavascriptModu... | 1 |
Text | Text | add v4.5.0 to changelog | fa7db213b2f870bce4b153c1167746bff1f6a209 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v4.4.2 (June 13, 2022)
<add>### v4.5.0 (June 13, 2022)
<ide>
<del>- [#20114](https://github.com/emberjs/ember.js/pull/20114) [BUGFIX] Fix generated import paths for test setup functions in addons
<add>- [#20052](https://github.com/emberjs/ember.js/pull/20... | 1 |
Ruby | Ruby | simplify conversion to binary | a4583da838a7ebf069bc4d07b27007c0a7b258e9 | <ide><path>actionview/lib/action_view/template/handlers/erb.rb
<ide> def call(template, source)
<ide> # wrong, we can still find an encoding tag
<ide> # (<%# encoding %>) inside the String using a regular
<ide> # expression
<del> template_source = source.dup.force_encoding(Encodin... | 1 |
Javascript | Javascript | use html entity to avoid doc breakage in parsing | 6e3489e3d29b0bcc5841d6613c2c58f5fb2c53a2 | <ide><path>packages/ember-handlebars/lib/helpers/template.js
<ide> require('ember-handlebars/ext');
<ide> </script>
<ide>
<ide> This helper looks for templates in the global Ember.TEMPLATES hash. If you
<del> add <script> tags to your page with the `data-template-name` attribute set,
<add> add <script>... | 1 |
Javascript | Javascript | fix typo in storagefolder.clear | fd5f8af292abac8352360f08c6b0ff4140b72445 | <ide><path>src/storage-folder.js
<ide> class StorageFolder {
<ide> if (!this.path) return
<ide> fs.remove(this.path, error => {
<ide> if (error) console.warn(`Error deleting ${this.path}`, error.stack, error)
<del> reolve()
<add> resolve()
<ide> })
<ide> })
<ide> } | 1 |
Ruby | Ruby | match example with the sentance. [ci-skip] | f8ac66ae6d2f03f297177bcabfd1bd314db49103 | <ide><path>actionpack/lib/action_dispatch/http/parameters.rb
<ide> def path_parameters=(parameters) # :nodoc:
<ide> # Returns a hash with the \parameters used to form the \path of the request.
<ide> # Returned hash keys are symbols:
<ide> #
<del> # {'action' => 'my_action', 'controller' => 'my_... | 1 |
Javascript | Javascript | fix typo in ember.string#classify doc | f3d0fd3e0d6a3dc75d3e5e14119f295d7ced488a | <ide><path>packages/ember-runtime/lib/system/string.js
<ide> Ember.String = {
<ide> },
<ide>
<ide> /**
<del> Returns the lowerCaseCamel form of a string.
<add> Returns the lowerCamelCase form of a string.
<ide>
<ide> ```javascript
<ide> 'innerHTML'.camelize(); // 'innerHTML' | 1 |
Text | Text | add history section to `fetch`-related globals | 396e8e3001f14f1ad62b2ce0aea6ead7adc55719 | <ide><path>doc/api/globals.md
<ide> This variable may appear to be global but is not. See [`exports`][].
<ide> added:
<ide> - v17.5.0
<ide> - v16.15.0
<add>changes:
<add> - version: v18.0.0
<add> pr-url: https://github.com/nodejs/node/pull/41811
<add> description: No longer behind `--experimental-global-fetc... | 1 |
PHP | PHP | apply inflections to core commands | a53cfefdead181f6b760ef862193c0625175adb9 | <add><path>src/Command/CacheClearallCommand.php
<del><path>src/Command/CacheClearAllCommand.php
<ide> use Cake\Console\ConsoleOptionParser;
<ide>
<ide> /**
<del> * CacheClearAll command.
<add> * CacheClearall command.
<ide> */
<del>class CacheClearAllCommand extends Command
<add>class CacheClearallCommand extends Com... | 2 |
Javascript | Javascript | fix linter errors | d124248db0a4d500a4ce6e52f86550a18af45580 | <ide><path>src/config-schema.js
<ide> const configSchema = {
<ide> customFileTypes: {
<ide> type: 'object',
<ide> default: {},
<del> description: "Associates scope names (e.g. `\"source.js\"`) with arrays of file extensions and file names (e.g. `[\"Somefile\", \".js2\"]`)",
<add> des... | 1 |
Text | Text | add some missing events to the api docs | 4bb3c253e83454e00381723f17ca69dd4e9b3d7a | <ide><path>docs/reference/api/docker_remote_api_v1.20.md
<ide> polling (using since).
<ide>
<ide> Docker containers report the following events:
<ide>
<del> create, destroy, die, exec_create, exec_start, export, kill, oom, pause, restart, start, stop, unpause
<add> attach, commit, copy, create, destroy, die, ex... | 1 |
Javascript | Javascript | remove unused variables from raycaster | 367fb776a190e9957e82068fb65f5cd335abc1bf | <ide><path>src/core/Raycaster.js
<ide>
<ide> };
<ide>
<del> var v0 = new THREE.Vector3(), v1 = new THREE.Vector3(), v2 = new THREE.Vector3();
<del>
<ide> // http://www.blackpawn.com/texts/pointinpoly/default.html
<ide>
<ide> var intersectObject = function ( object, raycaster, intersects ) { | 1 |
Java | Java | fix race condition with oncompletion/onerror | dd22b8fd3971c7b0cdc1976d45c81ba12d5da604 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerReadPublisher.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License"... | 3 |
Python | Python | add xfailing test [ci skip] | 74a19aeb1cc384e8ccdff8b664c9df0550be2f92 | <ide><path>spacy/tests/vocab_vectors/test_vectors.py
<ide> def test_vectors_most_similar(most_similar_vectors_data):
<ide> assert all(row[0] == i for i, row in enumerate(best_rows))
<ide>
<ide>
<add>@pytest.mark.xfail
<add>def test_vectors_most_similar_identical():
<add> """Test that most similar identical vec... | 1 |
Text | Text | fix benchmark link typo in turbopack example | 06ded795bea91346a6c88dbe04b3eb954a5ff2f4 | <ide><path>examples/with-turbopack/README.md
<ide> # Next.js + Turbopack App Directory Playground
<ide>
<del>[Turbopack](https://turbo.build/pack) is a new incremental bundler optimized for JavaScript and TypeScript, written in Rust by the creators of Webpack and Next.js at [Vercel](https://vercel.com). On large appli... | 1 |
Go | Go | remove duplicate 'warning' | 7f118519eb007b2423fff428aceddabd6c1c301d | <ide><path>api.go
<ide> func postContainersCreate(srv *Server, version float64, w http.ResponseWriter, r
<ide> }
<ide>
<ide> if len(config.Dns) == 0 && len(srv.runtime.Dns) == 0 && utils.CheckLocalDns() {
<del> out.Warnings = append(out.Warnings, fmt.Sprintf("WARNING: Docker detected local DNS server on resolv.conf... | 1 |
Javascript | Javascript | combine sequence of .push() into one statement | 7496e8e5b7113f8362f88d52d7731ed84f71e881 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> var childBoundTranscludeFn = boundTranscludeFn;
<ide> if (scope.$$destroyed) return;
<ide> if (linkQueue) {
<del> linkQueue.push(scope);
<del> linkQueue.push(node);
<del> ... | 3 |
Text | Text | fix transformer.initialize example | ffaa0d6b9ba7656de0dcbeaaa6fdc05e0b07b1b0 | <ide><path>website/docs/api/transformer.md
<ide> by [`Language.initialize`](/api/language#initialize).
<ide> >
<ide> > ```python
<ide> > trf = nlp.add_pipe("transformer")
<del>> trf.initialize(lambda: [], nlp=nlp)
<add>> trf.initialize(lambda: iter([]), nlp=nlp)
<ide> > ```
<ide>
<ide> | Name | Description ... | 1 |
Javascript | Javascript | use feather icons for navigation | 5e6e5e92cabdecd0dc2d90c16d7ec4cb28e054a4 | <ide><path>Libraries/YellowBox/UI/YellowBoxImageSource.js
<ide> const YellowBoxImageSource = {
<ide> : scale > 1
<ide> ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAf0lEQVRYhe2UvQ2AIBQGL3EBR3AESkv3bxxFN8DmWUgwvkI+En1X0cBd+IMg+DuDyDMCs413kfMiX4EMbD3l8oCaPIU85B4mYLEF5XJscrYFPRGvb/... | 2 |
PHP | PHP | fix warning when _ids is an empty value | 4bc05ff96fab36bb5c8f337f82143d02311f0c48 | <ide><path>src/ORM/Marshaller.php
<ide> public function many(array $data, array $include = []) {
<ide> * @return array An array of built entities.
<ide> */
<ide> protected function _belongsToMany(Association $assoc, array $data, $include = []) {
<del> if (isset($data['_ids']) && is_array($data['_ids'])) {
<add> $h... | 2 |
Go | Go | enable more integration tests | 66a37b460c839ee7a9aca118840b441764292c97 | <ide><path>integration/build/build_test.go
<ide> import (
<ide> )
<ide>
<ide> func TestBuildWithRemoveAndForceRemove(t *testing.T) {
<del> skip.If(t, testEnv.DaemonInfo.OSType == "windows", "FIXME")
<ide> defer setupTest(t)()
<ide>
<ide> cases := []struct {
<ide> func TestBuildMultiStageCopy(t *testing.T) {
<ide>
... | 9 |
Javascript | Javascript | add warning that cameraroll has been moved to rnc | a2f11cb01fc01031e48bc4d8a1ff29edf32cdd9f | <ide><path>Libraries/react-native/react-native-implementation.js
<ide> module.exports = {
<ide> return require('BackHandler');
<ide> },
<ide> get CameraRoll() {
<add> warnOnce(
<add> 'cameraroll-moved',
<add> 'CameraRoll has been extracted from react-native core and will be removed in a future rele... | 1 |
Javascript | Javascript | use correct fontweight value in thememanager spec | ff429230f1a4b6869522e9ec993e1a846d74cd13 | <ide><path>spec/theme-manager-spec.js
<ide> h2 {
<ide> it('returns a disposable allowing styles applied by the given path to be removed', function () {
<ide> const cssPath = require.resolve('./fixtures/css.css')
<ide>
<del> expect(getComputedStyle(document.body).fontWeight).not.toBe('bold')
<add> e... | 1 |
Javascript | Javascript | optimize tessellatemodifier.js slightly | c222310930338f978d958857db0a99bd437d18c3 | <ide><path>examples/js/modifiers/TessellateModifier.js
<ide> THREE.TessellateModifier.prototype.modify = function ( geometry ) {
<ide>
<ide> var faces = [];
<ide> var faceVertexUvs = [];
<del> var maxEdgeLength = this.maxEdgeLength;
<add> var maxEdgeLengthSquared = this.maxEdgeLength * this.maxEdgeLength;
<ide>
<id... | 1 |
Python | Python | improve code quality of externaltasksensor | b57b9321133a28126e17d17885c80dc04a2e121e | <ide><path>airflow/sensors/external_task_sensor.py
<ide>
<ide> import datetime
<ide> import os
<del>from typing import FrozenSet, Optional, Union
<add>from typing import Any, Callable, FrozenSet, List, Optional, Union
<ide>
<ide> from sqlalchemy import func
<ide>
<ide> def operator_extra_links(self):
<ide> def _... | 1 |
Javascript | Javascript | buffer partial reads before doing expect match | afe3c1cdea8cd88e04a09961567216606f5f0117 | <ide><path>test/simple/test-repl.js
<ide> function tcp_test() {
<ide> });
<ide>
<ide> server_tcp.addListener('listening', function () {
<add> var read_buffer = "";
<add>
<ide> client_tcp = net.createConnection(PORT);
<ide>
<ide> client_tcp.addListener('connect', function () {
<ide> function tcp_tes... | 1 |
Text | Text | fix line length [ci skip] | 98a5169c2ee6355a6e13df33b6219b04201d1c96 | <ide><path>guides/source/migrations.md
<ide> this, then you should set the schema format to `:sql`.
<ide> Instead of using Active Record's schema dumper, the database's structure will
<ide> be dumped using a tool specific to the database (via the `db:structure:dump`
<ide> Rake task) into `db/structure.sql`. For example... | 1 |
Python | Python | remove obsolete function | c6b4f63c7c96a8c1dd52bb3afc1aade8fbfdfc3a | <ide><path>spacy/ml/spacy_vectors.py
<del>import numpy
<del>from thinc.api import Model, Unserializable
<del>
<del>
<del>def SpacyVectors(vectors) -> Model:
<del> attrs = {"vectors": Unserializable(vectors)}
<del> model = Model("spacy_vectors", forward, attrs=attrs)
<del> return model
<del>
<del>
<del>def forw... | 1 |
Ruby | Ruby | make test for “cask already installed” less strict | e4da2dfb9f49349251b51e80be57d2a70c979321 | <ide><path>Library/Homebrew/cask/test/cask/cli/install_test.rb
<ide>
<ide> TestHelper.must_output(self, lambda {
<ide> Hbc::CLI::Install.run("local-transmission", "")
<del> }, %r{Warning: A Cask for local-transmission is already installed. Add the "--force" option to force re-install.})
<add> }, %r{War... | 1 |
Javascript | Javascript | fix linting errors | e23af02606ef6ed6e575c0344ea2027e97a11ce2 | <ide><path>src/block-decorations-presenter.js
<ide> class BlockDecorationsPresenter {
<ide> this.emitter = new Emitter()
<ide> this.firstUpdate = true
<ide> this.lineTopIndex = lineTopIndex
<del> this.blocksByDecoration = new Map
<del> this.decorationsByBlock = new Map
<del> this.observedDecoration... | 2 |
Javascript | Javascript | remove outdated comment about gcc | dc232e6774e60029be7995d1b4e3e37f8ff843ef | <ide><path>scripts/rollup/build.js
<ide> function getPlugins(
<ide> // Don't let it create global variables in the browser.
<ide> // https://github.com/facebook/react/issues/10909
<ide> assume_function_wrapper: !isUMDBundle,
<del> // Works because `google-closure-compiler-js` is f... | 1 |
Ruby | Ruby | simplify the delete all w/ dependency method | e0e586094f968b1f8fa410aa84d105bc8e44e537 | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> def delete(*records)
<ide> end
<ide>
<ide> def delete_all_with_dependency(dependent)
<del> if (loaded? || dependent == :destroy) && dependent != :delete_all
<del> delete_or_destroy(load_target, dependent)... | 1 |
PHP | PHP | add initial implementation of brace placeholders | d0e8f2d40ee4d934b5e784eaa52334cea0ed83d9 | <ide><path>src/Routing/Route/Route.php
<ide> class Route
<ide> */
<ide> protected $middleware = [];
<ide>
<add> /**
<add> * Track whether or not brace keys `{var}` were used.
<add> *
<add> * @var bool
<add> */
<add> protected $braceKeys = false;
<add>
<ide> /**
<ide> * Valid HTT... | 2 |
Python | Python | simplify tests for cli connections commands | e81527c5d39840b37180060a0865467c37d698ee | <ide><path>airflow/cli/commands/connection_command.py
<ide> def connections_export(args):
<ide> connections = session.query(Connection).order_by(Connection.conn_id).all()
<ide> msg = _format_connections(connections, filetype)
<ide> args.file.write(msg)
<add> args.file.close()
<ide>
<ide>... | 2 |
Text | Text | update video challenge | 756f33775e63117dd911877645d0fb5e83100eeb | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/testing-objects-for-properties.english.md
<ide> id: 567af2437cbaa8c51670a16c
<ide> title: Testing Objects for Properties
<ide> challengeType: 1
<del>videoUrl: 'https://scrimba.com/c/cm8Q7Ua'
<add>videoUrl: 'https://sc... | 2 |
Javascript | Javascript | add json as default extension | 53c16c81471ede22eeeaac5b6357132eb2117846 | <ide><path>lib/ModuleParseError.js
<ide> function ModuleParseError(module, source, err) {
<ide> Error.captureStackTrace(this, ModuleParseError);
<ide> this.name = "ModuleParseError";
<ide> this.message = "Module parse failed: " + module.request + " " + err.message;
<add> this.message += "\nYou may need an appropriat... | 2 |
Python | Python | use _umath_linalg for slogdet() | 87dc3f6b66465d80d8fe36aeb40a33546f979e67 | <ide><path>numpy/linalg/linalg.py
<ide> def slogdet(a):
<ide>
<ide> Parameters
<ide> ----------
<del> a : array_like
<add> a : (..., M, M) array_like
<ide> Input array, has to be a square 2-D array.
<ide>
<ide> Returns
<ide> -------
<del> sign : float or complex
<add> sign : (...) ... | 1 |
PHP | PHP | fix incorrect regex | 8f387afacf2fbf2d20e6a7a7ef1cb1298d06992a | <ide><path>src/Validation/Validation.php
<ide> public static function cc($check, $type = 'fast', $deep = false, $regex = null)
<ide> }
<ide> $cards = [
<ide> 'all' => [
<del> 'amex' => '/^3[4|7]\\d{13}$/',
<add> 'amex' => '/^3[47]\\d{13}$/',
<ide> ... | 1 |
Ruby | Ruby | add version detection support for php url | 9d36096d68d5b362f223b993ac7662588450d942 | <ide><path>Library/Homebrew/version.rb
<ide> def self._parse(spec)
<ide> # e.g. http://www.ijg.org/files/jpegsrc.v8d.tar.gz
<ide> m = /\.v(\d+[a-z]?)/.match(stem)
<ide> return m.captures.first unless m.nil?
<add>
<add> # e.g. https://secure.php.net/get/php-7.1.10.tar.bz2/from/this/mirror
<add> m = /[-... | 1 |
Python | Python | fix spacy vocab command | 98c35d2585c548e6ff2c25a537cfd81c25482283 | <ide><path>spacy/__main__.py
<ide> 'convert': convert,
<ide> 'package': package,
<ide> 'model': model,
<del> 'model': vocab,
<add> 'vocab': vocab,
<ide> 'profile': profile,
<ide> 'validate': validate
<ide> }
<ide><path>spacy/cli/vocab.py
<del>'''Compile a vocabu... | 2 |
Text | Text | add guide about abi stability | 65366addb29f195f53b700ba0de43381342086d7 | <ide><path>doc/guides/abi-stability.md
<add># ABI Stability
<add>
<add>## Introduction
<add>An Application Binary Interface (ABI) is a way for programs to call functions
<add>and use data structures from other compiled programs. It is the compiled version
<add>of an Application Programming Interface (API). In other wor... | 1 |
PHP | PHP | apply fixes from styleci | 473ffd34889673a3730456672fdba281febf0737 | <ide><path>src/Illuminate/Http/Resources/Json/JsonResource.php
<ide> public function toArray($request)
<ide> if (is_null($this->resource)) {
<ide> return [];
<ide> }
<del>
<add>
<ide> return is_array($this->resource)
<ide> ? $this->resource
<ide> : $th... | 1 |
Ruby | Ruby | run the logger tests in isolation | 39dec69712aaf954c0f00f2a32c32356d789e3ed | <ide><path>activesupport/lib/active_support/testing/isolation.rb
<ide> class ParallelEach
<ide> include Enumerable
<ide>
<ide> # default to 2 cores
<del> CORES = ENV['TEST_CORES'].to_i || 2
<add> CORES = (ENV['TEST_CORES'] || 2).to_i
<ide>
<ide> def initialize list
<ide> ... | 2 |
PHP | PHP | refactor the memcached class | cb7a59711aebc7b9cf30695ccdd71c70468aa504 | <ide><path>system/memcached.php
<ide> class Memcached {
<ide> */
<ide> public static function instance()
<ide> {
<del> if (is_null(static::$instance))
<del> {
<del> if ( ! class_exists('Memcache'))
<del> {
<del> throw new \Exception('Attempting to use Memcached, but the Memcached PHP extension is not insta... | 1 |
Java | Java | remove assertion making locations mandatory | 2ef20f63bc97cb4612befdc9d63cab1554694992 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
<ide> public ResourceHttpRequestHandler() {
<ide> * for serving static resources.
<ide> */
<ide> public void setLocations(List<Resource> locations) {
<del> Assert.notEmpty(locations, "Locations list mus... | 1 |
Text | Text | remove note about `eslint-config-next` | 4cb96fb0470e83e62f045be68069eb3b66d8567a | <ide><path>contributing/examples/adding-examples.md
<ide> When you add an example to the [examples](examples) directory, please follow the
<ide> - If API routes aren't used in an example, they should be omitted
<ide> - If an example exists for a certain library and you would like to showcase a specific feature of that ... | 1 |
Javascript | Javascript | cleanup the generation of the error message | b146cae02c6345d324b1c53845fb01b783226669 | <ide><path>src/minErr.js
<ide> function minErr(module, ErrorConstructor) {
<ide> ErrorConstructor = ErrorConstructor || Error;
<ide> return function() {
<del> var code = arguments[0],
<del> prefix = '[' + (module ? module + ':' : '') + code + '] ',
<del> template = arguments[1],
<del> templateArgs... | 2 |
PHP | PHP | newline all the things | 6982865171c67d73ec0bdf60182c4f75c74180fd | <ide><path>src/Illuminate/Bus/Dispatcher.php
<ide> protected function commandShouldBeQueued($command)
<ide> public function dispatchToQueue($command)
<ide> {
<ide> $connection = isset($command->connection) ? $command->connection : null;
<add>
<ide> $queue = call_user_func($this->queueResolver, $... | 1 |
Python | Python | add test for ndarray.__array_function__ | 4ece3b1ce10e5aca966d8adfb85e6761747567b9 | <ide><path>numpy/core/tests/test_overrides.py
<ide> def _get_overloaded_args(relevant_args):
<ide> return args
<ide>
<ide>
<del>_IMPLEMENTED = None
<add>def _return_self(self, *args, **kwargs):
<add> return self
<ide>
<ide>
<ide> class TestGetOverloadedTypesAndArgs(object):
<ide> def test_ndarray(self):
<ide... | 1 |
Javascript | Javascript | ignore non-canberequiredbyusers built-in | c7222b35899ad352d78f288ddc16c6d19ca79a06 | <ide><path>lib/internal/main/eval_string.js
<ide> const { addBuiltinLibsToObject } = require('internal/modules/cjs/helpers');
<ide> const { getOptionValue } = require('internal/options');
<ide>
<ide> prepareMainThreadExecution();
<del>addBuiltinLibsToObject(globalThis);
<add>addBuiltinLibsToObject(globalThis, '<eval>'... | 4 |
Python | Python | remove bilstm import | bae59bf92f7d4a22b5b1391699d29f2892de9792 | <ide><path>spacy/_ml.py
<ide> from thinc.neural._classes.attention import ParametricAttention
<ide> from thinc.linear.linear import LinearModel
<ide> from thinc.api import uniqued, wrap, flatten_add_lengths
<del>from thinc.neural._classes.rnn import BiLSTM
<ide>
<ide>
<ide> from .attrs import ID, ORTH, LOWER, NORM, P... | 1 |
Javascript | Javascript | move url data to fixtures | e571fd4f6ccadd9e77095ca0377a9b07f49bc56b | <ide><path>benchmark/fixtures/url-inputs.js
<add>'use strict';
<add>
<add>exports.urls = {
<add> long: 'http://nodejs.org:89/docs/latest/api/foo/bar/qua/13949281/0f28b/' +
<add> '/5d49/b3020/url.html#test?payload1=true&payload2=false&test=1' +
<add> '&benchmark=3&foo=38.38.011.293&bar=1234834910480&test=... | 6 |
Text | Text | update webpack and browserify example readme files | b293d1caf5f331f01283b7df4579cc7ea641379d | <ide><path>examples/browserify/README.md
<ide> ## Overview
<ide>
<del>Example to demonstrate PDF.js library usage with browserify.
<add>Example to demonstrate PDF.js library usage with Browserify.
<ide>
<ide> ## Getting started
<ide>
<ide> Build project and install the example dependencies:
<ide>
<del> $ gulp dist... | 2 |
Text | Text | add 0.69.5 changelog | 2452c5f16e8bbbf6f17d09e77d3b8f073837bf18 | <ide><path>CHANGELOG.md
<ide> # Changelog
<ide>
<add>## v0.69.5
<add>
<add>### Changed
<add>
<add>- Bump react-native-codegen to 0.69.2 ([df3d52bfbf](https://github.com/facebook/react-native/commit/df3d52bfbf4254cd16e1dc0ca0af2743cd7e11c1) by [@dmitryrykun](https://github.com/dmitryrykun))
<add>
<add>#### Android spec... | 1 |
PHP | PHP | accept only array | f43091f78e1021f0156f834ee685ec46cda83a54 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function qualifyColumn($column)
<ide> /**
<ide> * Qualify the column's lists name by the model's table.
<ide> *
<del> * @param array|mixed $columns
<add> * @param array $columns
<ide> * @return array
<ide> */
<ide> ... | 2 |
Python | Python | fix data augmentation | f52249fe2eb5afca9e68060a99d8cb31a6175c72 | <ide><path>spacy/training/augment.py
<ide> import copy
<ide> from functools import partial
<ide> from ..util import registry
<add>from ..tokens import Doc
<ide>
<ide>
<ide> @registry.augmenters("spacy.dont_augment.v1")
<ide> def orth_variants_augmenter(nlp, example, *, level: float = 0.0, lower: float =
<ide> ... | 1 |
Javascript | Javascript | return old status from _setrawmode | dc57b9e78fa0c64ce83c1e54a01e95fccb88e301 | <ide><path>lib/readline.js
<ide> Interface.prototype.setPrompt = function(prompt) {
<ide>
<ide>
<ide> Interface.prototype._setRawMode = function(mode) {
<add> const wasInRawMode = this.input.isRaw;
<add>
<ide> if (typeof this.input.setRawMode === 'function') {
<del> return this.input.setRawMode(mode);
<add> ... | 1 |
Python | Python | add cnn seq2seq example | 627bf95c11199419eb6d2017c322a0d78ef3dc3c | <ide><path>examples/cnn_seq2seq.py
<add>'''# Sequence-to-sequence example in Keras (character-level).
<add>
<add>This script demonstrates how to implement a basic character-level CNN
<add>sequence-to-sequence model. We apply it to translating
<add>short English sentences into short French sentences,
<add>character-by-c... | 1 |
Javascript | Javascript | improve floret vectors display in pipeline docs | 04c6e5cb9526c3ac3ce395be7de5fa607ddefe4b | <ide><path>website/src/templates/models.js
<ide> function formatVectors(data) {
<ide> if (!data) return 'n/a'
<ide> if (Object.values(data).every(n => n === 0)) return 'context vectors only'
<ide> const { keys, vectors, width } = data
<del> return `${abbrNum(keys)} keys, ${abbrNum(vectors)} unique vector... | 1 |
Javascript | Javascript | remove last use of mapobject | 8d1e416d9a56bb126d2f50038acb3663f7655ed0 | <ide><path>src/renderers/shared/stack/reconciler/__tests__/ReactMultiChildReconcile-test.js
<ide> var ReactDOM = require('ReactDOM');
<ide> var ReactDOMComponentTree = require('ReactDOMComponentTree');
<ide> var ReactInstanceMap = require('ReactInstanceMap');
<ide>
<del>var mapObject = require('mapObject');
<del>
<ide... | 1 |
Ruby | Ruby | set a default value for .report handled kwarg | 1e8936605380bfc1e97bc99333879e133a56b2b9 | <ide><path>activesupport/lib/active_support/error_reporter.rb
<ide> def set_context(...)
<ide>
<ide> # When the block based +handle+ and +record+ methods are not suitable, you can directly use +report+
<ide> #
<del> # Rails.error.report(error, handled: true)
<del> def report(error, handled:, severity: ... | 1 |
Ruby | Ruby | reduce allocation in expand cache key | 1eb1966f29430f23ae05f6556668bbb5447cae43 | <ide><path>activesupport/lib/active_support/cache.rb
<ide> def lookup_store(store = nil, *parameters)
<ide> #
<ide> # The +key+ argument can also respond to +cache_key+ or +to_param+.
<ide> def expand_cache_key(key, namespace = nil)
<del> expanded_cache_key = (namespace ? "#{namespace}/" : "").... | 1 |
Text | Text | fix typo in caching docs | 9f66fc9a7ca51ad5535cb48e199cf2fbe9eecec6 | <ide><path>docs/api-guide/caching.md
<ide> provided in Django.
<ide>
<ide> Django provides a [`method_decorator`][decorator] to use
<ide> decorators with class based views. This can be used with
<del>with other cache decorators such as [`cache_page`][page] and
<add>other cache decorators such as [`cache_page`][page] a... | 1 |
Java | Java | pass the correct url to android webview events | b436943a279f116fc8f376a377afc04aa7c5a774 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java
<ide> public void onPageFinished(WebView webView, String url) {
<ide> if (!mLastLoadFailed) {
<ide> ReactWebView reactWebView = (ReactWebView) webView;
<ide> reactWebView.callInjectedJavaScript();
<del>... | 1 |
Python | Python | fix mixup with bytes.decode() and str.encode() | 6afd1a3dc183eb0edfde878df7a655cc58caece4 | <ide><path>tools/v8_gypfiles/GN-scraper.py
<ide> def DoMain(args):
<ide> gn_filename, pattern = args
<ide> src_root = os.path.dirname(gn_filename)
<del> with open(gn_filename, 'r') as gn_file:
<del> gn_content = gn_file.read().encode('utf-8')
<add> with open(gn_filename, 'rb') as gn_file:
<add> gn_content =... | 1 |
Python | Python | update minimum install requirements | 07000942dacaeffa84d9db57ea42570fcfb0395e | <ide><path>setup.py
<ide> setup(
<ide> name="Flask",
<ide> install_requires=[
<del> "Werkzeug>=0.15",
<del> "Jinja2>=2.10.1",
<del> "itsdangerous>=0.24",
<del> "click>=5.1",
<add> "Werkzeug>=2.0.0rc4",
<add> "Jinja2>=3.0.0rc1",
<add> "itsdangerous>=2.0.0rc2",
<ad... | 1 |
Javascript | Javascript | remove sizebot race condition | 5fe97dbe19917b4c49618073ccc5632b593ec9fa | <ide><path>dangerfile.js
<ide> function git(args) {
<ide> try {
<ide> let baseCIBuildId = null;
<ide> const statusesResponse = await fetch(
<del> `https://api.github.com/repos/facebook/react/commits/${baseCommit}/statuses`
<add> `https://api.github.com/repos/facebook/react/commits/${baseCommit}/stat... | 1 |
Javascript | Javascript | fix flaky test-preload | b5a75baa5bc879cbd4a2c5885fb75be8605abae3 | <ide><path>test/parallel/test-preload.js
<ide> var stdinStdout = '';
<ide> stdinProc.stdout.on('data', function(d) {
<ide> stdinStdout += d;
<ide> });
<del>stdinProc.on('exit', function(code) {
<add>stdinProc.on('close', function(code) {
<ide> assert.equal(code, 0);
<ide> assert.equal(stdinStdout, 'A\nhello\n');
... | 1 |
Javascript | Javascript | add $event to ng-swipe | 507d8021b1c91cc0cefc0418e61b04597ad1030b | <ide><path>src/ngTouch/directive/ngSwipe.js
<ide> function makeSwipeDirective(directiveName, direction, eventName) {
<ide> }
<ide>
<ide> $swipe.bind(element, {
<del> 'start': function(coords) {
<add> 'start': function(coords, event) {
<ide> startCoords = coords;
<ide> vali... | 3 |
Javascript | Javascript | use notimestamp instead of -1 | ffe516f3bf57a13e123411a9ca76b48915a00acb | <ide><path>packages/react-reconciler/src/ReactFiberLane.js
<ide> export function markRootFinished(root: FiberRoot, remainingLanes: Lanes) {
<ide> const lane = 1 << index;
<ide>
<ide> // Clear the expiration time
<del> expirationTimes[index] = -1;
<add> expirationTimes[index] = NoTimestamp;
<ide>
<ide> ... | 1 |
Python | Python | create newton_forward_interpolation.py (#333) | 54830644a280ee2b8e59497f303220a211422118 | <ide><path>arithmetic_analysis/newton_forward_interpolation.py
<add># https://www.geeksforgeeks.org/newton-forward-backward-interpolation/
<add>
<add>import math
<add>
<add># for calculating u value
<add>def ucal(u, p):
<add> """
<add> >>> ucal(1, 2)
<add> 0
<add> >>> ucal(1.1, 2)
<add> 0.110000000000000... | 1 |
Text | Text | fix some nits in hardcoded manpage links | a14a0fa8dc401188f67d26a82daae9423c54b41f | <ide><path>doc/api/errors.md
<ide> Creation of a [`zlib`][] object failed due to incorrect configuration.
<ide> [`--force-fips`]: cli.html#cli_force_fips
<ide> [`child_process`]: child_process.html
<ide> [`cipher.getAuthTag()`]: crypto.html#crypto_cipher_getauthtag
<add>[`Class: assert.AssertionError`]: assert.html#ass... | 3 |
Javascript | Javascript | ensure socket cleanup on response end | 234fb122bbdf87bb33d8fba41165ecfa92031b71 | <ide><path>lib/http.js
<ide> function parserOnIncomingClient(res, shouldKeepAlive) {
<ide> COUNTER_HTTP_CLIENT_RESPONSE();
<ide> req.res = res;
<ide> res.req = req;
<del> var handled = req.emit('response', res);
<add>
<add> // add our listener first, so that we guarantee socket cleanup
<ide> res.on('end', res... | 2 |
Text | Text | add v3.22.0-beta.3 to changelog | d654a6e588451503f8b2518d6d31ed264f95f634 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.22.0-beta.3 (September 09, 2020)
<add>
<add>- [#19124](https://github.com/emberjs/ember.js/pull/19124) Fix rendering engine usage within a `fastboot` sandbox
<add>
<ide> ### v3.22.0-beta.2 (August 31, 2020)
<ide>
<ide> - [#19106](https://github.com/emb... | 1 |
Python | Python | add link to scikeras migration guide | f34e136e917eb0e8ec9403f719bbaee5ba2ab1fc | <ide><path>keras/wrappers/scikit_learn.py
<ide> class KerasClassifier(BaseWrapper):
<ide> """Implementation of the scikit-learn classifier API for Keras.
<ide>
<ide> DEPRECATED. Use [Sci-Keras](https://github.com/adriangb/scikeras) instead.
<add> See https://www.adriangb.com/scikeras/stable/migration.html for hel... | 1 |
Python | Python | fix trainable arg | 0a9c0ca461f280c988e252baaf5b13a12f6204f6 | <ide><path>keras/models.py
<ide> def __init__(self, layers=[], name=None):
<ide> self.model = None # internal Model instance
<ide> self.inputs = [] # tensors
<ide> self.outputs = [] # tensors (length 1)
<del> self.trainable = True
<add> self._trainable = True
<ide>
<ide> ... | 1 |
Javascript | Javascript | fix couple of animation bugs | a73a8c4a5ec83b1fd55fdfbbffcaf0e3b4787025 | <ide><path>src/core/core.animations.js
<ide> import {isObject} from '../helpers/helpers.core';
<ide>
<ide> const numbers = ['x', 'y', 'borderWidth', 'radius', 'tension'];
<ide> const colors = ['borderColor', 'backgroundColor'];
<del>const animationOptions = ['duration', 'easing', 'from', 'to', 'type', 'easing', 'loop'... | 3 |
PHP | PHP | add the ability to set the default model type | 2fd7ac50139d8ab969ca8a9bc15ad2717f1b1dd6 | <ide><path>src/Datasource/ModelAwareTrait.php
<ide>
<ide> use Cake\Datasource\Exception\MissingModelException;
<ide> use InvalidArgumentException;
<add>use UnexpectedValueException;
<ide>
<ide> /**
<ide> * Provides functionality for loading table classes
<ide> trait ModelAwareTrait
<ide> */
<ide> protected ... | 2 |
Javascript | Javascript | upgrade jest apis to match www | efaa26eb50169aba7f9194119faf64b67cbff460 | <ide><path>src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js
<ide> describe('ReactCSSTransitionGroup', () => {
<ide> var container;
<ide>
<ide> beforeEach(() => {
<del> jest.resetModuleRegistry();
<add> jest.resetModules();
<ide> React = require('React');
<ide> ReactDOM = require('Reac... | 54 |
Ruby | Ruby | move add_counter_cache_methods to class level | cae842e662bbf6d6e6c87857d6ab68a982b1663f | <ide><path>activerecord/lib/active_record/associations/builder/belongs_to.rb
<ide> def self.define_callbacks(model, reflection)
<ide>
<ide> def define_accessors(mixin, reflection)
<ide> super
<del> add_counter_cache_methods mixin
<add> self.class.add_counter_cache_methods mixin
<ide> end
<ide> ... | 1 |
Ruby | Ruby | fix invalid rack response in test | c5537c1158c91e3244d24751b1e86290b136dc09 | <ide><path>actionpack/test/dispatch/request/xml_params_parsing_test.rb
<ide> class Linted
<ide> def call(env)
<ide> bar = env['action_dispatch.request.request_parameters']['foo']
<ide> result = "<ok>#{bar}</ok>"
<del> [200, {"Content-Type" => "application/xml", "Content-Length" => result.le... | 1 |
PHP | PHP | fix feedback from review | 04416be02203e74783c356c79fb9ccfaca673579 | <ide><path>src/Database/Connection.php
<ide> public function __construct(array $config)
<ide> $this->setDriver($driver, $config);
<ide>
<ide> if (!empty($config['log'])) {
<del> $this->enableQueryLogging($config['log']);
<add> $this->enableQueryLogging((bool)$config['log']);
<ide>... | 4 |
Text | Text | add html elements (from line 67 to 114) | 0a8b93691597e9269ddce12702d7701f4744e108 | <ide><path>guide/english/html/index.md
<ide> Since the early days of the web, there have been many versions of HTML
<ide> - [HTML Elements](https://guide.freecodecamp.org/html/elements)
<ide> - [Semantic HTML](https://guide.freecodecamp.org/html/html5-semantic-elements)
<ide> - [HTML Attributes](https://guide.freecodec... | 1 |
Javascript | Javascript | add method for changing url params | 77a1acc7fcad7a8a7d0376b33d38a8977372cfe2 | <ide><path>src/ngRoute/route.js
<ide> */
<ide> /* global -ngRouteModule */
<ide> var ngRouteModule = angular.module('ngRoute', ['ng']).
<del> provider('$route', $RouteProvider);
<add> provider('$route', $RouteProvider),
<add> $routeMinErr = angular.$$minErr('ngRoute');... | 2 |
Javascript | Javascript | use correct npm bin name depending on the os | 309ecff84d2635bb4d615e4867ed967c9a8b8a60 | <ide><path>script/lib/install-script-dependencies.js
<ide> process.env.ELECTRON_CUSTOM_VERSION = CONFIG.appMetadata.electronVersion;
<ide>
<ide> module.exports = function(ci) {
<ide> console.log('Installing script dependencies');
<add> const npmBinName = process.platform === 'win32' ? 'npm.cmd' : 'npm';
<ide> chi... | 1 |
Ruby | Ruby | remove heroku formula | 5e68a0872e0540adacd4d5ff2a988113eba045d2 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_specs
<ide> throttled = %w[
<ide> aws-sdk-cpp 10
<ide> awscli 10
<del> heroku 10
<ide> quicktype 10
<ide> vim 50
<ide> ] | 1 |
Python | Python | allow the same config in the auto mapping | b1a7dfe099b852340868f9aa7c75bb805ce57596 | <ide><path>src/transformers/models/auto/configuration_auto.py
<ide> def __getitem__(self, key):
<ide> module_name = model_type_to_module_name(key)
<ide> if module_name not in self._modules:
<ide> self._modules[module_name] = importlib.import_module(f".{module_name}", "transformers.models")
<... | 1 |
Javascript | Javascript | remove unnecessary checks | 33585cf027b516eb549a3902d474a2064078b123 | <ide><path>lib/buildChunkGraph.js
<ide> const visitModules = (
<ide> }
<ide> // fallthrough
<ide> case ENTER_MODULE: {
<del> if (chunkGroup !== undefined) {
<del> const index = chunkGroup.getModulePreOrderIndex(module);
<del> if (index === undefined) {
<del> chunkGroup.setModulePreOrderI... | 1 |
Ruby | Ruby | avoid actioncontroller when render mail, at loaded | c2a3ff0027e60cce0f2ea7f8ccc1326b5ab1b782 | <ide><path>actiontext/lib/action_text/engine.rb
<ide> def to_trix_content_attachment_partial_path
<ide> end
<ide>
<ide> initializer "action_text.helper" do
<del> %i[action_controller_base action_mailer].each do |abstract_controller|
<del> ActiveSupport.on_load(abstract_controller) do
<add> %i[... | 1 |
Javascript | Javascript | get challenges directly from /curriculum | 2da8eb23e9d66d5ec86a7b4f700ee4b9f213d56d | <ide><path>api-server/server/boot/certificate.js
<ide> import { oldDataVizId } from '../../../config/misc';
<ide> import certTypes from '../utils/certTypes.json';
<ide> import superBlockCertTypeMap from '../utils/superBlockCertTypeMap';
<ide> import { completeCommitment$ } from '../utils/commit';
<add>import { getChall... | 5 |
Javascript | Javascript | handle async updates to location | 8d39bd8abf423517b5bff70137c2a29e32bff76d | <ide><path>src/ng/browser.js
<ide> function Browser(window, document, $log, $sniffer) {
<ide> var cachedState, lastHistoryState,
<ide> lastBrowserUrl = location.href,
<ide> baseElement = document.find('base'),
<del> reloadLocation = null;
<add> pendingLocation = null;
<ide>
<ide> cacheState()... | 2 |
Javascript | Javascript | fix global leak of compilationeventbinding | 2e6292ac36065a12de8139a9022663edd78047c1 | <ide><path>test/RequireJsStuffPlugin.test.js
<ide> describe("RequireJsStuffPlugin", function() {
<ide> });
<ide>
<ide> describe("parser handler", function() {
<del> var parser, parserEventBindings;
<add> let parser;
<add> let parserEventBindings;
<add> let compilationEventBinding;
<ide>
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.