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 |
|---|---|---|---|---|---|
Java | Java | remove ise in resourceurlprovider | 0bfa124a1ed241501e8a14fd9d92d360139d7c5c | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlProvider.java
<ide> public final String getForLookupPath(String lookupPath) {
<ide> ResourceResolverChain chain = new DefaultResourceResolverChain(handler.getResourceResolvers());
<ide> String resolved = chain.resolveUrlPat... | 1 |
Javascript | Javascript | normalize path for binding {{#with as}}. ref #980 | 79d6cbb214b98ac3faf39a373873dc40d6468806 | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> EmberHandlebars.registerHelper('boundIf', function(property, fn) {
<ide> */
<ide> EmberHandlebars.registerHelper('with', function(context, options) {
<ide> if (arguments.length === 4) {
<del> var keywordName, path;
<add> var keywordName, path, ro... | 1 |
Java | Java | restore correct order of terminated flag check | 68cc57549a56480b723b6112e1bee0de114eeda1 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandler.java
<ide> public void run() {
<ide> this.elementRef.lazySet(null);
<ide> return;
<ide> }
<del>
<add>
<add> // Check terminal signal before processing element..
<add> boolean isTerminated ... | 1 |
PHP | PHP | fix cs error | 57772544227f65683b46eae3139c9b9d0903dffe | <ide><path>tests/TestCase/Error/ExceptionRendererTest.php
<ide> use Cake\Controller\Error\PrivateActionException;
<ide> use Cake\Core\App;
<ide> use Cake\Core\Configure;
<del>use Cake\Core\Plugin;
<ide> use Cake\Core\Error\MissingPluginException;
<add>use Cake\Core\Plugin;
<ide> use Cake\Error;
<ide> use Cake\Error\Exc... | 1 |
Text | Text | fix changelog wording as suggested | e45226dd899ebb39d4ae0fae1dda4a2a507eaddd | <ide><path>activerecord/CHANGELOG.md
<del>* Prevent AbstractAdapter from converting exceptions from ActiveSupport::Notification
<del> callbacks into ActiveRecord::StatementInvalids.
<add>* Prevent errors raised by sql.active_record notification subscribers from being converted into
<add> ActiveRecord::Stateme... | 1 |
Javascript | Javascript | enable cyrillic punycode test case | dae53238dc1aa38cbdb2dcff6c73373be1d6d071 | <ide><path>test/parallel/test-punycode.js
<ide> var tests = {
<ide> '\uC744\uAE4C',
<ide>
<ide> // (I) Russian (Cyrillic)
<del> /* XXX disabled, fails - possibly a bug in the RFC
<del> 'b1abfaaepdrnnbgefbaDotcwatmq2g4l':
<add> 'b1abfaaepdrnnbgefbadotcwatmq2g4l':
<ide> '\u043F\u043E\u0447\u0435\u043C\u... | 1 |
Python | Python | remove extraneous 'import json' from linode driver | 8de7ab58d9e856f23571156d4fce0b0d9ba6241b | <ide><path>libcloud/drivers/linode.py
<ide> from libcloud.base import NodeAuthPassword, NodeAuthSSHKey
<ide> from libcloud.base import NodeImage
<ide> from copy import copy
<del>import json
<ide> import itertools
<ide> import os
<ide> | 1 |
Text | Text | fix typo in a href example | 561087fa0490afd024f8807c764fe5c4551f60a3 | <ide><path>README.md
<ide> import Link from 'next/link'
<ide> export default () => (
<ide> <nav>
<ide> <ul>
<del> <li><Link prefetch ref='/'><a>Home</a></Link></li>
<add> <li><Link prefetch href='/'><a>Home</a></Link></li>
<ide> <li><Link prefetch href='/about'><a>About</a></Link></li>
<ide> ... | 1 |
Ruby | Ruby | remove rails_root from webrick_server docs | ee04aea3ec1461368a72db525b325846e29b0045 | <ide><path>railties/lib/rails/webrick_server.rb
<ide> def self.dispatch(options = {})
<ide> def initialize(server, options) #:nodoc:
<ide> @server_options = options
<ide> @file_handler = WEBrick::HTTPServlet::FileHandler.new(server, options[:server_root])
<del> # Change to the RAILS_ROOT, since Webrick::Da... | 1 |
PHP | PHP | allow enums as entity_type in morphs | 8a728465360f402f6d4b6c1004cd35f5f7d97ab7 | <ide><path>src/Illuminate/Contracts/Database/Eloquent/StringableAttribute.php
<add><?php
<add>
<add>namespace Illuminate\Contracts\Database\Eloquent;
<add>
<add>interface StringableAttribute
<add>{
<add> /**
<add> * Allows enums to be used as morthed entity type
<add> * @return string
<add> */
<add> p... | 3 |
Mixed | Text | provide the whole response | b5c6f33f0d301d8766acb5e516defe4e4eae3119 | <ide><path>actionpack/CHANGELOG.md
<ide> * `process_action.action_controller` notifications now include the following in their payloads:
<ide>
<ide> * `:request` - the `ActionDispatch::Request`
<del> * `:location` - the `Location` response header
<add> * `:response` - the `ActionDispatch::Response`
<ide>
... | 2 |
Ruby | Ruby | use regext#match? where matchdata is not needed | 4a9ef5e1202cdab1882989eb561b0dc854c9891b | <ide><path>actionpack/lib/action_dispatch/journey/formatter.rb
<ide> def missing_keys(route, parts)
<ide> missing_keys << key
<ide> end
<ide> when RegexCaseComparator
<del> unless RegexCaseComparator::DEFAULT_REGEX === parts[key]
<add> unless RegexCase... | 4 |
Javascript | Javascript | fix gltfloader ddsextension | c00575eb8fa92fd4041a4cf3b0afcc4785597859 | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> return this.getDependency( 'texture', mapDef.index ).then( function ( texture ) {
<ide>
<del> switch ( mapName ) {
<del>
<del> case 'aoMap':
<del> case 'emissiveMap':
<del> case 'metalnessMap':
<del> case... | 1 |
PHP | PHP | add getmorphtype method in morphto | 08bc627c6772b210263236c28be589af25e1f364 | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphTo.php
<ide> public function createModelByType($type)
<ide> return new $type;
<ide> }
<ide>
<add> /**
<add> * Get the foreign key "type" name.
<add> *
<add> * @return string
<add> */
<add> public function getMorphType()
<add> {
<add> return $this->morp... | 1 |
Text | Text | add info to the article | ea983e5c136af85c1ce2e6f88da807529c23b142 | <ide><path>client/src/pages/guide/english/c/for/index.md
<ide> title: For Loop
<ide> # For Loop
<ide>
<ide> The `for` loop executes a block of code until a specified condition is false. Use `while` loops when the number of iterations are variable, otherwise use `for` loops. A common use of `for` loops are array iterat... | 1 |
Javascript | Javascript | remove unused suppressions | 91c4b0357a1e83419095ed5ae9c9f50602f86ce6 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> const ScrollView = createReactClass({
<ide> * - `false`, deprecated, use 'never' instead
<ide> * - `true`, deprecated, use 'always' instead
<ide> */
<del> // $FlowFixMe
<ide> keyboardShouldPersistTaps: PropTypes.oneOf([
<ide> ... | 6 |
PHP | PHP | fix php cs | 5836395757e7e5f595be072876920e6ad8449b3a | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function paginate($perPage = null, $columns = ['*'], $pageName = 'page',
<ide> */
<ide> public function simplePaginate($perPage = null, $columns = ['*'], $pageName = 'page')
<ide> {
<del>
<del>
<ide> $page = Paginator::resolveCurr... | 1 |
Ruby | Ruby | avoid direct use of arel constants | b9eec677c4ca28203124a9b5b160a57ca13b95f1 | <ide><path>activerecord/lib/active_record/relation/spawn_methods.rb
<ide> def merge(r)
<ide> merged_wheres = @where_values
<ide>
<ide> r.where_values.each do |w|
<del> if w.is_a?(Arel::Predicates::Equality)
<del> merged_wheres = merged_wheres.reject {|p| p.is_a?(Arel::Predicates::Equality) ... | 1 |
Javascript | Javascript | reduce duplication in pointelement | b31352c665ee41aeae538219dabb39ed18aa8ecc | <ide><path>src/elements/element.point.js
<ide> import Element from '../core/core.element';
<ide> import {drawPoint} from '../helpers/helpers.canvas';
<ide>
<add>function inRange(el, pos, axis, useFinalPosition) {
<add> const options = el.options;
<add> const {[axis]: value} = el.getProps([axis], useFinalPosition);
<... | 1 |
Python | Python | make max_length and static_batch configurable | ab1c1dfc79ea97918250bcf8cbfbe94fde6bea7f | <ide><path>official/transformer/v2/data_pipeline.py
<ide> def batching_fn(bucket_id, grouped_dataset):
<ide>
<ide> def _read_and_batch_from_files(
<ide> file_pattern, batch_size, max_length, num_parallel_calls, shuffle, repeat,
<del> static_batch=False):
<add> static_batch=False, num_replicas=1):
<ide> """... | 3 |
Text | Text | add seishun as a collaborator | 804ab7ebaaf5d87499e3cbce03184f064264dd2a | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Evan Lucas** ([@evanlucas](https://github.com/evanlucas)) <evanlucas@me.com>
<ide> * **Brendan Ashworth** ([@brendanashworth](https://github.com/brendanashworth)) <brendan.ashworth@me.com>
<ide> * **Vladimir Kurc... | 1 |
Python | Python | add sagemakertrainer for model paralellism | 31245775e5772fbded1ac07ed89fbba3b5af0cb9 | <ide><path>src/transformers/sagemaker/__init__.py
<add># flake8: noqa
<add># There's no way to ignore "F401 '...' imported but unused" warnings in this
<add># module, but to preserve other warnings. So, don't check this module at all.
<add>
<add># Copyright 2021 The HuggingFace Team. All rights reserved.
<add>#
<add># ... | 5 |
Ruby | Ruby | add assertion for get? method into test cases | 01d4e060e27c47cb28eea2d0e2a386ac335bbf93 | <ide><path>actionpack/test/dispatch/request_test.rb
<ide> class RequestMethod < BaseRequestTest
<ide>
<ide> assert_equal 'GET', request.request_method
<ide> assert_equal 'GET', request.env["REQUEST_METHOD"]
<add> assert request.get?
<ide> end
<ide>
<ide> test "invalid http method raises exception" do | 1 |
Javascript | Javascript | fix regression with clearimmediate() | 42158a03132568ce28cf94e73ba6b8039b208d5d | <ide><path>lib/timers.js
<ide> function processImmediate() {
<ide> domain.enter();
<ide>
<ide> immediate._callback = immediate._onImmediate;
<add>
<add> // Save next in case `clearImmediate(immediate)` is called from callback
<add> var next = immediate._idleNext;
<add>
<ide> tryOnImmediate(immediat... | 2 |
Java | Java | update resource handler java config | 0b02551e2f8f8ae7107b2303c10432542a201fbe | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ResourceChainRegistration.java
<add>/*
<add> * Copyright 2002-2014 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in complian... | 4 |
PHP | PHP | use line here | 8de2d9d6f71bec53c6bf67e944f7382b3bade1ce | <ide><path>src/Illuminate/Foundation/Console/FreshCommand.php
<ide> public function fire()
<ide> {
<ide> $this->files->delete($file);
<ide>
<del> $this->info('<info>Removed File:</info> '.$file);
<add> $this->line('<info>Removed File:</info> '.$file);
<ide> }
<ide>
<ide> foreach ($this->getDirectories() ... | 1 |
Text | Text | edit gs guide § say "hello", rails [ci-skip] | 3e182a2d4d37f8b521af39246b1057a64fe9b4ff | <ide><path>guides/source/getting_started.md
<ide> enough to serve a page.
<ide>
<ide> ### Say "Hello", Rails
<ide>
<del>To get Rails saying "Hello", you need to create at minimum a _route_, a _controller_ and a _view_.
<add>To get Rails saying "Hello", you need to create at minimum a *route*, a
<add>*controller* with... | 1 |
Text | Text | improve doc for http.serverresponse inheritance | e61b62b9d4a7a648496cc5d1539e1111bd2737e9 | <ide><path>doc/api/http.md
<ide> affects new connections to the server, not any existing connections.
<ide> added: v0.1.17
<ide> -->
<ide>
<del>* Extends: {Stream}
<add>* Extends: {http.OutgoingMessage}
<ide>
<ide> This object is created internally by an HTTP server, not by the user. It is
<ide> passed as the second ... | 1 |
Ruby | Ruby | reduce code duplication in tests | 13e0188187056c5f0523fdd13a5c26a085f8c61d | <ide><path>Library/Homebrew/test/dev-cmd/bottle_spec.rb
<ide> def stub_hash(parameters)
<ide> end
<ide>
<ide> describe "brew bottle --merge", :integration_test, :needs_linux do
<add> let(:core_tap) { CoreTap.new }
<ide> let(:tarball) do
<ide> if OS.linux?
<ide> TEST_FIXTURE_DIR/"tarballs/testball-0.1-linu... | 1 |
Ruby | Ruby | throw error exception when formula not found | 8db11ea2d9d948c2434d4a3fa75887e8e274af91 | <ide><path>Library/Homebrew/dev-cmd/bump.rb
<ide> def bump
<ide> requested_formula&.downcase!
<ide>
<ide> if requested_formula && !get_formula_details(requested_formula)
<del> ohai "Requested formula #{requested_formula} is not valid Homebrew formula."
<add> raise FormulaUnavailableError, requested_f... | 1 |
Javascript | Javascript | add synchronous retries to rimraf | 26991d0831e356c9ab86fa6cd0823afeaa0ec950 | <ide><path>lib/internal/fs/rimraf.js
<ide> const {
<ide> } = require('fs');
<ide> const { join } = require('path');
<ide> const { setTimeout } = require('timers');
<add>const { sleep } = require('internal/util');
<ide> const notEmptyErrorCodes = new Set(['ENOTEMPTY', 'EEXIST', 'EPERM']);
<ide> const retryErrorCodes = n... | 1 |
Python | Python | fix typo in hermite_e.py | 2243feef3ca8fb8c511b71b26d6bf6114e44c069 | <ide><path>numpy/polynomial/hermite_e.py
<ide> from ._polybase import ABCPolyBase
<ide>
<ide> __all__ = ['hermezero', 'hermeone', 'hermex', 'hermedomain', 'hermeline',
<del> 'hermeadd', 'hermesub', 'hermemulx', 'hermemul', 'hermediv', 'hermpow',
<add> 'hermeadd', 'hermesub', 'hermemulx', 'hermemul', 'hermediv', ... | 1 |
Javascript | Javascript | add perf optimizations to injector | b70739a0f18f3b4d197cf20a75e8a1f5f42bbd17 | <ide><path>src/Injector.js
<ide> import { Component, PropTypes } from 'react';
<ide> import mapValues from 'lodash/object/mapValues';
<add>import shallowEqual from './utils/shallowEqual';
<ide>
<ide> export default class Injector extends Component {
<ide> static contextTypes = {
<ide> export default class Injector e... | 2 |
Ruby | Ruby | fix symlink creation | 5fc4cabdeb37d47b59bddfa41f28dc3ff92d17ad | <ide><path>Library/Homebrew/dev-cmd/tap-new.rb
<ide> def tap_new
<ide> - git -C "$HOMEBREW_REPOSITORY" reset --hard origin/master
<ide> - brew update || brew update
<ide> - HOMEBREW_TAP_DIR="$(brew --repo "$TRAVIS_REPO_SLUG")"
<add> - mkdir -p "$HOMEBREW_TAP_DIR"
<ide> - rm -rf "$... | 1 |
Javascript | Javascript | fix react tests | 70a0746e9f9877c69edc6a2ef7716c928b71841b | <ide><path>src/core/__tests__/ReactRenderDocument-test.js
<ide> describe('rendering React components at document', function() {
<ide> });
<ide>
<ide> React.renderComponentToString(<Root />, function(markup) {
<del> testDocument.innerHTML = markup;
<add> testDocument = getTestDocument(markup);
<ide> ... | 2 |
PHP | PHP | remove detector for flash | 20ca5a033c2d3992696d42b649945ab5da18ce97 | <ide><path>src/Http/ServerRequest.php
<ide> class ServerRequest implements ServerRequestInterface
<ide> 'options' => ['env' => 'REQUEST_METHOD', 'value' => 'OPTIONS'],
<ide> 'ssl' => ['env' => 'HTTPS', 'options' => [1, 'on']],
<ide> 'ajax' => ['env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHtt... | 2 |
Go | Go | move "images" to graph/list.go | 51dd68d65949b4b542d65e4de2f1b18550c9cff1 | <ide><path>graph/list.go
<add>package graph
<add>
<add>import (
<add> "fmt"
<add> "log"
<add> "path"
<add> "strings"
<add>
<add> "github.com/docker/docker/engine"
<add> "github.com/docker/docker/image"
<add> "github.com/docker/docker/pkg/parsers/filters"
<add>)
<add>
<add>func (s *TagStore) CmdImages(job *engine.Job) e... | 4 |
PHP | PHP | add backwards compatibility shim for attributes | 9072f113e901322869bc9c3c0e3a0da28cc1f248 | <ide><path>src/Http/Uri.php
<ide> */
<ide> namespace Cake\Http;
<ide>
<add>use Error;
<ide> use Psr\Http\Message\UriInterface;
<ide>
<ide> /**
<ide> public function __construct(UriInterface $uri, string $base, string $webroot)
<ide> $this->webroot = $webroot;
<ide> }
<ide>
<add> /**
<add> * Backw... | 2 |
Javascript | Javascript | fix issue with inputs getting re-rendered | 4e585da9dc2882e6babd11499acad6e450805eb9 | <ide><path>packages/ember-htmlbars/lib/keywords/input.js
<ide> import Ember from "ember-metal/core";
<add>import { assign } from "ember-metal/merge";
<ide>
<ide> export default {
<ide> setupState(lastState, env, scope, params, hash) {
<ide> export default {
<ide> Ember.assert("{{input type='checkbox'}} does not ... | 3 |
Text | Text | fix typos in multiple-entry-points example readme | bfcd2694340fc3dae5acf77ebd962e4c97fdf453 | <ide><path>examples/multiple-entry-points/README.md
<del>This example show how to use multiple entry points with a commons chunk.
<add>This example shows how to use multiple entry points with a commons chunk.
<ide>
<del>In this example you have two (HTML) pages `pageA` and `pageB`. You want to create individual bundle... | 1 |
Python | Python | use original loaded keys to find mismatched keys | 2d91e3c30410e0e17e3247323e46c443586eb508 | <ide><path>src/transformers/modeling_utils.py
<ide> def _fix_key(key):
<ide> return key.replace("gamma", "weight")
<ide> return key
<ide>
<add> original_loaded_keys = loaded_keys
<ide> loaded_keys = [_fix_key(key) for key in loaded_keys]
<ide>
<ide> if len(prefix) > ... | 1 |
Javascript | Javascript | remove github oauth2 field - scope | e64a16ed6477215fd646f42870467e8853c24ed9 | <ide><path>server/passport-providers.js
<ide> export default {
<ide> failureRedirect: failureRedirect,
<ide> clientID: process.env.GITHUB_ID,
<ide> clientSecret: process.env.GITHUB_SECRET,
<del> scope: ['email'],
<ide> failureFlash: true
<ide> },
<ide> 'github-link': {
<ide> export default {
<ide... | 1 |
Text | Text | fix typo and add to description. | 06e46f188dcaef2b1968ed060f304c40fdc22557 | <ide><path>guide/english/javascript/template-literals/index.md
<ide> title: Template Literals
<ide> ---
<ide>
<del>Template Literals are an ES6 feature utilizing the backtick charater to define a string value
<add>Template Literals are an ES6 feature utilizing the backtick character to define a string value. They give... | 1 |
Text | Text | add wasm examples to toc | 7b1253c705124bba71b6ca1c0de9c14fc498a021 | <ide><path>examples/README.md
<ide> 19. [Scope Hoisting](#scope-hoisting)
<ide> 20. [Side Effects](#side-effects)
<ide> 21. [Source Map](#source-map)
<del>22. [Web Worker](#web-worker)
<del>23. [Requests](#requests)
<del>24. [Building an Example](#building-an-example)
<add>22. [WebAssembly](#webassembly)
<add>23. [Web ... | 1 |
Python | Python | request info logs optimized away too soon | 03046f1b7f81cece5a6f744218da533bfedcea4e | <ide><path>celery/apps/worker.py
<ide> def run(self):
<ide> self.init_queues()
<ide> self.app.loader.init_worker()
<ide>
<del> # apply task execution optimizations
<del> trace.setup_worker_optimizations(self.app)
<del>
<ide> # this signal can be used to e.g. change queues after
<i... | 3 |
Text | Text | fix typos in cameras article | 8b458550e9dd2befe74f5893a389b77a5b8abfc0 | <ide><path>threejs/lessons/threejs-cameras.md
<ide> This article is one in a series of articles about three.js.
<ide> The first article was [about fundamentals](threejs-fundamentals.html).
<ide> If you haven't read that yet you might want to start there.
<ide>
<del>Let's talk about Cameras in three.js. We covered some... | 1 |
Javascript | Javascript | use clearer wording | 8a8d973d3cc5623676a84f87af66ef9259c3937c | <ide><path>packages/react-dom/src/client/ReactDOMComponent.js
<ide> function setInitialDOMProperties(
<ide> // Noop
<ide> } else if (propKey === AUTOFOCUS) {
<ide> // We polyfill it separately on the client during commit.
<del> // We blacklist it here rather than in the property list because we emi... | 5 |
Java | Java | add lifecycle to sockjsclient and transport types | 2ebc92154571a496520b53a84442aac9388d8392 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/JettyXhrTransport.java
<ide> import org.eclipse.jetty.client.util.StringContentProvider;
<ide> import org.eclipse.jetty.http.HttpFields;
<ide> import org.eclipse.jetty.http.HttpMethod;
<add>import org.springframework.context.Lifecycl... | 5 |
Go | Go | collect warnings in sysinfo struct | 1fb62f455c95815667d9d46eecf0cb2dbe5e4999 | <ide><path>pkg/sysinfo/cgroup2_linux.go
<ide> import (
<ide> )
<ide>
<ide> func newV2(quiet bool, options ...Opt) *SysInfo {
<del> var warnings []string
<ide> sysInfo := &SysInfo{
<ide> CgroupUnified: true,
<ide> cg2GroupPath: "/",
<ide> func newV2(quiet bool, options ...Opt) *SysInfo {
<ide> }
<ide>
<ide> fo... | 3 |
Text | Text | remove the @github handle as it generates emails | 6fe3da9924fc22bd02eba0803abb42b10fc28baf | <ide><path>CONTRIBUTING.md
<ide> e. I hereby grant to the Project, Docker, Inc and its successors; and recipient
<ide>
<ide> then you just add a line saying
<ide>
<del> Docker-DCO-1.0-Signed-off-by: Joe Smith <joe.smith@email.com> @github_handle
<add> Docker-DCO-1.0-Signed-off-by: Joe Smith <joe.smith@email.co... | 1 |
Java | Java | improve check for actual return value type | 03eb6f76db2208e4283027fba338fe8da9dd755a | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java
<ide> protected Mono<Void> writeBody(@Nullable Object body, MethodParameter bodyParame
<ide> }
<ide> else {
<ide> publisher = Mono.justOrEmpty(body);
<del> elementType = (bo... | 1 |
PHP | PHP | fix default null not being reflected by sqlserver | 729ef8fe58b98a0b0ab96ae25b7aa55b061f2516 | <ide><path>lib/Cake/Model/Datasource/Database/Sqlserver.php
<ide> public function describe($model) {
<ide> $fields[$field] = array(
<ide> 'type' => $this->column($column),
<ide> 'null' => ($column->Null === 'YES' ? true : false),
<del> 'default' => preg_replace("/^[(]{1,2}'?([^')]*)?'?[)]{1,2}$/", "$1", $... | 2 |
Python | Python | point users of np.outer to np.multiply.outer | e66453568b685dee47d6e6e634b3a47edffcaeed | <ide><path>numpy/core/_add_newdocs.py
<ide> """))
<ide>
<ide> add_newdoc('numpy.core', 'ufunc', ('outer',
<del> """
<add> r"""
<ide> outer(A, B, **kwargs)
<ide>
<ide> Apply the ufunc `op` to all pairs (a, b) with a in `A` and b in `B`.
<ide>
<ide> See Also
<ide> --------
<del> numpy.oute... | 2 |
Ruby | Ruby | ignore psqlrc files when executing psql commands | 69e0e0acf9a286a41f1adaae8e3e04b3a34101a1 | <ide><path>activejob/test/support/integration/adapters/que.rb
<ide> def start_workers
<ide> user = uri.user || ENV["USER"]
<ide> pass = uri.password
<ide> db = uri.path[1..-1]
<del> %x{#{"PGPASSWORD=\"#{pass}\"" if pass} psql -c 'drop database if exists "#{db}"' -U #{user} -t template1}
<del> %x{#{"... | 4 |
PHP | PHP | check parameter count | d1275cb6c95cec22e7d9009bba26eb8eb845a75f | <ide><path>src/Illuminate/Routing/Route.php
<ide> public function bindParameters(Request $request)
<ide> */
<ide> protected function combineMatchesWithKeys(array $matches)
<ide> {
<add> if (count($this->parameterNames()) == 0) return array();
<add>
<ide> return array_combine($this->parameterNames(), $this->padMa... | 1 |
Javascript | Javascript | add support for aborting via timeout promises | 9f4f5937112655a9881d3281da8e72035bc8b180 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * GET request, otherwise if a cache instance built with
<ide> * {@link ng.$cacheFactory $cacheFactory}, this cache will be used for
<ide> * caching.
<del> * - **timeout** – `{number}` – timeout in milliseconds.
<add> ... | 7 |
PHP | PHP | remove @access and unnecessary $name | a643295e4c48681d26d775d6f50a395e194eaf04 | <ide><path>lib/Cake/Console/Command/TestShell.php
<ide> public function available() {
<ide> * @param string $file
<ide> * @param string $category
<ide> * @param boolean $throwOnMissingFile
<del> * @access protected
<ide> * @return array array(type, case)
<ide> * @throws Exception
<ide> */
<ide> protected function... | 136 |
PHP | PHP | fix coding standards in core/ | 63c992a85b9d834e69be847852d9946b73827ea7 | <ide><path>lib/Cake/Core/App.php
<ide> public static function path($type, $plugin = null) {
<ide> if (!empty($plugin)) {
<ide> $path = array();
<ide> $pluginPath = self::pluginPath($plugin);
<del> $packageFormat= self::_packageFormat();
<add> $packageFormat = self::_packageFormat();
<ide> if (!empty($pac... | 4 |
Javascript | Javascript | replace touchable with usepressability hook | c4aa411ee374f2320343b900f1f8b24a47b633c9 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> const StyleSheet = require('../../StyleSheet/StyleSheet');
<ide> const Text = require('../../Text/Text');
<ide> const TextAncestor = require('../../Text/TextAncestor');
<ide> const TextInputState = require('./TextInputState');
<del>const TouchableWithoutFeedb... | 1 |
Python | Python | introduce relu exception for old theano versions | 36892dba8f5dd2847a565cf9b1f0ebfd74c29a5d | <ide><path>keras/backend/theano_backend.py
<ide> def switch(condition, then_expression, else_expression):
<ide> # NN OPERATIONS
<ide>
<ide> def relu(x, alpha=0., max_value=None):
<add> assert hasattr(T.nnet, 'relu'), ('It looks like like your version of '
<add> 'Theano is out of ... | 1 |
Javascript | Javascript | remove unneeded . escape | 4463d2b36003fd58a8e4c9a231f073e92e7d477e | <ide><path>benchmark/_http-benchmarkers.js
<ide> AutocannonBenchmarker.prototype.processResults = function(output) {
<ide>
<ide> function WrkBenchmarker() {
<ide> this.name = 'wrk';
<del> this.regexp = /Requests\/sec:[ \t]+([0-9\.]+)/;
<add> this.regexp = /Requests\/sec:[ \t]+([0-9.]+)/;
<ide> const result = chi... | 4 |
Javascript | Javascript | upgrade libmanifestplugin to tapable v1 | 99bbbebfe2ceb762eda365d300d99d0050a50ffe | <ide><path>lib/LibManifestPlugin.js
<ide> class LibManifestPlugin {
<ide> }
<ide>
<ide> apply(compiler) {
<del> compiler.plugin("emit", (compilation, callback) => {
<add> compiler.hooks.emit.tapAsync("LibManifestPlugin", (compilation, callback) => {
<ide> asyncLib.forEach(compilation.chunks, (chunk, callback) =... | 1 |
Python | Python | change handling of the expired financial functions | adccacf32ea8c159b2397a6053f4b97543ec08a7 | <ide><path>numpy/__init__.py
<ide> del Arrayterator
<ide>
<ide> # These names were removed in NumPy 1.20. For at least one release,
<del> # attempts to access these names in the numpy namespace will have an
<del> # error message that refers to NEP 32 and points to the numpy_financial
<del> # library.... | 2 |
Python | Python | remove subclass for sortish sampler | 115d97dd2f752880715cd01aa915286e3d9a5442 | <ide><path>examples/seq2seq/finetune_trainer.py
<ide> from typing import Optional
<ide>
<ide> import transformers
<add>from seq2seq_trainer import Seq2SeqTrainer
<add>from seq2seq_training_args import Seq2SeqTrainingArguments
<ide> from transformers import (
<ide> AutoConfig,
<ide> AutoModelForSeq2SeqLM,
<ide>... | 2 |
Javascript | Javascript | convert `pdfpageviewbuffer` to a standard class | 0eba15b43ae7394a2807c17cac3fccaa47292d7d | <ide><path>web/base_viewer.js
<ide> const DEFAULT_CACHE_SIZE = 10;
<ide> * @property {IL10n} l10n - Localization service.
<ide> */
<ide>
<del>function PDFPageViewBuffer(size) {
<del> const data = [];
<del> this.push = function (view) {
<del> const i = data.indexOf(view);
<add>class PDFPageViewBuffer {
<add> #d... | 1 |
PHP | PHP | improve test of filter in collection | b15dc2ac7e4c7b382ec5cf09e2983ab94cccc83c | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testFilter($collection)
<ide> $this->assertEquals(['first' => 'Hello', 'second' => 'World'], $c->filter(function ($item, $key) {
<ide> return $key !== 'id';
<ide> })->all());
<add>
<add> $c = new $collection([1, ... | 1 |
Text | Text | add kickstarter link | 0a3c1bb5751fb774b9b595a88830c56ff9531bbc | <ide><path>README.md
<ide> Homebrew
<ide> ========
<ide> Features, usage and installation instructions are [summarized on the homepage][home].
<ide>
<add>Kickstarter
<add>-----------
<add>
<add>Please [back our Kickstarter](http://www.kickstarter.com/projects/homebrew/brew-test-bot) before March 6th:
<add>[![Homebre... | 1 |
Javascript | Javascript | correct a typo in the regex matching safari 8 | c17543fd3c14ff86c448dbb90f9fe1223661a73b | <ide><path>test/unit/support.js
<ide> testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
<ide> "radioValue": false,
<ide> "reliableMarginRight": true
<ide> };
<del> } else if ( /8.0(\.\d+|) safari/i.test( userAgent ) ) {
<add> } else if ( /8\.0(\.\d+|) safari/i.test( userAgent ) ) ... | 1 |
PHP | PHP | add three convenience methods to load plugins | eb0374f97eca2813ff1cf62f5dcc362db6cebd73 | <ide><path>src/Http/BaseApplication.php
<ide> * @since 3.3.0
<ide> * @license https://opensource.org/licenses/mit-license.php MIT License
<ide> */
<add>
<ide> namespace Cake\Http;
<ide>
<ide> use Cake\Console\CommandCollection;
<ide> use Cake\Controller\ControllerFactory;
<ide> use Cake\Core\ConsoleAp... | 1 |
Ruby | Ruby | allow all available locales for template lookups | 12c12899df560d65c03eb10f0ddd46d6ce418bc6 | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> class PathParser # :nodoc:
<ide> ParsedPath = Struct.new(:path, :details)
<ide>
<ide> def build_path_regex
<del> handlers = Template::Handlers.extensions.map { |x| Regexp.escape(x) }.join("|")
<del> formats = Template::Types.sym... | 2 |
Javascript | Javascript | render empty section headers | e07fe0cc6063d48a5c0fc2245f54b58dd4f48c49 | <ide><path>Libraries/CustomComponents/ListView/ListView.js
<ide> var ListView = React.createClass({
<ide> * @platform ios
<ide> */
<ide> stickyHeaderIndices: PropTypes.arrayOf(PropTypes.number),
<add> /**
<add> * Flag indicating whether empty section headers should be rendered. In the future releas... | 2 |
Javascript | Javascript | remove unused var | fef6282d5532ddb211e3d72bc9f49c7d0c17ae0b | <ide><path>test/unit/media.html5.js
<ide> module('HTML5');
<ide>
<del>var oldAndroidVersion;
<del>
<ide> test('should detect whether the volume can be changed', function(){
<ide> var testVid, ConstVolumeVideo;
<ide> if (!{}['__defineSetter__']) { | 1 |
Javascript | Javascript | add a second argument to assert.throws() | 943d0853076437896963975d039e7786e5f74192 | <ide><path>test/addons/make-callback-recurse/test.js
<ide> assert.throws(function() {
<ide> makeCallback({}, function() {
<ide> throw new Error('hi from domain error');
<ide> });
<del>});
<add>}, /^Error: hi from domain error$/);
<ide>
<ide>
<ide> // Check the execution order of the nextTickQueue and Microtas... | 1 |
Java | Java | update copyright year of changed file | 7adac25e7e87f66c1291c5543501c31171bb47ec | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/CorsRegistration.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")... | 1 |
Java | Java | add delaysubscription() methods to completable | f78bd953e6d09792d2ba2aa1c3fce0f7c9110810 | <ide><path>src/main/java/io/reactivex/Completable.java
<ide> public final Completable delay(final long delay, final TimeUnit unit, final Sche
<ide> return RxJavaPlugins.onAssembly(new CompletableDelay(this, delay, unit, scheduler, delayError));
<ide> }
<ide>
<add> /**
<add> * Returns a Completable t... | 3 |
Ruby | Ruby | add missing parantheses in index_exists? | be37b0c143da6dc682fd53eab744e0c1115063d1 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def table_exists?(table_name)
<ide> # index_exists?(:suppliers, :company_id, unique: true)
<ide> #
<ide> # # Check an index with a custom name exists
<del> # index_exists?(:suppliers, :company_... | 1 |
Javascript | Javascript | remove avatar from nav | 9f40714d0a2ed25ef3e654a20b6a301fd9b4dc45 | <ide><path>client/src/components/Header/components/SignedIn.js
<ide> import React from 'react';
<ide> import PropTypes from 'prop-types';
<ide> import { Link } from 'gatsby';
<del>import { connect } from 'react-redux';
<del>import { createSelector } from 'reselect';
<ide>
<del>import { userSelector } from '../../../re... | 1 |
Javascript | Javascript | resume stream on drain | 224b78ff06980407589b81bd8462bbd528d89110 | <ide><path>lib/internal/streams/readable.js
<ide> function pipeOnDrain(src, dest) {
<ide>
<ide> if ((!state.awaitDrainWriters || state.awaitDrainWriters.size === 0) &&
<ide> EE.listenerCount(src, 'data')) {
<del> state.flowing = true;
<del> flow(src);
<add> src.resume();
<ide> }
<ide> };... | 2 |
PHP | PHP | use getters instead of hardcoded values | 466e0e1cd026fa456b189d45975ae7c7adf3e53f | <ide><path>src/Illuminate/Foundation/Console/KeyGenerateCommand.php
<ide> public function fire()
<ide> return $this->line('<comment>'.$key.'</comment>');
<ide> }
<ide>
<del> $path = base_path('.env');
<add> $path = $app->environmentPath().'/'.$app->environmentFile();
<ide>
<ide> ... | 1 |
Java | Java | infer proxy on `@lazy`-annotated injection points | 455715899d5a93f7eaee7996e5b17ba8db20e476 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java
<ide> import java.lang.reflect.Member;
<ide> import java.lang.reflect.Method;
<ide> import java.lang.reflect.Modifier;
<add>import java.lang.reflect.Proxy;
<ide> import java.util.ArrayList;
<ide>... | 7 |
PHP | PHP | remove obsolete class import in file.php | 6a58e983164d0f4a7bf4bc82bdb890f35fcb8151 | <ide><path>laravel/file.php
<del><?php namespace Laravel; use Closure, FilesystemIterator as fIterator;
<add><?php namespace Laravel; use FilesystemIterator as fIterator;
<ide>
<ide> class File {
<ide> | 1 |
Javascript | Javascript | add jsdoc types to lib/path | f1a21e5c914f9bcbbb2a77b436eae2bc4f4c2a86 | <ide><path>lib/path.js
<ide> function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
<ide> return res;
<ide> }
<ide>
<add>/**
<add> * @param {string} sep
<add> * @param {{
<add> * dir?: string;
<add> * root?: string;
<add> * base?: string;
<add> * name?: string;
<add> * ext?: string;
<add> ... | 1 |
Javascript | Javascript | move unnecessary work for early return | 128567128352a46c8add41f86c0d04ff6dc81d8b | <ide><path>lib/module.js
<ide> function tryExtensions(p, exts) {
<ide>
<ide> var warned = false;
<ide> Module._findPath = function(request, paths) {
<del> var exts = Object.keys(Module._extensions);
<del>
<ide> if (path.isAbsolute(request)) {
<ide> paths = [''];
<ide> }
<ide>
<del> var trailingSlash = (requ... | 1 |
Ruby | Ruby | make use of helpers in associationreflection | 9db4c07e0bdf60982d08cb26035573995404eb98 | <ide><path>activerecord/lib/active_record/associations/through_association.rb
<ide> def construct_joins
<ide> conditions = []
<ide>
<ide> if @reflection.source_reflection.macro == :belongs_to
<del> reflection_primary_key = @reflection.source_reflection.options[:primary_key] ||
<del> ... | 1 |
Text | Text | update example icu url | d8ec5a2e92b431ccea3fb83362628a0696273842 | <ide><path>doc/guides/maintaining-icu.md
<ide> V8 will not compile.
<ide>
<ide> ```c
<ide> // deps/v8/src/objects/intl-objects.h
<del>#define V8_MINIMUM_ICU_VERSION 64
<add>#define V8_MINIMUM_ICU_VERSION 65
<ide> ```
<ide>
<ide> V8 in Node.js depends on the ICU version supplied by Node.js.
<ide> should be sufficient)... | 1 |
Javascript | Javascript | add some test cases for cjs tree-shaking | 26f30cebce31579699f9a75d94de9bd78853a6de | <ide><path>test/cases/cjs-tree-shaking/bailouts/accessing-call-context.js
<add>module.exports.func = function f() {
<add> "use strict";
<add> return this;
<add>};
<add>module.exports.abc = "abc";
<ide><path>test/cases/cjs-tree-shaking/bailouts/accessing-module.js
<add>exports.abc = "abc";
<add>
<add>function f(m) {
<ad... | 56 |
Javascript | Javascript | add regression test for scry order | feae9ad0a82b3e4f5755a8dc5607005c4cb0441b | <ide><path>src/test/__tests__/ReactTestUtils-test.js
<ide> describe('ReactTestUtils', function() {
<ide> expect(scryResults.length).toBe(0);
<ide>
<ide> });
<add>
<add> it('traverses children in the correct order', function() {
<add> var container = document.createElement('div');
<add>
<add> React.render(... | 1 |
PHP | PHP | improve performance in tests | 8979159988278a9cff674f92e9ab66cb6a9461d6 | <ide><path>src/TestSuite/Fixture/FixtureDataManager.php
<ide> class FixtureDataManager extends FixtureLoader
<ide> */
<ide> protected $inserted = [];
<ide>
<add> /**
<add> * A map of test classes and whether or not their fixtures have
<add> * been added to the nameMap.
<add> *
<add> * @var ... | 4 |
Javascript | Javascript | remove special test entries | bb6125bac7f7f5ea28c15b3edf0c98901bcc9ada | <ide><path>benchmark/assert/deepequal-buffer.js
<ide> const bench = common.createBenchmark(main, {
<ide> n: [2e4],
<ide> len: [1e2, 1e3],
<ide> strict: [0, 1],
<del> method: [ 'deepEqual', 'notDeepEqual' ],
<add> method: ['deepEqual', 'notDeepEqual'],
<ide> });
<ide>
<ide> function main({ len, n, method, stric... | 41 |
Python | Python | remove the unneeded migration | fc27eafff0203e4b5ee29cbae32b57c60eb52e94 | <ide><path>airflow/migrations/versions/c7ba8a8c824_add_env_var_to_connection.py
<del>"""add env_var to connection
<del>
<del>Revision ID: c7ba8a8c824
<del>Revises: 338e90f54d61
<del>Create Date: 2015-08-29 12:02:37.905111
<del>
<del>"""
<del>
<del># revision identifiers, used by Alembic.
<del>revision = 'c7ba8a8c824'
<... | 1 |
PHP | PHP | add reset method to migrator | 080f8192b5a9531b1c54e3efa455c526e5f264ee | <ide><path>src/Illuminate/Database/Console/Migrations/ResetCommand.php
<ide> public function fire()
<ide>
<ide> $pretend = $this->input->getOption('pretend');
<ide>
<del> while (true)
<del> {
<del> $count = $this->migrator->rollback($pretend);
<del>
<del> // Once the migrator has run we will grab the note out... | 4 |
Javascript | Javascript | update jsm module | 62fef74709d9e24790927aadbd4d5005a3e2479e | <ide><path>examples/jsm/renderers/SVGRenderer.js
<ide> var SVGRenderer = function () {
<ide>
<ide> }
<ide>
<del> function getSvgColor( color, opacity ) {
<add> function getSvgColor( color, opacity, asStroke ) {
<ide>
<ide> var arg = Math.floor( color.r * 255 ) + ',' + Math.floor( color.g * 255 ) + ',' + Math.floo... | 1 |
Java | Java | relax check on default data mimetype | be4facef1b663849e9be33fb62a3cb444ae0d918 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilder.java
<ide> private MimeType getDataMimeType(RSocketStrategies strategies) {
<ide> if (this.dataMimeType != null) {
<ide> return this.dataMimeType;
<ide> }
<del> // Look for non-basic Decoder (e.g. CBOR... | 4 |
Go | Go | add an unsafe memory discovery store for testing | 22a81a2c588a7505fd5f900e2093c44cd51ae142 | <ide><path>pkg/discovery/memory/memory.go
<add>package memory
<add>
<add>import (
<add> "time"
<add>
<add> "github.com/docker/docker/pkg/discovery"
<add>)
<add>
<add>// Discovery implements a descovery backend that keeps
<add>// data in memory.
<add>type Discovery struct {
<add> heartbeat time.Duration
<add> values ... | 2 |
Text | Text | update example readme | ca99a2d5009c32b4c718e83ed47adacf525261dc | <ide><path>examples/README.md
<ide> Quick benchmarks from the script (no other modifications):
<ide> | Titan V | AMP | 26s | 0.8281/0.8568/0.8411 |
<ide> | V100 | FP32 | 35s | 0.8646/0.8359/0.8464 |
<ide> | V100 | AMP | 22s | 0.8646/0.8385/0.8411 |
<del>| 1080 Ti | FP32 | 55s | - |
<add>| 1080 Ti | FP32 | 55s | ... | 1 |
Javascript | Javascript | remove forced optimization from path | eba2c62bb10fb65785050600212f70d38f1ffba3 | <ide><path>benchmark/path/basename-posix.js
<ide> 'use strict';
<ide> var common = require('../common.js');
<ide> var path = require('path');
<del>var v8 = require('v8');
<ide>
<ide> var bench = common.createBenchmark(main, {
<ide> pathext: [
<ide> function main(conf) {
<ide> input = input.slice(0, extIdx);
<ide... | 21 |
Python | Python | test morphological features | 19e6b39786964d5c4c401fe9bf8c03dacda11dd5 | <ide><path>spacy/tests/doc/test_morphanalysis.py
<ide> def test_token_morph_id(i_has):
<ide>
<ide> def test_morph_props(i_has):
<ide> assert i_has[0].morph.pron_type == i_has.vocab.strings["PronType_prs"]
<add> assert i_has[0].morph.pron_type_ == "PronType_prs"
<ide> assert i_has[1].morph.pron_type == 0
<id... | 1 |
Text | Text | add lead maintainer guidelines | dced0da7e9577329db39272897aee60b4328307e | <ide><path>docs/Maintainer-Guidelines.md
<ide> Maintainers have a variety of ways to communicate with each other:
<ide> All communication should ideally occur in public on GitHub. Where this is not possible or appropriate (e.g. a security disclosure, interpersonal issue between two maintainers, urgent breakage that nee... | 1 |
Text | Text | remove sam roberts from release team | 3b9749e7ce34325dd4de89d16213e9c1cf156260 | <ide><path>README.md
<ide> Releases of Node.js and io.js will be signed with one of the following GPG keys:
<ide> `C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8`
<ide> * **Rod Vagg** <rod@vagg.org>
<ide> `DD8F2338BAE7501E3DD5AC78C273792F7D83545D`
<del>* **Sam Roberts** <octetcloud@keybase.io>
<del>`0034A06D9D9B0... | 1 |
Java | Java | expose lazyviewmanagers option on reactnativehost | d4b59cd9d02a8c4eda3ac4bf89cfe8161847adf0 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java
<ide> public final List<NativeModule> createNativeModules(ReactApplicationContext reac
<ide> List<NativeModule> modules = new ArrayList<>();
<ide> for (ModuleSpec holder : getNativeModules(reactContext)) {
<ide> NativeModule na... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.