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 |
|---|---|---|---|---|---|
Python | Python | remove unnecessary test from test set | 1be8c3588e0bf28bdc26f3c12ec71d754ecc0625 | <ide><path>numpy/core/tests/test_umath.py
<ide> def check(x, rtol):
<ide>
<ide> x_series = np.logspace(np.log10(info.tiny/eps).real, -3, 200,
<ide> endpoint=False)
<del> x_basic = np.logspace(dtype(-3.).real, -1e-8, 10)
<add> x_basic = np.logspace(dtype(-3.).real, 0... | 1 |
Text | Text | add notebook on fine-tuning bart | 1f5ea9e04a27171a5034a61999bc6359d19fe4ef | <ide><path>docs/source/community.md
<ide> This page regroups resources around 🤗 Transformers developed by the community
<ide> |[Evaluate LED on Arxiv](https://github.com/patrickvonplaten/notebooks/blob/master/LED_on_Arxiv.ipynb) | How to effectively evaluate LED on long-range summarization | [Patrick von Platen](https... | 1 |
Java | Java | use modern language features in tests | f8a5a8d7be6040e60c21107c14fc394e67e75e6b | <ide><path>integration-tests/src/test/java/org/springframework/context/annotation/jsr330/ClassPathBeanDefinitionScannerJsr330ScopeIntegrationTests.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Ap... | 91 |
Go | Go | add missing error check | f84dc1e90858924f9fafe89e81005842a6b4f166 | <ide><path>utils.go
<ide> func MergeConfig(userConf, imageConf *Config) error {
<ide> } else {
<ide> for _, imagePortSpec := range imageConf.PortSpecs {
<ide> found := false
<del> imageNat, _ := parseNat(imagePortSpec)
<add> imageNat, err := parseNat(imagePortSpec)
<add> if err != nil {
<add> return err
... | 1 |
Javascript | Javascript | add migration middleware to map route | 6b9044febd976e49730d34ff94754a7f67648c8e | <ide><path>app.js
<ide> app.get('/nonprofits/getNonprofitList', nonprofitController.showAllNonprofits);
<ide>
<ide> app.get('/nonprofits-form', resourcesController.nonprofitsForm);
<ide>
<del>app.get('/map', challengeMapController.challengeMap);
<add>app.get('/map',
<add> userController.userMigration,
<add> challen... | 1 |
Javascript | Javascript | add harmony compatiblity also in case of import | 0bcad134cbca36c36451c27cf198ede881f9e805 | <ide><path>lib/dependencies/HarmonyImportDependencyParserPlugin.js
<ide> Author Tobias Koppers @sokra
<ide> */
<ide> var AbstractPlugin = require("../AbstractPlugin");
<add>var HarmonyCompatiblilityDependency = require("./HarmonyCompatiblilityDependency");
<ide> var HarmonyImportDependency = require("./HarmonyImportDe... | 1 |
Javascript | Javascript | disable the test for now | 7ab501ce9d3556641a086f208dd76e51c44742e7 | <ide><path>spec/git-repository-async-spec.js
<ide> describe('GitRepositoryAsync', () => {
<ide> })
<ide> })
<ide>
<del> describe('.checkoutHeadForEditor(editor)', () => {
<add> // @joshaber: Disabling for now. There seems to be some race with path
<add> // subscriptions leading to intermittent test failures, ... | 1 |
Ruby | Ruby | cache the loaded relations | 3c5a7dcaf55f427f3a48e206feb06410d011ca4f | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def initialize(klass, relation, readonly = false, preload = [], eager_load = [])
<ide> @readonly = readonly
<ide> @associations_to_preload = preload
<ide> @eager_load_associations = eager_load
<add> @loaded = false
<ide> end
<ide>
<... | 2 |
Javascript | Javascript | change default elixir file | f9d4bcd13dd4c6a1fbc990af0a4a404c9cf1a6cd | <ide><path>gulpfile.js
<ide> var elixir = require('laravel-elixir');
<ide>
<ide> elixir(function(mix) {
<ide> mix.sass("bootstrap.scss")
<del> .routes()
<del> .events()
<ide> .phpUnit();
<ide> }); | 1 |
Text | Text | remove references to react-page | 470a7d11ee002392a7fa58e24b27f8578cc319e4 | <ide><path>docs/docs/08-tooling-integration.md
<ide> The open-source community has built tools that integrate JSX with several build
<ide> that support `*.tmLanguage`.
<ide> * Linting provides accurate line numbers after compiling without sourcemaps.
<ide> * Elements use standard scoping so linters can find usage o... | 2 |
Text | Text | fix username key in database readme | 6d4e5d2d508613e8873b8a8c6e7d93b04de20e2c | <ide><path>src/Database/README.md
<ide> use Cake\Database\Driver\Mysql;
<ide>
<ide> $driver = new Mysql([
<ide> 'database' => 'test',
<del> 'login' => 'root',
<add> 'username' => 'root',
<ide> 'password' => 'secret'
<ide> ]);
<ide> $connection = new Connection([ | 1 |
Ruby | Ruby | add test for build.include? | 3ff8be1216388817dda2b4bb95aeaa5c3d3d5a6b | <ide><path>Library/Homebrew/rubocops/lines_cop.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> problem "Don't duplicate 'with': Use `build.with? \"#{match[1]}\"` to check for \"--with-#{match[1]}\""
<ide> end
<ide>
<del> # find_instance_method_call(bod... | 2 |
Javascript | Javascript | remove `ensuredirsync` from mu blueprints tests | 3f3f30b33a1926d156a7b26cb8fcede356ff9ea9 | <ide><path>node-tests/blueprints/acceptance-test-test.js
<ide> const modifyPackages = blueprintHelpers.modifyPackages;
<ide>
<ide> const chai = require('ember-cli-blueprint-test-helpers/chai');
<ide> const expect = chai.expect;
<del>const fs = require('fs-extra');
<ide>
<ide> const generateFakePackageManifest = requi... | 18 |
PHP | PHP | add `dropconstrainedforeignid` method | 86d08e4b743a37269790482a516936e63f4e881b | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function dropForeign($index)
<ide> return $this->dropIndexCommand('dropForeign', 'foreign', $index);
<ide> }
<ide>
<add> /**
<add> * Indicate that the given column and foreign key should be dropped.
<add> *
<add> * @param ... | 2 |
Python | Python | add `equal_nan` argument to allclose | e1d3a0c66d719fe908de317c08b1234b71af196f | <ide><path>numpy/core/numeric.py
<ide> def identity(n, dtype=None):
<ide> from numpy import eye
<ide> return eye(n, dtype=dtype)
<ide>
<del>def allclose(a, b, rtol=1.e-5, atol=1.e-8):
<add>def allclose(a, b, rtol=1.e-5, atol=1.e-8, equal_nan=False):
<ide> """
<ide> Returns True if two arrays are elemen... | 2 |
Javascript | Javascript | fix safari script test count | a277218db580eb5e7aec0594a823e766a937b363 | <ide><path>test/integration/production/test/index.test.js
<ide> describe('Production Usage', () => {
<ide> if (browserName === 'safari') {
<ide> const elements = await browser.elementsByCss('link[rel=preload]')
<ide> // 4 page preloads and 5 existing preloads for _app, commons, main, etc
<del> ... | 1 |
Javascript | Javascript | remove appendchecked detect and stranded markup | 1e5b14a131fca29b97830168a1d743d007d1d761 | <ide><path>src/support.js
<ide> jQuery.support = (function() {
<ide>
<del> var support, all, a, select, opt, input, fragment,
<add> var support, a, select, opt, input, fragment,
<ide> div = document.createElement("div");
<ide>
<del> // Setup
<del> div.setAttribute( "className", "t" );
<del> div.innerHTML = " <link... | 1 |
Ruby | Ruby | store the enum values in the defined_enum constant | 5620e62f3f1920e70199a870a0a3c4feaedb9f98 | <ide><path>activerecord/lib/active_record/enum.rb
<ide> module ActiveRecord
<ide> #
<ide> # Conversation.where("status <> ?", Conversation.statuses[:archived])
<ide> module Enum
<del> DEFINED_ENUMS = [] # :nodoc:
<add> DEFINED_ENUMS = {} # :nodoc:
<ide>
<del> def enum_attribute?(attr_name) # :nodoc:
<... | 1 |
PHP | PHP | fix incorrect docs | 4e168ca004ee8b0a5cdba7271d897c29cd652fc0 | <ide><path>lib/Cake/View/Helper/TimeHelper.php
<ide> public function toRSS($dateString, $timezone = null) {
<ide> }
<ide>
<ide> /**
<del> * Formats date for RSS feeds
<add> * Formats a date into a phrase expressing the relative time.
<ide> *
<ide> * ## Addition options
<ide> * | 1 |
Javascript | Javascript | add integrity to html property config | 68eb1a6fb6266d128fd87cfac6a201f6eba13308 | <ide><path>src/renderers/dom/shared/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> icon: null,
<ide> id: MUST_USE_PROPERTY,
<ide> inputMode: MUST_USE_ATTRIBUTE,
<add> integrity: null,
<ide> is: MUST_USE_ATTRIBUTE,
<ide> keyParams: MUST_USE_ATTRIBUTE,
<ide> keyType: MUST_US... | 1 |
Ruby | Ruby | remove unused block local var `cli` | a0550aee11f0c849c071f65c94d7442ef84c4ed9 | <ide><path>activerecord/test/cases/associations/has_many_associations_test.rb
<ide> def test_association_with_rewhere_doesnt_set_inverse_instance_key
<ide>
<ide> test "first_or_initialize adds the record to the association" do
<ide> firm = Firm.create! name: "omg"
<del> client = firm.clients_of_firm.where(nam... | 1 |
Text | Text | fix path in tf-slim readme | 687e6fdfe2b925de362e9ef68b0b8a03ead4e277 | <ide><path>slim/README.md
<ide> To verify that this has worked, execute the following commands; it should run
<ide> without raising any errors.
<ide>
<ide> ```
<del>cd $HOME/workspace/slim
<add>cd $HOME/workspace/models/slim
<ide> python -c "from nets import cifarnet; mynet = cifarnet.cifarnet"
<ide> ```
<ide> | 1 |
Javascript | Javascript | remove weird white space not present locally | 11821e40aa6ab6985da39198fe7845984732b72e | <ide><path>common/app/routes/Challenges/rechallenge/transformers.js
<ide> export function applyTransformers(file, transformers = _transformers) {
<ide> return obs.flatMap(file => castToObservable(transformer(file)));
<ide> },
<ide> Observable.of(file)
<del> );
<add> );
<ide> } | 1 |
Python | Python | add kaggle otto example | 6e3ec8ef69bd01e86d2575e9b7d84b35e549e3d8 | <ide><path>examples/kaggle_otto_nn.py
<add>from __future__ import absolute_import
<add>from __future__ import print_function
<add>
<add>import numpy as np
<add>import pandas as pd
<add>
<add>from keras.models import Sequential
<add>from keras.layers.core import Dense, Dropout, Activation
<add>from keras.layers.normaliz... | 1 |
Text | Text | update data analysis with python links | b74b32385bcc3bb3104729ff73339df00dc8016e | <ide><path>curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/parsing-html-and-saving-data.md
<ide> dashedName: parsing-html-and-saving-data
<ide>
<ide> More resources:
<ide>
<del>- [Notebooks on GitHub](https://github.com/ine-rmotr-curriculum/RDP-Reading-Data-with-Python-an... | 4 |
Python | Python | fix modelcheckpoint callback | 63f9a7955d81894a643bc292bcd522b3a391676a | <ide><path>keras/callbacks.py
<ide> class ModelCheckpoint(Callback):
<ide> def __init__(self, filepath, monitor='val_loss', verbose=0, save_best_only=False):
<ide> super(Callback, self).__init__()
<ide>
<del> self.monitor
<add> self.monitor = monitor
<ide> self.verbose = verbo... | 1 |
Javascript | Javascript | accept windows relative path | b36c581d5bd7e6087aab794af222e122e5a32f03 | <ide><path>lib/internal/modules/cjs/loader.js
<ide> const {
<ide> CHAR_9,
<ide> } = require('internal/constants');
<ide>
<add>const isWindows = process.platform === 'win32';
<add>
<ide> function stat(filename) {
<ide> filename = path.toNamespacedPath(filename);
<ide> const cache = stat.cache;
<ide> Module._findP... | 3 |
PHP | PHP | fix docblocks, remove unnecessary array checks | bc115363d9940f10d58cbca2e65bb83027a620eb | <ide><path>src/Illuminate/Routing/PendingResourceRegistration.php
<ide> public function names(array $names)
<ide> }
<ide>
<ide> /**
<del> * Set the methods the controller should exclude.
<add> * Set the route name for controller action.
<ide> *
<ide> * @param string $method
<ide> * @pa... | 1 |
Java | Java | add utf8 problem+json media type constant | 3dd6069578a2aea3f87bcfeec10d9156e038c4f5 | <ide><path>spring-web/src/main/java/org/springframework/http/MediaType.java
<ide> public class MediaType extends MimeType implements Serializable {
<ide> * @since 5.0
<ide> */
<ide> public final static String APPLICATION_PROBLEM_JSON_VALUE = "application/problem+json";
<add>
<add> /**
<add> * Public constant med... | 1 |
Javascript | Javascript | add logs in the getviewmanagerconfig | 3d0e974ed86fb66cb2d8cab7f7c95d6a2e530197 | <ide><path>Libraries/ReactNative/PaperUIManager.js
<ide> function getViewManagerConfig(viewManagerName: string): any {
<ide> viewManagerConfigs[
<ide> viewManagerName
<ide> ] = NativeUIManager.getConstantsForViewManager(viewManagerName);
<add>
<add> if (viewManagerConfigs[viewManagerName] === u... | 1 |
Python | Python | add versioning system to fast tokenizer files | 786ced36390e9d1c4c5c32a81d7f00c36913aa2a | <ide><path>src/transformers/file_utils.py
<ide> def _resumable_file_manager() -> "io.BufferedWriter":
<ide> return cache_path
<ide>
<ide>
<add>def get_list_of_files(
<add> path_or_repo: Union[str, os.PathLike],
<add> revision: Optional[str] = None,
<add> use_auth_token: Optional[Union[bool, str]] = None,... | 4 |
Javascript | Javascript | add regex check to test-module-loading | a4c3e31ac7c1d3092c7cd7fa306ce3f3382dc5fc | <ide><path>test/sequential/test-module-loading.js
<ide> console.error('test name clashes');
<ide> const my_path = require('../fixtures/path');
<ide> assert.ok(my_path.path_func instanceof Function);
<ide> // this one does not exist and should throw
<del>assert.throws(function() { require('./utils'); });
<add>assert.thr... | 1 |
PHP | PHP | convert closures to arrow functions | 50bc15f87a78d5f336b2682195409682c75c9b11 | <ide><path>src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
<ide> public function bootstrap(Application $app)
<ide> // Finally, we will set the application's environment based on the configuration
<ide> // values that were loaded. We will pass a callback which will be used to get
<ide> ... | 2 |
Text | Text | fix mac os x installation instructions url | 1f8b679b18984eeecc98d6de79a77cbd405cd56d | <ide><path>README.md
<ide> Note that some methods are community contributions and not yet officially suppor
<ide>
<ide> * [Ubuntu 12.04 and 12.10 (officially supported)](http://docs.docker.io/en/latest/installation/ubuntulinux/)
<ide> * [Arch Linux](http://docs.docker.io/en/latest/installation/archlinux/)
<del>* [MacO... | 1 |
Ruby | Ruby | add test for string#get_make_var | 866b3cf6a891b4d58969fc4471b7b4cb0cd39ed2 | <ide><path>Library/Homebrew/test/test_inreplace.rb
<ide> def test_remove_make_vars
<ide> s1.remove_make_var! ["FLAG", "FLAG2"]
<ide> assert_equal "OTHER=def\nOTHER2=def", s1
<ide> end
<add>
<add> def test_get_make_var
<add> s = "CFLAGS = -Wall -O2\nLDFLAGS = -lcrypto -lssl"
<add> s.extend(StringInrepla... | 1 |
Mixed | Java | remove ios platform check for running devtools | 1c290d69c164f34ee00f57f92a203341aa202e26 | <ide><path>Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js
<ide> function setUpCollections(): void {
<ide> function setUpDevTools(): void {
<ide> if (__DEV__) {
<ide> // not when debugging in chrome
<del> if (!window.document && require('Platform').OS === 'ios') {
<add> if (!wi... | 9 |
Python | Python | accept callable as message in assert_ | b0dd6901d54e687571e44c4fa1d9c7db0d00e299 | <ide><path>numpy/core/tests/test_umath.py
<ide> def test_minmax_blocked(self):
<ide> for i in range(inp.size):
<ide> inp[:] = np.arange(inp.size, dtype=dt)
<ide> inp[i] = np.nan
<del> self.assertTrue(np.isnan(inp.max()),
<del> ... | 2 |
Java | Java | fix jsonobjectdecoder with '[' starting chunk | 4021d239ab15dfd119d248c9e830ed2f2f935985 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/JsonObjectDecoder.java
<ide> else if (Character.isWhitespace(c)) {
<ide> }
<ide> }
<ide>
<del> if (this.input.readableBytes() == 0) {
<del> this.index = 0;
<del> }
<ide> return Flux.fromIterable(chunks);
<ide> }
<ide>
<i... | 2 |
Text | Text | add cigtm to `glossary.md` | 815e74b80d0f360ba89fa4fa9c4938580f9b9ea0 | <ide><path>glossary.md
<ide> You may also need to check <https://chromium.googlesource.com/chromiumos/docs/+/HEAD/glossary.md>.
<ide>
<add>* CITGM: "The Canary in the Goldmine". CITGM is a simple tool for pulling down
<add> an arbitrary module from npm and testing it using a specific version of the
<add> node runtim... | 1 |
PHP | PHP | fix uuid warning for invalid ones | 12cf0e61fbd776cdc883d4635641e150ea8c2be1 | <ide><path>src/Database/Type/BinaryUuidType.php
<ide> class BinaryUuidType extends BaseType
<ide> *
<ide> * @param mixed $value The value to convert.
<ide> * @param \Cake\Database\DriverInterface $driver The driver instance to convert with.
<del> * @return string|resource
<add> * @return string|r... | 2 |
Ruby | Ruby | remove form feed properly | 4401ee08191fa84b339ae4af33719f71c6a6bd17 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def run
<ide> failure = testcase.add_element 'failure' if step.failed?
<ide> if step.has_output?
<ide> # Remove invalid XML CData characters from step output.
<del> output = REXML::CData.new step.output.gsub(/\000\00c\e/, '')
<add> ... | 1 |
Javascript | Javascript | fix spelling of `dependon` | 093a9bed160d3920e60fd773e441e24d7e24bffe | <ide><path>lib/optimize/SplitChunksPlugin.js
<ide> module.exports = class SplitChunksPlugin {
<ide> "SplitChunksPlugin\n" +
<ide> `Cache group "${cacheGroup.key}" conflicts with existing chunk.\n` +
<ide> `Both have the same name "${name}" and existing chunk is not a parent of the ... | 1 |
Python | Python | add documentation for multi-label classification | 4176bc161c359d0bcda0a3967e8ea711ac35642d | <ide><path>src/transformers/file_utils.py
<ide> def _prepare_output_docstrings(output_type, config_class):
<ide> """
<ide>
<ide> PT_SEQUENCE_CLASSIFICATION_SAMPLE = r"""
<del> Example::
<add> Example of single-label classification::
<ide>
<ide> >>> from transformers import {processor_class}, {model_clas... | 1 |
Javascript | Javascript | add additional pageprops check | ce56b601665a972f91ec5e6bf7ebd918bba2dcc0 | <ide><path>packages/next/client/index.js
<ide> if (
<ide> !(
<ide> page === '/_error' &&
<ide> hydrateProps &&
<add> hydrateProps.pageProps &&
<ide> hydrateProps.pageProps.statusCode === '404'
<ide> )
<ide> ) {
<ide><path>test/integration/no-page-props/pages/_app.js
<add>function App({ Component, pag... | 6 |
Ruby | Ruby | prefer file.extname to regexp | ce367e711be8e4f2a08357705dafa5bc375da99b | <ide><path>Library/Homebrew/formulary.rb
<ide> class FromPathLoader < FormulaLoader
<ide> def initialize path
<ide> # require allows filenames to drop the .rb extension, but everything else
<ide> # in our codebase will require an exact and fullpath.
<del> path = "#{path}.rb" unless path =~ /\.rb$/
... | 1 |
Go | Go | catch sigwinch client | deb9963e6e5871d53ab1d75c90bbf2da53ffcb36 | <ide><path>commands.go
<ide> import (
<ide> "net/http/httputil"
<ide> "net/url"
<ide> "os"
<add> "os/signal"
<ide> "path/filepath"
<ide> "reflect"
<ide> "strconv"
<ide> "strings"
<add> "syscall"
<ide> "text/tabwriter"
<ide> "time"
<ide> "unicode"
<ide> var (
<ide> func ParseCommands(args ...string) error {
<i... | 1 |
Javascript | Javascript | allow an index argument | 468dd028e0bd0dad93f2edba8e14352f0706f4ed | <ide><path>moment.js
<ide> return;
<ide> }
<ide>
<del> moment[field] = function (format) {
<del> var i, m, str,
<del> method = moment.fn._lang[field] || Language.prototype[field],
<del> results = [];
<del>
<del> for (i = 0; i < count; i++) ... | 2 |
Python | Python | remove unnecessary helper function | 949315787a51eb86db0f8a19b4c257a0ef739f32 | <ide><path>numpy/fft/fftpack.py
<ide> __all__ = ['fft', 'ifft', 'rfft', 'irfft', 'hfft', 'ihfft', 'rfftn',
<ide> 'irfftn', 'rfft2', 'irfft2', 'fft2', 'ifft2', 'fftn', 'ifftn']
<ide>
<del>from numpy.core import asarray, zeros, swapaxes, shape, conjugate, \
<del> take
<add>import numpy as np
<add>from num... | 1 |
Python | Python | rearrange methods per style guildelines | 31650de24c545812d8f8542a205a257cbddea277 | <ide><path>libcloud/common/gandi_live.py
<ide> def success(self):
<ide>
<ide> return True
<ide>
<del> # Errors are not described at all in Gandi's official documentation.
<del> # It appears when an error arises, a JSON object is returned along with
<del> # an HTTP 4xx class code. The object is struc... | 1 |
Javascript | Javascript | remove annotate since it's not public | 6aee2938a71c99fdd35639725c6900347999f658 | <ide><path>test/testabilityPatch.js
<ide> function dealoc(obj) {
<ide> }
<ide>
<ide> extend(angular, {
<del> 'annotate': annotate,
<ide> 'element': jqLite,
<ide> 'compile': compile,
<ide> 'scope': createScope, | 1 |
Ruby | Ruby | define assert_empty for ruby <= 1.8 | 267ffddbd3042127d0c8b88580ba12df960981d0 | <ide><path>Library/Homebrew/test/testing_env.rb
<ide> def assert_version_nil url
<ide> assert_nil Version.parse(url)
<ide> end
<ide> end
<add>
<add>module Test::Unit::Assertions
<add> def assert_empty(obj, msg=nil)
<add> assert_respond_to(obj, :empty?, msg)
<add> assert(obj.empty?, msg)
<add> end if RUBY_... | 1 |
Python | Python | restore tokenization timing in language.evaluate | e750c1760c5ad4324e606c8dcc528d1b735d3941 | <ide><path>spacy/language.py
<ide> def evaluate(
<ide> scorer = Scorer(**kwargs)
<ide> # reset annotation in predicted docs and time tokenization
<ide> start_time = timer()
<add> # this is purely for timing
<add> for eg in examples:
<add> self.make_doc(eg.reference.t... | 1 |
Go | Go | set -500 oom score for test daemons | 561b8014c022bede412aee47e89cc11b648316ac | <ide><path>testutil/daemon/daemon.go
<ide> type Daemon struct {
<ide> DefaultAddrPool []string
<ide> SubnetSize uint32
<ide> DataPathPort uint32
<add> OOMScoreAdjust int
<ide> // cached information
<ide> CachedInfo types.Info
<ide> }
<ide> func New(t testing.TB, ops ...Option) *Daemon {
<ide> }
<ide> ... | 2 |
Javascript | Javascript | resolve the char->glyphs mapping issue | c9e0b056782a306da7f980db00388e73e0798572 | <ide><path>PDFFont.js
<ide> var fontCount = 0;
<ide> var Fonts = {
<ide> _active: null,
<ide> get active() {
<del> return this._active || { encoding: {} };
<add> return this._active || { encoding: [] };
<ide> },
<ide>
<ide> set active(aName) {
<ide><path>pdf.js
<ide> var Lexer = (function() {
<ide> ... | 3 |
Python | Python | add note about --force flag to error message | a3ddbc0444c1f9ec49e59d8c58b1bb06fe595e1a | <ide><path>spacy/cli/package.py
<ide> def create_dirs(package_path, force):
<ide> shutil.rmtree(unicode_(package_path))
<ide> else:
<ide> util.sys_exit(unicode_(package_path),
<del> "Please delete the directory and try again.",
<add> "Please delete the direc... | 1 |
Java | Java | add null check for gesture ended notifier | 36c4e42d82498a37b023f6a162b871581254ff2b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.java
<ide>
<ide> import android.view.MotionEvent;
<ide> import android.view.View;
<add>import com.facebook.react.uimanager.RootView;
<ide> import com.facebook.react.uimanager.RootViewUtil;
<ide>
<ide> /** Utilities for native ... | 1 |
Javascript | Javascript | fix wrong place of isquaternion property | 1a1772c0e8e2b3ca6bd4f98f4e20fc5adc347d00 | <ide><path>src/math/Quaternion.js
<ide> function Quaternion( x, y, z, w ) {
<ide>
<ide> Object.assign( Quaternion, {
<ide>
<del> isQuaternion: true,
<del>
<ide> slerp: function ( qa, qb, qm, t ) {
<ide>
<ide> return qm.copy( qa ).slerp( qb, t );
<ide> Object.defineProperties( Quaternion.prototype, {
<ide>
<ide> ... | 1 |
PHP | PHP | fix escaping quotes | 687df01fa19c99546c1ae1dd53c2a465459b50dc | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> protected function wrapJsonFieldAndPath($column)
<ide> */
<ide> protected function wrapJsonPath($value, $delimiter = '->')
<ide> {
<del> $value = preg_replace("/([\\\\]+)?\\'/", "\\'", $value);
<add> $value = preg_replace("/(... | 2 |
Javascript | Javascript | use possessive 'its' not 'it's' | fd34018d084e1868d87686c5c36818da2ebc00ab | <ide><path>Libraries/Lists/FlatList.js
<ide> type DefaultProps = typeof defaultProps;
<ide> * }
<ide> *
<ide> * This is a convenience wrapper around [`<VirtualizedList>`](docs/virtualizedlist.html),
<del> * and thus inherits it's props (as well as those of `ScrollView`) that aren't explicitly listed
<add> * and ... | 1 |
PHP | PHP | apply fixes from styleci | 3658477a86175c5537674dc968e580aba823525d | <ide><path>tests/Integration/Database/EloquentBelongsToManyTest.php
<ide> namespace Illuminate\Tests\Integration\Database\EloquentBelongsToManyTest;
<ide>
<ide> use Carbon\Carbon;
<del>use Illuminate\Support\Facades\DB;
<ide> use Orchestra\Testbench\TestCase;
<add>use Illuminate\Support\Facades\DB;
<ide> use Illuminat... | 1 |
Java | Java | add the new operation concat | a1f6e0bdf7e8a352ea1d3712623c52e5c81adf81 | <ide><path>rxjava-core/src/main/java/rx/observables/Observable.java
<ide> import org.mockito.Mockito;
<ide> import org.mockito.MockitoAnnotations;
<ide>
<add>import rx.observables.operations.OperationConcat;
<ide> import rx.observables.operations.OperationFilter;
<ide> import rx.observables.operations.OperationLast;
<... | 2 |
Ruby | Ruby | move logic to test-bot | 65bc39f952d5542e620d1711dd2337913c890f7a | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_args
<ide> end
<ide>
<ide> def bottle
<del> ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"] = "1" unless ENV["HOMEBREW_PATCHELF_RB_WRITE"].present?
<del>
<ide> args = bottle_args.parse
<ide>
<ide> return merge(args: args) if args.merge?
<ide><path>Lib... | 2 |
Javascript | Javascript | fix typo in comment | 319b858e7767c974967ed3cd768855ad8e2172d3 | <ide><path>examples/with-firebase/context/userContext.js
<ide> export default function UserContextComp({ children }) {
<ide> setUser({ uid, displayName, email, photoURL })
<ide> } else setUser(null)
<ide> } catch (error) {
<del> // Most probably a connection error. Handle appropiately.
<a... | 1 |
PHP | PHP | add "url" option to configuration | 6e5ca7331ebf511754d276cb40bc7b0eef4a463c | <ide><path>app/config/app.php
<ide>
<ide> 'debug' => true,
<ide>
<add>/*
<add>|--------------------------------------------------------------------------
<add>| Application URL
<add>|--------------------------------------------------------------------------
<add>|
<add>| This URL is used by the console to properly g... | 1 |
Go | Go | remove useless lock | 6f70ed3a742162c4cf374a2c2bbd094eed3b043b | <ide><path>builtins/builtins.go
<ide> func remote(eng *engine.Engine) {
<ide> func daemon(eng *engine.Engine) {
<ide> eng.Register("initserver", docker.InitServer)
<ide> eng.Register("init_networkdriver", lxc.InitDriver)
<del> eng.Register("version", docker.GetVersion)
<ide> }
<ide><path>server.go
<ide> func InitServ... | 3 |
Javascript | Javascript | restrict an event test fallback to testswarm | bde53edcf4bd6c975d068eed4eb16c5ba09c1cff | <ide><path>test/unit/event.js
<ide> QUnit.test( "focus-blur order (#12868)", function( assert ) {
<ide> setTimeout( function() {
<ide>
<ide> // DOM focus is unreliable in TestSwarm
<del> if ( order === 0 ) {
<add> if ( QUnit.isSwarm && order === 0 ) {
<ide> assert.ok( true, "GAP: Could not observe focus c... | 1 |
Javascript | Javascript | remove local variable bevelsubtract | 08174e30235eb3b0e96166a5573418debec98c32 | <ide><path>src/geometries/ExtrudeGeometry.js
<ide> function ExtrudeBufferGeometry( shapes, options ) {
<ide> var bevelThickness = options.bevelThickness !== undefined ? options.bevelThickness : 6;
<ide> var bevelSize = options.bevelSize !== undefined ? options.bevelSize : bevelThickness - 2;
<ide> var bevelSegmen... | 1 |
Javascript | Javascript | remove unused var in build/version.js | 6986dbb85138032468b2e4d79eb0d919fb0ff527 | <ide><path>build/version.js
<ide> if (tuple[0]) {
<ide> }
<ide>
<ide> var sh = require('shelljs');
<del>var version = process.env.npm_package_version;
<ide> var prereleaseType = npm_config_argv['remain'][0];
<ide> var approvedTypes = {
<ide> 'major': 1, | 1 |
Ruby | Ruby | fix rubocop warnings | fb3bec8d70d375a97554d4c3fed82ad2332b2191 | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def determine_library_paths
<ide> end
<ide>
<ide> def determine_dependencies
<del> deps.map {|d| d.name}.join(",")
<add> deps.map(&:name).join(",")
<ide> end
<ide>
<ide> def determine_cmake_prefix_path | 1 |
PHP | PHP | use post method when re-sending email verfication | e05c226c09031233acf79707635861932ec3b9b8 | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function emailVerification()
<ide> {
<ide> $this->get('email/verify', 'Auth\VerificationController@show')->name('verification.notice');
<ide> $this->get('email/verify/{id}', 'Auth\VerificationController@verify')->name('verification.verify');
... | 1 |
Python | Python | remove some nose dependences in utils.py | 04c23fa59e71fbfbbcf24849954d7651cc72285e | <ide><path>numpy/testing/nose_tools/utils.py
<ide> def rundocs(filename=None, raise_on_error=True):
<ide> raise AssertionError("Some doctests failed:\n%s" % "\n".join(msg))
<ide>
<ide>
<del>def raises(*args,**kwargs):
<add>def raises(*args):
<add> """Decorator to check for raised exceptions.
<add>
<add> ... | 1 |
Javascript | Javascript | check error and cleanups in test-fs-read-buffer | eab95630f1cc26932f7b850bb8385cad202160b2 | <ide><path>test/parallel/test-fs-read-buffer.js
<ide> function test(bufferAsync, bufferSync, expected) {
<ide> expected.length,
<ide> 0,
<ide> common.mustCall((err, bytesRead) => {
<add> assert.ifError(err);
<ide> assert.strictEqual(bytesRead, expected.length);
<ide>... | 2 |
Javascript | Javascript | retain filter settings | a56e9baae23cb2e2abbae73606dda1694548f29f | <ide><path>src/renderers/WebGLCubeRenderTarget.js
<ide> WebGLCubeRenderTarget.prototype.fromEquirectangularTexture = function ( renderer
<ide> this.texture.format = texture.format;
<ide> this.texture.encoding = texture.encoding;
<ide>
<add> this.texture.generateMipmaps = texture.generateMipmaps;
<add> this.texture.m... | 1 |
PHP | PHP | fix incorrect path list | 24692b036bef38168e8851d601a1a3802caaf978 | <ide><path>templates/Error/missing_cell_template.php
<ide> </p>
<ide> <ul>
<ide> <?php
<del> $paths = $this->_paths($this->plugin);
<ide> foreach ($paths as $path) :
<ide> if (strpos($path, CORE_PATH) !== false) {
<ide> continue;
<ide><path>templates/Error/missing_layout.php
<ide> </p>
<ide> ... | 4 |
Mixed | Python | fix nel config and io, and n_sents functionality | b92f81d5da43da759e44f1e1c6859805873546a4 | <ide><path>spacy/pipeline/entity_linker.py
<ide> default_config={
<ide> "model": DEFAULT_NEL_MODEL,
<ide> "labels_discard": [],
<add> "n_sents": 0,
<ide> "incl_prior": True,
<ide> "incl_context": True,
<ide> "entity_vector_length": 64,
<ide> def make_entity_linker(
<id... | 4 |
Python | Python | add couple of test for authtoken | 514b5a6dd11f9576c839b6a2469b48a0a1f91b89 | <ide><path>tests/test_authtoken.py
<add>import pytest
<add>from django.contrib.admin import site
<add>from django.contrib.auth.models import User
<add>from django.test import TestCase
<add>
<add>from rest_framework.authtoken.admin import TokenAdmin
<add>from rest_framework.authtoken.models import Token
<add>from rest_f... | 1 |
Text | Text | add pending-deprecation to deprecations list | 4efde4d0d4934dd8b47c11011e47eb27ad78a7ae | <ide><path>doc/api/deprecations.md
<ide> Node.js utilizes three kinds of Deprecations:
<ide>
<ide> A Documentation-only deprecation is one that is expressed only within the
<ide> Node.js API docs. These generate no side-effects while running Node.js.
<add>Some Documentation-only deprecations trigger a runtime warning ... | 1 |
Text | Text | add benjamingr to collaborator list | a74bf87a48b99c004a9a2937a90b9366fce78efc | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide>
<ide> ### Collaborators
<ide>
<add>* [benjamingr](https://github.com/benjamingr) - **Benjamin Gruenbaum** <benjamingr@gmail.com>
<ide> * [brendanashworth](https://github.com/brendanashworth) - **Brendan Ashworth** <... | 1 |
Text | Text | add cryptapi to docs homepage | c05998f5ddedec7c8c012a9be08aa41130a46b75 | <ide><path>docs/index.md
<ide> continued development by **[signing up for a paid plan][funding]**.
<ide> <li><a href="https://rollbar.com" style="background-image: url(https://fund-rest-framework.s3.amazonaws.com/rollbar2.png)">Rollbar</a></li>
<ide> <li><a href="https://retool.com/?utm_source=djangorest&utm_me... | 1 |
PHP | PHP | add method to driverinterface | 1dcb47ef6afb939d97ce48b5233d81a2c0d87fbe | <ide><path>src/Database/Driver.php
<ide> public function enableAutoQuoting(bool $enable = true)
<ide> }
<ide>
<ide> /**
<del> * Disable auto quoting of identifiers in queries.
<del> *
<del> * @return $this
<add> * @inheritDoc
<ide> */
<ide> public function disableAutoQuoting()
<ide> ... | 2 |
Ruby | Ruby | add a deprecation message to activerecord.errors | 821a160a49529f449605e127e26b7376cc83d4d6 | <ide><path>activerecord/lib/active_record/railtie.rb
<ide> class Railtie < Rails::Railtie
<ide> end
<ide> end
<ide>
<add> initializer "active_record.i18n_deprecation" do
<add> require 'active_support/i18n'
<add>
<add> begin
<add> I18n.t(:"activerecord.errors", :raise => true)
<add> ... | 1 |
Python | Python | add missing type hints for qdqbertmodel | d37a68e6850e7c6941108de76a8e35ba7e726e51 | <ide><path>src/transformers/models/qdqbert/modeling_qdqbert.py
<ide> import math
<ide> import os
<ide> import warnings
<del>from typing import Optional
<add>from typing import Dict, List, Optional, Tuple, Union
<ide>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> ]
<ide>
<ide>
<del>def load_tf_weights_... | 1 |
Javascript | Javascript | update time formatting | 204248a0c3597b99dc4a706203292141fbaf85ed | <ide><path>lib/internal/console/constructor.js
<ide> // The Console constructor is not actually used to construct the global
<ide> // console. It's exported for backwards compatibility.
<ide>
<del>const { Object, ObjectPrototype, Reflect } = primordials;
<add>const { Object, ObjectPrototype, Reflect, Math } = primordi... | 3 |
PHP | PHP | use app_path in global file. closes | 8709c6c6b062658eab23abf18aada550fb2efde9 | <ide><path>app/start/global.php
<ide> |
<ide> */
<ide>
<del>require __DIR__.'/../filters.php';
<ide>\ No newline at end of file
<add>require app_path().'/filters.php';
<ide>\ No newline at end of file | 1 |
PHP | PHP | fix styleci warnings | 959b547fb26af22aced8358e34c3355a0928f813 | <ide><path>tests/Integration/Database/EloquentRelationshipsTest.php
<ide>
<ide> namespace Illuminate\Tests\Integration\Database\EloquentRelationshipsTest;
<ide>
<del>use Illuminate\Database\Eloquent\Relations\HasOneThrough;
<ide> use Orchestra\Testbench\TestCase;
<ide> use Illuminate\Database\Eloquent\Model;
<ide> us... | 1 |
Python | Python | add bloom support for token classification | 358478e7296cf3348e11901ddca1c25e3886b260 | <ide><path>examples/pytorch/token-classification/run_ner.py
<ide> def get_label_list(labels):
<ide> )
<ide>
<ide> tokenizer_name_or_path = model_args.tokenizer_name if model_args.tokenizer_name else model_args.model_name_or_path
<del> if config.model_type in {"gpt2", "roberta"}:
<add> if config.model_typ... | 2 |
PHP | PHP | fix distinct problems in paginator | cd17761f7220d193ec265a436b396ae5a1a640bc | <ide><path>laravel/database/query.php
<ide> public function get($columns = array('*'))
<ide> * Get an aggregate value.
<ide> *
<ide> * @param string $aggregator
<del> * @param string $column
<add> * @param array $columns
<ide> * @return mixed
<ide> */
<del> public function aggregate($aggregator, $col... | 2 |
Python | Python | fix the broken format of links and references | 7875e856f8dc09372a83d8c5dc0af74a50d17d30 | <ide><path>keras/layers/convolutional_recurrent.py
<ide> class ConvLSTM2DCell(Layer):
<ide> unit_forget_bias: Boolean.
<ide> If True, add 1 to the bias of the forget gate at initialization.
<ide> Use in combination with `bias_initializer="zeros"`.
<del> This is recommended in ... | 3 |
Text | Text | correct fedora 22 install instructions | 8384fdbaf382aa678dfe39d39388323ec3476b2c | <ide><path>README.md
<ide> repeat these steps to upgrade to future releases.
<ide> Currently only a 64-bit version is available.
<ide>
<ide> 1. Download `atom.x86_64.rpm` from the [Atom releases page](https://github.com/atom/atom/releases/latest).
<del>2. Run `sudo dnf atom.x86_64.rpm` on the downloaded package.
<add>... | 1 |
Javascript | Javascript | add setnativeprops type to fabricuimanager.js | c5b8b292e23f308fe15fef8e0dde1a10b149f898 | <ide><path>Libraries/ReactNative/FabricUIManager.js
<ide> type Spec = {|
<ide> +appendChild: (parentNode: Node, child: Node) => Node,
<ide> +appendChildToSet: (childSet: NodeSet, child: Node) => void,
<ide> +completeRoot: (rootTag: number, childSet: NodeSet) => void,
<add> +setNativeProps: (node: Node, nativePro... | 1 |
Ruby | Ruby | fix undefined method error | a2c23dfec569c6e73d90cb20c7d4c26cced258d5 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def ruby_has_encoding?
<ide> String.method_defined?(:force_encoding)
<ide> end
<ide>
<add> if ruby_has_encoding?
<add> def fix_encoding!(str)
<add> # Assume we are starting from a "mostly" UTF-8 string
<add> str.force_encoding(Encoding::UTF_8)
<add>... | 1 |
Text | Text | fix print statements | b6ee241e260d23bf5e21aad55e332b7f266c4ab4 | <ide><path>spacy/tests/README.md
<ide> Here's how to quickly get these values from within spaCy:
<ide>
<ide> ```python
<ide> doc = nlp(u'Some text here')
<del>print [token.head.i-token.i for token in doc]
<del>print [token.tag_ for token in doc]
<del>print [token.pos_ for token in doc]
<del>print [token.dep_ for token... | 1 |
Java | Java | apply logformatutils in more places | e9083d7d2053fea3919bfeb9057e9fdba4049119 | <ide><path>spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
<ide> private String decodeInternal(HttpServletRequest request, String source) {
<ide> return UriUtils.decode(source, enc);
<ide> }
<ide> catch (UnsupportedCharsetException ex) {
<del> if (logger.isWarnEnabled()) {
<del> log... | 10 |
PHP | PHP | add session access for integrationtest testing | a305f17724c8b8c990481e5f809667a1a615c9ff | <ide><path>src/TestSuite/IntegrationTestTrait.php
<ide> protected function extractExceptionMessage(Exception $exception): string
<ide> PHP_EOL .
<ide> $exception->getTraceAsString();
<ide> }
<add>
<add> /**
<add> * @return \Cake\TestSuite\TestSession
<add> */
<add> protected fu... | 2 |
Python | Python | improve qa pipeline error handling | 7342d9a583e63ab1214b03c2bd7d5f613a535efb | <ide><path>src/transformers/pipelines.py
<ide> import uuid
<ide> import warnings
<ide> from abc import ABC, abstractmethod
<add>from collections.abc import Iterable
<ide> from contextlib import contextmanager
<ide> from os.path import abspath, exists
<ide> from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tu... | 2 |
Mixed | Python | add three missing tags from the `nb` tag map | e172f2478e4f0083a703a0b55b7b92958651b977 | <ide><path>.github/contributors/jarib.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<add... | 2 |
Python | Python | add test for nan and inf for spacing | 111f37a04c6e85b202cc6f7c0bb46d750c2409b1 | <ide><path>numpy/core/tests/test_umath.py
<ide> def test_spacing():
<ide> for t in [np.float32, np.float64, np.longdouble]:
<ide> one = t(1)
<ide> eps = np.finfo(t).eps
<add> nan = t(np.nan)
<add> inf = t(np.inf)
<ide> assert np.spacing(one) == eps
<add> assert np.isnan(... | 1 |
Java | Java | add bindtohttphandler to webtestclient | 16901b14975273034194b9c8a109ab749a90f0bc | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java
<ide> class DefaultWebTestClient implements WebTestClient {
<ide>
<ide>
<ide> DefaultWebTestClient(WebClient.Builder webClientBuilder, ClientHttpConnector connector,
<del> ExchangeMutatingWebFilter exchangeM... | 3 |
Text | Text | update jwt docs. | 9ecce21044d14b66a9e41f156eda0f13754c756e | <ide><path>docs/api-guide/authentication.md
<ide> HTTP digest authentication is a widely implemented scheme that was intended to r
<ide>
<ide> ## JSON Web Token Authentication
<ide>
<del>JSON Web Token is a fairly new standard which can be used for token-based authentication. Unlike the built-in TokenAuthentication s... | 1 |
Javascript | Javascript | add regression test for nghttp2 cve-2018-1000168 | 0d79c84a839fb52ccb9e3f0c46541613a1d3db3a | <ide><path>test/common/http2.js
<ide> class PingFrame extends Frame {
<ide> }
<ide> }
<ide>
<add>class AltSvcFrame extends Frame {
<add> constructor(size) {
<add> const buffers = [Buffer.alloc(size)];
<add> super(size, 10, 0, 0);
<add> buffers.unshift(this[kFrameData]);
<add> this[kFrameData] = Buffer.c... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.