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
Ruby
Ruby
move setting of integration session to constructor
25c2bde7117241226d6e140e3a036c707f9ed14a
<ide><path>actionpack/lib/action_dispatch/testing/integration.rb <ide> module Runner <ide> <ide> attr_reader :app <ide> <add> def initialize(*args, &blk) <add> super(*args, &blk) <add> @integration_session = nil <add> end <add> <ide> def before_setup # :nodoc: <ide> @app = ...
1
PHP
PHP
fix coding standards in configure/
c8b113ac9147c279cd5bd58a05b3a56493d86d46
<ide><path>lib/Cake/Configure/ConfigReaderInterface.php <ide> * @package Cake.Core <ide> */ <ide> interface ConfigReaderInterface { <add> <ide> /** <ide> * Read method is used for reading configuration information from sources. <ide> * These sources can either be static resources like files, or dynamic ones l...
3
Javascript
Javascript
change todomvc to not modify state in place
6e805dda24a4b8ed53379f4aea9e15370512ad54
<ide><path>examples/todomvc/js/app.js <ide> var TodoApp = React.createClass({ <ide> var val = this.refs.newField.getDOMNode().value.trim(); <ide> if (val) { <ide> var todos = this.state.todos; <del> todos.push({ <add> var newTodo = { <ide> id: Utils.uuid(), <ide> title: val, <ide...
1
Ruby
Ruby
fix grammatical error on js helper warning message
3475e0ed2402009a72c8e1a4dbf0632c24679fdc
<ide><path>actionpack/lib/action_view/helpers/javascript_helper.rb <ide> def javascript_cdata_section(content) #:nodoc: <ide> # # => <input class="ok" onclick="alert('Hello world!');" type="button" value="Greeting" /> <ide> # <ide> def button_to_function(name, function=nil, html_options={}) <del> ...
1
PHP
PHP
remove namespace from config files
4cc8e6e6a385a4bdc25b56faeeb0cd8e8d178a4e
<ide><path>tests/test_app/Plugin/Company/TestPluginThree/config/bootstrap.php <ide> <?php <del>namespace Company\TestPluginThree\Config; <del> <ide> use Cake\Core\Configure; <ide> <del>Configure::write('PluginTest.test_plugin_three.bootstrap', 'loaded plugin three bootstrap'); <ide>\ No newline at end of file <add>Con...
7
Text
Text
give the correct location for plugin documentation
4b9604381a2101c085119f16140544fc413c2958
<ide><path>experimental/plugins_graphdriver.md <ide> being started. <ide> <ide> # Write a graph driver plugin <ide> <del>See the [plugin documentation](/docs/extend/index.md) for detailed information <add>See the [plugin documentation](https://docs.docker.com/engine/extend/) for detailed information <ide> on the unde...
1
Javascript
Javascript
replace common.fixturesdir with fixtures
bafa2288d8fb73901ecc99a32e8a0f496b6dc953
<ide><path>test/parallel/test-fs-copyfile.js <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const fs = require('fs'); <ide> const path = require('path'); <del>const src = path.join(common.fixturesDir, 'a.j...
1
Text
Text
add examples at assert.strictequal
3ad87994ecfa177e19e6719bf0c6549de580623d
<ide><path>doc/api/assert.md <ide> assert.strictEqual('Hello foobar', 'Hello World!'); <ide> // + 'Hello foobar' <ide> // - 'Hello World!' <ide> // ^ <add> <add>const apples = 1; <add>const oranges = 2; <add>assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`); <add>// AssertionError ...
1
Text
Text
update best practices for entrypoint
6009f2eac4d8d707b64bfada507345e11977643d
<ide><path>docs/sources/articles/dockerfile_best-practices.md <ide> auto-extraction capability, you should always use `COPY`. <ide> <ide> ### [`ENTRYPOINT`](https://docs.docker.com/reference/builder/#entrypoint) <ide> <del>The best use for `ENTRYPOINT` is as a helper script. Using `ENTRYPOINT` for <del>other tasks ca...
1
Javascript
Javascript
remove style->csstext attroproties fallback
d96fa37666ddd9b24a077bfccb6a9a532daea23c
<ide><path>src/attributes.js <ide> if ( !jQuery.support.hrefNormalized ) { <ide> }); <ide> } <ide> <add><<<<<<< HEAD <ide> if ( !jQuery.support.style ) { <ide> jQuery.attrHooks.style = { <ide> get: function( elem ) { <ide> if ( !jQuery.support.style ) { <ide> }; <ide> } <ide> <add>======= <add>>>>>>>> 2.0: Remov...
3
Text
Text
improve language in upgrading guide
88dff0604f37ad822449897f9385ffa43d6ce2af
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> end <ide> <ide> while `Bar` could not be autoloaded, autoloading `Foo` would mark `Bar` as autoloaded too. This is not the case in `zeitwerk` mode, you need to move `Bar` to its own file `bar.rb`. One file, one constant. <ide> <del>This affects only to constan...
1
Javascript
Javascript
verify fields in spawn{sync} errors
d53b636d943df95428d0c6d6700ca2cea6cf87a5
<ide><path>test/parallel/test-child-process-spawn-error.js <ide> var assert = require('assert'); <ide> var errors = 0; <ide> <ide> var enoentPath = 'foo123'; <add>var spawnargs = ['bar']; <ide> assert.equal(common.fileExists(enoentPath), false); <ide> <del>var enoentChild = spawn(enoentPath); <add>var enoentChild = s...
2
Text
Text
add status and todolist to initialstate
bd4d23c7d69ca6804607ffca48bec8699fa1b31a
<ide><path>docs/tutorials/fundamentals/part-8-modern-redux.md <ide> Let's look at a small standalone example first. <ide> ```js title="createSlice example" <ide> import { createSlice } from '@reduxjs/toolkit' <ide> <del>const initialState = [] <add>const initialState = { <add> entities: [], <add> status: null, ...
1
Javascript
Javascript
use lazyset in resolvercacheplugin
00fcd1dbe85b11c107e0bba3d940a7e2a31754e4
<ide><path>lib/cache/ResolverCachePlugin.js <ide> <ide> "use strict"; <ide> <add>const LazySet = require("../util/LazySet"); <add> <ide> /** @typedef {import("enhanced-resolve/lib/Resolver")} Resolver */ <ide> /** @typedef {import("../Compiler")} Compiler */ <ide> /** @typedef {import("../FileSystemInfo")} FileSystem...
1
Javascript
Javascript
calculate the checksumadjustement for the file
9b1d6a5e25571188a34b14d2d9a0b96c92051a2b
<ide><path>fonts.js <ide> var Font = (function Font() { <ide> // to write the table entry information about a table and another offset <ide> // representing the offset where to draw the actual data of a particular <ide> // table <del> var kRequiredTablesCount = 9; <add> var tablesCount = 9; ...
1
Javascript
Javascript
add missing file in mini-css-extract-plugin
2872df525b19b06756e8c0f3c40d2d2e1c18e30c
<ide><path>packages/next/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js <add>(()=>{"use strict";var e={213:(e,r,t)=>{var n=t(901);var i=Object.create(null);var a=typeof document==="undefined";var o=Array.prototype.forEach;function debounce(e,r){var t=0;return function(){var n=this;var i=arguments;var a=fu...
2
Python
Python
add correlate/convolve benchmarks
af13636c8611415df5b1e5d90be3f6fb975f6e0d
<ide><path>benchmarks/benchmarks/bench_core.py <ide> <ide> from .common import Benchmark <ide> <del>import numpy <add>import numpy as np <ide> <ide> <ide> class Core(Benchmark): <ide> def setup(self): <ide> self.l100 = range(100) <ide> self.l50 = range(50) <del> self.l = [numpy.arange(100...
1
PHP
PHP
use cache get default value
c81ee6a0522fda78a12da6a0e1ef15c673dab338
<ide><path>src/Illuminate/Session/CookieSessionHandler.php <ide> public function close() <ide> */ <ide> public function read($sessionId) <ide> { <del> return $this->request->cookies->get($sessionId, ''); <add> return $this->request->cookies->get($sessionId) ?: ''; <ide> } <ide> <ide> /**
1
Go
Go
remove job from stop
04cc6c6aa4f8ea656d23268b7bff0136e4fc6c8d
<ide><path>api/server/server.go <ide> func postContainersStop(eng *engine.Engine, version version.Version, w http.Resp <ide> if vars == nil { <ide> return fmt.Errorf("Missing parameter") <ide> } <del> job := eng.Job("stop", vars["name"]) <del> job.Setenv("t", r.Form.Get("t")) <del> if err := job.Run(); err != nil {...
3
Javascript
Javascript
remove obsolete function escapeheadervalue
117fef45587288b07b39172d73a4c00716e6064d
<ide><path>lib/_http_outgoing.js <ide> function processHeader(self, state, key, value, validate) { <ide> function storeHeader(self, state, key, value, validate) { <ide> if (validate) <ide> validateHeaderValue(key, value); <del> state.header += key + ': ' + escapeHeaderValue(value) + CRLF; <add> state.header += ...
1
Javascript
Javascript
add tests and clean up resolveobjectkey helper
183637b87f928c3d62991de764d15228f1a19338
<ide><path>src/helpers/helpers.core.js <ide> export function _deprecated(scope, value, previous, current) { <ide> } <ide> <ide> export function resolveObjectKey(obj, key) { <del> if (key.length < 3) { <del> return obj[key]; <add> // Special cases for `x` and `y` keys. It's quite a lot faster to aceess this way. <add>...
2
Ruby
Ruby
stop nil checking on safe_append=
97ef636191933f1d4abc92fc10871e6d1195285c
<ide><path>actionview/lib/action_view/buffers.rb <ide> def <<(value) <ide> end <ide> alias :append= :<< <ide> <del> def safe_concat(value) <del> return self if value.nil? <del> super(value.to_s) <del> end <ide> alias :safe_append= :safe_concat <ide> end <ide>
1
Javascript
Javascript
fix object detection
14c0fe44328f22debb5b531d2b671923658542b3
<ide><path>src/serialize.js <ide> function buildParams( prefix, obj, traditional, add ) { <ide> <ide> // Item is non-scalar (array or object), encode its numeric index. <ide> buildParams( <del> prefix + "[" + ( jQuery.type( v ) === "object" ? i : "" ) + "]", <add> prefix + "[" + ( typeof v === "object"...
1
Javascript
Javascript
fix directive as identifier
be621934edca1efef80cb24752fad4e1e915739f
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide) { <ide> controllerInstance); <ide> if (directive.controllerAs) { <ide> if (typeof locals.$scope !== 'object') { <del> throw new Error('Can not export controller as "' + identifier + '". ' + <a...
1
Javascript
Javascript
combine displayname using underscore
755cc9671ff92c5c61785398298b593ea97c7735
<ide><path>src/test/ReactPerf.js <ide> var ReactPerf = { <ide> } <ide> return func.apply(this, arguments); <ide> }; <del> wrapper.displayName = objName + '.' + fnName; <add> wrapper.displayName = objName + '_' + fnName; <ide> return wrapper; <ide> } <ide> return func;
1
PHP
PHP
allow username of 0 in basic authentication
975e4c3af0ffa6774275de788f87fd479aff074b
<ide><path>lib/Cake/Controller/Component/Auth/BasicAuthenticate.php <ide> public function getUser(CakeRequest $request) { <ide> $username = env('PHP_AUTH_USER'); <ide> $pass = env('PHP_AUTH_PW'); <ide> <del> if (empty($username) || empty($pass)) { <add> if (!is_string($username) || $username === '' || !is_string...
2
PHP
PHP
add test for collection keyby closure
52fd8b764fa699bfce412d89f8e5aea30e4fdcc8
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testGroupByAttribute() <ide> public function testKeyByAttribute() <ide> { <ide> $data = new Collection([['rating' => 1, 'name' => '1'], ['rating' => 2, 'name' => '2'], ['rating' => 3, 'name' => '3']]); <add> <ide> $result = $data->keyBy('rat...
1
PHP
PHP
remove throw in boundmethod
826a90f660016bd66326ae823a077ae10a868b28
<ide><path>src/Illuminate/Container/BoundMethod.php <ide> namespace Illuminate\Container; <ide> <ide> use Closure; <del>use Illuminate\Contracts\Container\BindingResolutionException; <ide> use InvalidArgumentException; <ide> use ReflectionFunction; <ide> use ReflectionMethod; <ide> protected static function addDepende...
2
PHP
PHP
fix windows path
69689061c177ae06c9da9015eede47cc24bed670
<ide><path>src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php <ide> private function getConfigurationNesting(SplFileInfo $file) <ide> { <ide> $directory = dirname($file->getRealPath()); <ide> <del> if ($tree = trim(str_replace(config_path(), '', $directory), DIRECTORY_SEPARATOR)) <add> if ($tree = trim(str...
1
Text
Text
add kubernetes instructions to bug_report
66962b40abd296842fb3984d2c004180162d6de4
<ide><path>.github/ISSUE_TEMPLATE/bug_report.md <ide> This questions are the first thing we need to know to understand the context. <ide> <ide> **Apache Airflow version**: <ide> <add> <add>**Kubernetes version (if you are using kubernetes)** (use `kubectl version`): <add> <add>**Environment**: <add> <add>- **Cloud pr...
1
Java
Java
fix broken text padding on nodes
3766ec9764560be58db95dae5a60b1532e85218b
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatNativeViewHierarchyManager.java <ide> import javax.annotation.Nullable; <ide> <ide> import java.util.ArrayList; <del>import java.util.Collection; <ide> import java.util.List; <ide> <ide> import android.util.SparseArray; <ide><path>ReactAndroid/src/main...
2
PHP
PHP
fix issue with habtm fields
1743eaa7769d43f2be8bec6bec4ba698131e64fa
<ide><path>lib/Cake/Test/Case/View/HelperTest.php <ide> public function testSetEntityAssociated() { <ide> $this->assertEquals($expected, $this->Helper->entity()); <ide> <ide> $this->assertEquals('HelperTestComment', $this->Helper->model()); <del> <ide> } <ide> <ide> /** <ide> public function testSetEntityAssoc...
2
PHP
PHP
fix doc blocks and stuff
a4f6d51c27864b77d062317ef6bf80de4aee9cc4
<ide><path>src/Illuminate/Filesystem/Filesystem.php <ide> public function copyDirectory($directory, $destination, $options = null) <ide> * <ide> * @param string $directory <ide> * @param bool $preserve <del> * @return void <add> * @return bool <ide> */ <ide> public function deleteDirectory($directory, ...
1
Go
Go
add build command
e2880950c5ea721be00a814d93ea256feb9f98bb
<ide><path>commands.go <ide> import ( <ide> "log" <ide> "net/http" <ide> "net/url" <add> "os" <ide> "path/filepath" <ide> "runtime" <ide> "strconv"
1
PHP
PHP
fix separator for windows os
5b2a3793bea91c07369cdba457695ddf9ac54ad3
<ide><path>tests/Console/Scheduling/EventTest.php <ide> public function testCustomMutexName() <ide> $event = new Event(m::mock(EventMutex::class), 'php -i'); <ide> $event->description('Fancy command description'); <ide> <del> $this->assertSame('framework/schedule-eeb46c93d45e928d62aaf684d727e213...
1
Mixed
Javascript
add optional code to warnings + type checking
5e1f32fd94f53acbec6c5f6eb4d2de5fdef2cd67
<ide><path>doc/api/process.md <ide> console.log(process.env.test); <ide> // => 1 <ide> ``` <ide> <del>## process.emitWarning(warning[, name][, ctor]) <add>## process.emitWarning(warning[, type[, code]][, ctor]) <ide> <!-- YAML <ide> added: v6.0.0 <ide> --> <ide> <ide> * `warning` {String | Error} The warning to emit....
3
Text
Text
tweak the latest changelog descriptions
2e23a3cdbc9f1d3885852a290cb081cd642cfb1e
<ide><path>CHANGELOG.md <ide> - **$compile:** <ide> - bind all directive controllers correctly when using `bindToController` <ide> ([bd7b2177](https://github.com/angular/angular.js/commit/bd7b2177291697a665e4068501b3704200972467), <add> [1c13a4f4](https://github.com/angular/angular.js/commit/1c13a4f45ddc86805a965...
1
Text
Text
change property `name` to `firstname`
26853c6273863924d289d8c01927ef18b1eee26c
<ide><path>curriculum/challenges/english/03-front-end-development-libraries/react/create-a-stateful-component.md <ide> You have access to the `state` object throughout the life of your component. You <ide> <ide> # --instructions-- <ide> <del>There is a component in the code editor that is trying to render a `name` pr...
1
Text
Text
remove snyk badge
da1cd48e823ee5674cb99331d3b5472b403643cb
<ide><path>README.md <ide> [![Build Status](https://travis-ci.org/freeCodeCamp/freeCodeCamp.svg?branch=staging)](https://travis-ci.org/freeCodeCamp/freeCodeCamp) <ide> [![Pull Requests Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com) <ide> [![first-timers-only ...
1
Javascript
Javascript
fix modal + flatlist scrolling
8799047dd0bc8dd93f05fa97d4b9a59f7dfeb324
<ide><path>Libraries/Modal/Modal.js <ide> class Modal extends React.Component<Object> { <ide> this._identifier = uniqueModalIdentifier++; <ide> } <ide> <add> static childContextTypes = { <add> virtualizedList: PropTypes.object, <add> }; <add> <add> getChildContext() { <add> // Reset the context so Virtu...
1
Text
Text
correct some words
b506f8ecdd5ca8adb5d8ad77f085283ee5f584d6
<ide><path>docs/reference/builder.md <ide> FROM ubuntu <ide> RUN echo moo > oink <ide> # Will output something like ===> 695d7793cbe4 <ide> <del># You᾿ll now have two images, 907ad6c2736f with /bar, and 695d7793cbe4 with <add># You'll now have two images, 907ad6c2736f with /bar, and 695d7793cbe4 with <ide> # /oink. <i...
4
Java
Java
add reactive cors support
e31a2f778bf401f59cb6ae5124bf2d8b70e8606f
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/config/CorsRegistration.java <add>/* <add> * Copyright 2002-2016 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 L...
25
Java
Java
remove duplicate code in fabricuimanager
ec27141b93cf94c14762399c45ec0d25366afe9a
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> public void onCatalystInstanceDestroy() { <ide> mReactApplicationContext.removeLifecycleEventListener(this); <ide> onHostPause(); <ide> <del> // This is not technically thread-safe, since it's read on the UI thread an...
1
PHP
PHP
remove compatibility test case and stub class
0fb3414cb24b5ceed7f5931353adb940f52062a1
<ide><path>src/Http/Client.php <ide> public function __construct($config = []) <ide> /** <ide> * Get the cookies stored in the Client. <ide> * <del> * @return \Cake\Http\Client\CookieCollection <add> * @return \Cake\Http\CookieCollection <ide> */ <ide> public function cookies() <ide> ...
3
Javascript
Javascript
switch rotation axes
1f86be32ff4f1634f187637ae273a7313b99014c
<ide><path>examples/js/Car.js <ide> * @author Lewy Blue https://github.com/looeee <ide> * <ide> * The model is expected to follow real world car proportions. You can try unusual car types <del> * but your results may be unexpected. Scaled models are also not supported <add> * but your results may be unexpected. Scal...
1
Javascript
Javascript
improve expectwarning error message
0465373d77436d8df5ec4dbe5586747f6341c300
<ide><path>test/common/index.js <ide> function _expectWarning(name, expected, code) { <ide> expected.forEach(([_, code]) => assert(code, expected)); <ide> } <ide> return mustCall((warning) => { <del> const [ message, code ] = expected.shift(); <add> const expectedProperties = expected.shift(); <add> if...
2
Text
Text
add missing link for 10.3.0 changelog
8976c79b6f75c9f2bb8d33b394b0d44395d97d0e
<ide><path>doc/changelogs/CHANGELOG_V10.md <ide> </tr> <ide> <tr> <ide> <td> <add><a href="#10.3.0">10.3.0</a><br/> <ide> <a href="#10.2.1">10.2.1</a><br/> <ide> <a href="#10.2.0">10.2.0</a><br/> <ide> <a href="#10.1.0">10.1.0</a><br/>
1
Python
Python
add compile flag to disable voltbl on msvc 142
422701d0f8b03d5552a7ed6b6eea0ffdbfd3dadf
<ide><path>numpy/core/setup.py <ide> def get_mathlib_info(*args): <ide> join('src', 'npymath', 'halffloat.c') <ide> ] <ide> <del> def gl_if_msvc(build_cmd): <del> """ Add flag if we are using MSVC compiler <add> def opts_if_msvc(build_cmd): <add> """ Ad...
1
Javascript
Javascript
remove incorrect attributes
361990401342186150f43004eb35f2a83dfc3789
<ide><path>packages/ember-views/lib/system/build-component-template.js <ide> export default function buildComponentTemplate({ component, layout, isAngleBrack <ide> blockToRender = createLayoutBlock(layout.raw, yieldTo, content.self, component, attrs, attributes); <ide> meta = layout.raw.meta; <ide> } else if ...
1
Javascript
Javascript
add minor clarification
f779230f70d12cbc075971f14acf382a5d3fd1d0
<ide><path>src/ngResource/resource.js <ide> function shallowClearAndCopy(src, dst) { <ide> * set `transformResponse` to an empty array: `transformResponse: []` <ide> * - **`cache`** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the <ide> * GET request, otherwise if a cache inst...
1
Javascript
Javascript
remove rebase error
ee865c24317d2f48b4ae8fa0d01a9c476801d5dd
<ide><path>packages/ember-htmlbars/lib/main.js <ide> import makeBoundHelper from "ember-htmlbars/system/make_bound_helper"; <ide> import { <ide> registerHelper <ide> } from "ember-htmlbars/helpers"; <del>import viewHelper from "ember-htmlbars/helpers/view"; <ide> import { <ide> ifHelper, <ide> unlessHelper <ide> ...
1
PHP
PHP
initialize conditions property and fix docblock
ed1ede2a14e0db78d8172a596ac0acab38de03a1
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> class BladeCompiler extends Compiler implements CompilerInterface <ide> */ <ide> protected $customDirectives = []; <ide> <add> /** <add> * All custom directives conditions, used <add> * by the "if" and "check" methods <add> * <ad...
1
PHP
PHP
consider protocoless urls as valid. closes.
5d63d5ad524688fdbf55b926e256c967e50d660e
<ide><path>laravel/url.php <ide> public static function transpose($uri, $parameters) <ide> */ <ide> public static function valid($url) <ide> { <add> if (starts_with($url, '//')) return true; <add> <ide> return filter_var($url, FILTER_VALIDATE_URL) !== false; <ide> } <ide>
1
Python
Python
fix accelerate.framework flags
3bb97a76e2513370b6612e259ed510b74baf057e
<ide><path>scipy/distutils/system_info.py <ide> def calc_info(self): <ide> args = [] <ide> link_args = [] <ide> if os.path.exists('/System/Library/Frameworks/Accelerate.framework/'): <del> args.extend(['-faltivec','-framework','Accelerate']) <add> args.e...
1
Text
Text
remove usage of you in n-api doc
629a4476f0e0a919c27594ca1f3121a7ee5e4fa9
<ide><path>doc/api/n-api.md <ide> required in order to enable correct proper of the reference. <ide> Afterward, additional manipulation of the wrapper's prototype chain may cause <ide> `napi_unwrap()` to fail. <ide> <del>*Note*: Calling `napi_wrap()` a second time on an object that already has a <del>native instance a...
1
PHP
PHP
pluginassetsshell tests no longer fail on hhvm
b21ae49f5ea88a5d283c547b0da8678232e8a2a7
<ide><path>tests/TestCase/Shell/PluginAssetsShellTest.php <ide> public function setUp() <ide> 'Skip PluginAssetsShell tests on windows to prevent side effects for UrlHelper tests on AppVeyor.' <ide> ); <ide> <del> $this->skipIf( <del> defined('HHVM_VERSION'), <del> 'Als...
1
Ruby
Ruby
improve action view `translate` helper
d81926fdacbeb384d211e22cff66195c1a753eb5
<ide><path>actionview/lib/action_view/helpers/translation_helper.rb <ide> # frozen_string_literal: true <ide> <ide> require "action_view/helpers/tag_helper" <del>require "active_support/core_ext/string/access" <del>require "i18n/exceptions" <add>require "active_support/core_ext/symbol/starts_ends_with" <ide> <ide> mo...
2
PHP
PHP
add shared locks to filesystem and cache/filestore
0b3bc1b6202c4baefd7c29f6a27948192a7cdbd3
<ide><path>src/Illuminate/Cache/FileStore.php <ide> protected function getPayload($key) <ide> // just return null. Otherwise, we'll get the contents of the file and get <ide> // the expiration UNIX timestamps from the start of the file's contents. <ide> try { <del> $expire = substr($c...
3
Python
Python
use new kombu.utils modules
de180b75283bfcbd382e9dab220afe0f4d770e96
<ide><path>celery/app/amqp.py <ide> from kombu import pools <ide> from kombu import Connection, Consumer, Exchange, Producer, Queue <ide> from kombu.common import Broadcast <del>from kombu.utils import cached_property <ide> from kombu.utils.functional import maybe_list <add>from kombu.utils.objects import cached_proper...
32
Javascript
Javascript
support texture coordinates in ply parser
a889569d4fce1ce6a49d7b1f40502168f6f9139a
<ide><path>examples/js/loaders/PLYLoader.js <ide> THREE.PLYLoader.prototype = { <ide> } else if ( elementName === "face" ) { <ide> <ide> var vertex_indices = element.vertex_indices; <add> var texcoord = element.texcoord; <ide> <ide> if ( vertex_indices.length === 3 ) { <ide> <ide> geometry.faces.p...
1
Text
Text
add missing period from 4b802bc [ci skip]
214423f40171bf7d3165d70507ab17803b2fbf07
<ide><path>guides/source/3_0_release_notes.md <ide> More Information: <ide> <ide> Major re-write was done in the Action View helpers, implementing Unobtrusive JavaScript (UJS) hooks and removing the old inline AJAX commands. This enables Rails to use any compliant UJS driver to implement the UJS hooks in the helpers. ...
1
Ruby
Ruby
fix version comparison in `sdk#latest_sdk`
6ea9b32f7023b4e70583bd9cc3eb37a783fbb86a
<ide><path>Library/Homebrew/os/mac/sdk.rb <ide> def sdk_for(v) <ide> def latest_sdk <ide> return if sdk_paths.empty? <ide> <del> v, path = sdk_paths.max(&:first) <add> v, path = sdk_paths.max { |(v1, _), (v2, _)| v1 <=> v2 } <ide> SDK.new v, path, source <ide> end <ide>
1
Javascript
Javascript
improve code structure of the annotation code
8b79becad676648ba139acc5189da771060c571e
<ide><path>src/core/annotation.js <ide> */ <ide> /* globals PDFJS, Util, isDict, isName, stringToPDFString, warn, Dict, Stream, <ide> stringToBytes, Promise, isArray, ObjectLoader, OperatorList, <del> isValidUrl, OPS, createPromiseCapability, AnnotationType, <del> stringToUTF8String, Ann...
2
PHP
PHP
fix coding standards in case/routing
907596b2f5acc0870303f21489c35ceecf7ab6b5
<ide><path>lib/Cake/Test/Case/Routing/DispatcherTest.php <ide> * @package Cake.Test.Case.Routing <ide> */ <ide> class DispatcherMockCakeResponse extends CakeResponse { <add> <ide> protected function _sendHeader($name, $value = null) { <ide> return $name . ' ' . $value; <ide> } <add> <ide> } <ide> <ide> /**...
5
Text
Text
replace triple dot character with real dots
13a4d29bf135a80ae13589df82ac16dad6e6e092
<ide><path>docs/migrating/from-create-react-app.md <ide> export default function SEO({ description, title, siteTitle }) { <ide> <ide> ## Single-Page App (SPA) <ide> <del>If you want to move your existing Create React App to Next.js and keep a Single-Page App, you can move your old application's entry point to an [Opt...
1
PHP
PHP
allow releasing jobs
0ae4b029f54f02fab724d21dea01fe426fb8f01a
<ide><path>src/Illuminate/Queue/Jobs/SqsJob.php <ide> public function release($delay = 0) <ide> { <ide> parent::release($delay); <ide> <del> // SQS job releases are handled by the server configuration... <add> $this->sqs->changeMessageVisibility([ <add> 'QueueUrl' => $this->queue, <add> 'ReceiptHandle' => $th...
1
Text
Text
use relative linking
2e8b0366dc4970bb651bd57ddaf0665d811d2e1e
<ide><path>docs/_sidebar.md <ide> - **Getting Started** <del> - [Introduction](/index.md 'Contribute to the freeCodeCamp.org Community') <add> - [Introduction](index 'Contribute to the freeCodeCamp.org Community') <ide> - [Frequently Asked Questions](/FAQ.md) <ide> - **Code Contribution** <ide> - - [Set up freeCode...
29
PHP
PHP
use locatorawaretrait in controller and cell
872df7a42ab86b70b710b875e7d2a7af93bb19c7
<ide><path>src/Controller/Controller.php <ide> use Cake\Log\LogTrait; <ide> use Cake\Network\Request; <ide> use Cake\Network\Response; <add>use Cake\ORM\Locator\LocatorAwareTrait; <ide> use Cake\Routing\RequestActionTrait; <ide> use Cake\Routing\Router; <ide> use Cake\Utility\MergeVariablesTrait; <ide> class Controller...
2
PHP
PHP
allow false guard
55f3b1542751df86610d4d3be88e3fc77e4709cc
<ide><path>src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php <ide> public function mergeFillable(array $fillable) <ide> */ <ide> public function getGuarded() <ide> { <del> return $this->guarded; <add> return $this->guarded === false <add> ? [] <add> ...
1
Ruby
Ruby
remove exception variable from rescue block
a03ab8cef8c712cad3dafd06c1b483782a1c0eb5
<ide><path>activemodel/lib/active_model/secure_password.rb <ide> def has_secure_password(options = {}) <ide> begin <ide> gem 'bcrypt-ruby', '~> 3.0.0' <ide> require 'bcrypt' <del> rescue LoadError => e <add> rescue LoadError <ide> $stderr.puts "You don't have bcrypt-r...
1
Text
Text
add v3.8.0-beta.5 to changelog
86b9f705c72de7ea2ad139c66f2977e82e95a898
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.8.0-beta.5 (February 11, 2019) <add> <add>- [#17563](https://github.com/emberjs/ember.js/pull/17563) [BUGFIX] Transition.send/trigger call signature <add> <ide> ### v3.8.0-beta.4 (February 4, 2019) <ide> <ide> - [#17552](https://github.com/emberjs/embe...
1
Python
Python
remove the unused get_io_counters calls
1e0a303efb7c6c4aa64f6cfbabf8e80813dbf781
<ide><path>src/glances.py <ide> #===== <ide> <ide> application = 'glances' <del>__version__ = "1.4b" <add>__version__ = "1.4b2" <ide> gettext.install(application) <ide> <ide> try: <ide> def __update__(self): <ide> procstat['proc_size'] = proc.get_memory_info().vms <ide> procstat['proc_resident'] = proc....
1
Mixed
Javascript
support uint8array input to methods
9f610b5e265549f048ef00cf521a0d36771c9574
<ide><path>doc/api/stream.md <ide> There are four fundamental stream types within Node.js: <ide> ### Object Mode <ide> <ide> All streams created by Node.js APIs operate exclusively on strings and `Buffer` <del>objects. It is possible, however, for stream implementations to work with other <del>types of JavaScript valu...
6
Javascript
Javascript
handle css urls better
2a8973489f88b80a42988ed9801de9e16126aa6b
<ide><path>threejs/resources/editor.js <ide> function getPrefix(url) { <ide> } <ide> <ide> function fixCSSLinks(url, source) { <del> const cssUrlRE = /(url\()(.*?)(\))/g; <add> const cssUrlRE1 = /(url\(')(.*?)('\))/g; <add> const cssUrlRE2 = /(url\()(.*?)(\))/g; <ide> const prefix = getPrefix(url); <ide> <ide> ...
1
PHP
PHP
add replace method
d138e4cc950edc2685750dbfa22b4f01bc6b25e1
<ide><path>src/Illuminate/Support/Stringable.php <ide> public function prepend(...$values) <ide> return new static(implode('', $values).$this->value); <ide> } <ide> <add> /** <add> * Replace the given value in the given string. <add> * <add> * @param string $search <add> * @param stri...
1
Python
Python
remove unused imports
c67937bebbb8b1de01e8fb878608b8ea5a34cba3
<ide><path>tools/gyp_node.py <ide> #!/usr/bin/env python <del>import glob <ide> import os <del>import shlex <ide> import sys <ide> <ide> script_dir = os.path.dirname(__file__) <ide><path>tools/install.py <ide> import os <ide> import re <ide> import shutil <del>import stat <ide> import sys <ide> <ide> # set at init ti...
2
PHP
PHP
add php doc to facade
2b30f092f0732cfb9e127fa4c1382ea170fb9cad
<ide><path>src/Illuminate/Support/Facades/Schema.php <ide> * @method static \Illuminate\Database\Schema\Builder drop(string $table) <ide> * @method static \Illuminate\Database\Schema\Builder dropIfExists(string $table) <ide> * @method static \Illuminate\Database\Schema\Builder table(string $table, \Closure $callback...
1
Python
Python
update example file for lxd
7edf36e6c94413f32d3fd6415f1a29ec661fd0be
<ide><path>example_lxd.py <ide> def pylxdFunc(): <ide> <ide> <ide> def work_with_containers(): <add> print("Working with containers...") <ide> <ide> # LXD API specification can be found at: <ide> # https://github.com/lxc/lxd/blob/master/doc/rest-api.md#10containersnamemetadata <ide> def work_with_containe...
1
Python
Python
fix incorrect printing of 1d masked arrays
d805e9b66228e68a0eb14d901cd350159c49af18
<ide><path>numpy/ma/core.py <ide> class MaskedArray(ndarray): <ide> _defaultmask = nomask <ide> _defaulthardmask = False <ide> _baseclass = ndarray <del> # Maximum number of elements per axis used when printing an array. <add> <add> # Maximum number of elements per axis used when printing an array. Th...
2
PHP
PHP
add hmac to encrypted data
95ad5f5c78f8bff40924eb0803cdc62e3070bb3d
<ide><path>lib/Cake/Test/Case/Utility/SecurityTest.php <ide> public function testEncryptDecrypt() { <ide> $this->assertEquals($txt, Security::decrypt($result, $key)); <ide> } <ide> <add>/** <add> * Test that changing the key causes decryption to fail. <add> * <add> * @return void <add> */ <add> public function test...
2
PHP
PHP
use the diffformatter hook provided by chronos
aaf981784913bcbde17ecfc88ad166f86932dad1
<ide><path>src/I18n/Date.php <ide> class Date extends MutableDate implements JsonSerializable <ide> */ <ide> public function timeAgoInWords(array $options = []) <ide> { <del> return RelativeTimeFormatter::dateAgoInWords($this, $options); <add> return $this->diffFormatter()->dateAgoInWords($th...
7
Javascript
Javascript
add singleentryplugin as deprecated export
2dc22d0db0dd204dd4406af89ccc4747eae6cedb
<ide><path>lib/SingleEntryPlugin.js <add>/* <add> MIT License http://www.opensource.org/licenses/mit-license.php <add> Author Sean Larkin @thelarkinn <add>*/ <add> <add>"use strict"; <add> <add>module.exports = require("./EntryPlugin"); <ide><path>lib/webpack.js <ide> <ide> "use strict"; <ide> <add>const util = requi...
2
Javascript
Javascript
fix deprecation warning
ba042244de33a172e4d7bf2a3f486f5746bc8475
<ide><path>packages/ember-handlebars/tests/handlebars_test.js <ide> test("edge case: child conditional should not render children if parent conditio <ide> <ide> test("Template views return throw if their template cannot be found", function() { <ide> view = Ember.View.create({ <del> templateName: 'cantBeFound' <ad...
1
Python
Python
fix trivial model to work properly with fp16
c0b31c51fe5f7a763409048b4b5ecf8260289ced
<ide><path>official/resnet/keras/keras_imagenet_main.py <ide> def run(flags_obj): <ide> input_layer_batch_size = None <ide> <ide> if flags_obj.use_trivial_model: <del> model = trivial_model.trivial_model(imagenet_main.NUM_CLASSES) <add> model = trivial_model.trivial_model(imagenet_main.NUM_CLASSES,...
2
Java
Java
fix cacheable javadoc
90081f787f2f24e6ab73baa81c9b11510d87c799
<ide><path>spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java <ide> /** <ide> * Annotation indicating that a method (or all the methods on a class) can be cached. <ide> * <del> * <p>The method arguments and signature are used for computing the key while the <del> * returned instance is u...
1
Python
Python
update ec2 provider constant value
fe6c8a491f0c4b205b76069d1fef2c31e0e97897
<ide><path>libcloud/compute/types.py <ide> class Provider(Type): <ide> """ <ide> AZURE = 'azure' <ide> DUMMY = 'dummy' <del> EC2 = 'ec2_us_east' <add> EC2 = 'ec2' <ide> RACKSPACE = 'rackspace' <ide> GCE = 'gce' <ide> GOGRID = 'gogrid'
1
PHP
PHP
fix typo for function_exists
a3a80b44f059fd14627916a762694cd74579937f
<ide><path>src/Illuminate/Queue/Console/WorkCommand.php <ide> protected function gatherWorkerOptions() <ide> { <ide> $timeout = $this->option('timeout', 60); <ide> <del> if ($timeout && ! function_exist('pcntl_fork')) { <add> if ($timeout && ! function_exists('pcntl_fork')) { <ide> ...
1
Ruby
Ruby
fix the shadowing warning for `reflection`
9b986eadf4514ebf175af5e23ddba6d754d08c5e
<ide><path>activerecord/lib/active_record/relation/merger.rb <ide> def merge_preloads <ide> relation.preload! other.preload_values unless other.preload_values.empty? <ide> relation.includes! other.includes_values unless other.includes_values.empty? <ide> else <del> reflection = rela...
1
Text
Text
add information about .indexof()
d0911b8d650bd9b259bef3a9c8ee6d6200f94c97
<ide><path>guide/english/java/strings/index.md <ide> The result will be: <ide> Hello <ide> World <ide> ``` <add>We can find the index of a character in a string by using the function called ```.indexOf()```. This function allows us to know the exact index of a character making it easier to split a string with ```.subst...
1
PHP
PHP
fix faking of model events
d6cb75c057009c6316d4efd865dccb3c4a5c7b36
<ide><path>src/Illuminate/Support/Facades/Event.php <ide> <ide> namespace Illuminate\Support\Facades; <ide> <add>use Illuminate\Database\Eloquent\Model; <ide> use Illuminate\Support\Testing\Fakes\EventFake; <ide> <ide> /** <ide> class Event extends Facade <ide> */ <ide> public static function fake() <ide> ...
1
PHP
PHP
set doc blocks
2fee0ed98563ad207b3467edc2be6ce68dc9fa93
<ide><path>src/Illuminate/Contracts/Routing/Middleware.php <ide> interface Middleware { <ide> /** <ide> * Handle an incoming request. <ide> * <del> * @param \Symfony\Component\HttpFoundation\Request $request <add> * @param \Illuminate\Http\Request $request <ide> * @param \Closure $next <del> * @return \...
5
PHP
PHP
fix a couple of bugs in the arr class
cd90845accf2090fd7b59162f69728b8b579f556
<ide><path>system/arr.php <ide> public static function get($array, $key, $default = null) <ide> <ide> foreach (explode('.', $key) as $segment) <ide> { <del> if ( ! array_key_exists($segment, $array)) <add> if ( ! is_array($array) or ! array_key_exists($segment, $array)) <ide> { <ide> return is_callable(...
1
PHP
PHP
rearrange hash class
a36e2773e2db425be08854f20dd189a1753e208a
<ide><path>laravel/hash.php <ide> <ide> class Hash { <ide> <add> /** <add> * Determine if an unhashed value matches a given Bcrypt hash. <add> * <add> * @param string $value <add> * @param string $hash <add> * @return bool <add> */ <add> public static function check($value, $hash) <add> { <add> return cryp...
1
Javascript
Javascript
use resolverfactory.get with dep category option
ca95eccbe6509dc8db7a220cdc384e23a1f445fb
<ide><path>lib/ContextModuleFactory.js <ide> const { join } = require("./util/fs"); <ide> /** @typedef {import("./ModuleFactory").ModuleFactoryResult} ModuleFactoryResult */ <ide> /** @typedef {import("./dependencies/ContextDependency")} ContextDependency */ <ide> <del>const EMPTY_RESOLVE_OPTIONS = {}; <del> <ide> mod...
2
Java
Java
add test for leakawaredatabufferfactory
63275ae2b750af8d5ea78cc1f0395b536c8b0a55
<ide><path>spring-core/src/test/java/org/springframework/core/io/buffer/LeakAwareDataBuffer.java <ide> class LeakAwareDataBuffer implements PooledDataBuffer { <ide> Assert.notNull(dataBufferFactory, "DataBufferFactory must not be null"); <ide> this.delegate = delegate; <ide> this.dataBufferFactory = dataBufferFac...
3
Python
Python
make sure correct backend is used
994dc428ea4611d669c6d7f5c530a36daa904b11
<ide><path>celery/result.py <ide> def children(self): <ide> def restore(self, id, backend=None): <ide> """Restore previously saved group result.""" <ide> return ( <del> backend or self.app.backend if self.app else current_app.backend <add> backend or (self.app.backend if self.a...
1
Text
Text
add bitbucket pipelines to errors/no-cache.md
60e62241a8c20e22b3117096a0cbb3f9e4881b79
<ide><path>errors/no-cache.md <ide> cache: <ide> - 'node_modules/**/*' # Cache `node_modules` for faster `yarn` or `npm i` <ide> - '.next/cache/**/*' # Cache Next.js for faster application rebuilds <ide> ``` <add> <add>**Bitbucket Pipelines** <add> <add>Add or merge the following into your `bitbucket-pipelines....
1
Ruby
Ruby
make the serializable test much looser
f74ddc8a4c748c3fb8ae7e03a5a211f87c025182
<ide><path>activerecord/test/cases/transaction_isolation_test.rb <ide> class Tag2 < ActiveRecord::Base <ide> assert_equal 'emily', tag.name <ide> end <ide> <del> # We are testing that a non-serializable sequence of statements will raise <del> # an error. <add> # We are only testing that there are no errors be...
1
Go
Go
change v1 pull 404 message to include tag
745892a7b271cf0f1770a8ec3698aaf61573e5f2
<ide><path>distribution/pull_v1.go <ide> func (p *v1Puller) Pull(ctx context.Context, ref reference.Named) error { <ide> func (p *v1Puller) pullRepository(ctx context.Context, ref reference.Named) error { <ide> progress.Message(p.config.ProgressOutput, "", "Pulling repository "+p.repoInfo.FullName()) <ide> <add> tagg...
3
PHP
PHP
fix engine issueing
70e504da5ad395d87467826e528dc9edf3f36ef3
<ide><path>src/Illuminate/View/Factory.php <ide> protected function getExtension($path) <ide> $extensions = array_keys($this->extensions); <ide> <ide> return Arr::first($extensions, function ($key, $value) use ($path) { <del> return Str::endsWith($path, $value); <add> return Str::...
1