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 |
|---|---|---|---|---|---|
Java | Java | improve package javadoc | 748fb50f63b9239350d1d02c76667fde61a5f78b | <ide><path>src/main/java/io/reactivex/observers/package-info.java
<ide> */
<ide>
<ide> /**
<del> * Default wrappers and implementations for Observer-based consumer classes and interfaces;
<del> * utility classes for creating them from callbacks.
<add> * Default wrappers and implementations for Observer-based consumer... | 3 |
Javascript | Javascript | fix race condition in keyboardavoidingview | b08fff6f869e00c20c0dcdf7aca71284c2f276f0 | <ide><path>Libraries/Components/Keyboard/KeyboardAvoidingView.js
<ide> class KeyboardAvoidingView extends React.Component<Props, State> {
<ide> };
<ide>
<ide> _frame: ?ViewLayout = null;
<add> _keyboardEvent: ?KeyboardEvent = null;
<ide> _subscriptions: Array<EventSubscription> = [];
<ide> viewRef: {current: ... | 1 |
Mixed | Ruby | add migration history to schema.rb dump | f02d2185ebbe01f455a9a91216ff7094b014ea72 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Add migration history to schema.rb dump.
<add> Loading schema.rb with full migration history
<add> restores the exact list of migrations that created
<add> that schema (including names and fingerprints). This
<add> avo... | 9 |
Python | Python | fix doc for language code | 814b9550d72f918d9eaea94468fa18a15ab710b3 | <ide><path>src/transformers/models/mbart/tokenization_mbart.py
<ide> def build_inputs_with_special_tokens(
<ide> adding special tokens. An MBART sequence has the following format, where ``X`` represents the sequence:
<ide>
<ide> - ``input_ids`` (for encoder) ``X [eos, src_lang_code]``
<del> - ``... | 2 |
Ruby | Ruby | fix typo in migration test | bcff10adeccca10c75ef3c9539deb039c0bd775c | <ide><path>activerecord/test/migration_test.rb
<ide> def test_native_types
<ide> end
<ide>
<ide> # Test DateTime column and defaults, including timezone.
<del> # FIXME: momemnt of truth is Time on 64-bit platforms.
<add> # FIXME: moment of truth may be Time on 64-bit platforms.
<ide> if bob... | 1 |
Python | Python | fix timedistributed batchnormalization | 7c7d73530c1ab1b47f9fb5f0612ec13fef1a26c6 | <ide><path>keras/layers/wrappers.py
<ide> import copy
<ide> from ..engine import Layer
<ide> from ..engine import InputSpec
<add>from ..engine.topology import _object_list_uid
<ide> from ..utils.generic_utils import has_arg
<ide> from .. import backend as K
<ide>
<ide> class Wrapper(Layer):
<ide>
<ide> def __init... | 2 |
Text | Text | remove unnecessary newlines | 648418196d46da4c93217412dd2c79c63334cac2 | <ide><path>docs/recipes/UsingObjectSpreadOperator.md
<ide> # Using Object Spread Operator
<ide>
<del>Since one of the core tenets of Redux is to never mutate state, you'll often find yourself using [`Object.assign()`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) to creat... | 1 |
Go | Go | fix files in subdirectories creating bad whiteout | 1c0f6653ba82c933885719478e90c13f8d7e32b7 | <ide><path>pkg/archive/archive_linux.go
<ide> func (overlayWhiteoutConverter) ConvertWrite(hdr *tar.Header, path string, fi os
<ide> // convert whiteouts to AUFS format
<ide> if fi.Mode()&os.ModeCharDevice != 0 && hdr.Devmajor == 0 && hdr.Devminor == 0 {
<ide> // we just rename the file and make it normal
<del> hd... | 1 |
Python | Python | add new lfs prune api | 08a5f57567d8a975d900b66658bfd3c28c9dbec5 | <ide><path>examples/pytorch/language-modeling/run_clm_no_trainer.py
<ide> def group_texts(examples):
<ide> unwrapped_model.save_pretrained(args.output_dir, save_function=accelerator.save)
<ide> if accelerator.is_main_process:
<ide> tokenizer.save_pretrained(args.output_dir)
<del>... | 11 |
Python | Python | install common.gypi along with headers | 55b0bd639dea3e0d56b596aaa6ba2d26458c2be1 | <ide><path>tools/install.py
<ide> def files(action):
<ide> if 'true' == variables.get('node_install_npm'): npm_files(action)
<ide>
<ide> action([
<add> 'common.gypi',
<ide> 'config.gypi',
<ide> 'src/node.h',
<ide> 'src/node_buffer.h', | 1 |
Go | Go | fix golint issues | 6397dd4d3123e0a1b89298d0a2cfe5388410a74f | <ide><path>integration-cli/checker/checker.go
<ide> import (
<ide> "gotest.tools/assert/cmp"
<ide> )
<ide>
<add>// Compare defines the interface to compare values
<ide> type Compare func(x interface{}) assert.BoolOrComparison
<ide>
<add>// False checks if the value is false
<ide> func False() Compare {
<ide> return... | 1 |
Javascript | Javascript | fix punycode test for --without-intl | f8063d51d7e83ab6d5c7cfcadc37ed6b4f6d8ef5 | <ide><path>benchmark/misc/punycode.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common.js');
<del>const icu = process.binding('icu');
<add>let icu;
<add>try {
<add> icu = process.binding('icu');
<add>} catch (err) {}
<ide> const punycode = require('punycode');
<ide>
<ide> const bench = common.create... | 1 |
Python | Python | remove assert on optional arg | 96881729ce83cfc8e5fa04c903ee4296ad17cfbb | <ide><path>examples/pytorch/summarization/run_summarization.py
<ide> class DataTrainingArguments:
<ide> def __post_init__(self):
<ide> if self.dataset_name is None and self.train_file is None and self.validation_file is None:
<ide> raise ValueError("Need either a dataset name or a training/valid... | 1 |
PHP | PHP | remove use of file from email | f95e242d7e15545ae312e96d25a2b6f6a7ca5726 | <ide><path>src/Mailer/Email.php
<ide> use BadMethodCallException;
<ide> use Cake\Core\Configure;
<ide> use Cake\Core\StaticConfigTrait;
<del>use Cake\Filesystem\File;
<ide> use Cake\Http\Client\FormDataPart;
<ide> use Cake\Log\Log;
<ide> use Cake\Utility\Hash;
<ide> protected function _attachFiles($boundary = null)
<id... | 1 |
Ruby | Ruby | add missing require to html sanitizer | 1bd88fdafd9cd0c1c83e8bf41020d0c251cb3108 | <ide><path>actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
<ide> require 'set'
<add>require 'cgi'
<ide> require 'active_support/core_ext/class/attribute'
<ide>
<ide> module HTML | 1 |
Python | Python | fix generation docstring | a767276fdd8835c31a37b4b6cefea18d6e86064b | <ide><path>src/transformers/generation_utils.py
<ide> def generate(
<ide> >>> outputs = model.generate(input_ids=input_ids, max_length=20, repetition_penalty=1.2)
<ide> >>> print("Generated:", tokenizer.decode(outputs[0], skip_special_tokens=True))
<ide>
<del> >>> tokenizer = AutoTok... | 2 |
Python | Python | add a noun chunker for finnish | e9c26f2ee9f03c2aa6b7cd724f4c0b3717507211 | <ide><path>spacy/lang/fi/__init__.py
<ide> from .stop_words import STOP_WORDS
<ide> from .lex_attrs import LEX_ATTRS
<ide> from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES
<add>from .syntax_iterators import SYNTAX_ITERATORS
<ide> from ...language import Language, BaseDefaults
<ide>
<ide>
<ide> class Fin... | 3 |
Ruby | Ruby | remove redundant arguments in store test helper | 85cde3cde1c7712b2abb3383c1faa023f8392dae | <ide><path>activesupport/test/cache/stores/mem_cache_store_test.rb
<ide> def random_string(length)
<ide> end
<ide>
<ide> def store
<del> [:mem_cache_store, ENV["MEMCACHE_SERVERS"] || "localhost:11211"]
<add> [:mem_cache_store]
<ide> end
<ide>
<ide> def emulating_latency | 1 |
Python | Python | remove trailing whitespace | bcc1d50d09dcaee958d3e76146aa1987a7c51706 | <ide><path>spacy/language.py
<ide> def create_vocab(cls, nlp=None):
<ide> else:
<ide> return Vocab.load(nlp.path, lex_attr_getters=cls.lex_attr_getters,
<ide> tag_map=cls.tag_map, lemmatizer=lemmatizer)
<del>
<add>
<ide> @classmethod
<ide> def add_vectors(cls... | 1 |
Java | Java | remove tiles 3 configuration method | d9540ff34233bb36794da5490a21c7eaa632f1dd | <ide><path>spring-webmvc-tiles3/src/main/java/org/springframework/web/servlet/view/tiles3/TilesConfigurer.java
<ide> protected AbstractTilesContainerFactory createContainerFactory(ApplicationContex
<ide>
<ide> private class SpringCompleteAutoloadTilesContainerFactory extends CompleteAutoloadTilesContainerFactory {
<i... | 1 |
Javascript | Javascript | change button color on submit | ee45a147eca02b15ba1ca55d5fc36ee5d399e8db | <ide><path>public/js/lib/coursewares/commonFrameWork_0.0.6.js
<ide> function showCompletion() {
<ide>
<ide> $('#submit-challenge')
<ide> .attr('disabled', 'true')
<del> .addClass('disabled');
<add> .removeClass('btn-primary')
<add> .addClass('btn-warning disabled');
<ide>
<ide> ... | 1 |
Javascript | Javascript | permit null as a cipher value | 4a741b8dc2c19efcef49ca39362bb7126d80a3d1 | <ide><path>lib/_tls_common.js
<ide> exports.createSecureContext = function createSecureContext(options) {
<ide> }
<ide> }
<ide>
<del> if (ciphers !== undefined)
<add> if (ciphers != null)
<ide> validateString(ciphers, 'options.ciphers');
<ide>
<ide> // Work around an OpenSSL API quirk. cipherList is for... | 2 |
Javascript | Javascript | create contexts in object shorthand syntax | 6c0056c2075ae07bf5e21ac9ffe3dac74904e43a | <ide><path>lib/dependencies/CommonJsImportsParserPlugin.js
<ide> class CommonJsImportsParserPlugin {
<ide> regExp: options.unknownContextRegExp,
<ide> mode: "sync"
<ide> },
<del> expr.range
<add> expr.range,
<add> undefined,
<add> parser.scope.inShorthand
<ide> );
<ide> dep.crit... | 6 |
Javascript | Javascript | allow leading whitespace in declaration regexp | 87df048a6b3cc39c5cbd91c8e27cc23a111018e3 | <ide><path>examples/jsm/nodes/core/FunctionNode.js
<ide> import { TempNode } from './TempNode.js';
<ide> import { NodeLib } from './NodeLib.js';
<ide>
<del>var declarationRegexp = /^([a-z_0-9]+)\s([a-z_0-9]+)\s*\((.*?)\)/i,
<add>var declarationRegexp = /^\s*([a-z_0-9]+)\s([a-z_0-9]+)\s*\((.*?)\)/i,
<ide> propertiesRe... | 1 |
Java | Java | eliminate propertysourceaggregator interface | f46a455c72370714a7494ff95bf9d4cd927ebac8 | <ide><path>org.springframework.core/src/main/java/org/springframework/core/env/ConfigurableEnvironment.java
<ide>
<ide> package org.springframework.core.env;
<ide>
<add>import java.util.LinkedList;
<add>import java.util.Map;
<add>import java.util.Properties;
<add>
<ide> import org.springframework.core.convert.Convers... | 2 |
Ruby | Ruby | store the formula used to build the keg in the keg | 25df0c03d6abd79fbc103f3be9df38d48bd4f938 | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def initialize(path)
<ide> # dylibs have multiple symlinks and we don't care about them
<ide> (pnn.extname == ".dylib" || pnn.extname == ".pc") && !pnn.symlink?
<ide> end
<add> when ".brew"
<add> # Ignore .brew
<ide> else
<ide> ... | 3 |
Java | Java | fix thread safety for unsubscribe | 77a4f63eba1ccba0fa35996220a994b401f9bcc7 | <ide><path>src/main/java/rx/internal/operators/OperatorWindowWithSize.java
<ide> final class ExactSubscriber extends Subscriber<T> {
<ide> final Subscriber<? super Observable<T>> child;
<ide> int count;
<ide> BufferUntilSubscriber<T> window;
<del> Subscription parentSubscription = this;
<... | 1 |
Javascript | Javascript | fix lint errors | 5cf9ed238e9dba5e0cdd177170be7161fcc39bb4 | <ide><path>src/update-process-env.js
<ide> const ENVIRONMENT_VARIABLES_TO_PRESERVE = new Set([
<ide>
<ide> const PLATFORMS_KNOWN_TO_WORK = new Set(['darwin', 'linux']);
<ide>
<del>
<ide> // Shell command that returns env var=value lines separated by \0s so that
<ide> // newlines are handled properly. Note: need to us... | 1 |
Text | Text | add pr 5376 to release notes | af460d2b6906ebce0680105f36eeada867a35d7e | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> ## 3.6.x series
<ide>
<add>### 3.6.5
<add>
<add>* Fix `DjangoModelPermissions` to ensure user authentication before calling the view's `get_queryset()` method. As a side effect, this change... | 1 |
Text | Text | add warnings for translations that need update | cfa00dc9d45917ff27e0e2c0048d25823173a34a | <ide><path>threejs/lessons/ru/threejs-fundamentals.md
<ide> Title: Основы Three.js
<ide> Description: Твой первый урок по Three.js начинаетсся с основ
<ide> TOC: Базовые принципы
<ide>
<add>{{{warning msgId="updateNeeded"}}}
<add>
<ide> Это первая статья в серии статей о three.js.
<ide> [Three.js](http://threejs.org) ... | 2 |
Text | Text | remove double spaces in code examples | 70b302b189dbe9f90e3b081fa540c909a43ba8d0 | <ide><path>guides/source/2_3_release_notes.md
<ide> before_save :update_credit_rating, :if => :active,
<ide> Rails now has a `:having` option on find (as well as on `has_many` and `has_and_belongs_to_many` associations) for filtering records in grouped finds. As those with heavy SQL backgrounds know, this allows filter... | 7 |
PHP | PHP | add support for setting footer of slack attachment | f996b9e9627c776b1f385a8f4441f411be7a167b | <ide><path>src/Illuminate/Notifications/Channels/SlackWebhookChannel.php
<ide> protected function attachments(SlackMessage $message)
<ide> 'title_link' => $attachment->url,
<ide> 'fields' => $this->fields($attachment),
<ide> 'mrkdwn_in' => $attachment->markdown,
<add> ... | 2 |
PHP | PHP | parse cookie values "{}" & "[]" as array | db63ba2d8f95e67b6b212860f0310ed65ab4db6a | <ide><path>lib/Cake/Controller/Component/CookieComponent.php
<ide> protected function _explode($string) {
<ide> $first = substr($string, 0, 1);
<ide> if ($first === '{' || $first === '[') {
<ide> $ret = json_decode($string, true);
<del> return ($ret) ? $ret : $string;
<add> return ($ret !== null) ? $ret : $s... | 1 |
Javascript | Javascript | update configuration snapshots | 85b5f2dbc43a3f1a5a5495663c2abc15215d3b4a | <ide><path>test/Defaults.unittest.js
<ide> describe("Defaults", () => {
<ide> "nodeEnv": false,
<ide> "portableRecords": false,
<ide> "providedExports": true,
<add> "realContentHash": false,
<ide> "removeAvailableModules": false,
<ide> "removeEmptyChunks": true,
<ide> "runtimeCh... | 2 |
Javascript | Javascript | defer useeffect until after paint | 11d0781eea7dfa65e0ea9e54d18ff937122f9524 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.js
<ide> import {
<ide> requestCurrentTime,
<ide> scheduleWork,
<ide> } from './ReactFiberScheduler';
<add>import {
<add> NoEffect as NoHookEffect,
<add> UnmountSnapshot,
<add> UnmountMutation,
<add> MountMutation,
<add> UnmountLayout,
<add> MountL... | 11 |
Javascript | Javascript | parse urls using the browser's dom api | b99d064b6ddbcc9f59ea45004279833e9ea82928 | <ide><path>angularFiles.js
<ide> angularFiles = {
<ide> 'src/ng/httpBackend.js',
<ide> 'src/ng/locale.js',
<ide> 'src/ng/timeout.js',
<add> 'src/ng/urlUtils.js',
<ide>
<ide> 'src/ng/filter.js',
<ide> 'src/ng/filter/filter.js',
<ide><path>src/AngularPublic.js
<ide> function publishExternalAPI(ang... | 7 |
Python | Python | add potsdb lib dep | cc2c68022672589166977e1556752600b3d6df27 | <ide><path>setup.py
<ide> def get_requires():
<ide> 'IP': ['netifaces'],
<ide> 'RAID': ['pymdstat'],
<ide> 'DOCKER': ['docker-py'],
<del> 'EXPORT': ['influxdb>=1.0.0', 'statsd', 'pika'],
<add> 'EXPORT': ['influxdb>=1.0.0', 'potsdb' 'statsd', 'pika'],
<ide> 'ACTION': ['pysta... | 1 |
Ruby | Ruby | remove unnused method from test | f3747204020e7e45ccd30f3993214558d48cf680 | <ide><path>railties/test/rails_info_test.rb
<ide> def test_html_includes_middleware
<ide> end
<ide>
<ide> protected
<del> def svn_info=(info)
<del> Rails::Info.module_eval do
<del> class << self
<del> def svn_info
<del> info
<del> end
<del> end
<del> end
<del... | 1 |
Ruby | Ruby | fix autoload for nullpool | 39ae5275c3dc2501d0c19fdd6ae261e8cabf25e9 | <ide><path>activerecord/lib/active_record/connection_adapters.rb
<ide> module ConnectionAdapters
<ide> autoload :DatabaseStatements
<ide> autoload :DatabaseLimits
<ide> autoload :Quoting
<del> autoload :ConnectionPool
<ide> autoload :ConnectionHandler
<ide> autoload :QueryCache
<ide> ... | 1 |
PHP | PHP | fix issue with non-sequential array keys | 73b0345ff4c2fc55339a19b204131daf27069b2e | <ide><path>lib/Cake/Test/Case/Utility/XmlTest.php
<ide> public function testFromArray() {
<ide> $this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $xmlText);
<ide> }
<ide>
<add>/**
<add> * Test non-sequential keys in list types.
<add> *
<add> * @return void
<add> */
<add> public function testFro... | 2 |
Text | Text | add instructions to import in replit | 7b860f920f452bc60a73c7ffb785d1ba87ad2c8c | <ide><path>client/src/pages/learn/back-end-development-and-apis/basic-node-and-express/index.md
<ide> Node.js is a JavaScript runtime that allows developers to write backend (server-
<ide>
<ide> Express, while not included with Node.js, is another module often used with it. Express runs between the server created by N... | 38 |
PHP | PHP | fix more failing tests in console/command | 7762846ec0806cfd27b93c454c7aa74492b41d70 | <ide><path>lib/Cake/Console/Command/BakeShell.php
<ide> <?php
<ide> /**
<del> * Command-line code generation utility to automate programmer chores.
<del> *
<del> * Bake is CakePHP's code generation script, which can help you kickstart
<del> * application development by writing fully functional skeleton controllers,
<de... | 2 |
Text | Text | use valid json in translation example | bec7f67c4a2ab81db4962317f12e4ea3867f7e47 | <ide><path>docs/guides/languages.md
<ide> Video.js uses a JSON object to describe a language, where the keys are English a
<ide> "Pause": "Pausa",
<ide> "Current Time": "Tiempo reproducido",
<ide> "Duration Time": "Duración total",
<del> "Remaining Time": "Tiempo restante",
<del> ...
<add> "Remaining Time": "T... | 1 |
Ruby | Ruby | fix linter offenses | dabbfe3e3e4d5a6cd2f66ed274a9ec8ef7999f25 | <ide><path>Library/Homebrew/cask/cask.rb
<ide> def outdated_versions(greedy = false)
<ide> def outdated_info(greedy, verbose, json)
<ide> if json
<ide> {
<del> name: token,
<add> name: token,
<ide> installed_versions: outdated_versions(greedy).join(", "),
<del... | 2 |
Javascript | Javascript | use dynamic port in test-cluster-dgram-reuse | 6b1819cff59c674d03f0afca80f33369b36b3926 | <ide><path>test/parallel/test-cluster-dgram-reuse.js
<ide> if (cluster.isMaster) {
<ide> return;
<ide> }
<ide>
<del>const sockets = [];
<del>function next() {
<del> sockets.push(this);
<del> if (sockets.length !== 2)
<del> return;
<del>
<del> // Work around health check issue
<del> process.nextTick(() => {
<d... | 1 |
Python | Python | fix comment typo in modelserializer | d2994e0596c3163ac970b29dad6a61485f938045 | <ide><path>rest_framework/serializers.py
<ide> def get_field_names(self, declared_fields, info):
<ide> # Ensure that all declared fields have also been included in the
<ide> # `Meta.fields` option.
<ide>
<del> # Do not require any fields that are declared a parent class,
<add> ... | 1 |
Text | Text | expand the advanced networking page to all options | ca9c35cdf772ddb121447b3877dbcf8caa4c5cdb | <ide><path>docs/sources/use/networking.md
<del>page_title: Configure Networking
<add>page_title: Network Configuration
<ide> page_description: Docker networking
<ide> page_keywords: network, networking, bridge, docker, documentation
<ide>
<del># Configure Networking
<add># Network Configuration
<ide>
<del>## Introduc... | 1 |
Go | Go | fix root detection | 0484b2c3254238a6c534f7d417c12c10b694f0d0 | <ide><path>utils.go
<ide> func RootIsShared() bool {
<ide> if data, err := ioutil.ReadFile("/proc/self/mountinfo"); err == nil {
<ide> for _, line := range strings.Split(string(data), "\n") {
<ide> cols := strings.Split(line, " ")
<del> if len(cols) >= 6 && cols[3] == "/" && cols[4] == "/" {
<add> if len(cols... | 1 |
Java | Java | improve error handling when response is committed | dd0d270ba26e163d41fd2b06e1ea13afe1ca6aac | <ide><path>spring-web/src/main/java/org/springframework/web/server/adapter/HttpWebHandlerAdapter.java
<ide> public class HttpWebHandlerAdapter extends WebHandlerDecorator implements HttpHa
<ide> * <p>TODO:
<ide> * This definition is currently duplicated between HttpWebHandlerAdapter
<ide> * and AbstractSockJsSess... | 3 |
Mixed | Python | add trim_whitespace to charfield | 7f801b9a01fa7df3b081ddec803bd0d34cc3b35b | <ide><path>docs/api-guide/fields.md
<ide> A text representation. Optionally validates the text to be shorter than `max_len
<ide>
<ide> Corresponds to `django.db.models.fields.CharField` or `django.db.models.fields.TextField`.
<ide>
<del>**Signature:** `CharField(max_length=None, min_length=None, allow_blank=False)`
<... | 3 |
Javascript | Javascript | add new limit for size | f9efe05d4b2a016e96b48596989ff4d8cbf1095a | <ide><path>test/integration/size-limit/test/index.test.js
<ide> describe('Production response size', () => {
<ide> console.log(`Response Sizes:\n${responseSizes.map(obj => ` ${obj.url}: ${obj.bytes} (bytes)`).join('\n')} \nOverall: ${responseSizeKilobytes} KB`)
<ide>
<ide> // These numbers are without gzip com... | 1 |
Javascript | Javascript | add the function setmaterialindex to geometryutils | a81dfc9c99a54cbbb0cdb8bbfbfac2f28725879b | <ide><path>src/extras/GeometryUtils.js
<ide> THREE.GeometryUtils = {
<ide> geometry.faces = faces;
<ide> geometry.faceVertexUvs = faceVertexUvs;
<ide>
<del> }
<add> },
<add>
<add> setMaterialIndex: function ( geometry, index, startFace, endFace ){
<add>
<add> var faces = geometry.faces;
<add> var start = star... | 1 |
PHP | PHP | fix boolean value in assertsessionhaserrors | 80c39186b4e6875fe5c78342c63b5d9334e0b22d | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertSessionHasErrors($keys = [], $format = null, $errorBag = '
<ide> if (is_int($key)) {
<ide> PHPUnit::assertTrue($errors->has($value), "Session missing error: $value");
<ide> } else {
<add> ... | 1 |
Python | Python | remove detr building | 323ea8979081e131b70c6649ce91b0a6ba8a9c6a | <ide><path>research/object_detection/core/target_assigner.py
<ide> def create_target_assigner(reference, stage=None,
<ide> use_matmul_gather=use_matmul_gather)
<ide> box_coder_instance = faster_rcnn_box_coder.FasterRcnnBoxCoder()
<ide>
<del> elif reference == 'DETR':
<de... | 1 |
Javascript | Javascript | change var to let in lib/_stream_duplex.js | 7f50839f7de0fc5ff86093f56bebcc44ad5a3ac5 | <ide><path>lib/_stream_duplex.js
<ide> Object.setPrototypeOf(Duplex, Readable);
<ide> {
<ide> // Allow the keys array to be GC'ed.
<ide> const keys = Object.keys(Writable.prototype);
<del> for (var v = 0; v < keys.length; v++) {
<add> for (let v = 0; v < keys.length; v++) {
<ide> const method = keys[v];
<ide>... | 1 |
Javascript | Javascript | fix a typo | d430e1358227f316ef41650c8e1b9674de11ab84 | <ide><path>packages/react-test-renderer/src/__tests__/ReactShallowRenderer-test.js
<ide> describe('ReactShallowRenderer', () => {
<ide> ]);
<ide> });
<ide>
<del> it('should stop the upade when setState returns null or undefined', () => {
<add> it('should stop the update when setState returns null or undefined'... | 1 |
Python | Python | add mysql to bq support for tinyint | ad4faf6e2ad0cd99097d3f0342581fd793a85add | <ide><path>airflow/contrib/operators/mysql_to_gcs.py
<ide> def type_map(cls, mysql_type):
<ide> when a schema_filename is set.
<ide> """
<ide> d = {
<add> FIELD_TYPE.TINY: 'INTEGER',
<ide> FIELD_TYPE.BIT: 'INTEGER',
<ide> FIELD_TYPE.DATETIME: 'TIMESTAMP',
<ide>... | 1 |
Ruby | Ruby | update associations.rb api documentation [ci skip] | 9cafaadc0cce68143bb7390f9b147ed23da38737 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def has_one(name, scope = nil, **options)
<ide> # Returns the associated object. +nil+ is returned if none is found.
<ide> # [association=(associate)]
<ide> # Assigns the associate object, extracts the primary key, and sets it a... | 1 |
Go | Go | define all of the signals defined by kill -l | d1ae13b0b06c109fb7c62bf86f3a9337bca630b5 | <ide><path>pkg/signal/signal_linux.go
<ide> import (
<ide> "syscall"
<ide> )
<ide>
<add>const (
<add> sigrtmin = 34
<add> sigrtmax = 64
<add>)
<add>
<ide> // SignalMap is a map of Linux signals.
<ide> var SignalMap = map[string]syscall.Signal{
<del> "ABRT": syscall.SIGABRT,
<del> "ALRM": syscall.SIGALRM,
<del> "B... | 1 |
Ruby | Ruby | fix indentation [ci skip] | 8df1e6333f8fb53ba7d044a1a06ff7e7366005ea | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def set_default_accessors!
<ide>
<ide> def database_gemfile_entry
<ide> return [] if options[:skip_active_record]
<del> GemfileEntry.version gem_for_database, nil,
<del> "Use #{options[:database]} as the databa... | 1 |
Ruby | Ruby | fix typo in test name | 5cdeb5ef7db1bab944ff0ee2d64c6c896758bac6 | <ide><path>activesupport/test/spec_type_test.rb
<ide> class SomeRandomModel < ActiveRecord::Base; end
<ide>
<ide> class SpecTypeTest < ActiveSupport::TestCase
<del>
<ide> def assert_support actual
<ide> assert_equal ActiveSupport::TestCase, actual
<ide> end
<ide> def assert_spec actual
<ide> assert_equal M... | 2 |
Javascript | Javascript | fix lgtm error | 5cb6d53903436d5259568d5ddd5ac929c92f94a3 | <ide><path>examples/js/loaders/AssimpLoader.js
<ide> THREE.AssimpLoader.prototype = {
<ide>
<ide> }
<ide>
<del> function aiColor4D() {
<del>
<del> this.r = 0;
<del> this.g = 0;
<del> this.b = 0;
<del> this.a = 0;
<del> this.toTHREE = function () {
<del>
<del> return new THREE.Color( this.r, this.g, th... | 2 |
Python | Python | fix debug message | 177c534254a52a3c5d6db176bc49701a030fb4f1 | <ide><path>glances/plugins/glances_cloud.py
<ide> def run(self):
<ide> logger.debug('cloud plugin - Connection to {} timed out'.format(r_url))
<ide> break
<ide> except Exception as e:
<del> logger.debug('cloud plugin - Can not connect to the AWS EC2 API {}'.for... | 1 |
Text | Text | add bullet for universal in list of examples | 3873c631204c923efd31929eba91a417c237db0e | <ide><path>README.md
<ide> It helps you write applications that behave consistently, run in different envir
<ide> You can use Redux together with [React](https://facebook.github.io/react/), or with any other view library.
<ide> It is tiny (2kB) and has no dependencies.
<ide>
<del>[
<ide> case T.unsafe(value)
<ide> when nil
<ide> @run_type
<del> when :immediate, :interval
<add> when :immediate, :interval, :cron
<ide> @run_type = value
<del> when :cron
<del> raise TypeError, "Ser... | 2 |
Ruby | Ruby | reword the docs for association_foreign_key | 2db4ec9a58f841e8f380d9b18f27b58bff31a339 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def belongs_to(association_id, options = {})
<ide> # <b>WARNING:</b> If you're overwriting the table name of either class, the +table_name+ method
<ide> # MUST be declared underneath any +has_and_belongs_to_many+ declaration in order to wor... | 1 |
Text | Text | fix markdown formatting | 0974b392effe990a3c21d01862d4a31a9ae799b9 | <ide><path>activesupport/CHANGELOG.md
<ide>
<ide> *Agis Anastasopoulos*
<ide>
<del>* `fast_xs` support has been removed. Use 'String#encode(xml: :attr)`.
<add>* `fast_xs` support has been removed. Use `String#encode(xml: :attr)`.
<ide>
<ide> * `ActiveSupport::Notifications::Instrumenter#instrument` shoul... | 1 |
PHP | PHP | fix docblock error reported by phpstan | db6e8303a68adc712663bd42c7e8d3e7466c748c | <ide><path>src/Validation/Validation.php
<ide> public static function naturalNumber($check, bool $allowZero = false): bool
<ide> * legal finite on this platform.
<ide> *
<ide> * @param mixed $check Value to check
<del> * @param int|float|null $lower Lower limit
<del> * @param int|float|null $uppe... | 1 |
Ruby | Ruby | require pg when this adapter is loaded | df9abfab6f213440d3c4dd75973a1ffa8a21b34b | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> require 'active_record/connection_adapters/abstract_adapter'
<ide> require 'active_support/core_ext/kernel/requires'
<ide> require 'active_support/core_ext/object/blank'
<add>require 'pg'
<ide>
<ide> module ActiveRecord
<ide> c... | 1 |
PHP | PHP | defer resolution of cache factory | b35afc7aa78f591aee364614660d406424d1e52e | <ide><path>src/Illuminate/Session/Middleware/StartSession.php
<ide> class StartSession
<ide> */
<ide> protected $manager;
<ide>
<add> /**
<add> * The callback that can resolve an instance of the cache factory.
<add> *
<add> * @var callable
<add> */
<add> protected $cacheFactoryResolver;
... | 2 |
Mixed | Javascript | forbid concurrent operations on dir handle | d3a8a23089af06bb047bf9bad7531fbfc70f6314 | <ide><path>doc/api/errors.md
<ide> An unknown Diffie-Hellman group name was given. See
<ide>
<ide> The [`fs.Dir`][] was previously closed.
<ide>
<add><a id="ERR_DIR_CONCURRENT_OPERATION"></a>
<add>### `ERR_DIR_CONCURRENT_OPERATION`
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>A synchronous read or close c... | 4 |
PHP | PHP | use class constants | 416a7029991e8731970fce949ad472b56260fe64 | <ide><path>tests/TestCase/Console/CommandRunnerTest.php
<ide> use Cake\Http\BaseApplication;
<ide> use Cake\TestSuite\TestCase;
<ide> use Cake\TestSuite\Stub\ConsoleOutput;
<add>use TestApp\Shell\SampleShell;
<ide>
<ide> /**
<ide> * Test case for the CommandCollection
<ide> public function testRunValidCommandWithAbor... | 1 |
Text | Text | add @joshgav to collaborators | b417087ca7268de5ec6da503f428ee2ddd38fdfd | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Yuval Brik** <yuval@brik.org.il>
<ide> * [joaocgreis](https://github.com/joaocgreis) -
<ide> **João Reis** <reis@janeasystems.com>
<add>* [joshgav](https://github.com/joshgav) -
<add>**Josh Gavant** <josh... | 1 |
Text | Text | add changelog entry for | 850e6aaad9c276d1b84708448221eb3becf0b917 | <ide><path>activerecord/CHANGELOG.md
<add>* SQLite3: Implement `add_foreign_key` and `remove_foreign_key`.
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Deprecate using class level querying methods if the receiver scope
<ide> regarded as leaked. Use `klass.unscoped` to avoid the leaking scope.
<ide> | 1 |
Javascript | Javascript | add webgl2 option to webglrenderer | 949623b530c590223ab35bb83263c35ae4d7c0bf | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide> _antialias = parameters.antialias !== undefined ? parameters.antialias : false,
<ide> _premultipliedAlpha = parameters.premultipliedAlpha !== undefined ? parameters.premultipliedAlpha : true,
<ide> _preserveDrawingBuffer ... | 1 |
PHP | PHP | improve docblocks of assoc arrays | ddac51709eb89344373c83c67aacf964e673e924 | <ide><path>src/Form/Form.php
<ide> public function setErrors(array $errors)
<ide> * Defaults to `true`/`'default'`.
<ide> *
<ide> * @param array $data Form data.
<del> * @param array $options List of options.
<add> * @param array<string, mixed> $options List of options.
<ide> * @return boo... | 7 |
Java | Java | fix caching tests | c90ca15addf048ce1ea17b1149052d97a7655ea7 | <ide><path>spring-context/src/test/java/org/springframework/cache/config/AbstractAnnotationTests.java
<ide>
<ide> package org.springframework.cache.config;
<ide>
<add>import java.io.IOException;
<ide> import java.util.Collection;
<ide> import java.util.UUID;
<ide>
<ide> public void testCheckedThrowable(CacheableServ... | 4 |
Ruby | Ruby | remove xcode dependence from env.rb | a0763dfc2c2e95a19c8e1789ad8f4d25710f3029 | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def setup_build_environment
<ide> when :gcc then self.gcc
<ide> end
<ide>
<add> # we must have a working compiler!
<add> ENV['CC'] = '/usr/bin/cc' unless File.exist? ENV['CC']
<add> ENV['CXX'] = '/usr/bin/c++' unless File.exist? ENV['CXX']
<add>
<ide... | 1 |
Javascript | Javascript | add banner to all dist/ | 4f732e8caabce9c9a48bf95d8a2e9869d5507aeb | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> linebreak: false
<ide> },
<ide> files: {
<del> src: ['dist/*.min.js']
<add> src: ['dist/*.js']
<ide> }
<ide> }
<ide> }, | 1 |
Mixed | Javascript | add support for custom completions | 9fbe456db15a63409916c207cc1157321a307409 | <ide><path>doc/api/repl.md
<ide> added: v0.1.91
<ide> `undefined`. Defaults to `false`.
<ide> * `writer` {Function} The function to invoke to format the output of each
<ide> command before writing to `output`. Defaults to [`util.inspect()`][].
<add> * `completer` {Function} An optional function used for cu... | 3 |
Python | Python | fix autoencoder serialization | 78feed7fa98f2f7fc03e3e21b69b7b2997f0cef2 | <ide><path>keras/utils/layer_utils.py
<ide> import copy
<ide>
<ide> from ..layers.advanced_activations import LeakyReLU, PReLU
<del>from ..layers.core import Dense, Merge, Dropout, Activation, Reshape, Flatten, RepeatVector, Layer
<add>from ..layers.core import Dense, Merge, Dropout, Activation, Reshape, Flatten, Repe... | 2 |
Text | Text | update cjs-module-lexer repo link | 2e2a6fecd9b1aaffcb932fcc415439f359c84fdd | <ide><path>doc/api/esm.md
<ide> success!
<ide> [`process.dlopen`]: process.md#processdlopenmodule-filename-flags
<ide> [`string`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String
<ide> [`util.TextDecoder`]: util.md#class-utiltextdecoder
<del>[cjs-module-lexer]: https://github.com... | 1 |
Ruby | Ruby | add alias `r` for rails runner | bfff5eac774df495fbf9f39a792b714788ea54d8 | <ide><path>railties/lib/rails/commands.rb
<ide> "g" => "generate",
<ide> "c" => "console",
<ide> "s" => "server",
<del> "db" => "dbconsole"
<add> "db" => "dbconsole",
<add> "r" => "runner"
<ide> }
<ide>
<ide> command = ARGV.shift | 1 |
Ruby | Ruby | remove identity map from benchmark script | ca75091fc72224a5f46f95564578a20b88543458 | <ide><path>activerecord/examples/performance.rb
<ide> def self.email
<ide> )
<ide> end
<ide>
<del>ActiveRecord::IdentityMap.enabled = true unless ENV['IM'] == "disabled"
<del>
<del>def clear_identity_map!
<del> ActiveRecord::IdentityMap.clear
<del>end
<del>
<ide> require 'benchmark'
<ide>
<ide> Benchmark.bm(46) do... | 1 |
Javascript | Javascript | simplify `devsettings` implementation | 70cd569e7e4cceac81023eae4ea5089cff2f9b59 | <ide><path>Libraries/Utilities/DevSettings.js
<ide> * This source code is licensed under the MIT license found in the
<ide> * LICENSE file in the root directory of this source tree.
<ide> *
<del> * @format
<ide> * @flow strict-local
<add> * @format
<ide> */
<ide>
<ide> import NativeDevSettings from '../NativeModu... | 1 |
Javascript | Javascript | remove hasownproperty usage | 105d0731d725435188aaf76af55953ab9b68da4f | <ide><path>threejs/resources/webgl-debug-helper.js
<ide> // Override the getError function with one that returns our saved results.
<ide> if (wrapper.getError) {
<ide> wrapper.getError = function() {
<del> for (const err in glErrorShadow) {
<del> if (glErrorShadow.hasOwnProperty(err)) {
<d... | 1 |
Python | Python | add support for gradient checkpointing | 4c9e0f029e55d9f22d1c119d4be018a3e552b0a0 | <ide><path>src/transformers/models/bert_generation/modeling_bert_generation.py
<ide> class BertGenerationPreTrainedModel(PreTrainedModel):
<ide>
<ide> config_class = BertGenerationConfig
<ide> base_model_prefix = "bert"
<add> supports_gradient_checkpointing = True
<ide> _keys_to_ignore_on_load_missing =... | 3 |
Python | Python | update spanish tokenizer | 1d64527727795109cd3510fe3788fd3e5857b4ce | <ide><path>spacy/es/tokenizer_exceptions.py
<ide> from __future__ import unicode_literals
<ide>
<ide> from ..symbols import *
<del>from ..language_data import PRON_LEMMA
<add>from ..language_data import PRON_LEMMA, DET_LEMMA
<ide>
<ide>
<ide> TOKENIZER_EXCEPTIONS = {
<del> "accidentarse": [
<del> {ORTH: "a... | 1 |
Javascript | Javascript | convert the secondary toolbar to es6 syntax | 67049602c57fc1ce450097d1d5a6d9590276e3ae | <ide><path>web/secondary_toolbar.js
<ide> import { mozL10n, SCROLLBAR_PADDING } from './ui_utils';
<ide> * the document properties dialog.
<ide> */
<ide>
<del>/**
<del> * @class
<del> */
<del>var SecondaryToolbar = (function SecondaryToolbarClosure() {
<add>class SecondaryToolbar {
<ide> /**
<del> * @construct... | 1 |
Javascript | Javascript | use json.stringify to cast console output | 3f205c5060c84c3bb09b68a587838b3c6fd62f08 | <ide><path>client/src/client/workers/test-evaluator.js
<ide> const oldLog = self.console.log.bind(self.console);
<ide> self.console.log = function proxyConsole(...args) {
<ide> self.postMessage({
<ide> type: 'LOG',
<del> data: args.map(log => JSON.stringify(log)).join(' ')
<add> data: args.map(arg => JSON.s... | 2 |
Python | Python | remove certifi test | 5cf1f8fc74f58d84e6fa81eabedbaf652c5ba2b2 | <ide><path>libcloud/test/test_httplib_ssl.py
<ide> def test_connect_throws_friendly_error_message_on_ssl_wrap_connection_reset_by_p
<ide> self.assertEqual(e.errno, 105)
<ide> self.assertTrue('Some random error' in str(e))
<ide>
<del> def test_certifi_ca_bundle_in_search_path(self):
<del> mock... | 1 |
Text | Text | add docs about how to use remote browser in test | 22ca875f9c80a3d648442b4fc30a0cf44bf6be00 | <ide><path>guides/source/testing.md
<ide> class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
<ide> end
<ide> ```
<ide>
<add>If you want to use a remote browser, e.g.
<add>[Headless Chrome in Docker](https://github.com/SeleniumHQ/docker-selenium),
<add>you have to add remote `url` through `options`.
<add>... | 1 |
Text | Text | add 3.6 release to index | b884bdd39129070aca47233dc70ad7556cf764b6 | <ide><path>docs/index.md
<ide> General guides to using REST framework.
<ide> * [3.3 Announcement][3.3-announcement]
<ide> * [3.4 Announcement][3.4-announcement]
<ide> * [3.5 Announcement][3.5-announcement]
<add>* [3.6 Announcement][3.6-announcement]
<ide> * [Kickstarter Announcement][kickstarter-announcement]
<ide> * [... | 1 |
Go | Go | fix empty-lines (revive) | 05042ce4723297f1fceabd2d7b928ff543537dfb | <ide><path>daemon/images/image_delete.go
<ide> func (i *ImageService) ImageDelete(ctx context.Context, imageRef string, force,
<ide> records = append(records, untaggedRecord)
<ide> } else {
<ide> remainingRefs = append(remainingRefs, repoRef)
<del>
<ide> }
<ide> }
<ide> repoRefs = remainin... | 5 |
Javascript | Javascript | replace string concatenation with template | a0aff57c5a5e46a2f93fc5bce50191993f98c673 | <ide><path>lib/_http_client.js
<ide> function ClientRequest(options, cb) {
<ide>
<ide> var path;
<ide> if (options.path) {
<del> path = '' + options.path;
<add> path = String(options.path);
<ide> var invalidPath;
<ide> if (path.length <= 39) { // Determined experimentally in V8 5.4
<ide> invali... | 1 |
Python | Python | make matrix_power again work for object arrays | b080c5b7a7cf1c0da91e6c0ecb1fdd490b45ce5c | <ide><path>numpy/linalg/linalg.py
<ide> def matrix_power(a, n):
<ide> of the same shape as M is returned. If ``n < 0``, the inverse
<ide> is computed and then raised to the ``abs(n)``.
<ide>
<add> .. note:: Stacks of object matrices are not currently supported.
<add>
<ide> Parameters
<ide> ---------... | 2 |
Text | Text | expand type families and bash touch documentation | 1567a16b2f112dc73130527b429b71cadf73fbeb | <ide><path>guide/english/bash/bash-touch/index.md
<ide> title: Bash touch
<ide> ## Bash command: touch
<ide>
<ide> **Change timestamps of files.**
<add>**Quickly create new files.**
<ide>
<ide> ```
<ide> touch [options] filename
<ide> ```
<ide>
<del>Creates empty file if not exists or modify times of existing files ... | 2 |
Go | Go | normalize comment formatting | 2deeb6ad9640761bf017b522b0fa4ae56fae8a1f | <ide><path>builder/remotecontext/remote_test.go
<ide> import (
<ide> "gotest.tools/fs"
<ide> )
<ide>
<del>var binaryContext = []byte{0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00} //xz magic
<add>var binaryContext = []byte{0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00} // xz magic
<ide>
<ide> func TestSelectAcceptableMIME(t *testing.T) {... | 1 |
Javascript | Javascript | remove obsolete <<content>> transclusion | bd530e225750e9b30b6300fc3d7447a5f1071667 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide) {
<ide> Suffix = 'Directive',
<ide> COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,
<ide> CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/,
<del> CONTENT_REGEXP = /\<\<content\>\>/i,
<ide> H... | 2 |
Ruby | Ruby | log every sql statement, even when they error | 98e001641ff0f859349cd60d270fec972edc16de | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def exec_no_cache(sql, name, binds)
<ide> end
<ide>
<ide> def exec_cache(sql, name, binds)
<add> stmt_key = prepare_statement(sql)
<add>
<ide> log(sql, name, binds) do
<del> begin
<de... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.