content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | add v3.9.0-beta.2 to changelog | 8628f37fc96ca656b4d8de18f21bcb398ad86c8b | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.9.0-beta.2 (February 26, 2019)
<add>
<add>- [#17618](https://github.com/emberjs/ember.js/pull/17618) [BUGFIX] Migrate autorun microtask queue to Promise.then
<add>- [#17649](https://github.com/emberjs/ember.js/pull/17649) [BUGFIX] Revert decorator refac... | 1 |
Java | Java | remove unused file | c57d7eaf43b531834eacb38a1e47f1ece4023c64 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/queue/ProxyQueueThreadExceptionHandler.java
<del>/**
<del> * Copyright (c) 2015-present, Facebook, Inc.
<del> * All rights reserved.
<del> *
<del> * This source code is licensed under the BSD-style license found in the
<del> * LICENSE file in the root dire... | 1 |
Go | Go | use assert statement to replace condition judgment | ee7fdbe8b9ff6ed48d183d2160c4ad5a2d713261 | <ide><path>integration-cli/docker_hub_pull_suite_test.go
<ide> import (
<ide> "runtime"
<ide> "strings"
<ide>
<add> "github.com/docker/docker/pkg/integration/checker"
<ide> "github.com/go-check/check"
<ide> )
<ide>
<ide> func newDockerHubPullSuite() *DockerHubPullSuite {
<ide> func (s *DockerHubPullSuite) SetUpSui... | 1 |
Javascript | Javascript | simulate support of data uris for ie10 | 96c2f5c6ae05a5f184dfd6a8ff558f798a119d2c | <ide><path>web/compatibility.js
<ide> };
<ide> })();
<ide>
<del>// IE9 text/html data URI
<del>(function checkDocumentDocumentModeCompatibility() {
<del> if (!('documentMode' in document) || document.documentMode !== 9)
<add>// IE9/10 text/html data URI
<add>(function checkDataURICompatibility() {
<add> if (!('doc... | 1 |
Text | Text | add changelogs for process | 3f3d62a21c30daec479d82986445ba8773a14263 | <ide><path>doc/api/process.md
<ide> to detect application failures and recover or restart as needed.
<ide> ### Event: 'unhandledRejection'
<ide> <!-- YAML
<ide> added: v1.4.1
<add>changes:
<add> - version: v7.0.0
<add> pr-url: https://github.com/nodejs/node/pull/8217
<add> description: Not handling Promise rejec... | 1 |
PHP | PHP | fire an event on cache clear | d8c60efe2cd5692e1b667873a85522a5b6f4101c | <ide><path>src/Illuminate/Cache/Console/ClearCommand.php
<ide> public function fire()
<ide> $this->cache->flush();
<ide>
<ide> $this->files->delete($this->laravel['config']['app.manifest'].'/services.json');
<add>
<add> $this->laravel['events']->fire('cache:clear');
<ide>
<ide> $this->info('Application cache... | 1 |
PHP | PHP | throw exception instead of logging in debug mode | c193ce708a7920535b4e8aaab7499518e6f9fcde | <ide><path>lib/Cake/View/Helper/CacheHelper.php
<ide> protected function _parseContent($file, $out) {
<ide> * @param string $out output to cache
<ide> * @return string view output
<ide> * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html
<add> * @throws Exception If debug mode is enabled and wri... | 1 |
Python | Python | relax version contstraint | 417f430d23cf2c1ffcc16a886694d27b62c0e04e | <ide><path>setup.py
<ide> def setup_package():
<ide> 'dill>=0.2,<0.3',
<ide> 'requests>=2.13.0,<3.0.0',
<ide> 'regex==2017.4.5',
<del> 'ftfy == 4.4.2'],
<add> 'ftfy>=4.4.2,<5.0.0'],
<ide> classifiers=[
<ide> 'Devel... | 1 |
Ruby | Ruby | add license header to update.rb | 9d63bf9e142ac82bdd8371c5dd3d566b181a53e0 | <ide><path>Library/Homebrew/update.rb
<add># Copyright 2009 Max Howell and other contributors.
<add>#
<add># Redistribution and use in source and binary forms, with or without
<add># modification, are permitted provided that the following conditions
<add># are met:
<add>#
<add># 1. Redistributions of source code m... | 1 |
Javascript | Javascript | declare a dependency on the manipulation module | c18c6229c84cd2f0c9fe9f6fc3749e2c93608cc7 | <ide><path>src/wrap.js
<ide> define([
<ide> "./core",
<ide> "./core/init",
<add> "./manipulation", // clone
<ide> "./traversing" // parent, contents
<ide> ], function( jQuery ) {
<ide> | 1 |
Javascript | Javascript | add multiline support | 443071db5749603f816199b9ec8bc512fb441d98 | <ide><path>lib/readline.js
<ide> function Interface(input, output, completer) {
<ide> this.history = [];
<ide> this.historyIndex = -1;
<ide>
<add> // a number of lines used by current command
<add> this.usedLines = 1;
<add>
<ide> var winSize = output.getWindowSize();
<ide> exports.columns = winSi... | 1 |
PHP | PHP | use key instead of password | c03924a76733f9c120f5bab566f52007d4b1de0c | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> public function createS3Driver(array $config)
<ide> public function createRackspaceDriver(array $config)
<ide> {
<ide> $client = new Rackspace($config['endpoint'], [
<del> 'username' => $config['username'], 'apiKey' => $config['password'],
<add> '... | 1 |
Python | Python | correct an issue on unitest with py3 | 3c42bb929b511569d6cc40804ac5fa073f3da500 | <ide><path>unitest.py
<ide> from glances import __version__
<ide> from glances.globals import WINDOWS, LINUX
<ide> from glances.outputs.glances_bars import Bar
<add>from glances.compat import PY3
<ide> from glances.thresholds import GlancesThresholdOk
<ide> from glances.thresholds import GlancesThresholdCareful
<ide> f... | 1 |
Python | Python | show stdout/stderr for timed out tests | 169756b15dc8f6c2974a8ef3f095c055dcd47159 | <ide><path>tools/test.py
<ide> def HasRun(self, output):
<ide> (total_seconds, duration.microseconds / 1000))
<ide> if self.severity is not 'ok' or self.traceback is not '':
<ide> if output.HasTimedOut():
<del> self.traceback = 'timeout'
<add> self.traceback = 'timeout\n' + output.output.s... | 1 |
Text | Text | unify `fixes` notes in ar changelog. [ci skip] | dfe40cdcab1758003e243838a3c5aa0056d82cf7 | <ide><path>activerecord/CHANGELOG.md
<ide> * Objects intiantiated using a null relationship will now retain the
<ide> attributes of the where clause.
<ide>
<del> Fixes: #11676, #11675, #11376
<add> Fixes #11676, #11675, #11376.
<ide>
<ide> *Paul Nikitochkin*, *Peter Brown*, *Nthalk*
<ide>
<ide> * ... | 1 |
Javascript | Javascript | throw error when trying to dispatch from action | 848bb8e175715bedaccd10bbcbe62b1dbbe09ffa | <ide><path>src/createStore.js
<ide> export default function createStore(reducer, initialState) {
<ide> var currentReducer = reducer;
<ide> var currentState = initialState;
<ide> var listeners = [];
<add> var isDispatching = false;
<ide>
<ide> /**
<ide> * Reads the state tree managed by the store.
<ide> exp... | 5 |
Java | Java | ensure filename is written | 283811b16b3b568230ace382f9d16c1c6b662b7a | <ide><path>spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartHttpMessageWriter.java
<ide> private <T> Flux<DataBuffer> encodePart(byte[] boundary, String name, T value) {
<ide> resolvableType = ResolvableType.forClass(body.getClass());
<ide> }
<ide>
<del> String filename = (body instance... | 2 |
Mixed | Javascript | improve os.setpriority documentation | 6e746f1a55e5d94f1a8330d3436a64ed8d6f639b | <ide><path>doc/api/os.md
<ide> priority classes, `priority` is mapped to one of six priority constants in
<ide> mapping may cause the return value to be slightly different on Windows. To avoid
<ide> confusion, it is recommended to set `priority` to one of the priority constants.
<ide>
<add>On Windows setting priority ... | 2 |
Python | Python | display version selector for production docs | 74dc6fbc585f0b175f6fa922c62d63e0f33d099a | <ide><path>docs/build_docs.py
<ide> def _get_parser():
<ide> available_packages_list = " * " + "\n * ".join(get_available_packages())
<ide> parser = argparse.ArgumentParser(
<ide> description='Builds documentation and runs spell checking',
<del> epilog=f"List of supported documentation packages:\... | 2 |
Ruby | Ruby | remove repeated conditional | 634d67690bbb2f0d6520c2f87a1cf8c7e4ceb089 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def print_check_output(output)
<ide> end
<ide>
<ide> def audit_bin
<del> print_check_output(check_PATH(f.bin)) unless f.keg_only?
<add> print_check_output(check_PATH(f.bin))
<ide> print_check_output(check_non_executables(f.bin))
<ide> print_check... | 1 |
Python | Python | remove dsome import * | b9a90b371c90a987ed57f7a4a7cc1274c432b438 | <ide><path>django/contrib/gis/db/backends/mysql/base.py
<del>from django.db.backends.mysql.base import *
<ide> from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper
<ide> from django.contrib.gis.db.backends.mysql.creation import MySQLCreation
<ide> from django.contrib.gis.db.backends.mysql.i... | 3 |
Ruby | Ruby | imporve revision check logic | d4c7dedf1246e31daca2aa9be22f8f6e4a6c528f | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_revision
<ide> revision_map = fv.revision_map("origin/master")
<ide> if (revisions = revision_map[formula.version]).any?
<ide> problem "revision should not decrease" if formula.revision < revisions.max
<del> else
<del> problem "revision shou... | 1 |
PHP | PHP | fix doc block | 7cde02d2b7cc6bdd415b33a0f3d54b579c41ebe8 | <ide><path>src/Illuminate/Notifications/Messages/MailMessage.php
<ide> protected function arrayOfAddresses($address)
<ide> /**
<ide> * Render the mail notification message into an HTML string.
<ide> *
<del> * @return string
<add> * @return \Illuminate\Support\HtmlString
<ide> */
<ide> pub... | 1 |
Text | Text | fix typo in readme | bd2bd51b5d48911fdaefa14162b02b545562df1e | <ide><path>README.md
<ide> Keras is compatible with: __Python 2.7-3.5__.
<ide>
<ide> ## Getting started: 30 seconds to Keras
<ide>
<del>The core data structure of Keras is a __model__, a way to organize layers. The main type of model is the [`Sequential`](http://keras.io/getting-started/sequential-model-guide) model,... | 1 |
Ruby | Ruby | fix script name in watchr-docs.rb | 9f6c5db2a6ed10d3152fcb4aed8733043833362b | <ide><path>watchr-docs.rb
<ide> # note: make sure that you have jstd server running (server.sh) and a browser captured
<ide>
<ide> watch( '^src/|^docs/' ) do
<del> %x{ echo "\n\ndoc run started @ `date`" > logs/docs.log; node docs/collect.js &> logs/docs.log & }
<add> %x{ echo "\n\ndoc run started @ `date`" > log... | 1 |
Text | Text | update doc with usage of the scratch image | 77bd53adfe6877acd1ff8f07cf148f1dbe0b425d | <ide><path>docs/sources/articles/baseimages.md
<ide> GitHub Repo:
<ide> - [Debian / Ubuntu](
<ide> https://github.com/docker/docker/blob/master/contrib/mkimage-debootstrap.sh)
<ide>
<del>## Creating a simple base image using `scratch`
<add>## Creating a simple base image using scratch
<ide>
<del>There is a specia... | 1 |
PHP | PHP | fix email testsendrenderwithhelpers() test | 3d6c949f21db29c750586c16a4867e52e0292fd4 | <ide><path>Cake/Test/TestCase/Network/Email/EmailTest.php
<ide> public function testSendRenderWithHelpers() {
<ide> $this->assertInstanceOf('Cake\Network\Email\Email', $result);
<ide>
<ide> $result = $this->CakeEmail->send();
<del> $this->assertTrue((bool)strpos($result['message'], 'Right now: ' . date('Y-m-d\TH:... | 1 |
PHP | PHP | simplify eloquent collections | d050a1b64004fb4f5db48cd046b0b0f932b6d5b6 | <ide><path>src/Illuminate/Database/Eloquent/Collection.php
<ide>
<ide> class Collection extends BaseCollection {
<ide>
<del> /**
<del> * A dictionary of available primary keys.
<del> *
<del> * @var array
<del> */
<del> protected $dictionary = array();
<del>
<ide> /**
<ide> * Find a model in the collection by k... | 1 |
Go | Go | find a free device id to use for device creation | e28a419e1197bf50bbb378b02f0226c3115edeaa | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) incNextDeviceId() {
<ide> devices.NextDeviceId = (devices.NextDeviceId + 1) & MaxDeviceId
<ide> }
<ide>
<del>func (devices *DeviceSet) getNextDeviceId() int {
<add>func (devices *DeviceSet) getNextFreeDeviceId() (int, error) {
<ide> ... | 1 |
Ruby | Ruby | fix two mimetype failing test cases | 00c46b5eeb858629ef1c7ab50f022aecccca42c3 | <ide><path>actionpack/lib/action_controller/mime_type.rb
<ide> module Mime
<ide> # end
<ide> class Type
<ide> @@html_types = Set.new [:html, :url_encoded_form, :multipart_form, :all]
<add> cattr_reader :html_types
<add>
<add> # UNUSED, deprecate?
<ide> @@unverifiable_types = Set.new [:text, :json, :... | 2 |
Text | Text | add missing spaces | a5528b86386e5c35cf90c863758812a7724e2008 | <ide><path>curriculum/challenges/english/09-information-security/information-security-with-helmetjs/hash-and-compare-passwords-asynchronously.md
<ide> bcrypt.hash(myPlaintextPassword, saltRounds, (err, hash) => {
<ide>
<ide> # --instructions--
<ide>
<del>Add this hashing function to your server(we've already defined ... | 1 |
Ruby | Ruby | remove useless || operation | ee314a5e5aa2b29978b78fbe1b272bcfff865d4a | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def process(*args)
<ide> # # assert that the "_customer" partial was rendered with a specific object
<ide> # assert_template partial: '_customer', locals: { customer: @customer }
<ide> def assert_template(options = {}, message = nil)
<del> ... | 2 |
PHP | PHP | use singleton method for binding shared instance | 15ccd0bb8ade9b54e9bc776344de0515408d9ff0 | <ide><path>src/Illuminate/Events/EventServiceProvider.php
<ide> class EventServiceProvider extends ServiceProvider {
<ide> */
<ide> public function register()
<ide> {
<del> $this->app['events'] = $this->app->share(function($app)
<add> $this->app->singleton('events', function($app)
<ide> {
<ide> return new Di... | 1 |
Java | Java | remove trailing whitespace | 89a4c291c3feae04798d1fc234cdbd82bb7ad9a9 | <ide><path>spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/BufferingStompDecoderTests.java
<ide> public void basic() throws InterruptedException {
<ide> assertEquals(0, stompDecoder.getBufferSize());
<ide> assertNull(stompDecoder.getExpectedContentLength());
<ide> }
<del>
<add>
<ide> @Tes... | 2 |
Go | Go | add cgo or osusergo buildtag constraints for unix | 023b072288eab3c9e768d4aeeb917f27f06034c7 | <ide><path>pkg/homedir/homedir_unix.go
<del>// +build !windows
<add>// +build !windows,cgo !windows,osusergo
<ide>
<ide> package homedir // import "github.com/docker/docker/pkg/homedir"
<ide> | 1 |
Ruby | Ruby | call to_s on ohai parameters | e1995d60efa90f05fa3292d758e47ac20f33d9e7 | <ide><path>Library/Homebrew/utils.rb
<ide> def escape n
<ide>
<ide> # args are additional inputs to puts until a nil arg is encountered
<ide> def ohai title, *sput
<del> title = title[0, `/usr/bin/tput cols`.strip.to_i-4] unless ARGV.verbose?
<add> title = title.to_s[0, `/usr/bin/tput cols`.strip.to_i-4] unless ARGV... | 1 |
PHP | PHP | convert assertions to assetcontains | bbef4aa36d6383c7ee481ce18fdd437bc32a18fd | <ide><path>lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
<ide> public function testSendRender() {
<ide> $this->CakeEmail->template('default', 'default');
<ide> $result = $this->CakeEmail->send();
<ide>
<del> $this->assertTrue((bool)strpos($result['message'], 'This email was sent using the CakePHP Framework')... | 1 |
PHP | PHP | extend()` | 3f0645cf38f51b235ec280b35922e3fe84f0be96 | <ide><path>src/Illuminate/Support/Facades/Storage.php
<ide> * @method static bool delete(string|array $paths)
<ide> * @method static bool deleteDirectory(string $directory)
<ide> * @method static bool exists(string $path)
<add> * @method static \Illuminate\Filesystem\FilesystemManager extend(string $driver, \Closure... | 1 |
Javascript | Javascript | add tool to format/sort code in files | beaded63c34740af536532ea94ffbf30adcfeb1f | <ide><path>tooling/format-file-header.js
<add>const path = require("path");
<add>const fs = require("fs");
<add>
<add>// When --write is set, files will be written in place
<add>// Elsewise it only prints outdated files
<add>const doWrite = process.argv.includes("--write");
<add>
<add>const allFiles = new Set();
<add>c... | 1 |
PHP | PHP | add missing docblock | 6884c5442095175cc042f42ef2066204c0d35a96 | <ide><path>src/Illuminate/Auth/CreatesUserProviders.php
<ide> trait CreatesUserProviders
<ide> *
<ide> * @param string $provider
<ide> * @return \Illuminate\Contracts\Auth\UserProvider
<add> *
<add> * @throws \InvalidArgumentException
<ide> */
<ide> protected function createUserProvide... | 1 |
PHP | PHP | add test case | 9e3b24a93d0216568ab7ac07165f6877ae4d1ba4 | <ide><path>tests/TestCase/Utility/TextTest.php
<ide> public function testTransliterate($string, $transliterator, $expected)
<ide> $this->assertSame($expected, $result);
<ide> }
<ide>
<del> public function slugInputProvider()
<add> /**
<add> * @return array
<add> */
<add> public function sl... | 2 |
Python | Python | remove extra pipe config values before merging | 91a6637f74aa4b88c203a56d2358f77d77ec75d5 | <ide><path>spacy/language.py
<ide> def get_pipe_config(self, name: str) -> Config:
<ide> if name not in self._pipe_configs:
<ide> raise ValueError(Errors.E960.format(name=name))
<ide> pipe_config = self._pipe_configs[name]
<del> pipe_config.pop("nlp", None)
<del> pipe_config.po... | 2 |
Javascript | Javascript | remove pm2 memory fanciness | f710fa1af60159b1c1bc9db8c398a1638ee8e233 | <ide><path>pm2Start.js
<ide> pm2.connect(function() {
<ide> script: 'server/production-start.js',
<ide> 'exec_mode': 'cluster',
<ide> instances: process.env.INSTANCES || 1,
<del> 'max_memory_restart':
<del> (process.env.MAX_MEMORY / process.env.INSTANCES || 1) || '300M',
<add> 'max_memory_restart... | 1 |
Ruby | Ruby | replace hash#delete_if with hash#compact! | aa5d471abd11d6e80f8a2741d59a1d8472a86dd4 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> module ActiveRecord
<ide> module ConnectionHandling # :nodoc:
<ide> # Establishes a connection to the database that's used by all Active Record objects
<ide> def postgresql_connection(config)
<del> conn_params = con... | 1 |
Text | Text | apply suggestions from code review | 8d945e22fa4ef70305122bd4aff89be0548b493f | <ide><path>README.md
<ide>
<ide> </p>
<ide>
<del>**Ember** is
<add>**Ember.js** is a JavaScript framework that greatly reduces the time, effort and resources needed to build any web application. It is focused on making you, the developer, as productive as possible by doing all the common, repetitive, yet essential, ... | 1 |
Javascript | Javascript | remove my example | eeb2fd0c96d82dd9a3b2ec35ce4bad04410aa44c | <ide><path>examples/sven/src/a.js
<del>export const two = 2;
<ide><path>examples/sven/src/b.js
<del>export function logFoo() {
<del> console.log("log foo");
<del>}
<ide><path>examples/sven/src/index.js
<del>// Before transformation:
<del>//
<del>// (module
<del>// (import "./b" "logFoo" (func $a))
<del>// (import ... | 3 |
Text | Text | fix incorrect newline in | da7e73b721f37924fb4f0bd55ad93430d7951d16 | <ide><path>examples/pytorch/text-generation/README.md
<ide> limitations under the License.
<ide>
<ide> ## Language generation
<ide>
<del>Based on the script [`run_generation.py`](https://github.com/huggingface/transformers/blob/master/examples/pytorch
<del>/text-generation/run_generation.py).
<add>Based on the script... | 1 |
Text | Text | fix a typo | 5f155541007e33d8cdb8c9a9d729995925bbcc46 | <ide><path>docs/IntegrationWithExistingApps.md
<ide> The keys to integrating React Native components into your Android application ar
<ide> 1. Understand what React Native components you want to integrate.
<ide> 2. Install `react-native` in your Android application root directory to create `node_modules/` directory.
<i... | 1 |
Text | Text | allow travis results for doc/comment changes | e44d73f0117b9a1f7e5f9af759871b24638331a6 | <ide><path>COLLABORATOR_GUIDE.md
<ide> the comment anyway to avoid any doubt.
<ide> All fixes must have a test case which demonstrates the defect. The test should
<ide> fail before the change, and pass after the change.
<ide>
<del>All pull requests must pass continuous integration tests on the
<del>[project CI server]... | 1 |
Python | Python | fix bert layernorm | dcddf498c8b34cfeb99fb563e771877a1bc7ded5 | <ide><path>pytorch_transformers/modeling_tf_pytorch_utils.py
<ide> def load_pytorch_state_dict_in_tf2_model(tf_model, pt_state_dict, tf_inputs=None
<ide> "https://pytorch.org/ and https://www.tensorflow.org/install/ for installation instructions.")
<ide> raise e
<ide>
<add> # Adapt state dict - ... | 1 |
Text | Text | fix typo in doc/tls.md | 9428854b96c686ee46de869905a29ef0d21ccc83 | <ide><path>doc/api/tls.md
<ide> added: v0.11.3
<ide> to be used when checking the server's hostname against the certificate.
<ide> This should throw an error if verification fails. The method should return
<ide> `undefined` if the `servername` and `cert` are verified.
<del> * `secureProtocol` {string} The ... | 1 |
Javascript | Javascript | improve future relative time | 194e64daff528b1661ba3eb4ac723fa01ae7674b | <ide><path>src/locale/it.js
<ide> export default moment.defineLocale('it', {
<ide> sameElse: 'L',
<ide> },
<ide> relativeTime: {
<del> future: function (s) {
<del> return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
<del> },
<add> future: 'tra %s',
<ide> past: ... | 2 |
Python | Python | kill mx.texttools with fire | 222a956ecc5b163420d524a675ed01d75622ea6b | <ide><path>django/http/multipartparser.py
<ide> def __init__(self, stream, boundary):
<ide> if not unused_char:
<ide> raise InputStreamExhausted()
<ide> self._stream.unget(unused_char)
<del> try:
<del> from mx.TextTools import FS
<del> self._fs = FS(boundary).fin... | 1 |
Javascript | Javascript | replace string concatenation with template | 97bfeff084d1c035a01381249394a64ee99e8a1e | <ide><path>lib/_http_agent.js
<ide> Agent.prototype.getName = function getName(options) {
<ide> // Pacify parallel/test-http-agent-getname by only appending
<ide> // the ':' when options.family is set.
<ide> if (options.family === 4 || options.family === 6)
<del> name += ':' + options.family;
<add> name += ... | 1 |
PHP | PHP | fix mistakes in api docs | c8108074f35166639d50657106f301d660c4a5b7 | <ide><path>src/ORM/Query.php
<ide> public function matching($assoc, callable $builder = null)
<ide> * ->select(['total_articles' => $query->func()->count('Articles.id')])
<ide> * ->leftJoinWith('Articles')
<ide> * ->group(['Users.id'])
<del> * ->setAutoFields(true);
<add> * ->... | 1 |
Python | Python | add files via upload | fe7b86c9ffed033d3ee47445e288819828c05537 | <ide><path>sorts/external-sort.py
<add>#!/usr/bin/env python
<add>
<add>#
<add># Sort large text files in a minimum amount of memory
<add>#
<add>import os
<add>import sys
<add>import argparse
<add>
<add>class FileSplitter(object):
<add> BLOCK_FILENAME_FORMAT = 'block_{0}.dat'
<add>
<add> def __init__(self, filena... | 1 |
Javascript | Javascript | add webpack 5 comments | 01b02e6e494274507134091b47845abd84db0bc1 | <ide><path>lib/Dependency.js
<ide> const DependencyReference = require("./dependencies/DependencyReference");
<ide> class Dependency {
<ide> constructor() {
<ide> this.module = null;
<add> // TODO remove in webpack 5
<ide> this.weak = false;
<ide> this.optional = false;
<ide> this.loc = undefined;
<ide><path>... | 2 |
Text | Text | update url for react hydration documentation | 194b6ad1c136a8c75a68bf82a5b80504703ec162 | <ide><path>errors/react-hydration-error.md
<ide> Common causes with css-in-js libraries:
<ide>
<ide> ### Useful Links
<ide>
<del>- [React Hydration Documentation](https://reactjs.org/docs/react-dom.html#hydrate)
<add>- [React Hydration Documentation](https://reactjs.org/docs/react-dom-client.html#hydrateroot)
<ide> -... | 1 |
PHP | PHP | add some more transaction tests | cb376bf420a7414ef573d4d7c4ff7d23ef0a4514 | <ide><path>lib/Cake/Model/Model.php
<ide> public function saveMany($data = null, $options = array()) {
<ide> $options['validate'] = false;
<ide> }
<ide>
<add> $transactionBegun = false;
<ide> if ($options['atomic']) {
<ide> $db = $this->getDataSource();
<ide> $transactionBegun = $db->begin();
<del> } el... | 2 |
Javascript | Javascript | handle extra whitespace | 12024a76a25f6424b56063165841c7d6153ed265 | <ide><path>threejs/resources/editor.js
<ide> function fixSourceLinks(url, source) {
<ide> const srcRE = /(src=)"(.*?)"/g;
<ide> const linkRE = /(href=)"(.*?")/g;
<ide> const imageSrcRE = /((?:image|img)\.src = )"(.*?)"/g;
<del> const loaderLoadRE = /(loader\.load[a-z]*\()('|")(.*?)('|")/ig;
<add> const loaderLo... | 1 |
PHP | PHP | display messages during running migrator | 18dc89b3434367946d7e62e5d684dbbae49d0431 | <ide><path>src/Illuminate/Database/Console/Migrations/MigrateCommand.php
<ide> public function handle()
<ide> // Next, we will check to see if a path option has been defined. If it has
<ide> // we will use the path relative to the root of this installation folder
<ide> // so that migrations may ... | 8 |
Java | Java | improve handling of empty response with mono<t> | abf9ce8a34d8e386a36d265fc558ee21a02d5d16 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java
<ide> public Mono<Void> write(Publisher<? extends T> inputStream, ResolvableType eleme
<ide> if (inputStream instanceof Mono) {
<ide> HttpHeaders headers = message.getHeaders();
<ide> return Mono.from(body)
<del> ... | 3 |
Text | Text | update the way of starting packager on windows | 27a0ce3ead8235b53c2081f820063af36401831d | <ide><path>docs/LinuxWindowsSupport.md
<ide> As of **version 0.14** Android development with React native is mostly possible
<ide>
<ide> On Windows the packager won't be started automatically when you run `react-native run-android`. You can start it manually using:
<ide>
<add> #For React Native version < 0.14
... | 1 |
Python | Python | remove unnecessary commented code | 1fdcc370b6d9a71483bc968d5a0f3d259e07a78e | <ide><path>examples/neural_style_transfer.py
<ide> It is preferrable to run this script on GPU, for speed.
<ide> If running on CPU, prefer the TensorFlow backend (much faster).
<ide>
<add>Example result: https://twitter.com/fchollet/status/686631033085677568
<add>
<ide> # Details
<ide>
<ide> Style transfer consists i... | 1 |
Text | Text | fix typo in language-modeling readme.md | 734afa37f675c3adc6665e6996d97589406b1eb5 | <ide><path>examples/language-modeling/README.md
<ide> python run_mlm.py \
<ide> To run on your own training and validation files, use the following command:
<ide>
<ide> ```bash
<del>python run_clm.py \
<add>python run_mlm.py \
<ide> --model_name_or_path roberta-base \
<ide> --train_file path_to_train_file \
<i... | 1 |
Javascript | Javascript | fix conflict handling | 8835751cb39c1928483e20e1d7e542dc01380b66 | <ide><path>lib/optimize/ConcatenatedModule.js
<ide> class ConcatenatedModule extends Module {
<ide> } else if(dep instanceof HarmonyExportImportedSpecifierDependency) {
<ide> const exportName = dep.name;
<ide> const importName = dep.id;
<del> const importModule = dep.importDependency.modul... | 3 |
Python | Python | add oversize examples before stopiteration returns | ec52e7f886ad3839bb509c38707a8ae4e955b7d4 | <ide><path>spacy/util.py
<ide> def minibatch_by_words(examples, size, tuples=True, count_words=len, tolerance=0
<ide> try:
<ide> example = next(examples)
<ide> except StopIteration:
<add> if oversize:
<add> example = oversize.pop(0)
<add> ... | 1 |
Javascript | Javascript | fix debug-signal-cluster after da update | 25e8adefa34f530951e3a71f6f7d08e12e752830 | <ide><path>test/fixtures/clustered-server/app.js
<ide> if (cluster.isMaster) {
<ide> }
<ide> });
<ide>
<add> process.on('message', function(msg) {
<add> if (msg.type === 'getpids') {
<add> var pids = [];
<add> pids.push(process.pid);
<add> for (var key in cluster.workers)
<add> pids.pus... | 2 |
Java | Java | fix lints and clean up interfaces | 78e7311cd50e32ebe4404c986d7f29d35180b510 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/IViewManagerWithChildren.java
<ide> public interface IViewManagerWithChildren {
<ide> * of automatically laying out children without going through the ViewGroup's onLayout method. In
<ide> * that case, onLayout for this View type must *not* call l... | 3 |
PHP | PHP | close mockery in the teardown method | 7bdd8007a2785330f9c60955676707d45d0ab5ef | <ide><path>tests/Redis/RedisManagerExtensionTest.php
<ide> protected function setUp(): void
<ide> });
<ide> }
<ide>
<add> protected function tearDown(): void
<add> {
<add> m::close();
<add> }
<add>
<ide> public function test_using_custom_redis_connector_with_single_redis_instance()
<ide... | 1 |
Text | Text | remove openssl 1.x reference | 45a4fdbfb4ffbd721965882cd111600bcbec8da6 | <ide><path>doc/contributing/maintaining-openssl.md
<ide> NASM version 2.11.08
<ide>
<ide> ## 1. Obtain and extract new OpenSSL sources
<ide>
<del>Get a new source from <https://github.com/quictls/openssl/tree/OpenSSL_1_1_1j+quic>
<add>Get a new source from <https://github.com/quictls/openssl/tree/openssl-3.0.5+quic>
... | 1 |
Python | Python | prefer earlier spans in entityruler | ac14ce7c30c2f6da4a71dee7978f5b765af4d966 | <ide><path>spacy/pipeline/entityruler.py
<ide> def __call__(self, doc):
<ide> matches = set(
<ide> [(m_id, start, end) for m_id, start, end in matches if start != end]
<ide> )
<del> get_sort_key = lambda m: (m[2] - m[1], m[1])
<add> get_sort_key = lambda m: (m[2] - m[1], -m[1])... | 2 |
Python | Python | remove docversion related | 067c772588f69f397eeff70019320506b47bb239 | <ide><path>docs/conf.py
<ide> import inspect
<ide> import re
<ide>
<del>from pallets_sphinx_themes import DocVersion, ProjectLink, get_version
<add>from pallets_sphinx_themes import ProjectLink, get_version
<ide>
<ide> # Project --------------------------------------------------------------
<ide>
<ide> Proje... | 1 |
Ruby | Ruby | move dead recompile_template? also | 2d6562d51b96af518c1eb2947d6d34d5dd5bad12 | <ide><path>actionpack/lib/action_view/renderable.rb
<ide> def #{render_symbol}(local_assigns)
<ide> # The template will be compiled if the file has not been compiled yet, or
<ide> # if local_assigns has a new key, which isn't supported by the compiled code yet.
<ide> def recompile?(symbol)
<del> ... | 2 |
Text | Text | fix indentation of sample code | 2869e35be71b96d2d2112e9b8241e28aa123b072 | <ide><path>guide/portuguese/javascript/es6/spread-operator/index.md
<ide> ---
<ide> title: Spread Operator
<ide> localeTitle: Operador de spread
<del>---
<ide>## Operador de spread
<del>
<del>O operador de spread ( `...` ), permite obter os elementos de uma coleção.
<del>
<del>Um dos usos mais comuns é para objetos de ... | 1 |
PHP | PHP | add lazycollection tests | 9c31b1e0e1eb80086952952003b33ce1a29e7da9 | <ide><path>tests/Support/SupportLazyCollectionTest.php
<ide> namespace Illuminate\Tests\Support;
<ide>
<ide> use PHPUnit\Framework\TestCase;
<add>use Illuminate\Support\Collection;
<ide> use Illuminate\Support\LazyCollection;
<ide>
<ide> class SupportLazyCollectionTest extends TestCase
<ide> {
<add> public functio... | 1 |
Javascript | Javascript | fix lint warnings in server implementation | 934de2d94a0c4b7f475186746de4fb77b5e93580 | <ide><path>packager/react-packager/src/Server/MultipartResponse.js
<ide> class MultipartResponse {
<ide> if (!headers) {
<ide> return;
<ide> }
<del> for (let key in headers) {
<add> for (const key in headers) {
<ide> this.setHeader(key, headers[key]);
<ide> }
<ide> }
<ide> class Multipar... | 1 |
Javascript | Javascript | add libs to tern | d76aa36c5ba962c5186975a9d2e2c81ca1fefbb3 | <ide><path>server/services/map.js
<ide> function mapChallengeToLang({ translations = {}, ...challenge }, lang) {
<ide> if (!supportedLanguages[lang]) {
<ide> lang = 'en';
<ide> }
<add> const translation = translations[lang] || {};
<ide> if (lang !== 'en') {
<del> challenge.title =
<del> translations[... | 1 |
Java | Java | fix method order in channelsendoperator | fbcd554f428c8c5233db550463d0aeaded98fc91 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ChannelSendOperator.java
<ide> private final class WriteWithBarrier
<ide> }
<ide>
<ide>
<del> @Override
<del> public void cancel() {
<del> Subscription s = this.subscription;
<del> if (s != null) {
<del> this.subscription = null;
... | 1 |
Java | Java | add core javapoet utilities | b3ceb0f625a5b40d1007bb4dfe673be497fc2c9e | <ide><path>spring-core/src/main/java/org/springframework/javapoet/support/CodeSnippet.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * ... | 7 |
Python | Python | add files via upload | 92e0aa29b9c0db1590b0ec032177dd8dced750ff | <ide><path>Project Euler/Problem 02/sol2.py
<add>def fib(n):
<add> ls = []
<add> a,b = 0,1
<add> n += 1
<add> for i in range(n):
<add> if (b % 2 == 0):
<add> ls.append(b)
<add> else:
<add> pass
<add> a,b = b, a+b
<add> print (sum(ls))
<add> return None
<add>f... | 1 |
Javascript | Javascript | provide all jquery functions as futures | 675978f41fbd05a7ed3481a79b772877a59a1c15 | <ide><path>src/scenario/DSL.js
<ide> angular.scenario.dsl.repeater = function(selector) {
<ide> };
<ide>
<ide> angular.scenario.dsl.element = function(selector) {
<del> var nameSuffix = "element '" + selector + "'";
<del> return $scenario.addFuture('Find ' + nameSuffix, function(done) {
<del> var self = this, rep... | 2 |
Text | Text | remove unnecessary path to file | 6bb8488ffb475337ed757f05681a031b60a5db5e | <ide><path>docs/api/compose.md
<ide> This example demonstrates how to use `compose` to enhance a [store](Store.md) wi
<ide> import { createStore, applyMiddleware, compose } from 'redux'
<ide> import thunk from 'redux-thunk'
<ide> import DevTools from './containers/DevTools'
<del>import reducer from '../reducers/index'
... | 1 |
Javascript | Javascript | handle timeout on xhr requests | 893c061dd60feb6daf31ab18dc0675ca39752c29 | <ide><path>lib/adapters/xhr.js
<ide> module.exports = function xhrAdapter(resolve, reject, config) {
<ide> request = null;
<ide> };
<ide>
<add> // Handle timeout
<add> request.ontimeout = function handleTimeout() {
<add> reject(new Error('Timeout'));
<add>
<add> // Clean up request
<add> request = nul... | 1 |
Javascript | Javascript | use const instead of var in async_hooks | 435fe977e038ca5b778e39056a7a5ee69a5031df | <ide><path>benchmark/async_hooks/async-resource-vs-destroy.js
<ide> function buildCurrentResource(getServe) {
<ide> }
<ide>
<ide> function init(asyncId, type, triggerAsyncId, resource) {
<del> var cr = executionAsyncResource();
<add> const cr = executionAsyncResource();
<ide> if (cr !== null) {
<ide> ... | 1 |
PHP | PHP | fix coding standards | 0ed675211007031dfc6a6368680e066b23e2c1c2 | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> class CakeEmail {
<ide> protected $_charset8bit = array('UTF-8', 'SHIFT_JIS');
<ide>
<ide> /**
<del> * define Content-Type charset name
<add> * Define Content-Type charset name
<ide> *
<ide> * @var array
<ide> */
<del> protected $_contentTypeCharset = array('IS... | 2 |
Python | Python | remove duplicate calls to get_output | 1aaab7a228fdd6f3ef53e888e08bc2afd6b4213b | <ide><path>keras/models.py
<ide> def compile(self, optimizer, loss, class_mode="categorical", theano_mode=None):
<ide> self.y_train = self.get_output(train=True)
<ide> self.y_test = self.get_output(train=False)
<ide>
<del> self.y_train = self.get_output(train=True)
<del> self.y_test = sel... | 1 |
Text | Text | add information on interfaces and lambdas. | 5e7c9a18075bd623ef4f955e815c8381c9c60a56 | <ide><path>guide/english/java/lambda-expressions/index.md
<ide> The terminal `collect` operation collects the stream as a list of strings.
<ide>
<ide> This is only one use of the Streams API used in Java 8. There are many other applications of streams utilizing other operations as seen here in the
<ide> [documentatio... | 1 |
Text | Text | add changelog entry for | 6d83ed71295e38afe332ecad51f686513eeb99cf | <ide><path>actionview/CHANGELOG.md
<add>* Add `to_sentence` helper that is a HTML-safe aware version of `Array#to_sentence`.
<add>
<add> *Neil Matatall*
<add>
<ide> * Deprecate `datetime_field` and `datetime_field_tag` helpers.
<ide> Datetime input type was removed from HTML specification.
<ide> One can ... | 1 |
Javascript | Javascript | add more notes about ngrepeat and clean up style | d7a78e420adad0869cf811ea14a6d801695dbfa0 | <ide><path>src/ng/directive/select.js
<ide> var ngOptionsMinErr = minErr('ngOptions');
<ide> * elements for the `<select>` element using the array or object obtained by evaluating the
<ide> * `ngOptions` comprehension_expression.
<ide> *
<add> * In many cases, `ngRepeat` can be used on `<option>` elements instead of... | 1 |
Go | Go | remove unused variable | f5557f4f43ba89a448131fbca8094f9cf8ddb097 | <ide><path>daemon/logger/logger.go
<ide> package logger
<ide>
<ide> import (
<ide> "errors"
<del> "sync"
<ide> "time"
<ide>
<ide> "github.com/docker/docker/pkg/timeutils"
<ide> type LogWatcher struct {
<ide> // For sending error messages that occur while while reading logs.
<ide> Err chan error
<ide> ... | 1 |
PHP | PHP | add deprecation warnings to hasmany | b0ebd2969e7fb809e78601ad3c129768c28594db | <ide><path>src/ORM/Association/HasMany.php
<ide> public function getSaveStrategy()
<ide> */
<ide> public function saveStrategy($strategy = null)
<ide> {
<add> deprecationWarning(
<add> 'HasMany::saveStrategy() is deprecated. ' .
<add> 'Use setSaveStrategy()/getSaveStrategy() in... | 2 |
PHP | PHP | fix cs errors | 3e88be4194a71c14a03a0e05685f000607fcfa17 | <ide><path>src/Database/Driver.php
<ide>
<ide> use Cake\Database\Exception\MissingConnectionException;
<ide> use Cake\Database\Schema\BaseSchema;
<del>use Cake\Database\Query;
<ide> use Cake\Database\Schema\TableSchema;
<ide> use Cake\Database\Statement\PDOStatement;
<ide> use Closure;
<ide><path>src/ORM/Table.php
<id... | 5 |
Javascript | Javascript | simplify code and remove obsolete checks | e68b0d6fb333ae487bd04bd945342b2c63e4ead6 | <ide><path>lib/path.js
<ide> const win32 = {
<ide> }
<ide> }
<ide>
<del> if (startDot === -1 ||
<del> end === -1 ||
<del> // We saw a non-dot character immediately before the dot
<del> preDotState === 0 ||
<del> // The (right-most) trimmed path component is exactly '..'
<del> ... | 1 |
Javascript | Javascript | fix merge issue | 821c350bf7e2a796cb4a2cae05be4bd168005e9f | <ide><path>test/configCases/dll-plugin-side-effects/0-create-dll/webpack.config.js
<ide> module.exports = {
<ide> path: path.resolve(
<ide> __dirname,
<ide> "../../../js/config/dll-plugin-side-effects/manifest0.json"
<del> )
<add> ),
<add> entryOnly: false
<ide> })
<ide> ]
<ide> }; | 1 |
Python | Python | improve docs formatting | c400d0e798275ac79f84fd2f974a8c01cd7deb15 | <ide><path>docs/autogen.py
<ide> 'all_module_functions': [utils],
<ide> 'classes': [utils.CustomObjectScope,
<ide> utils.HDF5Matrix,
<del> utils.Sequence,
<del> utils.multi_gpu_model]
<add> utils.Sequence],
<ide> },
<ide> ]... | 3 |
Ruby | Ruby | remove call to sanitize_sql_hash_for_conditions | 4bd089f1d93fa168b0ae17dd8c92a5157a2537d7 | <ide><path>activerecord/lib/active_record/sanitization.rb
<ide> def sanitize_sql_for_conditions(condition, table_name = self.table_name)
<ide>
<ide> case condition
<ide> when Array; sanitize_sql_array(condition)
<del> when Hash; sanitize_sql_hash_for_conditions(condition, table_name)
<ide> ... | 1 |
Text | Text | add license information | df5aac8b092f6552b065aa68c09e034b3e5e71e0 | <ide><path>docs/Formula-Cookbook.md
<ide> class Foo < Formula
<ide> homepage ""
<ide> url "https://example.com/foo-0.1.tar.gz"
<ide> sha256 "85cc828a96735bdafcf29eb6291ca91bac846579bcef7308536e0c875d6c81d7"
<add> license ""
<ide>
<ide> # depends_on "cmake" => :build
<ide>
<ide> An SSL/TLS (https) [`homepage`... | 1 |
PHP | PHP | input() phpdoc @return | db8950690187d49d5096e12b255e94de1017c5e4 | <ide><path>src/Illuminate/Http/Request.php
<ide> public function all()
<ide> *
<ide> * @param string $key
<ide> * @param mixed $default
<del> * @return string
<add> * @return string|array
<ide> */
<ide> public function input($key = null, $default = null)
<ide> { | 1 |
Ruby | Ruby | fix syntax error | fab6b6c19d3be7a2ded5b7aa050064c5d66c5340 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def brew_update
<ide> elsif ENV["TRAVIS_COMMIT_RANGE"]
<ide> diff_start_sha1, diff_end_sha1 = ENV["TRAVIS_COMMIT_RANGE"].split "..."
<ide> diff_end_sha1 = ENV["TRAVIS_COMMIT"] if travis_pr
<del> elseif ENV["ghprbPullLink"]
<add> elsif ENV... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.