content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Javascript
Javascript
simplify glyph segment writing code
83c1599cf70da0be82c13b7a56396757e16748a1
<ide><path>fonts.js <ide> var Font = (function () { <ide> var bias = 0; <ide> for (var i = 0; i < segCount - 1; i++) { <ide> var range = ranges[i]; <del> var start = FontsUtils.integerToBytes(range[0], 2); <del> var end = FontsUtils.integerToBytes(range[1], 2); <add> ...
1
Python
Python
add multi-worker benchmarks to keras resnet model
ff6c3b1e8ce5a102a430ba3e21d17161bd658d44
<ide><path>official/r1/resnet/resnet_run_loop.py <ide> def define_resnet_flags(resnet_size_choices=None, dynamic_loss_scale=False, <ide> tf_data_experimental_slack=True) <ide> flags_core.define_image() <ide> flags_core.define_benchmark() <add> flags_core.define_distribution() <ide> ...
6
Text
Text
update changelog for
2ffa001faa3e9d0295358dfe716b17c54623a086
<ide><path>railties/CHANGELOG.md <add>* Default `config.assets.quiet = true` in the development environment. Suppress <add> logging of `sprockets-rails` requests by default. <add> <add> *Kevin McPhillips* <add> <ide> * Ensure `/rails/info` routes match in development for apps with a catch-all globbing route. ...
1
PHP
PHP
refactor the auto-loader
11ac2919f823c1f7e2b332d61085fdd0cf5fffda
<ide><path>system/loader.php <ide> public static function load($class) <ide> { <ide> $file = strtolower(str_replace('\\', '/', $class)); <ide> <del> if (array_key_exists($class, static::$aliases)) return class_alias(static::$aliases[$class], $class); <add> if (array_key_exists($class, static::$aliases)) <add> { ...
1
Python
Python
fix french tag map
54579805c5d8034ad3153140173182fa8defda50
<ide><path>spacy/lang/fr/tag_map.py <ide> # coding: utf8 <ide> from __future__ import unicode_literals <ide> <add>from ...symbols import POS, PUNCT, ADJ, CCONJ, NUM, DET, ADV, ADP, X, VERB <add>from ...symbols import NOUN, PROPN, PART, INTJ, SPACE, PRON <add> <ide> <ide> TAG_MAP = { <del> "ADJ__Gender=Fem|Number=P...
1
Python
Python
add test for real float types locale independance
b90bfef72d85e68d9df5dfc8145de52c5dff5488
<ide><path>numpy/core/tests/test_print.py <ide> import numpy as np <ide> from numpy.testing import * <ide> <add>import locale <add>import sys <add> <ide> def check_float_type(tp): <ide> for x in [0, 1,-1, 1e10, 1e20] : <ide> assert_equal(str(tp(x)), str(float(x))) <ide> def test_complex_types(): <ide> ...
1
PHP
PHP
add getactionmethod to route.php
8be9acfbb802a74b4939eb84c24c4f151c30512a
<ide><path>src/Illuminate/Routing/Route.php <ide> public function getActionName() <ide> return isset($this->action['controller']) ? $this->action['controller'] : 'Closure'; <ide> } <ide> <add> /** <add> * Get the method name of the route action. <add> * <add> * @return string <add> */ <a...
1
Go
Go
add image load/save support
50fb999bb148ce4cd50c1a8952353a95c9751bff
<ide><path>api/server/router/image/backend.go <ide> type imageBackend interface { <ide> } <ide> <ide> type importExportBackend interface { <del> LoadImage(inTar io.ReadCloser, outStream io.Writer, quiet bool) error <add> LoadImage(ctx context.Context, inTar io.ReadCloser, outStream io.Writer, quiet bool) error <ide> ...
5
Javascript
Javascript
fix global reference to promise
5c6543771b7fe7ca37ab4b4419a7f873e0849cfb
<ide><path>packages/react-dom/src/client/ReactDOMHostConfig.js <ide> export const scheduleTimeout: any = <ide> export const cancelTimeout: any = <ide> typeof clearTimeout === 'function' ? clearTimeout : (undefined: any); <ide> export const noTimeout = -1; <del>const localPromise = Promise; <add>const localPromise = t...
1
Text
Text
add jquery environment notes
4d19306c7fe3e36dc5deba65b64a339baf2750e5
<ide><path>README.md <ide> In the spirit of open source software development, jQuery always encourages comm <ide> 3. [Writing Code for jQuery Foundation Projects](http://contribute.jquery.org/code/) <ide> <ide> <add>Environments in which to use jQuery <add>-------------------------------------- <add> <add>- [Browser ...
1
Text
Text
fix typo in tutorial.md
37f94bd3bb5b5c0d8a30dee13614066f35070b40
<ide><path>docs/tutorial/tutorial.md <ide> Square no longer keeps its own state; it receives its value from its parent `Boa <ide> <ide> ## Why Immutability Is Important <ide> <del>In the previous code example, I suggest using the `.slice()` operator to copy the `squares` array prior to making changges and to prevent ...
1
Go
Go
add default route to networkgetroutes
26726dc9ff3ac8ccc7f40f7672e6494d0e77611d
<ide><path>network.go <ide> func networkSize(mask net.IPMask) int32 { <ide> return int32(binary.BigEndian.Uint32(m)) + 1 <ide> } <ide> <del>func checkRouteOverlaps(networks []*net.IPNet, dockerNetwork *net.IPNet) error { <add>func checkRouteOverlaps(networks []netlink.Route, dockerNetwork *net.IPNet) error { <ide> f...
3
Go
Go
remove all syscall calls from devicemapper
5690139785fc2bfaa2f233ed41d5f927a8b28dbf
<ide><path>graphdriver/devmapper/deviceset.go <ide> import ( <ide> "path/filepath" <ide> "strconv" <ide> "sync" <del> "syscall" <ide> "time" <ide> ) <ide> <ide> func setCloseOnExec(name string) { <ide> if link == name { <ide> fd, err := strconv.Atoi(i.Name()) <ide> if err == nil { <del> SyscallClose...
6
PHP
PHP
fix status code
1a67ab0a88b2b7cd7e5fbc6f60241b43b902813f
<ide><path>src/Illuminate/Exception/PlainDisplayer.php <ide> <ide> use Exception; <ide> use Symfony\Component\HttpFoundation\Response; <add>use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; <ide> <ide> class PlainDisplayer implements ExceptionDisplayerInterface { <ide> <ide> class PlainDisplayer imp...
2
Javascript
Javascript
remove old browser logger
37bb9b76aba0deb445874273b93955ffb1c18bf8
<ide><path>test/lib/testImageURL.browser.js <del>testImageURL._recycle = function(img){ <del> console.log('_recycle', img); <del> try { <del> img.src = ''; <del> img.onload = img.onerror = null; <del> } catch(e){} <del> testImageURL._recycleBin.push(img); <del>} <del>testImageURL.getImage = function(callback)...
1
Javascript
Javascript
simplify blending mode
3d8f71715d0937d831b39ea8793fe90e59d58c79
<ide><path>examples/js/loaders/EquiangularToCubeGenerator.js <ide> THREE.EquiangularToCubeGenerator.prototype = { <ide> gl_FragColor = vec4( color, 1.0 );\n\ <ide> }", <ide> <del> blending: THREE.CustomBlending, <del> premultipliedAlpha: false, <del> blendSrc: THREE.OneFactor, <del> blendDst: THREE.Ze...
3
Mixed
Javascript
use https where possible
1de834672959636da8c06263c3530226b17a84c3
<ide><path>README.md <ide> What you need to build your own jQuery <ide> <ide> In order to build jQuery, you need to have the latest Node.js/npm and git 1.7 or later. Earlier versions might work, but are not supported. <ide> <del>For Windows, you have to download and install [git](http://git-scm.com/downloads) and [No...
3
Text
Text
add changelog entry for swf update
0f1c5f22f06d0ad0b8b34cd683023a63a66bcf0f
<ide><path>CHANGELOG.md <ide> CHANGELOG <ide> ========= <ide> <ide> ## HEAD (Unreleased) <del>* src() should not return blob URLs with MSE source handlers ([view](https://github.com/videojs/video.js/pull/2271)) <add>* @dmlap update to video-js-swf 4.7.1 ([view](https://github.com/videojs/video.js/pull/2280)) <add>* @i...
1
Ruby
Ruby
add assertions order by field with empty data
25dbfba26343f04f0eb978852ad0dc80a18aedc5
<ide><path>activerecord/test/cases/relations_test.rb <ide> def test_finding_with_complex_order <ide> def test_finding_with_sanitized_order <ide> query = Tag.order(["field(id, ?)", [1,3,2]]).to_sql <ide> assert_match(/field\(id, 1,3,2\)/, query) <add> <add> query = Tag.order(["field(id, ?)", []]).to_sql <ad...
1
Javascript
Javascript
fix question motion on correct answer
38d2513223c602d8c3a2e41d75396fe8f47b1f21
<ide><path>common/app/routes/Hikes/flux/Actions.js <ide> export default Actions({ <ide> // index 0 <ide> if (tests[currentQuestion]) { <ide> <del> return { <add> return Observable.just({ <ide> transform(state) { <del> <ide> const hikesApp = { <ide> ...state.hikesApp, <de...
1
Text
Text
add 2.16.1 to changelog
8f3ec0523780e799751656842aff3265e4c7c23a
<ide><path>CHANGELOG.md <ide> - [#15265](https://github.com/emberjs/ember.js/pull/15265) [BUGFIX] fixed issue when passing `false` to `activeClass` for `{{link-to}}` <ide> - [#15672](https://github.com/emberjs/ember.js/pull/15672) Update router_js to 2.0.0. <ide> <add>### 2.16.1 (October 29, 2017) <add> <add>- [#15722...
1
Javascript
Javascript
return backslashes from fileurltopath on win
7237eaa3353aacf284289c8b59b0a5e0fa5744bb
<ide><path>lib/internal/url.js <ide> function urlToOptions(url) { <ide> return options; <ide> } <ide> <add>const forwardSlashRegEx = /\//g; <add> <ide> function getPathFromURLWin32(url) { <ide> var hostname = url.hostname; <ide> var pathname = url.pathname; <ide> function getPathFromURLWin32(url) { <ide> }...
3
Ruby
Ruby
handle dependencies better
3eedfd80249bc5e54a665656c4554d0f8db1ef3f
<ide><path>Library/Contributions/cmds/brew-test-bot.rb <ide> def setup <ide> def formula formula <ide> @category = __method__.to_s + ".#{formula}" <ide> <add> dependencies = `brew deps #{formula}`.split("\n") <add> dependencies -= `brew list`.split("\n") <add> dependencies = dependencies.join(' ') <add>...
1
Ruby
Ruby
move to_param undef closer to the deprecations
8fa2ecf8ed9db0ce72defdba2c49ba61e701e27d
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def [](key) <ide> convert_hashes_to_parameters(key, @parameters[key]) <ide> end <ide> <del> undef_method :to_param <del> <ide> # Assigns a value to a given +key+. The given key may still get filtered out <ide> # when +per...
1
Javascript
Javascript
use @container decorator in todo example
d56fa5655bf957174be233e59f6af5879c9f011d
<ide><path>examples/todo/App.js <ide> import React from 'react'; <ide> import Header from './Header'; <ide> import Body from './Body'; <del>import { root, Container } from 'redux'; <del>import { todoStore } from './stores/index'; <del>import { addTodo } from './actions/index'; <add>import { root } from 'redux'; <ide> ...
3
Python
Python
use mobilenet model with undefined shape
bc54e152666bbd7ed741ec812ea2fc24c894ed11
<ide><path>keras/applications/mobilenet.py <ide> def MobileNet(input_shape=None, <ide> '`0.25`, `0.50`, `0.75` or `1.0` only.') <ide> <ide> if rows != cols or rows not in [128, 160, 192, 224]: <del> raise ValueError('If imagenet weights are being loaded, ' <del> ...
1
Javascript
Javascript
remove unused code
d6ee63b3af87e10b56d88c28ed82a1f64f58cd56
<ide><path>packages/ember-handlebars/tests/views/collection_view_test.js <ide> test("should be able to specify which class should be used for the empty view", <ide> window.App = Ember.Application.create(); <ide> }); <ide> <del> App.ListView = Ember.CollectionView.extend(); <ide> App.EmptyView = Ember.View.ext...
1
PHP
PHP
fix import order
251f1b76febdd4bedb044b52c68be80cc6d3fb4a
<ide><path>tests/TestCase/Core/ServiceConfigTest.php <ide> */ <ide> namespace Cake\Test\TestCase\Core; <ide> <del>use Cake\Core\ServiceConfig; <ide> use Cake\Core\Configure; <add>use Cake\Core\ServiceConfig; <ide> use Cake\TestSuite\TestCase; <ide> <ide> /**
1
Python
Python
use new mixed_float16 policy for transformer
acdf24c56ce0079720ab9638ad9339ca168e908c
<ide><path>official/transformer/v2/embedding_layer.py <ide> class EmbeddingSharedWeights(tf.keras.layers.Layer): <ide> """Calculates input embeddings and pre-softmax linear with shared weights.""" <ide> <del> def __init__(self, vocab_size, hidden_size, dtype=None): <add> def __init__(self, vocab_size, hidden_size)...
3
Javascript
Javascript
remove an unnecessary __dev__ condition
ffec3be560de3bf1e567b9657b7128d4d0cdd185
<ide><path>src/renderers/testing/ReactShallowRendererEntry.js <ide> const React = require('react'); <ide> const emptyObject = require('fbjs/lib/emptyObject'); <ide> const invariant = require('fbjs/lib/invariant'); <ide> <del>if (__DEV__) { <del> var describeComponentFrame = require('describeComponentFrame'); <del> v...
1
Go
Go
take pid as argument
81945da0ac1ac7f117f87b9dc51aac913494bcfb
<ide><path>cmd/dockerd/daemon.go <ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error) { <ide> potentiallyUnderRuntimeDir := []string{cli.Config.ExecRoot} <ide> <ide> if cli.Pidfile != "" { <del> if err := pidfile.Write(cli.Pidfile); err != nil { <add> if err = pidfile.Write(cli.Pidfile, os.Getpid());...
3
Ruby
Ruby
tell people that --all is a no-op
f17a55b2690777ba67700a09a8eea623bd9ba98a
<ide><path>Library/Homebrew/cmd/upgrade.rb <ide> def upgrade <ide> <ide> Homebrew.perform_preinstall_checks <ide> <add> if ARGV.include?("--all") <add> opoo <<-EOS.undent <add> We decided to not change the behaviour of `brew upgrade` so <add> `brew upgrade --all` is equivalent to `brew upgra...
1
Ruby
Ruby
add bundler helper for appgeneratortest
c63a13fa0b5ffc7826883d039331dac335cf44c7
<ide><path>railties/test/generators/app_generator_test.rb <ide> def test_no_skip_javascript_option_with_no_skip_javascript_argument <ide> end <ide> <ide> def test_hotwire <del> run_generator [destination_root, "--no-skip-bundle"] <add> run_generator_and_bundler [destination_root] <ide> assert_gem "turbo-...
1
Javascript
Javascript
fix bad syntax in docs
306f75cd555336302c3e5295cba141e92cca2f5f
<ide><path>packages/ember-routing/lib/system/router.js <ide> EmberRouter.reopenClass({ <ide> supplied callback function using `this.resource` and `this.route`. <ide> <ide> ```javascript <del> App.Router.map(function({ <add> App.Router.map(function(){ <ide> this.route('about'); <ide> this.reso...
1
Ruby
Ruby
use arel in sql generation through associations
7be3e3ba0547587313d87bccb788a8466a62628a
<ide><path>activerecord/lib/active_record/base.rb <ide> def destroy(id) <ide> # # Update all books that match our conditions, but limit it to 5 ordered by date <ide> # Book.update_all "author = 'David'", "title LIKE '%Rails%'", :order => 'created_at', :limit => 5 <ide> def update_all(updates, cond...
1
Text
Text
require a link element in html
dfe80470c6695aa14086f4c9800b0beeb306a02f
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/import-a-google-font.md <ide> Import the `Lobster` font to your web page. Then, use an element selector to set <ide> You should import the `Lobster` font. <ide> <ide> ```js <del>assert(new RegExp('googleapis', 'gi').test(code)); <add>assert($(...
1
Ruby
Ruby
add test coverage for dump_filename
50b588144f3bb401ec1ae9e760c7c583cf37c3d4
<ide><path>activerecord/test/cases/tasks/database_tasks_test.rb <ide> def test_check_schema_file <ide> end <ide> <ide> class DatabaseTasksCheckSchemaFileMethods < ActiveRecord::TestCase <add> setup do <add> @configurations = { "development" => { "database" => "my-db" } } <add> end <add> <ide> def te...
1
Python
Python
fix typo in transformerencoderblock docstring
420e8179b6b009b2df5b281cb38592613c7830fd
<ide><path>official/nlp/keras_nlp/layers/transformer_encoder_block.py <ide> def call(self, inputs): <ide> attention. <ide> <ide> Returns: <del> An ouput tensor with the same dimensions as input/query tensor. <add> An output tensor with the same dimensions as input/query tensor. <ide> """ <i...
1
PHP
PHP
remove controllers constant
80e68763a3810bc19e9839409117666865d75b6e
<ide><path>lib/Cake/Console/Command/Task/ControllerTask.php <ide> class ControllerTask extends BakeTask { <ide> public $tasks = array('Model', 'Test', 'Template', 'DbConfig', 'Project'); <ide> <ide> /** <del> * path to CONTROLLERS directory <add> * path to Controller directory <ide> * <ide> * @var array <ide> * @a...
3
Javascript
Javascript
replace regexp with function
1c3df965705d156db7b8132b86b3193a7467a2e2
<ide><path>lib/fs.js <ide> fs.unwatchFile = function(filename, listener) { <ide> }; <ide> <ide> <del>// Regexp that finds the next portion of a (partial) path <del>// result is [base_with_slash, base], e.g. ['somedir/', 'somedir'] <del>const nextPartRe = isWindows ? <del> /(.*?)(?:[/\\]+|$)/g : <del> /(.*?)(?:[/]+|...
1
Text
Text
improve description of --input-type
a81b4ebb7598a020fa95d80da13fc0b331c35c2a
<ide><path>doc/api/cli.md <ide> module. String input is input via `--eval`, `--print`, or `STDIN`. <ide> <ide> Valid values are `"commonjs"` and `"module"`. The default is `"commonjs"`. <ide> <add>The REPL does not support this option. <add> <ide> ### `--inspect-brk[=[host:]port]` <ide> <ide> <!-- YAML
1
Ruby
Ruby
fix package creation
bd24f5a45eae5f8c2c2a97d0b6c4451e51db0659
<ide><path>Library/Homebrew/bintray.rb <ide> def official_org?(org: @bintray_org) <ide> end <ide> <ide> def create_package(repo:, package:, **extra_data_args) <del> url = "#{API_URL}/packages/#{@bintray_org}/#{repo}/#{package}" <add> url = "#{API_URL}/packages/#{@bintray_org}/#{repo}" <ide> data = { name...
2
Python
Python
add check for kerberos
71fdee3f007d652915d76e84d2a0330587a179c1
<ide><path>airflow/hooks/hive_hooks.py <ide> from airflow.utils import AirflowException <ide> from airflow.hooks.base_hook import BaseHook <ide> from airflow.utils import TemporaryDirectory <add>from airflow.configuration import conf <ide> <ide> <ide> class HiveCliHook(BaseHook): <ide> def __init__(self, hiveserver2_...
1
Python
Python
add code to test for a declaration in header
2d914ba6055da226a039dd846b19363532a26254
<ide><path>numpy/core/setup.py <ide> def configuration(parent_package='',top_path=None): <ide> <ide> header_dir = 'include/numpy' # this is relative to config.path_in_package <ide> <add> def generate_declaration_test(symbol, includes): <add> main_src = """ <add>int main() <add>{ <add>#ifndef %s <add> ...
1
Javascript
Javascript
prevent race condition with nganimate
8366622bed009d2cad7d0cff28b9c1e48bfbd4e1
<ide><path>src/ngMessages/messages.js <ide> angular.module('ngMessages', []) <ide> controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) { <ide> var ctrl = this; <ide> var latestKey = 0; <add> var nextAttachId = 0; <add> <add> this.getAttachId = functio...
2
Javascript
Javascript
add viewconfig to rctslider component, fix
c9960817eea008b2703657066212002557e0d939
<ide><path>Examples/UIExplorer/js/RTLExample.js <ide> const { <ide> const UIExplorerPage = require('./UIExplorerPage'); <ide> const UIExplorerBlock = require('./UIExplorerBlock'); <ide> <del>const AnimatedImage = Animated.createAnimatedComponent(Image); <del> <ide> type State = { <ide> toggleStatus: any, <ide> pan...
3
PHP
PHP
fix a styling issue
1bcad051b668b06ba3366560242d4f112e3a1860
<ide><path>src/Illuminate/Database/Schema/Builder.php <ide> public function blueprintResolver(Closure $resolver) <ide> * <ide> * @param string $class <ide> * @param string $name <del> * @param string $type <add> * @param string $type <ide> * @return void <ide> * <ide> * @thr...
3
Ruby
Ruby
add some tests, yay!
a328f2ffd2d7764c92c87505d0b43f9e3a8c8f28
<ide><path>actionpack/test/routing/helper_test.rb <add>require 'abstract_unit' <add> <add>module ActionDispatch <add> module Routing <add> class HelperTest < ActiveSupport::TestCase <add> class Duck <add> def to_param <add> nil <add> end <add> end <add> <add> def test_exception...
1
Text
Text
correct broken link to npm
ff70ae633d1a4c55a6462686072624a53dfe7a4f
<ide><path>docs/packages/authoring-packages.md <ide> on creating your first package. <ide> <ide> ## package.json <ide> <del>Similar to [npm packages](http://en.wikipedia.org/wiki/Npm_(software), Atom packages <add>Similar to [npm packages](http://en.wikipedia.org/wiki/Npm_(software\)), Atom packages <ide> can contain...
1
Javascript
Javascript
fix a typo
2d414fbaeee4fd1f9568d2343e5ac0c5b2d7a8a6
<ide><path>src/ngComponentRouter/Router.js <ide> * @name RouteDefinition <ide> * @description <ide> * <del> * Each item in a the **RouteConfig** for a **Routing Component** is an instance of <add> * Each item in the **RouteConfig** for a **Routing Component** is an instance of <ide> * this type. It can have the fo...
1
Javascript
Javascript
fix url prop override
1d884efe78bbe3989e8a9381208895b738128129
<ide><path>lib/app.js <ide> export default class App extends Component { <ide> const {router, Component, pageProps} = this.props <ide> const url = createUrl(router) <ide> return <Container> <del> <Component url={url} {...pageProps} /> <add> <Component {...pageProps} url={url} /> <ide> </Contai...
5
Javascript
Javascript
add kiwiship app
216cbb40656442dae5b4df6fb27822d5618f5606
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> linkPlayStore: 'https://play.google.com/store/apps/details?id=com.kakaponative', <ide> author: 'Daniel Levitt', <ide> }, <add> { <add> name: 'Kiwiship', <add> icon: 'http://a1.mzstatic.com/us/r30/Purple4/v4/c2/92/d0/c292d053-72fd-...
1
Text
Text
remove misleading class [ci skip]
872b6cc986af437fda117b49bb539f40927f3f49
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> Rails follows a simple set of coding style conventions: <ide> * Use Ruby >= 1.9 syntax for hashes. Prefer `{ a: :b }` over `{ :a => :b }`. <ide> * Prefer `&&`/`||` over `and`/`or`. <ide> * Prefer class << self over self.method for class methods. <del>* Use...
1
Javascript
Javascript
add a global promise polyfill.
62fcb2b664c27689d565d6709f83c6ac322a9a7c
<ide><path>client/index.js <ide> import App from '../lib/app' <ide> import evalScript from '../lib/eval-script' <ide> import { loadGetInitialProps, getURL } from '../lib/utils' <ide> <add>// Polyfill Promise globally <add>// This is needed because Webpack2's dynamic loading(common chunks) code <add>// depends on Promi...
1
PHP
PHP
add doc block
464ddd66543d500efb63a6e52a5cffe7d5cabd9d
<ide><path>src/Illuminate/Routing/Route.php <ide> public function bindingFieldFor($parameter) <ide> return $this->bindingFields[$parameter] ?? null; <ide> } <ide> <add> /** <add> * Get the parent parameter of the given parameter. <add> * <add> * @param string $parameter <add> * @return...
1
Javascript
Javascript
move qpl to oss
8a638d8e58c87685422fc748b372dc5d13a6b03a
<ide><path>Libraries/QuickPerformanceLogger/QuickPerformanceLogger.js <add>/** <add> * Copyright (c) 2015-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. An addition...
1
Ruby
Ruby
collapse indeces per jeremy
212f925654f944067f18429ca02d902473214722
<ide><path>lib/active_storage/migration.rb <ide> def change <ide> t.datetime :created_at <ide> <ide> t.index :blob_id <del> t.index [ :record_type, :record_id ] <del> t.index [ :record_type, :record_id, :name ], name: "index_active_storage_attachments_record_and_name" <del> t.index [ :record...
1
PHP
PHP
add a null caching engine
05d8a193c006eec84b81d16e158fa476d0a0501f
<ide><path>src/Cache/Cache.php <ide> namespace Cake\Cache; <ide> <ide> use Cake\Core\StaticConfigTrait; <add>use Cake\Cache\Engine\NullEngine; <ide> use Cake\Error; <ide> <ide> /** <ide> protected static function _buildEngine($name) { <ide> * triggered. <ide> * <ide> * @param string $config The configuration name ...
3
Java
Java
remove isolated use of reactor buffer
382c98f9680fab9a0c2ad50de18e3385f9cba5c1
<ide><path>spring-web-reactive/src/main/java/org/springframework/http/server/servlet31/ResponseBodySubscriber.java <ide> import org.apache.commons.logging.LogFactory; <ide> import org.reactivestreams.Subscriber; <ide> import org.reactivestreams.Subscription; <del>import reactor.io.buffer.Buffer; <ide> <ide> import org...
1
PHP
PHP
add expectevents method
a8be30e6411cdfe97d13abd497cc267ba911aae7
<ide><path>src/Illuminate/Foundation/Testing/ApplicationTrait.php <ide> protected function refreshApplication() <ide> $this->app = $this->createApplication(); <ide> } <ide> <add> /** <add> * Specify a list of events that should be fired for the given operation. <add> * <add> * These events w...
1
Text
Text
add link to sem-ver info
6bcea0a38365f518580a4dbbf2f5627bede5aac5
<ide><path>doc/api/documentation.md <ide> The stability indices are as follows: <ide> <ide> <!-- separator --> <ide> <del>> Stability: 1 - Experimental. The feature is not subject to Semantic Versioning <del>> rules. Non-backward compatible changes or removal may occur in any future <del>> release. Use of the feature...
1
Python
Python
add test for ticket
9b354f4dc00e3aef4cfceae71be60b1dc60a1927
<ide><path>numpy/ma/tests/test_regression.py <ide> def test_masked_array_repr_unicode(self): <ide> """Ticket #1256""" <ide> repr(np.ma.array(u"Unicode")) <ide> <add> def test_atleast_2d(self): <add> """Ticket #1559""" <add> a = np.ma.masked_array([0.0, 1.2, 3.5], mask=[False, True, Fal...
1
Javascript
Javascript
exclude less from snapshot
7fbe68e12e9332b46ebe552711550637f523b953
<ide><path>script/lib/generate-startup-snapshot.js <ide> module.exports = function (packagedAppPath) { <ide> relativePath == path.join('..', 'node_modules', 'htmlparser2', 'lib', 'index.js') || <ide> relativePath == path.join('..', 'node_modules', 'iconv-lite', 'encodings', 'internal.js') || <ide> ...
1
Javascript
Javascript
stringify module name using json module
28d06932892d4d96f4bb62f7e6213839564511cf
<ide><path>lib/dependencies/AMDDefineDependency.js <ide> AMDDefineDependency.Template = class AMDDefineDependencyTemplate { <ide> ], <ide> lf: [ <ide> "var XXX, XXXmodule;", <del> "!(XXXmodule = { id: 'YYY', exports: {}, loaded: false }, XXX = #.call(XXXmodule.exports, __webpack_require__, XXXmodule.export...
1
PHP
PHP
convert errors to http exception
d493b629771844b08e51370c75a97afdde988c88
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> protected function convertValidationExceptionToResponse(ValidationException $e, <ide> */ <ide> protected function prepareResponse($request, Exception $e) <ide> { <del> if ($this->isHttpException($e)) { <del> return $this->t...
1
Javascript
Javascript
add cookie domain to loginbyrequest
75ac5962e03f03c80bdc52f4a4b8e030a9a6567f
<ide><path>common/models/user.js <ide> module.exports = function(User) { <ide> const config = { <ide> signed: !!req.signedCookies, <ide> maxAge: accessToken.ttl, <del> domain: '.freecodecamp.org' <add> domain: process.env.COOKIE_DOMAIN || 'localhost' <ide> }; <ide> ...
1
Javascript
Javascript
fix permanent deopt
fc6f487f2e2eaa54e2de38b1cf9529dec5f8fcd5
<ide><path>lib/internal/process/warning.js <ide> function setupProcessWarnings() { <ide> if (isDeprecation && process.noDeprecation) return; <ide> const trace = process.traceProcessWarnings || <ide> (isDeprecation && process.traceDeprecation); <del> let msg = `${prefix}`; <add> ...
1
Javascript
Javascript
fix performancelogger clearing unfinished events
005fbe6aa46d6866cb74bb721b310cee05da0103
<ide><path>Libraries/Utilities/PerformanceLogger.js <ide> var PerformanceLogger = { <ide> extras = {}; <ide> }, <ide> <add> clearCompleted() { <add> for (var key in timespans) { <add> if (timespans[key].totalTime) { <add> delete timespans[key]; <add> } <add> } <add> extras = {}; <add> ...
1
Javascript
Javascript
fix deprecation test messages to {{#each ...}}
23c36f5181ed00611692003f1fd57cfc1475f0bc
<ide><path>packages/ember-template-compiler/tests/plugins/transform-each-in-to-block-params-test.js <ide> QUnit.test('cannot use block params and keyword syntax together', function() { <ide> <ide> throws(function() { <ide> compile('{{#each thing in controller as |other-thing|}}{{thing}}-{{other-thing}}{{/each}}'...
1
Ruby
Ruby
use file.join rather than depend on pathname
880481a355e0017c43d6ff14b2d1a657548d06bf
<ide><path>railties/lib/rails/commands/server.rb <ide> def start <ide> <ide> #Create required tmp directories if not found <ide> %w(cache pids sessions sockets).each do |dir_to_make| <del> FileUtils.mkdir_p(Rails.root.join('tmp', dir_to_make)) <add> FileUtils.mkdir_p(File.join(Rails.root, 'tm...
1
Javascript
Javascript
update timeline without reload
6316b47fbbedd52e1678cb94f88d820378da5268
<ide><path>client/src/redux/index.js <ide> export const reducer = handleActions( <ide> } <ide> }), <ide> [types.submitComplete]: (state, { payload: { id, challArray } }) => { <del> let submitedchallneges = [{ id }]; <add> // TODO: possibly more of the payload (files?) should be added <add> ...
1
Python
Python
use pure py3 syntax
dc500ef45a8118eeb39f443e7824dc20ceb3f433
<ide><path>official/core/base_task.py <ide> from typing import Any, Callable, Optional <ide> <ide> from absl import logging <del>import six <ide> import tensorflow as tf <ide> <ide> from official.modeling.hyperparams import config_definitions as cfg <ide> <ide> <del>@six.add_metaclass(abc.ABCMeta) <del>class Task(t...
1
Javascript
Javascript
remove dead code and simplify args check
a2bed79726f4de893eeac15d0b796103d2c65830
<ide><path>lib/internal/timers.js <ide> Timeout.prototype.refresh = function() { <ide> return this; <ide> }; <ide> <del>function setUnrefTimeout(callback, after, arg1, arg2, arg3) { <add>function setUnrefTimeout(callback, after) { <ide> // Type checking identical to setTimeout() <ide> if (typeof callback !== 'fu...
2
PHP
PHP
return connect value
f7894e9da7d92de64f2c73eedc78c3a7ed66a740
<ide><path>src/Illuminate/Remote/SecLibGateway.php <ide> protected function setHostAndPort($host) <ide> * Connect to the SSH server. <ide> * <ide> * @param string $username <del> * @return void <add> * @return bool <ide> */ <ide> public function connect($username) <ide> { <del> $this->getConnection()->lo...
1
Javascript
Javascript
replace var for let / const
df2f4ad22b27bc4cf26e1c5552d037327850bef4
<ide><path>lib/internal/async_hooks.js <ide> function getOrSetAsyncId(object) { <ide> // the user to safeguard this call and make sure it's zero'd out when the <ide> // constructor is complete. <ide> function getDefaultTriggerAsyncId() { <del> var defaultTriggerAsyncId = async_id_fields[kDefaultTriggerAsyncId]; <add> ...
3
Javascript
Javascript
retool challenge framework
ee8ac7b4538473504fa9f1153f03ebb81be9f45e
<ide><path>client/frame-runner.js <ide> document.addEventListener('DOMContentLoaded', function() { <ide> const newTest = { text, testString }; <ide> let test; <ide> let __result; <add> <add> // uncomment the following line to inspect <add> // the framerunner as it runs tests <add> ...
11
Text
Text
add full description text for scales
f4ef56993d94ad5379ebd82331f05f16d89df987
<ide><path>docs/01-Scales.md <ide> Every scale extends a core scale class with the following options: <ide> <ide> Name | Type | Default | Description <ide> --- |:---:| --- | --- <del>display | Boolean | true | If true, show the scale. <del>reverse | Boolean | false | If true, reverses the scales. <del>gridLines | Arra...
1
Python
Python
fix merge issue
30aa2ca4cbc8b337c4e2dba10915abc5ff2ea474
<ide><path>tests/core.py <ide> def test_cyclic_dependencies_3(self): <ide> regexp = "Cycle detected in DAG. (.*)runme_0(.*)" <ide> with self.assertRaisesRegexp(AirflowException, regexp): <ide> self.run_this_last.set_downstream(self.runme_0) <del>>>>>>>> 17aed4c... fixed Variable json deseria...
1
PHP
PHP
fix bug in session store
469f85234468aa923da0fcc9814a22d07b9b6b33
<ide><path>src/Illuminate/Session/Store.php <ide> public function get($name, $default = null) <ide> /** <ide> * Determine if the session contains old input. <ide> * <add> * @param string $key <ide> * @return bool <ide> */ <del> public function hasOldInput() <add> public function hasOldInput($key) <ide> { <...
1
Javascript
Javascript
use native string.prototype.trim if available
22b9b4757610918456e3486deb514bcc60a08852
<ide><path>src/Angular.js <ide> function isBoolean(value) { <ide> } <ide> <ide> <del>function trim(value) { <del> return isString(value) ? value.replace(/^\s*/, '').replace(/\s*$/, '') : value; <del>} <add>var trim = (function() { <add> // native trim is way faster: http://jsperf.com/angular-trim-test <add> // but...
1
Javascript
Javascript
load jquery from a script tag in iframe
ebfee3ed0a20deb4bc3fbe6a74ea1d8f9512a7e2
<ide><path>client/commonFramework/update-preview.js <ide> window.common = (function(global) { <ide> // context to that of the iframe. <ide> var libraryIncludes = ` <ide> <script> <del> window.$ = parent.$.proxy(parent.$.fn.find, parent.$(document)); <ide> window.loopProtect = parent.loopProtect; <ide> window._...
1
Javascript
Javascript
add include/exclude filtering to bannerplugin
b76aa12b380ffba004edae23d35942dd84bc4624
<ide><path>lib/BannerPlugin.js <ide> Author Tobias Koppers @sokra <ide> */ <ide> var ConcatSource = require("webpack-core/lib/ConcatSource"); <add>var ModuleFilenameHelpers = require("./ModuleFilenameHelpers"); <ide> <ide> function wrapComment(str) { <ide> if(str.indexOf("\n") < 0) return "/*! " + str + " */"; <ide>...
1
Mixed
Ruby
add headless chrome driver to system tests
ada05850f84ee0eef5413950333e5b5332a64b48
<ide><path>actionpack/CHANGELOG.md <add>* Add headless chrome support to System Tests. <add> <add> *Yuji Yaginuma* <add> <ide> * Add ability to enable Early Hints for HTTP/2 <ide> <ide> If supported by the server, and enabled in Puma this allows H2 Early Hints to be used. <ide><path>actionpack/lib/action_di...
6
Ruby
Ruby
fix syntax error in redirect_to example
fd76b9d5469c3309ce4308fda5bc9e95cbc457f8
<ide><path>actionpack/lib/action_controller/metal/redirecting.rb <ide> module Redirecting <ide> # redirect_to post_url(@post), alert: "Watch it, mister!" <ide> # redirect_to post_url(@post), status: :found, notice: "Pay attention to the road" <ide> # redirect_to post_url(@post), status: 301, flash: { ...
1
Python
Python
prepare pypi release
576f8fe8e6a21b7094316d36c315c2f6bdb487cc
<ide><path>keras/__init__.py <ide> from . import optimizers <ide> from . import regularizers <ide> <del>__version__ = '2.0.1' <add>__version__ = '2.0.2' <ide><path>setup.py <ide> <ide> <ide> setup(name='Keras', <del> version='2.0.1', <add> version='2.0.2', <ide> description='Deep Learning for Python'...
2
Java
Java
fix unnecessary import
7c609157c4459f372abf0480b34857568ea9680c
<ide><path>src/main/java/io/reactivex/internal/operators/completable/CompletableMergeIterable.java <ide> <ide> package io.reactivex.internal.operators.completable; <ide> <del>import io.reactivex.internal.functions.ObjectHelper; <ide> import java.util.Iterator; <ide> import java.util.concurrent.atomic.*; <ide>
1
Javascript
Javascript
allow wildcards in common name
45024e7b7551eca7796e16fe453b2cbaee94b916
<ide><path>lib/tls.js <ide> function checkServerIdentity(host, cert) { <ide> dnsNames = dnsNames.concat(uriNames); <ide> <ide> // And only after check if hostname matches CN <del> // (because CN is deprecated, but should be used for compatiblity anyway) <ide> var commonNames = cert.subject.CN; <ide> ...
1
PHP
PHP
add a missing docblock
d99be7ef3be4b00789f5fd4647a2d586cb8d41f7
<ide><path>src/Database/Schema/Table.php <ide> class Table <ide> */ <ide> const LENGTH_LONG = 4294967295; <ide> <add> /** <add> * Valid column length that can be used with text type columns <add> * <add> * @var array <add> */ <ide> public static $columnLengths = [ <ide> 'tiny' =...
1
Go
Go
convert socket group to int
e5d77c64a2030fe4c5c1413b69b45f40a2347358
<ide><path>pkg/listeners/listeners_unix.go <ide> func Init(proto, addr, socketGroup string, tlsConfig *tls.Config) ([]net.Listene <ide> } <ide> ls = append(ls, l) <ide> case "unix": <del> l, err := sockets.NewUnixSocket(addr, socketGroup) <add> <add> gid, err := strconv.Atoi(socketGroup) <add> if err != nil { <...
1
Python
Python
improve description of `novalue`
4c4f201e3d16b57e1ba03a5c12ed6343cca447ae
<ide><path>numpy/_globals.py <ide> class _NoValueType: <ide> """Special keyword value. <ide> <ide> The instance of this class may be used as the default value assigned to a <del> deprecated keyword in order to check if it has been given a user defined <del> value. <add> keyword if no other obvious def...
1
PHP
PHP
fix seeder property for in-memory tests
76a7b3cc7942eda2841518ca7877a5e009570b22
<ide><path>src/Illuminate/Database/Console/Migrations/MigrateCommand.php <ide> class MigrateCommand extends BaseCommand <ide> {--schema-path= : The path to a schema dump file} <ide> {--pretend : Dump the SQL queries that would be run} <ide> {--seed : Indicates if the seed...
2
Python
Python
add args info to evaluate_result.txt
47e9aea0fe9b8b83459f0744fa47bda6c6d4a699
<ide><path>examples/single_model_scripts/run_multiple_choice.py <ide> def evaluate(args, model, tokenizer, prefix=""): <ide> results.update(result) <ide> <ide> output_eval_file = os.path.join(eval_output_dir, "eval_results.txt") <add> <ide> with open(output_eval_file, "w") as writer: <ide> ...
1
PHP
PHP
add an http cache middleware
5defbd745dc41577e408d9714b137b056c3bd807
<ide><path>src/Illuminate/Http/Middleware/Cache.php <add><?php <add> <add>namespace Illuminate\Http\Middleware; <add> <add>use Closure; <add> <add>class Cache <add>{ <add> /** <add> * Add cache related HTTP headers. <add> * <add> * @param \Illuminate\Http\Request $request <add> * @param \Closure ...
2
Text
Text
update markdown syntax on dataflow.md
b105f1e3783b1112b2aedeac2edc005313221b87
<ide><path>docs/basics/DataFlow.md <ide> The data lifecycle in any Redux app follows these 4 steps: <ide> let nextState = todoApp(previousState, action) <ide> ``` <ide> <del> Note that a reducer is a pure function. It only *computes* the next state. It should be completely predictable: calling it with the sa...
1
Javascript
Javascript
fix typo in with-redux-reselect-recompose example
a30870bd37390543c3e1b0512241b0569788c940
<ide><path>examples/with-redux-reselect-recompose/reducers/index.js <ide> import { combineReducers } from 'redux' <ide> import count, { initialState as countState } from './count' <ide> <del>export const intitialState = { <add>export const initialState = { <ide> count: countState <ide> } <ide>
1
Text
Text
fix typo in per-form csrf token docs [ci skip]
af90af42a748551d6dd2690be313186e7b0d8301
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> want to add this feature it will need to be turned on in an initializer. <ide> <ide> Rails 5 now supports per-form CSRF tokens to mitigate against code-injection attacks with forms <ide> created by JavaScript. With this option turned on, forms in your applicati...
1
Java
Java
restore proper use of cacheloader
9172a6d05e26a9103d0fbcc5ae1d047482319938
<ide><path>spring-context-support/src/main/java/org/springframework/cache/guava/GuavaCache.java <ide> /* <del> * Copyright 2002-2014 the original author or authors. <add> * Copyright 2002-2015 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you ...
2
Go
Go
use pivot_root instead of chroot
5b5c884cc8266d0c2a56da0bc2df14cc9d5d85e8
<ide><path>pkg/libcontainer/nsinit/mount.go <ide> package nsinit <ide> import ( <ide> "fmt" <ide> "github.com/dotcloud/docker/pkg/system" <add> "io/ioutil" <ide> "os" <ide> "path/filepath" <ide> "syscall" <ide> func setupNewMountNamespace(rootfs, console string, readonly bool) error { <ide> if err := system.Chdir...
1
Text
Text
update previous section and added new sections
bc64fb970e58179703730f46db242c0a8bd1406f
<ide><path>guide/english/csharp/array/index.md <ide> evenNum = new int[] {2, 4, 6, 8}; <ide> <ide> You can assign a value into an element directly by using the format below: <ide> <del>`nameOfArray[2] = 50;` <add>```csharp <add>nameOfArray[2] = 50; <add>``` <ide> <ide> Code above will assign the value of 50 directly...
1
Javascript
Javascript
clarify input documentation
3f8bc3245cb07f49223111b6c33c6241014a23bd
<ide><path>packages/ember-handlebars/lib/controls.js <ide> function normalizeHash(hash, hashTypes) { <ide> <ide> /** <ide> * `{{input}}` inserts a new instance of either Ember.TextField or <del> * Ember.Checkbox, depending on the `inputType` passed in. If no `inputType` <add> * Ember.Checkbox, depending on the `type`...
1