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 | ensure optional chaining in swc matches babel | a65e3612d0a2e16308f3d2a9d962bead435fa587 | <ide><path>packages/next/build/swc/options.js
<ide> export function getJestSWCOptions({
<ide> // Targets the current version of Node.js
<ide> node: process.versions.node,
<ide> },
<add> // we always transpile optional chaining and nullish coalescing
<add> // since it can cause issues wit... | 2 |
PHP | PHP | remove priority. | 8f1798e779da1b2ffd6ed9a57ee0105c34f823d1 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
<ide> trait HasEvents
<ide> /**
<ide> * User exposed observable events.
<ide> *
<del> * These are extra user-defind events observers may subscribe to.
<add> * These are extra user-defined events observers may subscribe to.
<ide> ... | 2 |
PHP | PHP | add errorhandling middleware | fbf3de3f44ce5c1b8dd1a194b7ea6aeb841d435c | <ide><path>src/Http/Middleware/ErrorHandlerMiddleware.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license info... | 2 |
Javascript | Javascript | fix spurious eaddrinuse in test-https-strict | 2f417c31930dbe5658a1c5d0356b9071bb5c5ad7 | <ide><path>test/parallel/test-https-strict.js
<ide> var server3 = server(options3);
<ide>
<ide> var listenWait = 0;
<ide>
<del>var port = common.PORT;
<del>var port1 = port++;
<del>var port2 = port++;
<del>var port3 = port++;
<del>server1.listen(port1, listening());
<del>server2.listen(port2, listening());
<del>serve... | 1 |
Ruby | Ruby | move cmucl to homebrew-binary | acd2bd07387beb78159c4ff53b1a445253a644fa | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> 'drizzle' => 'homebrew/boneyard',
<ide> 'boost149' => 'homebrew/versions',
<ide> 'aimage' => 'homebrew/boneyard',
<add> 'cmucl' => 'homebrew/binary',
<ide> } | 1 |
Java | Java | add support for custom androidviews | dbe9cc333cfecb49e70f55a82012f8710cc5fad2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/AndroidView.java
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An... | 4 |
Python | Python | use a with statement instead of try / finally | 8826e0ffc2c5286572dff1d490bcda88a6f7cd64 | <ide><path>numpy/core/code_generators/genapi.py
<ide> def get_versions_hash():
<ide> d = []
<ide>
<ide> file = os.path.join(os.path.dirname(__file__), 'cversions.txt')
<del> fid = open(file, 'r')
<del> try:
<add> with open(file, 'r') as fid:
<ide> for line in fid:
<ide> m = VERRE.m... | 4 |
Text | Text | add more info to description list definition | 092cf9b65825e8c036afdd5014b58b5f428bdcc0 | <ide><path>guide/english/html/tutorials/how-to-use-lists/index.md
<ide> title: How to Use Lists
<ide> ---
<ide> ## How to Use Lists
<ide> Lists are used to specify a set of consecutive items or related information in well formed and semantic way, such as a list of ingredients or a list of procedural steps.
<del>HTML ma... | 1 |
Javascript | Javascript | add $timeout service that supersedes $defer | 4511d39cc748288df70bdc258f98a8f36652e683 | <ide><path>angularFiles.js
<ide> angularFiles = {
<ide> 'src/ng/http.js',
<ide> 'src/ng/httpBackend.js',
<ide> 'src/ng/locale.js',
<add> 'src/ng/timeout.js',
<ide>
<ide> 'src/ng/filter.js',
<ide> 'src/ng/filter/filter.js',
<ide><path>src/AngularPublic.js
<ide> function publishExternalAPI(angular... | 8 |
Ruby | Ruby | fix unused argument | ca68085e5977ecd36f566325764b4f86e75447f4 | <ide><path>Library/Homebrew/cask/lib/hbc/dsl.rb
<ide> def sha256(arg = nil)
<ide> @sha256 ||= arg
<ide> end
<ide>
<del> def license(arg = nil)
<add> def license(*)
<ide> odeprecated "Hbc::DSL#license"
<ide> end
<ide> | 1 |
PHP | PHP | apply fixes from styleci | 278c6d7fd04be005c1175a7eaea868976177600c | <ide><path>src/Illuminate/Support/Benchmark.php
<ide> namespace Illuminate\Support;
<ide>
<ide> use Closure;
<del>use Illuminate\Support\Arr;
<ide>
<ide> class Benchmark
<ide> { | 1 |
Mixed | Ruby | fix regression in has_secure_password | 5d93ef8f459254f075616d37763611ad87d86b30 | <ide><path>activemodel/CHANGELOG.md
<add>* Fix regression in has_secure_password. When a password is set, but a
<add> confirmation is an empty string, it would incorrectly save.
<add>
<add> *Steve Klabnik* and *Phillip Calvin*
<add>
<ide> * Deprecate `Validator#setup`. This should be done manually now in the ... | 3 |
PHP | PHP | update definition of an empty model | 940a51b5faa0b88fa5334764c19f93fe8364ef30 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> protected function _mergeAssociation(&$data, &$merge, $association, $type, $self
<ide> if (isset($merge[$association])) {
<ide> $data[$association] = $merge[$association][0];
<ide> } else {
<del> if (count($merge[0][$association]) > 1) {
<add> if ... | 1 |
Python | Python | add cascade to dagrun/taskinstance relationship | 13a558d658c3a1f6df4b2ee5d894fee65dc103db | <ide><path>airflow/models/dagrun.py
<ide> class DagRun(Base, LoggingMixin):
<ide> ),
<ide> )
<ide>
<del> task_instances = relationship(TI, back_populates="dag_run")
<add> task_instances = relationship(
<add> TI, back_populates="dag_run", cascade='save-update, merge, delete, delete-orphan'
<add... | 1 |
Text | Text | remove extra period | 7e27772625e78090d762f3613957793bfb4cb1ba | <ide><path>README.md
<ide> React is a JavaScript library for building user interfaces.
<ide>
<ide> **NEW**! Check out our newest project [React Native](https://github.com/facebook/react-native), which uses React and JavaScript to create native mobile apps.
<ide>
<del>[Learn how to use React in your own project.](http... | 1 |
Text | Text | add missing portuguese blocks | e9c8d12703f6e38d1d7b6ff82768a3f1fa34a334 | <ide><path>curriculum/challenges/portuguese/01-responsive-web-design/applied-visual-design/adjust-the-background-color-property-of-text.md
<add>---
<add>id: 587d781b367417b2b2512abc
<add>title: Adjust the background-color Property of Text
<add>challengeType: 0
<add>videoUrl: 'https://scrimba.com/c/cEDqwA6'
<add>forumTo... | 134 |
Java | Java | fix a small typo in single.delay | 84d333e07459d8a786f8a549c0b1f4cd69a8f532 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public final Single<T> delay(long time, TimeUnit unit) {
<ide> *
<ide> * @param time the time amount to delay the emission of the success signal
<ide> * @param unit the time unit
<del> * @param scheduler the target scheduler to use fro the non-b... | 1 |
PHP | PHP | add allowdynamicproperties attribute to controller | b73cdaf7505083121e7263e6bfd1fa73c2a1817a | <ide><path>src/Controller/Controller.php
<ide> * @property \Cake\Controller\Component\AuthComponent $Auth
<ide> * @link https://book.cakephp.org/4/en/controllers.html
<ide> */
<add>#[\AllowDynamicProperties]
<ide> class Controller implements EventListenerInterface, EventDispatcherInterface
<ide> {
<ide> use Even... | 1 |
Go | Go | remove job image_tarlayer | ba0017595ed9ac30273832b93365b0cb1cf60c05 | <ide><path>graph/export.go
<ide> func (s *TagStore) exportImage(eng *engine.Engine, name, tempdir string) error {
<ide> if err != nil {
<ide> return err
<ide> }
<del> job = eng.Job("image_tarlayer", n)
<del> job.Stdout.Add(fsTar)
<del> if err := job.Run(); err != nil {
<add> if err := s.ImageTarLayer(n, fsTa... | 2 |
Python | Python | fix gridspot driver | 0bfe15b2fd03d9067e521c330e2a7cde63de6e2e | <ide><path>libcloud/test/compute/test_gridspot.py
<ide> class GridspotTest(unittest.TestCase, TestCaseMixin):
<ide>
<ide> def setUp(self):
<del> GridspotNodeDriver.conectionCls.conn_class = GridspotMockHttp
<add> GridspotNodeDriver.connectionCls.conn_class = GridspotMockHttp
<ide> GridspotMoc... | 1 |
PHP | PHP | remove useless getter / setter | 9b56f12f6c1541ed19f89cfd0beb949eb3dd77c0 | <ide><path>src/Illuminate/Queue/DatabaseQueue.php
<ide> public function getDatabase()
<ide> {
<ide> return $this->database;
<ide> }
<del>
<del> /**
<del> * Get the expiration time in seconds.
<del> *
<del> * @return int|null
<del> */
<del> public function getExpire()
<del> {
<de... | 1 |
Ruby | Ruby | fix code style | abaf9c40aec2cc91314b7e86fcb2d9b205c45c4d | <ide><path>Library/Homebrew/cask/cmd.rb
<ide> def process_options(*args)
<ide> begin
<ide> arg = all_args[i]
<ide>
<del> unless process_arguments([arg]).empty?
<del> remaining << arg
<del> end
<add> remaining << arg unless process_arguments([arg]).empty?
<ide> ... | 2 |
Text | Text | show print instead of return on threeprinciples.md | 3c95086d7424b9b6921a712e042b835e50e6e605 | <ide><path>docs/introduction/ThreePrinciples.md
<ide> This makes it easy to create universal apps, as the state from your server can b
<ide> ```js
<ide> console.log(store.getState())
<ide>
<del>/* returns
<add>/* Prints
<ide> {
<ide> visibilityFilter: 'SHOW_ALL',
<ide> todos: [ | 1 |
Java | Java | move uimanager annotations to separate package | c1b7a369af7ca457819d682b15f47fae7e2732fc | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java
<ide> import android.view.View;
<ide>
<ide> import com.facebook.react.bridge.ReadableMap;
<add>import com.facebook.react.uimanager.annotations.ReactProp;
<ide>
<ide> /**
<ide> * Base class that should be suitable for the majority... | 26 |
Javascript | Javascript | add closure externs for angular.$q.promise.finally | caeb7402651702cd13df2f1594e9827439a8b760 | <ide><path>closure/angular.js
<ide> angular.$q.Promise;
<ide> */
<ide> angular.$q.Promise.then = function(successCallback, opt_errorCallback) {};
<ide>
<add>/**
<add> * @param {?function(?)} callback
<add> * @return {angular.$q.Promise}
<add> */
<add>angular.$q.Promise.finally = function(callback) {};
<add>
<ide> /**... | 1 |
Javascript | Javascript | increase coverage for blob | d5c734587c347dbb76d929e2aef70fa65e1937d0 | <ide><path>test/parallel/test-blob.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const { Blob } = require('buffer');
<add>const { inspect } = require('util');
<ide>
<ide> {
<ide> const b = new Blob();
<ide> assert.throws(() => new Blob({}), {
<ide> assert.strictEqual... | 1 |
Go | Go | add import test for cve-2017-14992 | 0a13f827a10d3bf61744d9b3f7165c5885a39c5d | <ide><path>integration/image/import_test.go
<add>package image
<add>
<add>import (
<add> "archive/tar"
<add> "bytes"
<add> "context"
<add> "io"
<add> "testing"
<add>
<add> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/integration/util/request"
<add> "github.com/docker/docker/internal/testutil"
<a... | 1 |
Go | Go | update remote driver to use destiantion prefix | 3c0d5c3a8ba273fe433b17e7118a9c5f68236de9 | <ide><path>libnetwork/drivers/remote/driver.go
<ide> func (d *driver) Join(nid, eid types.UUID, sboxKey string, jinfo driverapi.JoinI
<ide> return fmt.Errorf("no correlating interface %d in supplied interface names", i)
<ide> }
<ide> supplied := ifaceNames[i]
<del> if err := iface.SetNames(supplied.SrcName, sup... | 3 |
Javascript | Javascript | get all promises when using multiple test files | b0b3cd209d6c4e99eabb707d15fb86eded1c2393 | <ide><path>test/ConfigTestCases.template.js
<ide> const describeCases = config => {
<ide> }
<ide> };
<ide>
<del> results.push(
<del> _require(outputDirectory, optionsArr[i], bundlePath)
<del> );
<add> if (Array.isArray(bundlePath)) {
<add> for (const ... | 1 |
Go | Go | fix shallow git clone in docker-build | 85afbbc2ed36945adeaf6fa09f6066a549631a6f | <ide><path>builder/remotecontext/git/gitutils.go
<ide> package git
<ide>
<ide> import (
<del> "fmt"
<ide> "io/ioutil"
<ide> "net/http"
<ide> "net/url"
<ide> func getRefAndSubdir(fragment string) (ref string, subdir string) {
<ide>
<ide> func fetchArgs(remoteURL string, ref string) []string {
<ide> args := []strin... | 1 |
Python | Python | change seq2seqtransformer inputs to dictionary | f3641f23b2f82cb98503bdd27d3e22077d3bf90b | <ide><path>official/nlp/modeling/models/seq2seq_transformer.py
<ide> def call(self, inputs):
<ide> """Calculate target logits or inferred target sequences.
<ide>
<ide> Args:
<del> inputs: input tensor list of size 1 or 2.
<del> First item, inputs: int tensor with shape [batch_size, input_length].
<... | 3 |
Ruby | Ruby | fix redefinition of x11 reader method in superenv | b0c1e5f7d6456ea3b350d13383f9fbc72f410c20 | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def noop(*args); end
<ide>
<ide> # These methods are no longer necessary under superenv, but are needed to
<ide> # maintain an interface compatible with stdenv.
<del> noops.concat %w{fast O4 Og libxml2 x11 set_cpu_flags macosxsdk remove_macosxsdk}
<add> noops... | 1 |
Ruby | Ruby | reduce blank? checks | f0eff10c090a56ea28201341361439dfbc31485b | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def default_controller_and_action
<ide> end
<ide> end
<ide>
<del> controller = controller.to_s unless controller.is_a?(Regexp)
<add> hash = {}
<add>
<ide> action = action.to_s ... | 1 |
Mixed | Text | remove support for the protected attributes gem | f4fbc0301021f13ae05c8e941c8efc4ae351fdf9 | <ide><path>activerecord/CHANGELOG.md
<add>* Remove support for the `protected_attributes` gem.
<add>
<add> *Carlos Antonio da Silva + Roberto Miranda*
<add>
<ide> * Fix accessing of fixtures having non-string labels like Fixnum.
<ide>
<ide> *Prathamesh Sonpatki*
<ide><path>activerecord/lib/active_record/cor... | 2 |
Javascript | Javascript | replace common.fixturesdir with fixtures | eb08e3e5fb71d9f33ff97e1ce4605fbf5a60315c | <ide><path>test/parallel/test-fs-write-stream-encoding.js
<ide> 'use strict';
<ide> const common = require('../common');
<ide> const assert = require('assert');
<add>const fixtures = require('../common/fixtures');
<ide> const fs = require('fs');
<ide> const path = require('path');
<ide> const stream = require('stream')... | 1 |
Text | Text | use descriptive links instead of "click here" | c6ba29da00a16ecc49f615752bb1490bab8ed9fb | <ide><path>contributing.md
<ide> # Contributing to Next.js
<ide>
<del>Our Commitment to Open Source can be found [here](https://vercel.com/oss).
<add>Read about our [Commitment to Open Source](https://vercel.com/oss).
<ide>
<ide> 1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own Git... | 18 |
PHP | PHP | remove illogic test | 7834fe3f4e192008d24a2f82c284e4740ecb74e9 | <ide><path>tests/View/Blade/BladeComponentsTest.php
<ide> public function testComponentsAreCompiled()
<ide> $this->assertSame('<?php $__env->startComponent(\'foo\'); ?>', $this->compiler->compileString('@component(\'foo\')'));
<ide> }
<ide>
<del> public function testExtraAttributesCanBePassedToComponent... | 1 |
Javascript | Javascript | pass accessibilityhint through button component | be5372801a3ac3ae0f1df76c33f8b5f96ea68828 | <ide><path>Libraries/Components/Button.js
<ide> type ButtonProps = $ReadOnly<{|
<ide> accessibilityActions?: ?$ReadOnlyArray<AccessibilityActionInfo>,
<ide> onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,
<ide> accessibilityState?: ?AccessibilityState,
<add> accessibilityHint?: ?string,
<ide... | 1 |
Javascript | Javascript | fix process.stdout.end() throws enotsock error | 0a51a6d3ac0818244ab4d73a72a541d3e8b65110 | <ide><path>lib/tty_posix.js
<ide> function ReadStream(fd) {
<ide> if (!(this instanceof ReadStream)) return new ReadStream(fd);
<ide> net.Socket.call(this, fd);
<ide>
<add> if (this._writeWatcher) {
<add> this._writeWatcher.stop();
<add> this._writeWatcher = null;
<add> }
<add> this.writable = false;
<add... | 3 |
Javascript | Javascript | add french locale | 80e593a39e0c8e049839c81aaf7ef6edf6a56bc7 | <ide><path>src/locale/fr.js
<add>import "locale";
<add>
<add>d3.locale.fr = d3.locale({
<add> decimal: ",",
<add> thousands: ".",
<add> grouping: [3],
<add> currency: ["", " €"],
<add> dateTime: "%A, le %e %B %Y, %X",
<add> date: "%e/%m/%Y",
<add> time: "%H:%M:%S",
<add> periods: ["AM", "PM"], // unused
<add> ... | 1 |
Ruby | Ruby | use sort_by instead of sort() | 09d3e89cf0b3e7be03f97739e297fd40ebba1178 | <ide><path>activesupport/lib/active_support/cache.rb
<ide> def expanded_key(key) # :nodoc:
<ide> key.first.to_param
<ide> end
<ide> elsif key.is_a?(Hash)
<del> key = key.to_a.sort{|a,b| a.first.to_s <=> b.first.to_s}.collect{|k,v| "#{k}=#{v}"}.to_param
<add> key... | 1 |
Javascript | Javascript | remove extra type check | cd150fa456a160e534a474683c844524b1d3dfb6 | <ide><path>packages/ember-metal/lib/watching.js
<ide> /**
<ide> @module ember-metal
<ide> */
<del>
<ide> import {
<ide> watchKey,
<ide> unwatchKey
<ide> export function watch(obj, _keyPath, m) {
<ide> }
<ide>
<ide> export function isWatching(obj, key) {
<del> if (typeof obj !== 'object' || obj === null) {
<del> ... | 2 |
Ruby | Ruby | fix frozen pathname usage | 70b07a914fa5d7c713f517111ffe490775b11b71 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def print_info
<ide> output_analytics
<ide> elsif HOMEBREW_CELLAR.exist?
<ide> count = Formula.racks.length
<del> puts "#{count} #{"keg".pluralize(count)}, #{HOMEBREW_CELLAR.abv}"
<add> puts "#{count} #{"keg".pluralize(count)}, #{HOMEBREW... | 1 |
Text | Text | simplify support section of readme | 37e838115021eb88c15c38e6a61eeebbced3c60a | <ide><path>README.md
<ide> When looking for support, please first search for your question in these venues:
<ide> * [Node.js Help][]
<ide> * [Open or closed issues in the Node.js GitHub organization](https://github.com/issues?utf8=%E2%9C%93&q=sort%3Aupdated-desc+org%3Anodejs+is%3Aissue)
<ide>
<del>If you didn't find a... | 1 |
Text | Text | add qliro to inthewild.md | 348ceb1ce5a0f1bef302c97430f30a3d825088da | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Promofarma](https://www.promofarma.com/) [[@JavierLopezT](https://github.com/JavierLopezT)]
<ide> 1. [Pronto Tools](http://www.prontotools.io/) [[@zkan](https://github.com/zkan) & [@mesodiar](https://github.com/mesodiar)]
<ide> 1. [PubNub]... | 1 |
Go | Go | avoid concurrent access to sysinfo | 54e09aa4e26c60deb74f994a08e96abea8fb857e | <ide><path>pkg/platform/architecture_windows.go
<ide> const (
<ide> ProcessorArchitectureArm = 5 // PROCESSOR_ARCHITECTURE_ARM
<ide> )
<ide>
<del>var sysinfo systeminfo
<del>
<ide> // runtimeArchitecture gets the name of the current architecture (x86, x86_64, …)
<ide> func runtimeArchitecture() (string, error) {
<ad... | 1 |
PHP | PHP | remove useless `use` | 3a59cd24ed2be70351103a10b48e6ba114c4d545 | <ide><path>src/Form/Form.php
<ide> use Cake\Utility\Hash;
<ide> use Cake\Validation\ValidatorAwareInterface;
<ide> use Cake\Validation\ValidatorAwareTrait;
<del>use RuntimeException;
<ide>
<ide> /**
<ide> * Form abstraction used to create forms not tied to ORM backed models, | 1 |
Javascript | Javascript | remove duplicate "the" in return description | 40abdaf407457abb8cc42d0641c001e93a6be7b4 | <ide><path>src/ng/templateRequest.js
<ide> var $compileMinErr = minErr('$compile');
<ide> * @param {string} tpl The HTTP request template URL
<ide> * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty
<ide> *
<del> * @return {Promise} a promise... | 1 |
Text | Text | add missing comma (,) between proptypes and render | 3c56146a442f1f9226a4f3389168f8fe5b19ec55 | <ide><path>docs/docs/10.6-create-fragment.md
<ide> var Swapper = React.createClass({
<ide> rightChildren: React.PropTypes.node,
<ide>
<ide> swapped: React.PropTypes.bool
<del> }
<add> },
<ide> render: function() {
<ide> var children;
<ide> if (this.props.swapped) { | 1 |
Python | Python | add some tests for passing r and c to r_ | 0a4f3a050eca50b3ba9f5923656b052393babda4 | <ide><path>numpy/lib/tests/test_index_tricks.py
<ide> def test_2d(self):
<ide> assert_array_equal(d[:5, :], b)
<ide> assert_array_equal(d[5:, :], c)
<ide>
<add> def test_matrix(self):
<add> a = [1, 2]
<add> b = [3, 4]
<add>
<add> ab_r = np.r_['r', a, b]
<add> ab_c = np.r_... | 1 |
Javascript | Javascript | add test for storing window dimension on close | d1caf26ab5094bf6ae33a43d95eb1a2495d19595 | <ide><path>spec/window-event-handler-spec.js
<ide> describe('WindowEventHandler', () => {
<ide> window.dispatchEvent(new CustomEvent('window:close'))
<ide> expect(atom.close).toHaveBeenCalled()
<ide> })
<add>
<add> it ('saves the window state', () => {
<add> spyOn(atom, 'storeWindowDimensions')
... | 1 |
Text | Text | fix typo in object_detection's preparing_inputs.md | 7fcddd76f17fad959c83fe88166e5cb6a6d4027c | <ide><path>object_detection/g3doc/preparing_inputs.md
<ide> Extract the tar file and run the `create_pascal_tf_record` script:
<ide> tar -xvf VOCtrainval_11-May-2012.tar
<ide> python create_pascal_tf_record.py --data_dir=VOCdevkit \
<ide> --year=VOC2012 --set=train --output_path=pascal_train.record
<del>python crea... | 1 |
Ruby | Ruby | entirelyby => 'entirely by' | 3e3e81b1fe08c46df057b2682a3049696bbfaaa4 | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def references_eager_loaded_tables?
<ide> "\n" \
<ide> " Post.includes(:comments).where(\"comments.title = 'foo'\").references(:comments)\n" \
<ide> "\n" \
<del> "If you don't rely on implicit join references you can d... | 1 |
PHP | PHP | fix invalid fqcn doc blocks | 8915442595eb1f324046c0a0a2e3ee4ccecd1b2c | <ide><path>src/Command/CompletionCommand.php
<ide> class CompletionCommand extends Command implements CommandCollectionAwareInterface
<ide> {
<ide> /**
<del> * @var \Cake\Command\Cake\Console\CommandCollection
<add> * @var \Cake\Console\CommandCollection
<ide> */
<ide> protected $commands;
<ide>
<... | 1 |
Ruby | Ruby | fix rubocop offences | ee98178ea54c17fbd991c6f9f8f654e7f6b86832 | <ide><path>activesupport/test/dependencies_test.rb
<ide> class RequireDependencyTest < ActiveSupport::TestCase
<ide> end
<ide>
<ide> test "require_dependency looks autoload paths up (idempotent)" do
<del> assert require_dependency("x")
<del> assert !require_dependency("x")
<add> assert require_dependency... | 1 |
Python | Python | update tatoeba conversion | 7051b892671982717388dd6dfca368a90da60252 | <ide><path>src/transformers/models/marian/convert_marian_tatoeba_to_pytorch.py
<ide> # limitations under the License.
<ide>
<ide> import argparse
<add>import datetime
<add>import json
<ide> import os
<add>import re
<ide> from pathlib import Path
<del>from typing import List, Tuple
<add>from typing import Tuple
<ide>
... | 1 |
Javascript | Javascript | remove var in rntester | a21b8b736054ebfd80bd9d0497b04f296174fe65 | <ide><path>RNTester/js/ARTExample.js
<ide>
<ide> 'use strict';
<ide>
<del>var React = require('react');
<del>var ReactNative = require('react-native');
<del>var {ART, Platform, View} = ReactNative;
<add>const React = require('react');
<add>const ReactNative = require('react-native');
<add>const {ART, Platform, View} ... | 10 |
Javascript | Javascript | remove the first empty character of charset | 2e71f798655837992b6bff4c12c3818829110390 | <ide><path>fonts.js
<ide> var Font = (function () {
<ide>
<ide> var charset = properties.charset;
<ide> if (charset && charset.length) {
<del> // XXX why is the first character equal to ''?
<add> log(charset);
<ide> for (var i = 1; i < charset.length; i++) {
<ide> var position = getUnic... | 2 |
Java | Java | resolve resourceurlprovider from current request | 2baceac5ff03489628e058c76a35306519e6cbb2 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/resource/AppCacheManifestTransformer.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 "Licen... | 4 |
PHP | PHP | use local file loading method in fileloader | 1324e78a037f236f33d6c88787a5e3b1c4fb912b | <ide><path>src/Illuminate/Config/FileLoader.php
<ide> public function load($environment, $group, $namespace = null)
<ide>
<ide> if ($this->files->exists($file))
<ide> {
<del> $items = $this->files->getRequire($file);
<add> $items = $this->getRequire($file);
<ide> }
<ide>
<ide> // Finally we're ready to ch... | 1 |
Text | Text | add 3.0.0-beta.5 to changelog | afedeaae2e7502c6b696d2e433979307c9f4542e | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 3.0.0-beta.5 (January 29, 2018)
<add>
<add>- [#16179](https://github.com/emberjs/ember.js/pull/16179) [BUGFIX] Fix a few bugs in the caching ArrayProxy implementation
<add>
<ide> ### 3.0.0-beta.4 (January 25, 2018)
<ide>
<ide> - [#16160](https://github.co... | 1 |
Text | Text | add note for platform specific flags `fs.open()` | ae991e757732aad13af1a4b2ecf66840937f04e1 | <ide><path>doc/api/fs.md
<ide> On Linux, positional writes don't work when the file is opened in append mode.
<ide> The kernel ignores the position argument and always appends the data to
<ide> the end of the file.
<ide>
<add>_Note: The behavior of `fs.open()` is platform specific for some flags. As such,
<add>opening... | 1 |
Javascript | Javascript | use ember.logger instead of console.log | 7349345dee477bba864854454c948b0ff6dccc30 | <ide><path>packages/ember-views/lib/views/states.js
<ide> Ember.View.RenderStateManager = Ember.StateManager.extend({
<ide> // and we should still raise an exception in that
<ide> // case.
<ide> if (typeof action === 'function') {
<del> if (log) { console.log(fmt("STATEMANAGER: Sending event '%@' to st... | 1 |
Javascript | Javascript | ignore devdependencies when generating template. | 5219585ef90f7a9ade66fdc0d9362a5706dfcc8b | <ide><path>local-cli/generator/templates.js
<ide> function createFromRemoteTemplate(
<ide> // only for publishing the template to npm.
<ide> // We want to ignore this dummy file, otherwise it would overwrite
<ide> // our project's package.json file.
<del> ignorePaths: ['package.json', 'dependenci... | 1 |
Ruby | Ruby | remove method named "hash" | a2be6ce3eb94516a57c07c98f3cb19502b05cff1 | <ide><path>actionview/lib/action_view/testing/resolvers.rb
<ide> module ActionView #:nodoc:
<ide> # useful for testing extensions that have no way of knowing what the file
<ide> # system will look like at runtime.
<ide> class FixtureResolver < PathResolver
<del> attr_reader :hash
<del>
<ide> def initialize... | 2 |
Text | Text | fix broken links in pr template | 9a521cb3ad223f4f21e7f616138ec9eb5466fcb6 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<del><!-- General PR submission guidelines https://github.com/angular/angular.js/CONTRIBUTING.md#submit-pr -->
<add><!-- General PR submission guidelines https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#submit-pr -->
<ide> **What kind of change does this PR i... | 1 |
Python | Python | fix textcat test | 31ed64e9b0ba6d2be87d3627b7417335494fa60d | <ide><path>spacy/tests/test_textcat.py
<ide>
<ide>
<ide> def test_textcat_learns_multilabel():
<del> random.seed(1)
<del> numpy.random.seed(1)
<add> random.seed(5)
<add> numpy.random.seed(5)
<ide> docs = []
<ide> nlp = English()
<ide> vocab = nlp.vocab | 1 |
Python | Python | add sqlite default connection | c61a5d8d81422c0419dbfa22c5debd4845661523 | <ide><path>airflow/utils.py
<ide> def initdb():
<ide> port=10001))
<ide> session.commit()
<ide>
<add> conn = session.query(C).filter(C.conn_id == 'sqlite_default').first()
<add> if not conn:
<add> home = conf.get('core', 'AIRFLOW_HOME')
<add> session.add(
<add> mo... | 1 |
Text | Text | add v3.1.2 and v3.1.1 to changelog | 53a0166abc45632c78c7d065cc619873ac59513b | <ide><path>CHANGELOG.md
<ide> - [#16462](https://github.com/emberjs/ember.js/pull/16462) [CLEANUP] Remove deprecated `MODEL_FACTORY_INJECTIONS`
<ide> - [emberjs/rfcs#286](https://github.com/emberjs/rfcs/blob/master/text/0286-block-let-template-helper.md) [FEATURE] Enabled block `let` handlebars helper by default.
<ide>... | 1 |
Mixed | Javascript | support dot(s) in object keys | a4114e84d9f1f66c3e7fa76d5d1790fa64392f9a | <ide><path>docs/general/data-structures.md
<ide> options: {
<ide> }
<ide> ```
<ide>
<add>If the key contains a dot, it needs to be escaped with a double slash:
<add>
<add>```javascript
<add>type: 'line',
<add>data: {
<add> datasets: [{
<add> data: [{ 'data.key': 'one', 'data.value': 20 }, { 'data.key': 'two'... | 3 |
Javascript | Javascript | remove superfluous classid from domattributenames | cac45631c35217e930c38750a0fa1dd20858543c | <ide><path>src/browser/ui/dom/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> property: null // Supports OG in meta tags
<ide> },
<ide> DOMAttributeNames: {
<del> classID: 'classid',
<ide> className: 'class',
<ide> htmlFor: 'for',
<ide> httpEquiv: 'http-equiv' | 1 |
Ruby | Ruby | fix broken asset test | a89d39ec889c2658120e508bd182de7be3ccdcc9 | <ide><path>railties/test/application/assets_test.rb
<ide> def app
<ide>
<ide> test "assets do not require compressors until it is used" do
<ide> app_file "app/assets/javascripts/demo.js.erb", "<%= :alert %>();"
<del> add_to_config "config.assets.compile = true"
<add> app_file "config/initializers/c... | 1 |
Python | Python | update get_constraints with better comments | 77028194415cb03b1ff2a85a86d806a0366bccff | <ide><path>django/db/backends/__init__.py
<ide> def get_indexes(self, cursor, table_name):
<ide>
<ide> def get_constraints(self, cursor, table_name):
<ide> """
<del> Returns {'cnname': {'columns': set(columns), 'primary_key': bool, 'unique': bool}}
<del>
<del> Both single- and multi-c... | 2 |
Javascript | Javascript | remove outdated model documentation | ee17c71909d030018881877018f86138d54f5c7b | <ide><path>packages/ember-routing/lib/system/route.js
<ide> var Route = EmberObject.extend(ActionHandler, {
<ide> });
<ide> ```
<ide>
<del> The model for the `post` route is `App.Post.find(params.post_id)`.
<add> The model for the `post` route is `store.find('post', params.post_id)`.
<ide>
<ide> By ... | 1 |
Python | Python | fix import order to make alphabetical | 839e752d1966181ed8390fb1611f59f954e5a106 | <ide><path>object_detection/utils/visualization_utils.py
<ide> import PIL.ImageColor as ImageColor
<ide> import PIL.ImageDraw as ImageDraw
<ide> import PIL.ImageFont as ImageFont
<del>import tensorflow as tf
<ide> import six
<add>import tensorflow as tf
<ide>
<ide>
<ide> _TITLE_LEFT_MARGIN = 10 | 1 |
Ruby | Ruby | check pour from requirements | 363f2c116cf6256148624c841e62b59c508565f4 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def pour_bottle? install_bottle_options={:warn=>false}
<ide> return true if f.local_bottle_path
<ide> return false unless f.bottle && f.pour_bottle?
<ide>
<add> f.requirements.each do |req|
<add> next if req.optional? || req.pour_bottle?
<add> ... | 1 |
Javascript | Javascript | add additional message to internal invariants | 915a3e88a25690bd13e1e740f6de60b698858f82 | <ide><path>src/renderers/shared/fiber/ReactChildFiber.js
<ide> const {
<ide> Deletion,
<ide> } = ReactTypeOfSideEffect;
<ide>
<add>const internalErrorMessage =
<add> 'This error is likely caused by a bug in React. Please file an issue.';
<add>
<ide> function coerceRef(current: ?Fiber, element: ReactElement) {
<ide>... | 7 |
Python | Python | correct an issue on cpu alert (always system...) | 44263e3760706820081fdf55f9116d5f1ad3e759 | <ide><path>glances/plugins/glances_cpu.py
<ide> def update_views(self):
<ide> for key in ['user', 'system', 'iowait']:
<ide> if key in self.stats:
<ide> self.views[key]['decoration'] = self.get_alert_log(self.stats[key], header=key)
<del> self.views['total']['decoration'] = se... | 1 |
Python | Python | set version to v2.1.0a7.dev0 | 27e3f98caea429afee75fce3e9a175137e45c006 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a6"
<add>__version__ = "2.1.0a7.dev0"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI"
<ide>... | 1 |
Python | Python | add donate link | 22992a0d533f7f68e9fa1845c86dae230d8ff9ba | <ide><path>docs/conf.py
<ide> html_theme = 'flask'
<ide> html_context = {
<ide> 'project_links': [
<del> ProjectLink('Donate to Pallets', 'https://psfmember.org/civicrm/contribute/transact?id=20'),
<add> ProjectLink('Donate to Pallets', 'https://psfmember.org/civicrm/contribute/transact?reset=1&id=20'... | 1 |
Text | Text | add 3.28.0-beta.7 to changelog | 7683833ff3e12f796d8476b23cf7b3257c85d856 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.28.0-beta.7 (August 2, 2021)
<add>
<add>- [#19681](https://github.com/emberjs/ember.js/pull/19681) [BUGFIX] Restore previous hash behavior
<add>- [#19685](https://github.com/emberjs/ember.js/pull/19685) [BUGFIX] Fix memory leak in RouterService
<add>- [... | 1 |
Ruby | Ruby | fix syntax error in assert_match | 9cd831a0b0cbb6c2d386ee59a3b13fa58cf10d12 | <ide><path>railties/test/application/rake/dbs_test.rb
<ide> def db_fixtures_load
<ide> `rails generate model book title:string`
<ide> `bundle exec rake db:migrate`
<ide> `bundle exec rake db:fixtures:load`
<del> assert_match(/#{expected[:database]}/),
<del> Acti... | 1 |
Python | Python | fix autocast for older pytorch | 14cc50d081c320331d850a64a54f1d732fa557ea | <ide><path>src/transformers/trainer.py
<ide> def training_step(self, model: nn.Module, inputs: Dict[str, Union[torch.Tensor,
<ide> return loss_mb.reduce_mean().detach().to(self.args.device)
<ide>
<ide> if self.use_amp:
<del> with autocast(dtype=self.amp_dtype):
<del> loss ... | 1 |
Javascript | Javascript | add runtime behavior to codegennativecommands | a6fffb7cd02220e23e2276553b0346d2a664f73d | <ide><path>Libraries/Utilities/codegenNativeCommands.js
<ide>
<ide> 'use strict';
<ide>
<add>import {dispatchCommand} from '../../Libraries/Renderer/shims/ReactNative';
<add>
<ide> type Options<T = string> = $ReadOnly<{|
<ide> supportedCommands: $ReadOnlyArray<T>,
<ide> |}>;
<ide>
<del>function codegenNativeComman... | 1 |
Javascript | Javascript | improve unescapebuffer performance | 3bdcbdb1a085b35a3a50112a51781b31d8814294 | <ide><path>benchmark/querystring/querystring-unescapebuffer.js
<add>'use strict';
<add>var common = require('../common.js');
<add>var querystring = require('querystring');
<add>
<add>var bench = common.createBenchmark(main, {
<add> input: [
<add> 'there is nothing to unescape here',
<add> 'there%20are%20several%... | 3 |
Javascript | Javascript | add tests for sortableset | b2a4244b87a7c5615e466f82f1afa7cb7fa3d9bf | <ide><path>test/SortableSet.test.js
<add>/* globals describe, it */
<add>"use strict";
<add>
<add>const SortableSet = require("../lib/util/SortableSet");
<add>
<add>describe("util/SortableSet", () => {
<add> it("Can be constructed like a normal Set", () => {
<add> const sortableSet = new SortableSet([1,1,1,1,1,4,5,2],... | 1 |
PHP | PHP | change empty quotation to 0 | cc81e013a7544d54c302eecdccef6a6575dfbbfb | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function limitControl(array $limits = [], $default = null, array $options
<ide> }
<ide>
<ide> if (empty($limits)) {
<del> $limits += array(''=>__('All'), '20' => '20', '50' => '50', '100' => '100');
<add> $limits += array... | 1 |
Javascript | Javascript | allow aliasing of classnamebindings from templates | c3802f16380843b39c8363cda68d8813a3e00cdf | <ide><path>packages/sproutcore-handlebars/lib/helpers/binding.js
<ide> SC.Handlebars.bindClasses = function(context, classBindings, view, id) {
<ide> // determine which class string to return, based on whether it is
<ide> // a Boolean or not.
<ide> var classStringForProperty = function(property) {
<add> var sp... | 2 |
Text | Text | add master builds url to readme | 1b104ce7c3b18ad4bd38a819525a0d5ad78d3c85 | <ide><path>README.md
<ide> documentation, please take a look at this [README.md](https://github.com/docker/
<ide> These instructions are probably not perfect, please let us know if anything
<ide> feels wrong or incomplete.
<ide>
<add>Want to run Docker from a master build? You can can download
<add>master builds at [... | 1 |
Ruby | Ruby | remove explicit type check | 0d4f241d481ee5bc356366c7a1383541338d3365 | <ide><path>Library/Homebrew/version.rb
<ide> def inspect
<ide> def to_s
<ide> value.to_s
<ide> end
<add>
<add> def numeric?
<add> false
<add> end
<ide> end
<ide>
<ide> class NullToken < Token
<ide> def <=>(other)
<ide> -Integer(other <=> self)
<ide> end
<ide> end
<add>
<a... | 1 |
Ruby | Ruby | display executables with missing rpath | caf310038f1dda4f8efd37fa1b095844b2664102 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def mach_o_bundle?
<ide> def dylib?
<ide> false
<ide> end
<add>
<add> sig { returns(T::Array[String]) }
<add> def rpaths
<add> []
<add> end
<ide> end
<ide>
<ide> require "extend/os/pathname"
<ide><path>Library/Homebrew/linkage_checker.rb
<ide> def init... | 3 |
Javascript | Javascript | add more tests | f74aa0eff9bab45be57d81fa3bb40d547aa2aa63 | <ide><path>spec/text-editor-spec.js
<ide> describe('TextEditor', () => {
<ide> expect(editor.lineTextForBufferRow(0)).toBe('test')
<ide> })
<ide>
<del> it('does not select the new delimiters when the option is set'), () => {
<add> it('does not select the new delimiters'), () => {
<add> e... | 1 |
Javascript | Javascript | use manual join instead of path.join | 1548676f56ae2b380ed3dc64003257e3de372fee | <ide><path>make.js
<ide> target.chrome = function() {
<ide>
<ide> // If we're on a Darwin (Mac) OS, then let's check for an .app path
<ide> if (process.platform === 'darwin' && executable.indexOf('.app') !== -1) {
<del> executable = path.join(executable, 'Contents', 'MacOS', 'Google Chrome');
<add> executabl... | 1 |
Python | Python | add test for final() method | 96e91f5841c171a1bcf7571a053ab19de16f402f | <ide><path>djangorestframework/tests/views.py
<ide> from django.conf.urls.defaults import patterns, url
<add>from django.http import HttpResponse
<ide> from django.test import TestCase
<ide> from django.test import Client
<ide> from django import forms
<ide> class MockView(View):
<ide> """This is a basic mock view"... | 1 |
Text | Text | fix doc mobilenetv2 invalid package | f93a2256ab11eeebbedf7b79d5c34399ba992b9c | <ide><path>docs/templates/applications.md
<ide> These weights are released under [the Apache License](https://github.com/tensorf
<ide>
<ide>
<ide> ```python
<del>keras.applications.mobilenetv2.MobileNetV2(input_shape=None, alpha=1.0, depth_multiplier=1, include_top=True, weights='imagenet', input_tensor=None, pooling... | 1 |
Javascript | Javascript | run more assert tests | b5f2942fb55055b5a8b5de290953f81d2e291005 | <ide><path>test/parallel/test-assert-deep.js
<ide> class MyDate extends Date {
<ide>
<ide> const date2 = new MyDate('2016');
<ide>
<del>// deepEqual returns true as long as the time are the same,
<del>// but deepStrictEqual checks own properties
<del>assert.notDeepEqual(date, date2);
<del>assert.notDeepEqual(date2, d... | 1 |
Python | Python | add some field schema alteration methods and tests | 959a3f9791d780062c4efe8765404a8ef95e87f0 | <ide><path>django/db/backends/__init__.py
<ide> class BaseDatabaseFeatures(object):
<ide> # Can we roll back DDL in a transaction?
<ide> can_rollback_ddl = False
<ide>
<add> # Can we issue more than one ALTER COLUMN clause in an ALTER TABLE?
<add> supports_combined_alters = False
<add>
<ide> def __in... | 4 |
Python | Python | fix py3 compatibility issues | 730bf06b38ce71de2a2bac406d5c87cea1795e46 | <ide><path>research/object_detection/builders/model_builder_test.py
<ide> def test_create_faster_rcnn_resnet_v1_models_from_config(self):
<ide> }"""
<ide> model_proto = model_pb2.DetectionModel()
<ide> text_format.Merge(model_text_proto, model_proto)
<del> for extractor_type, extractor_class in FEATURE... | 2 |
Javascript | Javascript | handle require.ensure errors well | 17329edcc930a286fac538522fca81256bb51659 | <ide><path>lib/dynamic.js
<ide> export function flushChunks () {
<ide> currentChunks = []
<ide> return chunks
<ide> }
<add>
<add>export class SameLoopPromise {
<add> constructor (cb) {
<add> this.onResultCallbacks = []
<add> this.onErrorCallbacks = []
<add>
<add> if (cb) {
<add> cb(
<add> (res... | 2 |
Javascript | Javascript | fix radius 0 | f5a2e394c86df31b6baf47cf22a1e3ac9194bd5c | <ide><path>src/elements/element.point.js
<ide> module.exports = function(Chart) {
<ide> return;
<ide> }
<ide>
<del> if (vm.radius > 0 || vm.borderWidth > 0) {
<add> if (!isNaN(vm.radius) && vm.radius > 0) {
<ide>
<ide> ctx.strokeStyle = vm.borderColor || Chart.defaults.global.defaultColor;
<del> ctx... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.