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 |
|---|---|---|---|---|---|
Text | Text | upgrade stability status of report api | 7798e59e988a66e731cc233f4a2fbee01269736d | <ide><path>doc/api/process.md
<ide> Additional documentation is available in the [report documentation][].
<ide> ### `process.report.reportOnFatalError`
<ide> <!-- YAML
<ide> added: v11.12.0
<add>changes:
<add> - version:
<add> - REPLACEME
<add> description: This API is no longer experimental.
<ide> -->
<ide>
... | 1 |
Javascript | Javascript | fix couple of typos in the docs | 1f4b417184ce53af15474de065400f8a686430c5 | <ide><path>src/Angular.js
<ide> var _undefined = undefined,
<ide> * @param {Object|Array} obj Object to iterate over.
<ide> * @param {function()} iterator Iterator function.
<ide> * @param {Object} context Object to become context (`this`) for the iterator function.
<del> * @returns {Objet|Array} Reference to... | 14 |
Python | Python | add some doc to the paver script | 6b942481c52f6d2e88774fe4c18c3aed64cd7ee5 | <ide><path>pavement.py
<add>"""
<add>Building a fancy dmg from scratch
<add>=================================
<add>
<add>Clone the numpy-macosx-installer git repo from on github into the source tree
<add>(numpy-macosx-installer should be in the same directory as setup.py). Then, do
<add>as follows::
<add>
<add> pave... | 1 |
Javascript | Javascript | remove internal usage of `ember.__loader` | 89f0516c78af31fbd2ef3c9e7a6b84b497be6105 | <ide><path>packages/ember-metal/lib/core.js
<ide> /*globals Ember:true,ENV,EmberENV */
<ide>
<add>import require from 'require';
<add>
<ide> /**
<ide> @module ember
<ide> @submodule ember-metal
<ide> Ember.toString = function() { return 'Ember'; };
<ide>
<ide> // The debug functions are exported to globals with `requ... | 8 |
Ruby | Ruby | fix dependency order | dc90709eaf1242f565de3a9282d7939f6bc853cf | <ide><path>tasks/release.rb
<del>FRAMEWORKS = %w( activesupport activemodel activerecord actionpack actionview actionmailer railties )
<add>FRAMEWORKS = %w( activesupport activemodel activerecord actionview actionpack actionmailer railties )
<ide>
<ide> root = File.expand_path('../../', __FILE__)
<ide> version = Fi... | 1 |
Go | Go | remove some todos | f50b916ca6cce410f3b1bbd5250fb9ba2a7942a6 | <ide><path>daemon/container_windows.go
<ide> func (container *Container) CleanupStorage() error {
<ide> return nil
<ide> }
<ide>
<del>// TODO Windows. This can be further factored out. Used in daemon.go
<add>// prepareMountPoints is a no-op on Windows
<ide> func (container *Container) prepareMountPoints() error {
<id... | 1 |
Ruby | Ruby | add test for locale.detect | 1d3e8c5550a0c32a227f0cf3db97c2c0410fb886 | <ide><path>Library/Homebrew/test/locale_spec.rb
<ide> expect(subject.eql?("zh_CN_Hans")).to be false
<ide> end
<ide> end
<add>
<add> describe "#detect" do
<add> let(:locale_groups) { [["zh"], ["zh-TW"]] }
<add>
<add> it "finds best matching language code, independent of order" do
<add> expect(de... | 1 |
Ruby | Ruby | use deep_symbolize_keys instead of symbolize_names | be2fd611375026ef902c73fb35526a08e10999c6 | <ide><path>railties/lib/rails/application.rb
<ide> def config_for(name, env: Rails.env)
<ide>
<ide> if yaml.exist?
<ide> require "erb"
<del> all_configs = ActiveSupport::ConfigurationFile.parse(yaml, symbolize_names: true)
<add> all_configs = ActiveSupport::ConfigurationFile.parse(yam... | 2 |
PHP | PHP | add the ability to skip algorithm checking | 7aeff1d4393afba36c52e301726d848e2a373b12 | <ide><path>src/Illuminate/Hashing/Argon2IdHasher.php
<ide> class Argon2IdHasher extends ArgonHasher
<ide> */
<ide> public function check($value, $hashedValue, array $options = [])
<ide> {
<del> if ($this->info($hashedValue)['algoName'] !== 'argon2id') {
<add> if ($this->verifyAlgorithm && $th... | 3 |
Javascript | Javascript | use regluar expression in vm test | e8170f2246717cd8171c450ba11ae04934cf7dd9 | <ide><path>test/parallel/test-vm-create-context-arg.js
<ide> const vm = require('vm');
<ide>
<ide> assert.throws(function() {
<ide> vm.createContext('string is not supported');
<del>}, TypeError);
<add>}, /^TypeError: sandbox must be an object$/);
<ide>
<ide> assert.doesNotThrow(function() {
<ide> vm.createContex... | 1 |
Javascript | Javascript | remove experimental warning from formdata | 5ad47a0c2a587616f8d7c25e09f76dab389fdbf0 | <ide><path>lib/internal/bootstrap/pre_execution.js
<ide> function setupFetch() {
<ide> return undici;
<ide> }
<ide>
<del> emitExperimentalWarning('The Fetch API');
<ide> undici = require('internal/deps/undici/undici');
<ide> return undici;
<ide> }
<ide>
<ide> async function fetch(input, init ... | 1 |
Java | Java | fix typo in javadoc | 1e1ea34e876bf15c804245b712332e53f1962496 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/ListableBeanFactory.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you... | 2 |
Ruby | Ruby | add link_path_manpages method | 8cc027a3cd24b95120932c581c8b9eebb8c710f3 | <ide><path>Library/Homebrew/utils.rb
<ide> def truncate_text_to_approximate_size(s, max_bytes, options = {})
<ide> out.encode!("UTF-8")
<ide> out
<ide> end
<add>
<add>def link_path_manpages(path, command)
<add> return unless (path/"man").exist?
<add> conflicts = []
<add> (path/"man").find do |src|
<add> next ... | 1 |
Go | Go | remove unused win32 errors (leftover from tp4) | 9637be0e9d539b4b379ae3dd31b60f17b6bbf4e5 | <ide><path>libcontainerd/local/local_windows.go
<ide> type container struct {
<ide> terminateInvoked bool
<ide> }
<ide>
<del>// Win32 error codes that are used for various workarounds
<del>// These really should be ALL_CAPS to match golangs syscall library and standard
<del>// Win32 error conventions, but golint insi... | 1 |
Text | Text | update react 18 configuration | 4ac0227423287223373dcfaf6d4ddf78aa4201f6 | <ide><path>docs/advanced-features/react-18.md
<ide> module.exports = {
<ide> }
<ide> ```
<ide>
<del>Next, you need to customize your `pages/_document` component to be a functional component by removing any static methods like `getInitialProps` or exports like `getServerSideProps`
<add>Next, if you already have customi... | 1 |
Ruby | Ruby | replace template’s `j1` with `deparallelize` | 410121d8edfc8fd35cbf3739854cb69652c82ea1 | <ide><path>Library/Homebrew/cmd/create.rb
<ide> class #{Formula.class_s name} < Formula
<ide> depends_on :x11 # if your formula requires any X11/XQuartz components
<ide>
<ide> def install
<del> # ENV.j1 # if your formula's build system can't parallelize
<add> # ENV.deparallelize # if your f... | 1 |
Go | Go | add failing test case for issue | 53c5b1856d91093fed1c2d3f038d227f5fdef4b8 | <ide><path>integration/container_test.go
<ide> func TestOutput(t *testing.T) {
<ide> }
<ide> }
<ide>
<del>func TestContainerNetwork(t *testing.T) {
<del> runtime := mkRuntime(t)
<del> defer nuke(runtime)
<del> container, _, err := runtime.Create(
<del> &runconfig.Config{
<del> Image: GetTestImage(runtime).ID,
<del... | 1 |
Ruby | Ruby | add brew-profile to contrib | cf66686a17617e6b9235f8aa655d6f8d3c846abf | <ide><path>Library/Contributions/cmd/brew-profile.rb
<add>begin
<add> require 'rubygems'
<add> require 'ruby-prof'
<add>rescue LoadError
<add> abort 'This command requires the ruby-prof gem'
<add>end
<add>
<add>require 'formula'
<add>
<add>RubyProf.start
<add>Formula.names.each { |n| Formula.factory(n) }
<add>RubyPr... | 1 |
Go | Go | fix flaky testportmappingv6config | c721bad8ccddeb353e71d4b4b26ad878d1ae8bee | <ide><path>libnetwork/drivers/bridge/port_mapping_test.go
<ide> import (
<ide> "testing"
<ide>
<ide> "github.com/docker/docker/libnetwork/netlabel"
<add> "github.com/docker/docker/libnetwork/ns"
<ide> "github.com/docker/docker/libnetwork/testutils"
<ide> "github.com/docker/docker/libnetwork/types"
<ide> "github.c... | 1 |
Ruby | Ruby | construct new argv from an options collection | cf08b71bf8dc94eaaeb1b0cde68b97a7e02ca129 | <ide><path>Library/Homebrew/build_options.rb
<ide> class BuildOptions
<ide> include Enumerable
<ide>
<ide> def initialize args
<del> @args = Array.new(args).extend(HomebrewArgvExtension)
<add> @args = Options.coerce(args)
<ide> @options = Options.new
<ide> end
<ide>
<ide> def as_flags
<ide> end
<ide... | 8 |
Python | Python | remove this deprecated alias | 0609255dd24ee300b56387f1006c074978ebb832 | <ide><path>django/core/mail/__init__.py
<ide> SafeMIMEText, SafeMIMEMultipart,
<ide> DEFAULT_ATTACHMENT_MIME_TYPE, make_msgid,
<ide> BadHeaderError, forbid_multi_line_headers)
<del>from django.core.mail.backends.smtp import EmailBackend as _SMTPConnection
<add>
<ide>
<ide> def get_connection(backend=None, ... | 1 |
Go | Go | remove docker from some functions | de5c80b4f3ca51343fb4b698362ad232478b43be | <ide><path>distribution/pull_v1.go
<ide> func (p *v1Puller) Pull(ctx context.Context, ref reference.Named, platform strin
<ide> tr := transport.NewTransport(
<ide> // TODO(tiborvass): was ReceiveTimeout
<ide> registry.NewTransport(tlsConfig),
<del> registry.DockerHeaders(dockerversion.DockerUserAgent(ctx), p.conf... | 10 |
Python | Python | add sphinx-panels as an extension | 64e549a992ef7c908e46c2b243aa2bde50642d15 | <ide><path>doc/source/conf.py
<ide> class PyTypeObject(ctypes.Structure):
<ide> 'sphinx.ext.ifconfig',
<ide> 'matplotlib.sphinxext.plot_directive',
<ide> 'IPython.sphinxext.ipython_console_highlighting',
<del> 'IPython.sphinxext.ipython_directive',\
<add> 'IPython.sphinxext.ipython_directive',
<ide> ... | 1 |
Text | Text | fix description of `docker swarm update --help` | 2f0e00f58723cb3e063b49f564173b3768476c99 | <ide><path>docs/reference/commandline/swarm_update.md
<ide> Options:
<ide> --autolock Change manager autolocking setting (true|false)
<ide> --cert-expiry duration Validity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s)
<ide> --dispatcher-heartbeat d... | 1 |
Text | Text | adjust the plurality of goal to goals | a15c584f202abcb25e269e2d4e22da0f5be0d95c | <ide><path>docs/Network.md
<ide> permalink: docs/network.html
<ide> next: timers
<ide> ---
<ide>
<del>One of React Native goal is to be a playground where we can experiment with different architectures and crazy ideas. Since browsers are not flexible enough, we had no choice but to reimplement the entire stack. In the... | 1 |
PHP | PHP | convert radio to use selected instead of value | 88100a4bb7ee56b074b76f2ef4f579786a192dd9 | <ide><path>src/View/Input/Radio.php
<ide> public function __construct($templates) {
<ide> * - `options` - An array of options. See below for more information.
<ide> * - `disabled` - Either true or an array of inputs to disable.
<ide> * When true, the select element will be disabled.
<del> * - `value` - A string o... | 2 |
Text | Text | fix line length in worker_threads.md | ca60f5fb447e545270ef3c8f6dbf495b64b5ee12 | <ide><path>doc/api/worker_threads.md
<ide> markAsUntransferable(pooledBuffer);
<ide> const { port1 } = new MessageChannel();
<ide> port1.postMessage(typedArray1, [ typedArray1.buffer ]);
<ide>
<del>// The following line prints the contents of typedArray1 -- it still owns its
<del>// memory and has been cloned, not tra... | 1 |
Ruby | Ruby | remove illegal testcase | 4db3e51c8ec307ba0d068e4403f7a66805b3c3ff | <ide><path>Library/Homebrew/test/test_pkg_version.rb
<ide> def test_parse
<ide> assert_equal PkgVersion.new(Version.new("1.0"), 0), PkgVersion.parse("1.0")
<ide> assert_equal PkgVersion.new(Version.new("1.0"), 0), PkgVersion.parse("1.0_0")
<ide> assert_equal PkgVersion.new(Version.new("2.1.4"), 0), PkgVersi... | 1 |
Javascript | Javascript | add proptypes.checkproptypes api | 600685bdefbb965129a73536a65b86cbaa73de48 | <ide><path>src/isomorphic/classic/types/ReactPropTypes.js
<ide>
<ide> var ReactElement = require('ReactElement');
<ide> var ReactPropTypesSecret = require('ReactPropTypesSecret');
<add>var checkReactTypeSpec = require('checkReactTypeSpec');
<ide>
<ide> var emptyFunction = require('emptyFunction');
<ide> var getIterat... | 3 |
Ruby | Ruby | handle legacy options in the method_added hook | d122ae8eea053b6f1074c34ce55ebc3dc26e0801 | <ide><path>Library/Homebrew/formula.rb
<ide> def initialize(name, path, spec)
<ide>
<ide> @active_spec = determine_active_spec(spec)
<ide> validate_attributes :url, :name, :version
<del> active_spec.add_legacy_options(options)
<ide> @pkg_version = PkgVersion.new(version, revision)
<ide> @pin = Formu... | 2 |
Javascript | Javascript | remove unneeded type import | bc863596f4bb2a312f4b37132b297927bce8cb34 | <ide><path>lib/Chunk.js
<ide> const ERR_CHUNK_INITIAL =
<ide>
<ide> /** @typedef {import("./Module")} Module */
<ide> /** @typedef {import("./ChunkGroup")} ChunkGroup */
<del>/** @typedef {import("./Entrypoint")} Entrypoint */
<ide> /** @typedef {import("./ModuleReason")} ModuleReason */
<ide> /** @typedef {import("we... | 1 |
Ruby | Ruby | remove dead code | 2e0b0c1dab7eeafb58d29ac6e71071118c91365f | <ide><path>activerecord/test/cases/pooled_connections_test.rb
<ide> def teardown
<ide> @per_test_teardown.each {|td| td.call }
<ide> end
<ide>
<del> def checkout_connections
<del> ActiveRecord::Base.establish_connection(@connection.merge({:pool => 2, :checkout_timeout => 0.3}))
<del> @connections = []
<de... | 1 |
Ruby | Ruby | add audit check for system "xcodebuild" | 26c71b19f6f715e1f558da1c904aafe6eecebe11 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_text
<ide> problem "use \"scons *args\" instead of \"system 'scons', *args\""
<ide> end
<ide>
<del> if text =~ /system\s+['"]xcodebuild/ && text !~ /SYMROOT=/
<del> problem "xcodebuild should be passed an explicit \"SYMROOT\""
<add> if text ... | 1 |
Ruby | Ruby | add a setter for the cookie jar | 447c2cb1b0684c6efcfe1063222d537567fa1d3e | <ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb
<ide> def handle_unverified_request
<ide> request.session = NullSessionHash.new(request.env)
<ide> request.env['action_dispatch.request.flash_hash'] = nil
<ide> request.env['rack.session.options'] = { skip: tru... | 2 |
Javascript | Javascript | check inspector support in test/inspector | 7dfeb36143a37b5f11766220a6408b9e6124a53b | <ide><path>test/inspector/test-inspector-port-zero-cluster.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<add>common.skipIfInspectorDisabled();
<ide> const assert = require('assert');
<ide> const cluster = require('cluster');
<ide>
<ide><path>test/inspector/test-inspector-port-zero.js
<ide> ... | 2 |
Javascript | Javascript | add test for transition.tween | 1704957cb03c929ba1e4df00177d42fa3cde2a7c | <ide><path>test/core/transition-test-tween.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var assert = require("assert");
<add>
<add>module.exports = {
<add> topic: function() {
<add> var cb = this.callback,
<add> dd = [],
<add> ii = [],
<add> tt = [],
<add> fails = 0;
<... | 2 |
Python | Python | set architecture in textcat example | 5063d999e5536c8aa96423781ec82cc7380c4051 | <ide><path>examples/training/train_textcat.py
<ide> def main(model=None, output_dir=None, n_iter=20, n_texts=2000):
<ide> # add the text classifier to the pipeline if it doesn't exist
<ide> # nlp.create_pipe works for built-ins that are registered with spaCy
<ide> if "textcat" not in nlp.pipe_names:
<del> ... | 1 |
Java | Java | fix toiterator exception handling | 11374c2653fa9aa2836a89f19d377ba25b198bbc | <ide><path>rxjava-core/src/main/java/rx/internal/operators/BlockingOperatorToIterator.java
<ide> public void onCompleted() {
<ide>
<ide> @Override
<ide> public void onError(Throwable e) {
<del> // ignore
<add> notifications.offer(Notification.<T>createOnError(e));
... | 2 |
Text | Text | add instructions to run the examples | 6f70bb8c69cdbe1207e4909ccface32c8f51297b | <ide><path>README.md
<ide> When TensorFlow 2.0 and/or PyTorch has been installed, you can install from sour
<ide> pip install [--editable] .
<ide> ```
<ide>
<add>### Run the examples
<add>
<add>Examples are included in the repository but are not shipped with the library.
<add>Therefore, in order to run the examples yo... | 1 |
Javascript | Javascript | remove createreactclass from swipeablerow | 14e1628ba80e6ab918e3d7ac570fa4ec01d7de02 | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableRow.js
<ide> const Animated = require('Animated');
<ide> const I18nManager = require('I18nManager');
<ide> const PanResponder = require('PanResponder');
<ide> const React = require('React');
<del>const PropTypes = require('prop-types');
<ide> const StyleSheet = re... | 1 |
Ruby | Ruby | remove odd asignation | f74692788914a95794e823d2ec40815319447131 | <ide><path>actionpack/lib/action_view/asset_paths.rb
<ide> def compute_asset_host(source)
<ide> def relative_url_root
<ide> config = controller.config if controller.respond_to?(:config)
<ide> config ||= config.action_controller if config.action_controller.present?
<del> config ||= config
<ide> ... | 1 |
Python | Python | remove print stament which some how ended up there | 4d7fd3f3c58fd4dd32512a9a72af471ab3a52b3a | <ide><path>libcloud/compute/drivers/ec2.py
<ide> def list_sizes(self, location=None):
<ide> attributes = copy.deepcopy(attributes)
<ide> price = self._get_size_price(size_id=instance_type)
<ide> attributes.update({'price': price})
<del> print attributes
<ide> s... | 1 |
Javascript | Javascript | use https urls in jsonp example | 279f00b05b76e0aafe0774fe136c218b0c97418c | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> <button id="samplegetbtn" ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
<ide> <button id="samplejsonpbtn"
<ide> ng-click="updateModel('JSONP',
<del> 'http://angularjs.org/greet.php?callback=JSON_CALL... | 1 |
Ruby | Ruby | build fix for actionmailer | 5138a303e423312a8f68b1dc14cca0758dcff59e | <ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb
<add>require 'rack/session/abstract/id'
<ide> require 'action_controller/metal/exceptions'
<ide>
<ide> module ActionController #:nodoc: | 1 |
Javascript | Javascript | add better dev-only invariants | 0a5c5f093bdb12d6b7e2953e71f174623f9de979 | <ide><path>src/Container.js
<ide> import values from 'lodash/object/values';
<ide> import mapValues from 'lodash/object/mapValues';
<ide> import invariant from 'invariant';
<ide> import isPlainObject from 'lodash/lang/isPlainObject';
<add>import isFunction from 'lodash/lang/isFunction';
<ide>
<ide> export default clas... | 1 |
PHP | PHP | add option for scoped cache locks | 28b8cb91251f0643f2aa61072c0554edeabce21b | <ide><path>src/Illuminate/Cache/Lock.php
<ide> abstract class Lock implements LockContract
<ide> */
<ide> protected $seconds;
<ide>
<add> /**
<add> * A (usually) random string that acts as scope identifier of this lock.
<add> *
<add> * @var string
<add> */
<add> protected $scope;
<add>
<... | 6 |
Mixed | Javascript | fix ssr cache example (#510) | 355dbf8fdd1812d75ee6b9f0e360f403cb5802ec | <ide><path>examples/ssr-caching/README.md
<ide> Install it and run:
<ide>
<ide> ```bash
<ide> npm install
<del>npm run dev
<add>npm start
<ide> ```
<ide>
<ide> Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
<ide><path>examples/ssr-caching/server.js
<ide> app.prepare()
<i... | 2 |
PHP | PHP | check _serialize keys before using them | aed215fb508bdcbc6bdcfb6f2b730e6b73fac74b | <ide><path>src/View/XmlView.php
<ide> protected function _serialize($serialize)
<ide> if (is_numeric($alias)) {
<ide> $alias = $key;
<ide> }
<del> $data[$rootNode][$alias] = $this->viewVars[$key];
<add> if (array_key_exists($key, $this->v... | 1 |
Python | Python | add kannada, tamil, and telugu unicode blocks | bee79619278a5e055ac744798a6ea0001951c94b | <ide><path>spacy/lang/char_classes.py
<ide>
<ide> _hindi = r"\u0900-\u097F"
<ide>
<add>_kannada = r"\u0C80-\u0CFF"
<add>
<add>_tamil = r"\u0B80-\u0BFF"
<add>
<add>_telugu = r"\u0C00-\u0C7F"
<add>
<ide> # Latin standard
<ide> _latin_u_standard = r"A-Z"
<ide> _latin_l_standard = r"a-z"
<ide> _upper = LATIN_UPPER + _rus... | 1 |
Python | Python | fix sequence timeout deadlock | cf9595ae20be49917f2a19b24467e822ac878269 | <ide><path>keras/utils/data_utils.py
<ide> def get(self):
<ide> try:
<ide> future = self.queue.get(block=True)
<ide> inputs = future.get(timeout=30)
<del> self.queue.task_done()
<ide> except mp.TimeoutError:
<ide> ... | 2 |
Text | Text | add documentation for working on engine api | 109c54c481c7dafe88b622b87c0c7c172fed5ea1 | <ide><path>api/README.md
<del>This directory contains code pertaining to the Docker API:
<add># Working on the Engine API
<ide>
<del> - Used by the docker client when communicating with the docker daemon
<add>The Engine API is an HTTP API used by the command-line client to communicate with the daemon. It can also be u... | 1 |
Python | Python | fix sundry errors | 527937eb3df319c23a9ccfe26558739acec14e8c | <ide><path>numpy/core/fromnumeric.py
<ide> def sum(x, axis=None, dtype=None, out=None):
<ide> if out is not None:
<ide> out[...] = res
<ide> return out
<add> return res
<ide> try:
<ide> sum = x.sum
<ide> except AttributeError:
<ide><path>numpy/core/numeric.py
<ide>... | 3 |
Python | Python | increase test coverage | a11bf06aa756f43f740f5c51b8ffbf722ad8c1ad | <ide><path>tests/test_model_saving.py
<ide> def test_saving_model_with_long_weights_names():
<ide> f = x
<ide> for i in range(4):
<ide> f = Dense(2, name='nested_model_dense_%d' % (i,))(f)
<add> f = Dense(2, name='nested_model_dense_4', trainable=False)(f)
<ide> # This layer name will make the `w... | 1 |
Python | Python | handle kombu serialization errors as task errors | bbd1e4b28c8739053b45204890bad4959bf8e19f | <ide><path>celery/app/trace.py
<ide>
<ide> from billiard.einfo import ExceptionInfo
<ide> from kombu.utils import kwdict
<add>from kombu.exceptions import SerializationError
<ide>
<ide> from celery import current_app
<ide> from celery import states, signals
<ide> def trace_task(uuid, args, kwargs, request=None):
<ide... | 1 |
PHP | PHP | remove unneeded line | 0c0654394c277576f20a8b45f5077f6800b47237 | <ide><path>src/Illuminate/Auth/Console/MakeAuthCommand.php
<ide> public function fire()
<ide>
<ide> file_put_contents(
<ide> app_path('Http/Controllers/HomeController.php'),
<del> $this->compileControllerStub(),
<del> FILE_TEXT
<add> $this->compi... | 1 |
Text | Text | update swc failed error with link to discussion | 00c53d632ce84af8727c030181570ae7bbd6f66b | <ide><path>errors/failed-loading-swc.md
<ide> If SWC continues to fail to load you can opt-out by disabling `swcMinify` in you
<ide> }
<ide> ```
<ide>
<del>Be sure to report the issue on [the feedback thread](https://github.com/vercel/next.js/discussions/30174) sharing the below information so we can get it fixed:
<de... | 1 |
Javascript | Javascript | modify test messages to template literals | f96745a4d31111788700dd276baed2b966c6f090 | <ide><path>test/parallel/test-cli-syntax.js
<ide> const notFoundRE = /^Error: Cannot find module/m;
<ide> const cmd = [node, ..._args].join(' ');
<ide> exec(cmd, common.mustCall((err, stdout, stderr) => {
<ide> assert.ifError(err);
<del> assert.strictEqual(stdout, '', 'stdout produced');
<del> a... | 1 |
Python | Python | remove duplicated code between sort and argsort | 821293d73fb6f62a9304c744a6144b43a853ba81 | <ide><path>numpy/ma/core.py
<ide> def sort(self, axis=-1, kind='quicksort', order=None,
<ide> if self is masked:
<ide> return
<ide>
<del> if fill_value is None:
<del> if endwith:
<del> # nan > inf
<del> if np.issubdtype(self.dtype, np.floating):
<del>... | 1 |
Ruby | Ruby | remove unused code | 2eed9286ce3af77d29bdd20b4c2a5fa93baf03b1 | <ide><path>activesupport/test/core_ext/module_test.rb
<ide> class Cd
<ide> end
<ide> end
<ide>
<del>class De
<del>end
<del>
<ide> Somewhere = Struct.new(:street, :city)
<ide>
<ide> Someone = Struct.new(:name, :place) do | 1 |
Text | Text | add the text "de forma a validar" to article | 03c55d309bcec2279476631ece4695853f71d4f2 | <ide><path>guide/portuguese/machine-learning/deep-learning/index.md
<ide> Para os não iniciados, um neurônio artificial é basicamente uma função mate
<ide>
<ide> ### Por que isso é um grande negócio?
<ide>
<del>Chegando com o conjunto de regras manualmente para algumas das tarefas pode ser muito complicado (embora te... | 1 |
PHP | PHP | add a new interfact for redis connections | 9e2017064df6e7681140065ca484bb3a469b67c3 | <ide><path>src/Illuminate/Contracts/Redis/Connections/Connection.php
<add><?php
<add>
<add>namespace Illuminate\Contracts\Redis\Connections;
<add>
<add>use Closure;
<add>
<add>interface Connection
<add>{
<add> /**
<add> * Subscribe to a set of given channels for messages.
<add> *
<add> * @param array|st... | 1 |
Python | Python | use jinja2 templating for non owner email notif; | 940e09bcf54aa291153f84ecf389e761a43003d7 | <ide><path>airflow/www/utils.py
<ide> import os
<ide> from flask import after_this_request, request, Response
<ide> from flask.ext.login import current_user
<add>from jinja2 import Template
<ide> import wtforms
<ide> from wtforms.compat import text_type
<ide>
<ide> def wrapper(*args, **kwargs):
<ide> s... | 1 |
Python | Python | fix a small typo | 8f116200c5597e7d99dc77cb7911012635eb300e | <ide><path>libcloud/compute/drivers/cloudscale.py
<ide> def _list_resources(self, url, tranform_func):
<ide>
<ide> def _to_node(self, data):
<ide> state = self.NODE_STATE_MAP.get(data['status'], NodeState.UNKNOWN)
<del> extra_keys = ['volumes', 'inferfaces', 'anti_affinity_with']
<add> extra_... | 1 |
Java | Java | add support for removeoncancelpolicy | 7441f2301281049cff7224bf650646490388080e | <ide><path>spring-context/src/main/java/org/springframework/scheduling/concurrent/ScheduledExecutorFactoryBean.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lice... | 7 |
Python | Python | remove non-native byte order from _var check | 3d9b25d6b6234aa95ff54c595e02a916056beab8 | <ide><path>numpy/core/_methods.py
<ide> _complex_to_float.update({
<ide> nt.dtype(nt.clongdouble) : nt.dtype(nt.longdouble),
<ide> })
<del># Add reverse-endian types
<del>_complex_to_float.update({
<del> k.newbyteorder() : v.newbyteorder() for k, v in _complex_to_float.items()
<del>})
<ide>
<ide> # ... | 1 |
Go | Go | add integration test for start_first update order | 6763641d6932468a0503516bb32e39202989aa52 | <ide><path>integration-cli/docker_api_swarm_service_test.go
<ide> func (s *DockerSwarmSuite) TestAPISwarmServicesUpdate(c *check.C) {
<ide> map[string]int{image1: instances})
<ide> }
<ide>
<add>func (s *DockerSwarmSuite) TestAPISwarmServicesUpdateStartFirst(c *check.C) {
<add> d := s.AddDaemon(c, true, true)
<add>
<... | 2 |
Text | Text | use the word "maintainers" | ebd77ae8c429b3d9ac200df11c7cccec2137d629 | <ide><path>README.md
<ide> Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/homebre
<ide>
<ide> Who Are You?
<ide> ------------
<del>Homebrew is currently maintained by [Misty De Meo][mistydemeo], [Adam Vandenberg][adamv], [Jack Nagel][jacknagel], [Mike McQuaid][mikemcquaid] and [Brett Koonce][... | 1 |
PHP | PHP | remove inflection from missing controller errors | 672519855564b7110595201bd2cdda86ca8c2d98 | <ide><path>src/Routing/Dispatcher.php
<ide> public function dispatch(Request $request, Response $response) {
<ide>
<ide> if (!($controller instanceof Controller)) {
<ide> throw new MissingControllerException(array(
<del> 'class' => Inflector::camelize($request->params['controller']),
<del> 'plugin' => empty... | 2 |
Javascript | Javascript | restore optselected hack still needed by ie9/10 | f75c0627f22b4af52199b46659675258811970f5 | <ide><path>src/attributes.js
<ide> jQuery.each([ "radio", "checkbox" ], function() {
<ide> }
<ide> });
<ide> });
<add>
<add>// IE9/10 do not see a selected option inside an optgroup unless you access it
<add>// Support: IE9, IE10
<add>if ( !jQuery.support.optSelected ) {
<add> jQuery.propHooks.selected = jQuery.exte... | 2 |
Javascript | Javascript | delay pause/resume until after connect | de65ba7aba0e48a846e8cad86278f51372d3de23 | <ide><path>lib/net.js
<ide> Object.defineProperty(Socket.prototype, 'bufferSize', {
<ide>
<ide>
<ide> Socket.prototype.pause = function() {
<add> if (this._paused) return;
<add> this._paused = true;
<add> if (this._connecting) {
<add> // will actually pause once the handle is established.
<add> return;
<add>... | 2 |
Javascript | Javascript | transform app url to editor | fd955635e57368de46998487ec54bae47bf26d97 | <ide><path>client/src/templates/Challenges/redux/create-question-epic.js
<ide> import {
<ide> projectFormValuesSelector
<ide> } from '../redux';
<ide> import { tap, mapTo } from 'rxjs/operators';
<add>import { transformEditorLink } from '../utils';
<ide> import envData from '../../../../../config/env.json';
<ide>
<i... | 3 |
PHP | PHP | use null session handler | 3b6da655655c08bbb513f511461bcb1b40eb8d57 | <ide><path>src/Illuminate/Session/SessionManager.php
<ide> use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
<ide> use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
<ide> use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
<add>use Symfony... | 1 |
PHP | PHP | remove stray ( | 26889bb61f152a8d7c438f8504cd97179c9eb1d3 | <ide><path>src/Validation/Validation.php
<ide> public static function url($check, $strict = false)
<ide> static::_populateIp();
<ide>
<ide> $emoji = '\x{1F190}-\x{1F9EF}';
<del> $alpha = '0-9(\p{L}\p{N}' . $emoji;
<add> $alpha = '0-9\p{L}\p{N}' . $emoji;
<ide> $hex = '(%[0-9a-f]{2... | 1 |
PHP | PHP | add @return to settrustedproxies method | 4061792e9d0a7916955e94dd5625342f3b144f9e | <ide><path>src/Http/ServerRequest.php
<ide> public function clientIp()
<ide> * register trusted proxies
<ide> *
<ide> * @param array $proxies ips list of trusted proxies
<add> * @return void
<ide> */
<ide> public function setTrustedProxies(array $proxies)
<ide> { | 1 |
Ruby | Ruby | correct doc for (audio|video)_tag [ci skip] | 6d8beaad1f5f69a5af3b2044b492b9dd636cc094 | <ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb
<ide> def image_alt(src)
<ide> # ==== Examples
<ide> #
<ide> # video_tag("trailer")
<del> # # => <video src="/videos/trailer" />
<add> # # => <video src="/videos/trailer"></video>
<ide> # video_tag("trailer.ogg")... | 1 |
Ruby | Ruby | add support for optional and recommended deps | 6193167f5878bbc09b3417dc2b836be3b10d5b1e | <ide><path>Library/Homebrew/build_options.rb
<ide> def include? name
<ide> @args.include? '--' + name
<ide> end
<ide>
<add> def with? name
<add> if has_option? "with-#{name}"
<add> include? "with-#{name}"
<add> elsif has_option? "without-#{name}"
<add> not include? "without-#{name}"
<add> els... | 3 |
Ruby | Ruby | remove config dir from the load path | 57f0b9738e71016d8a9898d83fe39b2310bf6c91 | <ide><path>railties/lib/initializer.rb
<ide> def after_initialize
<ide> def load_application_initializers
<ide> if gems_dependencies_loaded
<ide> Dir["#{configuration.root_path}/config/initializers/**/*.rb"].sort.each do |initializer|
<del> load initializer.sub(/^#{Regexp.escape(configuration... | 1 |
Text | Text | add npm link to readme | d548d28f516ffee5da30f645245069218a5833d0 | <ide><path>README.md
<ide>
<ide> Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js
<ide> uses an event-driven, non-blocking I/O model that makes it lightweight and
<del>efficient. The Node.js package ecosystem, npm, is the largest ecosystem of open
<del>source libraries in the world.
<add... | 1 |
PHP | PHP | apply fixes from styleci | ac3d11e2a0d7d794adcdde648a27594a4153f6e9 | <ide><path>src/Illuminate/Database/Connectors/Connector.php
<ide> class Connector
<ide> public function createConnection($dsn, array $config, array $options)
<ide> {
<ide> list($username, $password) = [
<del> Arr::get($config, 'username'), Arr::get($config, 'password')
<add> Arr::g... | 1 |
PHP | PHP | add guard to authentication events | 69cddedae349956c5f38455e861e3fc490d89a07 | <ide><path>src/Illuminate/Auth/Events/Attempting.php
<ide> class Attempting
<ide> */
<ide> public $remember;
<ide>
<add> /**
<add> * The guard this attempt is made to.
<add> *
<add> * @var string
<add> */
<add> public $guard;
<add>
<ide> /**
<ide> * Create a new event instance.
... | 6 |
Javascript | Javascript | add documentation only file to list of files | 62f79e820fcfb025acee688adae95481b35f6e54 | <ide><path>angularFiles.js
<ide> var angularFiles = {
<ide> 'src/ng/q.js',
<ide> 'src/ng/raf.js',
<ide> 'src/ng/rootScope.js',
<add> 'src/ng/rootElement.js',
<ide> 'src/ng/sanitizeUri.js',
<ide> 'src/ng/sce.js',
<ide> 'src/ng/sniffer.js', | 1 |
Javascript | Javascript | remove unused eslint-disable | a63fccc2590ff2ed1ce35107fb432e40c7a5e82a | <ide><path>Libraries/Components/Keyboard/KeyboardAvoidingView.js
<ide> class KeyboardAvoidingView extends React.Component<Props, State> {
<ide> // eslint-disable-next-line no-unused-vars
<ide> keyboardVerticalOffset = 0,
<ide> style,
<del> // eslint-disable-next-line no-unused-vars
<ide> on... | 1 |
Javascript | Javascript | fix catalan ordinals | 022cbb4407d9f25e21b201fae0f3a6b9a6a8380c | <ide><path>locale/ca.js
<ide> y : 'un any',
<ide> yy : '%d anys'
<ide> },
<del> ordinalParse : /\d{1,2}º/,
<del> ordinal : '%dº',
<add> ordinalParse: /\d{1,2}(r|n|t|è)/,
<add> ordinal : function (number) {
<add> var output = (number === 1) ? 'r' :
<... | 2 |
PHP | PHP | add backwards compatibility shim for response | c0a50db738290a3f529536a204de8e87b4d82dec | <ide><path>src/Network/Response.php
<add><?php
<add>// @deprecated Backwards compatibility with earler 3.x versions.
<add>class_alias('Cake\Http\Response', 'Cake\Network\Response'); | 1 |
Python | Python | add an autoencoder model and a test to go with it | 12f7f374c38760a265c468f8cb65f8c030a0cddb | <ide><path>keras/models.py
<ide> from . import objectives
<ide> from . import regularizers
<ide> from . import constraints
<add>from .layers.core import Merge
<add>
<ide> import time, copy
<ide> from .utils.generic_utils import Progbar, printv
<ide> from six.moves import range
<ide> def load_weights(self, filepath):
<i... | 2 |
Java | Java | update copyright date | 915f1027a571f850c177a0a7da9263ead95599df | <ide><path>spring-core/src/main/java/org/springframework/util/ObjectUtils.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this ... | 1 |
Python | Python | fix indexerror in fromrecords | 3caf1223b9b8e4747fb7b41b2fbd2122ee175d03 | <ide><path>numpy/core/records.py
<ide> def fromarrays(arrayList, dtype=None, shape=None, formats=None,
<ide>
<ide> return _array
<ide>
<del># shape must be 1-d if you use list of lists...
<ide> def fromrecords(recList, dtype=None, shape=None, formats=None, names=None,
<ide> titles=None, aligned=Fa... | 2 |
Ruby | Ruby | require rack/utils in exception_wrapper | 85842c553d29cf0cd4353cd71f03bd64b013138a | <ide><path>actionpack/lib/action_dispatch/middleware/exception_wrapper.rb
<ide> require 'action_controller/metal/exceptions'
<ide> require 'active_support/core_ext/module/attribute_accessors'
<add>require 'rack/utils'
<ide>
<ide> module ActionDispatch
<ide> class ExceptionWrapper | 1 |
Javascript | Javascript | fix performance regression | ae244a26c1364857752db2aa79ef1a4a80912459 | <ide><path>lib/string_decoder.js
<ide> StringDecoder.prototype.write = function(buffer) {
<ide> var charReceived = this.charReceived;
<ide> var surrogateSize = this.surrogateSize;
<ide> var encoding = this.encoding;
<add> var charCode;
<ide> // if our last write ended with an incomplete multibyte character
<id... | 1 |
Javascript | Javascript | use const where applicable in loaderoptionsplugin | afc128c663e8b4dc448cac0d6bd584053646dce7 | <ide><path>lib/LoaderOptionsPlugin.js
<ide> class LoaderOptionsPlugin {
<ide> }
<ide>
<ide> apply(compiler) {
<del> let options = this.options;
<add> const options = this.options;
<ide> compiler.plugin("compilation", (compilation) => {
<ide> compilation.plugin("normal-module-loader", (context, module) => {
<d... | 1 |
Javascript | Javascript | improve inspect performance | ad1d1057f9362558fcc76b603458374f5f5a31c5 | <ide><path>lib/internal/util.js
<ide> function getSystemErrorName(err) {
<ide> return entry ? entry[0] : `Unknown system error ${err}`;
<ide> }
<ide>
<del>// getConstructorOf is wrapped into this to save iterations
<del>function getIdentificationOf(obj) {
<del> const original = obj;
<del> let constructor;
<del> l... | 2 |
Javascript | Javascript | improve coverage in test-crypto.dh | fcf3cbed281118598751c7c71c5323963f61c5dc | <ide><path>test/pummel/test-crypto-dh.js
<ide> if (!common.hasCrypto) {
<ide> return;
<ide> }
<ide>
<del>assert.throws(function() {
<del> crypto.getDiffieHellman('unknown-group');
<del>});
<del>assert.throws(function() {
<del> crypto.getDiffieHellman('modp1').setPrivateKey('');
<del>});
<del>assert.throws(function... | 1 |
Javascript | Javascript | add abstract crossorigin method on tech | 245efacb59d1cf95cd429a4324cbcb6377630a98 | <ide><path>src/js/tech/tech.js
<ide> class Tech extends Component {
<ide> */
<ide> reset() {}
<ide>
<add> /**
<add> * Get the value of `crossOrigin` from the tech.
<add> *
<add> * @abstract
<add> *
<add> * @see {Html5#crossOrigin}
<add> */
<add> crossOrigin() {}
<add>
<add> /**
<add> * Set the va... | 1 |
Text | Text | remove the activerecordhelper section | 21ef4e17ec03e408f366a3b3dbbb925835e0ab7f | <ide><path>guides/source/action_view_overview.md
<ide> Overview of all the helpers provided by Action View
<ide>
<ide> The following is only a brief overview summary of the helpers available in Action View. It's recommended that you review the [API Documentation](http://api.rubyonrails.org/classes/ActionView/Helpers.h... | 1 |
Javascript | Javascript | use an apostrophe to indicate ownership | 91e4ad0b5b4dc2e78898d36aef5381c951d74a10 | <ide><path>packages/ember-views/lib/views/component.js
<ide> var get = Ember.get, set = Ember.set, isNone = Ember.isNone,
<ide> ```handlebars
<ide> {{#app-profile person=currentUser}}
<ide> <p>Admin mode</p>
<del> {{! Executed in the controllers context. }}
<add> {{! Executed in the controller's context. ... | 1 |
Python | Python | add python3.4 to paver file | b3f497571ebb7eb54065c5e801672f667bc185cd | <ide><path>pavement.py
<ide> "2.7": ["/Library/Frameworks/Python.framework/Versions/2.7/bin/python"],
<ide> "3.2": ["/Library/Frameworks/Python.framework/Versions/3.2/bin/python3"],
<ide> "3.3": ["/Library/Frameworks/Python.framework/Versions/3.3/bin/python3"],
<add> "3.4": ["/Library/Fra... | 1 |
PHP | PHP | fix blade sequential compilestring calls | 1c8e24deee344668baf0bb40c78e286b361d6862 | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> class BladeCompiler extends Compiler implements CompilerInterface {
<ide> */
<ide> public function compile($path = null)
<ide> {
<del> $this->footer = array();
<del>
<ide> if ($path)
<ide> {
<ide> $this->setPath($path);
<ide> public function s... | 2 |
Ruby | Ruby | improve spec helper | a6be0e62affe150a11d5361636505930744318b0 | <ide><path>Library/Homebrew/test/spec_helper.rb
<ide> def find_files
<ide> @__argv = ARGV.dup
<ide> @__env = ENV.to_hash # dup doesn't work on ENV
<ide>
<add> @__stdout = $stdout.clone
<add> @__stderr = $stderr.clone
<add>
<ide> unless example.metadata.key?(:focus) || ENV.key?("VERBOSE_TEST... | 1 |
Ruby | Ruby | add reason to 'usageerror' exception | d9363a15590ddb8aad3e8e5444a972eaa79fd05e | <ide><path>Library/Homebrew/exceptions.rb
<del>class UsageError < RuntimeError; end
<del>class FormulaUnspecifiedError < UsageError; end
<del>class KegUnspecifiedError < UsageError; end
<add>class UsageError < RuntimeError
<add> attr_reader :reason
<add>
<add> def initialize(reason = nil)
<add> @reason = reason
<a... | 2 |
Javascript | Javascript | avoid turbofan deopt in arrays bench | eefdf452c35fd79d5588d2338989d55ebaf52763 | <ide><path>benchmark/arrays/var-int.js
<ide> function main(conf) {
<ide> bench.start();
<ide> var arr = new clazz(n * 1e6);
<ide> for (var i = 0; i < 10; ++i) {
<add> run();
<add> }
<add> bench.end(n);
<add>
<add> function run() {
<ide> for (var j = 0, k = arr.length; j < k; ++j) {
<ide> arr[j] = ... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.