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 | normalize comment formatting | a567ae3c31c4d3b71ab34dac4dc70314c5de65ac | <ide><path>client/image_import.go
<ide> import (
<ide> // It returns the JSON content in the response body.
<ide> func (cli *Client) ImageImport(ctx context.Context, source types.ImageImportSource, ref string, options types.ImageImportOptions) (io.ReadCloser, error) {
<ide> if ref != "" {
<del> //Check if the given i... | 1 |
Python | Python | fix bug in pt speech-encoder-decoder | 60ba48205e4ec070780e8cb8d461421b77432bad | <ide><path>src/transformers/models/speech_encoder_decoder/modeling_speech_encoder_decoder.py
<ide> def forward(
<ide> argument[len("decoder_") :]: value for argument, value in kwargs.items() if argument.startswith("decoder_")
<ide> }
<ide>
<del> if encoder_outputs is None and inputs is None:... | 2 |
Javascript | Javascript | update response data types | fd0b1ebfc71f9092e950f62359317a061c7840b3 | <ide><path>src/ngMock/angular-mocks.js
<ide> function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
<ide> * order to change how a matched request is handled.
<ide> *
<ide> * - respond –
<del> * `{function([status,] data[, headers, statusText])
<del> * | function(function(m... | 1 |
Text | Text | add docs for named build stages | 877ac98e44f2b1d9af6319ca07d232a3cd929d39 | <ide><path>docs/reference/builder.md
<ide> the first pattern, followed by one or more `!` exception patterns.
<ide>
<ide> ## FROM
<ide>
<del> FROM <image>
<add> FROM <image> [AS <name>]
<ide>
<ide> Or
<ide>
<del> FROM <image>:<tag>
<add> FROM <image>[:<tag>] [AS <name>]
<ide>
<ide> Or
<ide>
<del> F... | 1 |
Ruby | Ruby | update route globbing documention in rdoc | 4cbf55344d07d552b00e1522b4e208bcaaf46504 | <ide><path>actionpack/lib/action_controller/routing.rb
<ide> module ActionController
<ide> #
<ide> # map.connect '*path' , :controller => 'blog' , :action => 'unrecognized?'
<ide> #
<del> # will glob all remaining parts of the route that were not recognized earlier. This idiom
<del> # must appear at the end o... | 1 |
PHP | PHP | implement the basic builder methods | e85364195c60cf062ed4acb1a9e2eeb822581287 | <ide><path>src/View/ViewBuilder.php
<ide> class ViewBuilder
<ide> */
<ide> protected $options = [];
<ide>
<add> /**
<add> * The helpers to use
<add> *
<add> * @var array
<add> */
<add> protected $helpers = [];
<add>
<ide> /**
<ide> * Get/set path for view files.
<ide> *
<de... | 1 |
Python | Python | add keyword allow_zero 2nd | dc82b3ee7eb7c4134f86a83eb465a21e1b620609 | <ide><path>keras/layers/local.py
<ide> def __init__(self,
<ide> super(LocallyConnected2D, self).__init__(**kwargs)
<ide> self.filters = filters
<ide> self.kernel_size = conv_utils.normalize_tuple(kernel_size, 2, 'kernel_size')
<del> self.strides = conv_utils.normalize_tuple(strides, 2, 'strides', True)
<... | 1 |
Ruby | Ruby | ensure that using correct alias tracker | 135437cbb660ec0db5dc2cca1c78c6ad985ec807 | <ide><path>activerecord/test/models/membership.rb
<ide> class Membership < ActiveRecord::Base
<add> enum type: %i(Membership CurrentMembership SuperMembership SelectedMembership TenantMembership)
<ide> belongs_to :member
<ide> belongs_to :club
<ide> end
<ide><path>activerecord/test/schema/schema.rb
<ide> t.dat... | 2 |
Go | Go | fix a panic where run [] would be supplied | 39343b86182b4e997dc991645729ae130bd0f5f2 | <ide><path>builder/internals.go
<ide> func (b *Builder) create() (*daemon.Container, error) {
<ide> b.TmpContainers[c.ID] = struct{}{}
<ide> fmt.Fprintf(b.OutStream, " ---> Running in %s\n", utils.TruncateID(c.ID))
<ide>
<del> // override the entry point that may have been picked up from the base image
<del> c.Path ... | 2 |
Text | Text | fix typo in readme | 97a6a62a6be874c4c6caa66cb6a0778011f8bfbd | <ide><path>examples/with-asset-imports/README.md
<ide> now
<ide>
<ide> ## The idea behind the example
<ide>
<del>This example shows how to enable the impors of assets (images, videos, etc.) and get a URL pointing to `/static`.
<add>This example shows how to enable the imports of assets (images, videos, etc.) and get ... | 1 |
Ruby | Ruby | clarify desc calculation | b554c8bcca3042f7e3664f7a892c285201cfbd39 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_desc
<ide> # Make sure the formula name plus description is no longer than 80 characters
<ide> linelength = formula.full_name.length + ": ".length + desc.length
<ide> if linelength > 80
<del> problem "Description is too long. \"name: desc\" shoul... | 1 |
Javascript | Javascript | fix jshint complaint about negation | fcfe4fd2e146c24d7ed4426d63ded907137bce9d | <ide><path>packages/ember-metal/lib/watching.js
<ide> Wp.copy = function(obj) {
<ide> var ret = new ChainNode(null, null, obj, this._separator);
<ide> var paths = this._paths, path;
<ide> for(path in paths) {
<del> if (!(paths[path] > 0)) continue; // this check will also catch non-number vals.
<add> if (pa... | 3 |
PHP | PHP | remove constraint support for sqlite | b3c383d1a86b7d80b6d67a20cc7a7f21ac776ab7 | <ide><path>src/Database/Connection.php
<ide> public function enableForeignKeys()
<ide> $this->execute($this->_driver->enableForeignKeySql())->closeCursor();
<ide> }
<ide>
<add> /**
<add> * Returns whether the driver supports adding or dropping constraints
<add> * to already created tables.
<add>... | 11 |
Text | Text | update doc with go_backwards option | f8b0c7e2e3e24f8aeb66745da510d89a4ece24b6 | <ide><path>docs/sources/layers/recurrent.md
<ide> Fully connected RNN where output is to fed back to input.
<ide> - __return_sequences__: Boolean. Whether to return the last output in the output sequence, or the full sequence.
<ide> - __input_dim__: dimensionality of the input (integer). This argument (or alter... | 1 |
Python | Python | update swivel code to work with python 3 | d4131c9a4e218dc59fd9b15c1e5b149b90b98ceb | <ide><path>swivel/swivel.py
<ide>
<ide> """
<ide>
<add>from __future__ import print_function
<ide> import argparse
<ide> import glob
<ide> import math
<ide> def write_embeddings_to_disk(config, model, sess):
<ide> # Row Embedding
<ide> row_vocab_path = config.input_base_path + '/row_vocab.txt'
<ide> row_embeddi... | 1 |
Ruby | Ruby | reduce test noise | 0bb8429e71662aedc36ed232748d62442e74a154 | <ide><path>activerecord/test/cases/timestamp_test.rb
<ide> def setup
<ide> @previously_updated_at = @developer.updated_at
<ide> end
<ide>
<del> def test_load_infinity_and_beyond
<del> unless current_adapter?(:PostgreSQLAdapter)
<del> return skip("only tested on postgresql")
<add> if current_adapter?(:P... | 1 |
Java | Java | improve support for generics in jackson codecs | 992e75303d598a4f3ef7ab912de588f9748961ac | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> *... | 3 |
Ruby | Ruby | fix failing tests on active storage | 5d818806707c24785d47d956226cbee98322c00a | <ide><path>activestorage/test/controllers/direct_uploads_controller_test.rb
<ide> if SERVICE_CONFIGURATIONS[:s3] && SERVICE_CONFIGURATIONS[:s3][:access_key_id].present?
<ide> class ActiveStorage::S3DirectUploadsControllerTest < ActionDispatch::IntegrationTest
<ide> setup do
<add> Rails.configuration.active_s... | 2 |
Text | Text | add historical information about v1 spec | 1d17542f80d1a961224c762cec7628293f81465e | <ide><path>image/spec/README.md
<add># Docker Image Specification v1.
<add>
<add>This directory contains documents about Docker Image Specification v1.X.
<add>
<add>The v1 file layout and manifests are no longer used in Moby and Docker, except in `docker save` and `docker load`.
<add>
<add>However, v1 Image JSON (`appl... | 1 |
PHP | PHP | rename some traits to be less stupid | 96d80ee2bff037fc4eb58e144c9aa0e177ce355f | <add><path>src/Illuminate/Auth/Authenticates.php
<del><path>src/Illuminate/Auth/UserTrait.php
<ide> <?php namespace Illuminate\Auth;
<ide>
<del>trait UserTrait {
<add>trait Authenticates {
<ide>
<ide> /**
<ide> * Get the unique identifier for the user.
<add><path>src/Illuminate/Auth/Passwords/ResetsPassword.php
<d... | 5 |
Text | Text | fix chatrelayjob definition in testing guide | 66ff8b14398b4264bb6a3dd3486572ff6fdddf53 | <ide><path>guides/source/testing.md
<ide> If you want to test the broadcasting made with `Channel.broadcast_to`, you shoul
<ide> ```ruby
<ide> # app/jobs/chat_relay_job.rb
<ide> class ChatRelayJob < ApplicationJob
<del> def perform_later(room, message)
<add> def perform(room, message)
<ide> ChatChannel.broadcast_... | 1 |
Ruby | Ruby | decorate deps to show installed status? | 8939857600c58e6e2134fad51cc4de2d69fd6dc3 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def info_formula f
<ide> ohai "Dependencies"
<ide> %w{build required recommended optional}.map do |type|
<ide> deps = f.deps.send(type)
<del> puts "#{type.capitalize}: #{deps*', '}" unless deps.empty?
<add> puts "#{type.capitalize}: #{decor... | 1 |
Ruby | Ruby | improve error wording | dd46cc40c7b3c45d3ceb632ca8d9dba20bc230f7 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit
<ide> end
<ide>
<ide> if audit_formulae.empty? && audit_casks.empty?
<del> ofail "No audits to perform"
<add> ofail "No matching formulae or casks to audit!"
<ide> return
<ide> end
<ide> | 1 |
Text | Text | fix typos and formatting | d6c839cf0f04f30ba95e2b032a4e686dea2eb0d0 | <ide><path>image/spec/v1.md
<ide> This specification uses the following terms:
<ide> Image JSON
<ide> </dt>
<ide> <dd>
<del> Each layer has an associated A JSON structure which describes some
<add> Each layer has an associated JSON structure which describes some
<ide> basic informa... | 1 |
Python | Python | avoid signed overflow in histogram | b581aade6891662e37931b04bba29262cd6057de | <ide><path>numpy/lib/histograms.py
<ide> def _get_outer_edges(a, range):
<ide> return first_edge, last_edge
<ide>
<ide>
<add>def _unsigned_subtract(a, b):
<add> """
<add> Subtract two values where a >= b, and produce an unsigned result
<add>
<add> This is needed when finding the difference between the up... | 2 |
Text | Text | add notes to http.get options | e1161a37188600ce23bef3bcab2ed44fbd645860 | <ide><path>doc/api/http.md
<ide> added: v0.3.6
<ide>
<ide> * `options` {Object | string} Accepts the same `options` as
<ide> [`http.request()`][], with the `method` always set to `GET`.
<add> Properties that are inherited from the prototype are ignored.
<ide> * `callback` {Function}
<ide> * Returns: {http.ClientReq... | 1 |
Python | Python | pass overrides to subcommands in workflows | 1e9b4b55ee5a423f4dfed447daa38a250ce85eb8 | <ide><path>spacy/cli/project/run.py
<ide> def project_run(
<ide>
<ide> project_dir (Path): Path to project directory.
<ide> subcommand (str): Name of command to run.
<add> overrides (Dict[str, Any]): Optional config overrides.
<ide> force (bool): Force re-running, even if nothing changed.
<ide> dry ... | 1 |
Java | Java | apply new responsestatusexception hierarchy | 6b7360fed1741bd9f7208f993f1df0036e2137d6 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/HandlerNotFoundException.java
<del>/*
<del> * Copyright 2002-2015 the original author or authors.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compliance with the ... | 18 |
Javascript | Javascript | add a bolder warning when missing .env | f5ccaf971b7a7dce66978461e5ee8969c4ed56ac | <ide><path>config/read-env.js
<ide> const envPath = path.resolve(__dirname, '../.env');
<ide> const { error } = require('dotenv').config({ path: envPath });
<ide>
<ide> if (error) {
<del> if (process.env.FREECODECAMP_NODE_ENV === 'development') {
<del> console.warn('.env not found, please copy sample.env to .env')... | 1 |
Javascript | Javascript | add a loading bar when loading split bundles | d974793b5952fe9c5ead7411a860eef04038529e | <ide><path>Libraries/Utilities/HMRClient.js
<ide> Error: ${e.message}`;
<ide>
<ide> client.on('update-start', () => {
<ide> if (isFastRefreshActive()) {
<del> LoadingView.showMessage('Refreshing...');
<add> LoadingView.showMessage('Refreshing...', 'refresh');
<ide> }
<ide> });
<ide>
... | 4 |
Python | Python | fix move when the two cache folders exist | 6ed7e32f7cbef032ca8c5b805c5501227b4358ee | <ide><path>src/transformers/file_utils.py
<ide> # Onetime move from the old location to the new one if no ENV variable has been set.
<ide> if (
<ide> os.path.isdir(old_default_cache_path)
<add> and not os.path.isdir(default_cache_path)
<ide> and "PYTORCH_PRETRAINED_BERT_CACHE" not in os.environ
<ide> and... | 1 |
Go | Go | fix a unit test broken by pull request #703 | bb4b35a8920bcba8b60784297650ced5b2e01e47 | <ide><path>runtime_test.go
<ide> func init() {
<ide> registry: registry.NewRegistry(runtime.root),
<ide> }
<ide> // Retrieve the Image
<del> if err := srv.ImagePull(unitTestImageName, "", "", os.Stdout); err != nil {
<add> if err := srv.ImagePull(unitTestImageName, "", "", os.Stdout, false); err != nil {
<ide> pa... | 1 |
Python | Python | fix inplace test | 2bf5fa1363944408857e368341c4299b121f928c | <ide><path>numpy/ma/tests/test_core.py
<ide> class TestNoMask(NumpyTestCase):
<ide> def test_no_inplace(self):
<ide> x = nomask
<del> def iadd(x):
<del> x += 1
<del> self.failUnlessRaises(ValueError,iadd,x)
<add> y = x
<add> x += 1
<add> assert x != y
<ide>
<id... | 1 |
Text | Text | add links to jump to sections | 5e179e32b6104ca7b1586b8daa489ea7a699eef0 | <ide><path>docs/testing.md
<ide> description: Learn how to set up Next.js with three commonly used testing tools
<ide> </ul>
<ide> </details>
<ide>
<del>Learn how to set up Next.js with three commonly used testing tools: [Cypress](https://www.cypress.io/blog/2021/04/06/cypress-component-testing-react/), [Jest](https... | 1 |
Go | Go | add minor stylistic fixes | 1c89c6ea2f34f51a05215279c9cdefca30bb13b1 | <ide><path>builder/internals.go
<ide> func (b *Builder) run(c *daemon.Container) error {
<ide>
<ide> // Wait for it to finish
<ide> if ret, _ := c.WaitStop(-1 * time.Second); ret != 0 {
<del> err := &jsonmessage.JSONError{
<add> return &jsonmessage.JSONError{
<ide> Message: fmt.Sprintf("The command %v returned ... | 5 |
Javascript | Javascript | avoid duplicate serialization | 6fce46ebd831a2890beee225432273d9656b3085 | <ide><path>lib/dependencies/NullDependency.js
<ide> class NullDependency extends Dependency {
<ide> get type() {
<ide> return "null";
<ide> }
<del>
<del> serialize({ write }) {
<del> write(this.loc);
<del> }
<del>
<del> deserialize({ read }) {
<del> this.loc = read();
<del> }
<ide> }
<ide>
<ide> NullDependency.T... | 1 |
Go | Go | add case for exec closestdin | 8e25f4ff6d89888a1bcd578f3f8f7aab89dce24d | <ide><path>integration/container/exec_test.go
<ide> import (
<ide> "context"
<ide> "io/ioutil"
<ide> "testing"
<add> "time"
<ide>
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/api/types/strslice"
<ide> import (
<ide> "gotest.tools/skip"
<ide> )
<ide>
<add>// TestExecWithCloseStdin a... | 1 |
Text | Text | improve translation for russioan locale | 9631152f1e510aad6c2fcbfc3fb5a26298db5ded | <ide><path>curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.russian.md
<ide> id: 587d7b8f367417b2b2512b62
<ide> title: Implement map on a Prototype
<ide> challengeType: 1
<ide> videoUrl: ''
<del>localeTitle: Реализовать карту на прототипе
<ad... | 1 |
PHP | PHP | improve output of console error messages | 8b27726bbec07a10cbce5cb071702d270e7e8831 | <ide><path>src/Error/Renderer/ConsoleErrorRenderer.php
<ide> */
<ide> namespace Cake\Error\Renderer;
<ide>
<add>use Cake\Console\ConsoleOutput;
<ide> use Cake\Error\ErrorRendererInterface;
<ide> use Cake\Error\PhpError;
<ide>
<ide> /**
<ide> * Plain text error rendering with a stack trace.
<ide> *
<del> * Writes t... | 1 |
Ruby | Ruby | prevent error pipe object from being finalized | c2f05cfb711401a498d494e9dcc90016e9b168a7 | <ide><path>Library/Homebrew/build.rb
<ide> # the whole of everything must be run in at_exit because the formula has to
<ide> # be the run script as __END__ must work for *that* formula.
<ide>
<add> error_pipe = nil
<add>
<ide> begin
<ide> raise $! if $! # an exception was already thrown when parsing the for... | 1 |
Python | Python | update affected tests and add some news ones | 9dca00889c8601fd3181466e2bd069dcfdb70272 | <ide><path>libcloud/test/compute/test_ssh_client.py
<ide> def setUp(self):
<ide>
<ide> @patch('paramiko.SSHClient', Mock)
<ide> def test_create_with_password(self):
<del> """
<del> Initialize object with password.
<del>
<del> Just to have better coverage, initialize the object
<del> ... | 1 |
Text | Text | add v4.5.0-beta.2 to changelog | 75cd214c1165ad9c7bec274031eecb6404658225 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.5.0-beta.2 (June 6, 2022)
<add>
<add>- [#20082](https://github.com/emberjs/ember.js/pull/20082) [BUGFIX] Fix blueprint generation
<add>
<ide> ### v4.4.1 (May 31, 2022)
<ide>
<ide> - [#20082](https://github.com/emberjs/ember.js/pull/20082) [BUGFIX] Fix ... | 1 |
Ruby | Ruby | fix eagerloadpolyassocstest setup | 834f5414c3b879a3a50c5cac128c9d9b007fa569 | <ide><path>activerecord/test/cases/associations/eager_load_nested_include_test.rb
<ide> def remember; self.class.remembered << self; end
<ide> end
<ide>
<ide> module ClassMethods
<del> def remembered; @@remembered ||= []; end
<del> def sample; @@remembered.sample; end
<add> def remembered; @remembered ||=... | 1 |
Python | Python | handle text type correctly across python 2/3 | e5263a8ad0542c477806096740b0ad5a14dec195 | <ide><path>unitest-restful.py
<ide>
<ide> import requests
<ide>
<add>try:
<add> text_type = str
<add>except NameError:
<add> text_type = unicode
<add>
<ide> SERVER_PORT = 61234
<ide> URL = "http://localhost:%s/api/2" % SERVER_PORT
<ide> pid = None
<ide> def test_003_plugins(self):
<ide> req = reques... | 1 |
Javascript | Javascript | fix side effects in router-is-ready tests | cce82cd7bcbf9c9fa61df4a808ac862aaace2b39 | <ide><path>test/integration/router-is-ready/pages/auto-export/[slug].js
<ide> import { useRouter } from 'next/router'
<add>import { useLayoutEffect } from 'react'
<ide>
<ide> export default function Page(props) {
<ide> const router = useRouter()
<ide>
<ide> if (typeof window !== 'undefined') {
<del> if (!windo... | 5 |
Mixed | Javascript | fix modal resizing on keyboard show | 404b7cc069471cc8e0277d398751305665f0d3e1 | <ide><path>Libraries/Modal/Modal.js
<ide> const Platform = require('Platform');
<ide> const PropTypes = require('react/lib/ReactPropTypes');
<ide> const React = require('React');
<ide> const StyleSheet = require('StyleSheet');
<del>const UIManager = require('UIManager');
<ide> const View = require('View');
<del>const d... | 2 |
Go | Go | update api_test.go to reflect new api.go | b99446831f576d626f78be7baea09af8520d125b | <ide><path>api_test.go
<ide> func TestGetAuth(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide>
<del> body, err := postAuth(srv, r, req, nil)
<del> if err != nil {
<add> if err := postAuth(srv, r, req, nil); err != nil {
<ide> t.Fatal(err)
<ide> }
<del> if body == nil {
<del> t.Fatalf("No body received\n")
<del>... | 1 |
Go | Go | remove migration code from docker 1.11 to 1.12 | 0f3b94a5c7efa3032203dcaf0dc41570c900fd7e | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) restore() error {
<ide> mapLock.Unlock()
<ide> return
<ide> }
<del>
<del> // The LogConfig.Type is empty if the container was created before docker 1.12 with default log driver.
<del> // We should rewrite it to use the daemon defaults.
<del> // Fi... | 1 |
Mixed | Ruby | make salt argument required for message verifier | 48c703b055a6b287100f3c0fbc18f1294d7c7af4 | <ide><path>railties/CHANGELOG.md
<ide>
<ide> This verifier can be used to generate and verify signed messages in the application.
<ide>
<del> message = Rails.application.message_verifier.generate('my sensible data')
<del> Rails.application.message_verifier.verify(message)
<add> message = Rail... | 3 |
Ruby | Ruby | fix a rubocop offence for `lint/erbnewarguments` | c03933af23557945dd7d5d1359779d2ea461542c | <ide><path>tasks/release.rb
<ide> def rc?
<ide> require "erb"
<ide> template = File.read("../tasks/release_announcement_draft.erb")
<ide>
<del> if ERB.instance_method(:initialize).parameters.assoc(:key) # Ruby 2.6+
<del> puts ERB.new(template, trim_mode: "<>").result(binding)
<del> else
<del> p... | 1 |
Python | Python | fix code example | 08816de16aef6a85c187c599a6779d292c376f83 | <ide><path>src/transformers/models/encoder_decoder/modeling_encoder_decoder.py
<ide> def forward(
<ide> >>> model.config.pad_token_id = tokenizer.pad_token_id
<ide> >>> model.config.vocab_size = model.config.decoder.vocab_size
<ide>
<del> >>> input_ids = tokenizer("Hello, my dog is c... | 1 |
Ruby | Ruby | convert path to string before call `length` | 1d26c86b8611bb37f5641d4f3e3e94d8675eba1d | <ide><path>railties/lib/rails/engine.rb
<ide> def load_generators(app = self)
<ide> def eager_load!
<ide> config.eager_load_paths.each do |load_path|
<ide> # Starts after load_path plus a slash, ends before ".rb".
<del> relname_range = (load_path.length + 1)...-3
<add> relname_range = (l... | 1 |
Javascript | Javascript | improve pipe-test. still not working | 393f0071e4cabc05d083a43e8da76f166b9d0f0a | <ide><path>test/disabled/pipe-test.js
<del>/*
<del> * try with
<del> * curl -d @/usr/share/dict/words http://localhost:8000/123
<add>var common = require('../common');
<add>var assert = require('assert');
<add>var http = require('http');
<add>var net = require('net');
<add>
<add>var listenCount = 0;
<add>var gotThan... | 1 |
PHP | PHP | remove duplicate parameter doc string | b539959e0e7f3204ad4b91d519309641333de478 | <ide><path>src/ORM/Table.php
<ide> public function validateUnique($value, array $options, array $context = []) {
<ide> * @param \Cake\Datasource\EntityInterface $entity The entity to check for validity.
<ide> * @param string $operation The operation being run. Either 'create', 'update' or 'delete'.
<ide> * @param \A... | 1 |
Javascript | Javascript | suggest course of action | 2fe82af05d27014a922afbf360d37217f981604a | <ide><path>lib/WebpackOptionsValidationError.js
<ide> class WebpackOptionsValidationError extends Error {
<ide> else
<ide> return `${dataPath} ${err.message}`;
<ide> } else if(err.keyword === "absolutePath") {
<del> return `${dataPath}: ${err.message}`;
<add> const baseMessage = `${dataPath}: ${err.message... | 2 |
Text | Text | add patreon badge | 0271e76f08f122b4b6dde90f7e49066696072953 | <ide><path>README.md
<ide> Documentation is under the [Creative Commons Attribution license](https://creati
<ide> ## Donations
<ide> Homebrew is a non-profit project run entirely by unpaid volunteers. We need your funds to pay for software, hardware and hosting around continuous integration and future improvements to t... | 1 |
Java | Java | relax constraints in messageheaders for subclasses | 1eee339c152a3de2f2a37525899be28bb0bfaf0a | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/MessageHeaders.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may ... | 2 |
Text | Text | add example about branch and a branch model | 8e1970ce85a5707186b8a248354f906e5f7febaf | <ide><path>guide/portuguese/git/git-branch/index.md
<ide> localeTitle: Filial Git
<ide>
<ide> A funcionalidade de ramificação do Git permite criar novas ramificações de um projeto para testar ideias, isolar novos recursos ou experimentar sem afetar o projeto principal.
<ide>
<add>A ramificação no Git é muito útil, po... | 1 |
PHP | PHP | remove unneeded type casting | f664c358b6c6109499c327f776e018d0f0c7953b | <ide><path>src/Utility/Security.php
<ide> public static function getSalt(): string
<ide> */
<ide> public static function setSalt(string $salt): void
<ide> {
<del> static::$_salt = (string)$salt;
<add> static::$_salt = $salt;
<ide> }
<ide> } | 1 |
Java | Java | integrate fabric into rn tester | 8724a24bf58f63ee240dea9f6795873c0a6ff3bf | <ide><path>RNTester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterActivity.java
<ide>
<ide> package com.facebook.react.uiapp;
<ide>
<add>import static com.facebook.react.uiapp.RNTesterApplication.IS_FABRIC_ENABLED;
<add>
<ide> import android.content.res.Configuration;
<ide> import android.os.Bundle;
<ide... | 2 |
Ruby | Ruby | translate ast to a formatter before url generation | e883db02bce5d5f06628dc9eae51c8f526a4df97 | <ide><path>actionpack/lib/action_dispatch/journey/route.rb
<ide> def format(path_options)
<ide> value.to_s == defaults[key].to_s && !required_parts.include?(key)
<ide> end
<ide>
<del> Visitors::Formatter.new(path_options).accept(path.spec)
<add> format = Visitors::FormatBuilder.new.acce... | 2 |
Ruby | Ruby | remove full_clone from coretap | b5569ffd331c6ea95f492f0ac7f42a1dbf11ae29 | <ide><path>Library/Homebrew/tap.rb
<ide> def self.ensure_installed!
<ide> end
<ide>
<ide> # CoreTap never allows shallow clones (on request from GitHub).
<del> def install(full_clone: true, quiet: false, clone_target: nil, force_auto_update: nil)
<add> def install(quiet: false, clone_target: nil, force_auto_upda... | 1 |
Text | Text | update formatting, add image + solution | 807244c81a9c7cdad56788008a2a842945b5d441 | <ide><path>curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-199-iterative-circle-packing.english.md
<ide> forumTopicId: 301837
<ide> <section id='description'>
<ide> Three circles of equal radius are placed inside a larger circle such that each pair of circles is tangent to one another and t... | 1 |
Ruby | Ruby | include lib files for uploader | 28449b4129c83279c360bfb12419d31508d9255b | <ide><path>lib/github_uploader.rb
<add>require "rest-client"
<add>require "github_api"
<add># We can stop requiring nokogiri when github_api is updated
<add>require "nokogiri"
<add>
<add>class GithubUploader
<add>
<add> def initialize(login, username, repo, root=Dir.pwd)
<add> @login = login
<add> @username =... | 1 |
Python | Python | add license info to minified build | b632110d2d8ee69194b31ad2022408b1afb44520 | <ide><path>utils/build/build.py
<ide> def main(argv=None):
<ide> # header
<ide>
<ide> with open(output,'r') as f: text = f.read()
<del> with open(output,'w') as f: f.write('// three.js - http://github.com/mrdoob/three.js\n' + text + sourcemapping)
<add> with open(output,'w') as f: f.write('// three.js - http://g... | 1 |
Text | Text | fix node name typo in dependency matcher example | dc816bba9d564ae572af28a17cbf0580ba11db5e | <ide><path>website/docs/usage/rule-based-matching.md
<ide> pattern = [
<ide> {
<ide> "LEFT_ID": "anchor_founded",
<ide> "REL_OP": ">",
<del> "RIGHT_ID": "subject",
<add> "RIGHT_ID": "founded_subject",
<ide> "RIGHT_ATTRS": {"DEP": "nsubj"},
<ide> }
<ide> # ...
<ide> patt... | 1 |
Javascript | Javascript | remove global buildin | 3c50dba922843d433102dd7f8d86b78082c3bf07 | <ide><path>buildin/global.js
<del>var g;
<del>
<del>// This works in non-strict mode
<del>g = (function() {
<del> return this;
<del>})();
<del>
<del>try {
<del> // This works if eval is allowed (see CSP)
<del> g = g || new Function("return this")();
<del>} catch (e) {
<del> // This works if the window reference is avai... | 5 |
Javascript | Javascript | add default render loading on android webview | a74d05be629c12d91cd6a74a664274b5c60f6cee | <ide><path>Libraries/Components/WebView/WebView.android.js
<ide> 'use strict';
<ide>
<ide> var EdgeInsetsPropType = require('EdgeInsetsPropType');
<add>var ProgressBarAndroid = require('ProgressBarAndroid');
<ide> var React = require('React');
<ide> var ReactNativeViewAttributes = require('ReactNativeViewAttributes');... | 1 |
Java | Java | fix configuration issues in defaultsockjsservice | 9925d8385ff9e80bb3ec3bfbe2d4224538fed6a9 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/support/WebSocketHttpRequestHandler.java
<ide> public void handleRequest(HttpServletRequest request, HttpServletResponse respon
<ide> ServerHttpRequest httpRequest = new ServletServerHttpRequest(request);
<ide> ServerHttpResponse httpRe... | 6 |
Ruby | Ruby | pass the route name to define_url_helper | 212057b912627b9c4056f911a43c83b18ae3ab34 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def length
<ide> end
<ide>
<ide> class UrlHelper # :nodoc:
<del> def self.create(route, options, url_strategy)
<add> def self.create(route, options, route_name, url_strategy)
<ide> if optimize_helper?(rou... | 3 |
Java | Java | update mockmvc default for suffixpattern matching | cc2b980e5c4255d0ddb6fd4900ec740c8acde14d | <ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/setup/StandaloneMockMvcBuilder.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");... | 1 |
Text | Text | add note about jbuilder | 961779997cb28750d52d6186b41c29c33677ae0f | <ide><path>guides/source/action_view_overview.md
<ide> xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do
<ide> end
<ide> ```
<ide>
<add>#### Jbuilder
<add><a href="https://github.com/rails/jbuilder">Jbuilder</a> is a gem that's
<add>maintained by the Rails team and included in the defaul... | 1 |
Text | Text | add bert trained from review corpus. | 9907dc523ae960a1261b4b522dedc2851447b0a7 | <ide><path>model_cards/activebus/BERT-DK_laptop/README.md
<add># ReviewBERT
<add>
<add>BERT (post-)trained from review corpus to understand sentiment, options and various e-commence aspects.
<add>
<add>`BERT-DK_laptop` is trained from 100MB laptop corpus under `Electronics/Computers & Accessories/Laptops`.
<add>
<ad... | 6 |
Ruby | Ruby | fix some bugs | e12c23faa87aa9c6f493dcd4aa47d1124c41a418 | <ide><path>Library/Homebrew/formula.rb
<ide> def latest_formula
<ide> end
<ide>
<ide> def old_installed_formulae
<del> alias_path ? self.class.installed_with_alias_path(alias_path) : []
<add> # If this formula isn't the current target of the alias,
<add> # it doesn't make sense to say that other formulae ... | 1 |
Java | Java | fix javadoc for cronsequencegenerator | 644b0b8bebaff53022bb58c3417980965920d9ef | <ide><path>spring-context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java
<ide> * <li>"0 0 * * * *" = the top of every hour of every day.</li>
<ide> * <li>"*/10 * * * * *" = every ten seconds.</li>
<ide> * <li>"0 0 8-10 * * *" = 8, 9 and 10 o'clock of every day.</li>
<del> * <li>"... | 1 |
Javascript | Javascript | update cameraroll examples to use promises | a7e5312aeb9b1e94a61babf76e723da1fd89f5b8 | <ide><path>Examples/UIExplorer/CameraRollView.js
<ide> var CameraRollView = React.createClass({
<ide> fetchParams.after = this.state.lastCursor;
<ide> }
<ide>
<del> CameraRoll.getPhotos(fetchParams, this._appendAssets, logError);
<add> CameraRoll.getPhotos(fetchParams)
<add> .then((data) => this._... | 2 |
Java | Java | add validation of http method in form tag | 59084354e2277c4244e8949128466b33e7c9206d | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/FormTag.java
<ide>
<ide> import org.springframework.beans.PropertyAccessor;
<ide> import org.springframework.core.Conventions;
<add>import org.springframework.http.HttpMethod;
<ide> import org.springframework.util.ObjectUtils;
<ide> impor... | 1 |
Ruby | Ruby | replace nokogiri with rexml | 7835bcd10b5cdb8ba6235bd6827c70c74638867c | <ide><path>Library/Homebrew/unversioned_cask_checker.rb
<ide> def guess_cask_version
<ide>
<ide> distribution_path = extract_dir/"Distribution"
<ide> if distribution_path.exist?
<del> Homebrew.install_bundler_gems!
<del> require "nokogiri"
<add> require "r... | 1 |
Python | Python | fix runtimeerror message format | d365f5074f44d09dafd1ba68b97ea2cc9e0d63d3 | <ide><path>src/transformers/pipelines/__init__.py
<ide> def pipeline(
<ide>
<ide> if task is None and model is None:
<ide> raise RuntimeError(
<del> "Impossible to instantiate a pipeline without either a task or a model"
<del> "being specified."
<add> "Impossible to instant... | 1 |
Python | Python | add solution to problem 74 | d8f573c0fbc5363b268accca6d73c85b463da65f | <ide><path>project_euler/problem_074/sol2.py
<add>"""
<add> Project Euler Problem 074: https://projecteuler.net/problem=74
<add>
<add> Starting from any positive integer number
<add> it is possible to attain another one summing the factorial of its digits.
<add>
<add> Repeating this step, we can build chain... | 1 |
Javascript | Javascript | fix regexp in file extension checking | c6bd0e56cbdbc63e8b272239af63a394745c19c4 | <ide><path>src/node.js
<ide> function findModulePath (id, dirs, callback) {
<ide> return;
<ide> }
<ide>
<del> if (/.(js|node)$/.exec(id)) {
<add> if (/\.(js|node)$/.exec(id)) {
<ide> throw new Error("No longer accepting filename extension in module names");
<ide> }
<ide> | 1 |
Javascript | Javascript | add sharewis in showcase | 75992e700d8e692dda93885d30638afc36d537df | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> linkAppStore: 'https://itunes.apple.com/us/app/spatula/id1090496189?ls=1&mt=8',
<ide> linkPlayStore: 'https://play.google.com/store/apps/details?id=com.usespatula',
<ide> author: 'Kushal Dave'
<add> },
<add> {
<add> name: 'ShareWi... | 1 |
Javascript | Javascript | move toastandroid to apis, not components | 0ef1bc39255d9ef30360d5cc01d580a225e6befa | <ide><path>Libraries/react-native/react-native-implementation.js
<ide> module.exports = {
<ide> get TextInput() {
<ide> return require('TextInput');
<ide> },
<del> get ToastAndroid() {
<del> return require('ToastAndroid');
<del> },
<ide> get ToolbarAndroid() {
<ide> return require('ToolbarAndroid');
... | 1 |
Javascript | Javascript | avoid unnecessary concat of a single buffer | 8854183fe565fafceb6b30149c1026401b60e4eb | <ide><path>lib/_stream_readable.js
<ide> function fromList(n, state) {
<ide> // read it all, truncate the array.
<ide> if (stringMode)
<ide> ret = list.join('');
<add> else if (list.length === 1)
<add> ret = list[0];
<ide> else
<ide> ret = Buffer.concat(list, length);
<ide> list.leng... | 1 |
Javascript | Javascript | avoid test timeouts on rpi | e4e5b13efd118346509b75c1f0d6a913981786f0 | <ide><path>test/parallel/test-crypto-binary-default.js
<ide> assert.throws(function() {
<ide>
<ide> // Test Diffie-Hellman with two parties sharing a secret,
<ide> // using various encodings as we go along
<del>var dh1 = crypto.createDiffieHellman(1024);
<add>var dh1 = crypto.createDiffieHellman(common.hasFipsCrypto ?... | 2 |
Javascript | Javascript | add getinfrastructurelogger to multicompiler | def294792902705299faafd43f034912b8a5a609 | <ide><path>lib/MultiCompiler.js
<ide> module.exports = class MultiCompiler extends Tapable {
<ide> }
<ide> }
<ide>
<add> getInfrastructureLogger(name) {
<add> return this.compilers[0].getInfrastructureLogger(name);
<add> }
<add>
<ide> validateDependencies(callback) {
<ide> const edges = new Set();
<ide> const... | 1 |
PHP | PHP | remove type hinting in toroute | 319de5a80a3bddf64489d2935ddd47e70e0274ce | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> public function route($name, $parameters = array(), $absolute = true)
<ide> * Get the URL for a given route instance.
<ide> *
<ide> * @param \Illuminate\Routing\Route $route
<del> * @param array $parameters
<del> * @param bool $absolute
<add> * @pa... | 1 |
Ruby | Ruby | invert the conditional | 5b1ea3ea00579e45ed8b46a23a007c328f766786 | <ide><path>activerecord/lib/active_record/schema.rb
<ide> def migrations_paths
<ide> def define(info, &block) # :nodoc:
<ide> instance_eval(&block)
<ide>
<del> unless info[:version].blank?
<add> if info[:version].present?
<ide> initialize_schema_migrations_table
<ide> connection.ass... | 1 |
Java | Java | fix import issue introduced in prior commit | 7dff02b2c145a94ff47da3e8931d34d05f05f331 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolver.java
<ide>
<ide> package org.springframework.web.servlet.mvc.method.annotation;
<ide>
<add>import java.util.Collections;
<ide> import java.util.LinkedHashMap;
<ide> import java.util.Map;
... | 1 |
PHP | PHP | allow explicit model definitions in database rules | 57306b716362331b6a95bf05336fcdb52057cca7 | <ide><path>src/Illuminate/Validation/Rules/DatabaseRule.php
<ide> namespace Illuminate\Validation\Rules;
<ide>
<ide> use Closure;
<add>use Illuminate\Support\Str;
<add>use Illuminate\Database\Eloquent\Model;
<ide>
<ide> trait DatabaseRule
<ide> {
<ide> trait DatabaseRule
<ide> */
<ide> public function __cons... | 2 |
Python | Python | move files to core/ and common/ | 432a448a2a1a49cf3a3ec8bba9f883877a3015f2 | <ide><path>official/common/__init__.py
<add>
<ide><path>official/common/flags.py
<add># Lint as: python3
<add># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
<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... | 6 |
Python | Python | fix issue with rpath in fcompiler/gnu.py | 7562de3a37fa39863ae094fd40215e77ca3156b4 | <ide><path>numpy/distutils/fcompiler/gnu.py
<ide> def get_flags_arch(self):
<ide> return []
<ide>
<ide> def runtime_library_dir_option(self, dir):
<del> return '-Wl,-rpath="%s"' % dir
<add> sep = ',' if sys.platform == 'darwin' else '='
<add> return '-Wl,-rpath%s"%s"' % (sep, dir)
<add... | 1 |
PHP | PHP | add methods for sending cookies with test requests | 073f9a976e836109c7f2b704d9ac3481f933909a | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
<ide>
<ide> trait MakesHttpRequests
<ide> {
<add> /**
<add> * Additional cookies for the request.
<add> *
<add> * @var array
<add> */
<add> protected $defaultCookies = [];
<add>
<ide> /**
<ide> * Additional heade... | 2 |
Ruby | Ruby | place api_parser code into util module | d4bbffdce85bbe164f540897fd2cb3561966351d | <ide><path>Library/Homebrew/utils/update.rb
<ide> require 'json'
<ide>
<ide> module Utils
<del>
<add> class ApiParser
<add> def call_api(url)
<add> puts "- Calling API #{url}"
<add> uri = URI(url)
<add> response = Net::HTTP.get(uri)
<add>
<add> puts "- Parsing response"
<add> JSON.parse(... | 1 |
Javascript | Javascript | add comment, optimize code | 4479b6c660d69f9ec72d742df944f41b580b9e39 | <ide><path>lib/optimize/SideEffectsFlagPlugin.js
<ide> class SideEffectsFlagPlugin {
<ide> reexportMaps.set(module, (map = new Map()));
<ide> }
<ide> for (const [key, ids] of mode.map) {
<add> // TODO Support reexporting namespace object
<ide> if (ids.length > 0 && !m... | 1 |
PHP | PHP | add once option to css() | 758599e6f4d184c1b8024cbb69db200ebb1d0957 | <ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> public function testCssLink() {
<ide> $this->assertTags($result, $expected);
<ide> }
<ide>
<add>/**
<add> * Test css() with once option.
<add> *
<add> * @return void
<add> */
<add> public function testCssLinkOnce() {
<add> Configure::write('Asset.f... | 2 |
Javascript | Javascript | add example to files.js example index 📝 | 3c78098a701094fff84fd70aa2f86a883ec17304 | <ide><path>examples/files.js
<ide> var files = {
<ide> "webvr_sculpt",
<ide> "webvr_video",
<ide> "webvr_vive_paint",
<del> "webvr_vive_sculpt"
<add> "webvr_vive_sculpt",
<add> "webvr_6dof_panorama"
<ide> ],
<ide> "physics": [
<ide> "webgl_physics_cloth", | 1 |
PHP | PHP | add a `findor` method to eloquent | b062355f05f07f72119d868e065aac0c0c958ffd | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function findOrNew($id, $columns = ['*'])
<ide> return $this->newModelInstance();
<ide> }
<ide>
<add> /**
<add> * Find a model by its primary key or call a callback.
<add> *
<add> * @param mixed $id
<add> * @param \C... | 6 |
PHP | PHP | set the app key in the config after updating it | 306810528329467771653c81a2f984ae80956290 | <ide><path>src/Illuminate/Foundation/Console/KeyGenerateCommand.php
<ide> public function fire()
<ide>
<ide> $this->files->put($path, $contents);
<ide>
<add> $this->laravel['config']['app.key'] = $key;
<add>
<ide> $this->info("Application key [$key] set successfully.");
<ide> }
<ide> | 1 |
Ruby | Ruby | restore consistency with the rest of the doc | 43532f6b25758e1299d6fc9404c12b76df8fb3b0 | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> def button_to(name, options = {}, html_options = {})
<ide> # "Go Back" link instead of a link to the comments page, we could do something like this...
<ide> #
<ide> # <%=
<del> # link_to_unless_current("Comment", { :contr... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.