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 |
|---|---|---|---|---|---|
Go | Go | add filesystemtype for containers | 80bd64245f14d4d8a6fc8349cff8b441d770da42 | <ide><path>container.go
<ide> type Container struct {
<ide> ResolvConfPath string
<ide> HostnamePath string
<ide> HostsPath string
<add> FilesystemType string
<ide>
<ide> cmd *exec.Cmd
<ide> stdout *utils.WriteBroadcaster
<ide><path>runtime.go
<ide> import (
<ide> "time"
<ide> )
<ide>
<add>const... | 3 |
PHP | PHP | update the console shell for easier maintenance | 69be4bb1e8b58f3c73c8337634918e14f8935e76 | <ide><path>lib/Cake/Console/Command/ConsoleShell.php
<ide> class ConsoleShell extends AppShell {
<ide> */
<ide> public $models = array();
<ide>
<add>/**
<add> * _finished
<add> *
<add> * This shell is perpetual, setting this property to true exits the process
<add> *
<add> * @var mixed
<add> */
<add> protected $_fin... | 1 |
Javascript | Javascript | add unit test | d7bc95f7cdda6b2b887f9fe89ccecbedf0d16193 | <ide><path>test/ModuleFilenameHelpers.unittest.js
<add>"use strict";
<add>
<add>const { createFilename } = require("../lib/ModuleFilenameHelpers");
<add>const { createFsFromVolume, Volume } = require("memfs");
<add>const path = require("path");
<add>
<add>let webpack;
<add>
<add>const createSimpleCompiler = progressOpt... | 1 |
PHP | PHP | add test to check model scopes are accessible | 3276dc36f7540fae5197173c35937f9e0046bcef | <ide><path>tests/Integration/Database/EloquentWhereHasMorphTest.php
<ide> public function testOrWhereDoesntHaveMorph()
<ide>
<ide> $this->assertEquals([1, 2, 3], $comments->pluck('id')->all());
<ide> }
<add>
<add> public function testModelScopesAreAccessible()
<add> {
<add> $comments = Comment... | 1 |
Text | Text | reword sentences in contributing docs for clarity | 0fcef173d408022e59cd8825da79106c01f6c65c | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> As a next step beyond reporting issues, you can help the core team resolve exist
<ide>
<ide> For starters, it helps just to verify bug reports. Can you reproduce the reported issue on your own computer? If so, you can add a comment to the issue saying tha... | 1 |
Text | Text | correct a small typo in exceptions documentation | 0c02bbbfa728267909ea73aeac57b2e99aba5857 | <ide><path>docs/api-guide/exceptions.md
<ide> Any example validation error might look like this:
<ide>
<ide> You can implement custom exception handling by creating a handler function that converts exceptions raised in your API views into response objects. This allows you to control the style of error responses used ... | 1 |
Mixed | Javascript | support util.promisify for fs.read/fs.write | fbcb4f50b81cc57774998b2c3172626b6e4288be | <ide><path>doc/api/fs.md
<ide> If `position` is `null`, data will be read from the current file position.
<ide>
<ide> The callback is given the three arguments, `(err, bytesRead, buffer)`.
<ide>
<add>If this method is invoked as its [`util.promisify()`][]ed version, it returns
<add>a Promise for an object with `bytes... | 3 |
Text | Text | add note for next-connect-redux | bdd5b9ef3d25fb35fde33966520474c5fc4ec894 | <ide><path>examples/with-redux/README.md
<ide> Our page is located at `pages/index.js` so it will map the route `/`. To get the
<ide>
<ide> For safety it is recommended to wrap all pages, no matter if they use Redux or not, so that you should not care about it anymore in all child components.
<ide>
<del>`withRedux` f... | 1 |
Go | Go | make client.notfound error match errdefs.notfound | 5d8ece522b4e0509fe5e8267977c229ee62ccaf4 | <ide><path>client/errors.go
<ide> func ErrorConnectionFailed(host string) error {
<ide>
<ide> type notFound interface {
<ide> error
<del> NotFound() bool // Is the error a NotFound error
<add> NotFound()
<ide> }
<ide>
<ide> // IsErrNotFound returns true if the error is a NotFound error, which is returned
<ide> type ... | 1 |
Text | Text | add v3.16.1 to changelog.md | e3b272e01914c8149a66dd06f83e8122fe82daa4 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#18688](https://github.com/emberjs/ember.js/pull/18688) / [#18621](https://github.com/emberjs/ember.js/pull/18621) Updates Glimmer-VM to v0.46
<ide>
<add>### v3.16.1 (January 31, 2020)
<add>
<add>- [#18691](https://github.com/emberjs/ember.js/pull/18691) [BUGFIX] Updated `compon... | 1 |
Text | Text | use code markup/markdown in headers | 7034a3e68d3281548e9410a5a9b2bb73923a96fd | <ide><path>doc/api/stream.md
<ide> myStream.write('some more data');
<ide> myStream.end('done writing data');
<ide> ```
<ide>
<del>#### Class: stream.Writable
<add>#### Class: `stream.Writable`
<ide> <!-- YAML
<ide> added: v0.9.4
<ide> -->
<ide>
<ide> <!--type=class-->
<ide>
<del>##### Event: 'close'
<add>##### Even... | 1 |
Javascript | Javascript | fix travis ci issues with resize-manager tests | 3744df168009f064f4056f766edd08d29bae7bb9 | <ide><path>src/js/resize-manager.js
<ide> class ResizeManager extends Component {
<ide> this.resizeObserver_ = null;
<ide> this.debouncedHandler_ = debounce(() => {
<ide> this.resizeHandler();
<del> }, 100, false, player);
<add> }, 100, false, this);
<ide>
<ide> if (RESIZE_OBSERVER_AVAILABLE) {... | 1 |
Python | Python | add service_account to google ml engine operator | 2d854c3505ccad66e9a7d94267e51bed800433c2 | <ide><path>airflow/providers/google/cloud/operators/mlengine.py
<ide> class MLEngineStartTrainingJobOperator(BaseOperator):
<ide> :param job_dir: A Google Cloud Storage path in which to store training
<ide> outputs and other data needed for training. (templated)
<ide> :type job_dir: str
<add> :param ... | 2 |
Python | Python | fix typo in docs for error_handler_spec | c021e58775eaf8e2dc7a91c903dc1c95dc18e829 | <ide><path>flask/app.py
<ide> def __init__(self, import_name, static_path=None, static_url_path=None,
<ide> #: A dictionary of all registered error handlers. The key is `None`
<ide> #: for error handlers active on the application, otherwise the key is
<ide> #: the name of the blueprint. Each k... | 1 |
PHP | PHP | fix minor spelling error | 8c7d2dc9842f72344cd44dd75e45e3a921e50046 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> public function getResults()
<ide> public function get($columns = ['*'])
<ide> {
<ide> // First we'll add the proper select columns onto the query so it is run with
<del> // the proper columns. Then, we will get the res... | 1 |
Go | Go | remove bash dependency from testrunsetmacaddress | c1a54048e241bd565feabf274b79dfac61c396d4 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func TestRunNetworkNotInitializedNoneMode(t *testing.T) {
<ide>
<ide> func TestRunSetMacAddress(t *testing.T) {
<ide> mac := "12:34:56:78:9a:bc"
<del> cmd := exec.Command("/bin/bash", "-c", dockerBinary+` run -i --rm --mac-address=`+mac+` busybox /bin/sh -c "ip ... | 1 |
Text | Text | add docs for casks that use git urls | 237a4181c08de37d87966a68f3f7aeaf9ce9c414 | <ide><path>docs/Cask-Cookbook.md
<ide> In rare cases, a distribution may not be available over ordinary HTTP/S. Subvers
<ide> | `revision:` | a string identifying the subversion revision to download
<ide> | `trust_cert:` | set to `true` to automatically trust the certificate presented by the server (avoidin... | 1 |
Javascript | Javascript | expose manifest.js.map during development | 4757836a67c58e2dfe2d1dce645e69399dc92b5b | <ide><path>server/index.js
<ide> export default class Server {
<ide> await this.serveStatic(req, res, p)
<ide> },
<ide>
<add> '/_next/:buildId/manifest.js.map': async (req, res, params) => {
<add> if (!this.dev) return this.send404(res)
<add>
<add> this.handleBuildId(params.buildId, re... | 1 |
PHP | PHP | fix more strict errors | a7fcb0a61c84a08567beded1e1c329859d97385f | <ide><path>lib/Cake/Core/App.php
<ide> protected static function _loadClass($name, $plugin, $type, $originalType, $pare
<ide> * @param boolean $return whether this function should return the contents of the file after being parsed by php or just a success notice
<ide> * @return mixed if $return contents of the file a... | 4 |
PHP | PHP | apply fixes from styleci | c7278f172ecd0447f6f6ce21516bd48273d7c9b7 | <ide><path>src/Illuminate/View/Concerns/ManagesLoops.php
<ide> trait ManagesLoops
<ide> public function addLoop($data)
<ide> {
<ide> $length = is_countable($data) && ! $data instanceof LazyCollection
<del> ? count($data)
<add> ? count($data)
<ide> ... | 1 |
Text | Text | remove redundant items from 1.4.3 changes | 528cedaa0cff894c6123526ef511b06f52b2f2f9 | <ide><path>CHANGELOG.md
<ide> - **$animateCss:** ensure animations execute if only a keyframeStyle is provided
<ide> ([97d79eec](https://github.com/angular/angular.js/commit/97d79eec80092f5fae3336c23aa881a72436de55),
<ide> [#12124](https://github.com/angular/angular.js/issues/12124), [#12340](https://github.com/an... | 1 |
Python | Python | add the oauth2authentication class | da9d7fb8ec19f289d9d2777738a45007c41a1289 | <ide><path>rest_framework/authentication.py
<ide> from django.utils.encoding import DjangoUnicodeDecodeError
<ide> from rest_framework import exceptions, HTTP_HEADER_ENCODING
<ide> from rest_framework.compat import CsrfViewMiddleware
<add>from rest_framework.compat import oauth2_provider, oauth2
<ide> from rest_framewo... | 2 |
Ruby | Ruby | fix coverage on travis ci | 5768e32ad20208e8c5c1029ef2c9b47abd2caa2d | <ide><path>Library/Homebrew/dev-cmd/test-bot.rb
<ide> def homebrew
<ide>
<ide> if @tap.nil?
<ide> tests_args = []
<add> tests_args_coverage = []
<ide> if RUBY_TWO
<ide> tests_args << "--official-cmd-taps"
<del> tests_args << "--coverage" if ENV["TRAVIS"]
<add> t... | 1 |
Javascript | Javascript | add test coverage for readcontext() on the server | fe2ecd276e9b9e57a49ddf2d86ff01677b69b493 | <ide><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationNewContext-test.js
<ide> describe('ReactDOMServerIntegration', () => {
<ide> });
<ide>
<ide> describe('context', function() {
<del> let PurpleContext, RedContext, Consumer;
<add> let Context, PurpleContextProvider, RedContextProvider, Consu... | 1 |
Text | Text | use kbd element in readline doc prose | dd43715caaffcfe2dafddd3e792cc0fb2b7b9d20 | <ide><path>doc/api/readline.md
<ide> added: v0.1.98
<ide>
<ide> The `'line'` event is emitted whenever the `input` stream receives an
<ide> end-of-line input (`\n`, `\r`, or `\r\n`). This usually occurs when the user
<del>presses the `<Enter>`, or `<Return>` keys.
<add>presses <kbd>Enter</kbd> or <kbd>Return</kbd>.
<i... | 1 |
Javascript | Javascript | add sigint kill script | 020a25bb4f4bd6fda898fa7a6dcb819b0893cf51 | <ide><path>server/server.js
<ide> if (process.env.OPBEAT_ID) {
<ide> });
<ide> }
<ide>
<del>var _ = require('lodash'),
<del> Rx = require('rx'),
<del> loopback = require('loopback'),
<del> boot = require('loopback-boot'),
<del> expressState = require('express-state'),
<del> path = require('path'),
<de... | 1 |
Go | Go | add lxc version to docker info in debug mode | 921c6994b1ad41c940bdb08732225b8db74b68f2 | <ide><path>api_params.go
<ide> type APIInfo struct {
<ide> Debug bool
<ide> Containers int
<ide> Images int
<del> NFd int `json:",omitempty"`
<del> NGoroutines int `json:",omitempty"`
<del> MemoryLimit bool `json:",omitempty"`
<del> SwapLimit bool `json:",omitempty"`
<add> NFd int ... | 3 |
Ruby | Ruby | add missing file for revision | aaccd182ea3935b8fa2fd9965a0c6d57ec380a98 | <ide><path>activerecord/lib/active_record/serializers/xml_serializer.rb
<ide> module Serialization
<ide> # <id type="integer">1</id>
<ide> # <rating type="integer">1</rating>
<ide> # <name>37signals</name>
<del> # <clients>
<add> # <clients type="array">
<ide> # <client>
... | 1 |
Python | Python | expand test to locate flakiness | d3adb985d1fb97f68acc2e4b8ae54f2bfca05fda | <ide><path>tests/test_trainer.py
<ide> def test_training_arguments_are_left_untouched(self):
<ide> trainer = get_regression_trainer()
<ide> trainer.train()
<ide> args = TrainingArguments("./regression")
<del> self.assertEqual(args.to_dict(), trainer.args.to_dict())
<add> dict1, dic... | 1 |
Javascript | Javascript | set clientopts.port property | 7a33c2cc7cb7710973d57f9f95c216fb55ef5915 | <ide><path>test/parallel/test-tls-cnnic-whitelist.js
<ide> const testCases = [
<ide> rejectUnauthorized: true,
<ide> ca: [loadPEM('fake-cnnic-root-cert')]
<ide> },
<del> errorCode: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
<add> errorCode: 'CERT_HAS_EXPIRED'
<ide> },
<ide> // Test 1: for the fix of no... | 1 |
Java | Java | use metadata slice | e2baf7277bdfa8b4a4da34fb0f0853413bec1a8f | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultMetadataExtractor.java
<ide> public Map<String, Object> extract(Payload payload, MimeType metadataMimeType) {
<ide> }
<ide> }
<ide> else {
<del> extractEntry(payload.metadata(), metadataMimeType.toString(), result);
<add> ... | 2 |
Python | Python | fix convolutional tests | efe5916109e220a429a2cff110edb952d747466f | <ide><path>keras/layers/convolutional.py
<ide> def __init__(self, nb_filter, filter_length,
<ide>
<ide> self.W_constraint = constraints.get(W_constraint)
<ide> self.b_constraint = constraints.get(b_constraint)
<del> self.constraints = [self.W_constraint, self.b_constraint]
<ide>
<ide> s... | 2 |
Java | Java | add marble diagrams to the single.delay method | fd76594dc7e19d4da889613f2d9afdf6043879b9 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public final Flowable<T> concatWith(SingleSource<? extends T> other) {
<ide> /**
<ide> * Delays the emission of the success signal from the current Single by the specified amount.
<ide> * An error signal will not be delayed.
<add> * <p>
<add> ... | 1 |
Python | Python | fix mistaken word in nanprod docstring | fa54e448d759fb0265c8ef95caae4fd97233ce9f | <ide><path>numpy/lib/nanfunctions.py
<ide> def nanprod(a, axis=None, dtype=None, out=None, keepdims=np._NoValue):
<ide> Parameters
<ide> ----------
<ide> a : array_like
<del> Array containing numbers whose sum is desired. If `a` is not an
<add> Array containing numbers whose product is desired... | 1 |
Ruby | Ruby | fix button tag without options | 4a7c8ef793dd5b13026efcc4a5a004bf96b0d1ea | <ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb
<ide> def submit_tag(value = "Save changes", options = {})
<ide> # # => <button data-disable-with="Please wait..." name="button" type="submit">Checkout</button>
<ide> #
<ide> def button_tag(content_or_options = nil, options = nil, &blo... | 1 |
Javascript | Javascript | fix webcrypto generatekey() with empty usages | 677bd668b7a0b2141fa01e9b4760c8f5fa98e1d9 | <ide><path>lib/internal/crypto/webcrypto.js
<ide> async function generateKey(
<ide> algorithm = normalizeAlgorithm(algorithm);
<ide> validateBoolean(extractable, 'extractable');
<ide> validateArray(keyUsages, 'keyUsages');
<add> if (keyUsages.length === 0) {
<add> throw lazyDOMException(
<add> 'Usages ca... | 3 |
Python | Python | pass historical masks using the taps of scan | 7278db105dc3ae1d4c1e38b497e54c863a7836e3 | <ide><path>keras/layers/recurrent.py
<ide> from ..layers.core import Layer, default_mask_val
<ide> from six.moves import range
<ide>
<add>def get_mask(X, mask_val, steps_back=0):
<add> '''
<add> Given X, a (timesteps, nb_samples, n_dimensions) tensor, returns a mask
<add> tensor with dimension (times... | 1 |
Ruby | Ruby | add test run by line, and report error by line | ff0a7611cf912ce7ae32966cc42da5dbdff3a0bc | <ide><path>railties/lib/rails/commands/test.rb
<ide> ENV["RAILS_ENV"] = "test"
<del>
<ide> require "rails/test_unit/runner"
<del>options = Rails::TestRunner::Options.parse(ARGV)
<add>require "rails/test_unit/reporter"
<ide>
<add>options = Rails::TestRunner::Options.parse(ARGV)
<ide> $: << File.expand_path("../../test"... | 3 |
Text | Text | use sentence case for headers in building.md | e0ac501b92c20c3f112b7edca68c419801824d6f | <ide><path>BUILDING.md
<ide> If you can reproduce a test failure, search for it in the
<ide> [Node.js issue tracker](https://github.com/nodejs/node/issues) or
<ide> file a new issue.
<ide>
<del>## Table of Contents
<add>## Table of contents
<ide>
<ide> * [Supported platforms](#supported-platforms)
<ide> * [Input](#... | 1 |
Text | Text | fix changelog.md table formatting | f3f2468bdc414e2c57af9a8c767e04bf5e4c4c93 | <ide><path>CHANGELOG.md
<ide> release.
<ide>
<ide> <table>
<ide> <tr>
<del> <th><a href="doc/changelogs/CHANGELOG_V7.md">v7</a><sup>Current</sup></td>
<del> <th title="LTS Until 2019-04"><a href="doc/changelogs/CHANGELOG_V6.md">v6</a><sup>LTS</sup</th>
<del> <th><a href="doc/changelogs/CHANGELOG_V5.md">v5</a></th>
... | 1 |
Python | Python | fix bug in test_dtype_with_converters_and_usecols | 4b1aab31cc66d4a5abd3d2d6b40e461cadd79d2a | <ide><path>numpy/lib/tests/test_io.py
<ide> def test_dtype_with_converters(self):
<ide> def test_dtype_with_converters_and_usecols(self):
<ide> dstr = "1,5,-1,1:1\n2,8,-1,1:n\n3,3,-2,m:n\n"
<ide> dmap = {'1:1':0, '1:n':1, 'm:1':2, 'm:n':3}
<del> dtyp = [('E1','i4'),('E2','i4'),('E3','i2'),('N... | 1 |
Javascript | Javascript | treat thrown errors as regular rejections | e13eeabd7e34a78becec06cfbe72c23f2dcb85f9 | <ide><path>lib/promises-aplus/promises-aplus-test-adapter.js
<ide> minErr,
<ide> extend
<ide> */
<del>/* eslint-disable no-unused-vars */
<ide>
<del>var isFunction = function isFunction(value) {return typeof value === 'function';};
<del>var isPromiseLike = function isPromiseLike(obj) {return obj && isFunction(obj.th... | 9 |
Python | Python | call mapped_dependants only on the original task | 30ac99773c8577718c87703a310ffc454316cfce | <ide><path>airflow/jobs/backfill_job.py
<ide> class _DagRunTaskStatus:
<ide>
<ide> def __init__(
<ide> self,
<del> dag,
<add> dag: DAG,
<ide> start_date=None,
<ide> end_date=None,
<ide> mark_success=False,
<ide> def _manage_executor_state(
<ide> :param running:... | 4 |
PHP | PHP | drop index before columns | ca74f37573b8c223c010414fe1910d4596544db2 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function dropRememberToken()
<ide> */
<ide> public function dropMorphs($name, $indexName = null)
<ide> {
<del> $this->dropColumn("{$name}_type", "{$name}_id");
<del>
<ide> $indexName = $indexName ?: $this->createIndexName('... | 4 |
Javascript | Javascript | remove dead code | 4536128e7c9218f478354292f30720b39f6f4060 | <ide><path>lib/_stream_readable.js
<ide> function copyFromBuffer(n, list) {
<ide> function endReadable(stream) {
<ide> var state = stream._readableState;
<ide>
<del> // If we get here before consuming all the bytes, then that is a
<del> // bug in node. Should never happen.
<del> if (state.length > 0)
<del> th... | 1 |
Go | Go | use httperror in a separate test | df697b4318f533556a2e9351d5995b2d1991ae5a | <ide><path>api_test.go
<ide> import (
<ide> "bufio"
<ide> "bytes"
<ide> "encoding/json"
<add> "fmt"
<ide> "github.com/dotcloud/docker/utils"
<ide> "io"
<ide> "net"
<ide> "net/http"
<ide> "net/http/httptest"
<ide> "os"
<ide> "path"
<add> "strings"
<ide> "testing"
<ide> "time"
<ide> )
<ide> func TestGetBoolPa... | 1 |
PHP | PHP | fix cs errors | 1d488cca3d4fdf309b1d0f80f5e049700b40c385 | <ide><path>src/Controller/ErrorController.php
<ide> */
<ide> namespace Cake\Controller;
<ide>
<del>use Cake\Routing\Router;
<ide> use Cake\Event\Event;
<add>use Cake\Routing\Router;
<ide>
<ide> /**
<ide> * Error Handling Controller
<ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
<ide>... | 4 |
Javascript | Javascript | move docsearch styles before headcomponents | 1232ccbc0ff6c5d9e80de65cefb352c404973e2f | <ide><path>website/src/html.js
<ide> export default function HTML(props) {
<ide> name="viewport"
<ide> content="width=device-width, initial-scale=1, shrink-to-fit=no"
<ide> />
<del> {props.headComponents}
<ide> <link
<ide> ... | 1 |
Javascript | Javascript | add empty tagname to avoid unnecessary div-tag | 6069bb4e65e1272bb7d5d46307387c73ddb89775 | <ide><path>packages/ember-htmlbars/tests/helpers/each_test.js
<ide> QUnit.test("it supports itemController", function() {
<ide> strictEqual(view.childViews[0].get('_arrayController.target'), parentController, "the target property of the child controllers are set correctly");
<ide> });
<ide>
<add>QUnit.test("itemCont... | 2 |
Ruby | Ruby | remove unused require | 064b7f6082773f88f216c3aaab38645a364a1395 | <ide><path>actionview/lib/action_view/helpers/sanitize_helper.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "rails-html-sanitizer"
<del>require "active_support/deprecation"
<ide>
<ide> module ActionView
<ide> # = Action View Sanitize Helpers | 1 |
Ruby | Ruby | use parser to parse args | 92263f51e97daf1005836069625da2ced2e304a6 | <ide><path>Library/Homebrew/dev-cmd/update-test.rb
<ide> #: If `--keep-tmp` is passed, retain the temporary directory containing
<ide> #: the new repository clone.
<ide>
<add>require "cli_parser"
<add>
<ide> module Homebrew
<ide> module_function
<ide>
<ide> def update_test
<add> args = Homebrew::CLI::Par... | 1 |
Javascript | Javascript | fix process.title expectation | 2306acfd944f798aec2668cc2190b65ac1516e78 | <ide><path>test/debugger/test-debugger-repl.js
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide> const repl = require('./helper-debugger-repl.js');
<ide>
<ide> repl.startDebugger('breakpoints.js');
<ide> addTest('c', [
<ide>
<ide> // Execute
<ide> addTest('exec process.tit... | 1 |
PHP | PHP | add language entry for starts_with rule | 78cb2685aade6416db81222f6f9b09edf9cdbb9c | <ide><path>resources/lang/en/validation.php
<ide> 'string' => 'The :attribute must be :size characters.',
<ide> 'array' => 'The :attribute must contain :size items.',
<ide> ],
<add> 'starts_with' => 'The :attribute must start with one of the following: :values',
<ide> 'string' => 'The :attrib... | 1 |
Python | Python | fix adversarial training with recent shape changes | e8dd2bf3dd6d8290cd785bf52310a67d3c7d5cc0 | <ide><path>research/adversarial_text/adversarial_losses.py
<ide> def virtual_adversarial_loss(logits, embedded, inputs,
<ide> between the new logits and the original logits.
<ide>
<ide> Args:
<del> logits: 2-D float Tensor, [num_timesteps*batch_size, m], where m=1 if
<add> logits: 3-D float Tensor, [batch_si... | 3 |
Text | Text | standardize git remote names | 91aff68a2548382e1b8b68677321e95d8124f061 | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> Navigate to the Rails [GitHub repository](https://github.com/rails/rails) and pr
<ide> Add the new remote to your local repository on your local machine:
<ide>
<ide> ```bash
<del>$ git remote add mine https://github.com/<your user name>/rails.git
<add>$ g... | 1 |
PHP | PHP | setup additional configuration for slack client | d0d1596464794a37a81b894869b3c23047a61ee5 | <ide><path>src/Illuminate/Notifications/Channels/SlackWebhookChannel.php
<ide> protected function buildJsonPayload(SlackMessage $message)
<ide> 'channel' => data_get($message, 'channel'),
<ide> ]);
<ide>
<del> return [
<add> $payload = [
<ide> 'json' => array_merge([
<ide>... | 2 |
Javascript | Javascript | add rntester cases for animated easing api | b440ab9784d50195fc1e5f52592e4543f549cd9d | <ide><path>packages/rn-tester/js/RNTesterAppShared.js
<ide> import * as React from 'react';
<ide>
<ide> import RNTesterModuleContainer from './components/RNTesterModuleContainer';
<ide> import RNTesterModuleList from './components/RNTesterModuleList';
<del>import RNTesterNavBar from './components/RNTesterNavbar';
<add... | 4 |
Javascript | Javascript | return typeerror on invalid resolve() input | 758a17f1d5f5985f6d5e3823e0c4759e78252c52 | <ide><path>lib/dns.js
<ide> resolveMap.NAPTR = resolver('queryNaptr');
<ide> resolveMap.SOA = resolver('querySoa');
<ide>
<ide>
<del>function resolve(hostname, type_, callback_) {
<del> var resolver, callback;
<del> if (typeof type_ === 'string') {
<del> resolver = resolveMap[type_];
<del> callback = callback... | 2 |
Javascript | Javascript | fix usage of writebuffer in makesyncwrite | 67b5985c0800b3cfaef5947e2cb6ef61c8cf49f8 | <ide><path>lib/internal/errors.js
<ide> function message(key, args) {
<ide> * @returns {Error}
<ide> */
<ide> function uvException(ctx) {
<del> const err = new Error();
<add> const [ code, uvmsg ] = errmap.get(ctx.errno);
<add> let message = `${code}: ${uvmsg}, ${ctx.syscall}`;
<add>
<add> let path;
<add> let de... | 2 |
PHP | PHP | add test for | 4e1e4f84fe426b7a31273068ff69aba9f1e6a9e1 | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> public function testFindLastOnEmptyTable()
<ide> $this->assertNull($table->find()->last());
<ide> }
<ide>
<add> /**
<add> * Tests calling contain in a nested closure
<add> *
<add> * @see https://github.com/cakephp/cakephp/issues/759... | 1 |
Python | Python | add tag map for french and italian | 3cef901834e25bb3b7033e606a9332855c45ca82 | <ide><path>spacy/lang/fr/__init__.py
<ide>
<ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS, TOKEN_MATCH
<ide> from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_INFIXES
<add>from .tag_map import TAG_MAP
<ide> from .stop_words import STOP_WORDS
<ide> from .lex_attrs import LEX_ATTRS
<ide> from .lemmati... | 4 |
Java | Java | fix root_path constant to match recent changes | 67e482aaf898876080c1b36634ed711c0a41267d | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/DefaultPathSegmentContainer.java
<ide> class DefaultPathSegmentContainer implements PathSegmentContainer {
<ide> new DefaultPathSegmentContainer("", Collections.emptyList());
<ide>
<ide> private static final PathSegmentContainer ROOT_PATH... | 2 |
Mixed | Text | fix wrong doc and message about rails profiler | 0f47c496781fda4ce35f79bea9fb03e6b29c1867 | <ide><path>guides/source/performance_testing.md
<ide> Usage: rails profiler 'Ruby.code' 'Ruby.more_code' ... [OPTS]
<ide> Default: 1
<ide> -o, --output PATH Directory to use when writing the results.
<ide> Default: tmp/performa... | 2 |
Go | Go | remove unused mounted function in overlay | 5cc082473068b00dee123f8388a79d7a48842a57 | <ide><path>daemon/graphdriver/overlay/overlay.go
<ide> func (d *Driver) Get(id string, mountLabel string) (s string, err error) {
<ide> return mergedDir, nil
<ide> }
<ide>
<del>func (d *Driver) mounted(dir string) (bool, error) {
<del> return graphdriver.Mounted(graphdriver.FsMagicOverlay, dir)
<del>}
<del>
<ide> // ... | 1 |
PHP | PHP | remove iron config. moved to package | 36db347a0c5f4088ee1befe81cf735aa65dd5149 | <ide><path>config/queue.php
<ide> | syntax for each one. Here you may set the default queue driver.
<ide> |
<ide> | Supported: "null", "sync", "database", "beanstalkd",
<del> | "sqs", "iron", "redis"
<add> | "sqs", "redis"
<ide> |
<ide> */
<ide>
<ide> 'region... | 1 |
Text | Text | add mlm pretraining xla torch readme | 16c0efca2c307aabc4d338c807f19a27ae0790f4 | <ide><path>examples/flax/language-modeling/README.md
<ide> This should take less than 18 hours.
<ide> Training statistics can be accessed on [tfhub.de](https://tensorboard.dev/experiment/GdYmdak2TWeVz0DDRYOrrg).
<ide>
<ide> For a step-by-step walkthrough of how to do masked language modeling in Flax, please have a
<d... | 2 |
Ruby | Ruby | remove unused variables | 7adef79e1413db36f25a363f96136a1df85ea1a2 | <ide><path>actionpack/test/controller/live_stream_test.rb
<ide> def test_abort_with_full_buffer
<ide> t = Thread.new(@response) { |resp|
<ide> resp.await_commit
<ide> _, _, body = resp.to_a
<del> body.each do |part|
<add> body.each do
<ide> @controller.latch.wait
<ide> ... | 1 |
Text | Text | fix broken links in readme | 50b206d3739660cdf089b0a3f8a5bb21d6970e00 | <ide><path>README.md
<ide> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<ide> [sandbox]: http://restframework.herokuapp.com/
<ide>
<ide> [index]: http://www.django-rest-framework.org/
<del>[oauth1-section]: http://www.django-rest-framework.org/api-guide/authentication.html#oauthauthentication
<... | 1 |
Mixed | Javascript | accept `lookup` option for `tls.connect()` | e600fbe576e7806a01e11708b65830aeae96b590 | <ide><path>doc/api/tls.md
<ide> decrease overall server throughput.
<ide> <!-- YAML
<ide> added: v0.11.3
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/12839
<add> description: The `lookup` option is supported now.
<ide> - version: REPLACEME
<ide> pr-url: https:... | 3 |
Javascript | Javascript | fix reference to root global context | 94728125696ce05f5308ccbc111874e9fa936936 | <ide><path>lib/module.js
<ide> Module.prototype._compile = function (content, filename) {
<ide> sandbox.__filename = filename;
<ide> sandbox.__dirname = dirname;
<ide> sandbox.module = self;
<del> sandbox.root = sandbox;
<add> sandbox.root = global;
<ide>
<ide> S... | 1 |
Ruby | Ruby | fix 1.8.6 compatibilty issue | 1e51ccb30d0a8bcbbb843d2cff1739cfdc94e38b | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def can_cleanup?
<ide> elsif opt_prefix.directory?
<ide> # SHA records were added to INSTALL_RECEIPTS the same day as opt symlinks
<ide> !Formula.installed.
<del> select{ |ff| ff.deps.map(&:to_s).include? name }.
<add> select{ |ff| ff.deps.m... | 1 |
PHP | PHP | add test to increase coverage | 5428f608b1d533e189a209e142a12aa9ae5ebc75 | <ide><path>tests/TestCase/ORM/Association/HasManyTest.php
<ide> public function testSaveAssociatedEmptySetWithReplaceStrategyRemovesAssociatedRe
<ide> ]);
<ide> $this->assertEmpty($entity->get('comments'));
<ide> }
<add>
<add> /**
<add> * Tests that providing an invalid strategy throws an exc... | 1 |
Javascript | Javascript | fix code style in todomvc flux example | bc11793c04236270996f506e7bd4b6bceddc9543 | <ide><path>examples/todomvc-flux/js/components/Header.react.js
<ide> var Header = React.createClass({
<ide> * @param {string} text
<ide> */
<ide> _onSave: function(text) {
<del> if(text.trim()){
<add> if (text.trim()){
<ide> TodoActions.create(text);
<ide> }
<del>
<add>
<ide> }
<ide>
<ide... | 1 |
Ruby | Ruby | add a test case for the scope enum adds | 09447929a06a4650d82ed51af56e3365ec7583a6 | <ide><path>activerecord/test/cases/enum_test.rb
<ide> class StoreTest < ActiveRecord::TestCase
<ide> assert_equal :proposed, @book.status
<ide> end
<ide>
<add> test "find via scope" do
<add> assert_equal @book, Book.proposed.first
<add> end
<add>
<ide> test "update by declaration" do
<ide> @book.writt... | 1 |
Java | Java | improve javadoc in annotatedelementutils | 2c5781473c25a80d48a4d7517b0e1b95636c5777 | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java
<ide> public static AnnotatedElement forAnnotations(Annotation... annotations) {
<ide> * @param element the annotated element
<ide> * @param annotationType the annotation type on which to find meta-annotations
<ide> ... | 1 |
Ruby | Ruby | fix a typo in `time_field` [ci skip] | 29bfd950120ff8b709f8f1516e828ac15e431850 | <ide><path>actionview/lib/action_view/helpers/form_helper.rb
<ide> def date_field(object_name, method, options = {})
<ide> # Returns a text_field of type "time".
<ide> #
<ide> # The default value is generated by trying to call +strftime+ with "%T.%L"
<del> # on the objects's value. It is still po... | 1 |
Java | Java | improve basetestconsumer with awaitcount & timeout | a86425a047c82286db0dfb3dce955b283039f59f | <ide><path>src/main/java/io/reactivex/internal/util/VolatileSizeArrayList.java
<add>/**
<add> * Copyright (c) 2016-present, RxJava Contributors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
<add> * compliance with the License. You may obtain a copy ... | 4 |
Ruby | Ruby | move contenttype inline for now. | d58b57a3caf4ad434c2be4f63eecd9a1921c7c4a | <ide><path>actionpack/lib/action_controller/new_base.rb
<ide> module ActionController
<del> autoload :ContentType, "action_controller/new_base/content_type"
<ide> autoload :HideActions, "action_controller/new_base/hide_actions"
<ide> autoload :Http, "action_controller/new_base/bas... | 4 |
Python | Python | prevent modification of coefficients | 0ea21d1092c9154d72d50b04ba2c8025704c679f | <ide><path>numpy/lib/polynomial.py
<ide> class poly1d(object):
<ide> @property
<ide> def coeffs(self):
<ide> """ The polynomial coefficients """
<del> return self._coeffs
<add> return self._coeffs.copy()
<ide>
<ide> @property
<ide> def variable(self): | 1 |
Text | Text | create changing columns on migrations guides | 9477f4372fac1a18aad6fbce249a1bfc03e0b61f | <ide><path>guides/source/migrations.md
<ide> end
<ide> removes the `description` and `name` columns, creates a `part_number` string
<ide> column and adds an index on it. Finally it renames the `upccode` column.
<ide>
<add>### Changing Columns
<add>
<add>Like the `remove_column` and `add_column` Rails provides the `cha... | 1 |
PHP | PHP | formalize current deprecations | 7667c927c9b6caee10dcc8d58b2ba1db6540406f | <ide><path>src/Cache/Cache.php
<ide> protected static function _buildEngine(string $name): void
<ide> */
<ide> public static function engine(string $config)
<ide> {
<add> deprecationWarning('Cache::engine() is deprecated. Use Cache::pool() instead.');
<add>
<ide> return static::pool($config)... | 18 |
Text | Text | translate 03 to korean | f0afc7809a602cbc27af3b0676e31c89f1cdf671 | <ide><path>docs/docs/03-interactivity-and-dynamic-uis.ko-KR.md
<add>---
<add>id: interactivity-and-dynamic-uis
<add>title: Interactivity and Dynamic UIs
<add>permalink: interactivity-and-dynamic-uis.ko-KR.html
<add>prev: jsx-gotchas.ko-KR.html
<add>next: multiple-components.ko-KR.html
<add>---
<add>
<add>이미 React에서 [어떻... | 1 |
Javascript | Javascript | update code to pass lint | d5a7cf39bb431cf4f75bc1ec8aa7c7c1cb8c81f8 | <ide><path>bin/webpack.js
<ide> function processOptions(options) {
<ide> console.error("\u001b[1m\u001b[31m" + e.message + "\u001b[39m\u001b[22m");
<ide> else
<ide> console.error(e.message);
<del> process.exit(1);
<add> process.exit(1); // eslint-disable-line no-process-exit
<ide> }
<ide> throw e;
<i... | 6 |
Text | Text | add abouthiroppy to collaborators | 04da44afd0e93f73fb702e7ef7b77cdc943917a1 | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide>
<ide> ### Collaborators
<ide>
<add>* [abouthiroppy](https://github.com/abouthiroppy) -
<add>**Yuta Hiroto** <hello@about-hiroppy.com>
<ide> * [ak239](https://github.com/ak239) -
<ide> **Aleksei Koziatinskii** <... | 1 |
Javascript | Javascript | convert 4 remaining languages to locale | 1d916a375b54d4645a280332c88c18f61a93f68a | <add><path>locale/af.js
<del><path>lang/af.js
<del>// moment.js language configuration
<del>// language : afrikaans (af)
<add>// moment.js locale configuration
<add>// locale : afrikaans (af)
<ide> // author : Werner Mollentze : https://github.com/wernerm
<ide>
<ide> (function (factory) {
<ide> factory(window.... | 8 |
PHP | PHP | allow listener for core event | 2f158e113506130561c484bcd0ea5a8f959393cb | <ide><path>src/Illuminate/Foundation/Console/ListenerMakeCommand.php
<ide> protected function buildClass($name)
<ide>
<ide> $event = $this->option('event');
<ide>
<del> if (! Str::startsWith($event, $this->laravel->getNamespace())) {
<add> if (! Str::startsWith($event, $this->laravel->getNamespa... | 1 |
PHP | PHP | correct doc block | 783c783391e40a476fb08a9218f91a5b82d0e639 | <ide><path>src/Routing/Router.php
<ide> public static function parseNamedParams(Request $request, array $options = []) {
<ide> *
<ide> * @param string $path The path prefix for the scope. This path will be prepended
<ide> * to all routes connected in the scoped collection.
<del> * @param array $params An array of ... | 1 |
Python | Python | fix resnet breakage and add keras end-to-end tests | 8367cf6dabe11adf7628541706b660821f397dce | <ide><path>official/recommendation/ncf_test.py
<ide> from official.recommendation import neumf_model
<ide> from official.recommendation import ncf_common
<ide> from official.recommendation import ncf_estimator_main
<add>from official.recommendation import ncf_keras_main
<add>from official.utils.testing import integrati... | 6 |
Text | Text | add changelog entry for e1ceb10 | 876865aba7c0ca2c069ff4be88e9916f5f0f28bd | <ide><path>activerecord/CHANGELOG.md
<add>* Undefine attribute methods on descendants when resetting column
<add> information.
<add>
<add> *Chris Salzberg*
<add>
<ide> * Log database query callers
<ide>
<ide> Add `verbose_query_logs` configuration option to display the caller | 1 |
Python | Python | update taskgroup typing | 33af2b19a210e1041ac93b563123d41a29a4d637 | <ide><path>airflow/utils/task_group.py
<ide> def set_upstream(self, task_or_task_list: Union[TaskMixin, Sequence[TaskMixin]])
<ide> """Set a TaskGroup/task/list of task upstream of this TaskGroup."""
<ide> self._set_relative(task_or_task_list, upstream=True)
<ide>
<del> def __enter__(self):
<add> ... | 1 |
Javascript | Javascript | set state to loading on reload() | b2c5584fceb17f09b53ffd75345c39f65694174c | <ide><path>Libraries/Components/WebView/WebView.ios.js
<ide> var WebView = React.createClass({
<ide> * Reloads the current page.
<ide> */
<ide> reload: function() {
<add> this.setState({viewState: WebViewState.LOADING});
<ide> UIManager.dispatchViewManagerCommand(
<ide> this.getWebViewHandle(),
<id... | 1 |
Go | Go | add loading message | 20b1e19641d94b5e71ecee7a9703eb392a81cf9a | <ide><path>runtime.go
<ide> func (runtime *Runtime) Destroy(container *Container) error {
<ide> }
<ide>
<ide> func (runtime *Runtime) restore() error {
<add> wheel := "-\\|/"
<add> if os.Getenv("DEBUG") == "" {
<add> fmt.Printf("Loading containers: ")
<add> }
<ide> dir, err := ioutil.ReadDir(runtime.repository)
<id... | 1 |
Javascript | Javascript | add another test case | 1da5c0fc83807661cedbdf610887a3291cda6b0c | <ide><path>test/cases/side-effects/dynamic-reexports/index.js
<ide> import {
<ide> value as valueMultipleSources,
<ide> value2 as value2MultipleSources
<ide> } from "./multiple-sources";
<add>import { a, b } from "./swapped";
<ide>
<ide> it("should dedupe static reexport target", () => {
<ide> expect(valueStatic).t... | 6 |
Javascript | Javascript | remove unused import | 37c0e0c5e7291800cddf57ff2c6b782661016b8d | <ide><path>packages/ember-runtime/lib/mixins/registry_proxy.js
<ide> import {
<ide> Mixin
<ide> } from 'ember-metal';
<del>import { deprecate } from 'ember-debug';
<ide>
<ide> /**
<ide> RegistryProxyMixin is used to provide public access to specific | 1 |
Ruby | Ruby | give better python advice | e40d302deeb8e1011d4f0c9dc3aa1ceafefb654c | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_easy_install_pth lib
<ide> <<-EOS.undent
<ide> easy-install.pth files were found
<ide> These .pth files are likely to cause link conflicts. Please invoke
<del> setup.py with options
<del> --single-version-externally-managed... | 1 |
Go | Go | fix tests on fedora | eb4578daee98561b16d11d2978b5f5e297d903e8 | <ide><path>graphdriver/devmapper/driver_test.go
<ide> type Set map[string]bool
<ide>
<ide> func (r Set) Assert(t *testing.T, names ...string) {
<ide> for _, key := range names {
<del> if _, exists := r[key]; !exists {
<add> required := true
<add> if strings.HasPrefix(key, "?") {
<add> key = key[1:]
<add> requi... | 1 |
Text | Text | add datatonic to inthewild | cb0b8951766a750df8cedc92a6b9254386f80639 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [DataFox](https://www.datafox.com/) [[@sudowork](https://github.com/sudowork)]
<ide> 1. [Datamaran](https://www.datamaran.com) [[@valexharo](https://github.com/valexharo)]
<ide> 1. [DataSprints](https://datasprints.com/) [[@lopesdiego12](ht... | 1 |
Ruby | Ruby | add option to force no bottle revision | b20335b314f45d25e9c9f96a20575d7336cef1cb | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def bottle_formula f
<ide> begin
<ide> bottle_revision += 1
<ide> filename = bottle_filename(f, bottle_revision)
<del> end while master_bottle_filenames.include? filename
<add> end while not ARGV.include? '--no-revision' \
<add> and master_bot... | 1 |
Java | Java | fix bugs in equals and hashcode | 77e27713eae8decb8369c4f2e27df4144f205257 | <ide><path>rxjava-core/src/main/java/rx/schedulers/Timestamped.java
<ide> public boolean equals(Object obj) {
<ide> if (this == obj) {
<ide> return true;
<ide> }
<add> if (obj == null) {
<add> return false;
<add> }
<ide> if (!(obj instanceof Timestamped)) {
<... | 1 |
Ruby | Ruby | remove warnings from actioncable | e1459c7c86363d941191551505ad083d4335b815 | <ide><path>actioncable/lib/action_cable/channel/base.rb
<ide> def initialize(connection, identifier, params = {})
<ide> # transmission until redis pubsub subscription is confirmed.
<ide> @defer_subscription_confirmation = false
<ide>
<add> @reject_subscription = nil
<add> @subscription_co... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.