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 |
|---|---|---|---|---|---|
PHP | PHP | fix broken test | 804d77ee7e5798a52fc08a7c5fe6dbb2ed7082a5 | <ide><path>tests/TestCase/Http/ClientTest.php
<ide> public function testCreateFromUrlOnlySetSchemePortHostBasePath(): void
<ide> $client = Client::createFromUrl('http://example.co:80/some/uri/?foo=bar');
<ide> $config = $client->getConfig();
<ide> $expected = [
<add> 'auth' => null,
<... | 1 |
Ruby | Ruby | pass format to the digestor | a3a98606f30e5d2b08419e0dcd1962fc52974c29 | <ide><path>actionmailer/test/caching_test.rb
<ide> def test_fragment_caching
<ide>
<ide> assert_match expected_body, email.body.encoded
<ide> assert_match expected_body,
<del> @store.read("views/caching_mailer/fragment_cache:#{template_digest("caching_mailer/fragment_cache")}/caching")
<add> @store.r... | 1 |
Text | Text | add support doc | 122d0f8363ecc3588dc6a6187fd5cbb6a7e47f94 | <ide><path>SUPPORT.md
<add># Atom Support
<add>
<add>If you're looking for support for Atom there are a lot of options, check out:
<add>
<add>* User Documentation — [The Atom Flight Manual](http://flight-manual.atom.io)
<add>* Developer Documentation — [Atom API Documentation](https://atom.io/docs/api/lates... | 1 |
Ruby | Ruby | improve insufficient test for `safe_join` | b14ac2f7da5cbae0b6989c50f44d37a8304d86c1 | <ide><path>actionview/test/template/output_safety_helper_test.rb
<ide> def setup
<ide> end
<ide>
<ide> test "safe_join should return the safe string separated by $, when second argument is not passed" do
<del> joined = safe_join(["a", "b"])
<del> assert_equal "a#{$,}b", joined
<add> default_delimeter = $,... | 1 |
Python | Python | move "private" method to the end, add a docstrings | 850c992029ccfaab1131f069e5f3e7a6ff0cb4eb | <ide><path>libcloud/compute/drivers/ec2.py
<ide> def _to_snapshot(self, element):
<ide> 'description': description,
<ide> 'state': state})
<ide>
<del> def _get_common_security_group_params(self, group_id, protocol,
<del> ... | 1 |
Ruby | Ruby | eliminate boolean argument to version.new | 4bbefc12e36bb3cbe661983f7533110a0f85758e | <ide><path>Library/Homebrew/version.rb
<ide> def <=>(other)
<ide> StringToken::PATTERN
<ide> )
<ide>
<add> class FromURL < Version
<add> def detected_from_url?
<add> true
<add> end
<add> end
<add>
<ide> def self.detect(url, specs={})
<ide> if specs.has_key?(:tag)
<del> new(specs[:tag][/((... | 1 |
Python | Python | fix documentation for masking layer | 34bce5bac9f434dc501f4cbff37b44680271a337 | <ide><path>keras/layers/core.py
<ide> class Masking(Layer):
<ide> """Masks a sequence by using a mask value to skip timesteps.
<ide>
<del> For each timestep in the input tensor (dimension #1 in the tensor),
<del> if all values in the input tensor at that timestep
<del> are equal to `mask_value`, then the ... | 1 |
Javascript | Javascript | add matrix4 unittests | f0151321810eac88a04ec2509dde6a3a72869350 | <ide><path>test/unit/src/math/Matrix4.tests.js
<ide> export default QUnit.module( 'Maths', () => {
<ide> } );
<ide>
<ide> // PUBLIC STUFF
<del> QUnit.todo( "isMatrix4", ( assert ) => {
<add> QUnit.test( "isMatrix4", ( assert ) => {
<ide>
<del> assert.ok( false, "everything's gonna be alright" );
<add> var a... | 1 |
Python | Python | fix code documentation | 279305eede83b12ec2d038caf86f16771443d7e0 | <ide><path>object_detection/create_pet_tf_record.py
<ide> def get_class_name_from_filename(file_name):
<ide> ie. "american_pit_bull_terrier_105.jpg"
<ide>
<ide> Returns:
<del> example: The converted tf.Example.
<add> A string of the class name.
<ide> """
<ide> match = re.match(r'([A-Za-z_]+)... | 1 |
Text | Text | use code markup/markdown in headers | 248f057509adb1c9ca6bd456b9ae98b885db11a8 | <ide><path>doc/api/modules.md
<ide> variable. Since the module lookups using `node_modules` folders are all
<ide> relative, and based on the real path of the files making the calls to
<ide> `require()`, the packages themselves can be anywhere.
<ide>
<del>## Addenda: The .mjs extension
<add>## Addenda: The `.mjs` exten... | 1 |
Go | Go | remove panic in lxc driver | 7c06d5e34e2ebf5006ce3a34438f18c071153e97 | <ide><path>execdriver/lxc/driver.go
<ide> func (i *info) IsRunning() bool {
<ide>
<ide> output, err := i.driver.getInfo(i.ID)
<ide> if err != nil {
<del> panic(err)
<add> utils.Errorf("Error getting info for lxc container %s: %s (%s)", i.ID, err, output)
<add> return false
<ide> }
<ide> if strings.Contains(stri... | 1 |
Javascript | Javascript | clarify limitations of object iteration | 4ba8e3463adefe22e8779e1813bd75681773cbc4 | <ide><path>src/ng/directive/ngRepeat.js
<ide> * <div ng-repeat="(key, value) in myObj"> ... </div>
<ide> * ```
<ide> *
<del> * You need to be aware that the JavaScript specification does not define the order of keys
<del> * returned for an object. (To mitigate this in Angular 1.3 the `ngRepeat` directive
<del> * use... | 1 |
PHP | PHP | add tests for enable/disable/enabled | e600e54f80dfdcdd113c2f3590e4b8638e6d8d1e | <ide><path>lib/Cake/Test/TestCase/Cache/CacheTest.php
<ide> public function testSetOnAlternateConfigs() {
<ide> $this->assertEquals(strtotime('+1 year') - time(), $settings['duration']);
<ide> }
<ide>
<add>/**
<add> * Test toggling enabled state of cache.
<add> *
<add> * @return void
<add> */
<add> public function ... | 1 |
Ruby | Ruby | kill nonexistent method removal | db9e67a6c873a46e9eb1103d7f8c2113d2c82635 | <ide><path>actionmailer/test/old_base/url_test.rb
<ide> def signed_up_with_url(recipient)
<ide> end
<ide>
<ide> class <<self
<del> remove_method :received_body
<del> remove_method :received_body=
<ide> attr_accessor :received_body
<ide> end
<ide> | 1 |
Text | Text | fix typo in readme | 47298a7d1686096ddb12199de33deaf404b1a482 | <ide><path>README.md
<ide> The built version of jQuery will be put in the `dist/` subdirectory.
<ide>
<ide> ### Modules (new in 1.8)
<ide>
<del>Starting in jQuery 1.8, special builds can now be created that optionally exlude or include any of the following modules:
<add>Starting in jQuery 1.8, special builds can now ... | 1 |
Text | Text | stress the importance of cable management | 335c4b120b6333ea19688c538fc9e0461c702a13 | <ide><path>client/src/pages/guide/english/computer-hardware/cooling/index.md
<ide> Cooling devices are available for individual parts on the computer. The two most
<ide> Room ventilation - Locate the computer where it is neutral to the rooms environmental registers. Keep the computer away from room heaters or vents at ... | 1 |
Python | Python | replace strided slice with tf.expand_dims | b82fe7d258a621b953dcb3b78bd03da4fef70a44 | <ide><path>src/transformers/modeling_tf_utils.py
<ide> def call(self, inputs, cls_index=None, training=False):
<ide> ) # A tensor full of shape [batch] or [batch, num choices] full of sequence length
<ide> cls_shape = shape_list(cls_index)
<ide> if len(cls_shape) <= len(hidden_s... | 17 |
Javascript | Javascript | fix small lint issues | 5a3d85bf53341078186d7fda8688efab921e610f | <ide><path>charsets.js
<add>/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
<add>/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
<add>
<add>'use strict';
<ide>
<ide> var ISOAdobeCharset = [
<ide> '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
<i... | 2 |
Java | Java | introduce supplier<string> support in assert util | 17dd5dd22d9b68bf60c302833c8c33d3cb914ed3 | <ide><path>spring-core/src/main/java/org/springframework/util/Assert.java
<ide>
<ide> import java.util.Collection;
<ide> import java.util.Map;
<add>import java.util.function.Supplier;
<ide>
<ide> /**
<ide> * Assertion utility class that assists in validating arguments.
<ide> public abstract class Assert {
<ide>
<id... | 2 |
Ruby | Ruby | fix small typos in routing docs | 746331711585cfcb158dafcaf3ea5d60d9825ed2 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def root(options = {})
<ide> # A pattern can also point to a +Rack+ endpoint i.e. anything that
<ide> # responds to +call+:
<ide> #
<del> # match 'photos/:id' => lambda {|hash| [200, {}, "Coming soon" }
<add> # m... | 1 |
Java | Java | fix artsurfaceview with nodes | 7cc4e0364abbfe0a71ec47eac98f454166834028 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewManager.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 s... | 4 |
Text | Text | update the passhref link | 166834e578461de1400ae145f2a20f050f8130ec | <ide><path>docs/api-reference/next/link.md
<ide> export default Home
<ide>
<ide> - `href` - The path inside `pages` directory. This is the only required prop
<ide> - `as` - The path that will be rendered in the browser URL bar. Used for dynamic routes
<del>- [`passHref`](#forcing-Link-to-expose-href-to-its-child) - Fo... | 1 |
Java | Java | add support for generating method names | 16456342f5c55e691596c5577c72ed6dceef6ade | <ide><path>spring-core/src/main/java/org/springframework/aot/generate/MethodNameGenerator.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add... | 2 |
Text | Text | use code markup/markdown in headers | f8795db8b3eb75b12bd42b3a033c59bd0423667a | <ide><path>doc/api/http.md
<ide> list like the following:
<ide> 'accepT', '*/*' ]
<ide> ```
<ide>
<del>## Class: http.Agent
<add>## Class: `http.Agent`
<ide> <!-- YAML
<ide> added: v0.3.4
<ide> -->
<ide> http.get({
<ide> });
<ide> ```
<ide>
<del>### new Agent(\[options\])
<add>### `new Agent([options])`
<ide> <!-- ... | 1 |
Text | Text | remove extra word | 814b1821e6616621248a2c7a83f5cd352f0c68e9 | <ide><path>readme.md
<ide> npm install --save next react react-dom
<ide> ```
<ide>
<ide> > Next.js 4 only supports [React 16](https://reactjs.org/blog/2017/09/26/react-v16.0.html).<br/>
<del>> We had to drop React 15 support due to the way how React 16 works and how we use it.
<add>> We had to drop React 15 support du... | 1 |
Ruby | Ruby | fix style complaint | 98959f1fb9c667abde593dcd92128aed5367d29a | <ide><path>Library/Homebrew/dev-cmd/release-notes.rb
<ide> def release_notes
<ide> .lines.grep(/Merge pull request/)
<ide>
<ide> output.map! do |s|
<del> s.gsub(/.*Merge pull request #(\d+) from ([^\/]+)\/[^>]*(>>)*/,
<add> s.gsub(%r{.*Merge pull request #(\d+) from ([^/]+)/[^>]*(>>)*},... | 1 |
Text | Text | update writeable nested serializer doc | 764dabd29e127a0b1a07794f8268a1b1535d9507 | <ide><path>docs/api-guide/serializers.md
<ide> Here's an example for an `.update()` method on our previous `UserSerializer` cla
<ide> def update(self, instance, validated_data):
<ide> profile_data = validated_data.pop('profile')
<ide> # Unless the application properly enforces that this ... | 1 |
PHP | PHP | fix condition to appease psalm | 88856b765c91e212c96669342d897e8dd334183d | <ide><path>src/TestSuite/IntegrationTestTrait.php
<ide> protected function _addTokens(string $url, array $data): array
<ide> $token = $middleware->createToken();
<ide> } elseif (isset($this->_cookie['csrfToken'])) {
<ide> $token = $this->_cookie['csrfToken'];
<del> ... | 1 |
Text | Text | add stability message for atom.io api | 126d0d1b3c7b8dd0291418bd8326206314854693 | <ide><path>docs/apm-rest-api.md
<ide> and making sure you have pushed your git tag. In fact, Atom itself shells out to
<ide> uses `apm`, see the [PackageManager class](https://github.com/atom/settings-view/blob/master/lib/package-manager.coffee)
<ide> in the `settings-view` package.
<ide>
<add>*This API should be cons... | 1 |
Java | Java | add @author tags for jdbc keyholder support | 50391ad3d7a2f16de7466e1cd60b8ac49929fd06 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/support/GeneratedKeyHolder.java
<ide> *
<ide> * @author Thomas Risberg
<ide> * @author Juergen Hoeller
<add> * @author Slawomir Dymitrow
<ide> * @since 1.1
<ide> */
<ide> public class GeneratedKeyHolder implements KeyHolder {
<ide><path>spring-jdbc/src/... | 2 |
PHP | PHP | adjust behavior of attribute bag | e9d3e71d529fcb5764c7d13eaab26deca0ffe4e1 | <ide><path>src/Illuminate/View/ComponentAttributeBag.php
<ide> namespace Illuminate\View;
<ide>
<ide> use ArrayAccess;
<add>use Illuminate\Support\Arr;
<ide> use Illuminate\Support\HtmlString;
<ide>
<ide> class ComponentAttributeBag implements ArrayAccess
<ide> public function __construct(array $attributes = [])
<ide... | 2 |
Text | Text | titlecase the word "with" | e54980efd8d2a409b2267d318182134b9a37b396 | <ide><path>docs/Typechecking.md
<del># Type Checking with Sorbet
<add># Type Checking With Sorbet
<ide>
<ide> The majority of the code in Homebrew is written in Ruby which is a dynamic
<ide> language. To avail the benefits of static type checking, we have set up Sorbet in | 1 |
Python | Python | improve error handling in run_command | 889128e5c586f39eb6f18ae6a6b6fbe1505f4080 | <ide><path>spacy/util.py
<ide> def join_command(command: List[str]) -> str:
<ide> def run_command(
<ide> command: Union[str, List[str]],
<ide> *,
<del> capture: bool = False,
<ide> stdin: Optional[Any] = None,
<add> capture: bool=False,
<ide> ) -> Optional[subprocess.CompletedProcess]:
<ide> """Ru... | 1 |
Ruby | Ruby | use existing constant for joining instead of '_' | 25991b94c7cb3d1763b79c67dfadf2aec974eebe | <ide><path>actionview/lib/action_view/record_identifier.rb
<ide> def dom_id(record, prefix = nil)
<ide> # make sure yourself that your dom ids are valid, in case you overwrite this method.
<ide> def record_key_for_dom_id(record)
<ide> key = convert_to_model(record).to_key
<del> key ? key.join('_') : ... | 1 |
Ruby | Ruby | add missing requires | 1cddc91a02be8627dd266d79af1ee2675218fdfe | <ide><path>activemodel/lib/active_model/attribute.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "active_support/core_ext/object/duplicable"
<add>require "active_model/type"
<ide>
<ide> module ActiveModel
<ide> class Attribute # :nodoc: | 1 |
Javascript | Javascript | expand test coverage of readline | d37f27a00830f364f3375fed996ecb75e61f7f9b | <ide><path>test/parallel/test-readline-csi.js
<add>// Flags: --expose-internals
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const readline = require('readline');
<add>const { Writable } = require('stream');
<add>const { CSI } = require('internal/readlin... | 1 |
Javascript | Javascript | remove function export from helper blueprint | e29a526b3c3a785b2830df2b55679667e9f0f24e | <ide><path>blueprints/helper/files/__root__/__collection__/__name__.js
<ide> import { helper } from '@ember/component/helper';
<ide>
<del>export function <%= camelizedModuleName %>(params/*, hash*/) {
<add>export default helper(function <%= camelizedModuleName %>(params/*, hash*/) {
<ide> return params;
<del>}
<del>... | 2 |
PHP | PHP | stop email reverification with same link | f7b6362c6e46e759859a048cef02ff59a172329b | <ide><path>src/Illuminate/Foundation/Auth/VerifiesEmails.php
<ide> public function verify(Request $request)
<ide> if ($request->route('id') != $request->user()->getKey()) {
<ide> throw new AuthorizationException;
<ide> }
<add>
<add> if ($request->user()->hasVerifiedEmail()) {
... | 1 |
Ruby | Ruby | handle false in relation strict loading checks | 226007daa1e1332da1b0b68a859913c43df0d2c7 | <ide><path>activerecord/lib/active_record/associations/association.rb
<ide> def create!(attributes = nil, &block)
<ide>
<ide> private
<ide> def find_target
<del> if (owner.strict_loading? || reflection.strict_loading?) && owner.validation_context.nil?
<add> if strict_loading? && owner.v... | 4 |
Javascript | Javascript | add simple fullscreen config | d9d4e3756307dca5999b3099cf797b3859d0cb8d | <ide><path>src/config-schema.js
<ide> if (process.platform === 'darwin') {
<ide> description:
<ide> 'Experimental: A `custom` title bar adapts to theme colors. Choosing `custom-inset` adds a bit more padding. The title bar can also be completely `hidden`.<br>Note: Switching to a custom or hidden title bar wil... | 2 |
Python | Python | support utf8 description | 2deb31d0968c77f40c63e0ffb9f655e69fbe1d96 | <ide><path>djangorestframework/views.py
<ide> def get_description(self, html=False):
<ide>
<ide> description = _remove_leading_indent(description)
<ide>
<add> if not isinstance(description, unicode):
<add> description = description.decode('UTF-8')
<add>
<ide> if html:
<ide> ... | 1 |
Ruby | Ruby | fix typo in api docs | 1ae397b5b44eb0bbb797ba63cd9ff63854c4ff06 | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def transform_keys!(&block)
<ide> # Deletes a key-value pair from +Parameters+ and returns the value. If
<ide> # +key+ is not found, returns +nil+ (or, with optional code block, yields
<ide> # +key+ and returns the result). Cf. +#e... | 1 |
Mixed | Javascript | add peeking feature in androidviewpage(rn) | c42080eaaf20710728975aec0180a81cfffb36f3 | <ide><path>Libraries/Components/ViewPager/ViewPagerAndroid.android.js
<ide> class ViewPagerAndroid extends React.Component {
<ide> onPageScrollStateChanged?: Function,
<ide> onPageSelected?: Function,
<ide> pageMargin?: number,
<add> peekEnabled?: boolean,
<ide> keyboardDismissMode?: 'none' | 'on-dra... | 2 |
PHP | PHP | fix undefined variables | 52777eecdca8fbafe4ea07498953aabb548481f2 | <ide><path>src/Illuminate/Database/Connectors/Connector.php
<ide> public function createConnection($dsn, array $config, array $options)
<ide> );
<ide> } catch (Exception $e) {
<ide> return $this->tryAgainIfCausedByLostConnection(
<del> $e, $dsn, $username, $password, $opti... | 1 |
Javascript | Javascript | set testswarm.runmax from config file | 6af0bcc6262062aa99102a7a9bbde36779f1388f | <ide><path>grunt.js
<ide> module.exports = function( grunt ) {
<ide> authUsername: config.authUsername,
<ide> authToken: config.authToken,
<ide> jobName: 'jQuery commit #<a href="https://github.com/jquery/jquery/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>',
<del> runMax: 4,
<add> runMax: conf... | 1 |
Text | Text | add two css multi-column properties to index.md | 8448e712995c35a0b287832d137c3ae98508086e | <ide><path>guide/english/css/css3-multiple-columns/index.md
<ide> Unfortunately this is impossible to do with CSS and HTML without forcing column
<ide>
<ide> There are several properties that let you customize multi-column layout:
<ide> * column-count
<add>* column-fill
<ide> * column-gap
<ide> * column-rule-style
<id... | 1 |
Ruby | Ruby | use an empty attributemethodmatcher by default | 8b8b7143efe2e0bac5bcfe90264e4baa66bdb532 | <ide><path>activemodel/lib/active_model/attribute_methods.rb
<ide> module AttributeMethods
<ide>
<ide> included do
<ide> class_attribute :attribute_method_matchers, :instance_writer => false
<del> self.attribute_method_matchers = []
<add> self.attribute_method_matchers = [ClassMethods::AttributeMet... | 2 |
Go | Go | add flag for inter-container communication | ce965b8c43f91f0c32403cfaadfd4e279421090b | <ide><path>config.go
<ide> import (
<ide> )
<ide>
<ide> type DaemonConfig struct {
<del> Pidfile string
<del> GraphPath string
<del> ProtoAddresses []string
<del> AutoRestart bool
<del> EnableCors bool
<del> Dns []string
<del> EnableIptables bool
<del> BridgeIface string
<del> DefaultI... | 3 |
Ruby | Ruby | use regex escape sequences to shorten stuff up | 9c219bf3616e62d607593bbb4b96c53f6d5436af | <ide><path>actionpack/lib/action_view/helpers/number_helper.rb
<ide> def number_to_phone(number, options = {})
<ide> country_code = options[:country_code]
<ide>
<ide> if area_code
<del> number.gsub!(/([0-9]{1,3})([0-9]{3})([0-9]{4}$)/,"(\\1) \\2#{delimiter}\\3")
<add> number.gsub!(/(\... | 1 |
Text | Text | shorten some links in readme.md | aad17dac3580e80b9f4c915c9e7d9feac4e8eabd | <ide><path>README.md
<ide> Second, read the [Troubleshooting Checklist](https://docs.brew.sh/Troubleshootin
<ide> [](https://travis-ci.org/Homebrew/brew)
<ide> [](https://codecov.io/gh/Homebrew... | 1 |
Javascript | Javascript | add comments for diff algorithm | eccc65919a6dc9a05936e070181a16604ba346e6 | <ide><path>lib/internal/assert.js
<ide> function createErrDiff(actual, expected, operator) {
<ide> // Only extra expected lines exist
<ide> const cur = i - lastPos;
<ide> if (actualLines.length < i + 1) {
<add> // If the last diverging line is more than one line above and the
<add> // current line... | 1 |
Javascript | Javascript | improve serialization of lazy elements | 3db039a183cd836e2783bccd6e8a9d04d4b83b52 | <ide><path>lib/serialization/BinaryMiddleware.js
<ide> class BinaryMiddleware extends SerializerMiddleware {
<ide> case "function": {
<ide> if (!SerializerMiddleware.isLazy(thing))
<ide> throw new Error("Unexpected function " + thing);
<del> /** @type {SerializedType[0]} */
<del> const seria... | 2 |
Text | Text | improve note on zlib apis threadpool usage | 0234068f7f5d050b1c68bb02776f1da42e4ec0cf | <ide><path>doc/api/zlib.md
<ide> zlib.unzip(buffer, (err, buffer) => {
<ide> ## Threadpool Usage
<ide>
<ide> Note that all zlib APIs except those that are explicitly synchronous use libuv's
<del>threadpool, which can have surprising and negative performance implications for
<del>some applications, see the [`UV_THREADP... | 1 |
Ruby | Ruby | fix typo in [8287] | d7e978044548ee7b0e62282e6bb84629b5b8eddf | <ide><path>actionpack/lib/action_view/helpers/scriptaculous_helper.rb
<ide> def visual_effect(name, element_id = false, js_options = {})
<ide> # attributes in the form "string_identifier". For example, "item_1". Only
<ide> # the identifier part of the id attribute will be serialized.
<ide> #
<del> ... | 1 |
Javascript | Javascript | add period on line 9 | 84b5a13f204f901d4074b4737abda27e6b7c532f | <ide><path>src/index.js
<ide> import compose from './compose'
<ide>
<ide> /*
<ide> * This is a dummy function to check if the function name has been altered by minification.
<del>* If the function has been minified and NODE_ENV !== 'production', warn the user
<add>* If the function has been minified and NODE_ENV !== '... | 1 |
Go | Go | fix unmarshalling of command and entrypoint | 17d6f00ec2b8b9636f0bb64c55a5b3855e8f4bae | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func (s *DockerSuite) TestPostContainerStop(c *check.C) {
<ide> c.Fatal(err)
<ide> }
<ide> }
<add>
<add>// #14170
<add>func (s *DockerSuite) TestPostContainersCreateWithStringOrSliceEntrypoint(c *check.C) {
<add> config := struct {
<add> Image stri... | 3 |
Text | Text | update tutorial links | c0cf37e35dd51a1c5fb6e98d0bc3dcff0f60d412 | <ide><path>docs/community/tutorials-and-resources.md
<ide> Want your Django REST Framework talk/tutorial/article to be added to our website
<ide>
<ide>
<ide> [beginners-guide-to-the-django-rest-framework]: https://code.tutsplus.com/tutorials/beginners-guide-to-the-django-rest-framework--cms-19786
<del>[getting-starte... | 1 |
Text | Text | fix some nits and typo | 68bf45084e3af9fa20d096b0d557bc1451aa5443 | <ide><path>README.md
<ide> of thousands of applications and databases.
<ide>
<ide> Security is very important to us. If you have any issue regarding security,
<ide> please disclose the information responsibly by sending an email to
<del>security@docker.com and not by creating a github issue.
<add>security@docker.com a... | 1 |
Javascript | Javascript | store an applicationinstance on the application | 0941344b7cdc87046551b48be758d4aa1a6f7239 | <ide><path>packages/ember-application/lib/system/application.js
<ide> var Application = Namespace.extend(DeferredMixin, {
<ide> this.buildRegistry();
<ide>
<ide> // TODO:(tomdale+wycats) Move to session creation phase
<del> this.buildContainer();
<add> this.buildInstance();
<ide>
<ide> registerLibra... | 2 |
PHP | PHP | use config_merge instead of array_merge | 0524af4e9d18f7a8d4b1f7e9b5958580d306f024 | <ide><path>src/Illuminate/Support/ServiceProvider.php
<ide> protected function loadConfigFrom($key, $path)
<ide> {
<ide> $defaults = $this->app['files']->getRequire($path);
<ide> $config = $this->app['config']->get($key, []);
<del> $this->app['config']->set($key, array_merge($defaults, $config));
<add> $this->ap... | 1 |
Python | Python | fix typos in trapz() | 6f1da5f8f5db99e7ca8397d925c8d2a013a305e0 | <ide><path>numpy/lib/function_base.py
<ide> def trapz(y, x=None, dx=1.0, axis=-1):
<ide> x : array_like, optional
<ide> If `x` is None, then spacing between all `y` elements is `dx`.
<ide> dx : scalar, optional
<del> If `x` is None, spacing given by `dx` is assumed. Default is 1.
<add> If ... | 1 |
Go | Go | make o/p of ipam dumpdatabase() consistent | 04f5343139e2cc7b322aacab3e58a4387dbe080b | <ide><path>libnetwork/ipam/allocator.go
<ide> package ipam
<ide> import (
<ide> "fmt"
<ide> "net"
<add> "sort"
<ide> "sync"
<ide>
<ide> log "github.com/Sirupsen/logrus"
<ide> func (a *Allocator) getAddress(nw *net.IPNet, bitmask *bitseq.Handle, prefAddres
<ide> func (a *Allocator) DumpDatabase() string {
<ide> a.... | 1 |
Python | Python | reset warnings.showwarning on interpreter shutdown | 9583c1cab65d28146e73aab0993304886c724bf3 | <ide><path>airflow/settings.py
<ide> def custom_show_warning(message, category, filename, lineno, file=None, line=Non
<ide> write_console.print(msg, soft_wrap=True)
<ide>
<ide>
<del>warnings.showwarning = custom_show_warning
<add>def replace_showwarning(replacement):
<add> """Replace ``warnings.showwarning``, ... | 1 |
Java | Java | add synchronous test of resubscribe after error | 69a1dbd753d1f060df38e47e6179cf05b6b62d63 | <ide><path>rxjava-core/src/test/java/rx/operators/OperatorRetryTest.java
<ide> import static org.junit.Assert.assertEquals;
<ide> import static org.junit.Assert.fail;
<ide> import static org.mockito.Matchers.any;
<add>import static org.mockito.Mockito.doThrow;
<ide> import static org.mockito.Mockito.inOrder;
<ide> impo... | 1 |
Javascript | Javascript | pass invertstickyheaders to scrollview | dd479a93772c3a52561fc32ee84b25ce822a30fa | <ide><path>Libraries/Lists/VirtualizedList.js
<ide> class VirtualizedList extends React.PureComponent<Props, State> {
<ide> onScrollEndDrag: this._onScrollEndDrag,
<ide> onMomentumScrollEnd: this._onMomentumScrollEnd,
<ide> scrollEventThrottle: this.props.scrollEventThrottle, // TODO: Android support
... | 1 |
Javascript | Javascript | move scheduler priority check into reactdom | 3d10eca241be7b51cd4d74cf69eb1f429818b71a | <ide><path>packages/react-dom/src/events/DOMEventNames.js
<ide> export type DOMEventName =
<ide> | 'loadeddata'
<ide> | 'loadedmetadata'
<ide> | 'lostpointercapture'
<add> | 'message'
<ide> | 'mousedown'
<ide> | 'mouseenter'
<ide> | 'mouseleave'
<ide><path>packages/react-dom/src/events/ReactDOMEventListene... | 3 |
Python | Python | solve issue on process display | 22eaa0ea19b369587a629d5e400434d8d37026ea | <ide><path>glances/glances.py
<ide> import signal
<ide> import time
<ide> from datetime import datetime, timedelta
<add>import locale
<ide> import gettext
<add>locale.setlocale(locale.LC_ALL, '')
<ide> gettext.install(__appname__)
<ide>
<ide> # Specifics libs | 1 |
Ruby | Ruby | use interleaved output for `errorduringexecution` | 2712fcaa6728a5bfbf9a2113bdfd93b52370615b | <ide><path>Library/Homebrew/cask/lib/hbc/system_command.rb
<ide> def self.run!(command, **options)
<ide> end
<ide>
<ide> def run!
<add> @merged_output = []
<ide> @processed_output = { stdout: "", stderr: "" }
<ide> odebug command.shelljoin
<ide>
<ide> def run!
<ide> when :stdout
<ide>... | 3 |
Go | Go | delete a function which isn't used in the project | 81849600fc1d7335f1ddc3ca5aa1cb5625bd2d30 | <ide><path>api/server/httputils/httputils.go
<ide> func ParseForm(r *http.Request) error {
<ide> return nil
<ide> }
<ide>
<del>// ParseMultipartForm ensures the request form is parsed, even with invalid content types.
<del>func ParseMultipartForm(r *http.Request) error {
<del> if err := r.ParseMultipartForm(4096); er... | 1 |
Javascript | Javascript | show stacktrace in yellowbox | 8d038572f3c42033cfcc7a7901eea0ff75bbc32a | <ide><path>Libraries/ReactIOS/YellowBox.js
<ide> 'use strict';
<ide>
<ide> const EventEmitter = require('EventEmitter');
<del>import type EmitterSubscription from 'EmitterSubscription';
<ide> const Platform = require('Platform');
<ide> const React = require('React');
<ide> const StyleSheet = require('StyleSheet');
<ad... | 1 |
Text | Text | remove undef ndebug from addons.md | 06ed0e81879c97d6f9cbbbc0bf2b3db06ba232cf | <ide><path>doc/api/addons.md
<ide> The following `addon.cc` implements AtExit:
<ide>
<ide> ```cpp
<ide> // addon.cc
<del>#undef NDEBUG
<ide> #include <assert.h>
<ide> #include <stdlib.h>
<ide> #include <node.h> | 1 |
Ruby | Ruby | remove unused `column#coder` | 748f070895dc0d76a02a45e1be5c50ea67a79e85 | <ide><path>activerecord/lib/active_record/connection_adapters/column.rb
<ide> module Format
<ide> end
<ide>
<ide> attr_reader :name, :default, :cast_type, :null, :sql_type, :default_function
<del> attr_accessor :coder
<del>
<del> alias :encoded? :coder
<ide>
<ide> delegate :type, :precisio... | 2 |
Go | Go | add tests for api container delete | 8771cafab65e50d09d3590a7f22758e919b78fe4 | <ide><path>integration-cli/docker_api_containers_test.go
<ide> import (
<ide> "encoding/json"
<ide> "io"
<ide> "net/http"
<add> "os"
<ide> "os/exec"
<ide> "strings"
<ide> "time"
<ide> func (s *DockerSuite) TestContainerApiCopyContainerNotFound(c *check.C) {
<ide> c.Assert(err, check.IsNil)
<ide> c.Assert(status... | 2 |
Ruby | Ruby | remove unused default argument | f80748096df45534e6f38cdfb2ee83e1051cb56b | <ide><path>Library/Homebrew/formula_versions.rb
<ide> def initialize(formula)
<ide> @entry_name = formula.path.relative_path_from(repository).to_s
<ide> end
<ide>
<del> def rev_list(branch="HEAD")
<add> def rev_list(branch)
<ide> repository.cd do
<ide> Utils.popen_read("git", "rev-list", "--abbrev-co... | 1 |
PHP | PHP | correct doc blocks | 587617bf12a8b8c235ee9ee81276282045f8c813 | <ide><path>src/Network/Http/CookieCollection.php
<ide> class CookieCollection {
<ide> * Store the cookies that haven't expired. If a cookie has been expired
<ide> * and is currently stored, it will be removed.
<ide> *
<del> * @param Response $response The response to read cookies from
<add> * @param \Cake\Network\Re... | 2 |
Go | Go | fix race condition in test case | 010077ba0fb53ef4b88cc5c8f03cd770481e7dd5 | <ide><path>libnetwork/drivers/bridge/bridge_test.go
<ide> func TestCreateParallel(t *testing.T) {
<ide> t.Fatalf("Failed to setup driver config: %v", err)
<ide> }
<ide>
<add> ipV4Data := getIPv4Data(t, "docker0")
<add>
<ide> ch := make(chan error, 100)
<ide> for i := 0; i < 100; i++ {
<ide> name := "net" + strc... | 1 |
Python | Python | raise error not string | daa1c7529ac6491338adb81622d5041a4ba1f446 | <ide><path>boolean_algebra/quine_mc_cluskey.py
<ide> from __future__ import annotations
<ide>
<ide> from collections.abc import Sequence
<add>from typing import Literal
<ide>
<ide>
<del>def compare_string(string1: str, string2: str) -> str:
<add>def compare_string(string1: str, string2: str) -> str | Literal[False]:... | 14 |
Javascript | Javascript | support odd value for kstringmaxlength | 753b68f9d8177d6af6da536b91d7660182c45406 | <ide><path>test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js
<ide> if (!binding.ensureAllocation(2 * kStringMaxLength))
<ide> common.skip(skipMessage);
<ide>
<ide> const maxString = buf.toString('utf16le');
<del>assert.strictEqual(maxString.length, (kStringMaxLength + 2) / 2);
... | 1 |
Javascript | Javascript | upgrade requirecontextplugin to es6 | bca84363f88a4a646cc1e9f0c30ebb690c980acb | <ide><path>lib/dependencies/RequireContextPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var RequireContextDependency = require("./RequireContextDependency");
<del>var ContextElementDependency = require("./ContextElementDependency");
<ad... | 1 |
Text | Text | add translation kr/threejs-rendering-on-demand.md | 633dbb61bdfd242077b4c012fce7468c1e707c1a | <ide><path>threejs/lessons/kr/threejs-multiple-scenes.md
<add>Title: Three.js로 캔버스, 장면 여러 개 만들기
<add>Description: THREE.js로 다수의 장면을 렌더링해봅니다
<add>TOC: 다중 캔버스, 다중 장면 만들기
<add>
<add>사람들이 자주 하는 질문 중 하나는 Three.js로 여러 개의 캔버스(canvas)를 렌더링하려면
<add>어떻게 해야 하나요?"입니다. 쇼핑몰 사이트나 3D 도표가 여러 개 있는 웹 페이지를
<add>제작한다고 해봅시다. 얼핏 그리 어려울 건 없어 ... | 7 |
Javascript | Javascript | use stable paths for cache key | 188093ae29a7d1d7ba74ba35ce5f37984fc9c6f1 | <ide><path>packager/react-packager/src/Bundler/index.js
<ide> const HMRBundle = require('./HMRBundle');
<ide> const ModuleTransport = require('../lib/ModuleTransport');
<ide> const declareOpts = require('../lib/declareOpts');
<ide> const imageSize = require('image-size');
<add>const path = require('path');
<ide> const ... | 1 |
Python | Python | remove unused g3 dependency | b4bdc94c7b4fc4f11a446714b3edf7a7f3775e86 | <ide><path>research/slim/nets/nasnet/nasnet_utils.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<del>import google3
<del>
<ide> import tensorflow as tf
<ide>
<ide> | 1 |
Javascript | Javascript | simplify loading without globals | 91fb8594006d2014be9273da392e313c787f2570 | <ide><path>globals.js
<del>var document = global.document = require("jsdom").jsdom("<html><head></head><body></body></html>"),
<del> window = global.window = document.createWindow();
<del>
<del>// https://github.com/chad3814/CSSStyleDeclaration/issues/3
<del>var CSSStyleDeclaration_prototype = window.CSSStyleDeclara... | 2 |
Go | Go | update docker network inspect help syntax | 3dd50eaf054833280aad16e718bca4139d927532 | <ide><path>api/client/network.go
<ide> func (cli *DockerCli) CmdNetworkLs(args ...string) error {
<ide>
<ide> // CmdNetworkInspect inspects the network object for more details
<ide> //
<del>// Usage: docker network inspect <NETWORK> [<NETWORK>]
<del>// CmdNetworkInspect handles Network inspect UI
<add>// Usage: docker... | 1 |
PHP | PHP | add typehints for datasource/ | 2758d3cb554c7adfc627747850c28ccf3d4a3e69 | <ide><path>src/Datasource/ConnectionManager.php
<ide> public static function setConfig($key, $config = null): void
<ide> * @param string|null $config The DSN string to convert to a configuration array
<ide> * @return array The configuration array to be stored after parsing the DSN
<ide> */
<del> publi... | 12 |
Text | Text | add morphology and morphanalysis to overview | d3385f4be254bfb3a36ab8404ede3509e9bc7dc6 | <ide><path>website/docs/usage/101/_architecture.md
<ide> an **annotated document**. It also orchestrates training and serialization.
<ide> | [`Span`](/api/span) | A slice from a `Doc` object. |... | 1 |
Python | Python | use absolute imports in test files | 7bbf2bca11bee820086465853e5a6e813b4d02da | <ide><path>numpy/core/tests/test_longdouble.py
<ide> from numpy.testing import (
<ide> assert_, assert_equal, assert_raises, assert_array_equal, temppath,
<ide> )
<del>from ._locales import CommaDecimalPointLocale
<add>from numpy.core.tests._locales import CommaDecimalPointLocale
<ide>
<ide> LD_INFO = np.finfo... | 3 |
Text | Text | improve i18n contribution guidelines | 40d7e04a61601121171bf1908d6dd9259c3a2506 | <ide><path>docs/FAQ.md
<ide>
<ide> Read our ["How to Contribute to Open Source Guide"](https://github.com/freeCodeCamp/how-to-contribute-to-open-source). It's a comprehensive reference for first-timer-friendly projects. And it includes a lot of open source contribution tips.
<ide>
<del>### Can I translate freeCodeCam... | 7 |
Javascript | Javascript | set locale for datetime-change-notify test | 80ed0a66b5ac5754168db2e9e6b8021d596a0679 | <ide><path>test/parallel/test-datetime-change-notify.js
<ide> if (!isMainThread)
<ide>
<ide> const assert = require('assert');
<ide>
<del>process.env.TZ = 'Etc/UTC';
<del>assert.match(new Date().toString(), /GMT\+0000/);
<del>
<del>process.env.TZ = 'America/New_York';
<del>assert.match(new Date().toString(), /Eastern... | 1 |
Text | Text | fix typo in pull_request_template [ci skip] | 71686f09dfd06a8f000d16453d5e24e2e55a03a1 | <ide><path>.github/pull_request_template.md
<ide> benchmarks, or other information.
<ide>
<ide> Finally, if your pull request affects documentation or any non-code
<ide> changes, guidelines for those changes are [available
<del>here](http://guides.rubyonrails.org/contribution_to_ruby_on_rails.html#contributing-to-the-... | 1 |
Ruby | Ruby | fix ci failure due to contain <u+2028> | 660e189c35ddd31fd131c2a360687f39a4ea8081 | <ide><path>actionpack/lib/action_controller/metal/redirecting.rb
<ide> module Redirecting
<ide> # redirect_to post_url(@post), status: 301, flash: { updated_post_id: @post.id }
<ide> # redirect_to({ action: 'atom' }, alert: "Something serious happened")
<ide> #
<del> # Statements after redirect_to in... | 1 |
PHP | PHP | fix typos and missing boolean flags | ad8045c3e615aa8eb43cbeda1f812627de16aa00 | <ide><path>src/Console/Command/Task/ModelTask.php
<ide> public function execute() {
<ide> public function generate($name) {
<ide> $table = $this->getTable();
<ide>
<del> $object = $this->getTableObject($name, $table);
<del> $associations = $this->getAssociations($object);
<add> $model = $this->getTableObject($na... | 1 |
Java | Java | use map.getordefault in getsqltype implementation | c0f4d78ef9b9e03836baa31ac3ada0b4c48197e7 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/AbstractSqlParameterSource.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");... | 1 |
PHP | PHP | add missing braces | 746b8cafdbe0daffd0f918f5a85f5453cf9e4d4b | <ide><path>src/Database/Log/LoggingStatement.php
<ide> class LoggingStatement extends StatementDecorator {
<ide> * Wrapper for the execute function to calculate time spent
<ide> * and log the query afterwards.
<ide> *
<del> * @param array $params list of values to be bound to query
<del> * @return bool true on succe... | 1 |
Python | Python | remove unused variables in cifar10_cnn | fe48b41c2228b64357bedd1942ab981ef2ad3cbc | <ide><path>examples/cifar10_cnn.py
<ide> epochs = 200
<ide> data_augmentation = True
<ide>
<del># input image dimensions
<del>img_rows, img_cols = 32, 32
<del># The CIFAR10 images are RGB.
<del>img_channels = 3
<del>
<ide> # The data, shuffled and split between train and test sets:
<ide> (x_train, y_train), (x_test, y... | 1 |
Go | Go | fix issue with plugin exit | 890a98ceed982454515f5b089d9772fc1e4eb6e0 | <ide><path>plugin/manager_linux.go
<ide> func (pm *Manager) enable(p *v2.Plugin, force bool) error {
<ide> }
<ide> p.Lock()
<ide> p.Restart = true
<add> p.ExitChan = make(chan bool)
<ide> p.Unlock()
<ide> if err := pm.containerdClient.Create(p.GetID(), "", "", specs.Spec(*spec), attachToLog(p.GetID())); err != nil... | 1 |
PHP | PHP | add some minimizable (boolean) attributes | 94daf3d76665ab101211ca74d86d36951aa5af40 | <ide><path>src/View/StringTemplate.php
<ide> protected function _formatAttribute($key, $value, $escape = true)
<ide> $truthy = [1, '1', true, 'true', $key];
<ide> $isMinimized = isset($this->_compactAttributes[$key]);
<ide> if ($isMinimized && in_array($value, $truthy, true)) {
<del> ... | 2 |
Python | Python | move setuptools import to the top. thanks iksaif | a394c4966f8d632e42cce784e87dea4a36168e9a | <ide><path>setup.py
<ide> #!/usr/bin/env python
<ide> # -*- coding: utf-8 -*-
<add>
<add>try:
<add> from setuptools import setup, find_packages
<add> from setuptools.command.test import test
<add>except ImportError:
<add> raise
<add> from ez_setup import use_setuptools
<add> use_setuptools()
<add> fro... | 1 |
Javascript | Javascript | expose hidden docs | 3e12bc481d7a6b089c32e79b45991294d046872f | <ide><path>src/ng/directive/a.js
<ide> 'use strict';
<ide>
<del>/*
<add>/**
<add> * @ngdoc directive
<add> * @name ng.directive:a
<add> * @restrict E
<add> *
<add> * @description
<ide> * Modifies the default behavior of html A tag, so that the default action is prevented when href
<ide> * attribute is empty.
<ide> ... | 1 |
Javascript | Javascript | add tests for the click user action | 8abe438b086fd8a54a66981189d3a41eaeddeaae | <ide><path>test/unit/player-user-actions.test.js
<ide> import sinon from 'sinon';
<ide> import TestHelpers from './test-helpers';
<ide> import FullscreenApi from '../../src/js/fullscreen-api.js';
<ide>
<add>QUnit.module('Player: User Actions: Click', {
<add>
<add> beforeEach() {
<add> this.clock = sinon.useFakeTim... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.