content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | fix proposal for | 03cf74ccffe7b931c052f357bb43123ba0749d67 | <ide><path>src/animation/PropertyBinding.js
<ide> THREE.PropertyBinding.parseTrackName = function( trackName ) {
<ide> // .bone[Armature.DEF_cog].position
<ide> // created and tested via https://regex101.com/#javascript
<ide>
<del> var re = /^(([\w]+\/)*)([\w-\d]+)?(\.([\w]+)(\[([\w\d\[\]\_. ]+)\])?)?(\.([\w.]+)(\... | 1 |
Ruby | Ruby | add test for dependency options | 6ed24d3877eca5b117924831ae3e3267123e0675 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def initialize(*args)
<ide> ensure
<ide> path.unlink
<ide> end
<add>
<add> def test_dependency_option_integration
<add> f = formula do
<add> url 'foo-1.0'
<add> depends_on 'foo' => :optional
<add> depends_on 'bar' => :recommended
<add> ... | 1 |
Text | Text | remove images directory | c029f8eb9548b0548fae2cd7872d920236e78c1d | <ide><path>docs/your-first-package.md
<ide> ol.entries .hide-me {
<ide> Refresh Atom, and run the `changer` command. You'll see all the non-changed
<ide> files disappear from the tree. Success!
<ide>
<del>![Changer File View][changer-file-view]
<add>![Changer_File_View]
<add>
<ide>
<ide> There are a number of ways yo... | 1 |
Javascript | Javascript | enable concurrentroot in rn vr apps | 3e8934b49be4babedf6a26916528a7450089e118 | <ide><path>Libraries/ReactNative/AppRegistry.js
<ide> const AppRegistry = {
<ide> runnables[appKey] = {
<ide> componentProvider,
<ide> run: (appParameters, displayMode) => {
<add> const concurrentRootEnabled =
<add> appParameters.initialProps?.concurrentRoot ||
<add> appParamete... | 1 |
PHP | PHP | slugify new session.cookie to comply with rfc 6265 | 28719679b707688f6622474143ede71b6a078562 | <ide><path>config/session.php
<ide> |
<ide> */
<ide>
<del> 'cookie' => env('SESSION_COOKIE', snake_case(env('APP_NAME', 'laravel')).'_session'),
<add> 'cookie' => env('SESSION_COOKIE', str_slug(env('APP_NAME', 'laravel'), '_').'_session'),
<ide>
<ide> /*
<ide> |----------------------------------... | 1 |
Python | Python | test the transformer layer with dynamic sequence | 2f9f2479556b72ff6d4f1f549a7a0c8c348a0422 | <ide><path>official/nlp/modeling/layers/transformer_test.py
<ide> def test_transform_with_initializer(self):
<ide> # The default output of a transformer layer should be the same as the input.
<ide> self.assertEqual(data_tensor.shape.as_list(), output.shape.as_list())
<ide>
<add> def test_dynamic_layer_sequenc... | 1 |
Python | Python | add test for get_driver | b6e3ca05c1f0a221afd14aa30e9a4fa28d79b9cf | <ide><path>test/test_utils.py
<ide> warnings.simplefilter('default')
<ide>
<ide> import libcloud.utils
<add>from libcloud.compute.types import Provider
<add>from libcloud.compute.providers import DRIVERS
<ide>
<ide> WARNINGS_BUFFER = []
<ide>
<ide> def test_guess_file_mime_type(self):
<ide>
<ide> self.asser... | 1 |
Text | Text | update outdated release schedule | f272f97df1d41d4fd60c642eef92f6114a118383 | <ide><path>Releases.md
<ide> https://github.com/facebook/react-native/releases
<ide>
<ide> ## Release schedule
<ide>
<del>| Version | RC release | Stable release |
<del>| ------- | ---------------- | -------------- |
<del>| 0.27.0 | week of May 16 | June 6 |
<del>| 0.28.0 | week of June 6 | June 2... | 1 |
Python | Python | retain backward compatibility. enforce c order | bb0e4f356cce2f199d9c08ffe572fbabadc846d1 | <ide><path>numpy/lib/index_tricks.py
<ide> class ndindex(object):
<ide> """
<ide> def __init__(self, *shape):
<ide> x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
<del> self._it = _nx.nditer(x, flags=['multi_index'])
<add> self._it = _nx.nditer(x, flags=['multi_in... | 1 |
Javascript | Javascript | fix small lint warnings | 07254bb0a5459df1a9f7d451bbb4be73d00083f0 | <ide><path>pdf.js
<ide> var PDFImage = (function() {
<ide>
<ide> this.decode = dict.get('Decode', 'D');
<ide>
<del> var mask = xref.fetchIfRef(image.dict.get('Mask'));
<del> var smask = xref.fetchIfRef(image.dict.get('SMask'));
<add> var mask = xref.fetchIfRef(dict.get('Mask'));
<add> var smask = xref... | 11 |
Javascript | Javascript | fix lint errors | 84b5fd411d6e6f194e0b8356fd12bd0503dcc49f | <ide><path>src/update-process-env.js
<ide> async function getEnvFromShell(env) {
<ide> return null;
<ide> }
<ide>
<del> let result = {}
<add> let result = {};
<ide> for (let line of stdout.split('\0')) {
<ide> if (line.includes('=')) {
<del> let components = line.split('=')
<del> let key = comp... | 1 |
Text | Text | fix dependencyparser.predict docs (resolves ) | 7819404127804db2d76ac2eb8e1569f22f2b1d2f | <ide><path>website/docs/api/dependencyparser.md
<ide> Apply the pipeline's model to a batch of docs, without modifying them.
<ide> > scores = parser.predict([doc1, doc2])
<ide> > ```
<ide>
<del>| Name | Type | Description ... | 1 |
Javascript | Javascript | add separator comment between text nodes | 6a589ad711db330c68a371321450ee2f0087e22f | <ide><path>packages/react-dom/src/__tests__/ReactDOMFizzServerBrowser-test.js
<ide> describe('ReactDOMFizzServer', () => {
<ide> <div>hello world</div>,
<ide> );
<ide> const result = await readResult(stream);
<del> expect(result).toBe('<div>hello world</div>');
<add> expect(result).toMatchInlineSnap... | 3 |
Javascript | Javascript | fix reconciling components to content | 5ef3c1b09b486d711b556655c28b93e207a90399 | <ide><path>src/core/ReactMultiChild.js
<ide> function enqueueMarkup(parentID, markup, toIndex) {
<ide> type: ReactMultiChildUpdateTypes.INSERT_MARKUP,
<ide> markupIndex: markupQueue.push(markup) - 1,
<ide> fromIndex: null,
<add> textContent: null,
<ide> toIndex: toIndex
<ide> });
<ide> }
<ide> func... | 5 |
Ruby | Ruby | pass block for logging | bc53543cb3805abd334745a50c9014b31096c8da | <ide><path>actionpack/lib/action_controller/metal/live.rb
<ide> def log_error(exception)
<ide> logger = ActionController::Base.logger
<ide> return unless logger
<ide>
<del> message = "\n#{exception.class} (#{exception.message}):\n"
<del> message << exception.annoted_source_code.to_s if exception.... | 1 |
Python | Python | use .freeze not ._freeze | 33a62b0f52d1e1cac49e8f30f2a1ff471e1f1bfe | <ide><path>celery/app/builtins.py
<ide> def prepare_steps(self, args, tasks):
<ide> # First task get partial args from chain.
<ide> task = maybe_subtask(steps.popleft())
<ide> task = task.clone() if i else task.clone(args)
<del> res = task._freeze()
<add> ... | 7 |
Text | Text | add v4.4.3 to changelog | 1ea72b1cd37d80b45f97f05ef228dfeb13405370 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.4.3 (October 12, 2022)
<add>
<add>- [#20166](https://github.com/emberjs/ember.js/pull/20166) [BUGFIX] Fix missing `RouteInfo` entries
<add>
<ide> ### v4.7.1 (October 12, 2022)
<ide>
<ide> - [#20166](https://github.com/emberjs/ember.js/pull/20166) [BUGF... | 1 |
Javascript | Javascript | add angularjs tag to plunks and make private | 25e1ad9a9443de6b7ebb40409af72021cc4e7b20 | <ide><path>docs/src/templates/js/docs.js
<ide> docsApp.serviceFactory.openPlunkr = function(templateMerge, formPostData, angula
<ide> });
<ide>
<ide> postData['files[index.html]'] = templateMerge(indexHtmlContent, indexProp);
<del>
<add> postData['tags[]'] = "angularjs";
<add>
<add> postData.private ... | 1 |
Ruby | Ruby | use parallel assignments rather than indices | c7f065b8da7a0da65bc5a39a156a6a14eb28f834 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def create_fork(repo)
<ide> end
<ide>
<ide> def check_fork_exists(repo)
<del> username = api_credentials[1]
<del> reponame = repo.split("/")[1]
<add> _, username = api_credentials
<add> _, reponame = repo.split("/")
<ide> json = open_api(url_to("rep... | 1 |
Go | Go | fix proc regex | 2b4f64e59018c21aacbf311d5c774dd5521b5352 | <ide><path>daemon/execdriver/native/apparmor.go
<ide> profile {{.Name}} flags=(attach_disconnected,mediate_deleted) {
<ide> file,
<ide> umount,
<ide>
<del> deny @{PROC}/{*,**^[0-9]*,sys/kernel/shm*} wkx,
<add> deny @{PROC}/* w, # deny write for all files directly in /proc (not in a subdir)
<add> # deny write ... | 2 |
Ruby | Ruby | fix normalization of old- and new-style options | d1c0d4c8793d6ea80f1e9dd3759aa22eb506211a | <ide><path>Library/Homebrew/cmd/options.rb
<ide> def options
<ide>
<ide> def dump_options_for_formula f
<ide> f.build.each do |k,v|
<del> k.prepend "--" unless k.start_with? "--"
<del> puts k
<add> puts "--"+k
<ide> puts "\t"+v
<ide> end
<ide> end
<ide><path>Library/Homebrew/formula.rb... | 2 |
Python | Python | use consistent test names | 7262421bb272458ce61de5f2f76f1ca8d6b54686 | <ide><path>spacy/tests/doc/test_add_entities.py
<ide> import pytest
<ide>
<ide>
<del>def test_add_entities_set_ents_iob(en_vocab):
<add>def test_doc_add_entities_set_ents_iob(en_vocab):
<ide> text = ["This", "is", "a", "lion"]
<ide> doc = get_doc(en_vocab, text)
<ide> ner = EntityRecognizer(en_vocab, feat... | 4 |
Javascript | Javascript | fix error handling | 333adf61eb3d8d973b28e6c86d8b93d39d95cfe6 | <ide><path>lib/internal/crypto/random.js
<ide> const {
<ide>
<ide> const { kMaxLength } = require('buffer');
<ide> const kMaxUint32 = Math.pow(2, 32) - 1;
<add>const kMaxPossibleLength = Math.min(kMaxLength, kMaxUint32);
<ide>
<del>function assertOffset(offset, length) {
<del> if (typeof offset !== 'number' || Numbe... | 2 |
Java | Java | remove unnecessary @suppresswarnings | d836fb4a7a8952ee1de3df9567eec4052349cedb | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassBeanDefinitionReader.java
<ide> private void registerBeanDefinitionForImportedConfigurationClass(ConfigurationCl
<ide> * Read the given {@link BeanMethod}, registering bean definitions
<ide> * with the BeanDefinitionReg... | 1 |
Text | Text | remove section on "recent" ecdh changes | 6b428e72f92192f255f9c9364073593a52ee0e5b | <ide><path>doc/api/crypto.md
<ide> and returned `'latin1'` encoded strings by default rather than `Buffer`s. This
<ide> default was changed after Node.js v0.8 to use [`Buffer`][] objects by default
<ide> instead.
<ide>
<del>### Recent ECDH changes
<del>
<del>Usage of `ECDH` with non-dynamically generated key pairs has... | 1 |
Javascript | Javascript | convert react native builds to named exports | 3e809bf5d46dbabdc2ccbec41e030c5cb1efeac4 | <ide><path>packages/react-native-renderer/fabric.js
<ide> * @flow
<ide> */
<ide>
<del>'use strict';
<add>import type {ReactFabricType} from './src/ReactNativeTypes';
<add>import * as ReactFabric from './src/ReactFabric';
<add>// Assert that the exports line up with the type we're going to expose.
<add>// eslint-disa... | 5 |
Javascript | Javascript | change the api to this.resource/this.route | e4af09edd357cdccfddfa684247bc43a6eaae0fe | <ide><path>packages/ember-routing/lib/system.js
<add>require('ember-routing/system/dsl');
<ide> require('ember-routing/system/controller_for');
<ide> require('ember-routing/system/router');
<ide> require('ember-routing/system/route');
<ide><path>packages/ember-routing/lib/system/dsl.js
<add>function DSL(name) {
<add> ... | 5 |
Javascript | Javascript | add missin create permission for faunadb example | 5e23e3545655307576e7d2f827ba2b402889d69d | <ide><path>examples/with-graphql-faunadb/scripts/setup.js
<ide> readline.question(`Please provide the FaunaDB admin key\n`, adminKey => {
<ide> privileges: [
<ide> {
<ide> resource: q.Collection('GuestbookEntry'),
<del> actions: { read: true, write: true },
<add>... | 1 |
Javascript | Javascript | remove unreachable code | df8af88e366114adc676e9d05f863e0446d018a3 | <ide><path>lib/buffer.js
<ide> function _copyActual(source, target, targetStart, sourceStart, sourceEnd) {
<ide> sourceEnd = sourceStart + target.length - targetStart;
<ide>
<ide> let nb = sourceEnd - sourceStart;
<del> const targetLen = target.length - targetStart;
<ide> const sourceLen = source.length - sou... | 1 |
PHP | PHP | refactor the inflector class | afc80dd4d1710d1c4481fad87c6e9c1ddf7adb8e | <ide><path>system/inflector.php
<ide> class Inflector {
<ide> */
<ide> public static function plural($value)
<ide> {
<del> if (array_key_exists($value, static::$plural_cache)) return static::$plural_cache[$value];
<add> if (array_key_exists($value, static::$plural_cache))
<add> {
<add> ... | 1 |
Ruby | Ruby | document the rest of lib | 92536c08d53c5d54f6c526bfdc5d854dd00a7a88 | <ide><path>lib/active_storage/attached.rb
<ide> require "action_dispatch/http/upload"
<ide> require "active_support/core_ext/module/delegation"
<ide>
<del># Abstract baseclass for the particular `ActiveStorage::Attached::One` and `ActiveStorage::Attached::Many`
<add># Abstract baseclass for the concrete `ActiveStorage... | 9 |
Ruby | Ruby | document the remaining parts of the channel setup | 81bbf9ecba35e04de4081494941c2f69c9e8784e | <ide><path>lib/action_cable/channel/callbacks.rb
<ide> module Callbacks
<ide> end
<ide>
<ide> module ClassMethods
<add> # Name methods that should be called when the channel is subscribed to.
<add> # (These methods should be private, so they're not callable by the user).
<ide> def on_... | 3 |
PHP | PHP | remove inherited logic | 25ce1cc82396eefb829cb97b07eea39c52f06560 | <ide><path>lib/Cake/Console/Command/TestsuiteShell.php
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide>
<del>App::uses('Shell', 'Console');
<del>App::uses('CakeTestSuiteDispatcher', 'TestSuite');
<del>App::uses('CakeTestSuiteCommand', 'TestSuite');
<del>App::uses... | 1 |
Javascript | Javascript | fix config quickstart and download [ci skip] | e17ea88e542b2a4019e2aa552c2186bad03f52d7 | <ide><path>website/src/components/quickstart.js
<ide> const Quickstart = ({
<ide> )}
<ide> {download && (
<ide> <a
<del> href={`data:application/octet-stream,${getRawContent(contentRef)}`}
<add> ... | 2 |
Javascript | Javascript | change callback function to arrow function | 604578f47ea360980110e2cd7d4a636f9942b1f0 | <ide><path>test/parallel/test-http-default-encoding.js
<ide> const http = require('http');
<ide> const expected = 'This is a unicode text: سلام';
<ide> let result = '';
<ide>
<del>const server = http.Server(function(req, res) {
<add>const server = http.Server((req, res) => {
<ide> req.setEncoding('utf8');
<del> req... | 1 |
Javascript | Javascript | avoid invoking noop | b6389eedda4f24cf23d994fc22f030067c4ab13d | <ide><path>src/auto/injector.js
<ide> function createInjector(modulesToLoad, strictDi) {
<ide> }));
<ide>
<ide>
<del> forEach(loadModules(modulesToLoad), function(fn) { instanceInjector.invoke(fn || noop); });
<add> forEach(loadModules(modulesToLoad), function(fn) { if (fn) instanceInjector.invoke(fn); })... | 1 |
Python | Python | fix deprecation warning due to using query.value | 921ccedf7f90f15e8d18c27a77b29d232be3c8cb | <ide><path>airflow/models/dag.py
<ide> def concurrency_reached(self):
<ide> @provide_session
<ide> def get_is_active(self, session=NEW_SESSION) -> Optional[None]:
<ide> """Returns a boolean indicating whether this DAG is active"""
<del> qry = session.query(DagModel).filter(DagModel.dag_id == self... | 1 |
Text | Text | remove badges from title | 3efb4a5c59c80e5d4c6775553585e0ca15fca787 | <ide><path>README.md
<del># [Redux](http://gaearon.github.io/redux) [](https://travis-ci.org/gaearon/redux) [](https://www.npmjs.com/package/redux) [ in the Xray repository.
<add>- Engi... | 1 |
Java | Java | update copyright header | 3b8b3502a84714bd01594fca10e0afabcd2e48e4 | <ide><path>spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 1 |
PHP | PHP | fix missing check | c1958d51005f768122caba6bcb0be9e58d31d28c | <ide><path>src/Console/CommandRunner.php
<ide> public function run(array $argv, ConsoleIo $io = null)
<ide> 'help' => HelpCommand::class,
<ide> ]);
<ide> $commands = $this->app->console($commands);
<add> $this->checkCollection($commands, 'console');
<add>
<ide> if ($this->app ... | 3 |
Text | Text | fix broken link | f4d614aa31bbb616e225c418e4bbe57ad2f4ae5b | <ide><path>docs/HandlingTouches.md
<ide> In some cases, you may want to detect when a user presses and holds a view for a
<ide>
<ide> ## Scrolling lists and swiping views
<ide>
<del>A common pattern to many mobile apps is the scrollable list of items. Users interact with these using panning or swiping gestures. The [... | 1 |
Text | Text | fix documentation links | bbedf2da9a3a091eeb687d43029f7d2450cf2612 | <ide><path>react-native-git-upgrade/README.md
<ide> It uses Git under the hood to automatically resolve merge conflicts in project t
<ide>
<ide> ## Usage
<ide>
<del>See the [Upgrading docs](https://facebook.github.io/react-native/releases/next/docs/upgrading.html) on the React Native website.
<add>See the [Upgrading ... | 1 |
Ruby | Ruby | add tests for formula list methods | f8ff0f465f44943c470a2e683519d2b5459f109e | <ide><path>Library/Homebrew/test/spec_helper.rb
<ide> def find_files
<ide> CoreTap.instance.path/".git",
<ide> CoreTap.instance.alias_dir,
<ide> CoreTap.instance.path/"formula_renames.json",
<add> CoreTap.instance.path/"tap_migrations.json",
<add> CoreTap.instance.path/"audit_excep... | 2 |
Python | Python | use tf.select instead of tf.where (compat tf 0.11) | 30fa61d4576d103872a28ea8ae2281100a470388 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def rnn(step_function, inputs, initial_states,
<ide> for input, mask_t in zip(input_list, mask_list):
<ide> output, new_states = step_function(input, states + constants)
<ide>
<del> # tf.where needs its condition tensor
<ad... | 1 |
Ruby | Ruby | fix syntax error | 393df7425f9bd51efcb7d6e56864d1221af3254c | <ide><path>activestorage/lib/active_storage/service/s3_service.rb
<ide> def exist?(key)
<ide> def url_for_direct_upload(key, expires_in:, content_type:, content_length:, checksum:)
<ide> instrument :url, key: key do |payload|
<ide> generated_url = object_for(key).presigned_url :put, expires_in: expire... | 1 |
Javascript | Javascript | detect all types of aborts in windows | 6914aeaefd55b0b57364e70d0ef4374040539792 | <ide><path>test/common/index.js
<ide> exports.nodeProcessAborted = function nodeProcessAborted(exitCode, signal) {
<ide> // or SIGABRT (depending on the compiler).
<ide> const expectedSignals = ['SIGILL', 'SIGTRAP', 'SIGABRT'];
<ide>
<del> // On Windows, v8's base::OS::Abort triggers an access violation,
<add> /... | 1 |
Text | Text | remove inspector experimental warning | a7286f6af260ac3fe391507a734cf08710c124b1 | <ide><path>doc/api/debugger.md
<ide> flag instead of `--inspect`.
<ide>
<ide> ```txt
<ide> $ node --inspect index.js
<del>Debugger listening on port 9229.
<del>Warning: This is an experimental feature and could change at any time.
<add>Debugger listening on 127.0.0.1:9229.
<ide> To start debugging, open the following ... | 1 |
Ruby | Ruby | add pin info to tap-info | f3f8ca953fde402f39feab57b5809a28594b690a | <ide><path>Library/Homebrew/cmd/tap-info.rb
<ide> def print_tap_info(taps)
<ide> puts unless i == 0
<ide> info = "#{tap}: "
<ide> if tap.installed?
<add> info += tap.pinned? ? "pinned, " : "unpinned, "
<ide> formula_count = tap.formula_files.size
<ide> info += "#{for... | 1 |
Python | Python | remove unicode prefix that snuck in | b1fc8c19b20a12f30d0b3cc3eaa0a354551b8a6e | <ide><path>tests/migrations/test_operations.py
<ide> def test_create_model_inheritance(self):
<ide> ('pony_ptr', models.OneToOneField(
<ide> auto_created=True,
<ide> primary_key=True,
<del> to_field=u'id',
<add> to_field='id',... | 1 |
PHP | PHP | add total() to orm\query | 613a25aa4f614e48a7cd982eeff73e2dd4b35371 | <ide><path>Cake/ORM/Query.php
<ide> public function first() {
<ide> return $this->_results->one();
<ide> }
<ide>
<add>/**
<add> * Return the COUNT(*) for for the query.
<add> *
<add> * This method will replace the selected fields with a COUNT(*)
<add> * and execute the queries returning the number of rows.
<add> *
... | 2 |
PHP | PHP | fix method description leftovers | 653dc3db32a09797797e788d879367f9de67d52d | <ide><path>src/Illuminate/Validation/Factory.php
<ide> public function extendImplicit($rule, $extension, $message = null)
<ide> }
<ide>
<ide> /**
<del> * Register a custom implicit validator extension.
<add> * Register a custom dependent validator extension.
<ide> *
<ide> * @param string $... | 1 |
Javascript | Javascript | simplify force calculations | 51b8e023c1fdceb92141d0d496676d8ac950b261 | <ide><path>d3.js
<del>(function(){d3 = {version: "1.13.2"}; // semver
<add>(function(){d3 = {version: "1.13.3"}; // semver
<ide> if (!Date.now) Date.now = function() {
<ide> return +new Date();
<ide> };
<ide><path>d3.layout.js
<ide> d3.layout.force = function() {
<ide> links,
<ide> distances;
<ide>
<del>... | 6 |
Javascript | Javascript | improve euler closure performance | e3eb4e545a009b6900f2392c445c606e420294df | <ide><path>src/math/Euler.js
<ide> Object.assign( Euler.prototype, {
<ide>
<ide> setFromQuaternion: function () {
<ide>
<del> var matrix;
<add> var matrix = new Matrix4();
<ide>
<ide> return function setFromQuaternion( q, order, update ) {
<ide>
<del> if ( matrix === undefined ) matrix = new Matrix4();
<del>... | 1 |
PHP | PHP | remove old import | 5db2ae9b7619c5d49955ff1b964678ac29e267f4 | <ide><path>src/Illuminate/Routing/Controllers/Controller.php
<ide> use ReflectionClass;
<ide> use Illuminate\Routing\Router;
<ide> use Illuminate\Container\Container;
<del>use Doctrine\Common\Annotations\SimpleAnnotationReader;
<ide> use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
<ide>
<ide> class C... | 1 |
Go | Go | fix inspect when it returns nothing valid | 40ed10cc32fe6dbf18d13a43d42a1a9bed0df902 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdInspect(args ...string) error {
<ide> }
<ide> indented.WriteString(",")
<ide> }
<del> // Remove trailling ','
<del> indented.Truncate(indented.Len() - 1)
<ide>
<add> if indented.Len() > 0 {
<add> // Remove trailling ','
<add> indented.Truncate(indented.Len()... | 1 |
PHP | PHP | use asserttag for flash_helper element tests | ef108a76c84186a09db6b818f5702f67b0dc6f40 | <ide><path>tests/TestCase/View/Helper/FlashHelperTest.php
<ide> public function testFlash() {
<ide> $this->assertEquals($expected, $result);
<ide>
<ide> $result = $this->Flash->render('notification');
<del> $result = str_replace("\r\n", "\n", $result);
<del> $expected = "<div id=\"notificationLayout\">\n\t<h1>Al... | 1 |
Ruby | Ruby | call super setup in this test | edb69b9be3be8ea8477004625d1ddf3f3de37d77 | <ide><path>activerecord/test/cases/autosave_association_test.rb
<ide> class TestAutosaveAssociationValidationsOnAHasOneAssociation < ActiveRecord::Tes
<ide> def setup
<ide> @pirate = Pirate.create(:catchphrase => "Don' botharrr talkin' like one, savvy?")
<ide> @pirate.create_ship(:name => 'titanic')
<add> ... | 1 |
Python | Python | fix error handling on azure | 777ed8d4e159299991f88bf2a20cf71c1753f66c | <ide><path>libcloud/common/azure.py
<ide> def parse_error(self, msg=None):
<ide> try:
<ide> # Azure does give some meaningful errors, but is inconsistent
<ide> # Some APIs respond with an XML error. Others just dump HTML
<del> body = self.parse_body()
<del>
<del> # ... | 2 |
Python | Python | fix error class instantiation | 485da7222f7f9ca9854db1a6df027b00d348d017 | <ide><path>src/transformers/tokenization_bert_japanese.py
<ide> def __init__(
<ide> try:
<ide> import fugashi
<ide> except ModuleNotFoundError as error:
<del> raise error(
<add> raise error.__class__(
<ide> "You need to install fugashi to use MecabTokeni... | 1 |
Text | Text | update version reference | c9b42514136eb46c7bbbf2d67ae6a9ba196baa2b | <ide><path>CHANGELOG.md
<ide> This release reverts a breaking change that accidentally made it into the 1.5.1
<ide> ## Breaking Changes
<ide>
<ide> ### Upgrade to 1.5.1
<del>This version of AngularJS is problematic due to a issue during its release. Please upgrade to version 1.5.1.
<add>This version of AngularJS is pr... | 1 |
Javascript | Javascript | fix typo in debug statement | 6e56badf18c5af100ef6c4c461e1ed795229bd91 | <ide><path>lib/internal/main/worker_thread.js
<ide> port.on('message', (message) => {
<ide> process.stdin.push(null);
<ide>
<ide> debug(`[${threadId}] starts worker script ${filename} ` +
<del> `(eval = ${eval}) at cwd = ${process.cwd()}`);
<add> `(eval = ${doEval}) at cwd = ${process.cwd()... | 1 |
Javascript | Javascript | normalize ie xhr bug (status code 1223 to 204) | b2f5299e0e3d6e4892b7fcc37686012147bf0afa | <ide><path>src/Browser.js
<ide> function Browser(window, document, body, XHR, $log) {
<ide> });
<ide> xhr.onreadystatechange = function() {
<ide> if (xhr.readyState == 4) {
<del> completeOutstandingRequest(callback, xhr.status || 200, xhr.responseText);
<add> // normalize IE bug (h... | 2 |
Text | Text | fix typo in quick-start.md | ab291aabe04051f272150b72ac42369076858fae | <ide><path>docs/tutorials/quick-start.md
<ide> export function Counter() {
<ide> }
<ide> ```
<ide>
<del>Now, any time you click the "Increment" and "Decrement buttons:
<add>Now, any time you click the "Increment" and "Decrement" buttons:
<ide>
<ide> - The corresponding Redux action will be dispatched to the store
<id... | 1 |
Java | Java | fix deviceidentity on rn for android | e7765a32f7bf1f7ca17aa285b107358a768cbf4c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/JSCJavaScriptExecutorFactory.java
<ide> public JavaScriptExecutor create() throws Exception {
<ide> WritableNativeMap jscConfig = new WritableNativeMap();
<ide> jscConfig.putString("OwnerIdentity", "ReactNative");
<ide> jscConfig.putString("App... | 1 |
Javascript | Javascript | resolve fonts through options.font | e756fb93a3b8cb5a29de04d9bcf972295e38b21f | <ide><path>src/core/core.scale.js
<ide> function getTickMarkLength(options) {
<ide> /**
<ide> * @param {object} options
<ide> */
<del>function getScaleLabelHeight(options) {
<add>function getScaleLabelHeight(options, fallback) {
<ide> if (!options.display) {
<ide> return 0;
<ide> }
<ide>
<del> const font = toFon... | 7 |
Javascript | Javascript | fix typo and remove unused variables | da51cfdcce465dfd3224ca4c471bb9cb96026664 | <ide><path>packages/ember-application/lib/system/application.js
<ide> var Application = Ember.Application = Ember.Namespace.extend({
<ide> container = this.__container__,
<ide> graph = new Ember.DAG(),
<ide> namespace = this,
<del> properties, i, initializer;
<add> i, initializer;
... | 15 |
Go | Go | fix some context sharing/plumbing | 075b75fa14e878afa87ad4fd989f03a8541b13eb | <ide><path>api/client/container/restart.go
<ide> func NewRestartCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> }
<ide>
<ide> func runRestart(dockerCli *client.DockerCli, opts *restartOptions) error {
<add> ctx := context.Background()
<ide> var errs []string
<ide> for _, name := range opts.containers {
<... | 3 |
PHP | PHP | add start of decimal type | c3ff21d2d964ea8a7243de20709dd792896e2694 | <ide><path>lib/Cake/Model/Datasource/Database/Type.php
<ide> class Type {
<ide> */
<ide> protected static $_basicTypes = [
<ide> 'float' => ['callback' => 'floatval'],
<add> 'decimal' => ['callback' => 'floatval'],
<ide> 'integer' => ['callback' => 'intval', 'pdo' => PDO::PARAM_INT],
<ide> 'biginteger' => ['ca... | 2 |
Javascript | Javascript | remove map/set from rn open source | 93b9ac74e59bbe84ea388d7c1879857b4acab114 | <ide><path>Libraries/Core/InitializeCore.js
<ide> const start = Date.now();
<ide>
<ide> require('./setUpGlobals');
<del>require('./polyfillES6Collections');
<ide> require('./setUpSystrace');
<ide> require('./setUpErrorHandling');
<ide> require('./polyfillPromise');
<ide><path>Libraries/Core/__tests__/MapAndSetPolyfill... | 8 |
Ruby | Ruby | add audit for incorrect signing | e90371f8abd188c046692ed4998737cba656e697 | <ide><path>Library/Homebrew/cask/audit.rb
<ide> class Audit
<ide>
<ide> attr_reader :cask, :download
<ide>
<del> attr_predicate :appcast?, :new_cask?, :strict?, :online?, :token_conflicts?
<add> attr_predicate :appcast?, :new_cask?, :strict?, :signing?, :online?, :token_conflicts?
<ide>
<ide> def initi... | 4 |
Text | Text | suggest worker threads in cluster docs | 312b0fc7530f9543b0d3c448b56639115f61adf7 | <ide><path>doc/api/cluster.md
<ide>
<ide> <!-- source_link=lib/cluster.js -->
<ide>
<del>A single instance of Node.js runs in a single thread. To take advantage of
<del>multi-core systems, the user will sometimes want to launch a cluster of Node.js
<del>processes to handle the load.
<add>Clusters of Node.js processes... | 1 |
Python | Python | remove h5py requirement and made it optional | a582b184c9918cdf556c9892b70481deccded61d | <ide><path>setup.py
<ide> url='https://github.com/fchollet/keras',
<ide> download_url='https://github.com/fchollet/keras/tarball/0.1.2',
<ide> license='MIT',
<del> install_requires=['theano', 'pyyaml', 'h5py'],
<add> install_requires=['theano', 'pyyaml'],
<add> extras_require = {
<add> ... | 1 |
Ruby | Ruby | remove outdated comment | e73f869d8427e093a536cf10c38ec714264245d3 | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def set_cpu_cflags default=DEFAULT_FLAGS, map=Hardware::CPU.optimization_flags
<ide>
<ide> # actually c-compiler, so cc would be a better name
<ide> def compiler
<del> # TODO seems that ENV.clang in a Formula.install should warn when called
<del> # if the user ... | 1 |
PHP | PHP | fix optional parameters with default values | 85dc6feca45006ff2bd6f81867a343b646e89b29 | <ide><path>src/Controller/ControllerFactory.php
<ide> public function invoke($controller): ResponseInterface
<ide> // Primitive types are passed args as they can't be looked up in the container.
<ide> // We only handle strings currently.
<ide> if ($typeName === 'string') {
<del> ... | 3 |
PHP | PHP | apply suggestions from code review | 9c5c640d0871924a77a4f7db2b82884fb4227d89 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertJsonValidationErrors($errors)
<ide>
<ide> if (! is_int($key)) {
<ide> $hasError = false;
<add>
<ide> foreach (Arr::wrap($jsonErrors[$key]) as $jsonErrorMessage) {
<ide> ... | 1 |
Text | Text | correct the css example for 'appear' transition | 208f20b787e2d50eb4283cf6593b7a5353787c3d | <ide><path>docs/docs/10.1-animation.md
<ide> During the initial mount `ReactCSSTransitionGroup` will get the `example-appear`
<ide> ```css
<ide> .example-appear {
<ide> opacity: 0.01;
<del> transition: opacity .5s ease-in;
<ide> }
<ide>
<ide> .example-appear.example-appear-active {
<ide> opacity: 1;
<add> transi... | 1 |
PHP | PHP | fix typo in foreign key sql | c29bed81d476725a83cdb777bffa650598c32df8 | <ide><path>src/Database/Schema/PostgresSchema.php
<ide> protected function _keySql($prefix, $data) {
<ide> );
<ide> if ($data['type'] === Table::CONSTRAINT_FOREIGN) {
<ide> return $prefix . sprintf(
<del> ' FOREIGN KEY (%s) REFERENCES %s (%s) ON UPDATE %s ON DELETE %s DEFERABLE INITIALLY IMMEDIATE',
<add> ... | 2 |
Text | Text | add configurestore recipe | d4355ab0612089d4a728bf0207b3285d310114ca | <ide><path>docs/README.md
<ide> * [Example: Reddit API](advanced/ExampleRedditAPI.md)
<ide> * [Next Steps](advanced/NextSteps.md)
<ide> * [Recipes](recipes/README.md)
<add> * [Configuring Your Store](recipes/ConfiguringYourStore.md)
<ide> * [Migrating to Redux](recipes/MigratingToRedux.md)
<ide> * [Using Objec... | 3 |
Python | Python | move error to errors | ba22111ff407c3e6ea462626323c9048a3d9a4e4 | <ide><path>spacy/errors.py
<ide> class Errors:
<ide> E199 = ("Unable to merge 0-length span at doc[{start}:{end}].")
<ide>
<ide> # TODO: fix numbering after merging develop into master
<add> E952 = ("The section '{name}' is not a valid section in the provided config.")
<ide> E953 = ("Mismatched IDs rece... | 2 |
Ruby | Ruby | run `git am --abort` on failure | ed7693cecf677a5e55a450be2065168e4ebefdb7 | <ide><path>Library/Contributions/cmd/brew-pull.rb
<ide> def tap arg
<ide> revision = `git rev-parse --short HEAD`.strip
<ide>
<ide> ohai 'Applying patch'
<del> patch_args = ['am']
<add> patch_args = []
<ide> patch_args << '--signoff' unless ARGV.include? '--clean'
<ide> # Normally we don't want whitespace er... | 1 |
Ruby | Ruby | add tests to validate library versions | 86eca5ab4487f79b2f1c60645cca440d4bd068aa | <ide><path>Library/Homebrew/test/os/mac/pkgconfig_spec.rb
<add># frozen_string_literal: true
<add>
<add># These tests assume the needed SDKs are correctly installed, i.e. `brew doctor` passes.
<add># The CLT version installed should be the latest available for the running OS.
<add># The tests do not check other OS vers... | 1 |
Javascript | Javascript | fix bug where spinner wasn't called | 7301ba396915a54e1db9a2673a467639ff6cd0b1 | <ide><path>src/node.js
<ide>
<ide> nextTickQueue.push(obj);
<ide> infoBox[length]++;
<add>
<add> if (needSpinner) {
<add> _needTickCallback();
<add> needSpinner = false;
<add> }
<ide> }
<ide> };
<ide> | 1 |
Javascript | Javascript | increase fs promise coverage | 211cd0441a575222e9f0d3ce1f19091f8a5566cd | <ide><path>test/parallel/test-fs-promises-file-handle-readFile.js
<ide> const common = require('../common');
<ide> // FileHandle.readFile method.
<ide>
<ide> const fs = require('fs');
<del>const { open } = fs.promises;
<add>const {
<add> open,
<add> readFile,
<add> writeFile,
<add> truncate
<add>} = fs.promises;
<... | 4 |
Javascript | Javascript | reduce bytes and minor adjustments | cec4018d0e5249203aaba203cd67147a1162b435 | <ide><path>src/support.js
<ide> jQuery.support = (function() {
<ide> // Run fixed position tests at doc ready to avoid a crash
<ide> // related to the invisible body in IE8
<ide> jQuery(function() {
<del> var outer, inner, table, td, offsetSupport,
<add> var container, outer, inner, table, td, offsetSupport,
<ide>... | 1 |
Ruby | Ruby | check formula options properly to rule out bottle | 82d1310800dc225e8c561fb07c76a1e85434fdd4 | <ide><path>Library/Homebrew/bottles.rb
<ide> def install_bottle? f
<ide> return true if ARGV.include? '--install-bottle'
<ide> not ARGV.build_from_source? \
<ide> and ARGV.bottles_supported? \
<del> and ARGV.options_only.empty? \
<add> and ARGV.used_options(f).empty? \
<ide> and bottle_current?(f)
<id... | 1 |
Text | Text | update first package documentation | 5be6cfa67884b43ea7cefff3acbc4f2d0f1f1f1b | <ide><path>docs/your-first-package.md
<del># Creating Your First Package
<add># Create Your First Package
<ide>
<del>Let's take a look at creating your first package.
<add>We are going to create a simple package that replaces selected text with ascii
<add>art. So if "cool" was selected the output would be:
<ide>
<del... | 1 |
Text | Text | update stale event docs in tutorial | ea82dba555b3380bb7d3bd53c82276388657f102 | <ide><path>docs/docs/tutorial.md
<ide> var CommentForm = React.createClass({
<ide>
<ide> #### Events
<ide>
<del>React attaches event handlers to components using a camelCase naming convention. We attach an onKeyUp handler to the text field, check if the user has entered text and pressed the enter key and then clear t... | 1 |
Javascript | Javascript | avoid an allocation in readcharcode() | 61e6b576d40134c2921a9c738e362fd507df32a3 | <ide><path>src/core/cmap.js
<ide> var CMap = (function CMapClosure() {
<ide> return this._map;
<ide> },
<ide>
<del> readCharCode: function(str, offset) {
<add> readCharCode: function(str, offset, out) {
<ide> var c = 0;
<ide> var codespaceRanges = this.codespaceRanges;
<ide> var codes... | 3 |
Javascript | Javascript | add tests for application#injecttesthelpers | f61439fb16d852e46916715ec75b535b92af2cd3 | <ide><path>packages/ember-testing/tests/helpers_test.js
<ide> var App;
<ide>
<del>module("ember-testing Helpers", {
<del> teardown: function() {
<add>function cleanup(){
<add> if (App) {
<ide> Ember.run(App, App.destroy);
<ide> App.removeTestHelpers();
<ide> App = null;
<del> Ember.TEMPLATES = {};
<id... | 1 |
PHP | PHP | add test case cakephp | 725ca399d77b19e515075625c3f695c0f05bc5f9 | <ide><path>tests/TestCase/Validation/ValidationTest.php
<ide> public function testLocalizedTime()
<ide>
<ide> $this->assertFalse(Validation::localizedTime('', 'date'));
<ide> $this->assertFalse(Validation::localizedTime('invalid', 'date'));
<add> $this->assertFalse(Validation::localizedTime(1, '... | 1 |
Javascript | Javascript | delay closing stream | 87cd389bbfe69004c4792d4982908a350238a6da | <ide><path>lib/internal/http2/core.js
<ide> class Http2Stream extends Duplex {
<ide> !(state.flags & STREAM_FLAGS_HAS_TRAILERS) &&
<ide> !state.didRead &&
<ide> this.readableFlowing === null) {
<del> this.close();
<add> // By using setImmediate we allow pushStreams to make it... | 1 |
Javascript | Javascript | add fast toarray and toobject to raw sequences | 1eed7e134280d96b7b73c5fbb895cfa52e00cc32 | <ide><path>dist/Sequence.js
<ide> for(IndexedSequence____Key in IndexedSequence){if(IndexedSequence.hasOwnProperty
<ide> this.$ArraySequence_array = array;
<ide> }
<ide>
<add> ArraySequence.prototype.toArray=function() {"use strict";
<add> return this.$ArraySequence_array;
<add> };
<add>
<ide> ArraySequen... | 2 |
Java | Java | remove deprecated usage in contrib modules | 22048a3b89112a924ece815eb9531fd8b1bea1c1 | <ide><path>rxjava-contrib/rxjava-async-util/src/test/java/rx/util/async/AsyncTest.java
<ide> public String call() {
<ide> return "one";
<ide> }
<ide> };
<del> assertEquals("one", Async.start(func).toBlockingObservable().single());
<add> assertEquals("one", Async.start(f... | 10 |
Javascript | Javascript | cover error case in os getcheckedfunction() | 8d05a1590aaeab07050e019ac892e1ebacac456d | <ide><path>test/parallel/test-os-checked-function.js
<add>'use strict';
<add>// Monkey patch the os binding before requiring any other modules, including
<add>// common, which requires the os module.
<add>process.binding('os').getHomeDirectory = function(ctx) {
<add> ctx.syscall = 'foo';
<add> ctx.code = 'bar';
<add>... | 1 |
Javascript | Javascript | remove debugger statement from http_simple.js | 08bec7ab0a9be15373d89492123b210fd0a05763 | <ide><path>benchmark/http_simple.js
<ide> var server = http.createServer(function (req, res) {
<ide>
<ide> if (command == "bytes") {
<ide> var n = parseInt(arg, 10)
<del> debugger;
<ide> if (n <= 0)
<ide> throw "bytes called with n <= 0"
<ide> if (stored[n] === undefined) { | 1 |
Python | Python | add simple script to add pytest marks | 199943deb4da7c68f08f578b404dbc6208cc41ac | <ide><path>spacy/tests/regression/util_add_marker.py
<add>import re
<add>from pathlib import Path
<add>from typing import Optional
<add>
<add>import typer
<add>
<add>
<add>def main(
<add> filename: Path, out_file: Optional[Path] = typer.Option(None), dry_run: bool = False
<add>):
<add> """Add pytest issue markers... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.