content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | add cola119 to collaborators | 611e7711f4c711e7525853884e32b509d89474bb | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Colin Ihrig** <<cjihrig@gmail.com>> (he/him)
<ide> * [codebytere](https://github.com/codebytere) -
<ide> **Shelley Vohr** <<shelley.vohr@gmail.com>> (she/her)
<add>* [cola119](https://github.com/cola119) -
<add> **K... | 1 |
Java | Java | ignore failing map test case | a417aa2ea3f0e1bd9abd91bbc06c0fc750906259 | <ide><path>org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/annotation/Spr7839Tests.java
<ide> import java.util.Map;
<ide>
<ide> import org.junit.Before;
<add>import org.junit.Ignore;
<ide> import org.junit.Test;
<ide> import org.springframework.core.convert.converter.Converter;
<ide> ... | 1 |
Javascript | Javascript | fix empty name problem in gltfloader | 65089d82e7e5e5ac78d53efc5dbb206dbf590fcf | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> texture.flipY = false;
<ide>
<del> if ( textureDef.name !== undefined ) texture.name = textureDef.name;
<add> if ( textureDef.name ) texture.name = textureDef.name;
<ide>
<ide> // Ignore unknown mime types, li... | 2 |
Python | Python | add xfailing test for | aadf586789bba5df81540b6e1d6ab46bec087493 | <ide><path>spacy/tests/regression/test_issue3331.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>from spacy.matcher import PhraseMatcher
<add>from spacy.tokens import Doc
<add>
<add>
<add>@pytest.mark.xfail
<add>def test_issue3331(en_vocab):
<add> """Test that dupli... | 1 |
Go | Go | remove redundant init() stub for windows | 0e4f473a9f7f82a62c9e66023909243b2d08a601 | <ide><path>pkg/chrootarchive/init_windows.go
<del>package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive"
<del>
<del>func init() {
<del>} | 1 |
Javascript | Javascript | expose isolatescope() getter similar to scope() | 27e9340b3c25b512e45213b39811098d07e12e3b | <ide><path>src/Angular.js
<ide> function bindJQuery() {
<ide> jqLite = jQuery;
<ide> extend(jQuery.fn, {
<ide> scope: JQLitePrototype.scope,
<add> isolateScope: JQLitePrototype.isolateScope,
<ide> controller: JQLitePrototype.controller,
<ide> injector: JQLitePrototype.injector,
<ide> ... | 5 |
Javascript | Javascript | add object#fromentries polyfill | 4199da09b8211a6687ca1ea4acbde6a1d597c576 | <ide><path>packages/next-polyfill-module/src/index.js
<ide> if (!Promise.prototype.finally) {
<ide> )
<ide> }
<ide> }
<add>
<add>/**
<add> * Available in:
<add> * Edge: never
<add> * Firefox: 63
<add> * Chrome: 73
<add> * Safari: 12.1
<add> *
<add> * https://caniuse.com/mdn-javascript_builtins_object_fromentries
... | 1 |
Python | Python | fix the method defaults for _construct_volume | 791a175988c78c920df733fc79c40c1b0579b688 | <ide><path>airflow/kubernetes/worker_configuration.py
<ide> def _get_volume_mounts(self) -> List[k8s.V1VolumeMount]:
<ide> return list(volume_mounts.values())
<ide>
<ide> def _get_volumes(self) -> List[k8s.V1Volume]:
<del> def _construct_volume(name, claim, host) -> k8s.V1Volume:
<add> def _c... | 1 |
Javascript | Javascript | add pending deprecation warning | d2d32ea5a22a30f428a6e08bcb707c3538558933 | <ide><path>lib/buffer.js
<ide> 'use strict';
<ide>
<ide> const binding = process.binding('buffer');
<add>const config = process.binding('config');
<ide> const { compare: compare_, compareOffset } = binding;
<ide> const { isAnyArrayBuffer, isUint8Array } = process.binding('util');
<ide> const bindingObj = {};
<ide> con... | 3 |
Text | Text | remove personal pronoun usage in addons.md | 36ce039347e94a9a0f8239c7bc639868e496258d | <ide><path>doc/api/addons.md
<ide> Addons are dynamically-linked shared objects written in C++. The
<ide> Addons provide an interface between JavaScript and C/C++ libraries.
<ide>
<ide> There are three options for implementing Addons: N-API, nan, or direct
<del>use of internal V8, libuv and Node.js libraries. Unless y... | 1 |
Javascript | Javascript | pass unsupported messages to original console | bccc4548e4d22b275f28a9beaf573f74d8b69213 | <ide><path>Libraries/polyfills/console.js
<ide> if (global.nativeLoggingHook) {
<ide> };
<ide> }
<ide> });
<add>
<add> // The following methods are not supported by this polyfill but
<add> // we still should pass them to original console if they are
<add> // supported by it.
<add> [
<add> ... | 1 |
Text | Text | add a . to increase readability | 906d5297c2ec22d6410e0b0f65d4eca47fecf098 | <ide><path>README.md
<ide> See [CONTRIBUTING.md](https://github.com/emberjs/ember.js/blob/master/CONTRIBUTI
<ide>
<ide> 3. Then visit <http://localhost:4200/>. This will run all tests.
<ide>
<del>4. To test a specific package visit `http://localhost:4200/tests/index.html?package=PACKAGE_NAME` Replace
<add>4. To test ... | 1 |
Ruby | Ruby | construct formula object correctly | 579f288bd2507d781d315e9fcc56ea6d52eaefee | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def test_bot
<ide> Dir.glob("*.bottle*.tar.gz") do |filename|
<ide> # Skip taps for now until we're using Bintray for Homebrew/homebrew
<ide> next if tap
<del> formula = bottle_filename_formula_name filename
<del> existing_bottles[for... | 1 |
Mixed | Python | add fp16 training | 66b0090877db3f9b65f24b21400f1e29a23f72d6 | <ide><path>README.md
<ide> python -m pytest -sv tests/
<ide>
<ide> BERT-base and BERT-large are respectively 110M and 340M parameters models and it can be difficult to fine-tune them on a single GPU with the recommended batch size for good performance (in most case a batch size of 32).
<ide>
<del>To help with fine-tu... | 4 |
Text | Text | use the rails binary when generating task | 8f57b22025999e6911399d81b93ac145ec674bef | <ide><path>guides/source/command_line.md
<ide> The `tmp:` namespaced tasks will help you clear and create the `Rails.root/tmp`
<ide> ### Custom Rake Tasks
<ide>
<ide> Custom rake tasks have a `.rake` extension and are placed in
<del>`Rails.root/lib/tasks`. You can create these custom rake tasks with the `rails
<del>ge... | 1 |
Javascript | Javascript | remove unnecessary warnings | 849e8328b596ce67720f33d73a1d57108e6de504 | <ide><path>packages/react-dom/src/__tests__/ReactCompositeComponent-test.js
<ide> describe('ReactCompositeComponent', () => {
<ide> ReactDOM.render(<Component prop={123} />, container);
<ide> });
<ide>
<del> it('should warn about `setState` in getChildContext', () => {
<del> const container = document.create... | 9 |
Ruby | Ruby | implement `homebrew.args` compatibility layer | 86359c4c91d8b4d2934828129a8de9cd310adf01 | <ide><path>Library/Homebrew/compat.rb
<ide> # frozen_string_literal: true
<ide>
<add>require "compat/dependencies_helpers"
<add>require "compat/cli/parser"
<ide> require "compat/extend/nil"
<ide> require "compat/extend/string"
<ide> require "compat/formula"
<ide><path>Library/Homebrew/compat/cli/parser.rb
<add># froze... | 3 |
Javascript | Javascript | fix branding violation memorycacheplugin | 466e28b312b5a0305b546579f08c5e5d25c13470 | <ide><path>lib/cache/MemoryCachePlugin.js
<ide> const Cache = require("../Cache");
<ide>
<ide> class MemoryCachePlugin {
<ide> /**
<del> * @param {Compiler} compiler Webpack compiler
<add> * @param {Compiler} compiler webpack compiler
<ide> * @returns {void}
<ide> */
<ide> apply(compiler) { | 1 |
PHP | PHP | avoid fqcn in code. | dccf13e2c831c990e96d4c62a229f5ce3c2208ea | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
<ide>
<ide> use Carbon\CarbonImmutable;
<ide> use Carbon\CarbonInterface;
<add>use DateTimeImmutable;
<ide> use DateTimeInterface;
<ide> use Illuminate\Contracts\Database\Eloquent\Castable;
<ide> use Illuminate\Contracts\Database\Eloquent\CastsInbo... | 8 |
Java | Java | introduce builder api for aot processor settings | eadb003a8d1973f54c1609bfc8da1bcf89eb9943 | <ide><path>spring-context/src/main/java/org/springframework/context/aot/AbstractAotProcessor.java
<ide> import org.springframework.aot.hint.RuntimeHints;
<ide> import org.springframework.aot.nativex.FileNativeConfigurationWriter;
<ide> import org.springframework.lang.Nullable;
<add>import org.springframework.util.Asser... | 4 |
Javascript | Javascript | add setnativeprops to sectionlist | ccb0899658f7796aefe67008fa36cd3f7331bec9 | <ide><path>Libraries/Lists/SectionList.js
<ide> class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
<ide> }
<ide> }
<ide>
<add> setNativeProps(props: Object) {
<add> const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
<add> if (listRef) {
<add> listRef.se... | 1 |
Go | Go | fix behavior of absolute paths in .dockerignore | 1cde87c43abd100f4233e965e040e30a6bd34112 | <ide><path>builder/dockerignore/dockerignore.go
<ide> func ReadAll(reader io.Reader) ([]string, error) {
<ide> if pattern == "" {
<ide> continue
<ide> }
<del> pattern = filepath.Clean(pattern)
<del> pattern = filepath.ToSlash(pattern)
<add> // normalize absolute paths to paths relative to the context
<add> /... | 2 |
Text | Text | add changelog entry | c8dcc19cf9e40c4387bfc197bc118da16c8469c3 | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 3.2.0 (unreleased) ##
<ide>
<add>* Depends on rack ~> 1.4.0 *Santiago Pastorino*
<add>
<ide> * Add :gzip option to `caches_page`. The default option can be configured globally using `page_cache_compression` *Andrey Sitnik*
<ide>
<ide> * The ShowExceptions middle... | 1 |
Text | Text | update 5.0 release notes | ec50f9239bfbb91ef02cd333ca518ec04715a8c3 | <ide><path>guides/source/5_0_release_notes.md
<ide> Please refer to the [Changelog][action-mailer] for detailed changes.
<ide> * Template lookup now respects default locale and I18n fallbacks.
<ide> ([commit](https://github.com/rails/rails/commit/ecb1981b))
<ide>
<add>* Template can use fragment cache like Act... | 1 |
Javascript | Javascript | fix rmsync error swallowing | f9447b71a6b458adbb265f8a5fd38ebf41bc97a4 | <ide><path>lib/internal/fs/rimraf.js
<ide> function _unlinkSync(path, options) {
<ide> i < tries &&
<ide> options.retryDelay > 0) {
<ide> sleep(i * options.retryDelay);
<add> } else if (err.code === 'ENOENT') {
<add> // The file is already gone.
<add> return;
<add> } ... | 9 |
Java | Java | add retry for flaky test (suspected tomcat issue) | 0d42a1bd7fdd44b000873edd6cbbb35697fddc4a | <ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/socket/AbstractWebSocketIntegrationTests.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "L... | 2 |
Python | Python | remove unused `amsgrad` argument in sgd | 330eb89a9a94e2621cfa03e813e3d252e91ee15a | <ide><path>keras/optimizers/optimizer_experimental/sgd.py
<ide> def __init__(
<ide> learning_rate=0.01,
<ide> momentum=0.0,
<ide> nesterov=False,
<del> amsgrad=False,
<ide> weight_decay=None,
<ide> clipnorm=None,
<ide> clipvalue=None, | 1 |
PHP | PHP | remove pointless comparison | ad09b910ee27fadc0c3bcfe94c94ecc0c65dfd7f | <ide><path>lib/Cake/Controller/Component/CookieComponent.php
<ide> protected function _implode(array $array) {
<ide> */
<ide> protected function _explode($string) {
<ide> $first = substr($string, 0, 1);
<del> if ($first !== false && $first === '{' || $first === '[') {
<add> if ($first === '{' || $first === '[') {... | 1 |
Javascript | Javascript | fix semantic error | cf459052b41705522d8614a58e8eaf953efd9b7e | <ide><path>lib/Parser.js
<ide> Parser.prototype.enterObjectPattern = function enterObjectPattern(pattern, onIde
<ide> };
<ide>
<ide> Parser.prototype.enterArrayPattern = function enterArrayPattern(pattern, onIdent) {
<del> for(var elementIndex = 0, len = pattern.properties.length; elementIndex < len; elementIndex++) {... | 1 |
Javascript | Javascript | fix a little error with colorspace (#373) | a5d5f144bceb83e0153391d26bed741a02dc82de | <ide><path>pdf.js
<ide> var ColorSpace = (function() {
<ide> constructor.parse = function colorspace_parse(cs, xref, res) {
<ide> if (IsName(cs)) {
<ide> var colorSpaces = res.get('ColorSpace');
<del> if (colorSpaces) {
<add> if (colorSpaces && colorSpaces.get) {
<ide> var refcs = colorSpa... | 1 |
Ruby | Ruby | remove the default parameter and updated comment | a4a33fbb0a2375bfb13795148c17d460f3c5338d | <ide><path>lib/arel/visitors/dot.rb
<ide> def visit_String o
<ide>
<ide> def visit_Hash o
<ide> o.each_with_index do |pair, i|
<del> edge("pair_#{i}") { visit pair, a }
<add> edge("pair_#{i}") { visit pair }
<ide> end
<ide> end
<ide>
<ide> def visit_edge o, method
<id... | 2 |
Python | Python | use assertin, asertgreater, etc | 131b0dd93f3e1793d98bda797e7d8388df774b71 | <ide><path>celery/tests/app/test_schedules.py
<ide> def test_eq(self):
<ide> self.crontab(month_of_year='1'),
<ide> self.crontab(month_of_year='2'),
<ide> )
<del> self.assertFalse(object() == self.crontab(minute='1'))
<del> self.assertFalse(self.crontab(minute='1') == objec... | 8 |
Javascript | Javascript | publicize more dock methods | cabeeca8b6ca7b324c3a551d4b6eaea397f0aeb4 | <ide><path>src/dock.js
<ide> module.exports = class Dock {
<ide> this.setState({draggingItem})
<ide> }
<ide>
<add> // Extended: Show the dock and focus its active {Pane}.
<ide> activate () {
<ide> this.getActivePane().activate()
<ide> }
<ide>
<add> // Extended: Show the dock without focusing it.
<ide>... | 1 |
Ruby | Ruby | expose casks in tap.to_hash for tap-info --json | 2c86e7e12794ffbd464a539273cd042187822ab4 | <ide><path>Library/Homebrew/tap.rb
<ide> def to_hash
<ide> "formula_names" => formula_names,
<ide> "formula_files" => formula_files.map(&:to_s),
<ide> "command_files" => command_files.map(&:to_s),
<add> "cask_files" => cask_files.map(&:to_s),
<ide> "pinned" => pinned?,
<ide> }... | 1 |
Javascript | Javascript | use reference check only when not using trackby | d7dc14dc0cdeb9c187d227e19acc8aca7df9d740 | <ide><path>src/ng/directive/ngOptions.js
<ide> var ngOptionsDirective = ['$compile', '$parse', function($compile, $parse) {
<ide> // Check to see if the value has changed due to the update to the options
<ide> if (!ngModelCtrl.$isEmpty(previousValue)) {
<ide> var nextValue = selectCtrl.readVal... | 2 |
Ruby | Ruby | remove xcode 7 on 10.10 warning | a8476c0dbe016719fbca2327cd93ebb386b4fdff | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_xcode_select_path
<ide> end
<ide> end
<ide>
<del> # Xcode 7 lacking the 10.10 SDK is forcing sysroot to be declared
<del> # nil on 10.10 & breaking compiles. CLT is workaround.
<del> def check_sdk_path_not_nil_yosemite
<del> if MacOS.version == :yos... | 1 |
Python | Python | keep order in np.sort and np.partition copy | f0e6e0143c4a43e0bb9dcad7c567ffaa51d7a281 | <ide><path>numpy/core/fromnumeric.py
<ide> def partition(a, kth, axis=-1, kind='introselect', order=None):
<ide> a = asanyarray(a).flatten()
<ide> axis = 0
<ide> else:
<del> a = asanyarray(a).copy()
<add> a = asanyarray(a).copy(order="K")
<ide> a.partition(kth, axis=axis, kind=kind... | 1 |
Text | Text | clarify use of `loading` property | d6f5ebf773f28026e230885b783c611510688c43 | <ide><path>docs/advanced-features/dynamic-import.md
<ide> If you are not using React 18, you can use the `loading` attribute in place of t
<ide>
<ide> ```jsx
<ide> const DynamicHeader = dynamic(() => import('../components/header'), {
<del> loading: () => <header />,
<add> loading: () => <div>Loading...</div>,
<ide> ... | 1 |
Python | Python | add references to einops and opt_einsum | 35c67f6d33aa82d1ee8bd4fbdc5b925ef560de2a | <ide><path>numpy/core/einsumfunc.py
<ide> def einsum(*operands, out=None, optimize=False, **kwargs):
<ide> --------
<ide> einsum_path, dot, inner, outer, tensordot, linalg.multi_dot
<ide>
<add> einops:
<add> similar verbose interface is provided by
<add> `einops <https://github.com/arogozhniko... | 1 |
PHP | PHP | remove extra spacing | 28e60c2f5ddfdee35564833ac36d0f13450690e7 | <ide><path>src/Illuminate/Routing/Route.php
<ide> public function bindParameters(Request $request)
<ide> // compile that and get the parameter matches for this domain. We will then
<ide> // merge them into this parameters array so that this array is completed.
<ide> $params = $this->matchToKeys(... | 1 |
Text | Text | remove semicolons according code style | dcaa0c626f87016f0d8a80e0c119709b2a00b476 | <ide><path>docs/FAQ.md
<ide> const mapStateToProps = (state) => {
<ide> return {
<ide> objects: state.objectIds.map(id => state.objects[id])
<ide> }
<del>};
<add>}
<ide> ```
<ide>
<ide> Even though the array might contain the exact same object references each time, the array itself is a different reference, so... | 4 |
Mixed | Javascript | validate the input data to be of expected types | fb6df3bfac8ca38a7012eabf0563d7a799ce1acc | <ide><path>doc/api/fs.md
<ide> This happens when:
<ide> <!-- YAML
<ide> added: v0.0.2
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/31030
<add> description: The `buffer` parameter won't coerce unsupported input to
<add> strings anymore.
<ide> - vers... | 12 |
Ruby | Ruby | reset compiler when testing fails_with | bb8fcc89014de64d5faf7e8ac9a252144addb508 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_compiler_selection
<ide> cs = CompilerSelector.new(f)
<ide> cs.select_compiler
<ide> assert_equal MacOS.default_compiler, ENV.compiler
<add> ENV.send MacOS.default_compiler
<ide>
<ide> f = TestNoCompilerFailures.new
<ide> assert !(f... | 1 |
PHP | PHP | add assertion with empty chain | 6f8b87eee17114f1cf0ff896db9fdcc31f0fc8f0 | <ide><path>src/Illuminate/Support/Testing/Fakes/QueueFake.php
<ide> public function assertPushedWithChain($job, $expectedChain = [], $callback = nul
<ide> : $this->assertPushedWithChainOfClasses($job, $expectedChain, $callback);
<ide> }
<ide>
<add> /**
<add> * Assert if a job was pushed with... | 2 |
Ruby | Ruby | hide the cxxstdlib data structure better | a5a2141a1569bada1397b0b369311deea2888630 | <ide><path>Library/Homebrew/cxxstdlib.rb
<ide> def compatible_with?(other)
<ide> end
<ide>
<ide> def check_dependencies(formula, deps)
<del> unless formula.class.cxxstdlib.include? :skip
<add> unless formula.skip_cxxstdlib_check?
<ide> deps.each do |dep|
<ide> # Software is unlikely to link aga... | 2 |
PHP | PHP | condense isset calls | 0d2713b16fa17f672d12b2f4fdda39c091496fbe | <ide><path>src/View/Helper/HtmlHelper.php
<ide> public function meta($type, $content = null, array $options = [])
<ide> } else {
<ide> $type = ['name' => $type, 'content' => $content];
<ide> }
<del> } elseif (isset($options['type']) && isset($types[$options... | 1 |
PHP | PHP | extract formattreelist() from findtreelist() | f64dfb9add68f1dc1ed1090430f700eb8fbcf092 | <ide><path>src/ORM/Behavior/TreeBehavior.php
<ide> function ($field) {
<ide> */
<ide> public function findTreeList(Query $query, array $options)
<ide> {
<del> return $this->_scope($query)
<add> $results = $this->_scope($query)
<ide> ->find('threaded', [
<ide> 'pare... | 1 |
Text | Text | update windows build instructions | 2d07d6662c9b55ffd3bb8dc8b5163d07f147dd1e | <ide><path>docs/build-instructions/windows.md
<ide>
<ide> ## Why do I have to use GitHub for Windows?
<ide>
<del>You don't, You can use your existing Git! GitHub for Windows's Git Shell is just
<del>easier to set up. You need to have Posix tools in your `%PATH%` (i.e. `grep`,
<del>`sed`, et al.), which isn't the defa... | 1 |
Java | Java | fix import org.apache.http.protocol.httpcontext; | 6d3066fbacfa88364177b288dff51045af117c25 | <ide><path>rxjava-contrib/rxjava-apache-http/src/main/java/rx/apache/http/ObservableHttp.java
<ide> import org.apache.http.nio.client.HttpAsyncClient;
<ide> import org.apache.http.nio.client.methods.HttpAsyncMethods;
<ide> import org.apache.http.nio.protocol.HttpAsyncRequestProducer;
<del>import org.apache.http.protoco... | 1 |
Go | Go | fix panic on devicemapper initialization | f08989902374a517b1f8e5e0bfd3b4ea59e5ba27 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func getDeviceUUID(device string) (string, error) {
<ide> }
<ide>
<ide> func (devices *DeviceSet) verifyBaseDeviceUUID(baseInfo *DevInfo) error {
<add> devices.Lock()
<add> defer devices.Unlock()
<add>
<ide> if err := devices.activateDeviceIfNeeded(baseInfo);... | 1 |
Ruby | Ruby | use ivar accessors | 856cebd9b45c40f361c62ca780ff8ef8976e64b9 | <ide><path>Library/Homebrew/formula.rb
<ide> def initialize name='__UNKNOWN__', path=nil
<ide>
<ide> @active_spec = determine_active_spec
<ide> validate_attributes :url, :name, :version
<del> @downloader = download_strategy.new(name, @active_spec)
<add> @downloader = download_strategy.new(name, active_sp... | 2 |
Text | Text | update details and add example [ci skip] | e9b68d4f4c02285bc83625101ea60d0a74d7c7cb | <ide><path>website/docs/usage/v3-1.md
<ide> annotations can be added via the [`Doc.spans`](/api/doc#spans) in the training
<ide> data under the key defined as
<ide> [`incorrect_spans_key`](/api/entityrecognizer#init) in the component config.
<ide>
<add>```python
<add>train_doc = nlp.make_doc("Barack Obama was born in ... | 1 |
Python | Python | fix xlnet & transfotests | b4a3a647448a1d54a9d130670344643a19a87d0d | <ide><path>tests/test_modeling_tf_transfo_xl.py
<ide> def test_lm_generate_transfo_xl_wt103(self):
<ide> 24,
<ide> 24,
<ide> 0,
<del> 29546,
<del> 40,
<del> 1092,
<del> 18,
<del> 8,
<del> 5854,
<del> 7,
<del... | 4 |
PHP | PHP | remove unused command i added | ae16e5930eaa7d9e4518edea75740f1a7ee5a472 | <ide><path>src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php
<ide> public function compileCreate(Blueprint $blueprint, Fluent $command)
<ide> );
<ide> }
<ide>
<del> /**
<del> * Compile a get all tables command.
<del> *
<del> * @param string $schema
<del> * @return string
<del> ... | 1 |
Python | Python | add additional test cases for region argument | 0805528a2bf4054036bd7a85b9b506695611c918 | <ide><path>libcloud/test/compute/test_ovh.py
<ide> def setUp(self):
<ide> OvhMockHttp.type = None
<ide> self.driver = OvhNodeDriver(*OVH_PARAMS)
<ide>
<add> def test_region_argument(self):
<add> driver = OvhNodeDriver(*OVH_PARAMS)
<add> self.assertEqual(driver.connection.host, 'api.ovh... | 1 |
Go | Go | add test coverage for seccomp implementation | 137f86067cc1c9b30e5a59e73f91ed8876705b8f | <ide><path>daemon/seccomp_linux_test.go
<add>// +build linux,seccomp
<add>
<add>package daemon // import "github.com/docker/docker/daemon"
<add>
<add>import (
<add> "testing"
<add>
<add> coci "github.com/containerd/containerd/oci"
<add> config "github.com/docker/docker/api/types/container"
<add> "github.com/docker/dock... | 1 |
PHP | PHP | return instance from eloquent setters | f59d8a8ca4a2ddc08415634f473d604ec7b4ffdd | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function getVisible()
<ide> * Set the visible attributes for the model.
<ide> *
<ide> * @param array $visible
<del> * @return void
<add> * @return $this
<ide> */
<ide> public function setVisible(array $visible)
<ide> ... | 1 |
Go | Go | remove dead code | 164d0bca63b74e6e0deeceee17b55c044f8d274e | <ide><path>daemon/container_unix.go
<ide> import (
<ide> "github.com/docker/docker/utils"
<ide> "github.com/docker/docker/volume"
<ide> "github.com/docker/libnetwork"
<del> "github.com/docker/libnetwork/drivers/bridge"
<ide> "github.com/docker/libnetwork/netlabel"
<ide> "github.com/docker/libnetwork/options"
<ide>... | 1 |
PHP | PHP | fix error code check | 8e795a1e220ae089746b2e04580b6a32258a4504 | <ide><path>src/Http/Client/Adapter/Curl.php
<ide> public function send(Request $request, array $options)
<ide> curl_close($ch);
<ide>
<ide> $status = 500;
<del> if ($error === 28) {
<add> if ($errorCode === 28) {
<ide> $status = 504;
<ide> }
<id... | 1 |
Javascript | Javascript | remove errant console.log | 4f01b4b186368fe70cdd3853262f2b1856541b06 | <ide><path>src/renderers/shared/reconciler/__tests__/ReactUpdates-test.js
<ide> describe('ReactUpdates', function() {
<ide> this.state = { showChild: true };
<ide> }
<ide> componentDidMount() {
<del> console.log('about to remove child via set state');
<ide> this.setState({ showChild: ... | 1 |
Javascript | Javascript | use title - filename as document.title | 025ee3f9afa255d021ab6f0c5f02a550496f94f0 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> pdfTitle = info['Title'];
<ide>
<ide> if (pdfTitle)
<del> document.title = pdfTitle;
<add> document.title = pdfTitle + ' - ' + document.title;
<ide> },
<ide>
<ide> setHash: function pdfViewSetHash(hash) { | 1 |
Ruby | Ruby | freeze more strings | 73528b6a08cb26e326300a1cb4b6743b6d25719c | <ide><path>Library/Homebrew/cask/exceptions.rb
<ide> def to_s
<ide> s << "\n" unless reason.end_with?("\n")
<ide> end
<ide>
<del> s
<add> s.freeze
<ide> end
<ide> end
<ide>
<ide> def to_s
<ide> s << "\n" unless reason.end_with?("\n")
<ide> end
<ide>
<del> s
<add> ... | 2 |
Python | Python | fix conllu2json converter to output all sentences | bdfb696677a7591ced018e7597c00929e97c6837 | <ide><path>spacy/cli/converters/conllu2json.py
<ide> def conllu2json(input_data, n_sents=10, use_morphology=False, lang=None, **_):
<ide> doc = create_doc(sentences, i)
<ide> docs.append(doc)
<ide> sentences = []
<add> if sentences:
<add> doc = create_doc(sentences, i)
<add... | 1 |
Javascript | Javascript | handle model updates when options are manipulated | 47c15fbcc10f118170813021e8e605ffd263ad84 | <ide><path>src/ng/directive/select.js
<ide> var SelectController =
<ide>
<ide> // If the ngModel doesn't get provided then provide a dummy noop version to prevent errors
<ide> self.ngModelCtrl = noopNgModelController;
<add> self.multiple = false;
<ide>
<ide> // The "unknown" option is one that is prepended to ... | 2 |
Java | Java | adjust some javadoc in emitters | 34a0c6c0ff5191d4cb9e516bfda07e987498e380 | <ide><path>src/main/java/io/reactivex/CompletableEmitter.java
<ide> import io.reactivex.functions.Cancellable;
<ide>
<ide> /**
<del> * Abstraction over a RxJava CompletableObserver that allows associating
<add> * Abstraction over an RxJava {@link CompletableObserver} that allows associating
<ide> * a resource with it... | 6 |
Text | Text | use serve_static_files in guides, take 2 [skip ci] | 58b7567bdab8b7422c2ef1bb0996282ac2438f7f | <ide><path>guides/source/configuring.md
<ide> numbers. New applications filter out passwords by adding the following `config.f
<ide>
<ide> * `secrets.secret_key_base` is used for specifying a key which allows sessions for the application to be verified against a known secure key to prevent tampering. Applications get ... | 1 |
PHP | PHP | add tests for eloquent model push method | 432c478936ba363a09b28c6487c6b3e13c651f86 | <ide><path>tests/Database/DatabaseEloquentModelTest.php
<ide> public function testDeleteProperlyDeletesModel()
<ide> }
<ide>
<ide>
<add> public function testPushNoRelations()
<add> {
<add> $model = $this->getMock('EloquentModelStub', array('newQuery', 'updateTimestamps'));
<add> $query = m::mock('Illuminate\Databa... | 1 |
Javascript | Javascript | remove fallback function | 0cb1a088233b663785cfb2ead478c40774b050f4 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> }
<ide> },
<ide>
<del> fallback: function pdfViewDownload() {
<del> var url = this.url.split('#')[0];
<del> if (!PDFJS.isFirefoxExtension)
<del> return; // can't do this with regular viewer
<del> FirefoxCom.request('fallback', url);
<del> },
<d... | 1 |
Text | Text | add link to 7.0 release notes in upgrade guide | 6dd25a899abf3a6216ad3e865282b3070e134b9a | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> config.action_mailer.preview_paths << "#{Rails.root}/lib/mailer_previews"
<ide> Upgrading from Rails 6.1 to Rails 7.0
<ide> -------------------------------------
<ide>
<add>For more information on changes made to Rails 7.0 please see the [release notes](7_0_rel... | 1 |
PHP | PHP | preserve keys in collection reverse | 3b65a33206f426612d68eba7fb0e501833a1651d | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function reject($callback)
<ide> /**
<ide> * Reverse items order.
<ide> *
<add> * @param bool $preserveKeys
<ide> * @return static
<ide> */
<del> public function reverse()
<add> public function reverse($preserveKeys = fals... | 2 |
Ruby | Ruby | add test for brew info --json=v1 | a4020db526fc8476b4c8606a1f0c6473e1a197c8 | <ide><path>Library/Homebrew/test/cmd/info_spec.rb
<ide> .to output(/testball: stable 0.1/).to_stdout
<ide> .and not_to_output.to_stderr
<ide> .and be_a_success
<add>
<add> expect { brew "info", "testball", "--json=v1" }
<add> .to output(/\{.+testball.+\}/).to_stdout
<add> .and not_to_outp... | 1 |
Go | Go | fix docker run for 64 byte hex id | 16e4c4e481aca8d5a99d5a4760b5d27bf5bbb9fd | <ide><path>api/client/create.go
<ide> func (cli *DockerCli) createContainer(config *container.Config, hostConfig *cont
<ide> defer containerIDFile.Close()
<ide> }
<ide>
<del> ref, err := reference.ParseNamed(config.Image)
<add> var trustedRef reference.Canonical
<add> _, ref, err := reference.ParseIDOrReference(con... | 5 |
Javascript | Javascript | fix a bug in determining if yarn is available | caa9ab19bfa975c159d34cd603205147586ddaa2 | <ide><path>local-cli/util/yarn.js
<ide> */
<ide> 'use strict';
<ide>
<add>const execSync = require('child_process').execSync;
<ide> const fs = require('fs');
<ide> const path = require('path');
<ide> const semver = require('semver'); | 1 |
Ruby | Ruby | remove a circular dependency | 6062017382304b0872b18d84620d33e8204d7078 | <ide><path>activeresource/test/setter_trap.rb
<del>require 'abstract_unit'
<del>
<ide> class SetterTrap < ActiveSupport::BasicObject
<ide> class << self
<ide> def rollback_sets(obj) | 1 |
PHP | PHP | remove dead code | 870ec588b01a2a6890a5013be5029651760f8328 | <ide><path>src/Http/ServerRequestFactory.php
<ide> public static function marshalUriFromServer(array $server, array $headers)
<ide> $uri = static::updatePath($base, $uri);
<ide> }
<ide>
<add> if (!$uri->getHost()) {
<add> $uri = $uri->withHost('localhost');
<add> }
<add>
<i... | 3 |
Javascript | Javascript | fix a flakey test | cd135d5e90c188d7cf06b7b455ceafb64d10b6a3 | <ide><path>test/core/transition-test-transition.js
<ide> module.exports = {
<ide> d3.timer(function() {
<ide> cb(null, t1);
<ide> return true;
<del> });
<add> }, 50);
<ide> });
<ide> },
<ide> "decrements the lock's reference count": function(t1) { | 1 |
Go | Go | simplify secret lookup on service create | dce2afbd81945056aa955079fac04e28ab96e703 | <ide><path>cli/command/service/parse.go
<ide> func parseSecretString(secretString string) (string, string, error) {
<ide> // parseSecrets retrieves the secrets from the requested names and converts
<ide> // them to secret references to use with the spec
<ide> func parseSecrets(client client.APIClient, requestedSecrets ... | 1 |
Javascript | Javascript | allow some right swipe | 26a92220c2a6355afc0a54be4a7266da50f7c692 | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableRow.js
<ide> const emptyFunction = require('fbjs/lib/emptyFunction');
<ide> const CLOSED_LEFT_POSITION = 0;
<ide> // Minimum swipe distance before we recognize it as such
<ide> const HORIZONTAL_SWIPE_DISTANCE_THRESHOLD = 15;
<add>// Distance left of closed positio... | 1 |
Javascript | Javascript | simplify skeleton building | 9e4849ace7b9e8ebfbda022f9f32e3bf18e68dee | <ide><path>examples/js/loaders/FBXLoader.js
<ide>
<ide> function bindSkeleton( FBXTree, skeletons, geometryMap, modelMap, connections, sceneGraph ) {
<ide>
<del> // Now with the bones created, we can update the skeletons and bind them to the skinned meshes.
<del> sceneGraph.updateMatrixWorld( true );
<del>
<del> ... | 1 |
Go | Go | add container=lxc in default env | 67f1e3f5ed4d3061e07e910e28ac866b7bb13e18 | <ide><path>container.go
<ide> func (container *Container) Start(hostConfig *HostConfig) error {
<ide> params = append(params,
<ide> "-e", "HOME=/",
<ide> "-e", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
<add> "-e", "container=lxc",
<ide> )
<ide>
<ide> for _, elem := range container.Co... | 1 |
Javascript | Javascript | transfer the key prop in clonewithprops | 4a5a6ad733a546f933c8096932fb87b47bc335da | <ide><path>src/utils/__tests__/cloneWithProps-test.js
<ide> describe('cloneWithProps', function() {
<ide> console.warn = _warn;
<ide> }
<ide> });
<add>
<add> it('should transfer the key property', function() {
<add> var Component = React.createClass({
<add> render: function() {
<add> expect(... | 2 |
Ruby | Ruby | add cppflag for ncurses flag under 10.6 | e4a32736cd72836f3948ea4dd5f5aa97a784ff69 | <ide><path>Library/Homebrew/brewkit.rb
<ide> def x11
<ide> def enable_warnings
<ide> remove_from_cflags '-w'
<ide> end
<add> # Snow Leopard defines an NCURSES value the opposite of most distros
<add> # See: http://bugs.python.org/issue6848
<add> def ncurses_define
<add> append 'CPPFLAGS', "-DNCURSES_OPAQU... | 1 |
Go | Go | add deprecation warning for -t on pull | 15e52ccaadea996b409e2f62bcbdb1a088619e35 | <ide><path>api/client.go
<ide> func (cli *DockerCli) CmdPush(args ...string) error {
<ide> }
<ide>
<ide> func (cli *DockerCli) CmdPull(args ...string) error {
<del> cmd := cli.Subcmd("pull", "NAME", "Pull an image or a repository from the registry")
<del> tag := cmd.String([]string{"t", "-tag"}, "", "Download tagged i... | 1 |
PHP | PHP | add another integration test | 28390c9e76f87dc61ec8e0352a22b32a212a7706 | <ide><path>tests/Database/DatabaseEloquentIntegrationTests.php
<ide> public function setUp()
<ide> $table->integer('user_id');
<ide> $table->integer('friend_id');
<ide> });
<add>
<add> $this->schema()->create('posts', function($table) {
<add> $table->increments('id');
<add> $table->integer('user_id');
<add... | 1 |
Python | Python | remove test of parser pickle | cd71b6b0a94c98966a7750f067eaa2dd044f5fec | <ide><path>spacy/tests/parser/test_parser_pickle.py
<ide> import io
<ide>
<ide>
<del>@pytest.mark.models
<del>def test_pickle(EN):
<del> file_ = io.BytesIO()
<del> cloudpickle.dump(EN.parser, file_)
<del>
<del> file_.seek(0)
<del>
<del> loaded = pickle.load(file_)
<del>
<add>#@pytest.mark.models
<add>#def... | 1 |
Go | Go | add updatesuffixarray and refactor truncindex | 219b7ae8b526bb5e6d0e27176308db71438a002f | <ide><path>utils/utils.go
<ide> func NewTruncIndex(ids []string) (idx *TruncIndex) {
<ide> return
<ide> }
<ide>
<del>func (idx *TruncIndex) Add(id string) error {
<del> idx.Lock()
<del> defer idx.Unlock()
<add>func (idx *TruncIndex) addId(id string) error {
<ide> if strings.Contains(id, " ") {
<ide> return fmt.Err... | 1 |
Ruby | Ruby | use -v for python version | 05772f8ccfa16ca27e75fa22b7e590241a19b03e | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_enthought_python
<ide>
<ide> def check_for_bad_python_symlink
<ide> return unless which "python"
<del> # Indeed Python --version outputs to stderr (WTF?)
<del> `python --version 2>&1` =~ /Python (\d+)\./
<add> # Indeed Python -V outputs to stderr (WTF?... | 1 |
PHP | PHP | use single quotes where applicable | 256ac763f4f5c9cd37a3831bd7df827ff46b387b | <ide><path>src/Collection/CollectionTrait.php
<ide> public function last()
<ide> public function takeLast(int $howMany): CollectionInterface
<ide> {
<ide> if ($howMany < 1) {
<del> throw new InvalidArgumentException("The takeLast method requires a number greater than 0.");
<add> th... | 44 |
Python | Python | fix typo in the test case name | ff38804195258385dff1ebe339ceddb6fd442f93 | <ide><path>keras/engine/functional_utils_test.py
<ide>
<ide> class FunctionalModelSlideTest(keras_parameterized.TestCase):
<ide>
<del> def testfind_nodes_by_inputs_and_outputs(self):
<add> def test_find_nodes_by_inputs_and_outputs(self):
<ide> inputs = input_layer_lib.Input((10,))
<ide> unconnected_inputs =... | 1 |
Mixed | Javascript | add null check in readable.from | 2cd79700c028f99f76f5b124b30009a838019b2b | <ide><path>doc/api/stream.md
<ide> added:
<ide> -->
<ide>
<ide> * `iterable` {Iterable} Object implementing the `Symbol.asyncIterator` or
<del> `Symbol.iterator` iterable protocol.
<add> `Symbol.iterator` iterable protocol. Emits an 'error' event if a null
<add> value is passed.
<ide> * `options` {Object} Options ... | 4 |
Javascript | Javascript | fix some warnings/errors | ec565ddd9c536aa7f7441e89f03ea08e23de1a42 | <ide><path>docs/app/src/search.js
<ide> angular.module('search', [])
<ide> }
<ide>
<ide> // Create the lunr index
<del> var index = lunr(/* @this */ function() {
<add> var index = lunr(/** @this */ function() {
<ide> this.ref('path');
<ide> this.field('titleWords', {boost: 50});
<ide> t... | 40 |
Text | Text | fix stateful rnns faq link | 70ffba0766b5671fa9f2d08aa5a19fa24021bd3f | <ide><path>docs/templates/getting-started/sequential-model-guide.md
<ide> A stateful recurrent model is one for which the internal states (memories) obtai
<ide> of samples are reused as initial states for the samples of the next batch. This allows to process longer sequences
<ide> while keeping computational complexity... | 1 |
Text | Text | modify the text | dd5e85779722d4042b494559d1859e966709e660 | <ide><path>guide/english/mathematics/algebra/intro-to-rationalizing-the-denominator/index.md
<ide> title: Intro to Rationalizing the Denominator
<ide> ---
<ide> ## Intro to Rationalizing the Denominator
<ide>
<del>If you can't express the denominator of a fraction in the form of a/b, where a and b are integers, then t... | 1 |
Python | Python | fix undefined names | b7f9cbdc834fdde3f7c2ebf93698d3918faa8929 | <ide><path>spacy/lang/ga/irish_morphology_helpers.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>class IrishMorph:
<del> consonants = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z']
<del> broad_vowels = ['a', 'á', 'o', 'ó', 'u... | 1 |
Ruby | Ruby | fix unstated usage of pathname | 812136a0b23787aa0e81c28d0bbc71a9ccf0f6ea | <ide><path>railties/lib/rails/engine.rb
<del>require 'active_support/core_ext/module/delegation'
<ide> require 'rails/railtie'
<add>require 'active_support/core_ext/module/delegation'
<add>require 'pathname'
<ide>
<ide> module Rails
<ide> class Engine < Railtie | 1 |
Javascript | Javascript | add tests for oneoftype with shape | f88936977fadaf41050af22b0a6115479021e711 | <ide><path>src/core/__tests__/ReactPropTypes-test.js
<ide> describe('Union Types', function() {
<ide> [],
<ide> 'Invalid prop `testProp` supplied to `testComponent`.'
<ide> );
<add>
<add> var checker = PropTypes.oneOfType([
<add> PropTypes.shape({a: PropTypes.number.isRequired}),
<add> Prop... | 1 |
Javascript | Javascript | add new accesstoken utils | 2f944b3aed45e92dee2b2c34a77061528a7be1a9 | <ide><path>api-server/server/utils/getSetAccessToken.js
<add>import jwt from 'jsonwebtoken';
<add>import { isBefore } from 'date-fns';
<add>
<add>import { jwtSecret as _jwtSecret } from '../../../config/secrets';
<add>
<add>export const authHeaderNS = 'X-fcc-access-token';
<add>export const jwtCookieNS = 'jwt_access_to... | 2 |
Ruby | Ruby | fix ares tests under jruby. [tom.enebo@gmail.com] | fc042435a6f571684314d60e9605e3331b7435f9 | <ide><path>activeresource/test/base_test.rb
<ide> def test_respond_to
<ide> assert matz.respond_to?(:name)
<ide> assert matz.respond_to?(:name=)
<ide> assert matz.respond_to?(:name?)
<del> assert !matz.respond_to?(:java)
<add> assert !matz.respond_to?(:super_scalable_stuff)
<ide> end
<ide>
<ide> ... | 1 |
Javascript | Javascript | increase coverage for internal/errors.js | 44d486500de528fa955f9126d7b82cef0deb0ab8 | <ide><path>test/parallel/test-internal-errors.js
<ide> assert.strictEqual(errors.message('ERR_INVALID_ARG_TYPE',
<ide> assert.strictEqual(errors.message('ERR_INVALID_ARG_TYPE',
<ide> ['a', 'b', null]),
<ide> 'The "a" argument must be of type b. Received type null');
... | 1 |
Javascript | Javascript | exclude tests that are only failing on edge | 7efed006327df7e6f0784b54e856f0a4e87331e5 | <ide><path>test/ng/animateRunnerSpec.js
<ide> describe('$$AnimateRunner', function() {
<ide> expect(status).toBe(true);
<ide> }));
<ide>
<del> it('should break the chian when a function evaluates to false',
<add> it('should break the chain when a function evaluates to false',
<ide> inject(functio... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.