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 | save one byte | d41ac85ca3773f1be5dd91d59060fc064ac22673 | <ide><path>src/manipulation.js
<ide> function cloneCopyEvent( src, dest ) {
<ide> }
<ide> }
<ide>
<add>function getAll( context, tag ) {
<add> var elems, elem,
<add> i = 0,
<add> ret = typeof context.getElementsByTagName !== "undefined" ? context.getElementsByTagName( tag || "*" ) :
<add> typeof context.querySele... | 1 |
Javascript | Javascript | remove reference to `diffuse` parameter | 43bedce7868cc5786641e8b32333af2e0249a046 | <ide><path>examples/js/loaders/MTLLoader.js
<ide> THREE.MTLLoader.MaterialCreator.prototype = {
<ide>
<ide> // Diffuse color (color under white light) using RGB values
<ide>
<del> params[ 'diffuse' ] = new THREE.Color().fromArray( value );
<add> params[ 'color' ] = new THREE.Color().fromArray( value );
<... | 1 |
Python | Python | add config.py for paddle example | d0c999e0ad26c0c8565b1fe119fd5761adac3a33 | <ide><path>examples/paddle/sentiment_bilstm/config.py
<add>from paddle.trainer_config_helpers import *
<add>
<add>define_py_data_sources2(train_list='train.list',
<add> test_list='test.list',
<add> module="dataprovider",
<add> obj="process")
<add>
<ad... | 1 |
Javascript | Javascript | implement unit testing and sanitize data values | 323e86c442782f12c137f62f6d530bc920e6fa8d | <ide><path>src/core/annotation.js
<ide> var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
<ide> function TextWidgetAnnotation(params) {
<ide> WidgetAnnotation.call(this, params);
<ide>
<del> this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
<del> this.data.maxLen =... | 3 |
Text | Text | add introduction to higher-order reducers | 5b0fc91f2079fd7fd864757cfc356763f381021c | <ide><path>docs/recipes/ImplementingUndoHistory.md
<ide> # Implementing Undo History
<ide>
<add>To add undo functionality (or any other functionality) to your existing
<add>reducers, you need to create a higher-order reducer, which is a function
<add>(reducer) that returns a reducer. This returned reducer is enhanced ... | 1 |
Javascript | Javascript | fix reference to mustfix in rctlog | 4b78ed2123e638f4169ee59fede35ac5ec204107 | <ide><path>Libraries/Utilities/RCTLog.js
<ide> var levelsMap = {
<ide> info: 'info',
<ide> warn: 'warn',
<ide> error: 'error',
<del> mustfix: 'error',
<add> fatal: 'error',
<ide> };
<ide>
<ide> class RCTLog { | 1 |
PHP | PHP | add public validate method to the validator | 8a73322ef2c56fa70d68d18a0fdc5265582539de | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> public function render($request, Exception $e)
<ide> $e = new NotFoundHttpException($e->getMessage(), $e);
<ide> } elseif ($e instanceof AuthorizationException) {
<ide> $e = new HttpException(403, $e->getMessage());
<del> ... | 3 |
Javascript | Javascript | use const instead of var | b5d8e974517593d2b82d7a234eddf81e9006892d | <ide><path>lib/WebAssemblyParser.js
<ide> */
<ide> "use strict";
<ide>
<del>var Tools = require("webassembly-interpreter/lib/tools");
<add>const Tools = require("webassembly-interpreter/lib/tools");
<ide>
<ide> const Tapable = require("tapable").Tapable;
<ide> const WebAssemblyImportDependency = require("./dependenci... | 1 |
Python | Python | fix typos and indentation in lfads.py | 730b778ebb95b663237a82649c92e47e9453a123 | <ide><path>research/lfads/lfads.py
<ide> 'train_ext_input' and 'valid_ext_input', if there are know external inputs
<ide> to the system being modeled, these take on dimensions:
<ide> ExTxI, E - # examples, T - # time steps, I = # dimensions in input.
<del> 'alignment_matrix_cxf' - If you are using mul... | 1 |
Text | Text | fix missing parentport link in worker_threads | 182ee78164a261836464364e6b5131df5c2c4d77 | <ide><path>doc/api/worker_threads.md
<ide> active handle in the event system. If the worker is already `unref()`ed calling
<ide> [`require('worker_threads').on('workerMessage')`]: #worker_threads_event_workermessage
<ide> [`require('worker_threads').postMessage()`]: #worker_threads_worker_postmessage_value_transferlist... | 1 |
Text | Text | add url argument with http/https request | 60d14c870274e9f193a81e8eb9b6a74fba3b4178 | <ide><path>doc/api/http.md
<ide> added to the [`'request'`][] event.
<ide> ## http.get(options[, callback])
<ide> <!-- YAML
<ide> added: v0.3.6
<add>changes:
<add> - version: v7.5.0
<add> pr-url: https://github.com/nodejs/node/pull/10638
<add> description: The `options` parameter can be a WHATWG `URL` object.
<i... | 2 |
Javascript | Javascript | fix onhashchange tests for ie | 0ad39dde4f4dd4c50e08ccfdc086fad3fe576ff2 | <ide><path>test/BrowserSpecs.js
<ide> describe('browser', function(){
<ide> expect(type).toEqual('hashchange');
<ide> onHashChngListener = listener;
<ide> },
<del> removeEventListener: angular.noop
<add> attachEvent: f... | 1 |
Text | Text | add active job to configuring guide [ci skip] | fc11ea4a0dea9b103544d1ae6ee3e92fa14432de | <ide><path>guides/CHANGELOG.md
<add>* New section in Configuring: Configuring Active Job
<add>
<add> *Eliot Sykes*
<add>
<ide> * New section in Active Record Association Basics: Single Table Inheritance
<ide>
<ide> *Andrey Nering*
<ide><path>guides/source/configuring.md
<ide> There are a few configuration o... | 2 |
Javascript | Javascript | fix animation of pdp dismissal | d1b507a5c371f308d6c8e56acfe96c03e9922084 | <ide><path>Libraries/Animated/src/createAnimatedComponent.js
<ide> function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>(
<ide> };
<ide>
<ide> _waitForUpdate = (): void => {
<del> // If this works well on iOS, we should remove this check
<ide> if (this._isFabric()) {
<ide> ... | 1 |
Ruby | Ruby | fix typo in headers comment | 67263020ec4c40ff1cef5080056b233e9d723116 | <ide><path>actionpack/lib/action_dispatch/http/headers.rb
<ide> module Http
<ide> # env = { "CONTENT_TYPE" => "text/plain", "HTTP_USER_AGENT" => "curl/7.43.0" }
<ide> # headers = ActionDispatch::Http::Headers.new(env)
<ide> # headers["Content-Type"] # => "text/plain"
<del> # headers["User-Age... | 1 |
Python | Python | make textvectorization work with list input | f604d042f892ded1d47c6ecbb6b8a9e71a0f1367 | <ide><path>keras/layers/preprocessing/text_vectorization.py
<ide> def build(self, input_shape):
<ide> # expression to evaluate to False instead of True if the shape is undefined;
<ide> # the expression needs to evaluate to True in that case.
<ide> if self._split is not None:
<del> if input_shape.ndims ... | 2 |
Javascript | Javascript | ensure options.flag defaults to 'r' in readfile | 2cd3e61b2f222c1e9e396dce6310203fdd960143 | <ide><path>lib/internal/fs/promises.js
<ide> async function readFileHandle(filehandle, options) {
<ide> }
<ide>
<ide> if (size === 0)
<del> return Buffer.alloc(0);
<add> return options.encoding ? '' : Buffer.alloc(0);
<ide>
<ide> if (size > kMaxLength)
<ide> throw new ERR_FS_FILE_TOO_LARGE(size);
<ide... | 3 |
PHP | PHP | fix unexpected output. flush expections | c90fc5f6b8e91e3f6b0f2f3a74cad7d8a49bc71b | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithConsole.php
<ide> trait InteractsWithConsole
<ide> public $expectedOutput = [];
<ide>
<ide> /**
<del> * All of the output lines that are expected to never be output.
<add> * All of the output lines that aren't expected to be displayed.
... | 2 |
Javascript | Javascript | remove unnecessary wrapping of jqlite element | 4daafd3dbe6a80d578f5a31df1bb99c77559543e | <ide><path>src/Angular.js
<ide> function baseExtend(dst, objs, deep) {
<ide> } else if (src.nodeName) {
<ide> dst[key] = src.cloneNode(true);
<ide> } else if (isElement(src)) {
<del> dst[key] = jqLite(src).clone();
<add> dst[key] = src.clone();
<ide> } else {
<ide> ... | 2 |
PHP | PHP | add union with limit and offset test for postgres | 06d37a4ee79da306d30f7daa89a612a3f859b34a | <ide><path>tests/Database/DatabaseQueryBuilderTest.php
<ide> public function testUnionLimitsAndOffsets()
<ide> $builder->union($this->getBuilder()->select('*')->from('dogs'));
<ide> $builder->skip(5)->take(10);
<ide> $this->assertEquals('select * from "users" union select * from "dogs" limit 10 ... | 1 |
Javascript | Javascript | fix missing return in example | 354e1cb5088a43fd4116504a34a65ca53c4de71b | <ide><path>Libraries/Text/Text.js
<ide> const viewConfig = {
<ide> * ```javascript
<ide> * class MyAppHeaderText extends Component {
<ide> * render() {
<del> * <MyAppText>
<del> * <Text style={{fontSize: 20}}>
<del> * {this.props.children}
<del> * </Text>
<del> * </MyAppText>
<add> * ... | 1 |
Javascript | Javascript | add spanish translation of comments | bd7bf6971f7bd0460211f9c2173b1c39da090687 | <ide><path>curriculum/dictionaries/espanol/comments.js
<add>/* eslint-disable max-len */
<add>// NOTE: updates to translations will not appear until the client is restarted
<add>// i.e. close it and run npm run develop
<add>
<add>// Only translate the text that is not surround by single backticks
<add>const TRANSLATION... | 1 |
Ruby | Ruby | remove duplicated code in `type_to_sql` | ab9cb600769acc6007521930857efd5699420f8d | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
<ide> def type_to_sql(type, limit: nil, precision: nil, scale: nil, array: nil, **) #
<ide> when 5..8; "bigint"
<ide> else raise ArgumentError, "No integer type has byte size #{limit}. Use a numeric... | 1 |
Javascript | Javascript | remove an unnecessary space | 99a7cb9fdff3c4968ccd4c78d00bc7f5cac5f333 | <ide><path>src/textures/Texture.js
<ide> Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
<ide> width: mipmap.width,
<ide> height: mipmap.height,
<ide> type: mipmap.data.constructor.name,
<del> array: Array.prototype.slice.call( mipmap.data )
<add> array: Array.pr... | 1 |
Python | Python | add volume methods in packet compute driver | 1a6a1c5f5ccf8575be066d5db1f2d5c4d155f18d | <ide><path>libcloud/compute/drivers/packet.py
<ide> """
<ide> Packet Driver
<ide> """
<del>try:
<add>try: # Try to use asyncio to perform requests in parallel across projects
<ide> import asyncio
<del>except ImportError:
<add>except ImportError: # If not available will do things serially
<ide> asyncio = None
<... | 1 |
Text | Text | add a bit about contributing to the guide | 9fcac1ab1cb48c50fdd21914678c632a568b2340 | <ide><path>docs/upgrading/upgrading-your-package.md
<ide> atom.workspaceView.command 'core:close core:cancel', ->
<ide>
<ide> Many selectors have changed, and we have introduced the [Shadow DOM][shadowdom] to the editor. See [Upgrading Your Package Selectors guide][upgrading-selectors] for more information in upgradin... | 1 |
Text | Text | translate ref 04 to korean | ade720d4d9ffb44afb9d0a245fbc37a5b6fdb61f | <ide><path>docs/docs/ref-04-tags-and-attributes.ko-KR.md
<add>---
<add>id: tags-and-attributes-ko-KR
<add>title: 태그와 어트리뷰트
<add>permalink: tags-and-attributes.ko-KR.html
<add>prev: component-specs.ko-KR.html
<add>next: events.ko-KR.html
<add>---
<add>
<add>## 지원되는 태그
<add>
<add>React는 모든 공통 엘리먼트를 지원하려 합니다. 필요한 엘리먼트가 리스... | 1 |
Javascript | Javascript | fix another regression on pdf.pdf#5 | 8145c00215f9d0c8c5b81fcd069961bf32d6b98b | <ide><path>fonts.js
<ide> var Font = (function Font() {
<ide>
<ide> // Wrap the CFF data inside an OTF font file
<ide> data = this.convert(name, cff, properties);
<del> writeToFile(data, "/tmp/" + name + ".otf");
<ide> break;
<ide>
<ide> case 'TrueType':
<ide> var Type2CFF = (func... | 1 |
Text | Text | correct typos in make an rpg | ec5b25ee1a5b09849503f76932102e973e6d1776 | <ide><path>curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3b49686792938718b90d3.md
<ide> dashedName: step-26
<ide>
<ide> # --description--
<ide>
<del>The variables you have assigned have all had values that are numbers. JavaScrip... | 2 |
Go | Go | add exported status code from a job | f90029611fec082a41b5629e43a88a39f0674fe2 | <ide><path>engine/job.go
<ide> func (job *Job) Error(err error) Status {
<ide> fmt.Fprintf(job.Stderr, "%s\n", err)
<ide> return StatusErr
<ide> }
<add>
<add>func (job *Job) StatusCode() int {
<add> return int(job.status)
<add>} | 1 |
Python | Python | fix serialization during training | 0a9016cadeb93b33deb711764177127c5f187a09 | <ide><path>spacy/cli/train.py
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
<ide> util.set_env_log(False)
<ide> epoch_model_path = output_path / ('model%d' % i)
<ide> nlp.to_disk(epoch_model_path)
<del> #nlp_loaded = lan... | 1 |
PHP | PHP | fix incorrect return type | 7c1f079ce047b83cdee0787bea86468262a0f22d | <ide><path>src/Illuminate/Cache/RedisStore.php
<ide> public function tags($names)
<ide> /**
<ide> * Get the Redis connection instance.
<ide> *
<del> * @return \Predis\ClientInterface
<add> * @return \Illuminate\Redis\Connections\Connection
<ide> */
<ide> public function connection()
<ide>... | 1 |
Javascript | Javascript | support a matching function for data param | 08daa7797bce5207916251d4a0ab3d5c93e5529a | <ide><path>src/ngMock/angular-mocks.js
<ide> function createHttpBackendMock($rootScope, $delegate, $browser) {
<ide> *
<ide> * @param {string} method HTTP method.
<ide> * @param {string|RegExp} url HTTP url.
<del> * @param {(string|RegExp)=} data HTTP request body.
<add> * @param {(string|RegExp|function(s... | 2 |
Go | Go | remove unused authconfig from session | 541ed077a66894c96f22eb1f1a74a504fa014567 | <ide><path>registry/service.go
<ide> func (s *DefaultService) Search(ctx context.Context, term string, limit int, aut
<ide> }
<ide> }
<ide>
<del> r := newSession(client, authConfig, endpoint)
<add> r := newSession(client, endpoint)
<ide>
<ide> if index.Official {
<ide> // If pull "library/foo", it's stored loca... | 2 |
Text | Text | fix 3 typos in #explanation | 30b8d414218e91fe9c48f2e3a9c5b32a56e61a5d | <ide><path>guide/english/c/hello-world/index.md
<ide> To write on console you can use the function `printf()` contained in the library
<ide> * The stdio.h file contains functions such as scanf() and printf() to take input and display output respectively.
<ide> * If you use printf() function without writing #include <... | 1 |
Javascript | Javascript | fix trailing build issues | 34c4474472d6877f970c3763de4769d2b98718ab | <ide><path>grunt/config/browserify.js
<ide> var SECRET_INTERNALS_NAME = 'React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_
<ide> var shimSharedModules = globalShim.configure({
<ide> './ReactCurrentOwner': SECRET_INTERNALS_NAME + '.ReactCurrentOwner',
<ide> './ReactComponentTreeHook': SECRET_INTERNALS_NAME + '.Rea... | 3 |
Ruby | Ruby | remove unused argument | cadd9661ad407340a297bd8f1c71a4c02a808f0c | <ide><path>activerecord/lib/active_record/connection_handling.rb
<ide> def connected_to(database: nil, role: nil, shard: nil, prevent_writes: false, &b
<ide>
<ide> with_handler(role, &blk)
<ide> elsif shard
<del> with_shard(connection_specification_name, shard, role || current_role, prevent_writes... | 1 |
Javascript | Javascript | simplify previousnode boundary calculation | b5714ce1dfca743733e84431161fc888fdcad24a | <ide><path>src/ng/directive/ngRepeat.js
<ide> var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
<ide> key = (collection === collectionKeys) ? index : collectionKeys[index];
<ide> value = collection[key];
<ide> block = nextBlockOrder[index];
<del> ... | 1 |
Mixed | Go | add short flag for force | 955c35b6a62f26e7ca36fa6378110ce7af8916a4 | <ide><path>cli/command/node/remove.go
<ide> func newRemoveCommand(dockerCli *command.DockerCli) *cobra.Command {
<ide> },
<ide> }
<ide> flags := cmd.Flags()
<del> flags.BoolVar(&opts.force, "force", false, "Force remove a node from the swarm")
<add> flags.BoolVarP(&opts.force, "force", "f", false, "Force remove a n... | 4 |
Ruby | Ruby | remove unnecessary variable | d274f7a8a0db4eef81d0b754e2b5e1c135fff10b | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def version_for_sha sha
<ide> # Unload the class so Formula#version returns the correct value
<ide> begin
<ide> Object.send(:remove_const, Formula.class_s(name))
<del> version = nostdout { Formula.factory(path).version }
<del> ... | 1 |
Python | Python | fix bart type hints | 59a9c83e40f879f5060eff99968dc688a56d0d0d | <ide><path>src/transformers/models/plbart/modeling_plbart.py
<ide> import copy
<ide> import math
<ide> import random
<del>from typing import List, Optional, Tuple, Union
<add>from typing import Any, Dict, List, Optional, Tuple, Union
<ide>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> def get_decoder(se... | 1 |
Text | Text | update wasi example to use import.meta.url | 162f07b7af24692de32d47b26e7cc5e52fc4e0c2 | <ide><path>doc/api/wasi.md
<ide> specification. WASI gives sandboxed WebAssembly applications access to the
<ide> underlying operating system via a collection of POSIX-like functions.
<ide>
<ide> ```mjs
<del>import fs from 'fs';
<add>import { readFile } from 'fs/promises';
<ide> import { WASI } from 'wasi';
<ide> impo... | 1 |
Text | Text | add v1.2.5 changes | e9c79cad437605171894e2d1aad842e662b8579c | <ide><path>CHANGELOG.md
<add><a name="1.2.5"></a>
<add># 1.2.5 singularity-expansion (2013-12-13)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:** allow literals in isolate scope references
<add> ([43072e38](https://github.com/angular/angular.js/commit/43072e3812e32b89b97ad03144577cba50d4b776),
<add> [#5296]... | 1 |
Text | Text | add v3.25.0-beta.1 to changelog | 2bb644532d407d4b4700a81f510c5aed4caf5d84 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.25.0-beta.1 (December 28, 2020)
<add>
<add>- [#19302](https://github.com/emberjs/ember.js/pull/19302) / [#19306](https://github.com/emberjs/ember.js/pull/19306) / [#19319](https://github.com/emberjs/ember.js/pull/19319) [FEATURE] Implement the [Handleba... | 1 |
Javascript | Javascript | add leanpub to the list of showcase apps | 19df8ba698e3b7c597a5522d6b229737f5aaadab | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/youmeyou/id949540333?mt=8',
<ide> author: 'youmeyou, LLC',
<ide> },
<add> {
<add> name: 'Leanpub',
<add> icon: 'http://a2.mzstatic.com/us/r30/Purple6/v4/9f/4a/6f/9f4a6f8c-8951-ed89-4083-74ace... | 1 |
Mixed | Ruby | add config option for cookies digest | 29be3f5d8386fc9a8a67844fa9b7d6860574e715 | <ide><path>actionpack/CHANGELOG.md
<add>* Add `config.action_dispatch.cookies_digest` option for setting custom
<add> digest. The default remains the same - 'SHA1'.
<add>
<add> *Łukasz Strzałkowski*
<add>
<ide> * Extract source code for the entire exception stack trace for
<ide> better debugging and diagn... | 5 |
Ruby | Ruby | collapse checkable_urls methods into one method | 064e93df5b32c9914fcfaf9702cd32ba4d7b7ebb | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def print_latest_version(info, args:)
<ide> puts "#{formula_or_cask_s} : #{current_s} ==> #{latest_s}"
<ide> end
<ide>
<del> # Returns an Array containing the formula URLs that can be used by livecheck.
<add> # Returns an Array containing the for... | 1 |
PHP | PHP | add env variable for compiled view path | 5ea6fe18a89c3d0f5c0860d3777bff97510577b5 | <ide><path>config/view.php
<ide> |
<ide> */
<ide>
<del> 'compiled' => realpath(storage_path('framework/views')),
<add> 'compiled' => env(
<add> 'VIEW_COMPILED_PATH',
<add> realpath(storage_path('framework/views'))
<add> ),
<ide>
<ide> ]; | 1 |
Text | Text | update installation instructions in readme | 99041de31a80af789441a84181953a7282d6c64d | <ide><path>README.md
<ide>
<ide> ## Installation
<ide>
<del>You can download the latest version of [Chart.js on GitHub](https://github.com/chartjs/Chart.js/releases/latest) or just use these [Chart.js CDN](https://cdnjs.com/libraries/Chart.js) links.
<add>You can download the latest version of Chart.js from the [GitH... | 1 |
Ruby | Ruby | optimize layout lookup to avoid double calls | 239262fee03096d1e52acf8fe69de736726d87e0 | <ide><path>actionpack/lib/abstract_controller/layouts.rb
<ide> module Layouts
<ide> included do
<ide> class_attribute :_layout_conditions
<ide> remove_possible_method :_layout_conditions
<del> delegate :_layout_conditions, :to => :'self.class'
<ide> self._layout_conditions = {}
<ide> _w... | 4 |
Javascript | Javascript | improve getid guard | 45eef8b6b5df27c661b3e33e579abc11b563c65b | <ide><path>packages/react-devtools-shared/src/backend/legacy/renderer.js
<ide> export function attach(
<ide> }
<ide>
<ide> function getID(internalInstance: InternalInstance): number {
<del> if (typeof internalInstance !== 'object') {
<add> if (typeof internalInstance !== 'object' || internalInstance === null... | 1 |
PHP | PHP | fix path output for cli | da7f3d87c393db17be249746f3a3a60ace90c237 | <ide><path>src/Console/Command/HelpCommand.php
<ide> protected function outputPaths(ConsoleIo $io): void
<ide> {
<ide> $paths = [];
<ide> if (Configure::check('App.dir')) {
<add> $appPath = rtrim(Configure::read('App.dir'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
<ide> // ... | 1 |
Ruby | Ruby | teach download strategies to take a softwarespec | 56fe164e952e888496bc81495cfc0f66338d50d5 | <ide><path>Library/Homebrew/cmd/create.rb
<ide> def generate
<ide>
<ide> unless ARGV.include? "--no-fetch" and version
<ide> strategy = DownloadStrategyDetector.new(url).detect
<del> @sha1 = strategy.new(url, name, version, nil).fetch.sha1 if strategy == CurlDownloadStrategy
<add> spec = SoftwareSp... | 4 |
Javascript | Javascript | fix typechecks for isrenderedbyreact() | 1be6c592a64ac8c996763b875a80b17c0193b309 | <ide><path>src/core/ReactInstanceHandles.js
<ide> var ReactInstanceHandles = {
<ide> /**
<ide> * True if the supplied `node` is rendered by React.
<ide> *
<del> * @param {DOMEventTarget} node DOM Element to check.
<add> * @param {*} node DOM Element to check.
<ide> * @return {boolean} True if the DOM Ele... | 3 |
Javascript | Javascript | fix bad test in test-cli-eval.js | f9cfd709460e04c8417e7784e6e3b264d3ff6c69 | <ide><path>test/simple/test-cli-eval.js
<ide> child.exec(nodejs + ' --eval 42',
<ide> assert.equal(stdout, '');
<ide> });
<ide>
<del>// assert that nothing is written to stdout
<del>child.exec(nodejs + ' --eval console.log(42)',
<add>// assert that "42\n" is written to stderr
<add>child.exec(nodejs + ' --eva... | 1 |
Java | Java | delete unused imports | ac22b786be71972f9da39836020516b92c021d5c | <ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/InterceptorRegistryTests.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "L... | 7 |
Python | Python | add code to detect msvc used to build python | 0ba62e66aef44d52f228c351366c4c021fd7a0fb | <ide><path>numpy/random/setup.py
<ide> from os.path import join, split
<add>import sys
<add>
<add>def msvc_version():
<add> """Return the msvc version used to build the running python, None if not
<add> built with MSVC."""
<add> msc_pos = sys.version.find('MSC v.')
<add> if msc_pos != -1:
<add> retur... | 1 |
Javascript | Javascript | use a set for better performance | dab1c30b8f479bc279845cb02253898812668595 | <ide><path>lib/util/propertyAccess.js
<ide> "use strict";
<ide>
<ide> const SAFE_IDENTIFIER = /^[_a-zA-Z$][_a-zA-Z$0-9]*$/;
<del>const RESERVED_IDENTIFER = [
<add>const RESERVED_IDENTIFER = new Set([
<ide> "break",
<ide> "case",
<ide> "catch",
<ide> const RESERVED_IDENTIFER = [
<ide> "null",
<ide> "true",
<ide> ... | 1 |
PHP | PHP | add test for assertstatuscode and cleanup | 9f4865f287d28dc5cc57bd17aa739149160aef37 | <ide><path>src/TestSuite/IntegrationTestCase.php
<ide> abstract class IntegrationTestCase extends TestCase {
<ide> protected $_requestSession;
<ide>
<ide> /**
<del> * Reset the EventManager for before each test.
<add> * Resets the EventManager for before each test.
<ide> *
<ide> * @return void
<ide> */
<ide> publi... | 2 |
Ruby | Ruby | use redefine_method since baz is already defined | 3e336f9ab70305386e941b2bed34e1dfac80a9f8 | <ide><path>actionpack/test/fixtures/alternate_helpers/foo_helper.rb
<ide> module FooHelper
<del> def baz() end
<add> redefine_method(:baz) {}
<ide> end | 1 |
Text | Text | use combinereducers like everywhere | 5b1645ccebc81f3d4dda2565ce8d51f6972d01d2 | <ide><path>docs/api/applyMiddleware.md
<ide> Middleware is not baked into [`createStore`](createStore.md) and is not a fundam
<ide> #### Example: Using Thunk Middleware for Async Actions
<ide>
<ide> ```js
<del>import { createStore, applyMiddleware } from 'redux';
<add>import { createStore, combineReducers, applyMiddle... | 1 |
Python | Python | add mixed precision support to transformer | f8ec01aec2535993881b018a84be4545ea64e7a7 | <ide><path>official/transformer/model/model_utils.py
<ide>
<ide> import math
<ide>
<add>import numpy as np
<ide> import tensorflow as tf
<ide>
<del>_NEG_INF = -1e9
<add># Very low numbers to represent -infinity. We do not actually use -Inf, since we
<add># want to be able to multiply these values by zero to get zero... | 7 |
Ruby | Ruby | replace guides.ror.org/v4.2.0 with guides.ror.org | 902da271f54c9f3ceec93c66c1d9b4f7856c8f4d | <ide><path>activejob/lib/active_job/queue_adapters/inline_adapter.rb
<ide> def enqueue(job) #:nodoc:
<ide> end
<ide>
<ide> def enqueue_at(*) #:nodoc:
<del> raise NotImplementedError.new("Use a queueing backend to enqueue jobs in the future. Read more at http://guides.rubyonrails.org/v4.2.0/act... | 1 |
Javascript | Javascript | fix broken link in module.html | e9639ee7e8705516e3b4b9ba7ee19d8e210afa9a | <ide><path>tools/doc/type-parser.js
<ide> const customTypesMap = {
<ide> 'module': 'modules.html#modules_the_module_object',
<ide>
<ide> 'module.SourceMap':
<del> 'modules_module.html#modules_module_class_module_sourcemap',
<add> 'module.html#module_class_module_sourcemap',
<ide>
<ide> 'require': 'modules... | 1 |
Ruby | Ruby | use the right indentation | 5487f627413e77cfa7f0d6cc2fe9c214ffb299ba | <ide><path>actionview/lib/action_view/layouts.rb
<ide> def inherited(klass) # :nodoc:
<ide> # This module is mixed in if layout conditions are provided. This means
<ide> # that if no layout conditions are used, this method is not used
<ide> module LayoutConditions # :nodoc:
<del> private
<add> ... | 1 |
Ruby | Ruby | use strip_heredoc where possible | a4f812f512cf83f5330562bcdf0b2a4199179466 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def set_default_accessors!
<ide>
<ide> def database_gemfile_entry
<ide> options[:skip_active_record] ? "" :
<del> <<-GEMFILE.gsub(/^ {12}/, '').strip
<add> <<-GEMFILE.strip_heredoc.chomp
<ide> # Use #{options[:datab... | 1 |
Go | Go | add tests for case a) and d) in | 6d23c3c57a733436d902b7883f2f0b00846df9e2 | <ide><path>integration-cli/docker_cli_pull_test.go
<ide> func (s *DockerHubPullSuite) TestPullClientDisconnect(c *check.C) {
<ide> _, err = s.CmdWithError("inspect", repoName)
<ide> c.Assert(err, checker.NotNil, check.Commentf("image was pulled after client disconnected"))
<ide> }
<add>
<add>func (s *DockerRegistryAu... | 2 |
Javascript | Javascript | provide rtl support for swipeablerow | 7e5fc179839d1f0e5b82df307e9a0ef19f2874b1 | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableRow.js
<ide> const {PropTypes} = React;
<ide>
<ide> const emptyFunction = require('fbjs/lib/emptyFunction');
<ide>
<add>const I18nManager = require('NativeModules').I18nManager || {};
<add>const IS_RTL = I18nManager.isRTL;
<add>
<ide> // NOTE: Eventually convert... | 1 |
Text | Text | fix broken link | 74f50df250ba08c47d90c53bc2d590c43d9c95fe | <ide><path>docs/configuration/index.md
<ide> Chart type determines the main type of the chart.
<ide>
<ide> ### data
<ide>
<del>See [Data Structures](../general/data-structures) for details.
<add>See [Data Structures](../general/data-structures.md) for details.
<ide>
<ide> ### options
<ide> | 1 |
Python | Python | ignore none in config_list | 567a14be00a4638b0dd822909ac50c27ecf979f3 | <ide><path>scipy_distutils/misc_util.py
<ide> def get_frame(level=0):
<ide> def merge_config_dicts(config_list):
<ide> result = default_config_dict()
<ide> for d in config_list:
<add> if not d: continue
<ide> name = d.get('name',None)
<ide> if name is not None:
<ide> result['n... | 1 |
PHP | PHP | remove old property | 9c48671932c6ee631b5c2a6ee6513582062c5b92 | <ide><path>src/Illuminate/Notifications/Notification.php
<ide> class Notification
<ide> */
<ide> public $notifiables;
<ide>
<del> /**
<del> * The channels that the notification should be sent through.
<del> */
<del> public $via = [];
<del>
<ide> /**
<ide> * The name of the application s... | 1 |
Javascript | Javascript | add count() method to reactchildren | 1aa9cc6a8b33b6b9f9fcfee12ed812dbae003be7 | <ide><path>src/utils/ReactChildren.js
<ide> function mapChildren(children, func, context) {
<ide> return mapResult;
<ide> }
<ide>
<add>/**
<add>* Count the number of children that are typically specified as
<add>* `props.children`.
<add>*/
<add>
<add>function forEachSingleChildDummy(traverseContext, child, name, i) ... | 3 |
Javascript | Javascript | expand quickstart widget with cuda 11.1 and 11.2 | 3e5bd5055e8cd2198f4432fa765be11bb2f47ddd | <ide><path>website/src/widgets/quickstart-install.js
<ide> const CUDA = {
<ide> '10.1': 'cuda101',
<ide> '10.2': 'cuda102',
<ide> '11.0': 'cuda110',
<add> '11.1': 'cuda111',
<add> '11.2': 'cuda112',
<ide> }
<ide> const LANG_EXTRAS = ['ja'] // only for languages with models
<ide> | 1 |
Java | Java | improve error handling of user provided observers | 38e9e3fbf8e9e705b2ba23443c6976ac46d9fb8e | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import java.util.concurrent.CountDownLatch;
<ide> import java.util.concurrent.Future;
<ide> import java.util.concurrent.TimeUnit;
<add>import java.util.concurrent.atomic.AtomicInteger;
<ide> import java.util.concurrent.atomic.AtomicReference;
<ide>
<ide> im... | 5 |
Javascript | Javascript | use dedupe plugin later in compilation | 3419ddcb299fdde6bd226c0d5d9b31a0404ea358 | <ide><path>lib/Compilation.js
<ide> Compilation.prototype.seal = function seal(callback) {
<ide> return callback(err);
<ide> }
<ide>
<add> this.applyPlugins("after-optimize-tree", this.chunks, this.modules);
<add>
<ide> var shouldRecord = this.applyPluginsBailResult("should-record") !== false;
<ide>
<ide> t... | 2 |
Text | Text | remove superfluous text in onboarding-extras | 6ec41bbdd7755e25049a584f2080d1bdfd7314c0 | <ide><path>doc/onboarding-extras.md
<ide> If you cannot find who to cc for a file, `git shortlog -n -s <file>` may help.
<ide>
<ide> ## Labels
<ide>
<del>### By Subsystem
<del>
<del>Subsystems include:
<add>### Subsystems
<ide>
<ide> * `lib/*.js` (`assert`, `buffer`, etc.)
<ide> * `build`
<ide> request.
<ide>
<ide>... | 1 |
Python | Python | move loadtxt bytes/str detection much earlier | 3affc1738f656445493b8976a489f562a97cfb0c | <ide><path>numpy/lib/npyio.py
<ide> def read_data(lineno_words_iter, chunk_size):
<ide> if _is_string_like(fname):
<ide> fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
<ide> fencoding = getattr(fh, 'encoding', 'latin1')
<del> fh = iter(fh)
<add> line_i... | 1 |
Python | Python | use integer shape if available | b5df1c617029faf675cdb681a9e0033497245992 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def dot(x, y):
<ide> if ndim(x) is not None and (ndim(x) > 2 or ndim(y) > 2):
<ide> x_shape = []
<ide> for i, s in zip(int_shape(x), tf.unpack(tf.shape(x))):
<del> if s is None:
<add> if i is not None:
<ide> x... | 1 |
Javascript | Javascript | fix fragment handling in totree() | 8b83ea02f5abc7bf526b7e104a2cb73b034df5c2 | <ide><path>packages/react-test-renderer/src/ReactTestRenderer.js
<ide> import {
<ide> FunctionalComponent,
<ide> ClassComponent,
<ide> HostComponent,
<add> HostPortal,
<ide> HostText,
<ide> HostRoot,
<ide> } from 'shared/ReactTypeOfWork';
<ide> function toJSON(inst: Instance | TextInstance): ReactTestRendere... | 2 |
Java | Java | fix showshorizontalscrollindicator for scrollview | e6ad91b5a218bec73a10a9064e9178235b12c557 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java
<ide> import javax.annotation.Nullable;
<ide>
<ide> import com.facebook.react.bridge.ReadableArray;
<add>import com.facebook.react.uimanager.ReactProp;
<ide> import com.facebook.react.uimanager.ThemedReactContex... | 2 |
Javascript | Javascript | create experiment for `collapsable` (ios) | f598dd0ee3670075e8f9480aeb1489e7ad5c63e8 | <ide><path>Libraries/Components/View/ViewInjection.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow strict
<add> * @format
<add> */
<a... | 2 |
Text | Text | add dash between sha and pr in changelog | 420d4e461dcb64bd52b6cce97bcff405efd6878a | <ide><path>doc/changelogs/CHANGELOG_V8.md
<ide> Big thanks to @addaleax who prepared the vast majority of this release.
<ide> * **Build**
<ide> * The compiler version requirement to build Node with GCC has been raised to
<ide> GCC 4.9.4.
<del> [[`820b011ed6`](https://github.com/nodejs/node/commit/820b011ed6)]
... | 2 |
Javascript | Javascript | remove unused polyvinyl functions | 128cb813cb9d145dce3ee2e7c48384046a1af7b0 | <ide><path>client/src/templates/Challenges/rechallenge/transformers.js
<ide> import {
<ide>
<ide> import protect from '@freecodecamp/loop-protect';
<ide>
<del>import * as vinyl from '../../../../../utils/polyvinyl.js';
<add>import {
<add> transformContents,
<add> transformHeadTailAndContents,
<add> setExt,
<add> ... | 2 |
Go | Go | fix memory swappiness lxc | a38b544ef082bcea76c4ea13e19d935ac09d3498 | <ide><path>daemon/execdriver/lxc/lxc_template.go
<ide> lxc.cgroup.blkio.weight = {{.Resources.BlkioWeight}}
<ide> {{if .Resources.OomKillDisable}}
<ide> lxc.cgroup.memory.oom_control = {{.Resources.OomKillDisable}}
<ide> {{end}}
<del>{{if .Resources.MemorySwappiness}}
<add>{{if gt .Resources.MemorySwappiness 0}}
<ide> ... | 1 |
Javascript | Javascript | add switch example | c9c14ef6872eb90b7305e0bc19cded76ce851186 | <ide><path>packages/rn-tester/js/examples/Switch/SwitchExample.js
<ide> 'use strict';
<ide>
<ide> const React = require('react');
<del>const {Switch, Text, View} = require('react-native');
<add>const {Switch, Text, View, Platform} = require('react-native');
<ide>
<ide> type OnOffIndicatorProps = $ReadOnly<{|on: boole... | 1 |
Ruby | Ruby | handle nil runtime_dependencies | 4e5c8a35e54cf999b85eb3f393b043d208bae2c3 | <ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> def upgrade_formula(f)
<ide> # @private
<ide> def depends_on(a, b)
<ide> if a.opt_or_installed_prefix_keg
<del> .runtime_dependencies
<del> .any? { |d| d["full_name"] == b.full_name }
<add> &.runtime_dependencies
<add> &.any? { |d| d["fu... | 1 |
Javascript | Javascript | use primordials when calling methods of error | 1da672994ac26658375db2b6a60fb00e56d02a4d | <ide><path>lib/assert.js
<ide>
<ide> const {
<ide> Error,
<add> ErrorCaptureStackTrace,
<ide> ObjectAssign,
<ide> ObjectIs,
<ide> ObjectKeys,
<ide> function getErrMessage(message, fn) {
<ide> // We only need the stack trace. To minimize the overhead use an object
<ide> // instead of an error.
<ide> cons... | 8 |
Javascript | Javascript | remove cachegroup argument from addmodule | 52634e7a2dc616942e47f4a52157dda7b3de00f6 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide>
<ide> /**
<ide> * @param {Module} module module to be added that was created
<del> * @param {any=} cacheGroup cacheGroup it is apart of
<ide> * @returns {Module} returns the module in the compilation,
<ide> * it could be the passed one (if new), or ... | 1 |
Go | Go | introduce a checkcontainer to remove duplication | 12485d62eeba27119260dc5eb54ac4fa83c3130b | <ide><path>daemon/container.go
<ide> func (daemon *Daemon) GetContainer(prefixOrName string) (*container.Container, e
<ide> return daemon.containers.Get(containerID), nil
<ide> }
<ide>
<add>// checkContainer make sure the specified container validates the specified conditions
<add>func (daemon *Daemon) checkContainer... | 2 |
Text | Text | add link to 3.x reference | e2e91fed7048b9f5190c46a007d9cec362f40ead | <ide><path>API.md
<ide> # D3 API Reference
<ide>
<del>D3 4.0 is a [collection of modules](https://github.com/d3) that are designed to work together; you can use the modules independently, or you can use them together as part of the default build. The source and documentation for each module is available in its reposit... | 1 |
Ruby | Ruby | move auditor classes into separate files | dc11f02e16a223098f0ffc087764fe24c34ce973 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> require "digest"
<ide> require "cli/parser"
<ide> require "json"
<add>require "formula_auditor"
<ide> require "tap_auditor"
<ide>
<ide> module Homebrew
<ide> def format_problem_lines(problems)
<ide> def format_problem(message, location)
<ide> "* #{location&.to_s... | 6 |
Text | Text | update releaser in v12.18.4 changelog | 524123fbf064ff64bb6fcd83485cfc27db932f68 | <ide><path>doc/changelogs/CHANGELOG_V12.md
<ide> * [Archive](CHANGELOG_ARCHIVE.md)
<ide>
<ide> <a id="12.18.4"></a>
<del>## 2020-09-15, Version 12.18.4 'Erbium' (LTS), @targos
<add>## 2020-09-15, Version 12.18.4 'Erbium' (LTS), @BethGriggs prepared by @targos
<ide>
<ide> ### Notable Changes
<ide> | 1 |
Ruby | Ruby | extend fileutils rather than include it | 67c3f1b2b4e4697af93a3e78e31fd00df2d02966 | <ide><path>Library/Homebrew/extend/fileutils.rb
<ide> require 'fileutils'
<ide>
<ide> # We enhance FileUtils to make our Formula code more readable.
<del>module Homebrew::FileUtils
<del> include FileUtils
<add>module FileUtils extend self
<ide>
<ide> # Create a temporary directory then yield. When the block return... | 2 |
PHP | PHP | move location of laravel_start | 18cda5037ae4d500d59e43dced68d63b20c5c791 | <ide><path>bootstrap/autoload.php
<ide> <?php
<ide>
<add>define('LARAVEL_START', microtime(true));
<add>
<ide> /*
<ide> |--------------------------------------------------------------------------
<ide> | Register The Composer Auto Loader
<ide><path>public/index.php
<ide> * @author Taylor Otwell <taylorotwell@gmail.... | 2 |
PHP | PHP | change code style to match with style ci | ba3bcebbe32f87a54da37ef99581c164fe22ef2c | <ide><path>src/Illuminate/Cache/FileStore.php
<ide> public function put($key, $value, $minutes)
<ide> protected function createCacheDirectory($path)
<ide> {
<ide> try {
<del> if (!file_exists(dirname($path))) {
<add> if (! file_exists(dirname($path))) {
<ide> $this-... | 1 |
Javascript | Javascript | make rest of code review changes | 30ec96f80cc38fabb0506b39d0dbb65248d727f8 | <ide><path>src/lib/duration/constructor.js
<ide> export function Duration (duration) {
<ide> milliseconds = normalizedInput.millisecond || 0;
<ide>
<ide> this._isValid = isDurationValid(normalizedInput);
<del> this.isValid = function () {
<del> return this._isValid;
<del> };
<ide>
<ide> /... | 4 |
Javascript | Javascript | remove prop `onnavigate` | fb0007d85323909ab652bf97166744fa7e17daab | <ide><path>Examples/UIExplorer/NavigationExperimental/NavigationCardStack-example.js
<ide> const NavigationExampleRow = require('./NavigationExampleRow');
<ide> const React = require('react');
<ide> const ReactNative = require('react-native');
<ide>
<del>const emptyFunction = require('fbjs/lib/emptyFunction');
<del>
<... | 13 |
Ruby | Ruby | build scope chain functionally and remove caching | 3553fe03ad974bad6a97b1853b1b27c4798f1d06 | <ide><path>activerecord/lib/active_record/reflection.rb
<ide> def counter_must_be_updated_by_has_many?
<ide> def alias_candidate(name)
<ide> "#{plural_name}_#{name}"
<ide> end
<add>
<add> def chain
<add> collect_join_chain
<add> end
<ide> end
<ide>
<ide> # Base class for Ag... | 1 |
Text | Text | remove rails/actioncable travis badge | 70e593d99877bce8dd6f27b2a080d5936e071709 | <ide><path>actioncable/README.md
<del># Action Cable – Integrated WebSockets for Rails
<del>[](https://travis-ci.org/rails/actioncable)
<add># Action Cable –- Integrated WebSockets for Rails
<ide>
<ide> Action Cable seamlessly integrates WebSockets with the r... | 1 |
Python | Python | add lang attribute to english and german | 8c8f5c62c6680f2700d7488555916dd89d4befcd | <ide><path>spacy/de/__init__.py
<ide> from os import path
<ide>
<ide> from ..language import Language
<add>from ..attrs import LANG
<ide> from . import language_data
<ide>
<ide>
<ide> class German(Language):
<ide>
<ide> class Defaults(Language.Defaults):
<ide> tokenizer_exceptions = dict(language_da... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.