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 | allow options per hasher class for fallback | 04ab8838e4915ffd95b6e11eae3ebdc14be93119 | <ide><path>src/Auth/FallbackPasswordHasher.php
<ide> class FallbackPasswordHasher extends AbstractPasswordHasher {
<ide> */
<ide> public function __construct(array $config = array()) {
<ide> parent::__construct($config);
<del> foreach ($this->_config['hashers'] as $hasher) {
<add> foreach ($this->_config['hashers... | 2 |
Javascript | Javascript | fix long lines in vendor/fbtransform/visitors | 362e9595c46c0a2079cd7bfbdbb93f8ea7b2f5f7 | <ide><path>vendor/fbtransform/visitors.js
<ide>
<ide> 'use strict';
<ide>
<del>var es6ArrowFunctions = require('jstransform/visitors/es6-arrow-function-visitors');
<add>var es6ArrowFunctions =
<add> require('jstransform/visitors/es6-arrow-function-visitors');
<ide> var es6Classes = require('jstransform/visitors/es6-... | 1 |
Javascript | Javascript | add skinnedmesh check for .bones animation path | 9f2d1aea97ece8143e8d576ca72854a0c51a3057 | <ide><path>examples/js/exporters/GLTFExporter.js
<ide> THREE.GLTFExporter.prototype = {
<ide> var trackNode = THREE.PropertyBinding.findNode( root, trackBinding.nodeName );
<ide> var trackProperty = PATH_PROPERTIES[ trackBinding.propertyName ];
<ide>
<del> if ( trackBinding.objectName === 'bones' && trackNo... | 1 |
Python | Python | use example.com domain in tests. | a1b35bb44b7c9251c8b7bc995aa6598044f1d3ef | <ide><path>tests/schemas/test_managementcommand.py
<ide> def test_command_detects_schema_generation_mode(self):
<ide> @pytest.mark.skipif(yaml is None, reason='PyYAML is required.')
<ide> def test_renders_default_schema_with_custom_title_url_and_description(self):
<ide> call_command('generateschema',
<d... | 1 |
Python | Python | remove old, outdated files in /bin | 5025d709e08a7755e20b9a13b8b22f83c37b9273 | <ide><path>bin/get_freqs.py
<del>#!/usr/bin/env python
<del>
<del>from __future__ import unicode_literals, print_function
<del>
<del>import plac
<del>import joblib
<del>from os import path
<del>import os
<del>import bz2
<del>import ujson
<del>from preshed.counter import PreshCounter
<del>from joblib import Parallel, de... | 10 |
Go | Go | expose trust key path in config | e428c824c35e85a02fffee592b79ab7db1a0c4d2 | <ide><path>cli/flags/common.go
<ide> import (
<ide> )
<ide>
<ide> const (
<del> // DefaultTrustKeyFile is the default filename for the trust key
<del> DefaultTrustKeyFile = "key.json"
<ide> // DefaultCaFile is the default filename for the CA pem file
<ide> DefaultCaFile = "ca.pem"
<ide> // DefaultKeyFile is the def... | 6 |
Javascript | Javascript | provide backpressure for pipeline flood | 085dd30e93da67362f044ad1b3b6b2d997064692 | <ide><path>lib/_http_common.js
<ide> function parserOnMessageComplete() {
<ide> stream.push(null);
<ide> }
<ide>
<del> if (parser.socket.readable) {
<del> // force to read the next incoming message
<del> readStart(parser.socket);
<del> }
<add> // force to read the next incoming message
<add> readStart(... | 4 |
Go | Go | return a specific error if plugin is disabled | e33d598059d8af8c57995a2c52f1f9f5691c09e8 | <ide><path>plugin/store.go
<ide> func (name ErrAmbiguous) Error() string {
<ide> return fmt.Sprintf("multiple plugins found for %q", string(name))
<ide> }
<ide>
<add>// ErrDisabled indicates that a plugin was found but it is disabled
<add>type ErrDisabled string
<add>
<add>func (name ErrDisabled) Error() string {
<ad... | 1 |
Go | Go | use correct name for apparmor in t.skip() | 4ace1998e5e297538139185c69ac7c40929abd18 | <ide><path>pkg/sysinfo/sysinfo_linux_test.go
<ide> func checkSysInfo(t *testing.T, sysInfo *SysInfo) {
<ide> func TestNewAppArmorEnabled(t *testing.T) {
<ide> // Check if AppArmor is supported. then it must be TRUE , else FALSE
<ide> if _, err := os.Stat("/sys/kernel/security/apparmor"); err != nil {
<del> t.Skip("A... | 1 |
Ruby | Ruby | fix rubocop violations | ceadda2e94ca44210a3ed96c3049b59cf06f9f6e | <ide><path>actionpack/test/controller/test_case_test.rb
<ide> def test_raw_post_handling
<ide> end
<ide>
<ide> def test_params_round_trip
<del> params = {"foo"=>{"contents"=>[{"name"=>"gorby", "id"=>"123"}, {"name"=>"puff", "d"=>"true"}]}}
<add> params = { "foo" => { "contents" => [{ "name" => "gorby", "id" ... | 1 |
Javascript | Javascript | remove non-existent entries from inspect | 39eb894099f633dc1f3bc82888d4b92e603be679 | <ide><path>lib/perf_hooks.js
<ide> class PerformanceNodeTiming extends PerformanceEntry {
<ide> bootstrapComplete: this.bootstrapComplete,
<ide> environment: this.environment,
<ide> loopStart: this.loopStart,
<del> loopExit: this.loopExit,
<del> thirdPartyMainStart: this.thirdPartyMainStart,... | 2 |
PHP | PHP | fix json validator | b0ad3f667b1b9bfbab4a8d6903488acf0194f042 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateString($attribute, $value)
<ide> */
<ide> protected function validateJson($attribute, $value)
<ide> {
<del> return ! is_null(json_decode($value));
<add> json_decode($value);
<add> return json_last_error... | 1 |
Python | Python | correct an issue on time+ on macos | 0d029220dd4cc382590ad5f513832217f9ff9a1e | <ide><path>glances/plugins/glances_processlist.py
<ide> def get_process_curses_data(self, p, first, args):
<ide> msg = '{:>2}'.format('?')
<ide> ret.append(self.curse_add_line(msg))
<ide> # TIME+
<del> if self.tag_proc_time:
<del> try:
<del> delta = timed... | 1 |
Ruby | Ruby | convert formulary test to spec | 8e0940cc2f79def7f19c01dc2a9429cf624f0c6e | <ide><path>Library/Homebrew/test/formulary_spec.rb
<add>require "formula"
<add>require "formula_installer"
<add>require "utils/bottles"
<add>
<add>describe Formulary do
<add> let(:formula_name) { "testball_bottle" }
<add> let(:formula_path) { CoreTap.new.formula_dir/"#{formula_name}.rb" }
<add> let(:formula_content)... | 2 |
Java | Java | add jackson @jsonview support | 6cda08e94b9ba72da2334733443aefd2462c8755 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java
<ide> import org.springframework.web.reactive.handler.AbstractHandlerMapping;
<ide> import org.springframework.web.reactive.result.SimpleHandlerAdapter;
<ide> import org.springframework.web.reactive.result... | 4 |
Ruby | Ruby | fix broken generators test | 9106318fdf1f4f23548fe03d5e1d5e4ebe35f45e | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_dev_option
<ide>
<ide> def test_edge_option
<ide> assert_generates_with_bundler edge: true
<del> assert_file "Gemfile", %r{^gem\s+["']rails["'],\s+github:\s+["']#{Regexp.escape("rails/rails")}["'],\s+branch:\s+["']#{Regexp.escape("5-0-st... | 2 |
Text | Text | remove duplicate properties bullet in readme | 4424e847d5e1e74c701fcba300cbe42480c53aee | <ide><path>tools/doc/README.md
<ide> This event is emitted on instances of SomeClass, not on the module itself.
<ide> ```
<ide>
<ide>
<del>* Modules have (description, Properties, Functions, Classes, Examples)
<del>* Properties have (type, description)
<del>* Functions have (list of arguments, description)
<ide> * Cl... | 1 |
PHP | PHP | add types to error package classes | 7d1e0694ce0db8f04a79c4a89edd2dd804ad65d1 | <ide><path>src/Error/BaseErrorHandler.php
<ide> use Cake\Routing\Router;
<ide> use Error;
<ide> use Exception;
<add>use Throwable;
<ide>
<ide> /**
<ide> * Base error handler that provides logic common to the CLI + web
<ide> abstract class BaseErrorHandler
<ide> * @param bool $debug Whether or not the app is in d... | 10 |
Python | Python | modify flag name for the checkpoint path | 2949cfd885794b563f1408a838b6385bd6faadbc | <ide><path>research/learning_unsupervised_learning/run_eval.py
<ide>
<ide> from tensorflow.contrib.framework.python.framework import checkpoint_utils
<ide>
<del>flags.DEFINE_string("checkpoint", None, "Dir to load pretrained update rule from")
<add>flags.DEFINE_string("checkpoint_dir", None, "Dir to load pretrained u... | 1 |
Text | Text | fix missing word in dgram.md | d4aac8399247ceb57cc517cb51ccdb24696ab4b5 | <ide><path>doc/api/dgram.md
<ide> The maximum size of an `IPv4/v6` datagram depends on the `MTU`
<ide> (_Maximum Transmission Unit_) and on the `Payload Length` field size.
<ide>
<ide> * The `Payload Length` field is `16 bits` wide, which means that a normal
<del> payload exceed 64K octets _including_ the internet he... | 1 |
Ruby | Ruby | use https during `brew update` | 536446b664eadb8574d4a0e057c1129c1257d9fe | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def update
<ide> end
<ide>
<ide> class RefreshBrew
<del> REPOSITORY_URL = "http://github.com/mxcl/homebrew.git"
<add> REPOSITORY_URL = "https://github.com/mxcl/homebrew.git"
<ide> FORMULA_DIR = 'Library/Formula/'
<ide> EXAMPLE_DIR = 'Library/Contributions/examples/... | 1 |
Javascript | Javascript | support multi-element group over text nodes | b28f96949ac477b1fe43c81df7cedc21c7ab184c | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide) {
<ide> if (!node) {
<ide> throw ngError(51, "Unterminated attribute, found '{0}' but no matching '{1}' found.", attrStart, attrEnd);
<ide> }
<del> if (node.hasAttribute(attrStart)) depth++;
<del> if... | 2 |
Ruby | Ruby | add initial doc for enqueuing module [ci skip] | 56bcd69ade0c6f19e894902d466626999332771b | <ide><path>activejob/lib/active_job/enqueuing.rb
<ide> require 'active_job/arguments'
<ide>
<ide> module ActiveJob
<add> # Provides behavior for enqueuing and retrying jobs.
<ide> module Enqueuing
<ide> extend ActiveSupport::Concern
<ide> | 1 |
Ruby | Ruby | fix comments about to_partial_path | e78c5eeba10001223a81203c7b544c09b8394831 | <ide><path>activemodel/lib/active_model/conversion.rb
<ide> module ActiveModel
<ide> # cm.to_model == self # => true
<ide> # cm.to_key # => nil
<ide> # cm.to_param # => nil
<del> # cm.to_path # => "contact_messages/contact_message"
<add> # cm.to_partial_path # => "contact_m... | 2 |
PHP | PHP | remove @inheritdoc to correctly work with phpstan | 3e2a22045850139e81edaa185830272d8f64ccbd | <ide><path>src/ORM/Query.php
<ide> public function __construct($connection, $table)
<ide> }
<ide>
<ide> /**
<del> * {@inheritDoc}
<add> * Adds new fields to be returned by a `SELECT` statement when this query is
<add> * executed. Fields can be passed as an array of strings, array of expression
<add... | 1 |
Go | Go | create portable signalmap | 10dc16dcd3aa82be256e5072a25dcf18af8e3844 | <ide><path>pkg/signal/signal.go
<ide> import (
<ide> "os/signal"
<ide> )
<ide>
<add>func CatchAll(sigc chan os.Signal) {
<add> handledSigs := []os.Signal{}
<add> for _, s := range signalMap {
<add> handledSigs = append(handledSigs, s)
<add> }
<add> signal.Notify(sigc, handledSigs...)
<add>}
<add>
<ide> func StopCatc... | 5 |
PHP | PHP | fix cs issues | b1169e82995a6ea628fd77f44e48c833971a104e | <ide><path>tests/Notifications/NotificationSlackChannelTest.php
<ide> public function testCorrectPayloadWithAttachmentFieldBuilderIsSentToSlack()
<ide> 'title' => 'Special powers',
<ide> 'value' => 'Zonda',
<ide> ... | 1 |
PHP | PHP | remove blank line | e4eb25e527fa6696dd599f0a0cb07d07ba29b971 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
<ide> }
<ide> }
<ide> }
<add>
<ide> return $this->where($column, '>', $lastId)
<ide> ->orderBy($column, 'asc')
<id... | 1 |
Javascript | Javascript | fix new lint errors | 739baa90927d06e7e2267c65b1221931a20784a4 | <ide><path>src/browser/ui/React.js
<ide> * @providesModule React
<ide> */
<ide>
<add>/* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/
<add>
<ide> "use strict";
<ide>
<ide> var DOMPropertyOperations = require('DOMPropertyOperations');
<ide><path>src/browser/ui/ReactMount.js
<ide> var ReactMount = {
<ide> 'metho... | 5 |
PHP | PHP | update doc blocks and add an early return | 711f29e1c0cfa5d4438fba522f2241228561a633 | <ide><path>Cake/Controller/Component/PaginatorComponent.php
<ide> public function __construct(ComponentRegistry $collection, $settings = []) {
<ide> * Otherwise the top level configuration will be used.
<ide> *
<ide> * {{{
<del> * $settings = array(
<add> * $settings = [
<ide> * 'limit' => 20,
<ide> * 'max... | 2 |
Python | Python | improve comments and tests, in response to review | de29dc52ef7d84534471604c901e4de07d8c6073 | <ide><path>numpy/ma/core.py
<ide> def isMaskedArray(x):
<ide>
<ide>
<ide> class MaskedConstant(MaskedArray):
<del>
<add> # the lone np.ma.masked instance
<ide> __singleton = None
<ide>
<del> def __new__(self):
<del> if self.__singleton is None:
<add> def __new__(cls):
<add> if cls.__single... | 2 |
Go | Go | add volumesfrom to mergeconfig, and test | 1a226f0e28e7da4eb3701b31dbe959142c42b752 | <ide><path>utils.go
<ide> func MergeConfig(userConf, imageConf *Config) {
<ide> if userConf.Entrypoint == nil || len(userConf.Entrypoint) == 0 {
<ide> userConf.Entrypoint = imageConf.Entrypoint
<ide> }
<add> if userConf.VolumesFrom == "" {
<add> userConf.VolumesFrom = imageConf.VolumesFrom
<add> }
<ide> if userCo... | 2 |
Mixed | Text | add documentation for stats feature | 76141a00779880368b15ef2a5ffd28a80e4637df | <ide><path>api/client/commands.go
<ide> func (s *containerStats) Display(w io.Writer) {
<ide> }
<ide>
<ide> func (cli *DockerCli) CmdStats(args ...string) error {
<del> cmd := cli.Subcmd("stats", "CONTAINER", "Stream the stats of a container", true)
<add> cmd := cli.Subcmd("stats", "CONTAINER", "Display live container... | 7 |
Javascript | Javascript | fix error object wrapper (#914) | b11d1b228216c592bfff70c662dce6b5d8f66f3d | <ide><path>src/worker.js
<ide> var WorkerMessageHandler = {
<ide> } catch (e) {
<ide> // Turn the error into an obj that can be serialized
<ide> e = {
<del> message: e.message,
<del> stack: e.stack
<add> message: typeof e === 'object' ? e.message : e,
<add> stac... | 1 |
Ruby | Ruby | remove wrapper div for inputs in button_to | 1de258e6c632c8868be71ca088de673562436b96 | <ide><path>actionpack/test/controller/request_forgery_protection_test.rb
<ide> def test_should_render_button_to_with_token_tag
<ide> assert_not_blocked do
<ide> get :show_button
<ide> end
<del> assert_select 'form>div>input[name=?][value=?]', 'custom_authenticity_token', @token
<add> assert_select '... | 3 |
Text | Text | update babel link | e32196222b83a2b21fc44bfd3f6cb9335ccae8db | <ide><path>docs/docs/tutorial.md
<ide> For this tutorial, we're going to make it as easy as possible. Included in the s
<ide> <title>React Tutorial</title>
<ide> <script src="https://unpkg.com/react@{{site.react_version}}/dist/react.js"></script>
<ide> <script src="https://unpkg.com/react-dom@{{site.react_v... | 1 |
Javascript | Javascript | add clearimmediate module | 05409868b614e231487b11b33e91182824bd4953 | <ide><path>Libraries/vendor/core/clearImmediate.js
<add>/**
<add> * @generated SignedSource<<4595f3986407fd02332cf9f5fc12e70f>>
<add> *
<add> * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<add> * !! This file is a check-in of a static_upstream project! !!
<add> * !! ... | 1 |
Text | Text | fix quotes that failed in the transform | a85903502397f67b701ab039599f7248f90cee61 | <ide><path>curriculum/challenges/english/01-responsive-web-design/applied-accessibility/add-a-text-alternative-to-images-for-visually-impaired-accessibility.english.md
<ide> Camper Cat happens to be both a coding ninja and an actual ninja, and is buildin
<ide> ```yml
<ide> tests:
<ide> - text: 'Your <code>img</code> ... | 300 |
Text | Text | fix minor formatting issue | 3d94da3f0e03c143a2adcc3091b6a64991517576 | <ide><path>guides/source/threading_and_code_execution.md
<ide> code to execute each job as it comes off the queue.
<ide>
<ide> Action Cable uses the Executor instead: because a Cable connection is linked to
<ide> a specific instance of a class, it's not possible to reload for every arriving
<del>websocket message. Onl... | 1 |
Ruby | Ruby | follow the documentation guideline | 0af0ffde1896f1796712493984a6ebc30a532a7f | <ide><path>actionview/lib/action_view/view_paths.rb
<ide> def _prefixes # :nodoc:
<ide> private
<ide>
<ide> # Override this method in your controller if you want to change paths prefixes for finding views.
<del> # Prefixes defined here will still be added to parents' <tt>::_prefixes</tt>.
<add> #... | 1 |
Javascript | Javascript | fix bug in enterleave | 6778c53c16a6cdbda04d22628a95f2e1627f3ef4 | <ide><path>packages/react-dom/src/events/plugins/ModernEnterLeaveEventPlugin.js
<ide> const EnterLeaveEventPlugin = {
<ide> topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
<ide> const isOutEvent =
<ide> topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
<del> co... | 1 |
Ruby | Ruby | fix bad mutable call on a frozen string | 2f21de596fa11e6a6113d367393d734ce08208a9 | <ide><path>Library/Homebrew/build_environment.rb
<ide> def dump_build_env(env, f = $stdout)
<ide> s = "#{key}: #{value}"
<ide> case key
<ide> when "CC", "CXX", "LD"
<del> s << " => #{Pathname.new(value).realpath}" if File.symlink?(value)
<add> s += " => #{Pathname.new(value).realpath}" i... | 1 |
Text | Text | fix broken references | 983a809456b4e993e4defb818ddee3ca0e03b84d | <ide><path>doc/api/child_process.md
<ide> console.log('中文测试');
<ide> [`child_process.spawnSync()`]: #child_process_child_process_spawnsync_command_args_options
<ide> [`ChildProcess`]: #child_process_child_process
<ide> [`Error`]: errors.html#errors_class_error
<del>[`EventEmitter`]: events.html#events_class_events_even... | 2 |
Go | Go | handle ipv6 literals correctly in port bindings | e3c212c2241d07c5dc93f0390f9645033aa5ee60 | <ide><path>libnetwork/types/types.go
<ide> func (p *PortBinding) String() string {
<ide> return ret
<ide> }
<ide>
<del>// FromString reads the PortBinding structure from string
<add>// FromString reads the PortBinding structure from string s.
<add>// String s is a triple of "protocol/containerIP:port/hostIP:port"
<ad... | 2 |
Text | Text | add comma to fix typo | c759d83cd3f8d82dbc5f31a0b882f7ec46558786 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/understand-functional-programming-terminology.md
<ide> But first, let's cover some functional terminology:
<ide>
<ide> Functions that can be assigned to a variable, passed into another function, or returned fro... | 1 |
PHP | PHP | allow array of validation rules on validatewith | a7cf9a11a1f3a379af89856b84a156f8b25bb724 | <ide><path>src/Illuminate/Foundation/Validation/ValidatesRequests.php
<ide> trait ValidatesRequests
<ide> /**
<ide> * Run the validation routine against the given validator.
<ide> *
<del> * @param \Illuminate\Contracts\Validation\Validator $validator
<add> * @param \Illuminate\Contracts\Validat... | 1 |
Go | Go | use absolute paths for mount destination strings | 930337624250945472001136e7bcb8e5b102bb87 | <ide><path>container/container.go
<ide> func getSecretTargetPath(r *swarmtypes.SecretReference) string {
<ide> return filepath.Join(containerSecretMountPath, r.File.Name)
<ide> }
<ide>
<add>// getConfigTargetPath makes sure that config paths inside the container are
<add>// absolute, as required by the runtime spec, ... | 3 |
Javascript | Javascript | use deprecate for global export deprecation | d8040223b1f6d317901c0c0faf5e057ec3e763e0 | <ide><path>moment.js
<ide>
<ide> var moment,
<ide> VERSION = "2.5.1",
<del> global = this,
<add> // the global-scope this is NOT the global object in Node.js
<add> global_scope = typeof global !== 'undefined' ? global : this,
<ide> round = Math.round,
<ide> i,
<ide>
<i... | 1 |
PHP | PHP | improve documentation for viewbuilder | c9642e6251b6a29dcae73117a4655a75a63f1f96 | <ide><path>src/View/ViewBuilder.php
<ide> class ViewBuilder implements JsonSerializable, Serializable
<ide> protected $_name;
<ide>
<ide> /**
<del> * The view variables to use
<add> * The view class name to use.
<add> * Can either use plugin notation, a short name
<add> * or a fully namespaced ... | 1 |
Ruby | Ruby | fix small typo in docs | b6f5ea22b749089e6ef9ac1dbe43bd905551d21a | <ide><path>activesupport/lib/active_support/cache.rb
<ide> def self.instrument
<ide> # bump the cache expiration time by the value set in <tt>:race_condition_ttl</tt>.
<ide> # Yes, this process is extending the time for a stale value by another few
<ide> # seconds. Because of extended life of the prev... | 1 |
Mixed | Javascript | normalize scheme for url on android | 4b6f02ea758a9ab5853a29ebfc054eaa98e6dc53 | <ide><path>Libraries/Linking/Linking.js
<ide> class Linking extends NativeEventEmitter {
<ide> * See https://facebook.github.io/react-native/docs/linking.html#openurl
<ide> */
<ide> openURL(url: string): Promise<any> {
<del> // Android Intent requires protocols http and https to be in lowercase.
<del> // ... | 2 |
Text | Text | fix typo in permission_classes | 919c5e1e01106918af9f26c506c2198fbf731923 | <ide><path>docs/api-guide/authentication.md
<ide> Or, if you're using the `@api_view` decorator with function based views.
<ide>
<ide> @api_view(['GET'])
<ide> @authentication_classes((SessionAuthentication, BasicAuthentication))
<del> @permissions_classes((IsAuthenticated,))
<add> @permission_classes((I... | 1 |
Javascript | Javascript | improve coverage of lib/events.js | a596fdf4d6152c0bdf43417fd63684ccfcfcd098 | <ide><path>test/parallel/test-event-emitter-emit-context.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const EventEmitter = require('events');
<add>
<add>// Test emit called by other context
<add>const EE = new EventEmitter();
<add>
<add>// Works as expected... | 2 |
PHP | PHP | fix serialization of rate limited middleware | f3d4dcb21dc66824611fdde95c8075b694825bf5 | <ide><path>src/Illuminate/Queue/Middleware/RateLimited.php
<ide> protected function getTimeUntilNextRetry($key)
<ide> {
<ide> return $this->limiter->availableIn($key) + 3;
<ide> }
<add>
<add> /**
<add> * Prepare the object for serialization.
<add> *
<add> * @return array
<add> */
<add... | 1 |
Text | Text | remove duplicated section in style guide | 398e2bdebf305a2245f214106ddba05f27c83f90 | <ide><path>website/docs/style-guide/style-guide.md
<ide> It's a bit more typing, but it results in the most understandable code and state
<ide>
<ide> </details>
<ide>
<del>### Name State Slices Based On the Stored Data
<del>
<del>As mentioned in [Reducers Should Own the State Shape ](#reducers-should-own-the-state-sh... | 1 |
PHP | PHP | remove the $state === 'after' condition | b64c7e3e8405708cde381043ba2f6dec689c425f | <ide><path>lib/Cake/Model/Model.php
<ide> public function buildQuery($type = 'first', $query = array()) {
<ide> protected function _findAll($state, $query, $results = array()) {
<ide> if ($state === 'before') {
<ide> return $query;
<del> } elseif ($state === 'after') {
<del> return $results;
<ide> }
<add>
<a... | 1 |
Go | Go | fix datastore value handling in bitseq | cc6fb95c0c66168a9a41e242a44ad7f7a51a6d7b | <ide><path>libnetwork/bitseq/sequence.go
<ide> import (
<ide> "fmt"
<ide> "sync"
<ide>
<del> "github.com/docker/libkv/store"
<ide> "github.com/docker/libnetwork/datastore"
<ide> "github.com/docker/libnetwork/netutils"
<ide> )
<ide> func NewHandle(app string, ds datastore.DataStore, id string, numElements uint32
<i... | 3 |
Java | Java | add check for valid roottag in reactrootview | c893989d21ad7a68a4b3117fee2b9ebba745b03c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java
<ide> public void setEventListener(ReactRootViewEventListener eventListener) {
<ide> public void setAppProperties(@Nullable Bundle appProperties) {
<ide> UiThreadUtil.assertOnUiThread();
<ide> mAppProperties = appProperties;
<del> ... | 1 |
Text | Text | fix typo of upgrading | 25716a249d6e6778b2eb9b9fc0e3bf7154619945 | <ide><path>docs/upgrading.md
<ide> Minification using SWC is an opt-in flag to ensure it can be tested against more
<ide>
<ide> If your application has specific CSS targeting span, for example `.container span`, upgrading to Next.js 12 might incorrectly match the wrapping element inside the `<Image>` component. You ca... | 1 |
Python | Python | fix failing tests in tests/models/test_dag.py | 07a3c6f0736f86ed4c7fcb44f5b36fd04e99575f | <ide><path>tests/models/test_dag.py
<ide> class TestDag(unittest.TestCase):
<ide> def setUp(self) -> None:
<ide> clear_db_runs()
<ide> clear_db_dags()
<add> self.patcher_dag_code = patch.object(settings, "STORE_DAG_CODE", False)
<add> self.patcher_dag_code.start()
<ide>
<ide> def ... | 1 |
Go | Go | remove omitempty tag on parallelism | d8b8b129948ef8586f5b2f576533952419e302f2 | <ide><path>api/types/swarm/service.go
<ide> const (
<ide> type UpdateConfig struct {
<ide> // Maximum number of tasks to be updated in one iteration.
<ide> // 0 means unlimited parallelism.
<del> Parallelism uint64 `json:",omitempty"`
<add> Parallelism uint64
<ide>
<ide> // Amount of time between updates.
<ide> De... | 1 |
Java | Java | fix javadoc errors in transactionaltel | e0e3143dd56b6a3693434eba8c036715d253bc8c | <ide><path>spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java
<ide> * <em>rolled back</em> after completion of the test; whereas, changes to the
<ide> * database during a test that is run with {@code @NotTransactional} will
<ide> * <strong>not</strong> be r... | 1 |
Javascript | Javascript | add a scrubbing getter. | a803484a395965fc7c0aac59f9fbf18536ab858d | <ide><path>src/js/tech/html5.js
<ide> class Html5 extends Tech {
<ide> this.setupSourcesetHandling_();
<ide> }
<ide>
<add> this.isScrubbing_ = false;
<add>
<ide> if (this.el_.hasChildNodes()) {
<ide>
<ide> const nodes = this.el_.childNodes;
<ide> class Html5 extends Tech {
<ide> this.isScru... | 2 |
PHP | PHP | use generator paths | 69219d3be44391bab7fc2e707a886e7ec849e418 | <ide><path>src/Illuminate/Foundation/Console/CommandMakeCommand.php
<ide> protected function getPath()
<ide>
<ide> if (is_null($path))
<ide> {
<del> return $this->laravel['path'].'/src/Console';
<add> return $this->laravel['path.commands'];
<ide> }
<ide> else
<ide> {
<ide><path>src/Illuminate/Foundation/... | 3 |
PHP | PHP | fix incorrect variable name in docblock | 440a825c454800f26344745a7cdabf44288a7400 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function slice($offset, $length = null, $preserveKeys = false)
<ide> /**
<ide> * Get an array with the values of a given key.
<ide> *
<del> * @param string $column
<add> * @param string $value
<ide> * @param string $key
<ide> * @return array... | 1 |
Ruby | Ruby | fix filesystem leak in keg tests | 975f61d9818c7be1e711d28eaa75d191470fe834 | <ide><path>Library/Homebrew/test/test_keg.rb
<ide> def test_links_to_symlinks_are_not_removed
<ide> a.join("lib", "example2").make_symlink "example"
<ide> b.join("lib", "example2").mkpath
<ide>
<del> Keg.new(a).link
<add> a = Keg.new(a)
<add> b = Keg.new(b)
<add> a.link
<ide>
<ide> lib = HOMEB... | 1 |
Ruby | Ruby | fix syntax error | 9d02c39e23ed995005e9b7e6c2d4b40b2ebaf2d3 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_xcode_license_approved
<ide> # If the user installs Xcode-only, they have to approve the
<ide> # license or no "xc*" tool will work.
<ide> if `/usr/bin/xcrun clang 2>&1` =~ /license/ and not $?.success? then <<-EOS.undent
<del> You have not agreed... | 1 |
Javascript | Javascript | fix usages of removed getmodel method in tests | 09554615d4d9a4b4fdc95895364a56d75bdf9637 | <ide><path>spec/panel-container-element-spec.js
<ide> describe('PanelContainerElement', () => {
<ide> container.addPanel(panel2)
<ide> container.addPanel(panel3)
<ide>
<del> expect(element.childNodes[2].getModel()).toBe(panel1)
<del> expect(element.childNodes[1].getModel()).toBe(panel3)
<del> ... | 1 |
Javascript | Javascript | unify renderapplication across ios and android | 23027cd730bb6eb63277b251378713b08a083d9e | <ide><path>Libraries/ReactIOS/AppContainer.js
<ide> var AppContainer = React.createClass({
<ide> return (
<ide> <View style={styles.appContainer}>
<ide> <View
<del> collapsable={false}
<add> collapsable={!this.state.inspector}
<ide> key={this.state.mainKey}
<ide> ... | 3 |
Javascript | Javascript | apply babel to .mjs files | 734513b9bea3c765eb1dcad741df757047b356a3 | <ide><path>packages/next/build/webpack-config.js
<ide> export default async function getBaseWebpackConfig (dir, {dev = false, isServer
<ide> module: {
<ide> rules: [
<ide> {
<del> test: /\.(js|jsx)$/,
<add> test: /\.(js|mjs|jsx)$/,
<ide> include: [dir, /next-server[\\/]dist... | 1 |
Text | Text | improve instruction to purple merge | 938b2698e3db13332cce811ed7dd84d061d89419 | <ide><path>COLLABORATOR_GUIDE.md
<ide> $ git rev-list upstream/master...HEAD | xargs core-validate-commit
<ide> Optional: When landing your own commits, force push the amended commit to the
<ide> branch you used to open the pull request. If your branch is called `bugfix`,
<ide> then the command would be `git push --for... | 1 |
Javascript | Javascript | add test case | ce71f9b6ab8339082eeaae6b29d83b76a254af69 | <ide><path>test/configCases/container/no-shared/index.js
<add>it("should allow to work without shared modules", async () => {
<add> await __webpack_init_sharing__("default");
<add> const container = __non_webpack_require__("./container.js");
<add> container.init(__webpack_share_scopes__.default);
<add> const moduleFact... | 3 |
PHP | PHP | fix bug in route caching and route names | ea3b8a3f535443b37f9bf29f2e15ab09f2a2460f | <ide><path>src/Illuminate/Routing/RouteServiceProvider.php
<ide> public function boot()
<ide>
<ide> if ($this->app->routesAreCached())
<ide> {
<del> require $this->app->getRouteCachePath();
<add> $this->app->booted(function()
<add> {
<add> require $this->app->getRouteCachePath();
<add> });
<ide> }
<id... | 3 |
Javascript | Javascript | fix duration functions to follow tests | e3c482b2deedb8d9ca53b196082b21e8d532c5cb | <ide><path>src/lib/duration/as.js
<ide> import { normalizeUnits } from '../units/aliases';
<ide> import toInt from '../utils/to-int';
<ide>
<ide> export function as (units) {
<add> if (!this.isValid()) {
<add> return NaN;
<add> }
<ide> var days;
<ide> var months;
<ide> var milliseconds = this.... | 6 |
PHP | PHP | change config name | b3a9b21e6a3c7bacc4349ec986b8488a9e7d622f | <ide><path>src/Illuminate/Database/Connectors/SqlServerConnector.php
<ide> protected function getDsn(array $config)
<ide> */
<ide> protected function getOdbcDsn(array $config)
<ide> {
<del> if (isset($config['ODBC_DATA_SOURCE_NAME'])) {
<del> return 'odbc:'.$config['ODBC_DATA_SOURCE_NAME'... | 1 |
Mixed | Ruby | improve generator implied option handling | 4c67975c9c955d0af286d0237eed3ed243676762 | <ide><path>railties/CHANGELOG.md
<add>* `--no-*` options now work with the app generator's `--minimal` option, and
<add> are both comprehensive and precise. For example:
<add>
<add> ```console
<add> $ rails new my_cool_app --minimal
<add> Based on the specified options, the following options will also be... | 6 |
Java | Java | avoid request(0) to trigger a recursive call | 752c2a7eead3b9e74e701137e6c505ffe924eb87 | <ide><path>src/main/java/rx/internal/operators/OperatorMerge.java
<ide> private boolean drainQueuesIfNeeded() {
<ide> } finally {
<ide> boolean moreToDrain = releaseEmitLock();
<ide> // request outside of lock
<del> request(emitt... | 1 |
Ruby | Ruby | add shorthand for js and css compressors | dab96a267eeccd7380ad99fa19cefdfd3cd5ad2b | <ide><path>actionpack/lib/sprockets/railtie.rb
<ide> def asset_environment(app)
<ide> env.static_root = File.join(app.root.join("public"), assets.prefix)
<ide> env.paths.concat assets.paths
<ide> env.logger = Rails.logger
<add> env.js_compressor = expand_js_compressor(assets.js_compressor)
<add> ... | 2 |
Python | Python | update sklearn wrapper tests | dbe13670d963444238abdd064da680108a908856 | <ide><path>tests/keras/wrappers/scikit_learn_test.py
<ide> def build_fn_clf(hidden_dims):
<ide> return model
<ide>
<ide>
<del>def test_clasify_build_fn():
<add>def test_classify_build_fn():
<ide> clf = KerasClassifier(
<ide> build_fn=build_fn_clf, hidden_dims=hidden_dims,
<ide> batch_size=batc... | 1 |
PHP | PHP | add test for delete quietly | 075dde12e118419dfa5badd26acbe34c7f15c24f | <ide><path>tests/Integration/Database/EloquentDeleteTest.php
<ide> public function testForceDeletedEventIsFired()
<ide>
<ide> $this->assertEquals($role->id, RoleObserver::$model->id);
<ide> }
<add>
<add> public function testDeleteQuietly()
<add> {
<add> $_SERVER['(-_-)'] = '\(^_^)/';
<add> ... | 1 |
Ruby | Ruby | remove extra require | c8f2d41fe412f34fc6e5358b6a8be14df5e65db0 | <ide><path>Library/Homebrew/test/test_updater.rb
<del>abort if ARGV.include? "--skip-update"
<del>
<ide> require 'testing_env'
<del>require 'formula'
<ide> require 'cmd/update'
<ide> require 'yaml'
<ide> | 1 |
Text | Text | add some javascript history | a6a3b685daddbd008757e16ea57bef60f56b38cb | <ide><path>guide/english/javascript/index.md
<ide> The official name of JavaScript is ECMAScript defined under Standard [ECMA-262](
<ide> If you want to learn more about the JavaScript language, and why it's so widely used, read Quincy Larson's article - [Which programming language should I learn first?](https://medium... | 1 |
Ruby | Ruby | remove unused require | 486a3697c971fcf5509350cad4155aecad346921 | <ide><path>activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb
<ide> require "cases/helper"
<del>require 'models/person'
<ide>
<ide> class MysqlCaseSensitivityTest < ActiveRecord::TestCase
<ide> class CollationTest < ActiveRecord::Base
<ide><path>activerecord/test/cases/adapters/mysql2/case_sensitivity_t... | 2 |
Javascript | Javascript | use rtl in rtlexample when platform != android | fa69356742e99f1eeb9eae912674ea4941cc16e2 | <ide><path>RNTester/js/examples/RTL/RTLExample.js
<ide> const BorderExample = withRTLState(({isRTL, setRTL}) => {
<ide> });
<ide>
<ide> const directionStyle = isRTL =>
<del> Platform.OS === 'ios' ? {direction: isRTL ? 'rtl' : 'ltr'} : null;
<add> Platform.OS !== 'android' ? {direction: isRTL ? 'rtl' : 'ltr'} : null;... | 1 |
Javascript | Javascript | remove cached bundle if update fails | 555430089e130ced054b78fc1aee077439ec20e5 | <ide><path>packager/react-packager/src/Server/index.js
<ide> class Server {
<ide> deps.outdated.add(filePath);
<ide> }
<ide> });
<add> }).catch(e => {
<add> debug(`Could not update bundle: ${e}, evicting from cache`);
<add> delete this._bundles[ke... | 1 |
PHP | PHP | remove unused define | d01d291d13c8c4aed4a63b79525bafe905ad9a98 | <ide><path>app/Config/core.php
<ide> */
<ide> //Configure::write('Cache.viewPrefix', 'prefix');
<ide>
<del>/**
<del> * Defines the default error type when using the log() function. Used for
<del> * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
<del> */
<del> define('LOG_ERROR', LOG_E... | 2 |
Javascript | Javascript | fix coding style in test/unit/stream_spec.js | 9dfc26e1e36272366288aa85047dcf69f15a0f50 | <ide><path>test/unit/stream_spec.js
<ide> describe('stream', function() {
<ide> this.addMatchers({
<ide> toMatchTypedArray: function(expected) {
<ide> var actual = this.actual;
<del> if (actual.length != expected.length)
<add> if (actual.length != expected.length) {
<ide> retur... | 1 |
Javascript | Javascript | create the parser interface | 5940d25cc184241ed77aca85c62f4ee071210d9b | <ide><path>packages/react-native-codegen/src/parsers/errors.js
<ide> 'use strict';
<ide>
<ide> const invariant = require('invariant');
<del>
<add>import type {Parser} from './parser';
<ide> export type ParserType = 'Flow' | 'TypeScript';
<ide>
<ide> class ParserError extends Error {
<ide> class UnsupportedTypeAnnotat... | 6 |
Ruby | Ruby | move resolve_alias from argv to formula | bb01afce4c0804b3603602496292077d3d92f0a4 | <ide><path>Library/Homebrew/brew.h.rb
<ide> def __make url, name
<ide> raise "#{path} already exists" if path.exist?
<ide>
<ide> if Formula.aliases.include? name and not ARGV.force?
<del> realname = HOMEBREW_REPOSITORY.join("Library/Aliases/#{name}").realpath.basename('.rb')
<add> realname = Formula.resolve_... | 3 |
Javascript | Javascript | fix console formatter to recognize json properly | 1662c37c40c88dd37c35a1a6722c71a23eaa577c | <ide><path>src/node.js
<ide> function format (f) {
<ide> var i = 1;
<ide> var args = arguments;
<ide> if (!(f instanceof String)) f = String(f);
<del> return f.replace(/%([sdf])/g, function (x) {
<add> return f.replace(/%([sdj])/g, function (x) {
<ide> switch (x) {
<ide> case '%s': return args[i++];
<... | 1 |
Text | Text | fix a typo in a date for version 13.2.0 | f6de66ee711a4159355dfc05a3f5eadb3f1b8cc2 | <ide><path>doc/changelogs/CHANGELOG_V13.md
<ide> * [Archive](CHANGELOG_ARCHIVE.md)
<ide>
<ide> <a id="13.2.0"></a>
<del>## 2019-21-19, Version 13.2.0 (Current), @MylesBorins
<add>## 2019-11-21, Version 13.2.0 (Current), @MylesBorins
<ide>
<ide> ### Notable Changes
<ide> | 1 |
PHP | PHP | add an extra final empty line to the shell output | ab3d362490f5b2c4afc7ecddf6ed55ccdf524ed7 | <ide><path>src/Shell/RoutesShell.php
<ide> public function main()
<ide> $output[] = [$name, $route->template, json_encode($route->defaults)];
<ide> }
<ide> $this->helper('table')->output($output);
<add> $this->out();
<ide> }
<ide>
<ide> /**
<ide> public function check($url)
<... | 2 |
Text | Text | add examples for windows script/build | 2c004538a3bed5d79e6ec08c43e0c6884116df45 | <ide><path>docs/build-instructions/windows.md
<ide> Note: If you use cmd or Powershell instead of Git Shell, use a backslash instead
<ide> These instructions will assume the use of Git Shell.
<ide>
<ide> ### `script/build` Options
<del> * `--install-dir` - Creates the final built application in this directory.
<del> ... | 1 |
Text | Text | use sentence case for x509 error codes header | 09f95541b18dc74d3e7e78317845be80ae6725c7 | <ide><path>doc/api/tls.md
<ide> The first three are enabled by default. The two `CCM`-based suites are supported
<ide> by TLSv1.3 because they may be more performant on constrained systems, but they
<ide> are not enabled by default since they offer less security.
<ide>
<del>## X509 Certificate Error codes
<add>## X509... | 1 |
Text | Text | fix links in readme | f1b5b15219f8511939df657ffe5da0c9bcf5aee8 | <ide><path>research/object_detection/README.md
<ide> Please see links below for more details
<ide> * [DeepMAC documentation](g3doc/deepmac.md).
<ide> * [Mask RCNN code](https://github.com/tensorflow/models/tree/master/official/vision/beta/projects/deepmac_maskrcnn)
<ide> in TF Model garden code base.
<del>* [... | 2 |
PHP | PHP | add deprecated tags | 2a88c7f31d896ca9118673a0e2eb33610fff0fb9 | <ide><path>src/Controller/Component/SessionComponent.php
<ide> public function check($name) {
<ide> * @param array $params Parameters to be sent to layout as view variables
<ide> * @param string $key Message key, default is 'flash'
<ide> * @return void
<add> * @deprecated 3.0 Use FlashComponent::set() instead.
<ide>... | 2 |
Text | Text | add items using splice verbiage | 8b73920487a7448f814aa0c2c123b1366541680e | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-items-using-splice.md
<ide> numbers.splice(startIndex, amountToDelete, 13, 14);
<ide> console.log(numbers);
<ide> ```
<ide>
<del>The second entry of `12` is removed, and we add `13` and `14` at the same inde... | 1 |
PHP | PHP | update other tests referencing connectionmanager | d48c0850887fcaf263e662fa1450723c8b2306d8 | <ide><path>lib/Cake/Console/Command/Task/DbConfigTask.php
<ide>
<ide> use Cake\Console\Shell;
<ide> use Cake\Core\Configure;
<del>use Cake\Model\ConnectionManager;
<add>use Cake\Database\ConnectionManager;
<ide>
<ide> /**
<ide> * Task class for creating and updating the database configuration file.
<ide> public func... | 9 |
Go | Go | add `truncate` function for go templates | 7fa8d5e064bad6d65348a69b623ebb2ecffdf248 | <ide><path>pkg/templates/templates.go
<ide> var basicFunctions = template.FuncMap{
<ide> a, _ := json.Marshal(v)
<ide> return string(a)
<ide> },
<del> "split": strings.Split,
<del> "join": strings.Join,
<del> "title": strings.Title,
<del> "lower": strings.ToLower,
<del> "upper": strings.ToUpper,
<del> "pad": pa... | 2 |
Javascript | Javascript | destroy tls socket if streamwrap is destroyed | b92d55f71811528c38cfdb9ca552502603963360 | <ide><path>lib/_tls_wrap.js
<ide> function TLSSocket(socket, opts) {
<ide>
<ide> // Wrap plain JS Stream into StreamWrap
<ide> var wrap;
<del> if ((socket instanceof net.Socket && socket._handle) || !socket)
<add> if ((socket instanceof net.Socket && socket._handle) || !socket) {
<ide> wrap = socket;
<del> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.