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 | add readline support for meta-f and meta-b | 748469c71c9a0860aada8b0d130aa181df13e370 | <ide><path>lib/readline.js
<ide> var EventEmitter = require('events').EventEmitter;
<ide> var stdio = process.binding('stdio');
<ide>
<ide>
<del>
<ide> exports.createInterface = function (output, completer) {
<ide> return new Interface(output, completer);
<ide> };
<ide> Interface.prototype._ttyWrite = function (b) ... | 2 |
Javascript | Javascript | add tests and docs for addinjectionpoint | 4d3916f74e350691ab85e63ac8b1ad5bb851339b | <ide><path>spec/grammar-registry-spec.js
<ide> describe('GrammarRegistry', () => {
<ide> })
<ide> })
<ide>
<add> describe('.addInjectionPoint(languageId, {type, language, content})', () => {
<add> const injectionPoint = {
<add> type: 'some_node_type',
<add> language() { return 'some_language_name' ... | 5 |
Text | Text | fix casing of javascript in readme | 282185535b7bde56437d6d3a78d89a201dac0e53 | <ide><path>README.md
<ide> <a href="https://saucelabs.com/u/ember-ci"><img src="https://saucelabs.com/browser-matrix/ember-ci.svg" alt="Sauce Test Status"></a>
<ide> </p>
<ide>
<del>Ember.js is a Javascript framework that greatly reduces the time, effort and resources needed
<add>Ember.js is a JavaScript framework t... | 1 |
Python | Python | update commands for pypi test | 8036ceb7c57e72428f61e685523e17243a6c49e3 | <ide><path>setup.py
<ide>
<ide> twine upload dist/* -r pypitest
<ide> (pypi suggest using twine as other methods upload files via plaintext.)
<add> You may have to specify the repository url, use the following command then:
<add> twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/
... | 1 |
Mixed | Javascript | add support for import.meta to module | 07ba9141e475ec63f6ef56b67ec5f98077cd3446 | <ide><path>doc/api/vm.md
<ide> const contextifiedSandbox = vm.createContext({ secret: 42 });
<ide> in stack traces produced by this Module.
<ide> * `columnOffset` {integer} Spcifies the column number offset that is displayed
<ide> in stack traces produced by this Module.
<add> * `initalizeImportMeta` {Functi... | 5 |
Text | Text | remove superfluous adverb from style guide | 23432d3306c98e39fd94ea6eee2fd05dc66723dc | <ide><path>doc/STYLE_GUIDE.md
<ide> * American English spelling is preferred. "Capitalize" vs. "Capitalise",
<ide> "color" vs. "colour", etc.
<ide> * Use [serial commas][].
<del>* Generally avoid personal pronouns in reference documentation ("I", "you",
<del> "we").
<add>* Avoid personal pronouns in reference docume... | 1 |
Python | Python | add files via upload | d4fc55c5fc4859490584c5f023a18e1c514226c8 | <ide><path>sorts/recursive_bubble_sort.py
<add>def bubble_sort(list1):
<add> """
<add> It is similar is bubble sort but recursive.
<add> :param list1: mutable ordered sequence of elements
<add> :return: the same list in ascending order
<add>
<add> >>> bubble_sort([0, 5, 2, 3, 2])
<add> [0, 2, 2, 3, 5]... | 1 |
PHP | PHP | accept field for route binding | e1f8eef2a413642aeab6df1a08602a58da58739f | <ide><path>src/Illuminate/Contracts/Routing/UrlRoutable.php
<ide> public function getRouteKeyName();
<ide> /**
<ide> * Retrieve the model for a bound value.
<ide> *
<del> * @param mixed $value
<add> * @param mixed $value
<add> * @param string $field
<ide> * @return \Illuminate\Data... | 5 |
Python | Python | change batchnorm trainable to true | 3e73c76c7a5373dafd71ef9231896dabcb696cc5 | <ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py
<ide> def __init__(self,
<ide> resnet_v1_base_model_name,
<ide> first_stage_features_stride,
<ide> conv_hyperparams,
<del> batch_norm_trainable=False,
<add> ... | 1 |
Javascript | Javascript | increase coverage for path.parse | f7f590c9a9fe7bb31719f7fb7427e4de1a0d9edc | <ide><path>test/parallel/test-path-parse-format.js
<ide> const winPaths = [
<ide> 'file',
<ide> '.\\file',
<ide> 'C:\\',
<add> 'C:',
<add> '\\',
<ide> '',
<ide>
<ide> // unc
<ide> const winPaths = [
<ide> ];
<ide>
<ide> const winSpecialCaseParseTests = [
<del> ['/foo/bar', { root: '/' }]
<add> ['/foo/ba... | 1 |
Go | Go | remove unnecessary getlayerinit | c502bcff33e10be55f15366e123b25574016a9af | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) setRWLayer(container *container.Container) error {
<ide>
<ide> rwLayerOpts := &layer.CreateRWLayerOpts{
<ide> MountLabel: container.MountLabel,
<del> InitFunc: daemon.getLayerInit(),
<add> InitFunc: setupInitLayer(daemon.idMappings),
<ide> StorageOpt: ... | 4 |
PHP | PHP | add table to the debug info, and remove toarray() | 307b91cbece6bebddce2f8d3e1ee144e6d9fc60e | <ide><path>src/Database/Schema/TableSchema.php
<ide> public function dropConstraintSql(Connection $connection)
<ide> *
<ide> * @return array
<ide> */
<del> public function toArray()
<add> public function __debugInfo()
<ide> {
<ide> return [
<add> 'table' => $this->_table,
<id... | 2 |
PHP | PHP | display column listing when using fetch_assoc | 41af46bd21065da7ca97539b400617a3961f3d77 | <ide><path>src/Illuminate/Database/Query/Processors/SqlServerProcessor.php
<ide> public function processInsertGetId(Builder $query, $sql, $values, $sequence = nu
<ide> public function processColumnListing($results)
<ide> {
<ide> $mapping = function ($r) {
<add> $r = (object) $r;
<ide> ... | 1 |
Text | Text | remove code tags from name | 5ebd007390f8d93e27f7b7cfe9dd20c4881c42f9 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md
<ide> You should defined a new `@keyframes` rule.
<ide> assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes'));
<ide> ```
<ide>
<del>You should give the `@keyfr... | 1 |
Python | Python | use rnns to answer questions from babi | de78ddff9c6c14e606fce8d88d04de0eff77319b | <ide><path>examples/babi_rnn.py
<add>from __future__ import absolute_import
<add>from __future__ import print_function
<add>import re
<add>import tarfile
<add>
<add>import numpy as np
<add>np.random.seed(1337) # for reproducibility
<add>
<add>from keras.datasets.data_utils import get_file
<add>from keras.layers.embedd... | 1 |
Java | Java | avoid infinite loop in patternmatchutils | db80378dbef4bba302a3f1248f7315ae1ef8f614 | <ide><path>spring-core/src/main/java/org/springframework/util/PatternMatchUtils.java
<ide> /*
<del> * Copyright 2002-2007 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use... | 2 |
Ruby | Ruby | add missing require for `string#to_d` | a1c57cf69f2454d5ba3a086237c1c827e6c9de5a | <ide><path>activesupport/lib/active_support/xml_mini.rb
<ide> require "time"
<ide> require "base64"
<ide> require "bigdecimal"
<add>require "bigdecimal/util"
<ide> require "active_support/core_ext/module/delegation"
<ide> require "active_support/core_ext/string/inflections"
<ide> require "active_support/core_ext/date_t... | 1 |
Ruby | Ruby | add tests to aliased _filter callbacks | 1b97d41e52e4888681b81f99335d851d434458d1 | <ide><path>actionpack/test/abstract/callbacks_test.rb
<ide> class TestCallbacksWithArgs < ActiveSupport::TestCase
<ide> assert_equal "Hello world Howdy!", controller.response_body
<ide> end
<ide> end
<add>
<add> class AliasedCallbacks < ControllerWithCallbacks
<add> before_filter :first
<add> ... | 1 |
Go | Go | fix temparchive cleanup w/ one read | 32ba6ab83c7e47d627a2b971e7f6ca9b56e1be85 | <ide><path>pkg/archive/archive.go
<ide> func NewTempArchive(src Archive, dir string) (*TempArchive, error) {
<ide> return nil, err
<ide> }
<ide> size := st.Size()
<del> return &TempArchive{f, size}, nil
<add> return &TempArchive{f, size, 0}, nil
<ide> }
<ide>
<ide> type TempArchive struct {
<ide> *os.File
<ide> ... | 1 |
Javascript | Javascript | reset numintersection in projectplanes() | cf9357b8e1cfd1a3e0287ed87aef66b707d72b9d | <ide><path>src/renderers/webgl/WebGLClipping.js
<ide> function WebGLClipping() {
<ide> }
<ide>
<ide> scope.numPlanes = nPlanes;
<add> scope.numIntersection = 0;
<ide>
<ide> return dstArray;
<ide> | 1 |
Python | Python | add tests for spark_jdbc_script | 067806d5985301f21da78f0a81056dbec348e6ba | <ide><path>airflow/providers/apache/spark/hooks/spark_jdbc_script.py
<ide> # under the License.
<ide> #
<ide> import argparse
<add>from typing import List, Optional
<ide>
<ide> from pyspark.sql import SparkSession
<ide>
<add>SPARK_WRITE_TO_JDBC = "spark_to_jdbc"
<add>SPARK_READ_FROM_JDBC = "jdbc_to_spark"
<add>
<ide>... | 3 |
Text | Text | add cssnext-loader to readme | 23fab97c196f49abc4c890b1473519989192877c | <ide><path>README.md
<ide> Please see [Using Loaders](http://webpack.github.io/docs/using-loaders.html) for
<ide> **styling**
<ide> * [`style`](https://github.com/webpack/style-loader): Add exports of a module as style to DOM
<ide> * [`css`](https://github.com/webpack/css-loader): Loads css file with resolved imports a... | 1 |
Python | Python | fix python 3 support | 904b82759cce6f85d06564c42123da030da52341 | <ide><path>django/db/models/fields/related.py
<ide> def deconstruct(self):
<ide> rel = self.rel
<ide> if self.rel.field_name:
<ide> kwargs['to_field'] = self.rel.field_name
<del> if isinstance(self.rel.to, basestring):
<add> if isinstance(self.rel.to, six.string_types):
<ide> ... | 1 |
Python | Python | read parameters from cli, load model & tokenizer | b3261e7ace153a78c19e35bba367e28e9ccdd2fa | <ide><path>examples/run_seq2seq_finetuning.py
<ide> Natural Language Understanding and Generation.” (May 2019) ArXiv:1905.03197
<ide> """
<ide>
<add>import argparse
<ide> import logging
<ide> import random
<ide>
<ide> import numpy as np
<ide> import torch
<ide>
<add>from transformers import BertConfig, Bert2Rnd, Ber... | 2 |
Ruby | Ruby | allow --get for non-interactive builds | 34e51fb16b219cdf04bec342980abdd8d10ed7f5 | <ide><path>Library/Homebrew/build.rb
<ide> def install f
<ide> end
<ide>
<ide> f.brew do
<add> if ARGV.flag? '--git'
<add> system "git init"
<add> system "git add -A"
<add> end
<ide> if ARGV.flag? '--interactive'
<ide> ohai "Entering interactive mode"
<ide> puts "Type `exit' to retu... | 1 |
Python | Python | fix compatibility.json link | 8af4b9e4dfd6e8e273be5613c7dde017ae2a3354 | <ide><path>spacy/about.py
<ide>
<ide> __docs__ = 'https://spacy.io/docs/usage'
<ide> __download_url__ = 'https://github.com/explosion/spacy-models/releases/download'
<del>__compatibility__ = 'https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json?token=ANAt54fi5zcUtnwGhMLw2klWwcAyHkZGks5Y0n... | 1 |
PHP | PHP | add hasheaders() method to http client request | f57d1a301543788c8c6e5ebe160ddaf5d60d25ea | <ide><path>src/Illuminate/Http/Client/Request.php
<ide> public function hasHeader($key, $value = null)
<ide> return empty(array_diff($value, $headers[$key]));
<ide> }
<ide>
<add> /**
<add> * Determine if the request has the given headers.
<add> *
<add> * @param array|string $headers
<add> ... | 2 |
Javascript | Javascript | add vm benchmark test | 5d703ec874a6b9ef6ba4fc9a49b63b17b046aee4 | <ide><path>test/parallel/test-benchmark-vm.js
<add>'use strict';
<add>
<add>require('../common');
<add>
<add>const runBenchmark = require('../common/benchmark');
<add>
<add>runBenchmark('vm',
<add> [
<add> 'breakOnSigint=0',
<add> 'withSigintListener=0',
<add> 'n=1'... | 1 |
Python | Python | use np.atleast_nd() to boost dimensions to ndmin | b233716a031cb523f9bc65dda2c22f69f6f0736a | <ide><path>numpy/lib/npyio.py
<ide> def loadtxt(fname, dtype=float, comments='#', delimiter=None,
<ide> data-type, arrays are returned for each field. Default is False.
<ide> ndmin : int, optional
<ide> The returned array will have at least `ndmin` dimensions.
<del> Otherwise single-dimensio... | 2 |
Python | Python | use safe_dump. fixes #123 | b1105edfedd6fed932fc97520fd8e0a8cbf05f1f | <ide><path>djangorestframework/renderers.py
<ide> def render(self, obj=None, media_type=None):
<ide> if obj is None:
<ide> return ''
<ide>
<del> return yaml.dump(obj)
<add> return yaml.safe_dump(obj)
<ide> else:
<ide> YAMLRenderer = None
<ide> | 1 |
Javascript | Javascript | extend timeouts in child/exec tests | d77f490a048c26b35ff46b7f75fa18493b687d04 | <ide><path>test/simple/test-child-process-execsync.js
<ide> var execSync = require('child_process').execSync;
<ide> var execFileSync = require('child_process').execFileSync;
<ide>
<ide> var TIMER = 200;
<del>var SLEEP = 1000;
<add>var SLEEP = 2000;
<ide>
<ide> var start = Date.now();
<ide> var err;
<ide><path>test/si... | 2 |
Javascript | Javascript | add node.d and node.1 to installer | 8bec3febd848c4917c22c68d9de6d737f945b81f | <ide><path>tools/installer.js
<ide> if (cmd === 'install') {
<ide> 'deps/uv/include/uv.h'
<ide> ], 'include/node/');
<ide>
<add> // man page
<add> copy(['doc/node.1'], 'share/man/man1/');
<add>
<add> // dtrace
<add> if (!process.platform.match(/^linux/)) {
<add> copy(['src/node.d'], 'lib/dtrace/');
<add> ... | 1 |
Javascript | Javascript | remove repeated word | 4d885cbd626caf42922ff5917fbd81afc3cc2086 | <ide><path>src/ng/anchorScroll.js
<ide> function $AnchorScrollProvider() {
<ide> * @name $anchorScrollProvider#disableAutoScrolling
<ide> *
<ide> * @description
<del> * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically will detect changes to
<add> * By default, {@link ng.$anchorScroll... | 1 |
Go | Go | add todo lines for windows | a34a7930b5c1e9a1e6ddd4a40b1810a86f7d24ab | <ide><path>docker/flags.go
<ide> func getHomeDir() string {
<ide> }
<ide>
<ide> func getDaemonConfDir() string {
<add> // TODO: update for Windows daemon
<ide> if runtime.GOOS == "windows" {
<ide> return filepath.Join(os.Getenv("USERPROFILE"), ".docker")
<ide> }
<ide><path>integration-cli/docker_cli_daemon_test.go... | 2 |
Ruby | Ruby | remove date methods that are present in 1.9 ruby | 8f0d7c897319f4faaffba7ffb22d4581d45811a3 | <ide><path>activesupport/lib/active_support/core_ext/date/calculations.rb
<ide> def years_since(years)
<ide> advance(:years => years)
<ide> end
<ide>
<del> # Shorthand for years_ago(1)
<del> def prev_year
<del> years_ago(1)
<del> end unless method_defined?(:prev_year)
<del>
<del> # Shorthand for years_sin... | 1 |
Ruby | Ruby | add a regression test for per-fiber tagged logging | 19d85783614b6d96600aa39aab88791d0c66a78f | <ide><path>activesupport/test/tagged_logging_test.rb
<ide> def flush(*)
<ide> assert_equal "Dull story\n[OMG] Cool story\n[BCX] Funky time\n", @output.string
<ide> end
<ide>
<add> test "keeps each tag in their own thread even when pushed directly" do
<add> Thread.new do
<add> @logger.push_tags("OMG")
<a... | 1 |
Text | Text | fix image name in testing guide | c2c0b8dc4e9bb4d7f51a1254d517d3f20a3e684d | <ide><path>docs/contributing/test.md
<ide> Try this now.
<ide> 2. Start a Moby development image.
<ide>
<ide> If you are following along with this guide, you should have a
<del> `dry-run-test` image.
<add> `docker-dev:dry-run-test` image.
<ide>
<ide> ```bash
<del> $ docker run --privileged --rm -ti ... | 1 |
Java | Java | fix nullpointerexception in jackson2smiledecoder | 5f3c7ca559ac5f7d4d37917d568001579b596f2b | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/Jackson2Tokenizer.java
<ide> private Flux<TokenBuffer> endOfInput() {
<ide> private List<TokenBuffer> parseTokenBufferFlux() throws IOException {
<ide> List<TokenBuffer> result = new ArrayList<>();
<ide>
<del> while (true) {
<add> // SPR-1615... | 1 |
Javascript | Javascript | use jquery.merge only if it really necessary | d086aa16b3aa862185684b69dc3e27ee5dbc32fc | <ide><path>src/manipulation.js
<ide> jQuery.fn.extend({
<ide>
<ide> // Keep references to cloned scripts for later restoration
<ide> if ( hasScripts ) {
<del> jQuery.merge( scripts, getAll( node, "script" ) );
<add> core_push.apply( scripts, getAll( node, "script" ) );
<ide> }
<ide> ... | 1 |
Javascript | Javascript | remove gatsby proxy | 4896e45eea8c2b186dc56228f2a202778b3a78ff | <ide><path>client/gatsby-config.js
<ide> const {
<ide> localeChallengesRootDir
<ide> } = require('./utils/buildChallenges');
<ide>
<del>const { API_PROXY: proxyUrl = 'http://localhost:3000' } = process.env;
<del>
<ide> const curriculumIntroRoot = path.resolve(__dirname, './src/pages');
<ide>
<ide> module.exports = ... | 3 |
PHP | PHP | add coverage to uncovered method | 70513b4b8364a8f080296cb21c0953cbba2eeecd | <ide><path>tests/TestCase/TestSuite/IntegrationTestCaseTest.php
<ide> use Cake\TestSuite\IntegrationTestCase;
<ide> use Cake\Test\Fixture\AssertIntegrationTestCase;
<ide> use Cake\Utility\Security;
<add>use PHPUnit\Framework\Error\Deprecated;
<ide>
<ide> /**
<ide> * Self test of the IntegrationTestCase
<ide> public f... | 1 |
Python | Python | remove debugging registrations | 35e9d29162038cc7df155e64aab4564d0841bb32 | <ide><path>official/vision/beta/configs/backbones.py
<ide> class RevNet(hyperparams.Config):
<ide> # Specifies the depth of RevNet.
<ide> model_id: int = 56
<ide>
<del>from official.vision.beta.projects.yolo.configs.backbones import DarkNet
<ide>
<ide> @dataclasses.dataclass
<ide> class Backbone(hyperparams.OneOf... | 2 |
PHP | PHP | remove duplicated call | f39e296e37799c22852f92bb13b1d35f8d27a53b | <ide><path>src/View/Widget/FileWidget.php
<ide> public function render(array $data, ContextInterface $context): string
<ide>
<ide> unset($data['val']);
<ide>
<del> if (isset($data['fieldName'])) {
<del> $data = $this->setRequired($data, $context, $data['fieldName']);
<del> }
<del>
<id... | 1 |
PHP | PHP | move merge() into set2 | e736ea3af98bb4b6f0f33f6b30567f1d3af48d0f | <ide><path>lib/Cake/Test/Case/Utility/Set2Test.php
<ide> public function testFlatten() {
<ide> $this->assertEquals($expected, $result);
<ide> }
<ide>
<add>/**
<add> * Test diff();
<add> *
<add> * @return void
<add> */
<add> public function testDiff() {
<add> $a = array(
<add> 0 => array('name' => 'main'),
<add> ... | 2 |
Javascript | Javascript | add test for options validation of createserver | 52e1bbde01e1f35b13a9a14a2d428fd318c7ef4a | <ide><path>test/parallel/test-http2-createsecureserver-nooptions.js
<del>'use strict';
<del>
<del>const common = require('../common');
<del>if (!common.hasCrypto)
<del> common.skip('missing crypto');
<del>
<del>const assert = require('assert');
<del>const http2 = require('http2');
<del>
<del>// Error if options are no... | 3 |
Python | Python | remove test code | 7e1a7afec2e29f7fac45708ec80fa654dfc2c193 | <ide><path>libcloud/test/storage/test_minio.py
<ide> def setUp(self):
<ide> self.driver = self.create_driver()
<ide>
<ide> def test_connection_class_type(self):
<del> return
<ide> self.assertEqual(self.driver.connectionCls, MinIOConnectionAWS4)
<ide>
<ide> def test_connection_class_defa... | 1 |
Python | Python | fix 2.5 >= try/except/finally | d857eaf35b6a51b7208c90eb20c963ffe9c7cdf2 | <ide><path>numpy/testing/tests/test_utils.py
<ide> def f():
<ide> failed = False
<ide> filters = sys.modules['warnings'].filters[:]
<ide> try:
<del> # Should raise an AssertionError
<del> assert_warns(UserWarning, f)
<del> failed = True
<del> except Assert... | 1 |
Java | Java | add assembly tracking, minor fixes and cleanup | 35c8da6ca2f0c446d9e50d1c5507cc80e5ccb996 | <ide><path>src/main/java/io/reactivex/Completable.java
<ide> public abstract class Completable implements CompletableSource {
<ide> * @throws NullPointerException if sources is null
<ide> */
<ide> @SchedulerSupport(SchedulerSupport.NONE)
<del> public static Completable amb(final CompletableSource... so... | 49 |
Javascript | Javascript | replace foreach with for | 5723c4c5f06f1382cc7962c64f31a7f96ca8a668 | <ide><path>lib/_tls_common.js
<ide> exports.createSecureContext = function createSecureContext(options, context) {
<ide>
<ide> var c = new SecureContext(options.secureProtocol, secureOptions, context);
<ide> var i;
<add> var val;
<ide>
<ide> if (context) return c;
<ide>
<ide> // NOTE: It's important to add ... | 1 |
Ruby | Ruby | overwrite existing files | e3f8939cff48dd59f267792077282110a0616c66 | <ide><path>Library/Homebrew/unpack_strategy/zip.rb
<ide> def contains_extended_attributes?(path)
<ide> def extract_to_dir(unpack_dir, basename:, verbose:)
<ide> quiet_flags = verbose ? [] : ["-qq"]
<ide> result = system_command! "unzip",
<del> args: [*quiet_flags, p... | 1 |
Text | Text | fix a typo in work-with-networks.md | 414b9dea8a1bf7ef7a4b9584dd887c51b49751d4 | <ide><path>docs/userguide/networking/work-with-networks.md
<ide> examine its networking stack:
<ide> $ docker attach container2
<ide> ```
<ide>
<del>If you look a the container's network stack you should see two Ethernet interfaces, one for the default bridge network and one for the `isolated_nw` network.
<add>If you ... | 1 |
PHP | PHP | remove uneeded tests | 062a8d77ea38c67e2205c8cf6e6cde579135532b | <ide><path>tests/TestCase/Console/CommandRunnerTest.php
<ide> public function testSetEventManagerNonEventedApplication()
<ide> $runner->setEventManager($events);
<ide> }
<ide>
<del> /**
<del> * Test that the console hook not returning a command collection
<del> * raises an error.
<del> *
<de... | 1 |
Javascript | Javascript | add test for pointradius function type coercion | 01a7e187eab5ee5662cd78f6fc5cdf389768a20b | <ide><path>test/geo/path-test.js
<ide> suite.addBatch({
<ide> });
<ide> assert.deepEqual(testContext.buffer(), [
<ide> {type: "moveTo", x: 165, y: 160},
<del> {type: "arc", x: 165, y: 160}
<add> {type: "arc", x: 165, y: 160, r: 4.5}
<ide> ]);
<ide> },
<ide>
<ide> suite.addBa... | 1 |
Go | Go | make volume ls output order | 60ffd6c880024c5ab3ad96dc79b01dccd23dd766 | <ide><path>api/client/volume.go
<ide> package client
<ide>
<ide> import (
<ide> "fmt"
<add> "sort"
<ide> "text/tabwriter"
<ide>
<ide> Cli "github.com/docker/docker/cli"
<ide> func (cli *DockerCli) CmdVolumeLs(args ...string) error {
<ide> fmt.Fprintf(w, "\n")
<ide> }
<ide>
<add> sort.Sort(byVolumeName(volumes.... | 2 |
Text | Text | remove mess words in installation doc | f8d5b880722bcc87113a08cbb2069b6311b89f39 | <ide><path>docs/installation/linux/ubuntulinux.md
<ide> For Ubuntu Precise, Docker requires the 3.13 kernel version. If your kernel
<ide> version is older than 3.13, you must upgrade it. Refer to this table to see
<ide> which packages are required for your environment:
<ide>
<del><style type="text/css"> .tg {border-c... | 1 |
Python | Python | remove things we do not need in inspect | c8a87fcd0b27ffdd557014c877aeb7b8f6797691 | <ide><path>numpy/lib/inspect.py
<del># -*- coding: iso-8859-1 -*-
<del>"""Get useful information from live Python objects.
<del>
<del>This module encapsulates the interface provided by the internal special
<del>attributes (func_*, co_*, im_*, tb_*, etc.) in a friendlier fashion.
<del>It also provides some help for exam... | 1 |
Python | Python | add more typing to airflow.utils.helpers | 896f35107db370c7ecf6ce5c93791c2f4edb52d8 | <ide><path>airflow/utils/helpers.py
<ide> from datetime import datetime
<ide> from functools import reduce
<ide> from itertools import filterfalse, tee
<del>from typing import Any, Callable, Dict, Generator, Iterable, List, Optional, TypeVar
<add>from typing import TYPE_CHECKING, Any, Callable, Dict, Generator, Iterabl... | 1 |
Python | Python | fix provider name in the user-agent string | 9535ec0bbae112f78f0e8ccde6b5aff39f3fa75b | <ide><path>airflow/providers/databricks/hooks/databricks_base.py
<ide> def user_agent_value(self) -> str:
<ide> python_version = platform.python_version()
<ide> system = platform.system().lower()
<ide> ua_string = (
<del> f"databricks-aiflow/{version} _/0.0.0 python/{python_version} o... | 1 |
Javascript | Javascript | fix http agent keep alive | fe776b8f42be7aa8d17b6619de3ecd67d7a4d743 | <ide><path>lib/_http_agent.js
<ide> Agent.prototype.createSocket = function createSocket(req, options, cb) {
<ide> installListeners(this, s, options);
<ide> cb(null, s);
<ide> });
<del>
<add> // When keepAlive is true, pass the related options to createConnection
<add> if (this.keepAlive) {
<add> options... | 2 |
Javascript | Javascript | fix extend_prototypes for sproutcore-views | 5431c3990377ef052eced529f0bce0929a90f439 | <ide><path>packages/sproutcore-views/lib/system/ext.js
<ide> // Add a new named queue for rendering views that happens
<ide> // after bindings have synced.
<ide> var queues = SC.run.queues;
<del>queues.insertAt(queues.indexOf('actions')+1, 'render');
<add>queues.splice(jQuery.inArray('actions', queues)+1, 0, 'render');... | 5 |
Python | Python | replace nystromformertokenizer with autotokenizer | e239fc3b0baf1171079a5e0177a69254350a063b | <ide><path>src/transformers/models/nystromformer/modeling_nystromformer.py
<ide>
<ide> _CHECKPOINT_FOR_DOC = "uw-madison/nystromformer-512"
<ide> _CONFIG_FOR_DOC = "NystromformerConfig"
<del>_TOKENIZER_FOR_DOC = "NystromformerTokenizer"
<add>_TOKENIZER_FOR_DOC = "AutoTokenizer"
<ide>
<ide> NYSTROMFORMER_PRETRAINED_MO... | 1 |
Javascript | Javascript | move encodestr function to internal for reusable | db9a7459c3439c282ddcb7353e00491aeb704d22 | <ide><path>lib/internal/querystring.js
<ide> 'use strict';
<ide>
<add>const { ERR_INVALID_URI } = require('internal/errors').codes;
<add>
<ide> const hexTable = new Array(256);
<ide> for (var i = 0; i < 256; ++i)
<ide> hexTable[i] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
<ide> const isHexTable =... | 3 |
Mixed | Ruby | make hash#extract! more symmetric with hash#slice | 5d27338ab08496b41ef71c789e5ae4de0b3b8df7 | <ide><path>activesupport/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Hash#extract! returns only those keys that present in the reciever.
<add>
<add> {:a => 1, :b => 2}.extract!(:a, :x) # => {:a => 1}
<add>
<add> *Mikhail Dieterle*
<add>
<add>* Hash#extract! returns the same subclass, t... | 3 |
Python | Python | add schema as dbapihook instance attribute | 3ee916e9e11f0e9d9c794fa41b102161df3f2cd4 | <ide><path>airflow/hooks/dbapi.py
<ide> from contextlib import closing
<ide> from datetime import datetime
<ide> from typing import Any, Optional
<del>from urllib.parse import quote_plus
<add>from urllib.parse import quote_plus, urlunsplit
<ide>
<ide> from sqlalchemy import create_engine
<ide>
<ide> def __init__(self... | 4 |
Javascript | Javascript | add symbol to normalized connect() args | 51664fc265bf4ce9757f18b7b78f18b34678b3e3 | <ide><path>lib/internal/net.js
<ide> function isLegalPort(port) {
<ide> }
<ide>
<ide> module.exports = {
<del> isLegalPort
<add> isLegalPort,
<add> normalizedArgsSymbol: Symbol('normalizedArgs')
<ide> };
<ide><path>lib/net.js
<ide> var dns;
<ide> const errnoException = util._errnoException;
<ide> const exceptionWit... | 3 |
Javascript | Javascript | preserve controller instance across rerenders | dc97966be2134d794611b0c693193caad8207dc0 | <ide><path>packages/ember-htmlbars/lib/keywords/with.js
<ide> export default {
<ide> setupState(state, env, scope, params, hash) {
<ide> var controller = hash.controller;
<ide>
<del> if (controller && !state.controller) {
<del> var context = params[0];
<del> var controllerFactory = env.container.loo... | 2 |
Python | Python | remove incorrect docstrings in check_migrations | 9fde7a5ed0d72c8131e2002ace274fa0d45a6d5c | <ide><path>airflow/cli/commands/db_command.py
<ide> def upgradedb(args):
<ide>
<ide>
<ide> def check_migrations(args):
<del> """
<del> Function to wait for all airflow migrations to complete. Used for launching airflow in k8s
<del> @param timeout:
<del> @return:
<del> """
<add> """Function to wait f... | 1 |
Ruby | Ruby | run the damn tests @tenderlove | cf3840e364161ae0206bf76051a2d21cc9e12e95 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def to_sql(arel, binds = [])
<ide> # This is used in the StatementCache object. It returns an object that
<ide> # can be used to query the database repeatedly.
<ide> def cacheable_query(arel) # :nodoc:
... | 2 |
Javascript | Javascript | require common module only once | bfc4823d00c2609a462d4d0536d34b47f2684147 | <ide><path>test/parallel/test-tls-0-dns-altname.js
<ide> var tls = require('tls');
<ide>
<ide> var fs = require('fs');
<ide>
<del>var common = require('../common');
<del>
<ide> var requests = 0;
<ide>
<ide> var server = tls.createServer({
<ide><path>test/parallel/test-tls-max-send-fragment.js
<ide> var tls = require... | 2 |
Javascript | Javascript | add hash method to concatenated module | 4e90f435961f9267d7cd7e12f240f8bdcfcda077 | <ide><path>lib/optimize/ConcatenatedModule.js
<ide> class ConcatenatedModule extends Module {
<ide> return name;
<ide> }
<ide>
<add> updateHash(hash) {
<add> for(const m of this.modules) {
<add> m.updateHash(hash);
<add> }
<add> super.updateHash(hash);
<add> }
<add>
<ide> }
<ide>
<ide> class HarmonyImportSpec... | 1 |
Ruby | Ruby | remove `@nesting` ivar | 53454bfcb6b2351781cc7cde70792e347016c6f5 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def with_scope_level(kind)
<ide>
<ide> def resource_scope(kind, resource) #:nodoc:
<ide> @scope = @scope.new(:scope_level_resource => resource)
<del> @nesting.push(resource)
<ide>
<ide> with_scope_level(kind... | 1 |
Python | Python | implement fixes for trainingarguments doc | fa6dce250fd114fdc81f40a0f15c04b73a51ced1 | <ide><path>src/transformers/training_args.py
<ide> class TrainingArguments:
<ide> push_to_hub (`bool`, *optional*, defaults to `False`):
<ide> Whether or not to push the model to the Hub every time the model is saved. If this is activated,
<ide> `output_dir` will begin a git directory sy... | 1 |
Javascript | Javascript | upgrade apiplugin to es6 | 11c2865c641e38bc66973a5d80705a348190864c | <ide><path>lib/APIPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var ConstDependency = require("./dependencies/ConstDependency");
<del>var BasicEvaluatedExpression = require("./BasicEvaluatedExpression");
<add>"use strict";
<ide>
<del>v... | 1 |
Javascript | Javascript | remove unneeded closure | 8b98b74076d961b755c1f46dcb168ccf61bc3291 | <ide><path>editor/js/Sidebar.Geometry.TubeGeometry.js
<ide> Sidebar.Geometry.TubeGeometry = function ( editor, object ) {
<ide> var pointsList = new UI.Div();
<ide> points.add( pointsList );
<ide>
<del> ( function () {
<add> var parameterPoints = parameters.path.points;
<add> for ( var i = 0; i < parameterPoints.len... | 1 |
Ruby | Ruby | remove needless autoloads | 1c4a57e0e5b9666f0a05eb4fbdad09a6998ef54b | <ide><path>lib/action_mailbox.rb
<ide> module ActionMailbox
<ide>
<ide> autoload :Base
<ide> autoload :Router
<del> autoload :Callbacks
<del> autoload :Routing
<ide>
<ide> mattr_accessor :logger
<ide> mattr_accessor :incinerate_after, default: 30.days | 1 |
Ruby | Ruby | improve documentation and consistency | 3454d6a96199cc4f405a52d1525d0cc760a0ebf8 | <ide><path>Library/Homebrew/formula.rb
<ide> def recursive_requirements(&block)
<ide> Requirement.expand(self, &block)
<ide> end
<ide>
<add> # Returns a Keg for the opt_prefix or installed_prefix if they exist.
<add> # If not, return nil.
<add> # @private
<add> def opt_or_installed_prefix_keg
<add> if opt... | 3 |
Javascript | Javascript | improve history up/previous | b52bf605187d65be272a0ab8fb7f5623d8934f18 | <ide><path>lib/readline.js
<ide> Interface.prototype._historyNext = function() {
<ide> };
<ide>
<ide> Interface.prototype._historyPrev = function() {
<del> if (this.historyIndex < this.history.length) {
<add> if (this.historyIndex < this.history.length && this.history.length) {
<ide> const search = this[kSubstri... | 5 |
PHP | PHP | add missing docblock | 9e987784c934b9ab012f6c9360ef40646170d7f6 | <ide><path>src/Illuminate/Encryption/EncryptionServiceProvider.php
<ide> public function register()
<ide> *
<ide> * @param array $config
<ide> * @return string
<add> *
<add> * @throws \RuntimeException
<ide> */
<ide> protected function key(array $config)
<ide> { | 1 |
Ruby | Ruby | destroy blob record before deleting stored data | 07ecaa614b127a1a0b319c5f8eab3d6cad630ddc | <ide><path>activestorage/app/models/active_storage/blob.rb
<ide> def delete
<ide> # blobs. Note, though, that deleting the file off the service will initiate a HTTP connection to the service, which may
<ide> # be slow or prevented, so you should not use this method inside a transaction or in callbacks. Use #purge_l... | 1 |
Python | Python | fix spancat training on nested entities | 4d52d7051cda8492c54acf43a4e76fafd1aef6ec | <ide><path>spacy/pipeline/spancat.py
<ide> def _validate_categories(self, examples):
<ide> pass
<ide>
<ide> def _get_aligned_spans(self, eg: Example):
<del> return eg.get_aligned_spans_y2x(eg.reference.spans.get(self.key, []))
<add> return eg.get_aligned_spans_y2x(eg.reference.spans.get(self.... | 2 |
Mixed | Ruby | add preload_link_tag helper | eb90b8bc86e758045a707cae43d11dab538ca6db | <ide><path>actionview/CHANGELOG.md
<add>* Add `preload_link_tag` helper
<add>
<add> This helper that allows to the browser to initiate early fetch of resources
<add> (different to the specified in javascript_include_tag and stylesheet_link_tag).
<add> Additionally, this sends Early Hints if supported by brow... | 3 |
Text | Text | update introduction documentation | 5129e1aaf7800e1a816b4638cde3326af684eb31 | <ide><path>docs/README.md
<ide> var myChart = new Chart(ctx, {
<ide>
<ide> ## Contributing
<ide>
<del>Before submitting an issue or a pull request to the project, please take a moment to look over the [contributing guidelines](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md) first.
<ad... | 1 |
PHP | PHP | fix a test | 0e4a1c2a9700688f52ea6f88d1346cd452b00af3 | <ide><path>tests/TestCase/ORM/TableTest.php
<ide> public function testDeleteDependentAliased()
<ide> $Articles->associations()->removeAll();
<ide>
<ide> $Authors->hasMany('AliasedArticles', [
<del> 'className' => 'articles',
<add> 'className' => 'Articles',
<ide> 'depe... | 1 |
Go | Go | move directive out of globals | 755be795b4e48b3eadcdf1427bf9731b0e97bed1 | <ide><path>builder/dockerfile/builder.go
<ide> type Builder struct {
<ide> disableCommit bool
<ide> cacheBusted bool
<ide> allowedBuildArgs map[string]bool // list of build-time args that are allowed for expansion/substitution and passing to commands in 'run'.
<add> directive parser.Directive
<ide>
<... | 9 |
PHP | PHP | add tests for usage of radiocontainer | 52f16a94f484d1081a4abf0ed2a4e57d2213977c | <ide><path>Test/TestCase/View/Input/RadioTest.php
<ide> public function testRenderLabelOptions() {
<ide> * @return void
<ide> */
<ide> public function testRenderContainerTemplate() {
<del> $this->markTestIncomplete();
<add> $this->templates->add([
<add> 'radioContainer' => '<div class="radio">{{input}}{{label}}<... | 1 |
Javascript | Javascript | prevent firefox marking required textareas invalid | a5df18a9e5d7cc70c30ce144dcc291e9f64cb451 | <ide><path>fixtures/dom/src/components/fixtures/textareas/index.js
<add>import Fixture from '../../Fixture';
<ide> import FixtureSet from '../../FixtureSet';
<ide> import TestCase from '../../TestCase';
<ide>
<ide> export default class TextAreaFixtures extends React.Component {
<ide> <textarea placeholder=... | 3 |
Ruby | Ruby | remove useless case in #resolve_layout | c0daa02c24ced5940ad9ab36ca81dd25614e5e41 | <ide><path>actionview/lib/action_view/renderer/template_renderer.rb
<ide> def resolve_layout(layout, keys, formats)
<ide> end
<ide> when Proc
<ide> resolve_layout(layout.call, keys, formats)
<del> when FalseClass
<del> nil
<ide> else
<ide> layout
<ide> end | 1 |
Javascript | Javascript | use arrow functions in test-exception-handler | f8af209f428bd1233d5de5f399f74daaf359cb6e | <ide><path>test/parallel/test-exception-handler.js
<ide> const assert = require('assert');
<ide>
<ide> const MESSAGE = 'catch me if you can';
<ide>
<del>process.on('uncaughtException', common.mustCall(function(e) {
<add>process.on('uncaughtException', common.mustCall((e) => {
<ide> console.log('uncaught exception! ... | 1 |
Javascript | Javascript | make relative ref to sys in fs module | 6d9227b79a65c1d5df8e0ffb86c8a7fb1efe7884 | <ide><path>lib/fs.js
<del>var
<del> sys = require('sys'),
<del> events = require('events'),
<del> fs = require('fs');
<add>var sys = require('./sys'),
<add> events = require('events');
<ide>
<ide> exports.Stats = process.Stats;
<ide>
<ide> var FileWriteStream = exports.FileWriteStream = function(path, options) ... | 1 |
Javascript | Javascript | make dommanager stateless for performance | caa4c9cd21b43c6f2f827e307f5486785d9b0174 | <ide><path>packages/ember-handlebars/lib/views/metamorph_view.js
<ide> require("ember-views/views/view");
<ide>
<ide> var set = Ember.set, get = Ember.get, getPath = Ember.getPath;
<ide>
<add>var DOMManager = {
<add> remove: function(view) {
<add> var morph = view.morph;
<add> if (morph.isRemoved()) { return; ... | 4 |
Javascript | Javascript | use es6 import for drawerlayoutandroid | d1f217e829cb3f6de312557212feb9c9aa5e7711 | <ide><path>Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
<ide>
<ide> 'use strict';
<ide>
<del>const Platform = require('../../Utilities/Platform');
<del>const React = require('react');
<del>const StatusBar = require('../StatusBar/StatusBar');
<del>const StyleSheet = require('../../StyleSheet/Style... | 1 |
Javascript | Javascript | add meteor/package.js to bump version script | f32e2e5896a1c3601e695151111078cd92bd2693 | <ide><path>tasks/bump_version.js
<ide> module.exports = function (grunt) {
<ide> }
<ide> });
<ide>
<add> grunt.config('string-replace.meteor-package-js', {
<add> files: {'meteor/package.js': 'meteor/package.js'},
<add> options: {
<add> replacements: [
<ad... | 1 |
Javascript | Javascript | kill navigationexperimental containers | 14eb427a8061e0c904ace022535070150c6872d4 | <ide><path>Examples/UIExplorer/NavigationExperimental/NavigationAnimatedExample.js
<ide> const {
<ide> Card: NavigationCard,
<ide> Header: NavigationHeader,
<ide> Reducer: NavigationReducer,
<del> RootContainer: NavigationRootContainer,
<ide> } = NavigationExperimental;
<ide>
<del>const NavigationBasicReducer ... | 22 |
Go | Go | replace sendpair() with the simpler sendconn() | 4f92ffb50036f313a51020e1bfdcad7b10db65fb | <ide><path>pkg/beam/beam.go
<ide> func SendPipe(dst Sender, data []byte) (*os.File, error) {
<ide> return w, nil
<ide> }
<ide>
<del>func SendPair(dst Sender, data []byte) (in ReceiveCloser, out SendCloser, err error) {
<add>func SendConn(dst Sender, data []byte) (conn *UnixConn, err error) {
<ide> local, remote, err... | 2 |
Text | Text | harmonize changes list ordering | bd45124f00473b0e5affdb206c520a70330dd27d | <ide><path>doc/api/crypto.md
<ide> console.log(uncompressedKey === ecdh.getPublicKey('hex'));
<ide> <!-- YAML
<ide> added: v0.11.14
<ide> changes:
<del> - version: v6.0.0
<del> pr-url: https://github.com/nodejs/node/pull/5522
<del> description: The default `inputEncoding` changed from `binary` to `utf8`.
<ide> ... | 13 |
Javascript | Javascript | update node snippets | 911722fa6eb9f2e503e8f564406adb9634bc4fc0 | <ide><path>examples/jsm/renderers/webgpu/ShaderLib.js
<ide> const ShaderLib = {
<ide> layout(set = 0, binding = 3) uniform sampler mySampler;
<ide> layout(set = 0, binding = 4) uniform texture2D myTexture;
<ide>
<add> #ifdef NODE_UNIFORMS
<add>
<add> layout(set = 0, binding = 5) uniform NodeUniforms {
<add> NO... | 1 |
Text | Text | add readme information | 2c1d5564ad8e7d937bccf500a12e95423f4b6545 | <ide><path>examples/README.md
<ide> similar API between the different models.
<ide>
<ide> | Section | Description |
<ide> |----------------------------|-----... | 1 |
Text | Text | fix changelog typo [ci skip] | 04907b64ac26ad033bcafc2b036a77a68fa64b22 | <ide><path>actionpack/CHANGELOG.md
<ide> Example:
<ide>
<ide> url_for [:new, :admin, :post, { param: 'value' }]
<del> # => http://example.com/admin/posts/new?params=value
<add> # => http://example.com/admin/posts/new?param=value
<ide>
<ide> *Andrey Ognevsky*
<ide> | 1 |
Javascript | Javascript | remove the chrome stringification hack | 813117da31bfc8731e8af26336915e29878b4294 | <ide><path>src/auto/injector.js
<ide> var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
<ide> var $injectorMinErr = minErr('$injector');
<ide>
<ide> function stringifyFn(fn) {
<del> // Support: Chrome 50-51 only
<del> // Creating a new string by adding `' '` at the end, to hack around some bug in Chrome v50/5... | 2 |
Ruby | Ruby | enforce https for bare bintray.com domain | 1b5fc1fb02691f0868f855443f1393568fe2b465 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_urls
<ide> problem "Fossies urls should be https://, not http (url is #{p})."
<ide> when %r[^http://mirrors\.kernel\.org/]
<ide> problem "mirrors.kernel urls should be https://, not http (url is #{p})."
<del> when %r[^http://[^/]*\.bint... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.