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 |
|---|---|---|---|---|---|
Ruby | Ruby | add fetch to cookiejar | 789df3be3eaad5861647f22b02d362fd36a40657 | <ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb
<ide> def [](name)
<ide> @cookies[name.to_s]
<ide> end
<ide>
<add> def fetch(name, *args, &block)
<add> @cookies.fetch(name.to_s, *args, &block)
<add> end
<add>
<ide> def key?(name)
<ide> @cookies.key?(name.to_... | 2 |
Text | Text | update index.md comments | ca0d64ee3e629b16de632404447f8f85ca1177b9 | <ide><path>guide/spanish/csharp/linq/index.md
<ide> ---
<ide> title: LINQ
<ide> localeTitle: LINQ
<del>---
<ide># LINQ (Language Integrated Query)
<del>
<del>LINQ (Language Integrated Query) es un modelo y metodología de programación de Microsoft que esencialmente agrega capacidades de consulta formales a los lenguajes... | 1 |
Python | Python | expose fromiter's docstring | 7dc0cb19610c4ce559b32617eace1091cddd8ea4 | <ide><path>numpy/add_newdocs.py
<ide>
<ide> """)
<ide>
<del>add_newdoc('numpy.core.multiarray','fromstring',
<add>add_newdoc('numpy.core.multiarray','fromiter',
<ide> """fromiter(iterable, dtype, count=-1)
<ide>
<ide> Return a new 1d array initialized from iterable. If count is | 1 |
Javascript | Javascript | add debug log for err_unescaped_characters | bbbf97b6dae63697371082475dc8651a6a220336 | <ide><path>lib/_http_client.js
<ide> function ClientRequest(input, options, cb) {
<ide>
<ide> if (options.path) {
<ide> const path = String(options.path);
<del> if (RegExpPrototypeExec(INVALID_PATH_REGEX, path) !== null)
<add> if (RegExpPrototypeExec(INVALID_PATH_REGEX, path) !== null) {
<add> debug('... | 1 |
Javascript | Javascript | write buffers when chunked to embrace writev | df8a4f8f07cf274c6c9fae50e175879d6a1dc139 | <ide><path>lib/_http_outgoing.js
<ide> OutgoingMessage.prototype.write = function(chunk, encoding) {
<ide> } else {
<ide> // buffer, or a non-toString-friendly encoding
<ide> len = chunk.length;
<del> this._send(len.toString(16) + CRLF);
<del> this._send(chunk, encoding);
<del> ret = this... | 1 |
Python | Python | fix author search in announce.py | fcdb1fcd8cd26c112442db02996e074cc355e88f | <ide><path>tools/announce.py
<ide> """
<ide>
<ide> def get_authors(revision_range):
<del> pat = u'.*\\t(.*)\\n'
<add> pat = u'^.*\\t(.*)$'
<ide> lst_release, cur_release = [r.strip() for r in revision_range.split('..')]
<ide>
<ide> # authors, in current release and previous to current release.
<del> ... | 1 |
Go | Go | add remount for bind mounts in ro | 8d19b2caa01535202c2fa82913ad99ec2594032a | <ide><path>container.go
<ide> func (container *Container) Start() (err error) {
<ide>
<ide> for r, v := range container.Volumes {
<ide> mountAs := "ro"
<del> if container.VolumesRW[v] {
<add> if container.VolumesRW[r] {
<ide> mountAs = "rw"
<ide> }
<ide>
<ide><path>mount/mount_test.go
<ide> func TestMounted... | 3 |
Python | Python | remove unnecessary imports | 16e4679834e1bf3e805703b197d377e35504fa09 | <ide><path>tutorials/image/cifar10/cifar10_eval.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<del>import argparse
<ide> from datetime import datetime
<ide> import math
<ide> import time
<ide><path>tutorials/image/cifar10/cifar10_multi_gpu_train.py
<ide> from __future__ imp... | 3 |
Ruby | Ruby | remove bad test | 47aae82d33a0dc76e5f759658480b4fa4fe0bd04 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_head_ignores_revisions
<ide> assert_equal PkgVersion.parse('HEAD'), f.pkg_version
<ide> end
<ide>
<del> def test_raises_when_non_formula_constant_exists
<del> const = :SomeConst
<del> Object.const_set(const, Module.new)
<del> begin
<del> ... | 1 |
Java | Java | remove log when turbomodule cannot be created | 8a8c15f9fa96ee98f366c341f3223c4bc370e237 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/TurboModuleManager.java
<ide> import androidx.annotation.GuardedBy;
<ide> import androidx.annotation.NonNull;
<ide> import androidx.annotation.Nullable;
<del>import com.facebook.common.logging.FLog;
<ide> import com.facebook.infer.annotation.Asse... | 1 |
PHP | PHP | add component tests | 1639f12de6dcea56681ea4fbcf4e72820f345a78 | <ide><path>tests/View/ViewComponentTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\View;
<add>
<add>use Illuminate\View\Component;
<add>use PHPUnit\Framework\TestCase;
<add>
<add>class ViewFactoryTest extends TestCase
<add>{
<add> public function testAttributeRetrieval()
<add> {
<add> $component ... | 1 |
Text | Text | explain backport labels | f743054ef4542d00a67b8173e3514387be06ca6b | <ide><path>doc/guides/backporting-to-release-lines.md
<ide> require that commits mature in the Current release for at least 2 weeks before
<ide> they can be landed in an LTS staging branch. Only after "maturation" will those
<ide> commits be cherry-picked or backported.
<ide>
<add>## How to label backport issues and P... | 1 |
Ruby | Ruby | improve taggings api by introducing a null object | 8af78700d244c9e2e6403ce704326ef45ecbe288 | <ide><path>actionpack/lib/action_controller/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide>
<ide> ActiveSupport.on_load(:active_record) do
<ide> ActiveRecord::QueryLogs.taggings.merge!(
<del> controller: -> { context[:controller]&.controller_name },
<del> ... | 3 |
Python | Python | fix issue from previous merge | 92aececa37a158d9075010a80b159882240309dc | <ide><path>glances/plugins/glances_help.py
<ide> def generate_view_data(self):
<ide> self.view_data['psutil_version'] = _(" with PSutil {0}").format(psutil_version)
<ide>
<ide> try:
<del> self.view_data['configuration_file'] = '{0}: {1}'.format(_("Configuration file"), self.config.loaded_con... | 1 |
Java | Java | remove unused imports | f254680f291334ced941d539ceab7c90f5954371 | <ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/AbstractEncoder.java
<ide> import java.util.List;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.Encoder;
<ide> import org.springframework.util.MimeType;
<ide>
<ide> /**
<ide><path>sprin... | 21 |
Ruby | Ruby | use string#scrub when available to tidy bytes | ab195841ddc7302ca6e6fc4a5962bc5ab3b8c09b | <ide><path>activesupport/lib/active_support/multibyte/unicode.rb
<ide> def compose(codepoints)
<ide> codepoints
<ide> end
<ide>
<del> # Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent
<del> # resulting in a valid UTF-8 string.
<del> #
<del> # Passing +true+ will... | 1 |
PHP | PHP | fix response code | 23721ac05acfd1dbb169d67b71ec63ea6318258e | <ide><path>src/Illuminate/Foundation/Auth/ThrottlesLogins.php
<ide> protected function sendLockoutResponse(Request $request)
<ide>
<ide> throw ValidationException::withMessages([
<ide> $this->username() => [Lang::get('auth.throttle', ['seconds' => $seconds])],
<del> ])->status(423);
<add> ... | 1 |
Ruby | Ruby | remove some old/unneeded checks | c3a46bc57046a11e3f95dffc11ac57842c887f38 | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> def development_tools_checks
<ide> check_xcode_license_approved
<ide> check_xcode_up_to_date
<ide> check_clt_up_to_date
<del> check_for_other_package_managers
<ide> ].freeze
<ide> end
<ide>
<ide> def chec... | 2 |
Go | Go | show the right image name/id in job log | 663d9130118548c648c4463bae088fd983099e08 | <ide><path>daemon/container.go
<ide> func (container *Container) LogEvent(action string) {
<ide> d.EventsService.Log(
<ide> action,
<ide> container.ID,
<del> d.Repositories().ImageName(container.ImageID),
<add> container.Config.Image,
<ide> )
<ide> }
<ide> | 1 |
Text | Text | update documentation for displacy style kwargs | 709d6d91148350a72b8ae2d8e0f077df61aa2c98 | <ide><path>website/docs/api/top-level.md
<ide> browser. Will run a simple web server.
<ide> | Name | Description |
<ide> | --------- | ------------------------------... | 1 |
Go | Go | suppress false positive on hardcoded creds (gosec) | b88f4e26046994a15af9bcc28d3a0a91492908b9 | <ide><path>daemon/logger/awslogs/cloudwatchlogs.go
<ide> const (
<ide> tagKey = "tag"
<ide> datetimeFormatKey = "awslogs-datetime-format"
<ide> multilinePatternKey = "awslogs-multiline-pattern"
<del> credentialsEndpointKey = "awslogs-credentials-endpoint"
<add> credentialsEndpointKey = "awslo... | 1 |
Python | Python | use conditional xfail | 586cdc982615a84df8cd730102dfb2cdbfce4849 | <ide><path>numpy/core/tests/test_umath.py
<ide> )
<ide>
<ide> def get_glibc_version():
<del> ver = 0.0
<add> ver = '0.0'
<ide> try:
<del> ver = float(os.confstr('CS_GNU_LIBC_VERSION').rsplit(' ')[1])
<add> ver = os.confstr('CS_GNU_LIBC_VERSION').rsplit(' ')[1]
<ide> except Exception as ... | 1 |
Go | Go | remove unused field kernelversion | 7e4d00840392a80c0946291848c4caa18a5ec108 | <ide><path>runtime.go
<ide> type Runtime struct {
<ide> repositories *TagStore
<ide> idIndex *utils.TruncIndex
<ide> capabilities *Capabilities
<del> kernelVersion *utils.KernelVersionInfo
<ide> autoRestart bool
<ide> volumes *Graph
<ide> srv *Server
<ide> func NewRuntime(flGraphP... | 1 |
Text | Text | fix wikipedia link | 7ca3764eae79f6a49802ebdf5ef6d1a668c73ae6 | <ide><path>docs/IntegrationWithExistingApps.md
<ide> $ sudo gem install cocoapods
<ide>
<ide> <block class="objc" />
<ide>
<del>Assume the [app for integration](https://github.com/JoelMarcey/iOS-2048) is a [2048](https://en.wikipedia.org/wiki/2048_(video_game) game. Here is what the main menu of the native applicatio... | 1 |
Python | Python | remove unused assignment in create_node test | 202a1f988b2aaa94538572a20ba52ff7ed799891 | <ide><path>test/test_linode.py
<ide> def test_destroy_node(self):
<ide>
<ide> def test_create_node(self):
<ide> # Will exception on failure
<del> node = self.driver.create_node(name="Test",
<del> location=self.driver.list_locations()[0],
<del> size=sel... | 1 |
Java | Java | add simple url mapping and handling | bc7a5acd509f1d66039bac742a71d9b1b8474127 | <ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/DispatcherHandler.java
<ide> import java.util.List;
<ide>
<ide> import org.reactivestreams.Publisher;
<del>import reactor.core.reactivestreams.PublisherFactory;
<del>import reactor.core.reactivestreams.SubscriberWithContext;
<ide> i... | 16 |
PHP | PHP | add test for cache increment | c5166e83d1b1f9ce1b9ea04093b329388ed3404a | <ide><path>tests/Cache/CacheArrayStoreTest.php
<ide> public function testValuesCanBeIncremented()
<ide> $result = $store->increment('foo');
<ide> $this->assertEquals(2, $result);
<ide> $this->assertEquals(2, $store->get('foo'));
<add>
<add> $result = $store->increment('foo', 2);
<add> ... | 2 |
Java | Java | update exception handling | 166ca7a5a3254c6d63551ad286a9e55375276e85 | <ide><path>spring-websocket/src/main/java/org/springframework/sockjs/AbstractSockJsSession.java
<ide> protected void updateLastActiveTime() {
<ide> this.timeLastActive = System.currentTimeMillis();
<ide> }
<ide>
<del> public void delegateConnectionEstablished() {
<add> public void delegateConnectionEstablished() th... | 24 |
PHP | PHP | fix incorrect expiry of sessions | c96e364cbb6ec8dd72dd220836a07ed104d2d50a | <ide><path>lib/Cake/Model/Datasource/Session/DatabaseSession.php
<ide> public function destroy($id) {
<ide> public function gc($expires = null) {
<ide> if (!$expires) {
<ide> $expires = time();
<add> } else {
<add> $expires = time() - $expires;
<ide> }
<ide> return $this->_model->deleteAll(array($this->_mo... | 1 |
Text | Text | fix onreadable reentry after unshift called | a72a331536bfe50cce5f6f78bd99bfab5bd7e156 | <ide><path>doc/api/stream.md
<ide> function parseHeader(stream, callback) {
<ide> header += split.shift();
<ide> const remaining = split.join('\n\n');
<ide> const buf = Buffer.from(remaining, 'utf8');
<del> if (buf.length)
<del> stream.unshift(buf);
<ide> stream.removeLis... | 1 |
Javascript | Javascript | improve stability of profilingplugin test | fd0cb346cd0195ecf13654ad4d478e24160ccf11 | <ide><path>test/ProfilingPlugin.test.js
<ide> const webpack = require("../");
<ide> const rimraf = require("rimraf");
<ide>
<ide> describe("Profiling Plugin", function () {
<del> jest.setTimeout(30000);
<add> jest.setTimeout(120000);
<ide>
<ide> it("should handle output path with folder creation", done => {
<ide> ... | 1 |
Text | Text | add argument information for socket.destroy() | 92adbe4793489b3207a615cdc442681a054302b0 | <ide><path>doc/api/net.md
<ide> If `true` - [`socket.connect(options[, connectListener])`][`socket.connect(optio
<ide> haven't yet finished. Will be set to `false` before emitting `connect` event
<ide> and/or calling [`socket.connect(options[, connectListener])`][`socket.connect(options, connectListener)`]'s callback.
... | 1 |
Python | Python | move bert_models.py into the bert folder | 4a086ad57f375dded482c9969bf5c8984c1db2e9 | <add><path>official/nlp/bert/bert_models.py
<del><path>official/nlp/bert_models.py
<ide> from official.nlp.modeling.networks import bert_span_labeler
<ide>
<ide>
<del>def gather_indexes(sequence_tensor, positions):
<del> """Gathers the vectors at the specific positions.
<del>
<del> Args:
<del> sequence_tensor:... | 5 |
Go | Go | add support for configuring tls | 50098e5c7b17b553efc36feeca11367d5034f16d | <ide><path>libnetwork/config/config.go
<ide> import (
<ide> "github.com/BurntSushi/toml"
<ide> log "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/pkg/discovery"
<add> "github.com/docker/docker/pkg/tlsconfig"
<ide> "github.com/docker/libkv/store"
<ide> "github.com/docker/libnetwork/datastore"
<ide> "... | 2 |
Ruby | Ruby | strip more unicode crap from xml | 7ed97b14fd0ea9dd92e561c75dee43a9a6d5c571 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def run
<ide> failure = testcase.add_element 'failure' if step.failed?
<ide> if step.has_output?
<ide> # Remove invalid XML CData characters from step output.
<del> output = REXML::CData.new step.output.delete("\000\f\e")
<add> ... | 1 |
Python | Python | add type annotations for segformer classes | 62b05b6917b554da14d940386981c9a767e0071c | <ide><path>src/transformers/models/segformer/modeling_segformer.py
<ide>
<ide> import collections
<ide> import math
<add>from typing import Optional, Tuple, Union
<ide>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> def __init__(self, config):
<ide>
<ide> def forward(
<ide> self,
<del> ... | 1 |
PHP | PHP | fix inflector for species singular | 533885de798c46b7ea1b7b0401157dd01364fd76 | <ide><path>src/Utility/Inflector.php
<ide> class Inflector
<ide> '/(x|ch|ss|sh)es$/i' => '\1',
<ide> '/(m)ovies$/i' => '\1\2ovie',
<ide> '/(s)eries$/i' => '\1\2eries',
<add> '/(s)pecies$/i' => '\1\2pecies',
<ide> '/([^aeiouy]|qu)ies$/i' => '\1y',
<ide> '/(tive)s$/i' => '\1... | 2 |
Text | Text | fix minor docs error | 143f438e6e7a4c8205af59ba6e9f52cb450f1cce | <ide><path>docs/sources/index.md
<ide> regular, unsigned image.
<ide> *Other improvements & changes*
<ide>
<ide> We've added a new security options flag that lets you set SELinux and AppArmor
<del>labels and profiles. This means you'll longer have to use `docker run
<del>--privileged on kernels that support SE Linux o... | 1 |
PHP | PHP | remove use of deprecated constants | 525efcb8087ca46c24d9bdba2a1043d676ca2bc6 | <ide><path>lib/Cake/Test/Case/View/Helper/JsHelperTest.php
<ide> public function testWriteBufferAndXhr() {
<ide> * @return void
<ide> */
<ide> public function testWriteScriptsInFile() {
<del> $this->skipIf(!is_writable(JS), 'webroot/js is not Writable, script caching test has been skipped.');
<add> $this->skipIf(!... | 2 |
Javascript | Javascript | fix arguments order in `assert.strictequal` | f351c5dd080582278e75a930e556bda674b0338f | <ide><path>test/parallel/test-repl-envvars.js
<ide> function run(test) {
<ide> REPL.createInternalRepl(env, opts, function(err, repl) {
<ide> assert.ifError(err);
<ide>
<del> assert.strictEqual(expected.terminal, repl.terminal,
<add> assert.strictEqual(repl.terminal, expected.terminal,
<ide> ... | 1 |
PHP | PHP | add integration test for marshaller | ba1c347d9a7740bf17490d4745a0ff4142eac0f3 | <ide><path>tests/TestCase/ORM/MarshallerTest.php
<ide> public function testOneWithDatetimeField() {
<ide> $this->assertEquals($data['created'], $result->created->getTimestamp());
<ide> }
<ide>
<add>/**
<add> * Ensure that marshalling casts reasonably.
<add> *
<add> * @return void
<add> */
<add> public function test... | 1 |
Ruby | Ruby | add test case from ticket | caf546b675ce4771e5ad3349af41c74265b70feb | <ide><path>actionpack/test/controller/routing_test.rb
<ide> def test_named_routes_are_never_relative_to_modules
<ide> url = set.generate({:use_route => :family_connection, :controller => "connection"}, {:controller => 'connection/manage'})
<ide> assert_equal "/connection", url
<ide> end
<add>
<add> def tes... | 1 |
Javascript | Javascript | increase timeout for tests | f4d43024c3028ad2b7147a0356db8cb9f22034a3 | <ide><path>test/ConfigTestCases.test.js
<ide> describe("ConfigTestCases", function() {
<ide> category.tests.forEach(function(testName) {
<ide> var suite = describe(testName, function() {});
<ide> it(testName + " should compile", function(done) {
<del> this.timeout(10000);
<add> this.timeout(30000);
<... | 1 |
Python | Python | fix timezone warnings if use_tz=true | 3f7113f1d976a9bd668afd8114269e8c594dd842 | <ide><path>django/db/migrations/recorder.py
<del>import datetime
<ide> from django.db import models
<ide> from django.db.models.loading import BaseAppCache
<add>from django.utils.timezone import now
<ide>
<ide>
<ide> class MigrationRecorder(object):
<ide> class MigrationRecorder(object):
<ide> class Migration(mod... | 1 |
Text | Text | add instructions for pre-bundled js in embeddedapp | 3a6e4305ca9c32e5f0d9002306551bb47ac6d4aa | <ide><path>docs/EmbeddedApp.md
<ide> Ready for the most interesting part? Now we shall create the `RCTRootView`, wher
<ide> In `ReactView.m`, we need to first initiate `RCTRootView` with the URI of your `index.ios.bundle`. `index.ios.bundle` will be created by packager and served by React Native server, which will be d... | 1 |
Java | Java | introduce cloning mechanism for react shadow node | ad06403c3e693b804193ed029893a4853e8bd8ba | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java
<ide> */
<ide> boolean isYogaLeafNode();
<ide>
<add> /**
<add> * @return a mutable copy of the {@link ReactShadowNode}
<add> */
<add> T mutableCopy();
<add>
<ide> String getViewClass();
<ide>
<ide> boolean hasUpdate... | 3 |
Python | Python | fix a potential variable misuse bug | 4d0b23eccc23718e420dfd29b2023ecf90300036 | <ide><path>numpy/distutils/misc_util.py
<ide> def colour_text(s, fg=None, bg=None, bold=False):
<ide> fgcode = 30 + _colour_codes.get(fg.lower(), 0)
<ide> seq.append(str(fgcode))
<ide> if bg:
<del> bgcode = 40 + _colour_codes.get(fg.lower(), 7)
<add> bgcode = 40 + _... | 1 |
Text | Text | create model card for tblard/allocine | ccd26c2862efc41d4ffb86c0bcc4f0296a79e250 | <ide><path>model_cards/tblard/tf-allocine/README.md
<add>---
<add>language: french
<add>---
<add>
<add># tf-allociné
<add>
<add>A french sentiment analysis model, based on [CamemBERT](https://camembert-model.fr/), and finetuned on a large-scale dataset scraped from [Allociné.fr](http://www.allocine.fr/) user reviews.
<... | 1 |
Javascript | Javascript | reduce the abort timeout for simple focus testing | 928c580a1a5fb328604ee94e33f440a326754ae1 | <ide><path>test/data/testrunner.js
<ide> var oldCacheLength = 0,
<ide>
<ide> // Max time for stop() and asyncTest() until it aborts test
<ide> // and start()'s the next test.
<del>QUnit.config.testTimeout = 12e4; // 2 minutes
<add>QUnit.config.testTimeout = 60e3; // 1 minute
<ide>
<ide> // Enforce an "expect" argumen... | 2 |
PHP | PHP | filter public properties | fa36872d817112c72d96ad5d5f45c901d262fe5f | <ide><path>src/Illuminate/Broadcasting/BroadcastEvent.php
<ide>
<ide> use Pusher;
<ide> use ReflectionClass;
<add>use ReflectionProperty;
<ide> use Illuminate\Contracts\Queue\Job;
<ide> use Illuminate\Contracts\Support\Arrayable;
<ide> use Illuminate\Contracts\Broadcasting\Broadcaster;
<ide> protected function getPayl... | 1 |
PHP | PHP | update doc block | 9ed095dc2d0c254e6558b514ea285b767407034b | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function save(array $options = [])
<ide> }
<ide>
<ide> /**
<del> * Save the model to the database using transaction.
<add> * Save the model to the database within a transaction.
<ide> *
<ide> * @param array $options
<ide> ... | 1 |
Python | Python | fix indentation weirdness in gpt-2 example | 14b1f719f4c9860a3df8663e7e4ecac25182034a | <ide><path>examples/run_gpt2.py
<ide> def run_model():
<ide> print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
<ide> print(text)
<ide> print("=" * 80)
<del> if args.unconditional:
<del> generated = 0
<del> for _ in range(args.nsampl... | 1 |
Text | Text | fix dead links in readme for rn-tester | 1c21a112a81bd58356fefee7556f425ab47446c2 | <ide><path>ReactAndroid/README.md
<ide> # Building React Native for Android
<ide>
<del>See the [docs on the website](https://reactnative.dev/docs/building-from-source.html#android).
<add>See the [docs on the wiki](https://github.com/facebook/react-native/wiki/Building-from-source#prerequisites).
<ide>
<ide> # Running... | 2 |
PHP | PHP | add support for closures to file cache driver | 715bed748d7a9781a735b609ce9f6ff227709220 | <ide><path>system/cache/driver/file.php
<ide> public function get($key, $default = null)
<ide>
<ide> if ( ! file_exists(APP_PATH.'storage/cache/'.$key))
<ide> {
<del> return $default;
<add> return is_callable($default) ? call_user_func($default) : $default;
<ide> }
<ide>
<ide> $cache = file_get_contents(A... | 1 |
Text | Text | move stefanmb to collaborator emeriti list | be6b1a2b3a5e01491b829ac9a5ed7602807af2de | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Steven R Loomis** <srloomis@us.ibm.com>
<ide> * [starkwang](https://github.com/starkwang) -
<ide> **Weijia Wang** <starkwang@126.com>
<del>* [stefanmb](https://github.com/stefanmb) -
<del>**Stefan Budeanu** &... | 1 |
Javascript | Javascript | remove unneeded variable | 1bea469db0bdedd99fcc7257aa41f794c3fa4093 | <ide><path>src/backend/renderer.js
<ide> export function attach(
<ide> let pendingOperationsQueue: Array<Uint32Array> | null = [];
<ide> let pendingStringTable: Map<string, number> = new Map();
<ide> let pendingStringTableLength = 0;
<del> let pendingStringTableCounter = 0;
<ide>
<ide> function pushOperation(... | 1 |
Ruby | Ruby | use block instead passing as argument | 9aaa3111b0b795acdb9b7035bbaa50565c7284aa | <ide><path>railties/test/application/loading_test.rb
<ide> class Post < ActiveRecord::Base
<ide> test "models without table do not panic on scope definitions when loaded" do
<ide> app_file "app/models/user.rb", <<-MODEL
<ide> class User < ActiveRecord::Base
<del> default_scope where(published: true)
... | 1 |
Javascript | Javascript | use faster variant for rss in test-vm-memleak.js | 2ceb44120b0744793081b62ede7026365b1fb2f2 | <ide><path>test/pummel/test-vm-memleak.js
<ide> const interval = setInterval(function() {
<ide> } catch {
<ide> }
<ide>
<del> const rss = process.memoryUsage().rss;
<add> const rss = process.memoryUsage.rss();
<ide> assert.ok(rss < 64 * 1024 * 1024,
<ide> `memory usage: ${Math.round(rss / (1024 * 1... | 1 |
PHP | PHP | add deprecated tag | 61cdeeec513afa46423a1aa21978945abeae777d | <ide><path>src/Form/Form.php
<ide> protected function _buildSchema(Schema $schema)
<ide> *
<ide> * @param \Cake\Validation\Validator|null $validator The validator to set, or null.
<ide> * @return \Cake\Validation\Validator the validator instance.
<add> * @deprecated 3.6.0 Use Form::getValidator()/set... | 1 |
Text | Text | update examples template | 872755aee5c141efbdabd4fe2a565079c6c53e17 | <ide><path>examples/agressive-merging/README.md
<ide> module.exports = {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 06f18f1663d1b6555aff
<del>Version: webpack 2.1.0-beta.22
<del>Time: 169ms
<add>Hash: 06a73dcf91032a0ba5a5
<add>Version: webpack 2.1.0-beta.25
<add>Time: 147ms
<ide> Asset Size Chun... | 45 |
Ruby | Ruby | catch empty installations | d0e2d126a1969c6cf3d975576108a8da2c618254 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_line(line, lineno)
<ide> end
<ide> end
<ide>
<add> def audit_prefix_has_contents
<add> return unless formula.prefix.directory?
<add>
<add> Pathname.glob("#{formula.prefix}/**/*") do |file|
<add> next if file.directory?
<add> basename = fil... | 1 |
Text | Text | add example and reason why is not commonly used | d36806a06db4396f5af3a2f59c618f7988470ef2 | <ide><path>guide/english/css/selectors/attribute/class-equals/index.md
<ide> title: Class Equals
<ide> ---
<ide> ## Class Equals
<add>To select an item with a class attribute, you use the following selector:
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/css/selectors/... | 1 |
Python | Python | check object in tests | e39422e35fa81c79c149570e3d7e5cf9e0a0909b | <ide><path>tests/test_fields.py
<ide> class Meta:
<ide> serializer = CharFieldSerializer(data={'char': None})
<ide> self.assertTrue(serializer.fields['char'].allow_none)
<ide> self.assertTrue(serializer.is_valid())
<del> self.assertIsNone(serializer.data['char'])
<add> self.assertI... | 1 |
Python | Python | add multiple roles when creating users | c974917405a534017ad22264917f9356eac1d185 | <ide><path>airflow/api_connexion/endpoints/user_endpoint.py
<ide> def post_user():
<ide> detail = f"Unknown roles: {', '.join(repr(n) for n in missing_role_names)}"
<ide> raise BadRequest(detail=detail)
<ide>
<del> if roles_to_add:
<del> default_role = roles_to_add.pop()
<del> else: # No ... | 2 |
Javascript | Javascript | use expectserror in require-invalid-package | d0d02b6c88ce41958df068f59e9e2699645e5dda | <ide><path>test/parallel/test-require-invalid-package.js
<ide> 'use strict';
<ide>
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide>
<ide> // Should be an invalid package path.
<del>assert.throws(() => require('package.json'), (err) => {
<del> return e... | 1 |
Go | Go | report version and ubr | 6de9f90417f1295fcdc2f1c977178bff7a735f99 | <ide><path>pkg/parsers/operatingsystem/operatingsystem_windows.go
<ide> package operatingsystem // import "github.com/docker/docker/pkg/parsers/operatingsystem"
<ide>
<ide> import (
<del> "unsafe"
<add> "fmt"
<ide>
<del> "golang.org/x/sys/windows"
<add> "golang.org/x/sys/windows/registry"
<ide> )
<ide>
<del>// See h... | 1 |
PHP | PHP | remove charset on json content-type | e1fa05415fdb276d5e6efb673b35b95c52bd2457 | <ide><path>src/Http/Response.php
<ide> protected function _setContentType()
<ide> return;
<ide> }
<ide> $whitelist = [
<del> 'application/javascript', 'application/json', 'application/xml', 'application/rss+xml'
<add> 'application/javascript', 'application/xml', 'applic... | 3 |
Go | Go | send resp immediately on get /events | d0a299c027fc6b075bed4992329f93e618186a83 | <ide><path>api/server/server.go
<ide> func (s *Server) getEvents(version version.Version, w http.ResponseWriter, r *ht
<ide> d := s.daemon
<ide> es := d.EventsService
<ide> w.Header().Set("Content-Type", "application/json")
<del> enc := json.NewEncoder(ioutils.NewWriteFlusher(w))
<add> outStream := ioutils.NewWriteF... | 2 |
Python | Python | add weights for sgd optimizer | 59f8d6ca224aa93ffff2ece0e87ca2856a118ce0 | <ide><path>keras/optimizers.py
<ide> def get_updates(self, params, constraints, loss):
<ide> lr = self.lr * (1. / (1. + self.decay * self.iterations))
<ide> self.updates = [(self.iterations, self.iterations + 1.)]
<ide>
<del> for p, g in zip(params, grads):
<del> m = K.variable(np.zer... | 1 |
Java | Java | add viewnames for urlbasedviewresolver | 59217243ee572a38635de9756485750ccd1ffd36 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/view/UrlBasedViewResolver.java
<ide>
<ide> import org.springframework.beans.BeanUtils;
<ide> import org.springframework.beans.factory.InitializingBean;
<add>import org.springframework.util.PatternMatchUtils;
<ide> import org.springframework.... | 2 |
Python | Python | add tests for aurora | f35ff7990f86dbe334d186a692c04d4e3e599e2f | <ide><path>libcloud/test/storage/test_aurora.py
<add># Licensed to the Apache Software Foundation (ASF) under one or more
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># The ASF licenses this file to You under... | 2 |
Python | Python | remove a todo which is finished | 5d75d374dcaff31c2763d8196f0a145edbf7f662 | <ide><path>official/core/train_utils.py
<ide> def maybe_create_best_ckpt_exporter(params: config_definitions.ExperimentConfig,
<ide> return best_ckpt_exporter
<ide>
<ide>
<del># TODO(b/180147589): Add tests for this module.
<ide> class BestCheckpointExporter:
<ide> """Keeps track of the best result, and saves its... | 1 |
Text | Text | fix a couple of typos in docker attach docs | 5667365ed1cddb57267f7c11fc1f9d92209e5aed | <ide><path>docs/reference/commandline/attach.md
<ide> foreground over a slow client connection. Instead, users should use the
<ide> ## Override the detach sequence
<ide>
<ide> If you want, you can configure an override the Docker key sequence for detach.
<del>This is is useful if the Docker default sequence conflicts ... | 2 |
Python | Python | fix syntax error in italian lemmatizer | 21047bde5257093d4d73d57031c6917b2137e9e3 | <ide><path>spacy/lang/it/lemmatizer.py
<ide> "zurliniane": "zurliniano",
<ide> "zurliniani": "zurliniano",
<ide> "àncore": "àncora",
<del> "sono": "essere"
<add> "sono": "essere",
<ide> "è": "essere",
<ide> "èlites": "èlite",
<ide> "ère": "èra", | 1 |
Text | Text | fix typo in version-history.md | 269df77be24b0644a267f693a89ef4a794c62dd9 | <ide><path>docs/api/version-history.md
<ide> keywords: "API, Docker, rcli, REST, documentation"
<ide> * `POST /networks/create` now supports creating the ingress network, by specifying an `Ingress` boolean field. As of now this is supported only when using the overlay network driver.
<ide> * `GET /networks/(name)` now ... | 1 |
Python | Python | remove useless assignment from configure.py | fce86849fc448e882c65fa153c701eb6076295f8 | <ide><path>configure.py
<ide> def configure_static(o):
<ide>
<ide>
<ide> def write(filename, data):
<del> filename = filename
<ide> print_verbose('creating %s' % filename)
<ide> with open(filename, 'w+') as f:
<ide> f.write(data) | 1 |
Text | Text | add constraint to service create ref | 093817031acd2b8dc17cba5c3c994b2d6d19dc0e | <ide><path>docs/reference/commandline/service_create.md
<ide> ID NAME REPLICAS IMAGE COMMAND
<ide> ```
<ide>
<ide>
<del>### Create a service with a rolling update constraints
<add>### Create a service with a rolling update policy
<ide>
<ide>
<ide> ```bash
<ide> $ docker service create \
<ide> ... | 1 |
Ruby | Ruby | move i18n.locale setting into setup and teardown | 1407315423782f9512f73f5111cb27d9bc11cff6 | <ide><path>actionpack/test/controller/localized_templates_test.rb
<ide> def hello_world
<ide> class LocalizedTemplatesTest < ActionController::TestCase
<ide> tests LocalizedController
<ide>
<add> setup do
<add> @old_locale = I18n.locale
<add> end
<add>
<add> teardown do
<add> I18n.locale = @old_locale
<add>... | 1 |
Ruby | Ruby | reuse the superclass methods for shorter codes | 0e8280b19322bd3fdd7e18fc6ba35d45e986e611 | <ide><path>activerecord/lib/active_record/observer.rb
<ide> module ActiveRecord
<ide> #
<ide> class Observer < ActiveModel::Observer
<ide>
<del> def initialize
<del> super
<del> observed_descendants.each { |klass| add_observer!(klass) }
<del> end
<del>
<ide> protected
<ide>
<del> def obse... | 1 |
Javascript | Javascript | update error messages | 2d2987ffd9b49433c8a756f37328cd4bc69ced58 | <ide><path>src/animation/KeyframeTrack.js
<ide> import { AnimationUtils } from './AnimationUtils.js';
<ide>
<ide> function KeyframeTrack( name, times, values, interpolation ) {
<ide>
<del> if ( name === undefined ) throw new Error( 'track name is undefined' );
<del>
<del> if ( times === undefined || times.length === ... | 1 |
Javascript | Javascript | fix a memory leak | 25d286014c85290d94fcc0a2f09499c4b4801e90 | <ide><path>lib/TemplatedPathPlugin.js
<ide> const replacer = (value, allowEmpty) => {
<ide> };
<ide>
<ide> const deprecationCache = new Map();
<add>const deprecatedFunction = (() => () => {})();
<ide> const deprecated = (fn, message) => {
<ide> let d = deprecationCache.get(message);
<ide> if (d === undefined) {
<del... | 1 |
Text | Text | add note about enter/leave bubbling | de1f8682d506775b14276fcf111933308ec910ca | <ide><path>docs/docs/ref-05-events.md
<ide> onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave
<ide> onMouseMove onMouseOut onMouseOver onMouseUp
<ide> ```
<ide>
<add>The `onMouseEnter` and `onMouseLeave` events propagate from the component being left to the one being entered instead of ordinary bubbl... | 1 |
Python | Python | change key of type 'tuple' to 'str' | 9b1877049eeba44dad1cdabc8233eebdd9d66a00 | <ide><path>object_detection/core/batcher.py
<ide> def __init__(self, tensor_dict, batch_size, batch_queue_capacity,
<ide> {key: tensor.get_shape() for key, tensor in tensor_dict.iteritems()})
<ide> # Remember runtime shapes to unpad tensors after batching.
<ide> runtime_shapes = collections.OrderedDict(... | 1 |
Text | Text | add index to contributing | db87a042bcb36203a04105f79b99204759026aca | <ide><path>CONTRIBUTING.md
<ide> # CONTRIBUTING TO THREE.JS
<ide>
<del>## Having a problem
<add>## 1. Index
<add>
<add>1. [Index](https://github.com/gero3/three.js/blob/patch-6/CONTRIBUTING.md#2-Index)
<add>2. [Having a problem](https://github.com/gero3/three.js/blob/patch-6/CONTRIBUTING.md#2-having-a-problem)
<add> ... | 1 |
Python | Python | add a predict method for sentence_prediction task | f31e7ef9d85b6cb13a6828eef9496d1c5c037d6b | <ide><path>official/nlp/tasks/sentence_prediction.py
<ide> # limitations under the License.
<ide> # ==============================================================================
<ide> """Sentence prediction (classification) task."""
<add>from typing import List, Union
<add>
<ide> from absl import logging
<ide> import ... | 2 |
Mixed | Ruby | deprecate unused download strategies | 599ecc9b5ad7951b8ddc51490ebe93a976d43b29 | <ide><path>Library/Homebrew/compat.rb
<ide> require "compat/os/mac"
<ide> require "compat/dependable"
<ide> require "compat/dependency_collector"
<add>require "compat/download_strategy"
<ide> require "compat/fileutils"
<ide> require "compat/formula_support"
<ide> require "compat/cask"
<ide><path>Library/Homebrew/compat... | 5 |
Ruby | Ruby | fix new warning in ruby 2.4 | 2f6105e49411e6c2a4603a7bf828d3fb4dfd0601 | <ide><path>activerecord/test/cases/adapters/mysql2/reserved_word_test.rb
<ide> def drop_tables_directly(table_names, connection = @connection)
<ide> end
<ide>
<ide> # custom create table, uses execute on connection to create a table, note: escapes table_name, does NOT escape columns
<del> def create_tables_... | 2 |
Python | Python | add doomsday algorithm | c510a7da7b1b814158b74e4c72c28a1400e733ca | <ide><path>other/doomsday.py
<add>#!/bin/python3
<add># Doomsday algorithm info: https://en.wikipedia.org/wiki/Doomsday_rule
<add>
<add>DOOMSDAY_LEAP = [4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
<add>DOOMSDAY_NOT_LEAP = [3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
<add>WEEK_DAY_NAMES = {
<add> 0: "Sunday",
<add> 1: "Monday",
<... | 1 |
Java | Java | copy cookies and hints in built serverresponse | 6324a1b3fab1b797211ab01a3939caaef521dda5 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/DefaultEntityResponseBuilder.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (th... | 4 |
Python | Python | pass kwargs to ex_rebuild to create node args | 89afb61dab127a41840ca5d3493954ff090fd092 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def ex_set_password(self, node, password):
<ide> node.extra['password'] = password
<ide> return resp.status == httplib.ACCEPTED
<ide>
<del> def ex_rebuild(self, node, image):
<add> def ex_rebuild(self, node, image, **kwargs):
<ide> ""... | 2 |
Text | Text | fix doc about foreign key name [ci skip] | 95de0f01e06564bad3d598824a8cf63d3756dc98 | <ide><path>guides/source/active_record_migrations.md
<ide> column names can not be derived from the table names, you can use the
<ide> `:column` and `:primary_key` options.
<ide>
<ide> Rails will generate a name for every foreign key starting with
<del>`fk_rails_` followed by 10 random characters.
<add>`fk_rails_` fol... | 1 |
Text | Text | fix active storage cors configuration [ci skip] | 517aa6105116316b3d9b45716e12afa5af3772c6 | <ide><path>guides/source/active_storage_overview.md
<ide> No CORS configuration is required for the Disk service since it shares your app
<ide> #### Example: S3 CORS configuration
<ide>
<ide> ```xml
<del><?xml version="1.0" encoding="UTF-8"?>
<del><CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<de... | 1 |
Java | Java | make methodname package-private | 87b83e829128ad6aa2dd8d01e3663a55ef00b035 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGenerator.java
<ide> import org.springframework.aot.generate.GeneratedMethod;
<ide> import org.springframework.aot.generate.GeneratedMethods;
<ide> import org.springframework.aot.generate.GenerationContext;
<del>import org.s... | 5 |
Python | Python | add max length | fdc487d8b33dcb8b2ddebd7a1fe4bd0eee4e2a40 | <ide><path>pytorch_transformers/tokenization_gpt2.py
<ide> def lru_cache():
<ide> PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {
<ide> 'gpt2': 1024,
<ide> 'gpt2-medium': 1024,
<add> 'gpt2-large': 1024,
<ide> }
<ide>
<ide> @lru_cache() | 1 |
Ruby | Ruby | use new hash syntax | 440b334cbb0b803994967972547239d73dba1fce | <ide><path>actionpack/test/controller/api/redirect_to_test.rb
<ide>
<ide> class RedirectToApiController < ActionController::API
<ide> def one
<del> redirect_to :action => "two"
<add> redirect_to action: "two"
<ide> end
<ide>
<ide> def two; end
<ide><path>actionpack/test/controller/api/renderers_test.rb
<i... | 3 |
Ruby | Ruby | add debug parameter | d94afb91dd583330cf36dca598929455c152ec39 | <ide><path>Library/Homebrew/system_command.rb
<ide> def run!
<ide> must_succeed: T::Boolean,
<ide> print_stdout: T::Boolean,
<ide> print_stderr: T::Boolean,
<add> debug: T::Boolean,
<ide> verbose: T::Boolean,
<ide> secrets: T.any(String, T::Array[String]),
<ide> ... | 1 |
Ruby | Ruby | remove method missing use in respond_to | 6dc12881110d26bb952bd0f565623144f10a07b6 | <ide><path>actionpack/lib/action_controller/mime_responds.rb
<ide> def any(*args, &block)
<ide> custom(@mime_type_priority.first, &block)
<ide> end
<ide> end
<add>
<add> def self.generate_method_for_mime(mime)
<add> sym = mime.is_a?(Symbol) ? mime : mime.to_sym
<add> con... | 1 |
Text | Text | add more infos on how to profile the javascript | c038a3839a1ec04e6d08ab9bc400f164e915a203 | <ide><path>docs/Performance.md
<ide> the JavaScript thread and main thread side-by-side.
<ide>
<ide> For iOS, Instruments are an invaluable tool, and on Android you should
<ide> learn to use systrace.
<add>
<add>You can also use [`react-addons-perf`](https://facebook.github.io/react/docs/perf.html) to get insights int... | 1 |
Java | Java | revise cache api | 8dfcae535e19b0c80dabf8fdbad81fbcd8ba8246 | <ide><path>org.springframework.context/src/test/java/org/springframework/cache/vendor/AbstractNativeCacheTest.java
<ide> public void testCachePut() throws Exception {
<ide>
<ide> assertNull(cache.get(key));
<ide> cache.put(key, value);
<del> assertEquals(value, cache.get(key));
<add> assertEquals(value, cache.ge... | 1 |
Text | Text | normalize code indentation [ci-skip] | 27786c8d1ee85c64236286b8c810787f669b4331 | <ide><path>guides/source/active_record_basics.md
<ide> that the `products` table was created using an SQL (or one of its extensions) st
<ide>
<ide> ```sql
<ide> CREATE TABLE products (
<del> id int(11) NOT NULL auto_increment,
<del> name varchar(255),
<del> PRIMARY KEY (id)
<add> id int(11) NOT NULL auto_incre... | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.