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 | remove unused constants | 20c8269e70a173e2d5767d1f12dc360af7093432 | <ide><path>extensions/firefox/components/PdfStreamConverter.js
<ide> const PREF_PREFIX = 'PDFJSSCRIPT_PREF_PREFIX';
<ide> const PDF_VIEWER_WEB_PAGE = 'resource://pdf.js/web/viewer.html';
<ide> const MAX_DATABASE_LENGTH = 4096;
<ide> const FIREFOX_ID = '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}';
<del>const SEAMONKEY_ID = ... | 1 |
PHP | PHP | fix cs error | 2a864ce3114ef44f8da485a60373715adfbecd48 | <ide><path>src/ORM/Behavior/TimestampBehavior.php
<ide> */
<ide> namespace Cake\ORM\Behavior;
<ide>
<del>use Cake\Database\Type\DateTimeType;
<ide> use Cake\Database\TypeFactory;
<add>use Cake\Database\Type\DateTimeType;
<ide> use Cake\Datasource\EntityInterface;
<ide> use Cake\Event\Event;
<ide> use Cake\I18n\Time; | 1 |
Java | Java | fix the drawing of left and right borders in nodes | 558f934f446010a6cb75338992164323dd44b64e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTView.java
<ide>
<ide> import android.graphics.Rect;
<ide>
<add>import com.facebook.csslayout.Spacing;
<ide> import com.facebook.react.bridge.ReadableMap;
<ide> import com.facebook.react.uimanager.PixelUtil;
<ide> import com.facebook.react.uimanager.Reac... | 1 |
Python | Python | fix typo yamlrenderertests | 8a5fea06f01ed4c5114ec0743516b6e6179c88b4 | <ide><path>rest_framework/tests/test_renderers.py
<ide> def test_with_callback(self):
<ide>
<ide> class YAMLRendererTests(TestCase):
<ide> """
<del> Tests specific to the JSON Renderer
<add> Tests specific to the YAML Renderer
<ide> """
<ide>
<ide> def test_render(self): | 1 |
Python | Python | avoid mutable default arguments | 097f83023866d625a38c891a46ce3a70d73d7f63 | <ide><path>graphs/eulerian_path_and_circuit_for_undirected_graph.py
<ide>
<ide>
<ide> # using dfs for finding eulerian path traversal
<del>def dfs(u, graph, visited_edge, path=[]):
<del> path = path + [u]
<add>def dfs(u, graph, visited_edge, path=None):
<add> path = (path or []) + [u]
<ide> for v in graph[u... | 3 |
Javascript | Javascript | add ellipse rotation (optional) to three.path | c2b42fd10002738f49004d40e017e57636d4c3a2 | <ide><path>src/extras/core/Path.js
<ide> THREE.Path.prototype.arc = function ( aX, aY, aRadius,
<ide> };
<ide>
<ide> THREE.Path.prototype.ellipse = function ( aX, aY, xRadius, yRadius,
<del> aStartAngle, aEndAngle, aClockwise ) {
<add> aStartAngle, aEndAngle, aClockwise, aRotation ) {
<ide>
<ide>... | 1 |
PHP | PHP | fix incorrect doc blocks | 3f4e79d495d178bf6284add5424c1da03fe7f8b5 | <ide><path>src/Validation/Validator.php
<ide> public function allowEmpty($field, $when = true) {
<ide> * }}}
<ide> *
<ide> * It is possible to conditionally disallow emptiness on a field by passing a callback
<del> * as a second argument. The callback will receive the validation context array as
<add> * as the third... | 1 |
Python | Python | allow predict() to return raggedtensor | a4005f4ffc5407d7c1af9cd6687d8839307c42ae | <ide><path>keras/engine/training.py
<ide> def predict(self,
<ide> 'information of where went wrong, or file a '
<ide> 'issue/bug to `tf.keras`.')
<ide> callbacks.on_predict_end()
<del> all_outputs = tf.__internal__.nest.map_structure_up_to(batch_outputs, concat... | 1 |
Javascript | Javascript | use primordials in bootstrap/node.js | e5da9226681a6d1efba09cef25618d7106ae2bb9 | <ide><path>lib/internal/bootstrap/node.js
<ide> // This file is compiled as if it's wrapped in a function with arguments
<ide> // passed by node::RunBootstrapping()
<ide> /* global process, loaderExports, isMainThread, ownsProcessState */
<add>/* global primordials */
<ide>
<ide> const { internalBinding, NativeModule ... | 1 |
Java | Java | sanitize duplicate slashes in request path | 758ae98af2895641dd2643bfc0e459a228b6443d | <ide><path>spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
<ide> public String getOriginatingQueryString(HttpServletRequest request) {
<ide> private String decodeAndCleanUriString(HttpServletRequest request, String uri) {
<ide> uri = removeSemicolonContent(uri);
<ide> uri = decodeRequestSt... | 2 |
Go | Go | fix panic with vi in busybox | cb7a65c55e192558376e542319a4b7e5445c2bcf | <ide><path>pkg/term/winconsole/console_windows.go
<ide> func StdStreams() (stdOut io.Writer, stdErr io.Writer, stdIn io.ReadCloser) {
<ide> func GetHandleInfo(in interface{}) (uintptr, bool) {
<ide> var inFd uintptr
<ide> var isTerminalIn bool
<add> if file, ok := in.(*os.File); ok {
<add> inFd = file.Fd()
<add> is... | 1 |
Javascript | Javascript | add regression test for instanceof | 8f8f0313f412c916ed1043bfb90e188f10b597d6 | <ide><path>test/parallel/test-instanceof.js
<add>'use strict';
<add>require('../common');
<add>const assert = require('assert');
<add>
<add>
<add>// Regression test for instanceof, see
<add>// https://github.com/nodejs/node/issues/7592
<add>const F = () => {};
<add>F.prototype = {};
<add>assert(Object.create(F.prototyp... | 1 |
PHP | PHP | use the `help()` method for unknown subcommands | 57db7a68f9f45723f30288fdb1e33c9896907a6b | <ide><path>src/Console/ConsoleOptionParser.php
<ide> public function parse($argv)
<ide> */
<ide> public function help($subcommand = null, $format = 'text', $width = 72)
<ide> {
<add> if ($subcommand === null) {
<add> $formatter = new HelpFormatter($this);
<add> $formatter->setA... | 4 |
Javascript | Javascript | fix typescript for hashcontructor | a223ffdcc09367ac63a25763052d1ce6bb79668a | <ide><path>lib/util/createHash.js
<ide> class BaseHash {
<ide> }
<ide>
<ide> /** @typedef {BaseHash} Hash */
<del>/** @typedef {{new(): BaseHash}} HashConstructor */
<add>/** @typedef {typeof BaseHash} HashConstructor */
<ide>
<ide> /**
<ide> * @extends {BaseHash} | 1 |
Go | Go | close sparse files when done | bbc9fc79072bc259371aa96958336baaf8b53638 | <ide><path>devmapper/deviceset.go
<ide> func (devices *DeviceSet) ensureImage(name string, size int64) (string, error) {
<ide> if err != nil {
<ide> return "", err
<ide> }
<add> defer file.Close()
<ide>
<ide> if err = file.Truncate(size); err != nil {
<ide> return "", err | 1 |
Javascript | Javascript | use ellipsis instead of '...' | 72786beee7f6caea14d388564bbbe15a514b5aea | <ide><path>lib/Compiler.js
<ide> class Compiler extends Tapable {
<ide> this.resolverFactory.plugin("resolver normal", resolver => {
<ide> resolver.plugin(hook, fn);
<ide> });
<del> }, "webpack: Using compiler.resolvers.normal is deprecated.\n" + 'Use compiler.resolverFactory.plugin("resolver normal"... | 12 |
Python | Python | update version info | b43084ee608d1351deaa458506b7f5430568f770 | <ide><path>doc/source/conf.py
<ide>
<ide> # General substitutions.
<ide> project = 'NumPy'
<del>copyright = '2008, The Scipy community'
<add>copyright = '2008-2009, The Scipy community'
<ide>
<ide> # The default replacements for |version| and |release|, also used in various
<ide> # other places throughout the built d... | 1 |
Text | Text | update changelog for 2.17.1 | 4537db531f3a04a027f98eb57e66c2e39c8d1006 | <ide><path>CHANGELOG.md
<ide> Changelog
<ide> =========
<ide>
<add>### 2.17.1 [Also available here](https://gist.github.com/ichernev/f38280b2b29c4932914a6d3a4e50bfb2)
<add>* Release Dec 03, 2016
<add>
<add>* [#3638](https://github.com/moment/moment/pull/3638) [misc] TS: Make typescript definitions work with 1.x
<add>*... | 1 |
Java | Java | update webtestclient builder | 285ba7d391a06ee058fafdc42746de2fc6990ef8 | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultControllerSpec.java
<ide> public DefaultControllerSpec viewResolvers(Consumer<ViewResolverRegistry> consum
<ide> }
<ide>
<ide> @Override
<del> public WebTestClient.WebClientSpec webClientSpec() {
<add> public WebTestClient.Build... | 5 |
Ruby | Ruby | make new mime types first class [dhh] | 180edf4146fcfabd2e0573e451adcfa9e781bd63 | <ide><path>actionpack/lib/action_controller/mime_responds.rb
<ide> def known(mime_type_extension, &block)
<ide> end
<ide>
<ide> def any(*args, &block)
<del> args.each { |type| send(type, &block) }
<add> args.each { |type| known(type, &block) }
<ide> end
<ide>
<ide> def resp... | 1 |
Javascript | Javascript | run inner componentdidmount method first | 2afd7186ae5a8978e9f5fec56031bddca6545c2d | <ide><path>src/core/ReactCompositeComponent.js
<ide> var ReactCompositeComponentMixin = {
<ide> }
<ide> }
<ide>
<del> if (this.componentDidMount) {
<del> transaction.getReactOnDOMReady().enqueue(this, this.componentDidMount);
<del> }
<del>
<ide> this._renderedComponent = this._renderValidatedC... | 2 |
PHP | PHP | call tests into a file | 77e668fbf2d9dc41ac5f0df86ee8b4f6dee99a80 | <ide><path>tests/Container/ContainerCallTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\Container;
<add>
<add>use Closure;
<add>use stdClass;
<add>use PHPUnit\Framework\TestCase;
<add>use Illuminate\Container\Container;
<add>
<add>class ContainerCallTest extends TestCase
<add>{
<add> /**
<add> * @expec... | 2 |
Python | Python | improve perf by converting sparse grads to dense. | ad2542092385a5f9f6e56ddb957eaca2cbd6fed9 | <ide><path>official/recommendation/neumf_model.py
<ide> from official.recommendation import stat_utils
<ide>
<ide>
<add>def _sparse_to_dense_grads(grads_and_vars):
<add> """Convert sparse gradients to dense gradients.
<add>
<add> All sparse gradients, which are represented as instances of tf.IndexedSlices,
<add> a... | 1 |
Javascript | Javascript | fix e2e deploy test for node.js v18 | ecfd2f4cd6a1c3f6bc3cd1cca6b62a3cb705a4e2 | <ide><path>test/e2e/proxy-request-with-middleware/app/pages/api/index.js
<ide> export default function handler(req, res) {
<ide> request(
<ide> `http://${
<ide> // node v18 resolves to IPv6 by default so force IPv4
<del> process.version.startsWith('v18.')
<add> process.version.... | 1 |
Mixed | Javascript | allow use of abortcontroller with once | 883fc779b637732b18e2d0e6b1f386cebb37e93c | <ide><path>doc/api/events.md
<ide> class MyClass extends EventEmitter {
<ide> }
<ide> ```
<ide>
<del>## `events.once(emitter, name)`
<add>## `events.once(emitter, name[, options])`
<ide> <!-- YAML
<ide> added:
<ide> - v11.13.0
<ide> added:
<ide>
<ide> * `emitter` {EventEmitter}
<ide> * `name` {string}
<add>* `option... | 4 |
Javascript | Javascript | show warning when using hmr incorrectly | 636d97e180eb16bbde831b40a4fff59971216ef4 | <ide><path>lib/HotModuleReplacementPlugin.js
<ide> HotModuleReplacementPlugin.prototype.apply = function(compiler) {
<ide> return this.asString([
<ide> source + ",",
<ide> "hot: hotCreateModule(" + varModuleId + "),",
<del> "parents: [hotCurrentParent],",
<add> "parents: hotCurrentParents,",
<ide> ... | 1 |
PHP | PHP | add strict_types to cache tests | b7f0248d4553814bdc78e0aa1f76fcbd8072f9e5 | <ide><path>tests/TestCase/Cache/CacheTest.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>tests/TestCase/Cache/Engine/ApcuEngineTest.php
<ide> <?... | 6 |
PHP | PHP | use concrete entities on missing data | e695fe426739b640e17ac38ae80b7de836228b12 | <ide><path>src/View/Form/EntityContext.php
<ide> protected function _getEntity($path) {
<ide> $isLast = ($i === $last);
<ide>
<ide> if (!$isLast && $next === null && $prop !== '_ids') {
<del> return new Entity();
<add> $table = $this->_getTable($path);
<add> return $table->newEntity();
<ide> }
<ide> ... | 2 |
PHP | PHP | fix failing tests from merge | 1bf0227f7503adc307b5bd45740acf247dfd069b | <ide><path>lib/Cake/Controller/Component/PaginatorComponent.php
<ide> public function paginate($object = null, $scope = array(), $whitelist = array())
<ide> );
<ide>
<ide> if ($requestedPage > $page) {
<del> throw new NotFoundException();
<add> throw new Error\NotFoundException();
<ide> }
<ide>
<ide> if (... | 9 |
Ruby | Ruby | simplify logical statement | 8a72e7e6fda77eb76043bffd048208f7199ddfa0 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def compile
<ide> method << "value = nil"
<ide> method << "halted = false"
<ide>
<del> callbacks = "value = yield if block_given? && !halted"
<add> callbacks = "value = !halted && (!block_given? || yield)"
<ide> revers... | 1 |
PHP | PHP | respect laravel_env variable | 77679a5659a5104042ec676237a5d61808155243 | <ide><path>laravel/core.php
<ide>
<ide> if (Request::cli())
<ide> {
<del> $environment = get_cli_option('env');
<add> $environment = get_cli_option('env', getenv('LARAVEL_ENV'));
<ide>
<del> if ( ! isset($environment))
<add> if (empty($environment))
<ide> {
<ide> $environment = Request::detect_env($environments, g... | 1 |
Python | Python | fix mypy in providers/salesforce | 92bc8047cf822bcedfecb8cbdc82a83dc7ea43ad | <ide><path>airflow/providers/salesforce/operators/salesforce_apex_rest.py
<ide> def __init__(
<ide> *,
<ide> endpoint: str,
<ide> method: str = 'GET',
<del> payload: dict = None,
<add> payload: dict,
<ide> salesforce_conn_id: str = 'salesforce_default',
<ide> **kwar... | 1 |
Ruby | Ruby | ignore nil in lookupcontext#formats= | c555e28a4cf3690a95b5ed108d174f39cedd19b1 | <ide><path>actionview/lib/action_view/lookup_context.rb
<ide> def initialize_details(target, details)
<ide> # add :html as fallback to :js.
<ide> def formats=(values)
<ide> if values
<add> values = values.compact
<ide> values.concat(default_formats) if values.delete "*/*"
<ide> if v... | 2 |
Javascript | Javascript | improve linkto and write more tests | c87ad9fc13f7883e7b898c9fb9b1630cb2fc9bf1 | <ide><path>packages/ember-routing/lib/handlebars_ext.js
<ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) {
<ide> }
<ide> });
<ide>
<del>});
<add> function args(linkView, route) {
<add> var ret = [ route || linkView.namedRoute ],
<add> params = linkView.parameters,
<add> contexts = pa... | 2 |
PHP | PHP | use random_int rather than mt_rand | 255f63be82208a86ab280464638861df38f0b279 | <ide><path>src/Illuminate/Session/Middleware/StartSession.php
<ide> protected function collectGarbage(SessionInterface $session)
<ide> */
<ide> protected function configHitsLottery(array $config)
<ide> {
<del> return mt_rand(1, $config['lottery'][1]) <= $config['lottery'][0];
<add> return ran... | 1 |
PHP | PHP | add typehints to cache | 671aca72db1d45242c900ec97160ddf37575863b | <ide><path>src/Cache/Cache.php
<ide> class Cache
<ide> *
<ide> * @return \Cake\Core\ObjectRegistry
<ide> */
<del> public static function getRegistry()
<add> public static function getRegistry(): \Cake\Core\ObjectRegistry
<ide> {
<ide> if (!static::$_registry) {
<ide> static:... | 12 |
Go | Go | fix failing unit tests | ccd0da908ac2b0743ca2c8e80c589295fd3b2563 | <ide><path>builder/context.go
<ide> func GetContextFromLocalDir(localDir, dockerfileName string) (absContextDir, rel
<ide> // the dockerfile in that context directory, and a non-nil error on success.
<ide> func getDockerfileRelPath(givenContextDir, givenDockerfile string) (absContextDir, relDockerfile string, err error... | 2 |
Ruby | Ruby | simplify @responses hash initialization | 9b8c0ff391cdaf23e5a74198ad29f8983df0b9d7 | <ide><path>actionpack/lib/action_controller/metal/mime_responds.rb
<ide> class Collector
<ide>
<ide> def initialize(mimes)
<ide> @responses = {}
<del> mimes.each { |mime| send(mime) }
<add> mimes.each { |mime| @responses["Mime::#{mime.upcase}".constantize] = nil }
<ide> end
<ide>
<id... | 1 |
Python | Python | add files via upload | 24bad2e27359bfd1166504e369c648089651e2a1 | <ide><path>Bisection.py
<add>import math
<add>
<add>
<add>def bisection(function, a, b): # finds where the function becomes 0 in [a,b] using bolzano
<add>
<add> start = a
<add> end = b
<add> if function(a) == 0: # one of the a or b is a root for the function
<add> return a
<add> elif function(b) ==... | 3 |
PHP | PHP | add aftermarshal event | ee99fa7736b25915646fba5903479400848af7b9 | <ide><path>src/ORM/Marshaller.php
<ide> public function one(array $data, array $options = []): EntityInterface
<ide> }
<ide>
<ide> $entity->setErrors($errors);
<add> $this->_table->dispatchEvent('Model.afterMarshal', compact('entity'));
<ide>
<ide> return $entity;
<ide> }
<ide> publ... | 2 |
Javascript | Javascript | remove second argument to invariant() | 7053f59ad11c3483da1c163f80c4b2de7f901f77 | <ide><path>vendor/constants.js
<ide> var ConstantVisitor = recast.Visitor.extend({
<ide> }
<ide> },
<ide>
<add> visitCallExpression: function(call) {
<add> if (!this.constants.__DEV__) {
<add> if (call.callee.type === 'Identifier' && call.callee.name === 'invariant') {
<add> call.arguments.length... | 1 |
Python | Python | allow squashing of squashed migrations | c7bf4c27a0b82c6d33622c648a6016b68c9f44d9 | <ide><path>django/core/management/commands/squashmigrations.py
<ide> def handle(self, app_label=None, migration_name=None, **options):
<ide> try:
<ide> migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
<ide> except AmbiguityError:
<del> raise CommandEr... | 1 |
Ruby | Ruby | correct bad wording in description | 25e3d2caf4a4d567c1087db326cee3dfe15151a3 | <ide><path>activesupport/lib/active_support/core_ext/string/inflections.rb
<ide> require 'active_support/inflector/transliterate'
<ide>
<ide> # String inflections define new methods on the String class to transform names for different purposes.
<del># For instance, you can figure out the name of a database from the na... | 1 |
Javascript | Javascript | add docs for bindtocontroller with object hash | 495d40d802d050326d1c375942a7ff21b13c12e8 | <ide><path>src/ng/compile.js
<ide> *
<ide> *
<ide> * #### `bindToController`
<del> * When an isolate scope is used for a component (see above), and `controllerAs` is used, `bindToController: true` will
<add> * This property is used to bind scope properties directly to the controller. It can be either
<add> * `true` ... | 1 |
Python | Python | add setup.py for official models | 803b25401dde19240a78e511357998871968fc8c | <ide><path>official/pip_package/setup.py
<add># Copyright 2019 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy of the License at
<add>#
<add># ... | 1 |
Python | Python | improve signature output & fix a bug in it | e9ef18bde5772aee31356064ae73ba59caeb249c | <ide><path>doc/sphinxext/autosummary.py
<ide> def get_autosummary(names, state, no_signatures=False):
<ide> table = nodes.table('')
<ide> group = nodes.tgroup('', cols=2)
<ide> table.append(group)
<del> group.append(nodes.colspec('', colwidth=30))
<del> group.append(nodes.colspec('', colwidth=70))
<ad... | 1 |
Text | Text | add a note for multiple dynamic route segments | 99f2d2a1099964aaa389d4a488f0ec1a96ed3100 | <ide><path>packages/next/README.md
<ide> The matched path parameter will be sent as a query parameter to the page.
<ide> For example, the route `/post/abc` will have the following `query` object: `{ pid: 'abc' }`.
<ide> Similarly, the route `/post/abc?foo=bar` will have the `query` object: `{ foo: 'bar', pid: 'abc' }`.... | 1 |
Python | Python | fix training.py imports | 12a79c863e41290343d897ded71e8d7f8df456bc | <ide><path>keras/engine/training.py
<ide> import warnings
<ide> import copy
<ide> import numpy as np
<del>
<del>from keras.utils import Sequence
<del>from keras.utils import GeneratorEnqueuer
<del>from keras.utils import OrderedEnqueuer
<ide> from scipy.sparse import issparse
<ide>
<ide> try:
<ide> from .. import opti... | 1 |
PHP | PHP | fix coding standards in case/model/behavior | fc234d82f1da8a38ce4aae21a7f24e3b80adfb76 | <ide><path>lib/Cake/Test/Case/Model/Behavior/AclBehaviorTest.php
<ide>
<ide>
<ide> /**
<del>* Test Person class - self joined model
<del>*
<del>* @package Cake.Test.Case.Model.Behavior
<del>*/
<add> * Test Person class - self joined model
<add> *
<add> * @package Cake.Test.Case.Model.Behavior
<add> */
<id... | 7 |
Javascript | Javascript | fix a typo in chunk#split jsdoc comment | 7a0af76dac68440f9ac8ad781a75d94114e5e812 | <ide><path>lib/Chunk.js
<ide> class Chunk {
<ide> }
<ide>
<ide> /**
<del> * @param {Chunk} newChunk the new chunk that will be split out of, and then chunk raphi twil=
<add> * @param {Chunk} newChunk the new chunk that will be split out of the current chunk
<ide> * @returns {void}
<ide> */
<ide> split(newChun... | 1 |
PHP | PHP | remove deprecated `reducemany` method | 02365bb5ebafeeaef28b5eb659466c56b2634c65 | <ide><path>src/Illuminate/Collections/Traits/EnumeratesValues.php
<ide> public function reduce(callable $callback, $initial = null)
<ide> return $result;
<ide> }
<ide>
<del> /**
<del> * Reduce the collection to multiple aggregate values.
<del> *
<del> * @param callable $callback
<del> ... | 1 |
Javascript | Javascript | use relative imports for ember-routing | 9a28659e5c0b029d3d0dbdc3fddb5cd116c484d5 | <ide><path>packages/ember-routing/lib/index.js
<ide> import Ember from 'ember-metal/core'; // reexports
<ide>
<ide> // ES6TODO: Cleanup modules with side-effects below
<del>import 'ember-routing/ext/run_loop';
<del>import 'ember-routing/ext/controller';
<add>import './ext/run_loop';
<add>import './ext/controller';
<id... | 8 |
Text | Text | describe the release process | 6d5638e4152bd16916309c2e625a489d7a8f5951 | <ide><path>MAINTAINING.md
<add># Maintaining
<add>## Release Process
<add>Chart.js relies on [Travis CI](https://travis-ci.org/) to automate the library [releases](https://github.com/chartjs/Chart.js/releases).
<add>
<add>### Releasing a New Version
<add>
<add>1. draft release notes on [GitHub](https://github.com/chart... | 1 |
Ruby | Ruby | add test to deprecation of path#children | 29b1dc273e1ad6b9e13bf48fe3f12047850f9554 | <ide><path>railties/test/application/paths_test.rb
<ide> def assert_not_in_load_path(*path)
<ide> assert_not_in_load_path "tmp"
<ide> assert_not_in_load_path "tmp", "cache"
<ide> end
<add>
<add> test "deprecated children method" do
<add> assert_deprecated "children is deprecated and will be remo... | 1 |
Ruby | Ruby | reduce object allocations in taggedlogging | b65e43ab7962d0e259e7aeafe535ed73848d8014 | <ide><path>activesupport/lib/active_support/tagged_logging.rb
<ide> def tagged(*tags)
<ide> end
<ide>
<ide> def push_tags(*tags)
<del> tags.flatten.reject(&:blank?).tap do |new_tags|
<del> @tags_text = nil
<del> current_tags.concat new_tags
<del> end
<add> @tags_text ... | 1 |
Python | Python | remove object metadata when saving savedmodel | a120c621ee694a7583bdd270e9e755d08fa219c6 | <ide><path>keras/engine/base_layer.py
<ide> def _object_identifier(self):
<ide>
<ide> @property
<ide> def _tracking_metadata(self):
<add> """Info about this layer to be saved into the SavedModel."""
<ide> return self._trackable_saved_model_saver.tracking_metadata
<ide>
<ide> def _list_extra_dependencies_... | 6 |
Ruby | Ruby | fix stringinreplaceextension usage | cff79348c91cc9060eab33840b18a8a54c51fbf4 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def forked_repo_info(formula, tap_full_name, old_contents)
<ide>
<ide> def inreplace_pairs(path, replacement_pairs)
<ide> if args.dry_run?
<del> contents = path.open("r") { |f| Formulary.ensure_utf8_encoding(f).read }
<del> contents.extend(St... | 1 |
Ruby | Ruby | json.decode documentation [ci skip] | 21fee1b6540871c0227b97f2312573a4f0d89127 | <ide><path>activesupport/lib/active_support/json/decoding.rb
<ide> module ActiveSupport
<ide>
<ide> module JSON
<ide> class << self
<add> # Parses a JSON string (JavaScript Object Notation) into a hash.
<add> # See www.json.org for more info.
<add> #
<add> # ActiveSupport::JSON.decode("{\"t... | 1 |
Text | Text | move changelog entry from to the top [ci skip] | d207a33e00491a73ecc43941a40a30d27cd06ba2 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Fix bug where sum(expression) returns string '0' for no matching records
<add> Fixes #7439
<add>
<add> *Tim Macfarlane*
<add>
<ide> * PostgreSQL adapter correctly fetches default values when using multiple schemas and doma... | 1 |
Javascript | Javascript | update links to direct to guides section | 46b7f2bae625f36fa1d43e31afad210dfb0390ae | <ide><path>src/lib/create/from-string.js
<ide> hooks.createFromInputFallback = deprecate(
<ide> 'moment construction falls back to js Date. This is ' +
<ide> 'discouraged and will be removed in upcoming major ' +
<ide> 'release. Please refer to ' +
<del> 'https://github.com/moment/moment/issues/1407 for ... | 5 |
Javascript | Javascript | add assets by chunk groups to stats json | a95f4144fac988a39d38fa766bfdcb24dcb69f1b | <ide><path>lib/Stats.js
<ide> class Stats {
<ide> const showBuiltAt = optionOrLocalFallback(options.builtAt, true);
<ide> const showAssets = optionOrLocalFallback(options.assets, true);
<ide> const showEntrypoints = optionOrLocalFallback(options.entrypoints, true);
<add> const showChunkGroups = optionOrLocalFall... | 2 |
Javascript | Javascript | remove the `console` polyfills | 42099c564fcad29b49bb846bf0399db3b7d71c9f | <ide><path>src/display/api.js
<ide> var PDFWorker = (function PDFWorkerClosure() {
<ide> }
<ide> });
<ide>
<del> messageHandler.on('console_log', function (data) {
<del> console.log.apply(console, data);
<del> });
<del> messageHandler.on('console_error', func... | 2 |
Javascript | Javascript | remove auth from host | 1ead20f27466438600be03af9cc92073e8f44c13 | <ide><path>lib/url.js
<ide> function urlParse(url, parseQueryString, slashesDenoteHost) {
<ide>
<ide> // pull out port.
<ide> var p = parseHost(out.host);
<del> if (out.auth) out.host = out.auth + '@' + out.host;
<ide> var keys = Object.keys(p);
<ide> for (var i = 0, l = keys.length; i < l; i++) {
<... | 2 |
Javascript | Javascript | create `usepressability` hook | 4bbbe6a5baa3ce8ad53564ebe5c991854fa5eca7 | <ide><path>Libraries/Pressability/Pressability.js
<ide> export type PressabilityConfig = $ReadOnly<{|
<ide> onStartShouldSetResponder_DEPRECATED?: ?() => boolean,
<ide> |}>;
<ide>
<del>type EventHandlers = $ReadOnly<{|
<add>export type EventHandlers = $ReadOnly<{|
<ide> onBlur: (event: BlurEvent) => void,
<ide> ... | 2 |
Text | Text | fix a typo | 6d927fb4da7a0a17d62109b7ef8798a8e75082a7 | <ide><path>guides/source/working_with_javascript.md
<ide> In order to understand AJAX, you must first understand what a web broswer does
<ide> normally.
<ide>
<ide> When you type `http://localhost:3000` into your browser's address bar and hit
<del>'Go,' the browser (your 'client') makes a request to the server. It par... | 1 |
Ruby | Ruby | remove some code dups | da88d800b8e67841af8b4270c13bcac4559b6f74 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def define_named_route_methods(name, route)
<ide> def define_url_helper(route, name, options)
<ide> selector = url_helper_name(name, options[:only_path])
<ide>
<del> if optimize_helper?(route)
<del> @modu... | 1 |
Python | Python | add benchmarks for operations with temporaries | c3e24b2f2860ce1912f578cf996184198a3cfd25 | <ide><path>benchmarks/benchmarks/bench_core.py
<ide> def time_tril_l10x10(self):
<ide> np.tril(self.l10x10)
<ide>
<ide>
<add>class Temporaries(Benchmark):
<add> def setup(self):
<add> self.amid = np.ones(50000)
<add> self.bmid = np.ones(50000)
<add> self.alarge = np.ones(1000000)
<add>... | 1 |
Javascript | Javascript | remove experimental scheduler flags | 962dfc2c33710b880d90ba8db4f531040077d48e | <ide><path>packages/scheduler/src/SchedulerFeatureFlags.js
<ide>
<ide> export const enableSchedulerDebugging = false;
<ide> export const enableIsInputPending = false;
<del>export const requestIdleCallbackBeforeFirstFrame = false;
<del>export const requestTimerEventBeforeFirstFrame = false;
<ide> export const enableMes... | 3 |
Mixed | Go | allow docker stats without arguments | ae818a820f49a9bd7ea8b753f124747fc548e501 | <ide><path>api/client/stats.go
<ide> import (
<ide>
<ide> "github.com/docker/docker/api/types"
<ide> Cli "github.com/docker/docker/cli"
<del> flag "github.com/docker/docker/pkg/mflag"
<add> "github.com/docker/docker/pkg/jsonmessage"
<ide> "github.com/docker/docker/pkg/units"
<ide> )
<ide>
<ide> type containerStats... | 6 |
Javascript | Javascript | fix typo in auto package | c27c27a081cc27f85f15a7f7b017fe7ef1ceb23d | <ide><path>auto/auto.esm.js
<del>import {Chart, registrables} from '../dist/chart.esm';
<add>import {Chart, registerables} from '../dist/chart.esm';
<ide>
<del>Chart.register(...registrables);
<add>Chart.register(...registerables);
<ide>
<ide> export default Chart; | 1 |
Go | Go | change verbose builder out back to attach | 1095d5e5e43654aa27952f131b71c55f18fedc4b | <ide><path>builder/internals.go
<ide> func (b *Builder) create() (*daemon.Container, error) {
<ide> }
<ide>
<ide> func (b *Builder) run(c *daemon.Container) error {
<add> var errCh chan error
<add> if b.Verbose {
<add> errCh = b.Daemon.Attach(&c.StreamConfig, c.Config.OpenStdin, c.Config.StdinOnce, c.Config.Tty, nil,... | 3 |
Java | Java | fix checkstyle violation | 1e481cd14c555f62bc0da3261be9a7912dbd8610 | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/SpelParserConfiguration.java
<ide> */
<ide> public class SpelParserConfiguration {
<ide>
<del> /**
<del> * System property that is used to configure the default compiler mode for
<del> * SpEL expression parsers: {@value}
<del> */
<add> ... | 1 |
PHP | PHP | provide ability for rounding - closes | b412e2cbb19c4c93b5f8e86a177889ad1f59bcea | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> public function testDateTime() {
<ide> $this->assertRegExp('/<option[^<>]+value="35"[^<>]+selected="selected"[^>]*>35<\/option>/', $result);
<ide> }
<ide>
<add>/**
<add> * Test dateTime with rounding
<add> *
<add> * @return void
<add> */
<add> publi... | 2 |
PHP | PHP | add a base exception for http exceptions | 29ad35650182af6020e725d42064447ee851f569 | <ide><path>src/Illuminate/Http/Client/ConnectionException.php
<ide>
<ide> namespace Illuminate\Http\Client;
<ide>
<del>use Exception;
<del>
<del>class ConnectionException extends Exception
<add>class ConnectionException extends HttpClientException
<ide> {
<ide> //
<ide> }
<ide><path>src/Illuminate/Http/Client/Htt... | 3 |
Javascript | Javascript | add mustcall to test-fs-readfile-pipe-large | 54c973cee7536cc534679c223098fd39ded2199c | <ide><path>test/parallel/test-fs-readfile-pipe-large.js
<ide> const exec = require('child_process').exec;
<ide> const f = JSON.stringify(__filename);
<ide> const node = JSON.stringify(process.execPath);
<ide> const cmd = `cat ${filename} | ${node} ${f} child`;
<del>exec(cmd, { maxBuffer: 1000000 }, function(err, stdout... | 1 |
Javascript | Javascript | start async spec over in js | 500e77dbd9a3756cf3747cf10c4880f95f87a768 | <ide><path>spec/git-repository-async-spec.js
<add>'use babel'
<add>
<add>const path = require('path')
<add>const temp = require('temp')
<add>
<add>const GitRepositoryAsync = require('../src/git-repository-async')
<add>
<add>const openFixture = (fixture) => {
<add> GitRepositoryAsync.open(path.join(__dirname, 'fixtures... | 1 |
Java | Java | add additional shortcuts for hint registration | bc0bf1fac3b2908ec4a488761f7b8cd8ad52f97a | <ide><path>spring-core/src/main/java/org/springframework/aot/hint/ExecutableHint.java
<ide> import java.lang.reflect.Executable;
<ide> import java.lang.reflect.Method;
<ide> import java.util.List;
<add>import java.util.function.Consumer;
<ide>
<ide> import org.springframework.lang.Nullable;
<ide> import org.springfram... | 8 |
Text | Text | add code for createnode function | e68084401d05b72c2c6daf5390e7db387b2ad8b8 | <ide><path>guide/english/computer-science/data-structures/trees/index.md
<ide> struct node
<ide> };
<ide>
<ide> ```
<add>### Code for node creation
<add>createNode() returns a new node with the given data and NULL left and right pointers.
<add>
<add>``` c++
<add>struct node* newNode(int element)
<add>{
<add> st... | 1 |
Ruby | Ruby | add test for | d2e84fa919156d5faba750e023087f12ac4ff4bb | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_javascript_is_skipped_if_required
<ide> end
<ide> end
<ide>
<add> def test_coffeescript_is_skipped_if_required
<add> run_generator [destination_root, "--skip-coffee"]
<add>
<add> assert_file "Gemfile" do |content|
<add> assert_n... | 1 |
Javascript | Javascript | add null-checking for gl.version | bd2de3eab6562cc945e8696071874d9f283dac0c | <ide><path>src/renderers/webgl/WebGLState.js
<ide> function WebGLState( gl, extensions, utils ) {
<ide>
<ide> var maxTextures = gl.getParameter( gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS );
<ide>
<del> var version = parseFloat( /^WebGL\ ([0-9])/.exec( gl.getParameter( gl.VERSION ) )[ 1 ] );
<del> var lineWidthAvailable = ... | 1 |
Javascript | Javascript | improve code in test-crypto-verify | 8ab561b2432bdae39b1e8da723d47c95c9d6afaa | <ide><path>test/parallel/test-crypto-verify-failure.js
<ide> const options = {
<ide> cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
<ide> };
<ide>
<del>const server = tls.Server(options, function(socket) {
<del> setImmediate(function() {
<del> console.log('sending');
<add>const server = tls.... | 1 |
PHP | PHP | add failing test | 00249a5f379c2e94644bea9698a87105eeb00ca4 | <ide><path>tests/Routing/RoutingRouteTest.php
<ide> public function testMergingControllerUses()
<ide> $action = $routes[0]->getAction();
<ide>
<ide> $this->assertEquals('Namespace\\Nested\\Controller', $action['controller']);
<add>
<add>
<add> $router = $this->getRouter();
<add> $router->group(array('prefix' => ... | 1 |
Javascript | Javascript | use `invariant` from fbjs everywhere | 2708df49e3d7e1404bbf36604c14c72068cce08c | <ide><path>packager/blacklist.js
<ide> var sharedBlacklist = [
<ide> 'node_modules/fbjs/lib/Map.js',
<ide> 'node_modules/fbjs/lib/isEmpty.js',
<ide>
<add> 'downstream/core/invariant.js',
<add>
<ide> /website\/node_modules\/.*/,
<ide>
<ide> // TODO(jkassens, #9876132): Remove this rule when it's no longer nee... | 1 |
PHP | PHP | remove un-used dependencies | 2801e417fd4a838c364dae6c5c87dd21edc2ddce | <ide><path>src/Console/Command/Task/ControllerTask.php
<ide> class ControllerTask extends BakeTask {
<ide> *
<ide> * @var array
<ide> */
<del> public $tasks = ['Model', 'Test', 'Template', 'DbConfig', 'Project'];
<add> public $tasks = ['Model', 'Test', 'Template'];
<ide>
<ide> /**
<ide> * path to Controller direct... | 4 |
Text | Text | add changelog for | 65a7e90cc1f445036c50687b23597fb2ce3d9a38 | <ide><path>activerecord/CHANGELOG.md
<add>* Add `quoted_time` for truncating the date part of a TIME column value.
<add> This fixes queries on TIME column on MariaDB, as it doesn't ignore the
<add> date part of the string when it coerces to time.
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Properly accept ... | 1 |
Javascript | Javascript | add tests for isclass/isinstance implementation | 4831430c8e9de7925d26a80b967a173ebbc47567 | <ide><path>packages/sproutcore-runtime/tests/system/object/extend_test.js
<ide> module('SC.Object.extend');
<ide>
<ide> test('Basic extend', function() {
<ide> var SomeClass = SC.Object.extend({ foo: 'BAR' });
<add> ok(SomeClass.isClass, "A class has isClass of true");
<ide> var obj = new SomeClass();
<ide> equ... | 1 |
Javascript | Javascript | fix a bunch of warnings from firebug strict mode | 3955ed1b4c6a6ee0d0643c78ab6ee4f0c5d4b440 | <ide><path>fonts.js
<ide> var Font = (function () {
<ide> return font.getBytes();
<ide> },
<ide>
<del> convert: function font_convert(name, font, properties) {
<add> convert: function font_convert(fontName, font, properties) {
<ide> var otf = new Uint8Array(kMaxFontFileSize);
<ide>
<ide> f... | 2 |
Ruby | Ruby | remove dead code from merge | 3fbefecc9cdc0d1a903d6ab76170223166cc69ab | <ide><path>actionpack/lib/action_view/template_handlers/compilable.rb
<ide> def render(template, local_assigns = {})
<ide> @view.send(:execute, template, local_assigns)
<ide> end
<ide>
<del> # Compile and evaluate the template's code
<del> def compile_template(template)
<del> return fals... | 1 |
Text | Text | add note about making view directory writable | 82ababb4cb8e123c6b2e5e767119390364c867cd | <ide><path>laravel/documentation/install.md
<ide> 1. [Download Laravel](http://laravel.com/download)
<ide> 2. Extract the Laravel archive and upload the contents to your web server.
<ide> 3. Set the value of the **key** option in the **config/application.php** file to a random, 32 character string.
<del>4. Navigate to ... | 1 |
Ruby | Ruby | add brackets around attribute_name | a4b02be06761fd590b5eb67f162023a6f8e2cd4d | <ide><path>activemodel/lib/active_model/dirty.rb
<ide> module ActiveModel
<ide> # * <tt>include ActiveModel::Dirty</tt> in your object.
<ide> # * Call <tt>define_attribute_methods</tt> passing each method you want to
<ide> # track.
<del> # * Call <tt>attr_name_will_change!</tt> before each change to the tracke... | 1 |
Text | Text | remove instructions about next branch | 8b1860af97611ca4211f4a8481b0325a965f9c94 | <ide><path>docs/how-to-help-with-video-challenges.md
<ide> For more examples, you can look at the markdown files for the following video co
<ide>
<ide> ## Open a pull request
<ide>
<del>After creating one or more questions, you can commit the changes to a new branch and [open a pull request](how-to-open-a-pull-reques... | 1 |
Javascript | Javascript | set default mode for caching test | 06dd5d1aeb4899886f5f51652955e7f7ff2959a0 | <ide><path>test/Compiler-caching.test.js
<ide> describe("Compiler (caching)", function() {
<ide>
<ide> function compile(entry, options, callback) {
<ide> options = new WebpackOptionsDefaulter().process(options);
<add> options.mode = "production";
<ide> options.cache = true;
<ide> options.entry = entry;
<ide> ... | 1 |
Javascript | Javascript | add attribute name to paramaters for hooks | 11c97bb06672a1203f39eb39ab373dcc56bd9465 | <ide><path>src/attributes.js
<ide> jQuery.extend({
<ide> // Get the appropriate hook, or the formHook
<ide> // if getSetAttribute is not supported and we have form objects in IE6/7
<ide> hooks = formHook && ( name === "name" || elem.nodeName === "FORM" ) ?
<del> formHook( name ) :
<add> jQuery.attrHooks[ ... | 1 |
PHP | PHP | fix performance on getsize method | bc38e1494b1130415456de9702a93db071c248fe | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function getSize($attribute, $value)
<ide> // is the size. If it is a file, we take kilobytes, and for a string the
<ide> // entire length of the string will be considered the attribute size.
<ide> if (is_numeric($value) && $hasN... | 1 |
Text | Text | fix code in examples | 416ee1b2a05af5f4d0a65c08955ccaa94dd2ce90 | <ide><path>docs/guides/setup.md
<ide> The third argument is a 'ready' callback. Once Video.js has initialized it will
<ide> Instead of using an element ID, you can also pass a reference to the element itself.
<ide>
<ide> ```js
<del>videojs(document.getElementsById('example_video_1')), {}, function()) {
<add>videojs(do... | 1 |
Python | Python | fix utility for checking if under a load context | b1876404713e6d157d1dd05d0d74e510b53442f4 | <ide><path>keras/saving/saved_model/load_context.py
<ide> def get_load_options():
<ide>
<ide> def in_load_context():
<ide> """Returns whether under a load context."""
<del> return _load_context.in_load_context
<add> return _load_context.in_load_context() | 1 |
Javascript | Javascript | remove radix param for parsefloat calls | 6a12363f2920f40cc03787e6284a0e7c442dc1ae | <ide><path>src/offset.js
<ide> else
<ide> if ( elem === offsetParent ) {
<ide> top += elem.offsetTop, left += elem.offsetLeft;
<ide> if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
<del> top += parseFloat( computedStyle.borde... | 1 |
Python | Python | cache recursive calls in build_map_of_graph | e1791984105cc734e3dd495ec7e84414fd1bdac9 | <ide><path>keras/engine/topology.py
<ide> def __init__(self, input, output, name=None):
<ide> nodes_depths = {} # map {node: depth value}
<ide> layers_depths = {} # map {layer: depth value}
<ide>
<add> def make_node_key(node, depth):
<add> return str(id(node)) + '-' + str(depth)
<ad... | 1 |
Java | Java | use tabs rather than spaces in tests | a89e716cc71a8741385a0224b5d7eb7ce009e11a | <ide><path>spring-aop/src/test/java/org/springframework/aop/framework/ClassWithConstructor.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 209 |
Javascript | Javascript | improve locale parsing in linux | a2753ee7a18dd0b4000721391b43663870b588bf | <ide><path>src/locale.js
<ide> var fs = require("fs"),
<ide> puts = require("util").puts,
<ide> formats = {},
<ide> kvRe = /=/,
<del> valueRe = /("[^"]+")/g,
<add> valueRe = /;/g,
<add> quotedRe = /"([^"]+?)"/g,
<ide> data = [];
<ide>
<ide> process.stdin.resume();
<ide> function write() {
<ide... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.