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 broken imports | 9579cad57ad3c1dea32c8cfac84e968a7bd5f72a | <ide><path>packages/ember-views/lib/views/states/default.js
<del>import {
<del> EmberError
<del>} from 'ember-debug';
<add>import { Error as EmberError } from 'ember-debug';
<ide>
<ide> export default {
<ide> // appendChild is only legal while rendering the buffer.
<ide> appendChild() {
<del> throw new EmberEr... | 2 |
Go | Go | add struct tags on v2 remote tags struct | 4925d98d1f638e9439e19b6c89c608a64a281a39 | <ide><path>registry/session_v2.go
<ide> func (r *Session) PutV2ImageManifest(ep *Endpoint, imageName, tagName string, si
<ide> }
<ide>
<ide> type remoteTags struct {
<del> Name string
<del> Tags []string
<add> Name string `json:"name"`
<add> Tags []string `json:"tags"`
<ide> }
<ide>
<ide> // Given a repository name... | 1 |
Javascript | Javascript | add support for finished after .destroy()" | 2fa7d33e74d069f7a3c42b355d34452e902b2132 | <ide><path>lib/_http_incoming.js
<ide> IncomingMessage.prototype._destroy = function _destroy(err, cb) {
<ide> this.emit('aborted');
<ide> }
<ide>
<del> // If aborted destroy socket.
<del> if (this.socket && this.aborted) {
<add> // If aborted and the underlying socket is not already destroyed,
<add> // dest... | 4 |
Ruby | Ruby | reduce noise by including fileutils | e0c4fd5b720192cfeb06ba8bfffbc58113057bc1 | <ide><path>Library/Homebrew/test/test_keg.rb
<ide> require 'stringio'
<ide>
<ide> class LinkTests < Test::Unit::TestCase
<add> include FileUtils
<add>
<ide> def setup
<ide> @formula = TestBall.new
<ide> shutup do
<ide> def setup
<ide> @old_stdout = $stdout
<ide> $stdout = StringIO.new
<ide>
<del> ... | 1 |
Javascript | Javascript | make sure `.data("events")` still works, for now | c82dbf1928f54385e83df9ec6de47616f83fe682 | <ide><path>src/data.js
<ide> jQuery.extend({
<ide> return;
<ide> }
<ide>
<del> var thisCache, ret,
<add> var privateCache, thisCache, ret,
<ide> internalKey = jQuery.expando,
<ide> getByName = typeof name === "string",
<ide>
<ide> jQuery.extend({
<ide>
<ide> // Only defining an ID for JS objects if i... | 1 |
Ruby | Ruby | convert structs to a regular class | 497b1350bbfb35ea3e57f5b8363d5d8605930aa6 | <ide><path>actionview/lib/action_view/digestor.rb
<ide> def self.tree(name, finder, injected = [], partial = false, seen = {})
<ide> node = seen[template.identifier] = Node.create(name, logical_name, template, partial)
<ide>
<ide> deps = DependencyTracker.find_dependencies(name, template, finder.vi... | 1 |
Python | Python | detect partial examples dags for google | 388736bf97a4313f81aadbeecbb99e5fcb145c31 | <ide><path>tests/always/test_project_structure.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<del>
<add>import ast
<ide> import glob
<ide> import itertools
<ide> import mmap
<ide> import os
<ide> import uni... | 1 |
Mixed | Ruby | remove some references to orderedhash | 0dd76540327be58999b0cb7584277724e60486d3 | <ide><path>activesupport/lib/active_support/core_ext/object/json.rb
<ide> # The JSON gem adds a few modules to Ruby core classes containing :to_json definition, overwriting
<ide> # their default behavior. That said, we need to define the basic to_json method in all of them,
<ide> # otherwise they will always use to_jso... | 5 |
Javascript | Javascript | fix gjslint errors | edd92c9db29f69ef092399dce877ff66e89ac4f4 | <ide><path>fonts.js
<ide> CFF.prototype = {
<ide> return null;
<ide> },
<ide>
<del> getOrderedCharStrings: function cff_getOrderedCharStrings(glyphs, properties) {
<add> getOrderedCharStrings: function cff_getOrderedCharStrings(glyphs,
<add> properties... | 2 |
PHP | PHP | fix cs error | a92f798d43a3caf4db2af944dbccc8063a995f48 | <ide><path>tests/TestCase/Controller/Component/AuthComponentTest.php
<ide> public function testStartupNullAction(): void
<ide> $this->Auth->setConfig([
<ide> 'authenticate' => ['Form'],
<ide> 'authorize' => false,
<del> 'loginAction' => ['controller' => 'auth_test', 'action' =... | 1 |
Text | Text | change example link to be equal to query property | 3096a772fb1ec088a0c87b08cd259a5d8fe310a6 | <ide><path>docs/api-reference/next/link.md
<ide> function Home() {
<ide> export default Home
<ide> ```
<ide>
<del>The above example will be a link to `/about?name=Zeit`. You can use every property as defined in the [Node.js URL module documentation](https://nodejs.org/api/url.html#url_url_strings_and_url_objects).
<ad... | 1 |
Text | Text | fix typo in releases.md | ed6a5ff4b43130c4cd0684e7ebb2af7c18ff7d16 | <ide><path>Releases.md
<ide> Circle CI will automatically run the tests and publish to npm with the version y
<ide>
<ide> ### Step 3: Write the release notes
<ide>
<del>Write the release notes, or post in [React Native Core Contributors](https://www.facebook.com/groups/reactnativeoss/) that the RC is ready to find a ... | 1 |
Java | Java | fix typos and suppress warnings in jdbctemplate | c79c4c6e253d97399e118c3f08b2e032df94f3f4 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java
<ide> /*
<del> * Copyright 2002-2010 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use... | 1 |
Mixed | Javascript | handle build_id mismatch error | 0bd250f4aaf773287754ba6f40156a1ce79cc8fb | <ide><path>lib/router/index.js
<add>/* global window, location */
<ide> import _Router from './router'
<ide>
<ide> const SingletonRouter = {
<ide> export const createRouter = function (...args) {
<ide>
<ide> // Export the actual Router class, which is usually used inside the server
<ide> export const Router = _Router... | 5 |
Ruby | Ruby | fix the example code for `rails.groups` [ci skip] | bc76ecf6550375176e46f3ea296607744d12bbfe | <ide><path>railties/lib/rails.rb
<ide> def env=(environment)
<ide> # groups assets: [:development, :test]
<ide> #
<ide> # # Returns
<del> # # => [:default, :development, :assets] for Rails.env == "development"
<del> # # => [:default, :production] for Rails.env == "production"
<add> ... | 1 |
Javascript | Javascript | update variable validations | 0b944ddfded8b7f44abf85ca1bd40ab0fd8c5c31 | <ide><path>client/i18n/config.js
<ide> import i18n from 'i18next';
<ide> import { initReactI18next } from 'react-i18next';
<ide>
<del>const { environment, clientLocale } = require('../config/env');
<add>const { clientLocale } = require('../config/env');
<ide> const { i18nextCodes } = require('./allLangs');
<ide>
<ide... | 3 |
Ruby | Ruby | delete unused methods in joinassociation | 1ddbb216eae155cd9347c7651b16a885867c542c | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def pluralize(table_name)
<ide> ActiveRecord::Base.pluralize_table_names ? table_name.to_s.pluralize : table_name
<ide> end
<ide>
<del> def table_alias_for(table_name, table_alias)
<del> "#{table_... | 1 |
Text | Text | fix typos, grammar, and formatting [ci-skip] | cb0da4f817eee35089c1f12a4fa46a765611181f | <ide><path>guides/source/2_3_release_notes.md
<ide> There are two major changes in the architecture of Rails applications: complete
<ide>
<ide> ### Rack Integration
<ide>
<del>Rails has now broken with its CGI past, and uses Rack everywhere. This required and resulted in a tremendous number of internal changes (but i... | 43 |
Javascript | Javascript | use a dictionary for the view registry | d78c0dd1415ed6b49ab97b966ef650e8d5be3b35 | <ide><path>packages/ember-application/lib/system/application.js
<ide> */
<ide> import { ENV } from 'ember-environment';
<ide> import { assert, debug } from 'ember-metal/debug';
<add>import dictionary from 'ember-metal/dictionary';
<ide> import libraries from 'ember-metal/libraries';
<ide> import { isTesting } from 'emb... | 3 |
Text | Text | update pos in tagging example | 9aff317ca788cc996da5125e7d9c4783c8ab9f7e | <ide><path>website/docs/usage/101/_pos-deps.md
<ide> for token in doc:
<ide> | Text | Lemma | POS | Tag | Dep | Shape | alpha | stop |
<ide> | ------- | ------- | ------- | ----- | ---------- | ------- | ------- | ------- |
<ide> | Apple | apple | `PROPN` | `NNP` | `nsubj` | `Xxxxx` | `T... | 1 |
Ruby | Ruby | add --skip-coffee generating option | ea2bf991a90a1c04ce867cfbbe7ac52b8456359f | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def self.add_shared_options_for(name)
<ide> class_option :skip_listen, type: :boolean, default: false,
<ide> desc: "Don't generate configuration that depends on the listen gem"
<ide>
<add> class_o... | 1 |
Python | Python | fix lemma in exceptions and morph rules | 41a322c733808c2ccd6217cd69cb3309df40d2cd | <ide><path>spacy/de/tokenizer_exceptions.py
<ide> from __future__ import unicode_literals
<ide>
<ide> from ..symbols import ORTH, LEMMA, TAG, NORM
<del>from ..deprecated import PRON_LEMMA, DET_LEMMA
<add>from ..deprecated import PRON_LEMMA
<ide>
<ide>
<ide> _exc = {
<ide> "auf'm": [
<ide> {ORTH: "auf", L... | 5 |
Javascript | Javascript | handle multiple dom updates without interference | f9a8bdcafe2900902c9912eee8aeec2a0c1fb557 | <ide><path>src/renderers/dom/client/utils/DOMChildrenOperations.js
<ide> var DOMChildrenOperations = {
<ide> update.type === ReactMultiChildUpdateTypes.REMOVE_NODE) {
<ide> var updatedIndex = update.fromIndex;
<ide> var updatedChild = update.parentNode.childNodes[updatedIndex];
<del> va... | 2 |
Ruby | Ruby | add append_lines tests | e00375e381c7bcd4f0db0d69944dbf831fc62672 | <ide><path>Library/Homebrew/test/test_pathname.rb
<ide> def test_write_does_not_overwrite
<ide> assert_raises(RuntimeError) { @file.write("CONTENT") }
<ide> end
<ide>
<add> def test_append_lines
<add> touch @file
<add> @file.append_lines("CONTENT")
<add> assert_equal "CONTENT\n", File.read(@file)
<add>... | 1 |
Ruby | Ruby | use set_server_option if possible | 425449e98d0539e3fa4debb819283103cf27bce5 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
<ide> def max_allowed_packet
<ide> end
<ide>
<ide> def with_multi_statements
<del> previous_flags = @config[:flags]
<del> @config[:flags] = Mysql2::Client::MULTI_STATEMENTS
<del> reconnect... | 2 |
Mixed | Go | add pkg/parsers/architecture and pkg/platform | 49779b674af09b46c165c8dfe2e76054336b0595 | <ide><path>daemon/info.go
<ide> import (
<ide> "github.com/docker/docker/pkg/fileutils"
<ide> "github.com/docker/docker/pkg/parsers/kernel"
<ide> "github.com/docker/docker/pkg/parsers/operatingsystem"
<add> "github.com/docker/docker/pkg/platform"
<ide> "github.com/docker/docker/pkg/sysinfo"
<ide> "github.com/docke... | 8 |
PHP | PHP | apply fixes from styleci | 9abdb287ba4a577c53fe8fccdf2305ce45fbdb81 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function intersect($items)
<ide> }
<ide>
<ide> /**
<del> * Intersect the collection with the given items by key
<add> * Intersect the collection with the given items by key.
<ide> *
<ide> * @param mixed $items
<ide> * @retur... | 1 |
Python | Python | prevent unnecessary copies (thx to eric firing) | 673de279532eaf153ac97449b0c81a5c4b239ef3 | <ide><path>numpy/ma/core.py
<ide> def getdata(a, subok=True):
<ide> Input ``MaskedArray``, alternatively a ndarray or a subclass thereof.
<ide> subok : bool
<ide> Whether to force the output to be a `pure` ndarray (False) or to
<del> return a subclass of ndarray if approriate (True - default)... | 2 |
Javascript | Javascript | handle transitioning nans | d61745a31155843fd0583f3c6c0a08673e0d4a93 | <ide><path>src/core/core.element.js
<ide>
<ide> // Init if doesn't exist
<ide> else if (!this._view[key]) {
<del> if (typeof value === 'number') {
<add> if (typeof value === 'number' && isNaN(this._view[key]) === false) {
<ide> this._view[key] = value * ease;
<ide> } else {
<ide> this.... | 2 |
Javascript | Javascript | add arrayofstreams to pipeline | e0ecde973705402bd3ce3ec7d611d866e3e95daa | <ide><path>test/parallel/test-stream-pipeline.js
<ide> const net = require('net');
<ide> d.write('test');
<ide> d.end();
<ide> }
<add>
<add>{
<add> const r = new Readable({
<add> read() {}
<add> });
<add> r.push('hello');
<add> r.push('world');
<add> r.push(null);
<add> let res = '';
<add> const w = new W... | 1 |
Go | Go | expand hostname before passing it to newregistry() | ea59aa8cb5c4cde39259112123c47b69ccd9b53d | <ide><path>registry/service.go
<ide> func (s *Service) Search(job *engine.Job) engine.Status {
<ide> if err != nil {
<ide> return job.Error(err)
<ide> }
<add> hostname, err = ExpandAndVerifyRegistryUrl(hostname)
<add> if err != nil {
<add> return job.Error(err)
<add> }
<ide> r, err := NewRegistry(authConfig, HTTP... | 1 |
PHP | PHP | use postgres catalog to fetch column names | ef27fb4118796056068aea8bc72ca689be35d9f4 | <ide><path>src/Database/Schema/PostgresSchema.php
<ide> public function describeIndexSql($tableName, $config)
<ide> {
<ide> $sql = 'SELECT
<ide> c2.relname,
<add> a.attname,
<ide> i.indisprimary,
<ide> i.indisunique,
<ide> i.indisvalid,
<ide> ... | 1 |
Javascript | Javascript | send early logs to metro too | 4ed05ca241b791ad629fd154429a4a53c7731556 | <ide><path>Libraries/Utilities/HMRClient.js
<ide> let hmrClient = null;
<ide> let hmrUnavailableReason: string | null = null;
<ide> let currentCompileErrorMessage: string | null = null;
<ide> let didConnect: boolean = false;
<add>let pendingLogs: Array<[LogLevel, Array<mixed>]> = [];
<ide>
<ide> type LogLevel =
<ide> ... | 1 |
Javascript | Javascript | provide backpressure for pipeline flood | b97c28f59ee898a81f0df988c249359c9b42701d | <ide><path>lib/http.js
<ide> if (process.env.NODE_DEBUG && /http/.test(process.env.NODE_DEBUG)) {
<ide> }
<ide>
<ide> function readStart(socket) {
<del> if (!socket || !socket._handle || !socket._handle.readStart) return;
<add> if (!socket || !socket._handle || !socket._handle.readStart || socket._paused)
<add> r... | 2 |
PHP | PHP | fix code style | 0286e4120d5f6fc119cefec5692ce1b6cb7cf1cf | <ide><path>lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
<ide> public function testSchemaUnsigned() {
<ide> $types = $this->Dbo->fieldParameters['unsigned']['types'];
<ide> $schema = $Model->schema();
<ide> foreach ($types as $type) {
<del> $this->assertArrayHasKey('unsigned', $schema['u'.$type]);
... | 1 |
Javascript | Javascript | fix typo in common/index.js | fc68bf22a9525def6b10f2a03a59e80723f7ea85 | <ide><path>test/common/index.js
<ide> module.exports = {
<ide> skipIfReportDisabled,
<ide> skipIfWorker,
<ide>
<del> get enoughTestCPU() {
<add> get enoughTestCpu() {
<ide> const cpus = require('os').cpus();
<ide> return Array.isArray(cpus) && (cpus.length > 1 || cpus[0].speed > 999);
<ide> }, | 1 |
Javascript | Javascript | change child reference to object reference | 2f234a2ac8b2fbac49997050caf9adcd896ca35d | <ide><path>src/core/Object3D.js
<ide> THREE.Object3D.prototype = {
<ide> remove: function ( object ) {
<ide> var scene = this;
<ide>
<del> var childIndex = this.children.indexOf( child );
<add> var childIndex = this.children.indexOf( object );
<ide>
<ide> if ( childIndex !== - 1 ) {
<ide>
<del> child.parent... | 1 |
PHP | PHP | add "reverse" method to collection | 03f4e92a55fbaf2968a8417c38be491a6f29b60d | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function sortBy(Closure $callback)
<ide> return $this;
<ide> }
<ide>
<add> /**
<add> * Reverse items order.
<add> *
<add> * @return \Illuminate\Support\Collection
<add> */
<add> public function reverse()
<add> {
<add> $this->items = array_reverse($t... | 2 |
PHP | PHP | add option to skip detach on sync | b6d0ab1823b67153f16f0f32e81d9e869abebc26 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> public function createMany(array $records, array $joinings = array())
<ide> * Sync the intermediate tables with a list of IDs.
<ide> *
<ide> * @param array $ids
<add> * @param bool $detaching
<ide> * @return void
<ide> */
<del... | 1 |
Ruby | Ruby | show homebrew_cc in superenv | afd2dde47495d04bc9aeafc32fe8b39515f6563e | <ide><path>Library/Homebrew/cmd/--env.rb
<ide> def __env
<ide> end
<ide>
<ide> def build_env_keys env
<del> %w[ CC CXX LD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS SDKROOT MAKEFLAGS
<add> %w[
<add> CC CXX LD
<add> HOMEBREW_CC
<add> CFLAGS CXXFLAGS CPPFLAGS LDFLAGS SDKROOT MAKEFLAGS
<ide> CMAKE_PR... | 1 |
Javascript | Javascript | fix prepack warning in rn bridge code | 7e97ed00bc5c7cd6a5b8bbc711ddf0e0730ccb8a | <ide><path>Libraries/Interaction/FrameRateLogger.js
<ide> const FrameRateLogger = {
<ide> 'Trying to debug FrameRateLogger without the native module!',
<ide> );
<ide> }
<del> NativeModules.FrameRateLogger && NativeModules.FrameRateLogger.setGlobalOptions(options);
<add> if (NativeModules.FrameRa... | 1 |
Python | Python | change crop and resize fn to fit multilevel ones | f7d74d68320fdcfcbd6f1de496dbee9b2fee61eb | <ide><path>research/object_detection/meta_architectures/context_rcnn_meta_arch.py
<ide> def _compute_second_stage_input_feature_maps(self, features_to_crop,
<ide> A float32 Tensor with shape [K, new_height, new_width, depth].
<ide> """
<ide> box_features = self._crop_and_resize_fn(
<del> features_t... | 2 |
PHP | PHP | fix cs error | ab06c18726630015ea9beccdf1311741eb9e7d84 | <ide><path>src/View/Helper/HtmlHelper.php
<ide> namespace Cake\View\Helper;
<ide>
<ide> use Cake\Core\Configure;
<del>use Cake\Http\Response;
<ide> use Cake\View\Helper;
<ide> use Cake\View\StringTemplateTrait;
<del>use Cake\View\View;
<ide>
<ide> /**
<ide> * Html Helper class for easy use of HTML widgets. | 1 |
Javascript | Javascript | add key to fragment in superblockintro | 73f8377d681f0c52faf3ce8f4ba9745616b02605 | <ide><path>client/src/templates/Introduction/SuperBlockIntro.js
<del>import React, { Component } from 'react';
<add>import React, { Component, Fragment } from 'react';
<ide> import PropTypes from 'prop-types';
<ide> import Helmet from 'react-helmet';
<ide> import { graphql } from 'gatsby';
<ide> export class SuperBlock... | 1 |
Javascript | Javascript | add parser to agent | e576d4ec79ad983853d989819c78328aba0bb6f9 | <ide><path>lib/http.js
<ide> OutgoingMessage.prototype.assignSocket = function(socket) {
<ide> };
<ide>
<ide>
<add>OutgoingMessage.prototype.detachSocket = function(socket) {
<add> assert(socket._httpMessage == this);
<add> socket._httpMessage = null;
<add> this.socket = this.connection = null;
<add>};
<add>
<add>... | 1 |
Javascript | Javascript | remove mixins from scrollview | 221e2fe4095bc9ae15878725bdac4071d53e61f5 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> const StyleSheet = require('StyleSheet');
<ide> const View = require('View');
<ide> const InternalScrollViewType = require('InternalScrollViewType');
<ide>
<del>const createReactClass = require('create-react-class');
<ide> const dismissKeyboard = require('... | 1 |
Text | Text | update image in readme | b0e7abac60eb2a679291484cff851dd8fdd76e0b | <ide><path>README.md
<ide> # Atom — Futuristic Text Editing
<ide>
<del>
<add>
<ide>
<ide> Check out our [documentation on the docs tab](https://github.com... | 1 |
Javascript | Javascript | remove extra semicolon | b4f18fc295fe9cdbabf9e6e8d7587e5d76ff6878 | <ide><path>src/Injector.js
<ide> function createInjector(factoryScope, factories, instanceCache) {
<ide> instanceCache[value] = invoke(factoryScope, factory);
<ide> }
<ide> return instanceCache[value];
<del> };
<add> }
<ide>
<ide> function invoke(self, fn, args){
<ide> args = args || []; | 1 |
Javascript | Javascript | fix error reporting in release script | 0bd2c2bb3d93adcfebdff6bbc3ad3d338b79c42a | <ide><path>scripts/release/publish-commands/publish-to-npm.js
<ide> const push = async ({cwd, dry, version}) => {
<ide> // To better handle the case of pre-release versions.
<ide> if (remoteVersion !== packageVersion) {
<ide> throw Error(
<del> chalk`Publised version {yellow.bold ${... | 1 |
Text | Text | add gatsby.js pwa guide | 40504e30b2310242cebee5603153748ff00f2cdb | <ide><path>guide/english/gatsbyjs/gatsbyjs-pwa/index.md
<add>---
<add>title: Gatsby.js Progressive Web Apps (PWA)
<add>---
<add>
<add>## Gatsby.js PWA
<add>
<add>Gatsby is designed to provide top-notch performance out of the box. It handles code splitting, code minification, and optimizations like pre-loading in the ba... | 1 |
PHP | PHP | fix typo in docblock | df443765cd009145fbed6f4224bf0816243e84ee | <ide><path>src/Network/CorsBuilder.php
<ide> public function __construct(Response $response, $origin, $isSsl = false)
<ide> /**
<ide> * Apply the queued headers to the response.
<ide> *
<del> * If the builer has no Origin, or if there are no allowed domains,
<add> * If the builder has no Origin, o... | 1 |
Ruby | Ruby | improve issue searching | a65f649cf54d90700d039854c1619027cda9e8f6 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def dump
<ide> puts
<ide> unless RUBY_VERSION < "1.8.6" || issues.empty?
<ide> puts "These open issues may also help:"
<del> puts issues.map{ |s| " #{s}" }.join("\n")
<add> puts issues.map{ |i| "#{i['title']} (#{i['html_url']})" }.join("\n")
<id... | 2 |
Javascript | Javascript | reduce core.title.js size | 4068836a42962c306a79f8baec099df0d0f4377f | <ide><path>src/core/core.title.js
<ide> module.exports = function(Chart) {
<ide> text: ''
<ide> };
<ide>
<add> var noop = helpers.noop;
<ide> Chart.Title = Chart.Element.extend({
<ide>
<ide> initialize: function(config) {
<ide> module.exports = function(Chart) {
<ide>
<ide> // These methods are ordered by li... | 2 |
Python | Python | add test for gh17797 | 1ef11c93a52e18ee2c45d4173ec8e685ceb53e9a | <ide><path>numpy/f2py/auxfuncs.py
<ide> def ismodule(rout):
<ide> def isfunction(rout):
<ide> return 'block' in rout and 'function' == rout['block']
<ide>
<add>
<ide> def isfunction_wrap(rout):
<ide> if isintent_c(rout):
<ide> return 0
<ide> def hasassumedshape(rout):
<ide> return False
<ide>
<ide... | 4 |
Text | Text | fix some minor typos on dockerlinks guide | 06d633e1f68d003f6183403b134142b12a24c9ca | <ide><path>docs/sources/userguide/dockerlinks.md
<ide> recipient container in two ways:
<ide>
<ide> ### Environment Variables
<ide>
<del>When two containers are linked, Docker will set some envrionment variables
<add>When two containers are linked, Docker will set some environment variables
<ide> in the target contai... | 1 |
PHP | PHP | add array_search to support\collection | ce9b24fd47791d2b92233e236a82f61c96f78070 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function reverse()
<ide> return new static(array_reverse($this->items));
<ide> }
<ide>
<add> /**
<add> * Search the collection for a given item and returns the corresponding key if successful
<add> *
<add> * @param mixed $value
<add> * @param bool... | 1 |
Text | Text | fix mobile layout | 2b7012ffb01dd96a6096e77408bf35e8b9b40d25 | <ide><path>docs/docs/optimizing-performance.md
<ide> By default, React includes many helpful warnings. These warnings are very useful
<ide>
<ide> If you aren't sure whether your build process is set up correctly, you can check it by installing [React Developer Tools for Chrome](https://chrome.google.com/webstore/detai... | 1 |
Javascript | Javascript | fix ie8 test bug | 398c67fa8173defe7c987331c338cefd91fbdaf5 | <ide><path>src/test/moment/now.js
<ide> test('now - Date mocked', function (assert) {
<ide> // We need to test mocking the global Date object, so disable 'Read Only' jshint check
<ide> /* jshint -W020 */
<ide> var RealDate = Date,
<del> customTimeStr = '2015-01-01T01:30:00.000Z';
<add> customT... | 1 |
Ruby | Ruby | alter the naming structure a bit | a6fbddb7be5095186e7d66aac0ef64e46b7284f9 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> module DatabaseStatements
<ide> def initialize
<ide> super
<ide> @transaction_joinable = nil
<del> @transaction = Transaction::Closed.new(self)
<add> @transaction = C... | 3 |
Python | Python | deprecate close method on memmap arrays | 43cddec31f70e212a5a4b8f748895711bc18c0dc | <ide><path>numpy/core/memmap.py
<ide> def __new__(subtype, name, dtype=uint8, mode='r+', offset=0,
<ide>
<ide> def __array_finalize__(self, obj):
<ide> self._mmap = None
<del> if obj is not None and hasattr(obj, '_mmap'):
<add> if hasattr(obj, '_mmap'):
<ide> self._mmap = obj._mma... | 1 |
Javascript | Javascript | remove history event handler when app is torn down | d996305b4470f80fbb1cbddf54b7d10ffbb6ab47 | <ide><path>src/ng/browser.js
<ide> function Browser(window, document, $log, $sniffer) {
<ide> return callback;
<ide> };
<ide>
<add> /**
<add> * @private
<add> * Remove popstate and hashchange handler from window.
<add> *
<add> * NOTE: this api is intended for use only by $rootScope.
<add> */
<add> se... | 5 |
Ruby | Ruby | capitalize the first letter of sentence | 396bb77199883773c8ce9ef53365a8fc0cac37f8 | <ide><path>actionpack/lib/abstract_controller/base.rb
<ide> def abstract!
<ide> end
<ide>
<ide> def inherited(klass) # :nodoc:
<del> # define the abstract ivar on subclasses so that we don't get
<add> # Define the abstract ivar on subclasses so that we don't get
<ide> # uninitialized ... | 1 |
PHP | PHP | use set order for test that failed on travis | ce3aa692b50b4239e32a58a250d4a7c8f0afca21 | <ide><path>lib/Cake/Test/Case/Model/ModelReadTest.php
<ide> public function testBindUnbind() {
<ide> $this->assertTrue($result);
<ide>
<ide> $result = $TestModel->find('all', array(
<del> 'fields' => 'User.id, User.user'
<add> 'fields' => 'User.id, User.user',
<add> 'order' => array('User.id' => 'ASC'),
<ide... | 1 |
Text | Text | add translation of advanced node and express (4/4) | ab4a4a0697ba89a5c5ac1c3b5844cb6855aa1839 | <ide><path>curriculum/challenges/chinese/06-quality-assurance/advanced-node-and-express/announce-new-users.chinese.md
<ide> id: 589fc832f9fc0f352b528e78
<ide> title: Announce New Users
<ide> challengeType: 2
<del>videoUrl: ''
<add>forumTopicId: 301546
<ide> localeTitle: 宣布新用户
<ide> ---
<ide>
<ide> ## Description
<del>... | 22 |
Text | Text | add note about dotenv package | d3e00ff05e54b3316059fb9ee5c5165bdd7b07a7 | <ide><path>curriculum/challenges/english/05-back-end-development-and-apis/basic-node-and-express/use-the-.env-file.md
<ide> Then, in the `/json` GET route handler you created in the last challenge, transf
<ide>
<ide> **Note:** If you are using Replit, you cannot create a `.env` file. Instead, use the built-in <dfn>SEC... | 1 |
Javascript | Javascript | add tests for texteditorelement.setscrolltop/left | 4c8fd0cb7596dc126ecd7dc2c4fe32ce98ff587a | <ide><path>spec/text-editor-element-spec.js
<ide> describe('TextEditorElement', () => {
<ide> })
<ide> )
<ide>
<add> describe('::setScrollTop and ::setScrollLeft', () => {
<add> it('changes the scroll position', async () => {
<add> element = buildTextEditorElement()
<add> element.getModel().update(... | 2 |
Text | Text | update hosting providers | b8e17502a304b987268340611127907fe6e0a518 | <ide><path>README.md
<ide> Our Xserve ESXi boxes for CI are hosted by [MacStadium](https://www.macstadium.c
<ide>
<ide> [](https://www.macstadium.com)
<ide>
<del>Our Mac Minis for CI were paid ... | 1 |
Ruby | Ruby | fix frozen string usage | 261e2e79262337aaad504dfc5240cd2d2d77d71b | <ide><path>Library/Homebrew/utils/github.rb
<ide> def pretty_ratelimit_reset(reset)
<ide> class AuthenticationFailedError < Error
<ide> def initialize(github_message)
<ide> @github_message = github_message
<del> message = "GitHub #{github_message}:"
<add> message += "GitHub #{github_message}:"
<id... | 1 |
Text | Text | add more documentation to context page | 7d0ee245144a29d66acde6abc56a209baa4cc0c3 | <ide><path>docs/docs/12-context.ko-KR.md
<ide> var MessageList = React.createClass({
<ide>
<ide> 원한다면 전체 React 컴포넌트를 프로퍼티로 전달할 수도 있습니다.
<ide>
<add>## Referencing context in lifecycle methods
<add>
<add>If `contextTypes` is defined within a component, the following lifecycle methods will receive an additional paramet... | 2 |
Python | Python | add hamming distance | 89fc7bf0b024e4c9508db80f575efd5b5616f932 | <ide><path>strings/hamming_distance.py
<add>def hamming_distance(string1: str, string2: str) -> int:
<add> """Calculate the Hamming distance between two equal length strings
<add> In information theory, the Hamming distance between two strings of equal
<add> length is the number of positions at which the corre... | 1 |
Python | Python | add start date to ``trigger_dagrun`` operator | 6609e9a50f0ab593e347bfa92f56194334f5a94d | <ide><path>airflow/api/common/experimental/trigger_dag.py
<ide> def _trigger_dag(
<ide> trigger = _dag.create_dagrun(
<ide> run_id=run_id,
<ide> execution_date=execution_date,
<del> state=State.RUNNING,
<add> state=State.QUEUED,
<ide> conf=run_conf,
<ide... | 4 |
Text | Text | update version install commands in upgrade guide | cff07455e783a3b53a7765113bf231032fca0cbc | <ide><path>docs/upgrading.md
<ide> description: Learn how to upgrade Next.js.
<ide> To update to Next.js version 13, run the following command using your preferred package manager:
<ide>
<ide> ```bash
<del>npm install next react@latest react-dom@latest eslint-config-next
<add>npm i next@latest react@latest react-dom@l... | 1 |
Go | Go | allow add of empty name | 4dec36d1ee8cfd8b396210daa5367d146bbb34bc | <ide><path>pkg/netlink/netlink_linux.go
<ide> func NetworkLinkAdd(name string, linkType string) error {
<ide> msg := newIfInfomsg(syscall.AF_UNSPEC)
<ide> wb.AddData(msg)
<ide>
<del> nameData := newRtAttr(syscall.IFLA_IFNAME, zeroTerminated(name))
<del> wb.AddData(nameData)
<add> if name != "" {
<add> nameData := n... | 1 |
Text | Text | fix distribution strategy | bca18d0b0290418b13f3da10dbdb8edc127131f2 | <ide><path>official/nlp/bert/README.md
<ide> python run_classifier.py \
<ide> --learning_rate=2e-5 \
<ide> --num_train_epochs=3 \
<ide> --model_dir=${MODEL_DIR} \
<del> --distribution_strategy=mirror
<add> --distribution_strategy=mirrored
<ide> ```
<ide>
<ide> To use TPU, you only need to switch distribution s... | 1 |
Python | Python | standardize aws kinesis/firehose naming | f6a41a036d450020917d5862f627e606d0d36ac0 | <ide><path>airflow/providers/amazon/aws/hooks/kinesis.py
<ide> # under the License.
<ide>
<ide> """This module contains AWS Firehose hook"""
<add>import warnings
<ide> from typing import Iterable
<ide>
<ide> from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
<ide>
<ide>
<del>class AwsFirehoseHook(A... | 2 |
Javascript | Javascript | add an additional hook | 1f651d6fcb1c85581833eb68061e8fb3d478b9e1 | <ide><path>lib/Compilation.js
<ide> Compilation.prototype.seal = function seal(callback) {
<ide> this.applyPlugins("optimize-chunks", this.chunks);
<ide> this.applyPlugins("after-optimize-chunks", this.chunks);
<ide>
<del> this.applyPluginsAsyncSeries("optimize-tree", this.chunks, this.modules, function(err) {
<add>... | 1 |
Python | Python | fix wrong reference name/filename in docstring | adfe6ace8839031a4bfe1a9ae12347da3c73c0b4 | <ide><path>src/transformers/data/processors/squad.py
<ide> def get_dev_examples(self, data_dir, filename=None):
<ide> Args:
<ide> data_dir: Directory containing the data files used for training and evaluating.
<ide> filename: None by default, specify this if the evaluation file has a dif... | 1 |
Python | Python | add load and memswap | dad4d2846d43489d6b0f8fb29afe923384a06170 | <ide><path>glances/outputs/glances_stdout_fields.py
<ide> def update(self,
<ide> """
<ide> print('.. _apidoc:')
<ide> print('')
<del> print('API documentation')
<del> print('=================')
<add> print('Restfull/API plugins documentation')
<add> print('===========... | 4 |
Text | Text | release notes for 3.0.1 | 0188ca730674e41717ba914d38c8bf9582abdb0c | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> ## 3.0.x series
<ide>
<add>### 3.0.1
<add>
<add>**Date**: [December 2014](https://github.com/tomchristie/django-rest-framework/issues?q=milestone%3A%223.0.1+Release%22)
<add>
<add>* Documen... | 1 |
Python | Python | add ignore_index crossentropy and iou | b7f02816b5320855ae528971766fdcaad7134a9b | <ide><path>keras/backend.py
<ide> def softsign(x):
<ide> return tf.math.softsign(x)
<ide>
<ide>
<add>def _get_logits(output, from_logits, op_type, fn_name):
<add> output_ = output
<add> from_logits_ = from_logits
<add>
<add> has_keras_logits = hasattr(output, "_keras_logits")
<add> if has_keras_logits... | 6 |
Javascript | Javascript | remove unneeded type | 9f596f63571450a3a30c50c124ca46705ecb2ab2 | <ide><path>lib/Compilation.js
<ide> const iterationBlockVariable = (variables, fn) => {
<ide> indexVariable < variables.length;
<ide> indexVariable++
<ide> ) {
<del> // TODO: Remove when Dependency + DependenciesBlockVariable is typed
<del> /** @type {Dependency[]} */
<ide> const varDep = variables[indexVariab... | 1 |
Javascript | Javascript | remove picker from android permissions example | c780366eeed3d40066ad9ab3859005eda3c6d052 | <ide><path>packages/rn-tester/js/examples/PermissionsAndroid/PermissionsExample.js
<ide>
<ide> 'use strict';
<ide>
<del>const React = require('react');
<add>import * as React from 'react';
<ide>
<del>const {
<del> PermissionsAndroid,
<del> Picker,
<del> StyleSheet,
<del> Text,
<del> TouchableWithoutFeedback,
<d... | 1 |
Ruby | Ruby | get update_attributes working with schemamigration | 57155064d135d67e0624d561c2badfe018b27a3a | <ide><path>activerecord/lib/active_record/schema_migration.rb
<ide> module ActiveRecord
<ide> class SchemaMigration < ActiveRecord::Base # :nodoc:
<ide> class << self
<ide> def primary_key
<del> nil
<add> "version"
<ide> end
<ide>
<ide> def table_name
<ide><path>activerecord/test/... | 2 |
Javascript | Javascript | log error stacktrace only when available | 009d6a8863fae350c8b95f1a6f0936f7b3fbf12d | <ide><path>pdf.js
<ide> function warn(msg) {
<ide> }
<ide>
<ide> function backtrace() {
<del> var stackStr;
<ide> try {
<ide> throw new Error();
<ide> } catch (e) {
<del> stackStr = e.stack;
<add> return e.stack ? e.stack.split('\n').slice(2).join('\n') : "";
<ide> }
<del> return stackStr.split('\n')... | 1 |
Javascript | Javascript | reset state upon load if showpreviousviewonload | 6a16d7dd44fb32dac6280a80554e2317e84b9cb9 | <ide><path>web/viewer.js
<ide> var PDFViewerApplication = {
<ide> mouseScrollDelta: 0,
<ide> preferenceSidebarViewOnLoad: SidebarView.NONE,
<ide> preferencePdfBugEnabled: false,
<add> preferenceShowPreviousViewOnLoad: true,
<ide> isViewerEmbedded: (window.parent !== window),
<ide> url: '',
<ide>
<ide> var P... | 1 |
Javascript | Javascript | improve port validation | 5f7730e2f2689a6af0530d7de16370f9fcce1227 | <ide><path>lib/url.js
<ide> Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
<ide>
<ide> // validate a little.
<ide> if (!ipv6Hostname) {
<del> rest = getHostname(this, rest, hostname);
<add> rest = getHostname(this, rest, hostname, url);
<ide> }
<ide>
<ide> i... | 3 |
Text | Text | add documentroot location | aa2adb933833c7fb7b67b3d0413cfe377b7cb61c | <ide><path>guide/english/apache/index.md
<ide> sudo yum install httpd
<ide> ```
<ide> pacman -S apache
<ide> ```
<add>
<add>### Getting Started
<add>Once you have Apache installed you need to know where to put your HTML documents. This location is generally referred to as the `DocumentRoot`. This location is usually `/... | 1 |
Javascript | Javascript | create a wrapper to manage async callbacks | 62761428eff3a53e69367449eb81869e59e75e39 | <ide><path>angularFiles.js
<ide> angularFiles = {
<ide>
<ide> 'src/ng/anchorScroll.js',
<ide> 'src/ng/animate.js',
<add> 'src/ng/asyncCallback.js',
<ide> 'src/ng/browser.js',
<ide> 'src/ng/cacheFactory.js',
<ide> 'src/ng/compile.js',
<ide><path>src/AngularPublic.js
<ide> $TemplateCacheProvid... | 5 |
Go | Go | use lookup path for init | a352ecb01a788eff3446fe12191ca0434fce1eed | <ide><path>pkg/libcontainer/nsinit/exec.go
<ide> func createCommand(container *libcontainer.Container, console, logFile string, p
<ide> command.SysProcAttr = &syscall.SysProcAttr{
<ide> Cloneflags: uintptr(getNamespaceFlags(container.Namespaces)),
<ide> }
<add> command.Env = container.Env
<ide> return command
<ide... | 2 |
Python | Python | return original exe name when not found | 468a2f286f3a86c984ebfe8d6b81c7ac26de5135 | <ide><path>scipy_distutils/exec_command.py
<ide> def find_executable(exe, path=None):
<ide> """ Return full path of a executable.
<ide> """
<ide> log.debug('find_executable(%r)' % exe)
<add> orig_exe = exe
<ide> if path is None:
<ide> path = os.environ.get('PATH',os.defpath)
<ide> if os.n... | 1 |
Python | Python | fix missing bool8 | 12d22f9337b3e24cccab694cd9caa73d73d1a92f | <ide><path>numpy/core/numerictypes.py
<ide> def bitname(obj):
<ide> base = ''
<ide> char = ''
<ide> try:
<del> info = typeinfo[name.upper()]
<add> if name[-1] == '_':
<add> newname = name[:-1]
<add> else:
<add> newname = name
<add> info = typeinfo[newname.up... | 1 |
Text | Text | fix usage of pluralized word | 9826b24242ba4712ecbb71e19fe56982506ee17f | <ide><path>guides/source/getting_started.md
<ide> The Rails philosophy includes two major guiding principles:
<ide> again, our code is more maintainable, more extensible, and less buggy.
<ide> * **Convention Over Configuration:** Rails has opinions about the best way to do many
<ide> things in a web application, an... | 1 |
Go | Go | reimplement iteration over fileinfos in getorphan | ebf12dbda08633375ab12387255d3f617ee9be38 | <ide><path>layer/filestore.go
<ide> import (
<ide>
<ide> "github.com/docker/distribution"
<ide> "github.com/docker/docker/pkg/ioutils"
<del> "github.com/opencontainers/go-digest"
<add> digest "github.com/opencontainers/go-digest"
<ide> "github.com/pkg/errors"
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide> func (... | 1 |
PHP | PHP | move remindabletrait into reminders namespace | 8e96ccd6c78ca68c1d8e44f48fbab9ac0537229c | <add><path>src/Illuminate/Auth/Reminders/RemindableTrait.php
<del><path>src/Illuminate/Auth/RemindableTrait.php
<del><?php namespace Illuminate\Auth;
<add><?php namespace Illuminate\Auth\Reminders;
<ide>
<ide> trait RemindableTrait {
<ide> | 1 |
PHP | PHP | expand test coverage in viewtask | e9282755a19389340f31579879a0ecf29793b8df | <ide><path>src/Console/Command/Task/ViewTask.php
<ide> public function all() {
<ide> * @return array Returns an variables to be made available to a view template
<ide> */
<ide> protected function _loadController() {
<del> $plugin = null;
<del> if ($this->plugin) {
<del> $plugin = $this->plugin . '.';
<del> }
<d... | 2 |
Javascript | Javascript | remove `undefined` check | 19b44854773623b684a172cc972b6c3e2e7981b6 | <ide><path>lib/_stream_writable.js
<ide> function validChunk(stream, state, chunk, cb) {
<ide>
<ide> if (chunk === null) {
<ide> er = new errors.TypeError('ERR_STREAM_NULL_VALUES');
<del> } else if (typeof chunk !== 'string' &&
<del> chunk !== undefined &&
<del> !state.objectMode) {
<add... | 1 |
Javascript | Javascript | fix build to remove all comments other than header | 27b6791e7376420df7690699f856dbd2110f06bc | <ide><path>gulpfile.js
<ide> function buildTask() {
<ide> .pipe(insert.prepend(header))
<ide> .pipe(streamify(replace('{{ version }}', package.version)))
<ide> .pipe(gulp.dest(outDir))
<del> .pipe(streamify(uglify({
<del> preserveComments: 'some'
<del> })))
<add> .pipe(streamify(uglify()))
<ad... | 1 |
Ruby | Ruby | fix code syntax | f9f52435e7da8cce1b57e24035bdceacc61cab36 | <ide><path>activemodel/lib/active_model/serialization.rb
<ide> module ActiveModel
<ide> # When called, serializable hash will use
<ide> # instance methods that match the name of the attributes hash's keys.
<ide> # In order to override this behavior, take a look at the private
<del> # method ++read_attribute_for_... | 1 |
Javascript | Javascript | replace fixturesdir with fixtures module | 2bf182dc46f9da7c9ed98d9f98898f815da0d2f6 | <ide><path>test/parallel/test-https-eof-for-eom.js
<ide> if (!common.hasCrypto)
<ide> const assert = require('assert');
<ide> const https = require('https');
<ide> const tls = require('tls');
<del>const fs = require('fs');
<add>const fixtures = require('../common/fixtures');
<ide>
<ide> const options = {
<del> key: f... | 1 |
Ruby | Ruby | add test for ghc version style | d3ba9723b244fc52b0b20b1cffa88d71700e6b92 | <ide><path>Library/Homebrew/test/test_versions.rb
<ide> def test_dash_version_dash_style
<ide> check 'http://www.antlr.org/download/antlr-3.4-complete.jar', '3.4'
<ide> end
<ide>
<add> def check_ghc_style
<add> check 'http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-x86_64-apple-darwin.tar.bz2', '7.0.4'
<add>... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.