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 | fix host for activestorage diskservice | b07ce56a383e0ab1514e149b7c9ad2177ea59514 | <ide><path>activestorage/lib/active_storage/service/disk_service.rb
<ide> def url(key, expires_in:, filename:, disposition:, content_type:)
<ide> purpose: :blob_key }
<ide> )
<ide>
<add> current_uri = URI.parse(current_host)
<add>
<ide> generated_url = url_helpers.rails_disk_service_ur... | 2 |
Javascript | Javascript | expand coverage for crypto | 3d645338a005c4318c72a050b2066d4bca313d53 | <ide><path>test/parallel/test-crypto-hash.js
<ide> common.expectsError(
<ide> message: 'The "algorithm" argument must be of type string'
<ide> }
<ide> );
<add>
<add>{
<add> const Hash = crypto.Hash;
<add> const instance = crypto.Hash('sha256');
<add> assert(instance instanceof Hash, 'Hash is expected to return... | 2 |
Python | Python | replace lambdalr scheduler wrappers by function | 022525b0031bcdbbb62d1223f75919983f2ac426 | <ide><path>transformers/__init__.py
<ide> from .modeling_encoder_decoder import PreTrainedEncoderDecoder, Model2Model
<ide>
<ide> # Optimization
<del> from .optimization import (AdamW, ConstantLRSchedule, WarmupConstantSchedule, WarmupCosineSchedule,
<del> WarmupCosineWithHardR... | 3 |
Text | Text | fix links to ner examples | 3f42eb979f7bd20448ff6b15ab316d63f5489a6f | <ide><path>docs/source/examples.md
<ide> pip install -r ./examples/requirements.txt
<ide> | [GLUE](#glue) | Examples running BERT/XLM/XLNet/RoBERTa on the 9 GLUE tasks. Examples feature distributed training as well as half-precision. |
<ide> | [SQuAD](#squad) | Using BERT/RoBERTa/XLNet/XLM for question answering, examp... | 2 |
Python | Python | fix template for inputs docstrings | 790f1c9545f4a83b97bf75640be82b2112c3efe7 | <ide><path>src/transformers/models/big_bird/modeling_big_bird.py
<ide> def _init_weights(self, module):
<ide>
<ide> BIG_BIRD_INPUTS_DOCSTRING = r"""
<ide> Args:
<del> input_ids (:obj:`torch.LongTensor` of shape :obj:`{0}`):
<add> input_ids (:obj:`torch.LongTensor` of shape :obj:`({0})`):
<ide> ... | 15 |
Ruby | Ruby | add macos sierra. (#353) | 1c46db9a73e6d0fa56d0a83db2ed04a1d62837b4 | <ide><path>Library/Homebrew/os/mac/version.rb
<ide> module OS
<ide> module Mac
<ide> class Version < ::Version
<ide> SYMBOLS = {
<add> :sierra => "10.12",
<ide> :el_capitan => "10.11",
<ide> :yosemite => "10.10",
<ide> :mavericks => "10.9", | 1 |
Text | Text | rearrange reference section and code | 162574f0b6d9cfa4a54bf44a46afe8871c1f4108 | <ide><path>guide/english/r/data-types/index.md
<ide> title: Data Types in R
<ide> Scalar refers to an atomic quantity that can hold only one value at a time. Scalars are the most basic data types. Some common types of scalars :
<ide>
<ide> 1. Number
<del>
<add>```r
<ide> > x <- 5
<ide> > y <- 5.5
<ide> > class(x)
... | 1 |
Text | Text | provide more detail to static folder placement | dc208054337127fa2e740d7630976e8d57fa9472 | <ide><path>docs/advanced-features/output-file-tracing.md
<ide> module.exports = {
<ide>
<ide> This will create a folder at `.next/standalone` which can then be deployed on it's own without installing `node_modules`.
<ide>
<del>Additionally, a minimal `server.js` file is also output which can be used instead of `next ... | 1 |
Python | Python | add benchmarks for 32-bit data type sorting | 61dec07ba52c0aafe1149e43bb22ffd0cb4b06c9 | <ide><path>benchmarks/benchmarks/bench_function_base.py
<ide> class Sort(Benchmark):
<ide> # In NumPy 1.17 and newer, 'merge' can be one of several
<ide> # stable sorts, it isn't necessarily merge sort.
<ide> ['quick', 'merge', 'heap'],
<del> ['float64', 'int64', 'int16'],
<add> ['... | 1 |
Python | Python | test multi_dot with 2 arrays | c1ee3d86a23aced31e8f3b02ad93dd6509c28e59 | <ide><path>numpy/linalg/tests/test_linalg.py
<ide> def test_basic_function_with_three_arguments(self):
<ide> assert_almost_equal(multi_dot([A, B, C]), A.dot(B).dot(C))
<ide> assert_almost_equal(multi_dot([A, B, C]), np.dot(A, np.dot(B, C)))
<ide>
<add> def test_basic_function_with_two_arguments(self... | 1 |
Ruby | Ruby | squash backtraces from bundler.setup | b73177a0954aed11543f2bb829cd07cc12d4f590 | <ide><path>railties/lib/rails/generators/rails/app/templates/config/boot.rb
<ide>
<ide> # Set up gems listed in the Gemfile.
<ide> gemfile = File.expand_path('../../Gemfile', __FILE__)
<del>if File.exist?(gemfile)
<add>begin
<ide> ENV['BUNDLE_GEMFILE'] = gemfile
<ide> require 'bundler'
<ide> Bundler.setup
<del>e... | 1 |
PHP | PHP | unskip more tests and fix issues in filenames | c26df7838b8ae4c2d1755fa618eb4839542de823 | <ide><path>src/Console/Command/Task/ModelTask.php
<ide> public function bakeEntity($model, $data = []) {
<ide> if (!empty($this->params['no-entity'])) {
<ide> return;
<ide> }
<del> $name = $model->alias();
<add> $name = Inflector::singularize($model->alias());
<ide>
<ide> $ns = Configure::read('App.namespac... | 2 |
Python | Python | update the dataset name for synthetic data. | d93d121167e986d5cc2b71939b2c9e64a9400996 | <ide><path>official/resnet/resnet_run_loop.py
<ide> def resnet_main(
<ide> 'synthetic_data': flags_obj.use_synthetic_data,
<ide> 'train_epochs': flags_obj.train_epochs,
<ide> }
<add> if flags_obj.use_synthetic_data:
<add> dataset_name = dataset_name + "-synthetic"
<ide>
<ide> benchmark_logger = log... | 1 |
Text | Text | fix return value for require.resolve.paths() | 553d4ee57db12ef9f1c039985024c2e4f79fd815 | <ide><path>doc/api/modules.md
<ide> added: v8.9.0
<ide> -->
<ide>
<ide> * `request` {string} The module path whose lookup paths are being retrieved.
<del>* Returns: {Array}
<add>* Returns: {Array|null}
<ide>
<del>Returns an array containing the paths searched during resolution of `request`.
<add>Returns an array cont... | 1 |
Javascript | Javascript | update stats-config for new polyfills location | 059741ea00feafc5b9da3e9fb3d9a2f8856507b0 | <ide><path>test/.stats-app/stats-config.js
<ide> const clientGlobs = [
<ide> name: 'Client Bundles (main, webpack, commons)',
<ide> globs: [
<ide> '.next/static/runtime/+(main|webpack)-!(*.module.js)',
<del> '.next/static/chunks/!(*.module.js)',
<add> '.next/static/chunks/!(polyfills-*|*.module.... | 1 |
Python | Python | add shift_tokens_right in flaxmt5 | 934e21cd4b41fb8d4025c58c1f1a03a10ae4208b | <ide><path>src/transformers/models/mt5/modeling_flax_mt5.py
<ide> # limitations under the License.
<ide> """ Flax mT5 model."""
<ide>
<add>import numpy as np
<add>
<ide> from ...utils import logging
<ide> from ..t5.modeling_flax_t5 import FlaxT5ForConditionalGeneration, FlaxT5Model
<ide> from .configuration_mt5 import... | 1 |
Ruby | Ruby | convert `checksum_verification` test to spec | ba34cbdc6256b76cd5e3bb31dc9c3fc0ec511333 | <ide><path>Library/Homebrew/test/checksum_verification_spec.rb
<add>require "formula"
<add>
<add>describe Formula do
<add> def formula(&block)
<add> super do
<add> url "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz"
<add> instance_eval(&block)
<add> end
<add> end
<add>
<add> describe "#brew" d... | 2 |
Mixed | Javascript | attach request as res.req | fc3f1c3c7106a586b6ec90c97ce1b0196791b89f | <ide><path>doc/api/http.md
<ide> Removes a header that's queued for implicit sending.
<ide> response.removeHeader('Content-Encoding');
<ide> ```
<ide>
<add>### `response.req`
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>* {http.IncomingMessage}
<add>
<add>A reference to the original HTTP `request` object.
... | 6 |
Ruby | Ruby | debrittlize tests somewhat - fix for ci build | 7d76474e5da6c1c06eb831fe436f12591cca4339 | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_application_names_are_not_singularized
<ide> def test_config_database_is_added_by_default
<ide> run_generator
<ide> assert_file "config/database.yml", /sqlite3/
<del> assert_file "Gemfile", /^gem "sqlite3-ruby", :require => "sqlite3"$... | 1 |
Go | Go | experimental it for net vlan drivers | afeea8c9ca71780cd02abc86ad61e587f26be620 | <ide><path>integration-cli/docker_experimental_network_test.go
<add>// +build experimental
<add>
<add>package main
<add>
<add>import (
<add> "os/exec"
<add> "strings"
<add> "time"
<add>
<add> "github.com/docker/docker/pkg/integration/checker"
<add> "github.com/docker/docker/pkg/parsers/kernel"
<add> "github.com/go-chec... | 1 |
Javascript | Javascript | fix net.socket.connect argument parsing | c60cdcda4e39081fa56568df941aff1a4b56b39c | <ide><path>lib/net_legacy.js
<ide> Socket.prototype.connect = function() {
<ide> self._connecting = true; // set false in doConnect
<ide> self.writable = true;
<ide>
<del> var lastArg = arguments[arguments.length - 1];
<del> if (typeof lastArg == 'function') {
<del> self.addListener('connect', lastArg);
<add>... | 3 |
Text | Text | fix code snippets in tls.md | 054481633a3a6feba53213b8a5335ccfa421de0e | <ide><path>doc/api/tls.md
<ide> The `callback` function, if specified, will be added as a listener for the
<ide>
<ide> `tls.connect()` returns a [`tls.TLSSocket`][] object.
<ide>
<del>The following implements a simple "echo server" example:
<add>Here is an example of a client of echo server as described in
<add>[`tls... | 1 |
Javascript | Javascript | remove common.port from test-tls-securepair-client | 9ac42f1be42f162ec9cf6bb56e817d7b210a6db9 | <ide><path>test/sequential/test-tls-securepair-client.js
<ide> function test(keyPath, certPath, check, next) {
<ide> const cert = fixtures.readSync(certPath).toString();
<ide>
<ide> const server = spawn(common.opensslCli, ['s_server',
<del> '-accept', common.PORT,
<add> ... | 1 |
Ruby | Ruby | remove dead test code for unsupported adapters | 8df8334327b3afe2c66458ed7877d2aacfabd515 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
<ide> def [](name)
<ide> # Default is (38,0).
<ide> # * DB2: <tt>:precision</tt> [1..63], <tt>:scale</tt> [0..62].
<ide> # Default unknown.
<del> # * Firebird: <tt>:precision</tt> [1..18], <tt>:scale<... | 19 |
Text | Text | add growthsimple to list of airflow users | bbdbe81e86acc36593cdad08eea05db444096a23 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [Groupalia](http://es.groupalia.com) [[@jesusfcr](https://github.com/jesusfcr)]
<ide> 1. [Groupon](https://groupon.com) [[@stevencasey](https://github.com/stevencasey)]
<ide> 1. [Growbots](https://www.growbots.com/)[[@exploy](https://github.com... | 1 |
Python | Python | add additional assert | a3f5297e82f8ea4d3a723c2d1996a1392e065445 | <ide><path>integration/storage/base.py
<ide> def _test_objects(self, do_upload, do_download, size=1 * MB):
<ide> self.assertEqual([blob.name for blob in blobs], [blob_name])
<ide>
<ide> # check that the file can be read back
<del> self.assertEqual(do_download(obj), content)
<add> ... | 1 |
Ruby | Ruby | exclude ruby from unbrewed | 319ea4273e61944b41f033194496cdf6df9fe288 | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def list
<ide> lib/python[23].[0-9]/*
<ide> lib/pypy/*
<ide> lib/pypy3/*
<add> lib/ruby/gems/[12].*
<add> lib/ruby/site_ruby/[12].*
<add> lib/ruby/vendor_ruby/[12].*
<ide> share/pypy/*
<ide> share/pypy3/*
<ide> share/doc/homebrew/* | 1 |
Ruby | Ruby | simplify code in as json encoder | 046e27a7338f2961c10e9d133e0e2229b51c2ba8 | <ide><path>activesupport/lib/active_support/json/encoding.rb
<ide> module Encoding #:nodoc:
<ide> class CircularReferenceError < StandardError; end
<ide>
<ide> class Encoder
<del> attr_reader :options
<ide>
<ide> def initialize(options = nil)
<ide> @options = options || {}
<ide> d... | 1 |
Python | Python | update tensorboard callback | b602a93e17964cfcedda09eec90f140665246431 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def permute_dimensions(x, pattern):
<ide> '''
<ide> return tf.transpose(x, perm=pattern)
<ide>
<add>
<ide> def repeat_elements(x, rep, axis):
<ide> '''Repeats the elements of a tensor along an axis, like np.repeat
<ide>
<ide><path>keras/callbacks.py
<id... | 4 |
Javascript | Javascript | correct spelling error | 95522cc11f01528b569f88a089def9acded938b4 | <ide><path>src/Angular.js
<ide> function isArrayLike(obj) {
<ide> * is the value of an object property or an array element and `key` is the object property key or
<ide> * array element index. Specifying a `context` for the function is optional.
<ide> *
<del> * It is worth nothing that `.forEach` does not iterate ove... | 1 |
Javascript | Javascript | simulate input event instead of relying on native | 580e8f0dbbbb7963c27fee42fd843c6d2a89e2ca | <ide><path>src/core/ReactDefaultInjection.js
<ide> var ReactDOMForm = require('ReactDOMForm');
<ide> var DefaultEventPluginOrder = require('DefaultEventPluginOrder');
<ide> var EnterLeaveEventPlugin = require('EnterLeaveEventPlugin');
<ide> var EventPluginHub = require('EventPluginHub');
<add>var InputEventPlugin = req... | 6 |
Go | Go | add check for iptables xlock support | 034babf1753741184c1155a7346ecec86fc51e2c | <ide><path>pkg/iptables/iptables.go
<ide> const (
<ide> var (
<ide> ErrIptablesNotFound = errors.New("Iptables not found")
<ide> nat = []string{"-t", "nat"}
<add> supportsXlock = false
<ide> )
<ide>
<ide> type Chain struct {
<ide> Name string
<ide> Bridge string
<ide> }
<ide>
<add>func ini... | 1 |
Ruby | Ruby | ignore interrupts while cleaning up | a44f725c8b0ed36fa6d82641ace3034a17cedce2 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def install_dependency(dep, inherited_options)
<ide> fi.caveats
<ide> fi.finish
<ide> rescue Exception
<del> tmp_keg.rename(installed_keg) if tmp_keg && !installed_keg.directory?
<del> linked_keg.link if linked_keg
<add> ignore_interrupts do
<add... | 1 |
Ruby | Ruby | use #any? instead of #detect | 5120429c3138d46490a1c4a611ebd93410f4f885 | <ide><path>activesupport/lib/active_support/time_with_zone.rb
<ide> def ago(other)
<ide> def advance(options)
<ide> # If we're advancing a value of variable length (i.e., years, weeks, months, days), advance from #time,
<ide> # otherwise advance from #utc, for accuracy when moving across DST boundaries
... | 1 |
Java | Java | hide builder implementations in runtimehints api | 780d07217b35226c2827111d9a0cb2ed5f84176c | <ide><path>spring-core/src/main/java/org/springframework/aot/hint/ClassProxyHint.java
<ide> import java.util.LinkedList;
<ide> import java.util.List;
<ide> import java.util.Objects;
<del>import java.util.stream.Collectors;
<ide>
<ide> /**
<ide> * A hint that describes the need for a proxy against a concrete class.
<i... | 9 |
PHP | PHP | use timing attack safe string comparison | bab2dc214636989bc67850e381a82acc81105e4d | <ide><path>src/Auth/DigestAuthenticate.php
<ide> public function getUser(ServerRequest $request)
<ide> unset($user[$field]);
<ide>
<ide> $hash = $this->generateResponseHash($digest, $password, $request->getEnv('ORIGINAL_REQUEST_METHOD'));
<del> if ($digest['response'] === $hash) {
<add> i... | 1 |
Javascript | Javascript | add license headers to .js files | eb48759675956d319f333c9757fbddea828bddc1 | <ide><path>Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js
<ide> /**
<del> * Copyright 2004-present Facebook. All Rights Reserved.
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add>... | 2 |
Go | Go | move testentrypoint & testbindmounts | 5b27fbc0e27358b794946fe9e84a83a6c4497be4 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> import (
<ide> "io/ioutil"
<ide> "os"
<ide> "os/exec"
<add> "path"
<ide> "path/filepath"
<ide> "reflect"
<ide> "regexp"
<ide> func TestRunWithBadDevice(t *testing.T) {
<ide> }
<ide> logDone("run - error with bad device")
<ide> }
<add>
<add>func TestEntrypo... | 3 |
PHP | PHP | show the incorrect type received, in error message | a8b1b97d61da7c1899f8dcb0590992c9b47f4588 | <ide><path>src/Controller/Controller.php
<ide> public function invokeAction(): ?ResponseInterface
<ide> }
<ide>
<ide> if (!$result instanceof ResponseInterface) {
<del> throw new UnexpectedValueException(
<del> 'Controller actions can only return ResponseInterface instance or ... | 2 |
Text | Text | add body text and link | 0a67728ab1b18d6767e962268d4fdc85a15f6aed | <ide><path>guide/english/tools/calculators/combinations-and-permutations-calculator/index.md
<ide> title: Combinations and Permutations Calculator
<ide> ---
<ide> ## Combinations and Permutations Calculator
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/tools/calculato... | 1 |
Ruby | Ruby | add newline after keg only reason | 7a2c5c0f2f91bf9e09d9eca993df0a4ec34a8f7b | <ide><path>Library/Homebrew/caveats.rb
<ide> def keg_only_text
<ide> return unless f.keg_only?
<ide>
<ide> s = "This formula is keg-only, which means it was not symlinked into #{HOMEBREW_PREFIX}."
<del> s << "\n\n#{f.keg_only_reason}"
<add> s << "\n\n#{f.keg_only_reason}\n"
<ide> if f.bin.directory? ... | 1 |
Java | Java | integrate webview into fabric on android | 7c066ae9526a0ee570b159b3828ff2b5ff28889e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java
<ide> public class FabricComponents {
<ide> sComponentNames.put("Video", "RCTVideo");
<ide> sComponentNames.put("StickerInputView", "RCTStickerInputView");
<ide> sComponentNames.put("Map", "RCTMap");
<add> sComponentNam... | 1 |
Java | Java | add observable.rangelong & flowable.rangelong | 7e89c1f1a8cde6b461f9a36869b1027961be01a7 | <ide><path>src/main/java/io/reactivex/Flowable.java
<ide> public static Flowable<Integer> range(int start, int count) {
<ide> return RxJavaPlugins.onAssembly(new FlowableRange(start, count));
<ide> }
<ide>
<add> /**
<add> * Returns a Flowable that emits a sequence of Longs within a specified range.
... | 6 |
Javascript | Javascript | use common.fixtures module | 8d3e82fd6c722b8bd41eda828b982d89c2e6ce76 | <ide><path>test/parallel/test-https-agent-session-eviction.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<add>const { readKey } = require('../common/fixtures');
<ide>
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<ide> const assert = require('assert');
<ide> cons... | 1 |
Text | Text | clarify `length` param in `buffer.write` | d03d9a05f0318604d2aa71a1c3dbd6cbca8894e4 | <ide><path>doc/api/buffer.md
<ide> added: v0.1.90
<ide> * `string` {string} String to write to `buf`.
<ide> * `offset` {integer} Number of bytes to skip before starting to write `string`.
<ide> **Default:** `0`.
<del>* `length` {integer} Maximum number of bytes to write. **Default:**
<del> `buf.length - offset`.
<ad... | 1 |
Javascript | Javascript | improve the description | f4fe28bd92b35cbb558502697dfdd72bee435fee | <ide><path>src/ng/document.js
<ide> * @requires $window
<ide> *
<ide> * @description
<del> * A {@link angular.element jQuery (lite)}-wrapped reference to the browser's `window.document`
<del> * element.
<add> * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` element.
<ide> */
... | 1 |
Python | Python | clarify behavior of genfromtxt names field | 0efac01e2b9d9ce40e508f14a1a5d53fef62fbc8 | <ide><path>numpy/lib/npyio.py
<ide> def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
<ide> Which columns to read, with 0 being the first. For example,
<ide> ``usecols = (1, 4, 5)`` will extract the 2nd, 5th and 6th columns.
<ide> names : {None, True, str, sequence}, optional
<del> ... | 1 |
PHP | PHP | fix a test | 1df406b5a689c51b424837e6e64b2e66a5ce8403 | <ide><path>tests/Foundation/FoundationApplicationTest.php
<ide> public function testExceptionHandlingSendsResponseFromCustomHandler()
<ide> public function testNoResponseFromCustomHandlerCallsKernelExceptionHandler()
<ide> {
<ide> $app = new Application;
<add> $app['config'] = array('app.debug' => false);
<ide> ... | 1 |
Python | Python | remove deprecated local_data_dir | 470cdf5bf909a0095195a763de366966981f5db1 | <ide><path>examples/InventoryCount/main.py
<ide> import inventoryCount as mainModule
<ide> import os
<del>from spacy.en import English, LOCAL_DATA_DIR
<del>data_dir = os.environ.get('SPACY_DATA', LOCAL_DATA_DIR)
<add>from spacy.en import English
<ide>
<ide> if __name__ == '__main__':
<ide> """
<ide><path>spacy/en/... | 2 |
PHP | PHP | apply fixes from styleci | 768d3212939dcebba54f9f3304d24dfe315953b7 | <ide><path>src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php
<ide> protected function retrieveUser($request, $channel)
<ide> }
<ide>
<ide> /**
<del> * Retrieve options for a certain channel
<add> * Retrieve options for a certain channel.
<ide> *
<ide> * @param string $channel
<ide> ... | 6 |
Javascript | Javascript | fix typo in parsehooknames.js | 64931821a9df262f2b6475404d025bcff97c3e0a | <ide><path>packages/react-devtools-extensions/src/parseHookNames/parseHookNames.js
<ide> function findHookNames(
<ide> const position = sourceConsumer.originalPositionFor({
<ide> line: lineNumber,
<ide>
<del> // Column numbers are representated differently between tools/engines.
<add> // Co... | 1 |
Ruby | Ruby | use a stylesheet instead of a javascript in test | e63695535e5ce20f1cc75bcebbfed698eceeba64 | <ide><path>railties/test/application/assets_test.rb
<ide> class User < ActiveRecord::Base; raise 'should not be reached'; end
<ide> end
<ide>
<ide> test "the manifest file should be saved by default in the same assets folder" do
<del> app_file "app/assets/javascripts/application.js", "alert();"
<add> ... | 1 |
Javascript | Javascript | add unique glyph names for cff fonts | 8a596ef5d5347f9342cfbde1b1174d38359cbd1c | <ide><path>src/core/cff_parser.js
<ide> var CFFStandardStrings = [
<ide> 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
<ide> ];
<ide>
<add>const NUM_STANDARD_CFF_STRINGS = 391;
<add>
<ide> var CFFParser = (function CFFParserClosure() {
<ide> var CharstringValidationData = [
<ide> n... | 3 |
Javascript | Javascript | fix lint in local-cli | 8dbb025959a560302761e02bad807a3991f9a271 | <ide><path>local-cli/bundle/output/unbundle/as-assets.js
<ide> const writeSourceMap = require('./write-sourcemap');
<ide>
<ide> const {joinModules} = require('./util');
<ide>
<del>const MAGIC_UNBUNDLE_FILENAME = 'UNBUNDLE'; // must not start with a dot, as that won't go into the apk
<add>// must not start with a dot,... | 4 |
Python | Python | remove colorambient from blender exporter | d31d47352a0febb4540a26e916c26324a0189382 | <ide><path>utils/exporters/blender/addons/io_three/constants.py
<ide> TIME = 'time'
<ide> KEYS = 'keys'
<ide>
<del>AMBIENT = 'ambient'
<ide> COLOR = 'color'
<ide> EMISSIVE = 'emissive'
<ide> SPECULAR = 'specular'
<ide>
<ide> SHADING = 'shading'
<ide> COLOR_DIFFUSE = 'colorDiffuse'
<del>COLOR_AMBIENT = 'colorAmbient'
... | 4 |
Text | Text | add docs for commit --change | 5767548fa79342cee94dbb66b9c41671d4a1879f | <ide><path>docs/man/docker-commit.1.md
<ide> docker-commit - Create a new image from a container's changes
<ide> **docker commit**
<ide> [**-a**|**--author**[=*AUTHOR*]]
<ide> [**--help**]
<add>[**-c**|**--change**[= []**]]
<ide> [**-m**|**--message**[=*MESSAGE*]]
<ide> [**-p**|**--pause**[=*true*]]
<ide> CONTAINER [RE... | 2 |
Javascript | Javascript | fix wrong variable name | 9ecb2847374ba334ad6e42a1752065569abe90f1 | <ide><path>script/vsts/get-release-version.js
<ide> async function getReleaseVersion () {
<ide> buildBranch.startsWith('electron-') ||
<ide> buildBranch === 'master' && !process.env.SYSTEM_PULLREQUEST_PULLREQUESTNUMBER
<ide> console.log(`##vso[task.setvariable variable=IsReleaseBranch;isOutput=true]${isReleas... | 1 |
Ruby | Ruby | change query strategy based on adapter | e7f5317ff9696e7e38c56d403ec822ee94aa8e24 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def to_sql(arel, binds = [])
<ide> end
<ide> end
<ide>
<add> # This is used in the StatementCache object. It returns an object that
<add> # can be used to query the database repeatedly.
<add> ... | 4 |
Ruby | Ruby | check mirror urls | 8848857cead43e54a0d2fde85d902096160d95bb | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_formula_urls f
<ide>
<ide> urls = [(f.url rescue nil), (f.head rescue nil)].reject {|p| p.nil?}
<ide>
<add> f.mirrors.each do |m|
<add> mirror = m.values_at :url
<add> urls << (mirror.to_s rescue nil)
<add> end
<add>
<ide> # Check SourceForge urls
<... | 1 |
Java | Java | add client http request and response mocks | c6081031400ddaf1424751ca75c17d572ff808aa | <ide><path>spring-web/src/test/java/org/springframework/web/client/reactive/test/MockClientHttpRequest.java
<add>/*
<add> * Copyright 2002-2016 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 compliance with the ... | 2 |
Python | Python | improve padding side documentation | 9aeb0b9b8ad23edf4aa89ea5ad4139754fa6e49f | <ide><path>src/transformers/tokenization_utils.py
<ide> def encode(
<ide> - 'do_not_truncate': Does not truncate (raise an error if the input sequence is longer than max_length)
<ide> pad_to_max_length: if set to True, the returned sequences will be padded according to the model's padding si... | 1 |
Ruby | Ruby | make `postgresql_version` public | 8ad1eeafc2d4b0d96f0218b5272ea734564bd875 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def column_name_for_operation(operation, node) # :nodoc:
<ide> "average" => "avg",
<ide> }
<ide>
<del> protected
<add> # Returns the version of the connected PostgreSQL server.
<add> def postgresql_ve... | 1 |
PHP | PHP | add new saveorfail and deleteorfail method | c7e09a483aaf00054addee6b1518ae24d9f1e04b | <ide><path>src/ORM/Exception/PersistenceFailedException.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * Redistributions of files must ret... | 3 |
Javascript | Javascript | fix pixel ratio | 3a619a826ce2427b824e062acd5da461e44eef7e | <ide><path>examples/js/nodes/utils/ResolutionNode.js
<ide> THREE.ResolutionNode.prototype.constructor = THREE.ResolutionNode;
<ide>
<ide> THREE.ResolutionNode.prototype.updateFrame = function( delta ) {
<ide>
<del> var size = this.renderer.getSize();
<add> var size = this.renderer.getSize(),
<add> pixelRatio = this.... | 1 |
Javascript | Javascript | add fixer for prefer-assert-iferror.js | d797775fb82caae5f721140625dfb0f984ce929e | <ide><path>test/parallel/test-eslint-prefer-assert-iferror.js
<ide> new RuleTester().run('prefer-assert-iferror', rule, {
<ide> ],
<ide> invalid: [
<ide> {
<del> code: 'if (err) throw err;',
<del> errors: [{ message: 'Use assert.ifError(err) instead.' }]
<add> code: 'require("assert");\n' +
<add>... | 2 |
Javascript | Javascript | reuse memoized result from first pass | 5450dd409863b31fa7ef4dfcf8aeb06ac16c4c10 | <ide><path>packages/react-reconciler/src/ReactFiberBeginWork.new.js
<ide> function updateForwardRef(
<ide> renderLanes,
<ide> );
<ide> hasId = checkDidRenderIdHook();
<del> if (
<del> debugRenderPhaseSideEffectsForStrictMode &&
<del> workInProgress.mode & StrictLegacyMode
<del> ) {
<del> ... | 5 |
PHP | PHP | remove unneeded variable | 29c64cb6c1d8cc712463c63fcf60c0a46fe3455e | <ide><path>src/Illuminate/Database/Concerns/ManagesTransactions.php
<ide> public function transaction(Closure $callback, $attempts = 1)
<ide> }
<ide>
<ide> try {
<del> $this->commit();
<add> if ($this->transactions == 1) {
<add> $this->getPdo()->... | 1 |
Java | Java | add more information in ending marker tags | fe97458b03de3272a0fa67e5e123992397a68e4f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java
<ide> public List<MethodDescriptor> getMethodDescriptors() {
<ide> try {
<ide> return Arguments.makeNativeMap(map);
<ide> } finally {
<del> ReactMarker.logMarker(CONVERT_CONSTANTS_END);
<add> ReactMarker.logMa... | 2 |
Python | Python | keep lowercase configuration | 24b0bb388ae4c85b7e745927a052d0d84f7bc718 | <ide><path>celery/loaders/default.py
<ide> def read_configuration(self):
<ide> return self.setup_settings(usercfg)
<ide>
<ide> def wanted_module_item(self, item):
<del> return item[0].isupper() and not item.startswith('_')
<add> return not item.startswith('_') | 1 |
Javascript | Javascript | fix failing test in ie 10 | 79049b9fee5690b8370c51e0fbb82d7a16b787fc | <ide><path>test/ng/directive/formSpec.js
<ide> describe('form', function() {
<ide> // the issue in the wild, I'm not going to bother to do it
<ide> // now. (i)
<ide>
<del> // IE9 is special and it doesn't fire submit event when form w... | 1 |
Text | Text | fix naming convention for sdist provider packages | e36e061c19d24aeaf80674dd40be13e7049cec53 | <ide><path>dev/README_RELEASE_PROVIDER_PACKAGES.md
<ide> This can be done with the Apache RAT tool.
<ide>
<ide> * Download the latest jar from https://creadur.apache.org/rat/download_rat.cgi (unpack the binary,
<ide> the jar is inside)
<del>* Unpack the release source archive (the `<package + version>-source.tar.gz`... | 1 |
Ruby | Ruby | remove unnecessary qualified constant lookups | 803f4385c6c30217e3d2cf81cbaba92c7bc58476 | <ide><path>activejob/lib/active_job/serializers/array_serializer.rb
<ide> class << self
<ide> alias_method :deserialize?, :serialize?
<ide>
<ide> def serialize(array)
<del> array.map { |arg| ::ActiveJob::Serializers.serialize(arg) }
<add> array.map { |arg| Serializers.serialize(arg) }... | 5 |
Javascript | Javascript | simplify trim fn now that ie9 has string#trim | e6a9f9e1302c1bb8ac75b2e2b5fa9fc617862f7f | <ide><path>src/Angular.js
<ide> function isPromiseLike(obj) {
<ide> }
<ide>
<ide>
<del>var trim = (function() {
<del> // native trim is way faster: http://jsperf.com/angular-trim-test
<del> // but IE doesn't have it... :-(
<del> // TODO: we should move this into IE/ES5 polyfill
<del> if (!String.prototype.trim) {... | 1 |
Python | Python | remove unused code from gannt view | 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2 | <ide><path>airflow/www/views.py
<ide> def gantt(self, session=None):
<ide> d['try_number'] = try_count
<ide> tasks.append(d)
<ide>
<del> task_types = {}
<del> extra_links = {}
<del> for t in dag.tasks:
<del> task_types[t.task_id] = t.task_type
<del> ex... | 1 |
Text | Text | add some missing changelog entries [ci skip] | 313ce30dfaea576f126dd02a067864756f06567b | <ide><path>CHANGELOG.md
<ide>
<ide> - [#17130](https://github.com/emberjs/ember.js/pull/17130) [BUGFIX] Ensure that timers scheduled after a system sleep are fired properly.
<ide> - [#17137](https://github.com/emberjs/ember.js/pull/17137) [BUGFIX] Assert when local variables shadow modifier invocations
<add>- [#17132]... | 1 |
Text | Text | add description for inspector-only console methods | 982c67419b062412a7e8a7040cfd34239c6be7b4 | <ide><path>doc/api/console.md
<ide> undefined
<ide> ### console.debug(data[, ...args])
<ide> <!-- YAML
<ide> added: v8.0.0
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/17033
<add> description: "`console.debug` is now an alias for `console.log`."
<ide> -->
<ide> * `da... | 1 |
Text | Text | add a subsystems header in pull-requests.md | 8f1e4d37bf33b8a4d3e09bffc1bcbb04c869eba0 | <ide><path>doc/guides/contributing/pull-requests.md
<ide> so that you can make the actual changes. This is where we will start.
<ide> * [CI Testing](#ci-testing)
<ide> * [Waiting Until the Pull Request Gets Landed](#waiting-until-the-pull-request-gets-landed)
<ide> * [Check Out the Collaborator Guide](#check-out-... | 2 |
Go | Go | fix random errors in dockersuite.testnetworknat | 769df832a39e2507fb46cb8896666a1c3197ff0b | <ide><path>integration-cli/docker_cli_nat_test.go
<ide> import (
<ide> "fmt"
<ide> "net"
<ide> "os/exec"
<del> "strconv"
<ide> "strings"
<ide>
<ide> "github.com/go-check/check"
<ide> )
<ide>
<ide> func startServerContainer(c *check.C, proto string, port int) string {
<del> cmd := []string{"-d", "-p", fmt.Sprintf... | 1 |
Javascript | Javascript | remove unused code | 34afcc6fd91a522ce9d02737c80d43088ccb6b6a | <ide><path>lib/internal/priority_queue.js
<ide>
<ide> const {
<ide> Array,
<del> ArrayPrototypeIndexOf,
<ide> Symbol,
<ide> } = primordials;
<ide>
<ide> module.exports = class PriorityQueue {
<ide> }
<ide> }
<ide>
<del> remove(value) {
<del> const heap = this[kHeap];
<del> const pos = ArrayPrototyp... | 2 |
Ruby | Ruby | use default_cipher constant in messageencryptor | 4c484a69e222ddbc3226311e0dc3551481aa4bbb | <ide><path>activesupport/lib/active_support/message_encryptor.rb
<ide> def initialize(secret, *signature_key_or_options)
<ide> sign_secret = signature_key_or_options.first
<ide> @secret = secret
<ide> @sign_secret = sign_secret
<del> @cipher = options[:cipher] || "aes-256-cbc"
<add> @cipher ... | 1 |
Ruby | Ruby | fix rubocop style | cbae10a732f18bd8b96edd114a5aa7904cdbb433 | <ide><path>Library/Homebrew/test/test_custom_command.rb
<ide> def test_custom_command
<ide> cmd = "int-test-#{rand}"
<ide> file = "#{path}/brew-#{cmd}"
<ide>
<del> File.open(file, "w") { |f| f.write "#!/bin/sh\necho 'I am #{cmd}'\n" }
<add> File.open(file, "w") do |f|
<add> f.write "#!/bin... | 1 |
Text | Text | revert incorrect change on readable._read | 2f1ae9eebb65db3ae2bffd9e5dde6ff0a8b66219 | <ide><path>doc/api/stream.md
<ide> const myReadable = new Readable({
<ide> #### readable.\_read(size)
<ide> <!-- YAML
<ide> added: v0.9.4
<del>changes:
<del> - version: v10.0.0
<del> pr-url: https://github.com/nodejs/node/pull/17979
<del> description: Call `_read()` only once per microtick.
<ide> -->
<ide>
<ide... | 1 |
Python | Python | implement threasholds classes | a2f97d56d3824145043c577c2423c93f650f0873 | <ide><path>glances/plugins/glances_plugin.py
<ide> def get_alert(self,
<ide> # Manage action
<ide> self.manage_action(stat_name, ret.lower(), header, action_key)
<ide>
<del> # Default is ok
<add> # Default is 'OK'
<ide> return ret + log_str
<ide>
<ide> def manage_action(self,... | 3 |
Python | Python | remove unrelated ec2 references in ecsoperator | becedd5af8df01a0210e0a3fa78e619785f39908 | <ide><path>airflow/providers/amazon/aws/operators/ecs.py
<ide> def stop_task(self, cluster, task, reason: str) -> Dict:
<ide>
<ide> class ECSOperator(BaseOperator): # pylint: disable=too-many-instance-attributes
<ide> """
<del> Execute a task on AWS EC2 Container Service
<add> Execute a task on AWS ECS (Ela... | 1 |
Go | Go | remove unnecessary check for number of commands | dd7e59a40a4c93070f71adb3ec74021241586c21 | <ide><path>integration-cli/docker_cli_help_test.go
<ide> func (s *DockerSuite) TestHelpTextVerify(c *check.C) {
<ide> c.Fatal(err)
<ide> }
<ide> }
<del>
<del> // Number of commands for standard release and experimental release
<del> standard := 41
<del> experimental := 1
<del> expected := standard + experi... | 1 |
Ruby | Ruby | fix new year heisenbug | db49b7dc94a744fd53eaf80107995ca55f9415e8 | <ide><path>actionpack/test/controller/cookie_test.rb
<ide> def test_cookies_persist_throughout_request
<ide> def test_permanent_cookie
<ide> get :set_permanent_cookie
<ide> assert_match /Jamie/, @response.headers["Set-Cookie"]
<del> assert_match %r(#{20.years.from_now.year}), @response.headers["Set-Cookie"... | 1 |
Javascript | Javascript | add finishassets to progressplugin | 58d6c26197109eaff8dca5ae9a1bdcb179b5317e | <ide><path>lib/ProgressPlugin.js
<ide> class ProgressPlugin {
<ide> afterOptimizeChunkAssets: "after chunk asset optimization",
<ide> optimizeAssets: "asset optimization",
<ide> afterOptimizeAssets: "after asset optimization",
<add> finishAssets: "finish assets",
<add> afterFinishAssets: "after finish... | 2 |
Text | Text | fix instructions for installing swiftshader. | 1df88eb82214e79c5c3fdd67453f06c433bc49dc | <ide><path>research/cognitive_mapping_and_planning/README.md
<ide> citing the following paper:
<ide> mkdir -p deps
<ide> git clone --recursive https://github.com/google/swiftshader.git deps/swiftshader-src
<ide> cd deps/swiftshader-src && git checkout 91da6b00584afd7dcaed66da88e2b617429b3950
<add> git su... | 1 |
Javascript | Javascript | increase timeout for tests | 911c64ff3a5351424b5f74b1f65c44fe46e1b07b | <ide><path>test/HotTestCases.template.js
<ide> const describeCases = config => {
<ide> done();
<ide> });
<ide> },
<del> 10000
<add> 20000
<ide> );
<ide>
<ide> const { it: _it, getNumberOfTests } = createLazyTestEnv(
<ide> jasmine.getEnv(),
<del> 10000
<add> ... | 1 |
Javascript | Javascript | normalize view and detail properties | 5fa001b12c495c7b8f25703c0da2a7348ffcf2a6 | <ide><path>src/browser/syntheticEvents/SyntheticUIEvent.js
<ide>
<ide> var SyntheticEvent = require('SyntheticEvent');
<ide>
<add>var getEventTarget = require('getEventTarget');
<add>
<ide> /**
<ide> * @interface UIEvent
<ide> * @see http://www.w3.org/TR/DOM-Level-3-Events/
<ide> */
<ide> var UIEventInterface = {
... | 1 |
Text | Text | move sam ruby to emeritus | b31c6c91ec4bb5baaa600f1f9be698051b1b1774 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Ricky Zhou** <0x19951125@gmail.com> (he/him)
<ide> * [ronag](https://github.com/ronag) -
<ide> **Robert Nagy** <ronagy@icloud.com>
<del>* [rubys](https://github.com/rubys) -
<del>**Sam Ruby** <rubys@intert... | 1 |
Text | Text | review some changelog entries [ci skip] | 4e363b1c0e31da7b148feb5bbf036ed690afd08e | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<add>
<ide> * After extraction of mass-assignment attributes (which protects [id, type]
<del> by default) we can pass id to update_attributes and it will update
<add> by default) we can pass id to `update_attributes` and it will update
<i... | 1 |
Javascript | Javascript | add a preference to set the sidebarview on load | c53bcb29926ac09b563b7de6d555f964f4abf660 | <ide><path>web/default_preferences.js
<ide> var DEFAULT_PREFERENCES = {
<ide> showPreviousViewOnLoad: true,
<ide> defaultZoomValue: '',
<del> ifAvailableShowOutlineOnLoad: false,
<add> sidebarViewOnLoad: 0,
<ide> enableHandToolOnLoad: false,
<ide> enableWebGL: false
<ide> };
<ide><path>web/preferences.js
<ide... | 3 |
PHP | PHP | unskip most of the sqlserver tests | 9d685fef0431330add95a8168b5c3a5e40b28218 | <ide><path>tests/TestCase/Database/Driver/SqlserverTest.php
<ide> class SqlserverTest extends TestCase
<ide> public function setUp()
<ide> {
<ide> parent::setUp();
<del> $this->skipUnless(defined('PDO::SQLSRV_ENCODING_UTF8'), 'SQL Server extension not present');
<add> $this->missingExtensi... | 2 |
Python | Python | add support for triggering jobs by name | a1845c68f9a04e61dd99ccc0a23d17a277babf57 | <ide><path>airflow/providers/databricks/hooks/databricks.py
<ide> import sys
<ide> import time
<ide> from time import sleep
<del>from typing import Dict
<add>from typing import Any, Dict, List, Optional
<ide> from urllib.parse import urlparse
<ide>
<ide> import requests
<ide> INSTALL_LIBS_ENDPOINT = ('POST', 'api/2.0/... | 4 |
Javascript | Javascript | remove code-climate complains | 1388cc09b4130ac4266de2e58ef3918b524b4d4b | <ide><path>Brocfile.js
<ide>
<ide> var fs = require('fs');
<ide> var util = require('util');
<del>var path = require('path');
<ide> var pickFiles = require('broccoli-static-compiler');
<ide> var transpileES6 = require('broccoli-es6-module-transpiler');
<ide> var mergeTrees = require('broccoli-merge-trees');
<ide> var... | 1 |
Javascript | Javascript | fix problems with graceful-fs bug | f04882f8e4b5755cc63b0b9a87672627e00ece51 | <ide><path>packager/react-packager/src/DependencyResolver/fastfs.js
<ide> const {EventEmitter} = require('events');
<ide> const fs = require('graceful-fs');
<ide> const path = require('path');
<ide>
<del>const open = Promise.denodeify(fs.open);
<add>// workaround for https://github.com/isaacs/node-graceful-fs/issues/5... | 1 |
Javascript | Javascript | fix bailout for writehead | b9960eefc2093ea639353171189652b7cf116326 | <ide><path>lib/_http_server.js
<ide> ServerResponse.prototype._implicitHeader = function() {
<ide> this.writeHead(this.statusCode);
<ide> };
<ide>
<del>ServerResponse.prototype.writeHead = function(statusCode) {
<del> var headers, headerIndex;
<add>ServerResponse.prototype.writeHead = function(statusCode, reason, o... | 1 |
Ruby | Ruby | prevent string allocations | 38251d2e33ccdfeee7ddbeeba5737c2a36911606 | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> class Request < Rack::Request
<ide> ENV_METHODS.each do |env|
<ide> class_eval <<-METHOD, __FILE__, __LINE__ + 1
<ide> def #{env.sub(/^HTTP_/n, '').downcase} # def accept_charset
<del> @env["#{env}"] # @... | 1 |
Go | Go | move ulimit options to runconfig opts | 5adbea7075b2fda6ea9947d131aaa2a5db0c1295 | <ide><path>api/client/build.go
<ide> import (
<ide> flag "github.com/docker/docker/pkg/mflag"
<ide> "github.com/docker/docker/pkg/progress"
<ide> "github.com/docker/docker/pkg/streamformatter"
<del> "github.com/docker/docker/pkg/ulimit"
<ide> "github.com/docker/docker/pkg/urlutil"
<ide> "github.com/docker/docker/r... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.