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 |
|---|---|---|---|---|---|
Javascript | Javascript | fix mixin blueprint tests under windows | 3a2ef238f179a65f39bbd4adfac0cb2aa4b03cb2 | <ide><path>node-tests/blueprints/mixin-test.js
<ide> const emberNew = blueprintHelpers.emberNew;
<ide> const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy;
<ide> const setupPodConfig = blueprintHelpers.setupPodConfig;
<ide> const expectError = require('../helpers/expect-error');
<add>const EOL = require(... | 1 |
Javascript | Javascript | use block-scoping in test/pummel/test-timers.js | 49a1f7f15d1e8d996459ce4b503251a0be762763 | <ide><path>test/pummel/test-timers.js
<ide> const assert = require('assert');
<ide>
<ide> const WINDOW = 200; // Why does this need to be so big?
<ide>
<del>let interval_count = 0;
<ide>
<ide> const starttime = new Date();
<del>setTimeout(common.mustCall(function() {
<del> const endtime = new Date();
<add>{
<add> ... | 1 |
PHP | PHP | improve shouldbroadcastnow performance | c5c5b75a07af4442c437d8730ad0ecec8a5b97cc | <ide><path>src/Illuminate/Broadcasting/BroadcastManager.php
<ide> use Illuminate\Broadcasting\Broadcasters\RedisBroadcaster;
<ide> use Illuminate\Contracts\Broadcasting\Factory as FactoryContract;
<ide> use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
<add>use Illuminate\Contracts\Bus\Dispatcher as BusDispatch... | 1 |
PHP | PHP | add only method to session | c681ef442a2c57a74671ec9d11d157349be66646 | <ide><path>src/Illuminate/Session/Store.php
<ide> public function all()
<ide> return $this->attributes;
<ide> }
<ide>
<add> /**
<add> * Get a subset of the session data.
<add> *
<add> * @param array $keys
<add> * @return array
<add> */
<add> public function only($keys)
<add> ... | 2 |
PHP | PHP | fix undefined variable error | 545694d84b2fd9c63d4961386e9691df6251834f | <ide><path>lib/Cake/Controller/Component/SecurityComponent.php
<ide> protected function _validateCsrf($controller) {
<ide> * @return array An array of nonce => expires.
<ide> */
<ide> protected function _expireTokens($tokens) {
<add> $now = time();
<ide> foreach ($tokens as $nonce => $expires) {
<ide> if ($exp... | 1 |
Javascript | Javascript | add test for autodestroy in stream | d6f52f5a38b2e93f62da2c18a58bc85991f11234 | <ide><path>test/parallel/test-stream-auto-destroy.js
<ide> const assert = require('assert');
<ide> assert(finished);
<ide> }));
<ide> }
<add>
<add>{
<add> const r = new stream.Readable({
<add> read() {
<add> r2.emit('error', new Error('fail'));
<add> }
<add> });
<add> const r2 = new stream.Readable(... | 1 |
PHP | PHP | replace double quotes with single quotes | 3f695312a174f5b5c39171ec740d136442a9d186 | <ide><path>tests/Database/DatabaseEloquentIntegrationTest.php
<ide> public function setUp()
<ide>
<ide> $this->schema()->create('photos', function ($table) {
<ide> $table->increments('id');
<del> $table->unsignedInteger("imageable_id")->nullable();
<del> $table->string("imagea... | 1 |
Python | Python | fix gpt-j _checkpoint_for_doc typo | 9396b40433408a5a3c1316a9ff40b026e1c1d708 | <ide><path>src/transformers/models/gptj/modeling_gptj.py
<ide>
<ide> logger = logging.get_logger(__name__)
<ide>
<del>_CHECKPOINT_FOR_DOC = "EleutherAI/gpt-j-6b"
<add>_CHECKPOINT_FOR_DOC = "EleutherAI/gpt-j-6B"
<ide> _CONFIG_FOR_DOC = "GPTJConfig"
<ide> _TOKENIZER_FOR_DOC = "GPT2Tokenizer"
<ide> | 1 |
Javascript | Javascript | fix a small mistake for cmap format 0 | ac163da4c877be93b876563f7898cfa7f474e13e | <ide><path>fonts.js
<ide> var Font = (function Font() {
<ide> deltas.push(index);
<ide>
<ide> var unicode = j + kCmapGlyphOffset;
<del> encoding[j].unicode = unicode;
<add> var mapping = encoding[j] || {};
<add> mapping.unicode = unicode;
<ad... | 1 |
Python | Python | remove testfixtures module that is only used once | 3a046faaeb457572b1484faf158cc96eb81df44a | <ide><path>setup.py
<ide> def get_sphinx_theme_version() -> str:
<ide> 'pywinrm',
<ide> 'qds-sdk>=1.9.6',
<ide> 'requests_mock',
<del> 'testfixtures',
<ide> 'wheel',
<ide> 'yamllint',
<ide> ]
<ide><path>tests/providers/amazon/aws/hooks/test_glacier.py
<ide> import unittest
<ide> from unittest imp... | 2 |
Ruby | Ruby | convert cask test to spec | a616fab5bf84d9e2a07610666cf148444c04b3c4 | <ide><path>Library/Homebrew/cask/spec/cask/cask_spec.rb
<ide> end
<ide> end
<ide> end
<add>
<add> describe "load" do
<add> let(:hbc_relative_tap_path) { "../../Taps/caskroom/homebrew-cask" }
<add>
<add> it "returns an instance of the Cask for the given token" do
<add> c = Hbc.load("adium")
<add>... | 2 |
Python | Python | fix typo at datasets/mnist.py | 97e391dd868abcf833c8273866b34aa69a0d4d17 | <ide><path>slim/datasets/mnist.py
<ide> """Provides data for the MNIST dataset.
<ide>
<ide> The dataset scripts used to create the dataset can be found at:
<del>tensorflow/models/slim/data/create_mnist_dataset.py
<add>tensorflow/models/slim/datasets/download_and_convert_mnist.py
<ide> """
<ide>
<ide> from __future__ ... | 1 |
Ruby | Ruby | fix destructive stringify_keys for label_tag | 895d64531d25a76c1de2d4fec9aba68c0ee8c104 | <ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb
<ide> def text_field_tag(name, value = nil, options = {})
<ide> def label_tag(name = nil, content_or_options = nil, options = nil, &block)
<ide> options = content_or_options if block_given? && content_or_options.is_a?(Hash)
<ide> opt... | 2 |
Python | Python | fix typo in documentation | 6925cb7c249420a278e34c98d385264b1ac30293 | <ide><path>numpy/linalg/linalg.py
<ide> def eig(a):
<ide> --------
<ide> eigvals : eigenvalues of a non-symmetric array.
<ide>
<del> eigh : eigenvalues and eigenvectors of a symmetric or Hermitian
<del> (conjugate symmetric) array.
<add> eigh : eigenvalues and eigenvectors of a symmetric or Hermit... | 1 |
Python | Python | remove need of datetime.timezone in test_views.py | 9997aff10bf4c1bfbde38fa65d7961ec431f75dc | <ide><path>tests/www/test_views.py
<ide> import unittest
<ide> import urllib
<ide> from contextlib import contextmanager
<del>from datetime import datetime as dt, timedelta, timezone as tz
<add>from datetime import datetime as dt, timedelta
<ide> from typing import Any, Dict, Generator, List, NamedTuple
<ide> from unit... | 1 |
Ruby | Ruby | check position of 'revision' and 'keg_only' | cd267e0bce9ca9cc1af37deab96c47e1cfb7645c | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_file
<ide> [/^ mirror ["'][\S\ ]+["']/, "mirror"],
<ide> [/^ version ["'][\S\ ]+["']/, "version"],
<ide> [/^ (sha1|sha256) ["'][\S\ ]+["']/, "checksum"],
<add> [/^ revision/, "revision"],
<ide> [/... | 1 |
Text | Text | restore note about nested script_name handling | 99775fd1612217aaba2f3580b4204c6b75c04249 | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> Also check your environment settings for `config.action_dispatch.best_standards_
<ide>
<ide> * In Rails 4.0, a generic `ActionDispatch::ParamsParser::ParseError` exception is raised when `ParamsParser` fails to parse request params. You will want to rescue this... | 1 |
Java | Java | fix measureinwindow when using nodes | 9a28701bd87893a968d687461efaa5ce36c212fd | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java
<ide> public void setChildren(
<ide>
<ide> @Override
<ide> public void measure(int reactTag, Callback callback) {
<add> measureHelper(reactTag, false, callback);
<add> }
<add>
<add> private void measureHelper(int reactTag,... | 2 |
Text | Text | release notes for 1.3.0-beta.1 retractable-eyebrow | ca4ddfadbae0a8a432b87254b5bd6c25b616ba42 | <ide><path>CHANGELOG.md
<add><a name="1.3.0-beta.1"></a>
<add># 1.3.0-beta.1 retractable-eyebrow (2014-03-07)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:** support templates with thead and tfoot root elements
<add> ([53ec5e13](https://github.com/angular/angular.js/commit/53ec5e13e5955830b6751019eef232bd2125... | 1 |
Python | Python | make xfailed test for modules in public api pass | 69bd8010edb30674f39d2fc3b7ae0a1d03b55c23 | <ide><path>numpy/lib/format.py
<ide> )
<ide>
<ide>
<add>__all__ = []
<add>
<add>
<ide> MAGIC_PREFIX = b'\x93NUMPY'
<ide> MAGIC_LEN = len(MAGIC_PREFIX) + 2
<ide> ARRAY_ALIGN = 64 # plausible values are powers of 2 between 16 and 4096
<ide><path>numpy/matlib.py
<ide>
<ide> import numpy as np
<ide> from numpy.matri... | 3 |
Python | Python | remove mention of quickselect in argpartition docs | da9f29a12e3224da87c84cc36ad16dc932cb517e | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide>
<ide> add_newdoc('numpy.core.multiarray', 'ndarray', ('argpartition',
<ide> """
<del> a.argpartition(kth, axis=-1, kind='quickselect', order=None)
<add> a.argpartition(kth, axis=-1, kind='introselect', order=None)
<ide>
<ide> ... | 1 |
Python | Python | remove usage of six | fd8b07c6bb0c197e7e1ed4dfee7e6e85cc69a7d1 | <ide><path>tests/jobs/test_scheduler_job.py
<ide> import mock
<ide> import psutil
<ide> import pytest
<del>import six
<ide> from mock import MagicMock, patch
<ide> from parameterized import parameterized
<ide> from sqlalchemy import func
<ide> def test_critical_section_execute_task_instances(self):
<ide> )
<ide... | 2 |
Javascript | Javascript | fix linting issues | 8567b8feea95ddff9bc7049eb50c8ec21620cdca | <ide><path>src/project.js
<ide> class Project extends Model {
<ide> // * `exact` If `true`, only add `projectPath` if it names an existing directory. If `false`, if `projectPath` is a
<ide> // a file or does not exist, its parent directory will be added instead.
<ide> addPath (projectPath, options = {}) {
<... | 1 |
Go | Go | change shm mode to 1777 | 986cf931c38b8cdc51da44af0313502ca1156cfc | <ide><path>pkg/libcontainer/nsinit/mount.go
<ide> func mountSystem(rootfs string, mountLabel string) error {
<ide> }{
<ide> {source: "proc", path: filepath.Join(rootfs, "proc"), device: "proc", flags: defaultMountFlags},
<ide> {source: "sysfs", path: filepath.Join(rootfs, "sys"), device: "sysfs", flags: defaultMou... | 1 |
Text | Text | fix broken link | 170f4526f567b40245e75386df5f303085b32ac5 | <ide><path>docs/NativeComponentsAndroid.md
<ide> Setter declaration requirements for methods annotated with `@ReactPropGroup` are
<ide>
<ide> ## 4. Register the `ViewManager`
<ide>
<del>The final Java step is to register the ViewManager to the application, this happens in a similar way to [Native Modules](native-modu... | 1 |
Java | Java | finalize many of flatshadownode methods | d1ccb6d23d1c35567c13f51cc75fdbffd0a77925 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatShadowNode.java
<ide> public void setBackgroundColor(int backgroundColor) {
<ide> }
<ide>
<ide> @ReactProp(name = "overflow")
<del> public void setOverflow(String overflow) {
<add> public final void setOverflow(String overflow) {
<ide> mClipTo... | 1 |
PHP | PHP | fix typo in newexp(); resolve cakephp/docs | 51deb992482d4e1b97e58b97373f2844504d9312 | <ide><path>src/Database/Query.php
<ide> public function into($table)
<ide> * ### Example
<ide> *
<ide> * ```
<del> * $query->newExp()->lte('count', $query->identifier('total'));
<add> * $query->newExpr()->lte('count', $query->identifier('total'));
<ide> * ```
<ide> *
<ide> * @param... | 1 |
Python | Python | add numeric doctests (patch by gael) | 59cf27d758b0b2d929e281c3f6ac6316b6c53479 | <ide><path>numpy/core/numeric.py
<ide> 'array_repr', 'array_str', 'set_string_function',
<ide> 'little_endian', 'require',
<ide> 'fromiter', 'array_equal', 'array_equiv',
<del> 'indices', 'fromfunction',
<add> 'indices', 'fromfunction',
<ide> 'load', 'loa... | 1 |
Python | Python | add the forgotten glances_statsd.py script | c088642ac2abb4fb55e14bccc06646fb5ab5fc9a | <ide><path>glances/exports/glances_statsd.py
<add># -*- coding: utf-8 -*-
<add>#
<add># This file is part of Glances.
<add>#
<add># Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com>
<add>#
<add># Glances is free software; you can redistribute it and/or modify
<add># it under the terms of the GNU Lesser General Publi... | 1 |
PHP | PHP | fix incorrect test | e59849b9c5913ad68e163c17fef59eac01734c99 | <ide><path>tests/TestCase/Http/Cookie/CookieTest.php
<ide> public function testToArrayCompat()
<ide> 'value' => 'cakephp-rocks',
<ide> 'path' => '/api',
<ide> 'domain' => 'cakephp.org',
<del> 'expires' => $date->format(DATE_COOKIE),
<add> 'expires' => 'Fri, 31-M... | 1 |
Java | Java | fix broken links in javadoc | 1dcb6236a639ff74f9060487ed968a289c13f97f | <ide><path>spring-web/src/main/java/org/springframework/http/codec/xml/XmlEventDecoder.java
<ide> import org.springframework.util.xml.StaxUtils;
<ide>
<ide> /**
<del> * Decodes a {@link DataBuffer} stream into a stream of {@link XMLEvent DataBuffer} stream into a stream of {@link XMLEvents}.
<del> * That is, given the... | 2 |
Mixed | Text | replace interface with simple type | 3accde6dee079fbde42f1928002bce43cb15833d | <ide><path>container/container.go
<ide> var (
<ide> errInvalidNetwork = fmt.Errorf("invalid network settings while building port map info")
<ide> )
<ide>
<del>// AttachError represents errors of attach
<del>type AttachError interface {
<del> IsDetached() bool
<del>}
<del>
<del>type detachError struct{}
<del>
<del>fu... | 7 |
Python | Python | add property test for clipping | 4b20d78b74556f0a498ffb311084aad57bb358af | <ide><path>numpy/core/tests/test_numeric.py
<ide> assert_warns, HAS_REFCOUNT
<ide> )
<ide>
<add>from hypothesis import assume, given, strategies as st
<add>from hypothesis.extra import numpy as hynp
<add>
<ide>
<ide> class TestResize:
<ide> def test_copies(self):
<ide> def test_NaT_propagation(self, arr, ... | 1 |
Javascript | Javascript | use ref counts to count timers | 64cc066f59f50e29fc3a587a3cfc8b1270eb45cd | <ide><path>lib/internal/bootstrap/node.js
<ide> setupPrepareStackTrace();
<ide>
<ide> const {
<add> Array,
<ide> ArrayPrototypeConcat,
<del> ArrayPrototypeFilter,
<del> ArrayPrototypeMap,
<add> ArrayPrototypeFill,
<ide> FunctionPrototypeCall,
<ide> JSONParse,
<ide> ObjectDefineProperty,
<ide> ObjectDefin... | 3 |
Javascript | Javascript | update logic for non-signedin users | d8667662230e93d7654d3910f5db6f69733bf454 | <ide><path>client/src/components/Donation/PaypalButton.js
<ide> export class PaypalButton extends Component {
<ide> return { ...configurationObj };
<ide> }
<ide>
<del> handleApproval = data => {
<add> handleApproval = (data, isSubscription) => {
<ide> const { amount, duration } = this.state;
<ide> cons... | 1 |
Ruby | Ruby | handle non-standard tap remotes | 4e61f61a208c0074bdf60fc68b7bb0e88e67c3d7 | <ide><path>Library/Homebrew/dev-cmd/bump-cask-pr.rb
<ide> def fetch_cask(contents, version, config: nil)
<ide> end
<ide>
<ide> def check_open_pull_requests(cask, args:)
<del> GitHub.check_for_duplicate_pull_requests(cask.token, cask.tap.full_name,
<add> tap_remote_repo = cask.tap.remote_repo || cask.tap.full... | 6 |
Javascript | Javascript | add support for inspecting symbols | 834382ae778be7c1bb24136bc699d2dc90ca2744 | <ide><path>packages/ember-metal/lib/utils.js
<ide> export function inspect(obj) {
<ide> return '[' + obj + ']';
<ide> }
<ide> // for non objects
<del> if (typeof obj !== 'object') {
<add> var type = typeof obj;
<add> if (type !== 'object' && type !== 'symbol') {
<ide> return ''+obj;
<ide> }
<ide> // ... | 2 |
Java | Java | remove trailing whitespace from java source code | 7a690df92522a2e8bf0aad1b27c6238fbe489339 | <ide><path>spring-context/src/test/java/org/springframework/context/annotation/AutoProxyLazyInitTests.java
<ide> public void withStaticBeanMethod() {
<ide>
<ide> ApplicationContext ctx = new AnnotationConfigApplicationContext(ConfigWithStatic.class);
<ide> MyBean bean = ctx.getBean("myBean", MyBean.class);
<del>
... | 12 |
Javascript | Javascript | fix resize bug of line / radar charts | 0c48c1148a7f791fb31a01f8b1ef51386559bab3 | <ide><path>src/controllers/controller.radar.js
<ide> export default class RadarController extends DatasetController {
<ide> const labels = meta.iScale.getLabels();
<ide>
<ide> // Update Line
<add> line.points = points;
<ide> // In resize mode only point locations change, so no need to set the points or options.... | 2 |
Java | Java | add partial websocketmessage support | fb4e34fce486315935a0292ac0dbe7e0b1497f7f | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/BinaryMessage.java
<ide> */
<ide> package org.springframework.web.socket;
<ide>
<del>import java.io.ByteArrayInputStream;
<del>import java.io.InputStream;
<ide> import java.nio.ByteBuffer;
<ide>
<ide>
<ide> public final class BinaryMessage ext... | 11 |
Python | Python | use plac annotations for arguments | 4d896171ae43a4faba1b3c5cf480e641beb84cf3 | <ide><path>examples/training/train_parser.py
<ide> """
<ide> from __future__ import unicode_literals, print_function
<ide>
<add>import plac
<ide> import random
<ide> from pathlib import Path
<ide>
<ide> ]
<ide>
<ide>
<add>@plac.annotations(
<add> model=("Model name. Defaults to blank 'en' model.", "option", "m",... | 1 |
Text | Text | fix missing links | eb74ff4bf9e3b83edee346fc0dfa99e7e7cc086c | <ide><path>README.md
<ide> While these are tractable for CSS itself, we don’t need to duplicate the effor
<ide>
<ide> We track V8. Since V8 has wide support for ES6 and `async` and `await`, we transpile those. Since V8 doesn’t support class decorators, we don’t transpile those.
<ide>
<del>See [this](link to default b... | 1 |
Text | Text | fix comma splice [ci skip] | 092d1af137d6d52349880417923874e17508e608 | <ide><path>guides/source/engines.md
<ide> To hook into the initialization process of one of the following classes use the
<ide>
<ide> ## Configuration hooks
<ide>
<del>These are the available configuration hooks. They do not hook into any particular framework, instead they run in context of the entire application.
<a... | 1 |
Ruby | Ruby | push parameter instantiation to one method | 9669f6f7883787aa209207cab68b1069636aed9e | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def paramify_values(hash_or_array_or_value)
<ide> hash_or_array_or_value.map {|i| paramify_values(i)}
<ide> when Rack::Test::UploadedFile, ActionDispatch::Http::UploadedFile
<ide> hash_or_array_or_value
<add> when nil then... | 1 |
Text | Text | add section for git remote mirroring | 3f64bcb2fbffc663be53b1739c1e6009be9db055 | <ide><path>docs/Installation.md
<ide> it does it too. You have to confirm everything it will do before it starts.
<ide> [Xcode](https://itunes.apple.com/us/app/xcode/id497799835) <sup>[3](#3)</sup>
<ide> * A Bourne-compatible shell for installation (e.g. `bash` or `zsh`) <sup>[4](#4)</sup>
<ide>
<add>## Git Remote M... | 1 |
Python | Python | fix indentation in code examples in docs | 9ad5ed81037480eece92a3d6f4f5825e084f3b16 | <ide><path>docs/autogen.py
<ide> def process_class_docstring(docstring):
<ide> docstring = re.sub(r' ([^\s\\]+):(.*)\n',
<ide> r' - __\1__:\2\n',
<ide> docstring)
<add>
<add> docstring = docstring.replace(' ' * 5, '\t\t')
<ide> docstring = docstring.repl... | 1 |
Javascript | Javascript | simplify dispatchevent discrete argument | 121acae09060803d2fdc23fdfd2f671a47908d1f | <ide><path>packages/react-dom/src/events/DOMEventResponderSystem.js
<ide> import type {
<ide> ReactEventComponentInstance,
<ide> ReactResponderContext,
<ide> ReactResponderEvent,
<del> ReactResponderDispatchEventOptions,
<ide> } from 'shared/ReactTypes';
<ide> import type {DOMTopLevelEventType} from 'events/TopL... | 8 |
Ruby | Ruby | add reason helpers, rename valid | 373650d00d51c466fe5c9eaf5d09afdcb018baf7 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_deps
<ide> end
<ide>
<ide> if @new_formula &&
<del> dep_f.keg_only_reason&.reason == :provided_by_macos &&
<del> dep_f.keg_only_reason.valid? &&
<add> dep_f.keg_only_reason.provided_by_macos? &&
<add> ... | 4 |
Javascript | Javascript | resolve multiple deps to module ids | 421f203b57b1c4f0705b1f0d49ddceb8f920be10 | <ide><path>lib/HotModuleReplacementPlugin.js
<ide> HotModuleReplacementPlugin.prototype.apply = function(compiler) {
<ide> compiler.parser.plugin("call module.hot.accept", function(expr) {
<ide> if(!this.state.compilation.hotUpdateChunkTemplate) return false;
<ide> if(expr.arguments.length > 1) {
<del> var param... | 1 |
Javascript | Javascript | improve catalan localization | 560695112f1a3cd3937eddd00665d2f3ceeb8afd | <ide><path>src/locale/ca.js
<ide> export default moment.defineLocale('ca', {
<ide> sameElse : 'L'
<ide> },
<ide> relativeTime : {
<del> future : 'en %s',
<add> future : 'd\'aquí %s',
<ide> past : 'fa %s',
<ide> s : 'uns segons',
<ide> m : 'un minut',
<ide><path>src/... | 2 |
Javascript | Javascript | fix custom inspection with extra properties | d834275a48bc1f85e2289bf7e52a5035a4d97f7e | <ide><path>lib/buffer.js
<ide> const {
<ide> isUint8Array
<ide> } = require('internal/util/types');
<ide> const {
<del> formatProperty,
<del> kObjectType
<add> inspect: utilInspect
<ide> } = require('internal/util/inspect');
<ide>
<ide> const {
<ide> Buffer.prototype[customInspectSymbol] = function inspect(recurs... | 3 |
Go | Go | move init layer to top rather than bottom | c199ed228baf0e5d33b7739cc2442a32dece7020 | <ide><path>devmapper/deviceset_devmapper.go
<ide> func (devices *DeviceSetDM) loadMetaData() error {
<ide> return nil
<ide> }
<ide>
<del>func (devices *DeviceSetDM) createBaseLayer(dir string) error {
<del> for pth, typ := range map[string]string{
<del> "/dev/pts": "dir",
<del> "/dev/shm": "dir",
<d... | 2 |
PHP | PHP | add test for pipe execution order | 00bdd2f5d7e5fb153d6c0276a7042c4c4edc754e | <ide><path>tests/Pipeline/PipelineTest.php
<ide> public function testPipelineBasicUsage()
<ide> unset($_SERVER['__test.pipe.two']);
<ide> }
<ide>
<add> public function testMultiplePipelinesBackAndForthExecutionOrder()
<add> {
<add> $pipeTwo = function ($piped, $next) {
<add> $_SERVE... | 1 |
Ruby | Ruby | fix actioncontroller autoloads | e4c0163f3288cf992b8a60666d79f20f74daeab8 | <ide><path>actionpack/lib/action_controller.rb
<ide> module ActionController
<ide> # TODO: Review explicit to see if they will automatically be handled by
<ide> # the initilizer if they are really needed.
<ide> def self.load_all!
<del> [Base, CgiRequest, CgiResponse, RackRequest, RackRequest, Http::Headers, Ur... | 1 |
Ruby | Ruby | use the correct model in the test | 2939c2c0e011347d06ba3cc9dfe4ebe3b08f6799 | <ide><path>activerecord/test/models/post.rb
<ide> def greeting
<ide> has_many :comments_with_extend_2, extend: [NamedExtension, NamedExtension2], class_name: "Comment", foreign_key: "post_id"
<ide>
<ide> has_many :author_favorites, through: :author
<del> has_many :author_favorites_with_scope, through: :author, cl... | 1 |
Javascript | Javascript | fix resource name when filename is data uri | c872a68204fbe174689341d95716eb7747e64fc4 | <ide><path>lib/TemplatedPathPlugin.js
<ide>
<ide> "use strict";
<ide>
<add>const mime = require("mime-types");
<ide> const { basename, extname } = require("path");
<ide> const util = require("util");
<ide> const Chunk = require("./Chunk");
<ide> const replacePathVariables = (path, data, assetInfo) => {
<ide> // [nam... | 3 |
Python | Python | remove duplicate state stopped | 2f514559ba13ca0268e9d5421a477514cc19dec0 | <ide><path>libcloud/compute/types.py
<ide> class NodeState(object):
<ide> :cvar TERMINATED: Node is terminated. This node can't be started later on.
<ide> :cvar STOPPED: Node is stopped. This node can be started later on.
<ide> :cvar PENDING: Node is pending.
<del> :cvar STOPPED: Node is stopped.
<ide> ... | 1 |
Javascript | Javascript | enforce correct `setstate()` usage | 051a67784f245b2a18ee4da2c75b53016aba4364 | <ide><path>Libraries/Lists/StateSafePureComponent.js
<add>/**
<add> * Copyright (c) Meta Platforms, Inc. and affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow strict
<add> * @format
<add> */
<... | 2 |
Ruby | Ruby | use some puts for clang | fc7fb60b72d47aaf527bf53a7313db8fb84e7bdd | <ide><path>Library/Homebrew/system_config.rb
<ide> def dump_verbose_config(f = $stdout)
<ide> f.puts "GCC-4.2: build #{gcc_4_2}" unless gcc_4_2.null?
<ide> f.print "Clang: "
<ide> if clang.null?
<del> f.print "N/A"
<add> f.puts "N/A"
<ide> else
<ide> f.print "#{clang} build... | 1 |
Python | Python | fix syntax error in celery.views | 96974bb9b8aaf7e958c4ba1282088519cd77c7c9 | <ide><path>celery/views.py
<ide> def apply(request, task_name, *args):
<ide>
<ide> task = tasks[task_name]
<ide> result = apply_async(task, args=args, kwargs=kwargs)
<del> return JSON_dump({"ok": "true", "task_id": result.task_id
<add> return JSON_dump({"ok": "true", "task_id": result.task_id})
<... | 1 |
Python | Python | add default conns back only when needed | ac12401efeda16805d9b0ad67148bc0d12752973 | <ide><path>tests/api_connexion/endpoints/test_connection_endpoint.py
<ide> def setUpClass(cls) -> None:
<ide> def setUp(self) -> None:
<ide> self.client = self.app.test_client() # type:ignore
<ide> # we want only the connection created here for this test
<del> clear_db_connections()
<add> ... | 2 |
Javascript | Javascript | fix error handling test-http-full-response | 23662f36e34bf07bea013861d082c4cf5affe0b1 | <ide><path>test/parallel/test-http-full-response.js
<ide> function runAb(opts, callback) {
<ide> common.printSkipMessage(`problem spawning \`ab\`.\n${stderr}`);
<ide> process.reallyExit(0);
<ide> }
<del> process.exit();
<del> return;
<add> throw err;
<ide> }
<ide>
<ide> let... | 1 |
Text | Text | add model cards for deeppavlov models | 8a2d9bc9ef38452e80ce872505a5ad5623c12657 | <ide><path>model_cards/DeepPavlov/bert-base-bg-cs-pl-ru-cased/README.md
<add>---
<add>language:
<add>- bulgarian
<add>- czech
<add>- polish
<add>- russian
<add>---
<add>
<add># bert-base-bg-cs-pl-ru-cased
<add>
<add>SlavicBERT\[1\] \(Slavic \(bg, cs, pl, ru\), cased, 12-layer, 768-hidden, 12-heads, 180M parameters\) wa... | 6 |
Python | Python | fix ticket . do some cleanups | 4d40dff448b1b368af6752fa8b9a93716db76b3f | <ide><path>numpy/lib/twodim_base.py
<ide> def fliplr(m):
<ide> """
<ide> m = asanyarray(m)
<ide> if m.ndim < 2:
<del> raise ValueError, "Input must be >= 2-d."
<add> raise ValueError("Input must be >= 2-d.")
<ide> return m[:, ::-1]
<ide>
<ide> def flipud(m):
<ide> def flipud(m):
<ide> ... | 1 |
PHP | PHP | apply fixes from styleci | ea6cedb379a07a9dee713b269d05fc7fa6fda0d7 | <ide><path>src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php
<ide> namespace Illuminate\Database\Schema;
<ide>
<ide> use Illuminate\Support\Str;
<del>use Illuminate\Database\Schema\Blueprint;
<ide>
<ide> class ForeignIdColumnDefinition extends ColumnDefinition
<ide> { | 1 |
Ruby | Ruby | fix svn remote test on mojave | 8bfde013f631ec5026313c9194ec2fff8cfc5f01 | <ide><path>Library/Homebrew/utils.rb
<ide> def inject_dump_stats!(the_module, pattern)
<ide>
<ide> $times = {}
<ide> at_exit do
<del> col_width = [$times.keys.map(&:size).max + 2, 15].max
<add> col_width = [$times.keys.map(&:size).max.to_i + 2, 15].max
<ide> $times.sort_by { |_k, v| v }.each do... | 2 |
Javascript | Javascript | remove eslint-disable from fixtures | c001ba65753f3eb41ecd8df3b013126593d95247 | <ide><path>test/fixtures/guess-hash-seed.js
<del>/* eslint-disable required-modules */
<ide> 'use strict';
<ide> function min(arr) {
<ide> let res = arr[0];
<ide><path>test/fixtures/inspector-global-function.js
<del>'use strict'; // eslint-disable-line required-modules
<add>'use strict';
<ide> let invocations = 0;
<i... | 2 |
Ruby | Ruby | add json output | 2f2645e962974002bdd6e78111678bb2d5f9b389 | <ide><path>Library/Homebrew/cmd/info.rb
<ide>
<ide> module Homebrew extend self
<ide> def info
<add> # eventually we'll solidify an API, but we'll keep old versions
<add> # awhile around for compatibility
<add> if ARGV.json == "v1"
<add> print_json
<add> else
<add> print_info
<add> end
<add>... | 2 |
Ruby | Ruby | use thread local queues | b9f9951d5f7e6f2c947c292a929a48d41c529f26 | <ide><path>activesupport/lib/active_support/log_subscriber.rb
<ide> def flush_all!
<ide> end
<ide>
<ide> def initialize
<del> @event_stack = []
<add> @queue_key = [self.class.name, object_id].join "-"
<ide> super
<ide> end
<ide>
<ide> def start(name, id, payload)
<ide> return unless... | 1 |
Javascript | Javascript | add support for ram bundle groups | aec7b34e50e4962236a110963a35305c74e5c285 | <ide><path>local-cli/bundle/output/unbundle/as-assets.js
<ide> function saveAsAssets(
<ide> const sourceMap =
<ide> relativizeSourceMap(
<ide> buildSourceMapWithMetaData({
<del> startupModules: startupModules.concat(),
<del> lazyModules: lazyModules.concat(),
<ide> fixWrapperOffset: tr... | 8 |
Go | Go | change content-type and small fix in run | 4a1e0d321ec8ef622673971deff0d191d198cc31 | <ide><path>api.go
<ide> func getContainersExport(srv *Server, w http.ResponseWriter, r *http.Request) ([
<ide> return nil, err
<ide> }
<ide> defer in.Close()
<del> fmt.Fprintf(out, "HTTP/1.1 200 OK\r\nContent-Type: raw-stream-hijack\r\n\r\n")
<add> fmt.Fprintf(out, "HTTP/1.1 200 OK\r\nContent-Type: application/vnd.... | 2 |
Ruby | Ruby | use formula patches accessor | 797820946922d8c043f320adeb4cbaa88abbfcd4 | <ide><path>Library/Homebrew/formula.rb
<ide> def require_universal_deps?
<ide>
<ide> def patch
<ide> ohai "Patching"
<del> active_spec.patches.each(&:apply)
<add> patchlist.each(&:apply)
<ide> end
<ide>
<ide> # yields self with current working directory set to the uncompressed tarball
<ide> def prepar... | 1 |
Go | Go | show devicemapper status in "docker info" | d733cdcebbcb6bc8573e1869b11f0d9116a92892 | <ide><path>api_params.go
<ide> type APIImages struct {
<ide> }
<ide>
<ide> type APIInfo struct {
<del> Debug bool
<del> Containers int
<del> Images int
<del> NFd int `json:",omitempty"`
<del> NGoroutines int `json:",omitempty"`
<del> MemoryLimit bool ... | 4 |
Java | Java | show soft errors as redboxes in dev | d78602b8cdb54a2097034ad06e81ae88a56033e0 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java
<ide> public void reportFatalException(String title, ReadableArray details, int except
<ide>
<ide> @ReactMethod
<ide> public void reportSoftException(String title, ReadableArray details, int exceptionId) {
<del> F... | 1 |
Java | Java | fix checkstyle violation | 0f1d16bb05d049281478cd355e6718c026f25e9c | <ide><path>spring-web/src/test/java/org/springframework/web/method/ControllerAdviceBeanTests.java
<ide> import java.lang.annotation.Retention;
<ide> import java.lang.annotation.RetentionPolicy;
<ide> import java.util.List;
<del>
<ide> import javax.annotation.Priority;
<ide>
<ide> import org.junit.Test; | 1 |
Javascript | Javascript | add check for root user | 398968297ae387714431d3e1c6ff0f0cb24807d8 | <ide><path>test/parallel/test-child-process-spawnsync-validation-errors.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const spawnSync = require('child_process').spawnSync;
<ide> const signals = process.binding('constants').os.signals;
<add>const rootUser = common.isWindows ... | 1 |
Python | Python | add init_envs in domain xml | cee583b4eadd488159d418d7ab8fa93d94c6b245 | <ide><path>libcloud/compute/drivers/libvirt_driver.py
<ide> def ex_get_hypervisor_sysinfo(self):
<ide>
<ide> def create_node(self, name, disk_size=4, ram=512,
<ide> cpu=1, image=None, disk_path=None, create_from_existing=None,
<del> os_type='linux', networks=[], cloud_init=No... | 1 |
PHP | PHP | add support for no_color environment variable | 6885023407396dff4c35938bc510db2ebc143122 | <ide><path>src/Console/ConsoleOutput.php
<ide> public function __construct(string $stream = 'php://stdout')
<ide> (
<ide> function_exists('posix_isatty') &&
<ide> !posix_isatty($this->_output)
<add> ) ||
<add> (
<add> env('NO_COLOR') !== n... | 2 |
Python | Python | add minimum version of pylint | 87d61dcbc9b17dd0130ab0bb4124f9eff2187f25 | <ide><path>setup.py
<ide> def get_sphinx_theme_version() -> str:
<ide> 'paramiko',
<ide> 'pipdeptree',
<ide> 'pre-commit',
<del> 'pylint',
<add> 'pylint>=2.7.0',
<ide> 'pysftp',
<ide> 'pytest~=6.0',
<ide> 'pytest-cov', | 1 |
Python | Python | add line breaks | a662a95294515f156b57325cdb0971c2d2416d9e | <ide><path>spacy/en/language_data.py
<ide> # improved list from Stone, Denis, Kwantes (2010)
<ide> STOP_WORDS = set("""
<ide>
<del>a about above across after afterwards again against all almost alone along already also although always am among amongst amount an and another any anyhow anyone anything anyway anywhere ar... | 1 |
Python | Python | set version to v2.1.0a13 | 6aab2d8533f75ed1b86508464bfe6c5e931d176e | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a12"
<add>__version__ = "2.1.0a13"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Python | Python | fix some migrations | 6e5c9c845f7f0975178dbeb76d4ccfe95d0ed803 | <ide><path>airflow/migrations/versions/30867afad44a_rename_concurrency_column_in_dag_table_.py
<ide>
<ide> def upgrade():
<ide> """Apply Rename concurrency column in dag table to max_active_tasks"""
<add> conn = op.get_bind()
<add> is_sqlite = bool(conn.dialect.name == "sqlite")
<add>
<add> if is_sqlite:
... | 2 |
Python | Python | add merge insertion sort | 9ec71cbdda4a52f024c9d24f0ece14600ca05301 | <ide><path>sorts/merge_insertion_sort.py
<add>"""
<add>This is a pure Python implementation of the merge-insertion sort algorithm
<add>Source: https://en.wikipedia.org/wiki/Merge-insertion_sort
<add>
<add>For doctests run following command:
<add>python3 -m doctest -v merge_insertion_sort.py
<add>or
<add>python -m docte... | 1 |
Python | Python | implement fake with statement for tests | 8c38eba6999a26d2a344950247c274984162697b | <ide><path>celery/tests/test_log.py
<del>from __future__ import with_statement, generators
<add>from __future__ import generators
<ide>
<ide> import os
<ide> import sys
<ide>
<ide> from celery.log import (setup_logger, emergency_error,
<ide> redirect_stdouts_to_logger, LoggingProxy)
<del>from ... | 4 |
Ruby | Ruby | remove trailing space | cd40043357491f386a4e3dd095ed4ad6abb54f81 | <ide><path>activesupport/lib/active_support/core_ext/string/output_safety.rb
<ide> def #{unsafe_method}!(*args) # def capitalize!(*args)
<ide> class_eval <<-EOT, __FILE__, __LINE__ + 1
<ide> def #{unsafe_method}(*args, &block) # def gsub(*args, &block)
<ide> if blo... | 1 |
Java | Java | fix typo in error handler | 2231263b8b1a298c9fe90006cdf502ea92911b5f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/NativeModuleRegistryBuilder.java
<ide> public void processPackage(ReactPackage reactPackage) {
<ide> + name
<ide> + " tried to override "
<ide> + existingNativeModule.getClassName()
<del> + " ... | 1 |
Python | Python | reset cached chan on producer when connection lost | ab301c20040366db05090d26f94211f6e11fbbf7 | <ide><path>celery/backends/amqp.py
<ide> # -*- coding: utf-8 -*-
<ide> import os
<ide> import socket
<add>import threading
<ide> import time
<ide>
<ide> from datetime import timedelta
<ide> def __init__(self, connection=None, exchange=None, exchange_type=None,
<ide> self.queue_arguments["x-expires"] = int(... | 1 |
Java | Java | add support for quartz features in cronexpression | 93b53dae2966ee5ab8ca7c0a00f56673f939a18a | <ide><path>spring-context/src/main/java/org/springframework/scheduling/support/BitsCronField.java
<add>/*
<add> * Copyright 2002-2020 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 License.
<... | 8 |
Ruby | Ruby | unify delete_multi_entries method signatute | c8e7f3ca7b5fb47af1fd130b743d7e87d16acd38 | <ide><path>activesupport/lib/active_support/cache/redis_cache_store.rb
<ide> def delete_entry(key, options)
<ide> end
<ide>
<ide> # Deletes multiple entries in the cache. Returns the number of entries deleted.
<del> def delete_multi_entries(entries, options)
<add> def delete_multi_entries... | 1 |
Javascript | Javascript | update invalid date check in tests | 4ba3f90c184ed7cb43469b7ac3bf4fe7d6163f8d | <ide><path>src/test/moment/create.js
<ide> test('parsing only meridiem results in invalid date', function (assert) {
<ide>
<ide> test('invalid dates return invalid for methods that access the _d prop', function (assert) {
<ide> var momentAsDate = moment(['2015', '12', '1']).toDate();
<del> assert.equal(momentAs... | 1 |
Javascript | Javascript | fix bad comment | 0888cdd4123e80fcb859d90808bd6cc708eec3d6 | <ide><path>test/simple/test-cli-eval.js
<ide> child.exec(nodejs + ' --eval "console.error(42)"',
<ide> assert.equal(stderr, '42\n');
<ide> });
<ide>
<del>// assert that nothing is written to stdout
<add>// assert that the expected output is written to stdout
<ide> ['--print --eval', '-p -e', '-pe'].forEach(f... | 1 |
Python | Python | fix data processing in script | 8cd56e30363fc00d947992ae412551f1775a5cfa | <ide><path>examples/run_seq2seq_finetuning.py
<ide> class TextDataset(Dataset):
<ide> [2] https://github.com/abisee/cnn-dailymail/
<ide> """
<ide>
<del> def __init_(self, tokenizer_src, tokenizer_tgt, data_dir="", block_size=512):
<add> def __init__(self, tokenizer, prefix='train', data_dir="", block_siz... | 1 |
Ruby | Ruby | ensure git --version actually matches | a252c90a0d49cae0889a9a540a3c220c53340425 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def __check_git_version
<ide> # https://help.github.com/articles/https-cloning-errors
<ide> `git --version`.chomp =~ /git version ((?:\d+\.?)+)/
<ide>
<del> if Version.new($1) < Version.new("1.7.10") then <<-EOS.undent
<add> if $1 and Version.new($1) < Version.new(... | 1 |
Javascript | Javascript | allow examples with hidden source code | 260725efcd15e960941af6bc1f468e3fb1ac45c5 | <ide><path>docs/src/templates/doc_widgets.js
<ide> //jqlite instead. jqlite's find() method currently supports onlt getElementsByTagName!
<ide> var example = element.find('pre').eq(0), //doc-source
<ide> exampleSrc = example.text(),
<add> showSource = example.attr('source') !== 'false',
<ide> ... | 1 |
Javascript | Javascript | treat bare \r as a line ending | 60f18ede39e428867fbfe6df8c536fc2fcf79947 | <ide><path>lib/readline.js
<ide> function Interface(input, output, completer, terminal) {
<ide> return new Interface(input, output, completer, terminal);
<ide> }
<ide>
<add> this._sawReturn = false;
<add>
<ide> EventEmitter.call(this);
<ide>
<ide> if (arguments.length === 1) {
<ide> Interface.prototype.wri... | 2 |
Python | Python | fix init for mt5 | 48395d6b8e36e2571db2c3ad54eea6d8f0add184 | <ide><path>src/transformers/__init__.py
<ide> from .models.mbart import MBartConfig
<ide> from .models.mmbt import MMBTConfig
<ide> from .models.mobilebert import MOBILEBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, MobileBertConfig, MobileBertTokenizer
<add>from .models.mt5 import MT5Config
<ide> from .models.openai import OPENA... | 2 |
Text | Text | update devops with password guidelines | cb5369a5829ed02236d4f764caa6ef6d7a854b92 | <ide><path>docs/devops.md
<ide> The domain name will be different than **`freeCodeCamp.org`**. Currently this pu
<ide>
<ide> <h3 align="center"><a href='https://www.freecodecamp.dev' _target='blank'><code>www.freecodecamp.dev</code></a></h4>
<ide>
<add>To prevent accidental indexing on search engines and users accide... | 1 |
Text | Text | remove duplicate -v flag | b6ea0f43aeb7ff1dcb03658e38bacae1130abd91 | <ide><path>README.md
<ide> Depending on which framework is installed (TensorFlow 2.0 and/or PyTorch), the i
<ide> You can run the tests from the root of the cloned repository with the commands:
<ide>
<ide> ```bash
<del>python -m unittest -v discover -s tests -t . -v
<del>python -m unittest -v discover -s examples -t e... | 1 |
Ruby | Ruby | fix typo in assert_changes error message | d76ed9e47e8209811914eb6e2e55c232e2795471 | <ide><path>activesupport/lib/active_support/testing/assertions.rb
<ide> def assert_changes(expression, message = nil, from: UNTRACKED, to: UNTRACKED, &b
<ide> after = exp.call
<ide>
<ide> if to == UNTRACKED
<del> error = "#{expression.inspect} didn't changed"
<add> error = "#{expressi... | 1 |
Mixed | Python | add run_type to dagrun | 533b14341c774329d8184e6e559528ae8ed34b3a | <ide><path>UPDATING.md
<ide> https://developers.google.com/style/inclusive-documentation
<ide>
<ide> -->
<ide>
<add>### DAG.create_dagrun accepts run_type and does not require run_id
<add>This change is caused by adding `run_type` column to `DagRun`.
<add>
<add>Previous signature:
<add>```python
<add>def create_dagru... | 35 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.