content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Ruby | Ruby | add check for stray pre-4.3 xcode files | 0329307770678a125bfe4e61d42fc30f9f3d1e04 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_latest_xcode
<ide> end
<ide> end
<ide>
<add>def check_for_stray_developer_directory
<add> if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library"
<add> return <<-EOS.undent
<add> You have leftover files from an older version of Xcode.... | 1 |
Javascript | Javascript | add missing comma | 1172e6478f86c1766ee1cb64f4b9b487853c9d13 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> icon: 'http://a3.mzstatic.com/us/r30/Purple69/v4/a2/61/58/a261584d-a4cd-cbfa-cf9d-b5f1f15a7139/icon175x175.jpeg',
<ide> link: 'https://itunes.apple.com/app/id1031729525?mt=8&at=11l7ss&ct=reactnativeshowcase',
<ide> author: 'Josh Buchea... | 1 |
Go | Go | fix some issues with locking on the container | 972cb4978795029131697bd3b3746e321eec5c13 | <ide><path>daemon/kill.go
<ide> func (daemon *Daemon) killWithSignal(container *containerpkg.Container, sig int)
<ide> container.Lock()
<ide> defer container.Unlock()
<ide>
<add> daemon.stopHealthchecks(container)
<add>
<ide> if !container.Running {
<ide> return errNotRunning(container.ID)
<ide> }
<ide><path>dae... | 3 |
Go | Go | fix backingfs assignment | 18c22f5bc1a30d325ed7a14d118c8fcf20f2f509 | <ide><path>daemon/graphdriver/overlay/overlay.go
<ide> func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap
<ide> return nil, graphdriver.ErrNotSupported
<ide> }
<ide>
<add> fsMagic, err := graphdriver.GetFSMagic(testdir)
<add> if err != nil {
<add> return nil, err
<add> }
<add> if fsNa... | 2 |
Go | Go | update drain test | b38408fd0287a5d6eda4f8083b83806faf5d5cbd | <ide><path>integration-cli/docker_api_swarm_test.go
<ide> func (s *DockerSwarmSuite) TestApiSwarmNodeDrainPause(c *check.C) {
<ide> n.Spec.Availability = swarm.NodeAvailabilityActive
<ide> })
<ide>
<del> // change environment variable, resulting balanced rescheduling
<del> d1.updateService(c, d1.getService(c, id), ... | 1 |
Text | Text | update korean translation to 9484d0f | ee38a36f50b2b3b5e877b7ffeea0f45ec213c58a | <ide><path>docs/docs/ref-04-tags-and-attributes.ko-KR.md
<ide> thead time title tr track u ul var video wbr
<ide> 다음의 SVG 엘리먼트가 지원됩니다.
<ide>
<ide> ```
<del>circle defs ellipse g line linearGradient mask path pattern polygon polyline
<add>circle clipPath defs ellipse g line linearGradient mask path pattern polygon poly... | 3 |
Javascript | Javascript | remove unneeded escaping of / | 7ef16eee2f0b69a2e5004f249cb4ebeb7000733e | <ide><path>lib/fs.js
<ide> fs.unwatchFile = function(filename, listener) {
<ide> // Regexp that finds the next portion of a (partial) path
<ide> // result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
<ide> const nextPartRe = isWindows ?
<del> /(.*?)(?:[\/\\]+|$)/g :
<del> /(.*?)(?:[\/]+|$)/g;
<add> /(.*?... | 4 |
PHP | PHP | do strict check on mac | 7836868e0125e29ed6255f27727c2933105991ec | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide> protected function getJsonPayload($payload)
<ide> */
<ide> protected function validMac(array $payload)
<ide> {
<del> return ($payload['mac'] == $this->hash($payload['iv'], $payload['value']));
<add> return ($payload['mac'] === $this->hash($payload['iv'], $p... | 1 |
Javascript | Javascript | move ismounted logic into the reactupdatequeue | ffd5b16d5f744be35db65ade2bb27bba52b2bd9b | <ide><path>src/isomorphic/classic/class/ReactClass.js
<ide> 'use strict';
<ide>
<ide> var ReactComponent = require('ReactComponent');
<del>var ReactCurrentOwner = require('ReactCurrentOwner');
<ide> var ReactElement = require('ReactElement');
<ide> var ReactErrorUtils = require('ReactErrorUtils');
<del>var ReactInstan... | 2 |
PHP | PHP | repaire help on view class document | bcbb63d1a7b36c7e95489ba2bed1baa021ec743c | <ide><path>src/View/View.php
<ide> * layout using `$this->set()`
<ide> *
<ide> * View class supports using plugins as themes. You can set
<del> * `$this->theme = 'SuperHot'` in your Controller to use plugin `SuperHot` as a
<add> *
<add> * `public function beforeRender(\Cake\Event\Event $event)
<add> * {
<add> * ... | 1 |
Python | Python | remove todos that will never fulfill | 4c50658530037b40d71c29cdedad2ac8474c9c11 | <ide><path>official/modeling/tf_utils.py
<ide> def is_special_none_tensor(tensor):
<ide> return tensor.shape.ndims == 0 and tensor.dtype == tf.int32
<ide>
<ide>
<del># TODO(hongkuny): consider moving custom string-map lookup to keras api.
<ide> def get_activation(identifier):
<ide> """Maps a identifier to a Pytho... | 4 |
Python | Python | fix typo in documentation | d1eefff16929c0ebf7fcf3f8e40313b51ffc2886 | <ide><path>keras/layers/preprocessing/index_lookup.py
<ide> def vocabulary_size(self):
<ide> """Gets the current size of the layer's vocabulary.
<ide>
<ide> Returns:
<del> The integer size of the voculary, including optional mask and oov indices.
<add> The integer size of the vocabulary, including op... | 1 |
Python | Python | improve embedding defaults | 76fe24f44d1238e3755c07cd377eddde2b74a913 | <ide><path>spacy/_ml.py
<ide> def link_vectors_to_models(vocab):
<ide>
<ide> def Tok2Vec(width, embed_size, **kwargs):
<ide> pretrained_dims = kwargs.get('pretrained_dims', 0)
<del> cnn_maxout_pieces = kwargs.get('cnn_maxout_pieces', 3)
<add> cnn_maxout_pieces = kwargs.get('cnn_maxout_pieces', 2)
<ide> c... | 1 |
PHP | PHP | add missing docblock | 8ec69f85f90433d15c1afbbd7329700fe601635e | <ide><path>src/Illuminate/Support/Facades/Bus.php
<ide> class Bus extends Facade
<ide> * Replace the bound instance with a fake.
<ide> *
<ide> * @param array|string $jobsToFake
<add> * @param \Illuminate\Bus\BatchRepository|null $batchRepository
<ide> * @return \Illuminate\Support\Testing\Fa... | 1 |
Javascript | Javascript | update require path after file move | f311963ff94b87c50d146150226d6d3cb07d26c3 | <ide><path>test/pummel/test-debugger-repl-break-in-module.js
<ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<del>var repl = require('./helper-debugger-repl.js');
<add>var repl = require('../simple/helper-debugger-repl.js');
<ide>... | 1 |
Python | Python | add newline at the end of printed warnings | 46cf7ff519af6c1ee6921acb304091a7b46ec3d5 | <ide><path>numpy/distutils/misc_util.py
<ide> def info(self, message):
<ide> print(message)
<ide>
<ide> def warn(self, message):
<del> sys.stderr.write('Warning: %s' % (message,))
<add> sys.stderr.write('Warning: %s\n' % (message,))
<ide>
<ide> def set_options(self, **options):
<ide>... | 1 |
Javascript | Javascript | use async writefile in filehandle#appendfile | 73a9c37307026e46a818a06cc3a375d4d02e65b7 | <ide><path>lib/internal/fs/promises.js
<ide> class FileHandle {
<ide> }
<ide>
<ide> appendFile(data, options) {
<del> return appendFile(this, data, options);
<add> return writeFile(this, data, options);
<ide> }
<ide>
<ide> chmod(mode) { | 1 |
Go | Go | finalize tarsum version 1 w/ refactor | a7aa2c8ad26149e9be753bc08964f35cb09d313c | <ide><path>pkg/tarsum/tarsum.go
<ide> import (
<ide> "encoding/hex"
<ide> "hash"
<ide> "io"
<del> "sort"
<del> "strconv"
<ide> "strings"
<ide>
<ide> "github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
<ide> const (
<ide> // including the byte payload of the image's json metadata as well... | 3 |
Java | Java | remove unnecessary calls to tostring() | 19955c5b77ce4cf494fbf751fbf009a862490c47 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/messaging/SessionDisconnectEvent.java
<ide> public CloseStatus getCloseStatus() {
<ide>
<ide> @Override
<ide> public String toString() {
<del> return "SessionDisconnectEvent[sessionId=" + this.sessionId + ", " + this.status.toString() + "]";
<... | 3 |
Text | Text | correct cs in readme | 0a1b1a123abf9eb99871586ce5857a7b00b522b7 | <ide><path>src/Collection/README.md
<ide> $collection = new Collection($items);
<ide>
<ide> // Create a new collection containing elements
<ide> // with a value greater than one.
<del>$overOne = $collection->filter(function($value, $key, $iterator) {
<add>$overOne = $collection->filter(function ($value, $key, $iterato... | 3 |
PHP | PHP | fix space between function + parenthesis | 18e282f3aa6faead59bb8fbcdd9f0f6967c29ec2 | <ide><path>lib/Cake/Model/Model.php
<ide> protected function _createLinks() {
<ide> $plugin = null;
<ide>
<ide> if (is_numeric($assoc)) {
<del> unset ($this->{$type}[$assoc]);
<add> unset($this->{$type}[$assoc]);
<ide> $assoc = $value;
<ide> $value = array();
<ide>
<ide> public functio... | 1 |
PHP | PHP | add test case | a266d8bedef02872810ffb84c36fb8269dc993f0 | <ide><path>lib/Cake/Test/Case/Cache/CacheTest.php
<ide> public function testConfig() {
<ide> $this->assertTrue(isset($results['settings']));
<ide> }
<ide>
<add>/**
<add> * testConfigInvalidEngine method
<add> *
<add> * @expectedException CacheException
<add> * @return void
<add> */
<add> public function testConfigI... | 1 |
PHP | PHP | add type in generatorcommand | 49f640d45aea98cd838fd90e962a91e7e5d49022 | <ide><path>src/Illuminate/Console/GeneratorCommand.php
<ide> abstract class GeneratorCommand extends Command {
<ide> */
<ide> protected $configKey = '';
<ide>
<add> /**
<add> * The type of class being generated.
<add> *
<add> * @var string
<add> */
<add> protected $type;
<add>
<ide> /**
<ide> * Create a new ... | 1 |
Python | Python | show import errors in dag views | c203e7793c570eeb2968fa06a56470853563d73b | <ide><path>airflow/www/utils.py
<ide> import markdown
<ide> import sqlalchemy as sqla
<ide> from flask import Markup, Response, request, url_for
<add>from flask.helpers import flash
<ide> from flask_appbuilder.forms import FieldConverter
<ide> from flask_appbuilder.models.sqla import filters as fab_sqlafilters
<ide> fr... | 2 |
Ruby | Ruby | hide sensitive tokens from install/test/post | d02b4f321d01fbd4cd2b4c1bd76d1f06d1612126 | <ide><path>Library/Homebrew/dev-cmd/mirror.rb
<ide> module Homebrew
<ide> def mirror
<ide> odie "This command requires at least formula argument!" if ARGV.named.empty?
<ide>
<del> bintray_user = ENV["BINTRAY_USER"]
<del> bintray_key = ENV["BINTRAY_KEY"]
<add> bintray_user = ENV["HOMEBREW_BINTRAY_USER"]
... | 9 |
Python | Python | remove outdated comment about apache-beam | 278aa5dc875a74e2a50dd067b8de48975a6e5df6 | <ide><path>research/object_detection/packages/tf2/setup.py
<ide> from setuptools import find_packages
<ide> from setuptools import setup
<ide>
<del># Note: adding apache-beam to required packages causes conflict with
<del># tf-models-offical requirements. These packages request for incompatible
<del># oauth2client pac... | 1 |
Text | Text | clarify the wording | 24ab45f2acb8434119998e77464237041571d758 | <ide><path>docs/basics/Actions.md
<ide> function addTodo(text) {
<ide>
<ide> This makes them portable and easy to test.
<ide>
<del>In Flux [traditional Flux](http://facebook.github.io/flux) action creators often trigger a dispatch when invoked, like so:
<add>In [traditional Flux](http://facebook.github.io/flux) actio... | 1 |
Text | Text | add some helper text for magical add | 8d94a85d62d6945be1217446738d856b3c2e2ddc | <ide><path>docs/reference/builder.md
<ide> guide](../articles/dockerfile_best-practices.md#build-cache) for more informatio
<ide> 2. The contents of the source tree, with conflicts resolved in favor
<ide> of "2." on a file-by-file basis.
<ide>
<add> > **Note**:
<add> > Whether a file is identified as a re... | 1 |
Python | Python | add missing `from_config` method | fb4b95804df0ae20edccd14df875650aa223cb55 | <ide><path>official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/paste_masks.py
<ide> def __init__(self, align_corners: bool = False, **kwargs):
<ide> align_corners: A `bool` bool, if True, the centers of the 4 corner
<ide> pixels of the input and output tensors are aligned, preserving the
<ide>... | 1 |
PHP | PHP | change visibility of obfuscate method | a45157c26e26cdd191be9640f1e3f8fc44b78273 | <ide><path>src/Illuminate/Html/HtmlBuilder.php
<ide> protected function attributeElement($key, $value)
<ide> * @param string $value
<ide> * @return string
<ide> */
<del> protected function obfuscate($value)
<add> public function obfuscate($value)
<ide> {
<ide> $safe = '';
<ide> | 1 |
Mixed | Go | remove execdriver package | 6eebe85290327ee9934ea996b6ef82c579789d97 | <ide><path>daemon/README.md
<del>This directory contains code pertaining to running containers and storing images
<del>
<del>Code pertaining to running containers:
<del>
<del> - execdriver
<del>
<del>Code pertaining to storing images:
<del>
<del> - graphdriver
<ide><path>daemon/execdriver/driver.go
<del>package execdri... | 32 |
Java | Java | add viewresolverregistry#scripttemplate in webflux | b2681e1f4af623a782dab82ed5eef881316bb366 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/config/ViewResolverRegistry.java
<ide> /*
<del> * Copyright 2002-2017 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");
<id... | 2 |
Javascript | Javascript | remove unnecessary annotations | 9f9213dcd01977a19938c3d1ee4c62faf7a42cf4 | <ide><path>lib/Entrypoint.js
<ide> /** @typedef {import("./Chunk.js")} Chunk */
<ide>
<ide> const ChunkGroup = require("./ChunkGroup");
<add>
<ide> /**
<del> *
<del> * @description Entrypoint serves as an encapsulation primitive for chunks that are
<add> * Entrypoint serves as an encapsulation primitive for chunks tha... | 1 |
Javascript | Javascript | fix lensflareplugin example on firefox | a37b30695a59e28adeaa4e56bbce3ff7156a07d0 | <ide><path>src/renderers/webgl/plugins/LensFlarePlugin.js
<ide> THREE.LensFlarePlugin = function ( renderer, flares ) {
<ide>
<ide> // save current RGB to temp texture
<ide>
<add> renderer.state.activeTexture( gl.TEXTURE0 );
<add> renderer.state.bindTexture( gl.TEXTURE_2D, null );
<ide> renderer.state.a... | 1 |
Ruby | Ruby | use optimistic rails version constraint in plugins | feb9f64847edd8e61bb1c9077ba7cc0ce75e156e | <ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb
<ide> def email
<ide> end
<ide> end
<ide>
<add> def rails_version_specifier(gem_version = Rails.gem_version)
<add> [">= #{gem_version}"]
<add> end
<add>
<ide> def valid_const?
<ide> if /-\d/.match?(or... | 2 |
Javascript | Javascript | check dir existence only on error | eb19904cec9ef72a70639dea3c9a362ee604e2eb | <ide><path>packager/src/node-haste/DependencyGraph/ResolutionRequest.js
<ide> class ResolutionRequest<TModule: Moduleish, TPackage: Packageish> {
<ide> currDir !== '.' && currDir !== realPath.parse(fromModule.path).root;
<ide> currDir = path.dirname(currDir)) {
<ide> const searchPath = path.join... | 1 |
Javascript | Javascript | add hasownproperty to devtools backend | c9d64e5f4c2b7cc70a618eec78900dbfd6d201e8 | <ide><path>packages/react-devtools-shared/src/backend/renderer.js
<ide> import {format} from './utils';
<ide> import {enableProfilerChangedHookIndices} from 'react-devtools-feature-flags';
<ide> import is from 'shared/objectIs';
<ide> import isArray from 'shared/isArray';
<add>import hasOwnProperty from 'shared/hasOwnP... | 1 |
Javascript | Javascript | add new hook to progress | f1739f9af971bfe01a23c4c96a8104ce3fa938bb | <ide><path>lib/ProgressPlugin.js
<ide> class ProgressPlugin {
<ide> "optimize-chunks": [0.77, "chunk optimization"],
<ide> "optimize-chunks-advanced": [0.78, "advanced chunk optimization"],
<ide> // optimize-tree
<del> "revive-modules": [0.80, "module reviving"],
<del> "optimize-module-order": [0... | 1 |
Ruby | Ruby | remove unused branches from options.coerce | 094c184b12b29c5978b3c669352991650fcba313 | <ide><path>Library/Homebrew/options.rb
<ide> def inspect
<ide>
<ide> def self.coerce(arg)
<ide> case arg
<del> when self then arg
<del> when Option then new << arg
<ide> when Array
<ide> opts = new
<ide> arg.each do |a|
<ide><path>Library/Homebrew/test/test_options.rb
<ide> def test_set_uni... | 2 |
Javascript | Javascript | remove todo comment | 9775a4f5e33331f7809c6a2c0a35e953ae5392ca | <ide><path>lib/WebpackOptionsApply.js
<ide> class WebpackOptionsApply extends OptionsApply {
<ide> break;
<ide> }
<ide> default:
<del> // TODO options.cache.type type is : "memory" | "filesystem"
<ide> throw new Error(`Unknown cache type ${options.cache.type}`);
<ide> }
<ide> } | 1 |
Go | Go | fix some issues with concurrency in aufs | 55c91f2ab9bcd48cfa248a4e842bb78257c14134 | <ide><path>daemon/graphdriver/aufs/aufs.go
<ide> func (a *Driver) Create(id, parent, mountLabel string) error {
<ide> }
<ide> }
<ide> }
<add> a.Lock()
<ide> a.active[id] = &data{}
<add> a.Unlock()
<ide> return nil
<ide> }
<ide>
<ide> func (a *Driver) Remove(id string) error {
<ide> if err := os.Remove(path.Jo... | 2 |
Python | Python | simplify theano tensor instantiation | 02d5f72be4ae1bc37a30336d3d83be24d0d2db35 | <ide><path>keras/backend/theano_backend.py
<ide> def placeholder(shape=None, ndim=None, dtype=_FLOATX, name=None):
<ide> raise Exception('Specify either a shape or ndim value.')
<ide> if shape is not None:
<ide> ndim = len(shape)
<del> if ndim == 0:
<del> return T.scalar(name=name, dtype=d... | 1 |
Ruby | Ruby | remove unnecessary require | db7416cda0700876ad3438774b804eb80a05a758 | <ide><path>activerecord/test/cases/arel/helper.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "active_support"
<del>require "rubygems"
<ide> require "minitest/autorun"
<ide> require "arel"
<ide> | 1 |
Python | Python | remove unused 'preprocess' argument in tok2vec' | 8f42f8d305787cb74bf7d85ef16c9cd40b948895 | <ide><path>spacy/_ml.py
<ide> def drop_layer_fwd(X, drop=0.):
<ide> return model
<ide>
<ide>
<del>def Tok2Vec(width, embed_size, preprocess=True, pretrained_dims=0):
<add>def Tok2Vec(width, embed_size, pretrained_dims=0):
<ide> cols = [ID, NORM, PREFIX, SUFFIX, SHAPE, ORTH]
<ide> with Model.define_operato... | 1 |
Python | Python | fix regression in ignoring symlinks | 8494fc7036c33683af06a0e57474b8a6157fda05 | <ide><path>airflow/utils/file.py
<ide> class _IgnoreRule(Protocol):
<ide>
<ide> @staticmethod
<ide> def compile(pattern: str, base_dir: Path, definition_file: Path) -> Optional['_IgnoreRule']:
<del> pass
<add> """
<add> Build an ignore rule from the supplied pattern where base_dir
<add> ... | 2 |
Python | Python | fix tf t5 | d97d06d05f3349f81716268df244d45b037518ef | <ide><path>src/transformers/models/t5/modeling_tf_t5.py
<ide> def call(
<ide> ), "past_key_value should have 2 past states: keys and values. Got {} past states".format(
<ide> len(past_key_value)
<ide> )
<del> real_seq_length += past_key_value[0].shape[2] if query_lengt... | 1 |
Text | Text | fix broken link to gwt code splitting article | 7e5eef9bf17f6aac027db13d95b98041f60b0622 | <ide><path>README.md
<ide> MIT (http://opensource.org/licenses/mit-license.php)
<ide>
<ide> (In chronological order)
<ide>
<del>* @google for [Google Web Toolkit (GWT)](https://code.google.com/p/google-web-toolkit/), which aims to compile Java to JavaScript. It features a similar [Code Splitting](https://code.google.... | 1 |
Javascript | Javascript | add id to inline gtag script | 7cdce8fdddeb308d51ff193e670d6cf59e184e90 | <ide><path>examples/with-google-analytics/pages/_app.js
<ide> const App = ({ Component, pageProps }) => {
<ide> src={`https://www.googletagmanager.com/gtag/js?id=${gtag.GA_TRACKING_ID}`}
<ide> />
<ide> <Script
<add> id="gtag-init"
<ide> strategy="afterInteractive"
<ide> danger... | 1 |
Javascript | Javascript | fix coding style | 99b7e5311a04583e67c0e9daab5a9595a5157cdc | <ide><path>src/math/Quaternion.js
<ide> THREE.Quaternion.prototype = {
<ide>
<ide> slerp: function ( qb, t ) {
<ide>
<del> if (t === 0) {
<add> if (t === 0) return this;
<ide>
<del> return this;
<del>
<del> }
<del>
<del> else if (t === 1) {
<del>
<del> return this.copy( qb );
<del>
<del> }
<add> if (t ===... | 2 |
Javascript | Javascript | add todo comment | deb798d8a7097181c1f08aceb81235b650631356 | <ide><path>lib/NormalModule.js
<ide> class NormalModule extends Module {
<ide> })
<ide> );
<ide> },
<add> // TODO remove in webpack 5
<ide> exec: (code, filename) => {
<ide> // @ts-ignore Argument of type 'this' is not assignable to parameter of type 'Module'.
<ide> const module = new NativeMod... | 1 |
Python | Python | add dilbert model for squad | 19b7c9b0b7d69a12c291200198155c7681125428 | <ide><path>pytorch_transformers/modeling_dilbert.py
<ide>
<ide>
<ide> DILBERT_PRETRAINED_MODEL_ARCHIVE_MAP = {
<del> 'dilbert-base-uncased': "https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-pytorch_model.bin"
<add> 'dilbert-base-uncased': "https://s3.amazonaws.com/models.huggingface.co/... | 1 |
Javascript | Javascript | provide minerr as public property | ef4458a798b6736050436bb63e5a5c90ce958790 | <ide><path>src/AngularPublic.js
<ide> function publishExternalAPI(angular){
<ide> 'isNumber': isNumber,
<ide> 'isElement': isElement,
<ide> 'isArray': isArray,
<add> '$$minErr': minErr,
<ide> 'version': version,
<ide> 'isDate': isDate,
<ide> 'lowercase': lowercase,
<ide><path>src/ngResource/r... | 3 |
Javascript | Javascript | increase coverage of internal/socket_list | 610ac7d8581012e627a4f4b67450b423ddbda415 | <ide><path>test/parallel/test-internal-socket-list-receive.js
<ide> const key = 'test-key';
<ide>
<ide> const list = new SocketListReceive(child, key);
<ide> list.child.emit('internalMessage', { key, cmd: 'NODE_SOCKET_NOTIFY_CLOSE' });
<add> list.child.emit('internalMessage', { key, cmd: 'NODE_SOCKET_GET_COUNT' }... | 2 |
Text | Text | add release notes for 1.6.3 | a59f46b37db4cc88db9721108f294f31bf71e549 | <ide><path>CHANGELOG.md
<add><a name="1.6.3"></a>
<add># 1.6.3 scriptalicious-bootstrapping (2017-03-08)
<add>
<add>
<add>## Security Related
<add>These fixes are relevant only to AngularJS apps that are part of a browser extension.
<add>
<add>- **Angular:**
<add> - do not auto-bootstrap if the `src` exists but is emp... | 1 |
Ruby | Ruby | support a warmup for jruby | 930d235981c429bde8a604622393f70ec69a4985 | <ide><path>actionpack/examples/minimal.rb
<ide> def index
<ide> end
<ide> end
<ide>
<del># Runner.run(MetalPostController, N, 'metal')
<del># Runner.run(HttpPostController.action(:index), N, 'http') if defined? HttpPostController
<del># Runner.run(BasePostController.action(:index), N, 'base')
<del>Runner.run(BasePos... | 1 |
Go | Go | consolidate documentation for -h option | fec81690ccaf4c4b81342f632bc1a3ec3ad6b86c | <ide><path>docker/flags.go
<ide> import (
<ide> "os"
<ide> "path/filepath"
<ide>
<del> "github.com/docker/docker/api"
<ide> "github.com/docker/docker/opts"
<ide> flag "github.com/docker/docker/pkg/mflag"
<ide> )
<ide> func init() {
<ide> flCa = flag.String([]string{"-tlscacert"}, filepath.Join(dockerCertPath, def... | 1 |
Ruby | Ruby | remove accidental additional test | 96fdbd3be3e6c5c57e394019e8b812da6d705769 | <ide><path>activerecord/test/cases/connection_adapters/connection_specification_test.rb
<ide> def test_dup_deep_copy_config
<ide> spec = ConnectionSpecification.new({ :a => :b }, "bar")
<ide> assert_not_equal(spec.config.object_id, spec.dup.config.object_id)
<ide> end
<del>
<del> def test_han... | 1 |
Text | Text | explain `hex` encoding in buffer api | e43ee3712fd21710d6da07c4b7892fd1aa84d5e9 | <ide><path>doc/api/buffer.md
<ide> The character encodings currently supported by Node.js include:
<ide>
<ide> * `'binary'`: Alias for `'latin1'`.
<ide>
<del>* `'hex'`: Encode each byte as two hexadecimal characters.
<add>* `'hex'`: Encode each byte as two hexadecimal characters. Data truncation
<add> may occur for ... | 1 |
Javascript | Javascript | fix lineartologluv convert | d682f4c2c0f5a22052fd050b916fe14a672f94e7 | <ide><path>src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js
<ide> vec4 LinearToRGBD( in vec4 value, in float maxRange ) {
<ide> // M matrix, for encoding
<ide> const mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );
<ide> vec4 LinearToLogLuv( in vec4 value ... | 1 |
Text | Text | improve introduction to concerns section | 45e3719afd1c2982fb9c3cb2de9be7fa13ea6bc3 | <ide><path>guides/source/getting_started.md
<ide> we defined it as an instance variable.
<ide>
<ide> ### Using Concerns
<ide>
<del> A concern is any module that contains methods you would like to be able to share across multiple controllers or models. In other frameworks they are often known as mixins. They are a go... | 1 |
Mixed | Ruby | move schemamigration to an independent object | 436277da88507f9aae0874e62f3e61a8546b9683 | <ide><path>activerecord/CHANGELOG.md
<add>* Move `ActiveRecord::SchemaMigration` to an independent object.
<add>
<add> `ActiveRecord::SchemaMigration` no longer inherits from `ActiveRecord::Base` and is now an independent object that should be instantiated with a `connection`. This class is private and should not ... | 20 |
Python | Python | add batch_dot to core.py layers | 4e5348c5cab9842d8508375d3b6bf06b97d9db50 | <ide><path>keras/layers/core.py
<ide> def get_output(self, train=False):
<ide> elif self.mode == 'dot':
<ide> l1 = self.layers[0].get_output(train)
<ide> l2 = self.layers[1].get_output(train)
<del> output = K.tensordot(l1, l2, self.dot_axes) # T.batched_tensordot(l1, l2, self... | 1 |
Javascript | Javascript | fix tests for all timezones | 331029bbc1c29f455c9604d7b20a0255f2940994 | <ide><path>src/test/moment/now.js
<ide> test('now - custom value', function (assert) {
<ide>
<ide> try {
<ide> assert.ok(moment().toISOString() === CUSTOM_DATE, 'moment() constructor should use the function defined by moment.now, but it did not');
<del> assert.ok(moment([]).toISOString() === '2015-0... | 1 |
Ruby | Ruby | match the whole string | d153355d35954e0e553d4b1b34db10a0ea7fa6a4 | <ide><path>tasks/release.rb
<ide> abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed"
<ide> end
<ide>
<del> unless ENV['SKIP_TAG'] || `git tag | grep #{tag}`.strip.empty?
<add> unless ENV['SKIP_TAG'] || `git tag | grep '^#{tag}$`.strip.empty?
<ide> abort "[AB... | 1 |
Mixed | Python | remove deprecated functions and update readme | e41999f846338f42f82b88dd8713b7fb9c95f377 | <ide><path>compression/README.md
<ide> code for the following papers:
<ide>
<ide> ## Organization
<ide> [Image Encoder](image_encoder/): Encoding and decoding images into their binary representation.
<add>[Entropy Coder](entropy_coder/): Lossless compression of the binary representation.
<ide>
<ide> ## Contact Info
<... | 4 |
Go | Go | follow symlink for --device argument | 7ed569efdc822811cdac3b398a16757a54fbe4c4 | <ide><path>daemon/container_operations_unix.go
<ide> func killProcessDirectly(container *container.Container) error {
<ide> }
<ide>
<ide> func getDevicesFromPath(deviceMapping containertypes.DeviceMapping) (devs []*configs.Device, err error) {
<del> device, err := devices.DeviceFromPath(deviceMapping.PathOnHost, devic... | 2 |
PHP | PHP | add missing citext type mapping | 618eeebeb6f78a2c19d567dc7e5e71732ef397ab | <ide><path>src/Illuminate/Database/Console/DatabaseInspectionCommand.php
<ide> abstract class DatabaseInspectionCommand extends Command
<ide> */
<ide> protected $typeMappings = [
<ide> 'bit' => 'string',
<add> 'citext' => 'string',
<ide> 'enum' => 'string',
<ide> 'geometry' => 's... | 1 |
PHP | PHP | fix duplicate column errors in isunique rules | 14dfc65fc9ab9cbb97a8f806bf9a81ff58b76a43 | <ide><path>src/ORM/Rule/IsUnique.php
<ide> public function __invoke(EntityInterface $entity, array $options)
<ide> return true;
<ide> }
<ide>
<del> $conditions = $entity->extract($this->_fields);
<add> $alias = $options['repository']->alias();
<add> $conditions = $this->_alias(... | 2 |
Javascript | Javascript | add test to contextreplacemntplugin | 405a4aef27ece5357ed730518f5531ee18947fa8 | <ide><path>test/ContextReplacementPlugin.test.js
<add>"use strict";
<add>
<add>const should = require("should");
<add>const sinon = require("sinon");
<add>const ContextReplacementPlugin = require("../lib/ContextReplacementPlugin");
<add>const applyPluginWithOptions = require("./helpers/applyPluginWithOptions");
<add>co... | 1 |
Javascript | Javascript | use encodeuriquery instead of escape | 7e1f364177111ba6cceac82f6c6bcc254448292b | <ide><path>src/Angular.js
<ide> function parseKeyValue(/**string*/keyValue) {
<ide> forEach((keyValue || "").split('&'), function(keyValue){
<ide> if (keyValue) {
<ide> key_value = keyValue.split('=');
<del> key = unescape(key_value[0]);
<del> obj[key] = isDefined(key_value[1]) ? unescape(key_valu... | 2 |
Ruby | Ruby | shorten troubleshooting url | b89123d487673df623ebbba8aac61b29d2f9470f | <ide><path>Library/Homebrew/os.rb
<ide> def self.linux?
<ide> end
<ide>
<ide> if OS.mac?
<del> ISSUES_URL = "https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting"
<add> ISSUES_URL = "http://git.io/brew-troubleshooting"
<ide> PATH_OPEN = "/usr/bin/open"
<i... | 1 |
Javascript | Javascript | add /auth paths to whitelist | 933e2896172ec09e58ef3ee5c8e6ffd57dec3dcd | <ide><path>api-server/server/middlewares/request-authorization.js
<ide> import { jwtSecret as _jwtSecret } from '../../../config/secrets';
<ide>
<ide> import { wrapHandledError } from '../utils/create-handled-error';
<ide>
<add>const authRE = /^\/auth\//;
<ide> const newsShortLinksRE = /^\/n\/|^\/p\//;
<add>const res... | 2 |
Javascript | Javascript | build esm target first. | efba1d0b0150d6fc4987273de0f9fb29275b35f7 | <ide><path>utils/build/rollup.config.js
<ide> ${ code }`;
<ide> }
<ide>
<ide> export default [
<add> {
<add> input: 'src/Three.js',
<add> plugins: [
<add> addons(),
<add> glconstants(),
<add> glsl(),
<add> header()
<add> ],
<add> output: [
<add> {
<add> format: 'esm',
<add> file: 'build/three.modul... | 1 |
Javascript | Javascript | update quaternionkeyframetrack inheritance | 319f2156a699f3bde9d70ebb6b2cff3b74639971 | <ide><path>src/animation/tracks/QuaternionKeyframeTrack.js
<ide> import { InterpolateLinear } from '../../constants.js';
<del>import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
<add>import { KeyframeTrack } from '../KeyframeTrack.js';
<ide> import { QuaternionLinearInterpolant } from '../../math/int... | 1 |
Go | Go | fix a bad assumption | fff605c3b3557acf6bf793813d695fba59d7fa21 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunEnvironment(c *check.C) {
<ide> })
<ide> result.Assert(c, icmd.Success)
<ide>
<del> actualEnv := strings.Split(strings.TrimSpace(result.Combined()), "\n")
<add> actualEnv := strings.Split(strings.TrimSuffix(result.Stdout(), "\n"), "... | 1 |
Text | Text | simplify urlobject.hash description | 458c2bbb8f0192269c07109b0181300095085bbf | <ide><path>doc/api/url.md
<ide> For example: `'user:pass'`.
<ide> #### urlObject.hash
<ide>
<ide> The `hash` property consists of the "fragment" portion of the URL including
<del>the leading ASCII hash (`#`) character.
<add>the leading `#` character.
<ide>
<ide> For example: `'#hash'`.
<ide> | 1 |
PHP | PHP | fix cs error | 392117e551dc6023f3255865ce95352036dcdb07 | <ide><path>src/View/Helper/HtmlHelper.php
<ide> public function script($url, array $options = array()) {
<ide> }
<ide> $this->_includedAssets[__METHOD__][$url] = true;
<ide>
<del>
<ide> $out = $this->formatTemplate('javascriptlink', [
<ide> 'url' => $url,
<ide> 'attrs' => $this->templater()->formatAttribut... | 1 |
Python | Python | fix provide_batch_fn for semi-supervised case | 703dc8d769cdde1c8d178b33eee25b006c326955 | <ide><path>domain_adaptation/domain_separation/dsn_train.py
<ide> def main(_):
<ide> if FLAGS.target_labeled_dataset != 'none':
<ide> # 1000 is the maximum number of labelled target samples that exists in
<ide> # the datasets.
<del> target_semi_images, target_semi_labels = data_provider.pro... | 1 |
Javascript | Javascript | remove view tests | 44a299b5cc777acdaf65a2035a950186bb7a7be2 | <ide><path>packages/ember/tests/routing/basic_test.js
<ide> QUnit.test('Model passed via renderTemplate model is set as controller\'s model'
<ide> equal(jQuery('p:contains(emberjs)', '#qunit-fixture').length, 1, 'Passed model was set as controllers model');
<ide> });
<ide>
<del>test('Renders correct view with slash ... | 1 |
Javascript | Javascript | fix race in test-http2-origin | 985c5f5b7e079689211649f19097617075a19a42 | <ide><path>test/parallel/test-http2-origin.js
<ide> const ca = readKey('fake-startcom-root-cert.pem', 'binary');
<ide> ['https://example.org', 'https://example.com']
<ide> ];
<ide>
<del> const countdown = new Countdown(2, () => {
<add> const countdown = new Countdown(3, () => {
<ide> client.close... | 1 |
Python | Python | support spacy-legacy via the registry | a203e3dbb8ae3c202f4f24d2bcceed7ed7568b15 | <ide><path>spacy/errors.py
<ide> class Errors:
<ide> "issue tracker: http://github.com/explosion/spaCy/issues")
<ide>
<ide> # TODO: fix numbering after merging develop into master
<add> E893 = ("Could not find function '{name}' in function registry '{reg_name}'. "
<add> "If you're using a... | 4 |
PHP | PHP | add distinct pagination test | 6a1981a9ee5799cb220ac1aa7256fa3a36c0a4bd | <ide><path>tests/Database/DatabaseQueryBuilderTest.php
<ide> public function testGetPaginationCountGetsResultCount()
<ide> }
<ide>
<ide>
<add> public function testGetPaginationCountGetsResultCountWithSelectDistinct()
<add> {
<add> unset($_SERVER['orders']);
<add> $builder = $this->getBuilder();
<add> $builder->ge... | 1 |
Python | Python | add test utils and get_doc helper function | 909f24d7df2ad1cde8232051297c6688d5ca33d9 | <ide><path>spacy/tests/util.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>from ..tokens import Doc
<add>from ..attrs import ORTH, POS, HEAD, DEP
<add>
<add>
<add>def get_doc(vocab, words, tags=None, heads=None, deps=None):
<add> """Create Doc object from given vocab, words and annot... | 1 |
Ruby | Ruby | modify #find_versions url usage | d7a26cd6d33163c61cd28ef39bd06a555e7a6c34 | <ide><path>Library/Homebrew/cask/cask.rb
<ide> class Cask
<ide>
<ide> attr_reader :token, :sourcefile_path, :source, :config, :default_config
<ide>
<del> attr_accessor :download
<add> attr_accessor :download, :allow_reassignment
<ide>
<ide> def self.all
<ide> Tap.flat_map(&:cask_files).map do |f|... | 4 |
Ruby | Ruby | add fix for loading fixtures in engine tests | 0176aef1ebaa9f69001c7045a51727a8ea9b61b8 | <ide><path>railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
<ide> # Load fixtures from the engine
<ide> if ActiveSupport::TestCase.respond_to?(:fixture_path=)
<ide> ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
<add> ActiveSupport::TestCase.fixtures :all
<id... | 1 |
Text | Text | improve unusual phrasing | 90fa884f94424ad0af3e28b1ad8b8c75b120b3de | <ide><path>README.md
<ide> the browser how to do dependency injection and inversion of control.
<ide>
<ide> Oh yeah and it helps with server-side communication, taming async callbacks with promises and
<ide> deferreds. It also makes client-side navigation and deeplinking with hashbang urls or HTML5 pushState a
<del>p... | 1 |
PHP | PHP | fix double encoding in debug() | 52010a3e9d9f0b734036722368a5f879237ad451 | <ide><path>lib/Cake/Utility/Debugger.php
<ide> protected static function _export($var, $depth, $indent) {
<ide> if (trim($var) == '') {
<ide> return "''";
<ide> }
<del> return "'" . h($var) . "'";
<add> return "'" . $var . "'";
<ide> break;
<ide> case 'array':
<ide> return self::_array($var... | 1 |
Javascript | Javascript | check endless loop while writing empty string | 16facd7ef48b9d43af02009524983b05901dc26b | <ide><path>test/parallel/test-http2-client-write-empty-string.js
<add>'use strict';
<add>
<add>const assert = require('assert');
<add>const http2 = require('http2');
<add>
<add>const common = require('../common');
<add>if (!common.hasCrypto)
<add> common.skip('missing crypto');
<add>
<add>for (const chunkSequence of [... | 1 |
Javascript | Javascript | implement websockets based on-demand-entries ping | af07611a632311eeeac3360bfef6190ef2ddb72f | <ide><path>packages/next/client/on-demand-entries-client.js
<del>/* global location */
<add>/* global location, WebSocket */
<ide>
<ide> import Router from 'next/router'
<ide> import fetch from 'unfetch'
<ide>
<del>export default ({assetPrefix}) => {
<add>const { hostname } = location
<add>const retryTime = 5000
<add... | 4 |
Ruby | Ruby | use fetch rather than [] | 6e4a01c70ab0579acab10f3f6489fa8f3480be8d | <ide><path>Library/Homebrew/cmd/--env.rb
<ide> def build_env_keys env
<ide> HOMEBREW_USE_GCC HOMEBREW_USE_LLVM HOMEBREW_SVN HOMEBREW_GIT
<ide> HOMEBREW_SDKROOT
<ide> MAKE GIT CPP
<del> ACLOCAL_PATH OBJC PATH ].select{ |key| env[key] }
<add> ACLOCAL_PATH OBJC PATH ].select{ |key| env.fetch(ke... | 1 |
Python | Python | improve messages in project cli [ci skip] | 6316d5f3989a53e4868cd346256fa614bd49e711 | <ide><path>spacy/cli/project/assets.py
<ide> def project_assets(project_dir: Path, *, sparse_checkout: bool = False) -> None:
<ide> branch=asset["git"].get("branch"),
<ide> sparse=sparse_checkout,
<ide> )
<add> msg.good(f"Downloaded asset {dest}")
<ide> els... | 2 |
Python | Python | skip megatron tests for now | d31c7b104ee19b1572044c416191f451e8f74ddd | <ide><path>tests/test_modeling_megatron_bert.py
<ide> def prepare_config_and_inputs_for_common(self):
<ide>
<ide>
<ide> @require_torch
<add>@unittest.skip("Temporary skip to make the CI pass reliably.")
<ide> class MegatronBertModelTest(ModelTesterMixin, unittest.TestCase):
<ide>
<ide> all_model_classes = ( | 1 |
Text | Text | update docs with allow_add_remove | bda25479aa7e73c90bc77b7c7219eaa411af138e | <ide><path>docs/api-guide/serializers.md
<ide> This allows you to write views that update or create multiple items when a `PUT`
<ide>
<ide> Bulk updates will update any instances that already exist, and create new instances for data items that do not have a corresponding instance.
<ide>
<del>When performing a bulk up... | 1 |
Java | Java | finalize api for testcontextannotationutils | fc9650a9a658cb3636400531afe6a87440f02f99 | <ide><path>spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java
<ide>
<ide> import org.springframework.core.SpringProperties;
<ide> import org.springframework.core.annotation.AnnotatedElementUtils;
<del>import org.springframework.core.annotation.AnnotationAttributes;
<ide> import ... | 8 |
Ruby | Ruby | add deprecation paths for tap --full/--shallow | b5a7337b059c33d0c3a4bd70788095fcb401add8 | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def tap_args
<ide> assumptions, so taps can be cloned from places other than GitHub and
<ide> using protocols other than HTTPS, e.g. SSH, git, HTTP, FTP(S), rsync.
<ide> EOS
<add> # odeprecated "brew tap --full"
<add> switch "--full",
<add> ... | 1 |
Ruby | Ruby | fix postgresql query_cache test | 1f63cd9190a44d5604ec7ea69cc78e31760611cf | <ide><path>activerecord/test/cases/query_cache_test.rb
<ide> def test_cache_is_not_available_when_using_a_not_connected_connection
<ide> refute Task.connected?
<ide>
<ide> Task.cache do
<add> Task.connection # warmup postgresql connection setup queries
<ide> assert_queries(2) { Task.find(1); Task.fi... | 1 |
Python | Python | reduce code re-use with pytest mark | 3b117e7e8c0f9a84185181a7fdbb7e4de979f0ec | <ide><path>numpy/lib/tests/test_arraysetops.py
<ide> def test_ediff1d_scalar_handling(self,
<ide> assert_equal(actual, expected)
<ide> assert actual.dtype == expected.dtype
<ide>
<del> def test_isin(self):
<add> @pytest.mark.parametrize("kind", [None, "sort", "table"])
<add> def test_isin(self... | 1 |
PHP | PHP | fix failing test from 2.3 merge | b47744befa4b9a1dcdb4d7666a1502a670de73b9 | <ide><path>lib/Cake/Test/TestCase/View/Helper/PaginatorHelperTest.php
<ide> public function testNumbers() {
<ide>
<ide> $result = $this->Paginator->numbers(array('first' => 1, 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'a'));
<ide> $expected = array(
<del> array('li' => array()), array('a' => arr... | 1 |
Ruby | Ruby | add on_linux and on_macos blocks | 8b85ef2e8851b32eaac3f3094c7a6044eceb20e3 | <ide><path>Library/Homebrew/extend/os/linux/formula.rb
<ide> # frozen_string_literal: true
<ide>
<ide> class Formula
<add> undef on_linux
<add>
<add> def on_linux(&_block)
<add> raise "No block content defined for on_linux block" unless block_given?
<add>
<add> yield
<add> end
<add>
<ide> undef shared_libra... | 4 |
Python | Python | add sqrt for proper noise sigma calculation | 34c54cb19c51c6345f2bcbcc109b75e9f7bf32f6 | <ide><path>keras/layers/noise.py
<ide> def get_output(self, train):
<ide> # self.p refers to drop probability rather than
<ide> # retain probability (as in paper), for consistency
<ide> X *= K.random_normal(shape=K.shape(X), mean=1.0,
<del> std=self.p ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.