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 | remove reference to tokaido | 5a7fadf68410638afb229bf51e209f3e1677a6ab | <ide><path>guides/source/getting_started.md
<ide> ruby 2.5.0
<ide> Rails requires Ruby version 2.4.1 or later. If the version number returned is
<ide> less than that number, you'll need to install a fresh copy of Ruby.
<ide>
<del>TIP: A number of tools exist to help you quickly install Ruby and Ruby
<del>on Rails on y... | 1 |
Go | Go | use filepath.walkdir instead of filepath.walk | 402e0b58ca1b1e537b92348e68f5e6bd08709ddb | <ide><path>testutil/daemon/daemon_linux.go
<ide> func cleanupNetworkNamespace(t testing.TB, d *Daemon) {
<ide> // daemon instance and has no chance of getting
<ide> // cleaned up when a new daemon is instantiated with a
<ide> // new exec root.
<del> netnsPath := filepath.Join(d.execRoot, "netns")
<del> filepath.Walk... | 1 |
Javascript | Javascript | improve memory consumption of file middleware | eeb6e2db1708471d6d16c322e2d8cd25ecececf0 | <ide><path>lib/serialization/FileMiddleware.js
<ide> const readSection = (filename, file, offset, size, callback) => {
<ide> });
<ide> };
<ide>
<add>const writeBuffers = (fileHandle, buffers, callback) => {
<add> const stream = fs.createWriteStream(null, {
<add> fd: fileHandle,
<add> autoClose: false
<add> });
<add... | 1 |
Javascript | Javascript | add name to monkey-patched emit function | 152de34fb1fbf3803cee8d7dac2c37ad5061e331 | <ide><path>lib/domain.js
<ide> EventEmitter.init = function() {
<ide> };
<ide>
<ide> const eventEmit = EventEmitter.prototype.emit;
<del>EventEmitter.prototype.emit = function(...args) {
<add>EventEmitter.prototype.emit = function emit(...args) {
<ide> const domain = this.domain;
<ide>
<ide> const type = args[0];... | 2 |
PHP | PHP | apply fixes from styleci | be56c6fc9741783a708a10b1e7e4189ed342f0a2 | <ide><path>src/Illuminate/Database/Eloquent/Factories/Factory.php
<ide> namespace Illuminate\Database\Eloquent\Factories;
<ide>
<ide> use Closure;
<del>use Throwable;
<ide> use Faker\Generator;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Database\Eloquent\Collection as EloquentCollection;
<ide> use ... | 1 |
Text | Text | use httpie for tutorials | 34b5db62e560e73516fb569eaf9b71ea5562958f | <ide><path>docs/tutorial/1-serialization.md
<ide> Quit out of the shell...
<ide>
<ide> In another terminal window, we can test the server.
<ide>
<del>We can get a list of all of the snippets.
<add>We could use `curl`, but let's use a nicer tool called [httpie][httpie] to test our server. It has much nicer formatting ... | 4 |
PHP | PHP | fix cs as per psr-12 | 071ebbac1caace1d4a7f55907286582e06d18d74 | <ide><path>src/Http/ServerRequest.php
<ide> protected function _processGet($query, $queryString = '')
<ide> */
<ide> protected function _processFiles($post, $files)
<ide> {
<del> if (empty($files) ||
<add> if (
<add> empty($files) ||
<ide> !is_array($files)
<ide> ... | 2 |
Javascript | Javascript | add testcase for sourcetextmodule custom inspect | ff66e08bceb25e0d00d8818fc603b9f2bf251b63 | <ide><path>test/parallel/test-vm-module-basic.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const { SourceTextModule, createContext } = require('vm');
<add>const util = require('util');
<ide>
<ide> (async function test1() {
<ide> const context = createContext({
<ide> con... | 1 |
Text | Text | remove link on user request | 53c2532c262826353c6dfe6e56d2a35ecc9d2a1c | <ide><path>SUPPORTERS.md
<ide> These wonderful people supported our Kickstarter by giving us £10 or more:
<ide> * [Gerry Cardinal III](http://gerrycardinal.com/)
<ide> * [Andrew Kalek](http://anlek.com)
<ide> * [Bryan Coe](http://www.BryanACoe.com)
<del>* [360 Virtual Tours](http://www.360virtualtours.co.uk)
<add>* 360... | 1 |
Javascript | Javascript | fix some indentations issues | 2271f7df7fd31c2f15bfbcc4e24ff1a724995a44 | <ide><path>fonts.js
<ide> var Font = (function Font() {
<ide> var ulUnicodeRange3 = 0;
<ide> var ulUnicodeRange4 = 0;
<ide>
<del> var charset = properties.charset;
<add> var charset = properties.charset;
<ide> if (charset && charset.length) {
<del> var firstCharIndex = null;
<del> var lastCharIn... | 1 |
Java | Java | add spel support for float literals | be8f23d75658a8b728912b644c138407d4914f8b | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/FloatLiteral.java
<add>/*
<add> * Copyright 2002-2012 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... | 16 |
Text | Text | update pr and issue guidelines | fe7fcdb2270643fa308c40201b7aaa556fccd7e2 | <ide><path>PULL_REQUEST_TEMPLATE.md
<ide> Make sure tests pass on both Travis and Circle CI.
<ide>
<ide> **Code formatting**
<ide>
<del>See the simple [style guide](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#style-guide).
<add>Look around. Match the style of the rest of the codebase. See als... | 3 |
Text | Text | remove warning against readable/readable.read | 0f05173f49ab31aafc48c0046d9b0cb5e38fb6be | <ide><path>doc/api/stream.md
<ide> readable.on('readable', () => {
<ide> });
<ide> ```
<ide>
<del>Avoid the use of the `'readable'` event and the `readable.read()` method in
<del>favor of using either `readable.pipe()` or the `'data'` event.
<del>
<ide> A Readable stream in object mode will always return a single item... | 1 |
Javascript | Javascript | add tests for newly added methods | f418e4d5ae3f7c9cc500b78aeb72a6ee0c0daa25 | <ide><path>test/Chunk.test.js
<add>/* globals describe, it, beforeEach */
<ide> "use strict";
<ide>
<ide> const should = require("should");
<del>const path = require("path");
<add>const sinon = require("sinon");
<ide> const Chunk = require("../lib/Chunk");
<ide>
<ide> describe("Chunk", () => {
<ide> describe("Chunk",... | 1 |
Javascript | Javascript | implement stricter whitespace rules | c16b5659a0323572b2cd404f6356c7b38e38b038 | <ide><path>src/core/__tests__/ReactRenderDocument-test.js
<ide> describe('rendering React components at document', function() {
<ide> React.renderComponentToString(<Root />, function(markup) {
<ide> testDocument = getTestDocument(markup);
<ide> var component = React.renderComponent(<Root />, testDocumen... | 3 |
Python | Python | fix conflict with utils.py | 06ad4b3f4d60018c551bbd7ec5415285c6e20f72 | <ide><path>airflow/utils.py
<ide> def ask_yesno(question):
<ide> def send_email(to, subject, html_content):
<ide> SMTP_MAIL_FROM = conf.get('smtp', 'SMTP_MAIL_FROM')
<ide>
<del> if isinstance(to, str) or isinstance(to, str):
<add> if isinstance(to, basestring):
<ide> if ',' in to:
<ide> t... | 1 |
Python | Python | test the change | f98e81459a50716591dc0cfae95531a5d1b03314 | <ide><path>integration/storage/test_azure_blobs.py
<ide> def setUpClass(cls):
<ide> )
<ide>
<ide> location = os.getenv('AZURE_LOCATION', DEFAULT_AZURE_LOCATION)
<add> name = 'libcloud-itests-'
<ide> name = 'libcloud'
<ide> name += random_string(MAX_STORAGE_ACCOUNT_NAME_LENGTH - l... | 1 |
Python | Python | add tests for tickets #335, #341, #342 and #344 | 81e481bd272d8685d986030e855fe3a389d68061 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_dtype_tuple(self, level=rlevel):
<ide> """Ticket #334"""
<ide> assert N.dtype('i4') == N.dtype(('i4',()))
<ide>
<add> def check_dtype_posttuple(self, level=rlevel):
<add> """Ticket #335"""
<add> N.dtype([('col1', '(... | 1 |
Javascript | Javascript | add tests for attrtween and styletween | e2b112bc81f0f7d16d22c2e5ca1dd5e726657d45 | <ide><path>test/core/transition-test-attrTween.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var assert = require("assert");
<add>
<add>module.exports = {
<add> topic: function() {
<add> var cb = this.callback,
<add> dd = [],
<add> ii = [],
<add> tt = [],
<add> vv = [];... | 4 |
Go | Go | add image id & ref to container commit event | e60ae5380208c9329ef8be38fe3f4bdcd8ef6e83 | <ide><path>daemon/commit.go
<ide> func (daemon *Daemon) Commit(name string, c *backend.ContainerCommitConfig) (str
<ide> }
<ide> }
<ide>
<add> imageRef := ""
<ide> if c.Repo != "" {
<ide> newTag, err := reference.WithName(c.Repo) // todo: should move this to API layer
<ide> if err != nil {
<ide> func (daemon *... | 1 |
Java | Java | use public assumptionviolatedexception in assume | 5aaed147d5627dbea9ebd9ad529a8721e2fc7fca | <ide><path>spring-core/src/test/java/org/springframework/tests/Assume.java
<ide> import java.util.Set;
<ide>
<ide> import org.apache.commons.logging.Log;
<del>import org.junit.internal.AssumptionViolatedException;
<add>import org.junit.AssumptionViolatedException;
<ide>
<ide> import org.springframework.util.ClassUtil... | 1 |
PHP | PHP | fix breaking change | 514d7f1e527ebc7ef772f7e2f6c064ceab39ce89 | <ide><path>src/View/View.php
<ide> class View implements EventDispatcherInterface
<ide> *
<ide> * @var array
<ide> */
<del> public $uuIds = [];
<add> public $uuids = [];
<ide>
<ide> /**
<ide> * An instance of a \Cake\Http\ServerRequest object that contains information about the current re... | 1 |
Text | Text | wrap a piece of code to a code block | d279d3e165de1bcdb51fd673e043f2c68d21501d | <ide><path>guides/source/working_with_javascript.md
<ide> You can bind to the same AJAX events as `form_for`. Here's an example. Let's
<ide> assume that we have a resource `/fib/:n` that calculates the `n`th Fibonacci
<ide> number. We would generate some HTML like this:
<ide>
<add>```
<ide> <%= link_to "Calculate", "/... | 1 |
PHP | PHP | fix missing use | 7172b9d21880427c98ccdb1ca3af8607dc96b468 | <ide><path>lib/Cake/Model/Model.php
<ide> use Cake\Core\App;
<ide> use Cake\Core\Configure;
<ide> use Cake\Core\Object;
<add>use Cake\Database\ConnectionManager;
<ide> use Cake\Error;
<ide> use Cake\Event\Event;
<ide> use Cake\Event\EventListener; | 1 |
Go | Go | kill the right containers in runtime_test | 1fc55c2bb9bce1451d6199e8aaa23ef8baa0e46c | <ide><path>runtime_test.go
<ide> func nuke(runtime *Runtime) error {
<ide> var wg sync.WaitGroup
<ide> for _, container := range runtime.List() {
<ide> wg.Add(1)
<del> go func() {
<del> container.Kill()
<add> go func(c *Container) {
<add> c.Kill()
<ide> wg.Add(-1)
<del> }()
<add> }(container)
<ide> }
<i... | 1 |
Python | Python | change outdated message for knownfail described in | 07b7bf30c422f1c3335042691ce269a972b98954 | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_array_from_sequence_scalar_array(self):
<ide> t = ((1,), np.array(1))
<ide> assert_raises(ValueError, lambda: np.array(t))
<ide>
<del> @dec.knownfailureif(True, "Fix this for 1.5.0.")
<add> @dec.knownfailureif(True, "This is a corner c... | 1 |
Python | Python | remove nose dependence of locale tests | e8389cb15f8d8fd902ea9f7aad0da64bce0f2583 | <ide><path>numpy/core/tests/_locales.py
<add>"""Provide class for testing in French locale
<add>
<add>"""
<add>from __future__ import division, absolute_import, print_function
<add>
<add>import sys
<add>import locale
<add>
<add>from numpy.testing import SkipTest
<add>
<add>__ALL__ = ['CommaDecimalPointLocale']
<add>
<a... | 4 |
Text | Text | remove broken links from hello world example | fcefcb7e7e836b0ecfee8ab28e2dcd250cafedf4 | <ide><path>examples/helloworld/README.md
<ide> ## "Hello World" overview
<ide>
<del>This example is a minimalistic application of the pdf.js project. The file
<del>`helloworld.pdf` is from the GNUpdf project (see [Introduction to PDF at
<del>GNUpdf] (http://gnupdf.org/Introduction_to_PDF)), and contains a simple and
<... | 1 |
Go | Go | remove job from wait | db0ffba3b92aeda667501aaa10926943a7738f82 | <ide><path>api/server/server.go
<ide> func postContainersWait(eng *engine.Engine, version version.Version, w http.Resp
<ide> if vars == nil {
<ide> return fmt.Errorf("Missing parameter")
<ide> }
<del> var (
<del> stdoutBuffer = bytes.NewBuffer(nil)
<del> job = eng.Job("wait", vars["name"])
<del> )
<del> ... | 5 |
PHP | PHP | remove old lighthouseapp references | 315a0ce60c3545c565f253e0506bc60ae7f19c91 | <ide><path>src/Network/Request.php
<ide> protected static function _url($config)
<ide> * the unnecessary part from $base to prevent issue #3318.
<ide> *
<ide> * @return array Base URL, webroot dir ending in /
<del> * @link https://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/3318
<ide> ... | 6 |
Ruby | Ruby | add tests for livecheck_formula utils | 183d76d59ed3938cea105fde7351c85e4994617f | <ide><path>Library/Homebrew/test/utils/livecheck_formula_spec.rb
<add># frozen_string_literal: true
<add>
<add>require "utils/livecheck_formula"
<add>
<add>describe LivecheckFormula do
<add> describe "init", :integration_test do
<add> it "runs livecheck command for Formula" do
<add> install_test_formula "testb... | 1 |
Python | Python | remove debug messages | 7c194a1f31918ec63480aa553447e38d4fdce2f3 | <ide><path>numpy/distutils/ccompiler.py
<ide> def new_compiler (plat=None,
<ide> def gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries):
<ide> library_dirs = quote_args(library_dirs)
<ide> runtime_library_dirs = quote_args(runtime_library_dirs)
<del> print 'gen_lib_options:',library_dir... | 2 |
Python | Python | add support for impersonation in gcp hooks | 5eacc164201a121cd06126aff613cbe0919d35cc | <ide><path>airflow/providers/google/cloud/hooks/automl.py
<ide> class CloudAutoMLHook(GoogleBaseHook):
<ide> """
<ide>
<ide> def __init__(
<del> self, gcp_conn_id: str = "google_cloud_default", delegate_to: Optional[str] = None
<del> ):
<del> super().__init__(gcp_conn_id, delegate_to)
<add> ... | 49 |
PHP | PHP | apply fixes from styleci | 5faa5944d9a9f2d2cae0cd7a40f7ec3ef7b58632 | <ide><path>tests/Support/SupportPluralizerTest.php
<ide> public function testIfEndOfWordPlural()
<ide> $this->assertEquals('VertexFields', Str::plural('VertexField'));
<ide> }
<ide>
<del> public function testPluralWithNegativeCount() {
<add> public function testPluralWithNegativeCount()
<add> {
<i... | 1 |
Text | Text | add extends for derived classes | d4a8f99067db47ea9e40c0230d2586db9c8226ba | <ide><path>doc/api/tls.md
<ide> are not enabled by default since they offer less security.
<ide> added: v0.3.2
<ide> -->
<ide>
<del>The `tls.Server` class is a subclass of `net.Server` that accepts encrypted
<del>connections using TLS or SSL.
<add>* Extends: {net.Server}
<add>
<add>Accepts encrypted connections using ... | 1 |
Text | Text | add japanese translation of readme.md | 41c9ff4cb47759f5f66ba9fcada2b71ae9482a44 | <ide><path>docs/japanese/README.md
<add>
<add>
<add>[](http://makeapullrequest.com)
<add>[
<ide> keys = I18n.normalize_keys(e.locale, e.key, e.options[:scope])
<ide> title = "translation missing: #{keys.join('.')}"
<ide>
<del> interpolations = options.except(:default)
<add>... | 2 |
Ruby | Ruby | use a real lookupcontext in the digest tests | 3d7892d4d586d0e128a613855e054625725594e5 | <ide><path>actionview/test/template/digestor_test.rb
<ide> def initialize(template_path)
<ide> end
<ide> end
<ide>
<del>class FixtureFinder
<add>class FixtureFinder < ActionView::LookupContext
<ide> FIXTURES_DIR = "#{File.dirname(__FILE__)}/../fixtures/digestor"
<ide>
<del> attr_reader :details, :view_paths
<d... | 1 |
Javascript | Javascript | expand selections on shift-click | c410309827839f6292f8afb2ed429edbdc1b8d4c | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide> [[1, 0], [2, 0]]
<ide> ])
<ide> })
<add>
<add> it('expands the last selection on shift-click', () => {
<add> const {component, element, editor} = buildComponent()
<add>
<add> editor.setCursor... | 2 |
Python | Python | make wording changes according to @mattip | 5aa6c71774a04494458a354586ef19e6726250e3 | <ide><path>numpy/lib/shape_base.py
<ide> def expand_dims(a, axis):
<ide> Returns
<ide> -------
<ide> res : ndarray
<del> Output array. The number of dimensions is one greater than that of
<del> the input array. This is a view on the original array `a`.
<add> View of `a` with the number ... | 1 |
PHP | PHP | fix builder phpdoc | c88acdf0880a551f3ee2a99900efbb458afef135 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function orWhereNotNull($column)
<ide> *
<ide> * @param string $column
<ide> * @param string $operator
<del> * @param \DateTimeInterface|string|int $value
<add> * @param \DateTimeInterface|string $value
<ide> * @param ... | 1 |
Python | Python | remove unused imports | 108f93c464e0652423ccbbf5f8ea75819f7794fb | <ide><path>glances/core/glances_cpu_percent.py
<ide> """CPU percent stats shared between CPU and Quicklook plugins."""
<ide>
<ide> from glances.core.glances_timer import Timer
<del>from glances.core.glances_logging import logger
<ide>
<ide> import psutil
<ide>
<ide><path>glances/plugins/glances_monitor.py
<ide> from... | 4 |
Text | Text | add permissions to quickstart tutorial | 62193e037859498bd8c87139ed63ebfd2cf8c324 | <ide><path>docs/tutorial/quickstart.md
<ide> Right, we'd better write some views then. Open `tutorial/quickstart/views.py` a
<ide>
<ide> from django.contrib.auth.models import User, Group
<ide> from rest_framework import viewsets
<add> from rest_framework import permissions
<ide> from tutorial.quicksta... | 1 |
Python | Python | add draft jieba tokenizer for chinese | 5363224395b26528465417ff550d6a2163cbe8e6 | <ide><path>spacy/zh/__init__.py
<del>from ..language import Language
<del>from ..tokenizer import Tokenizer
<del>from ..tagger import Tagger
<del>
<add>import jieba
<ide>
<del>class CharacterTokenizer(Tokenizer):
<del> def __call__(self, text):
<del> return self.tokens_from_list(list(text))
<add>from ..langu... | 1 |
Go | Go | fix typo in test title | 3c2b128582bc8ea786b5486578c43d97167805fe | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunAddingOptionalDevicesNoSrc(c *check.C) {
<ide> }
<ide> }
<ide>
<del>func (s *DockerSuite) TestRunAddingOptionalDevicesInvalideMode(c *check.C) {
<add>func (s *DockerSuite) TestRunAddingOptionalDevicesInvalidMode(c *check.C) {
<ide> ... | 1 |
Python | Python | resolve tests against django master | ea92d505826aa19c3681884ac5022dcdadf0c20e | <ide><path>tests/test_versioning.py
<ide> def test_query_param_versioning(self):
<ide> response = view(request)
<ide> assert response.data == {'version': None}
<ide>
<add> @override_settings(ALLOWED_HOSTS=['*'])
<ide> def test_host_name_versioning(self):
<ide> scheme = versioning.HostNam... | 1 |
Text | Text | update translation red-black-trees | e7eb2ea895079ae0c794a3be7610d0341224959e | <ide><path>guide/portuguese/algorithms/red-black-trees/index.md
<ide> Estilo de referência:  tomam o tempo O (h) onde h é a altura do BST. O custo dessas operações ... | 1 |
PHP | PHP | use a regex to find ascii control bytes | ab8daba90adb1abf4c6fe7682b25cdc554186f74 | <ide><path>src/Database/Log/LoggedQuery.php
<ide> protected function interpolate(): string
<ide> }
<ide>
<ide> if (is_string($p)) {
<del> // Likely binary UUID.
<del> if (strlen($p) === 16 && !ctype_print($p)) {
<add> // Likely binary data like a blo... | 1 |
Ruby | Ruby | remove unused default_select | 99dd107760191b834d0a97e89c5ae991c088a4a8 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def type_name_with_module(type_name)
<ide> end
<ide> end
<ide>
<del> def default_select(qualified)
<del> if qualified
<del> quoted_table_name + '.*'
<del> else
<del> '*'
<del> end
<del> ... | 1 |
Text | Text | add princejwesley to collaborators | adc74b42ca94ee26c50b1c1ebfe4ea887e4e202a | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [petkaantonov](https://github.com/petkaantonov) - **Petka Antonov** <petka_antonov@hotmail.com>
<ide> * [phillipj](https://github.com/phillipj) - **Phillip Johnsen** <johphi@gmail.com>
<ide> * [pmq20](https://git... | 1 |
Ruby | Ruby | convert query results to a list of lists | 60c877c43baa588db277fb4eca317e2f7884be70 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def result_as_array(res) #:nodoc:
<ide> # Queries the database and returns the results in an Array-like object
<ide> def query(sql, name = nil) #:nodoc:
<ide> log(sql, name) do
<del> @connection.async_... | 1 |
Text | Text | add django oauth toolkit to docs | aa706f581c84209d83acf04ccd8854e205057e50 | <ide><path>docs/api-guide/authentication.md
<ide> The command line to test the authentication looks like:
<ide>
<ide> curl -H "Authorization: Bearer <your-access-token>" http://localhost:8000/api/
<ide>
<add>### Alternative OAuth 2 implementations
<add>
<add>Note that [Django OAuth Toolkit][django-oauth-toolkit] ... | 1 |
Javascript | Javascript | prevent bubbling of minor units for iso dates | bb5135060a1e6a7d077a6b9d65edbe0e8b3b1a17 | <ide><path>src/lib/duration/iso-string.js
<add>import absFloor from '../utils/abs-floor';
<ide> var abs = Math.abs;
<ide>
<ide> export function toISOString() {
<add> // for ISO strings we do not use the normal bubbling rules:
<add> // * milliseconds bubble up until they become hours
<add> // * days do not b... | 1 |
Go | Go | fix race condition with exec and resize | dc56a76bc9f16b2d57b9d64822e305c1e787fcf0 | <ide><path>daemon/exec.go
<ide> func (d *Daemon) monitorExec(container *container.Container, execConfig *exec.Co
<ide> }
<ide>
<ide> if execConfig.ProcessConfig.Terminal != nil {
<add> if err := execConfig.WaitResize(); err != nil {
<add> logrus.Errorf("Error waiting for resize: %v", err)
<add> }
<ide> if err ... | 2 |
Javascript | Javascript | make withapollo work with _app.js components | 20d88231f4815ed79e3640509f9e11b242762ecb | <ide><path>examples/with-apollo/lib/apollo.js
<ide> import React from 'react'
<add>import App from 'next/app'
<ide> import Head from 'next/head'
<ide> import { ApolloProvider } from '@apollo/react-hooks'
<ide> import { ApolloClient } from 'apollo-client'
<ide> export const withApollo = ({ ssr = true } = {}) => PageComp... | 1 |
Text | Text | remove unneeded prompt block | b179d9e1216adc5b6e6e07a9fe41a4274831693a | <ide><path>docs/rfcs/001-updateable-bundled-packages.md
<ide> The primary use case for this improvement is enabling the GitHub package to ship
<ide>
<ide> ## Explanation
<ide>
<del>> Explain the proposal as if it was already implemented in Atom and you were describing it to an Atom user. That generally means:
<del>> ... | 1 |
PHP | PHP | remove unnecessary casting | 1fe7347e3330fa6dc9d0ecb947f5678d44b40663 | <ide><path>src/Http/Client/FormDataPart.php
<ide> public function __toString(): string
<ide> $out .= 'Content-ID: <' . $this->_contentId . ">\r\n";
<ide> }
<ide> $out .= "\r\n";
<del> $out .= (string)$this->_value;
<add> $out .= $this->_value;
<ide>
<ide> return $out;
... | 1 |
Ruby | Ruby | silence minitest for plugin tests | 106db0b419ede5bea7b93a9eb76ce6aa578b99b2 | <ide><path>railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
<ide> <% end -%>
<ide> require "rails/test_help"
<ide>
<del>Rails.backtrace_cleaner.remove_silencers!
<add># Filter out Minitest backtrace while allowing backtrace from other libraries
<add># to be shown.
<add>Minitest.backtrace_filter... | 2 |
Javascript | Javascript | remove unused code, add todo comment | 3d99168a67d04cecac97e320a922cb14887fd500 | <ide><path>lib/CachePlugin.js
<ide> class CachePlugin {
<ide> }
<ide>
<ide> apply(compiler) {
<del> const cacheMap = new Map();
<del> cacheMap.set(compiler, this.cache);
<ide> if(Array.isArray(compiler.compilers)) {
<ide> compiler.compilers.forEach((c, idx) => {
<ide> c.apply(new CachePlugin(this.cache[id... | 1 |
Ruby | Ruby | remove unused persistent option | 7bd70bae142e41f3c21338a8e5aaf52afff40b38 | <ide><path>actionview/test/template/digestor_test.rb
<ide> def test_old_style_hash_in_render_invocation
<ide> end
<ide>
<ide> def test_variants
<del> assert_digest_difference("messages/new", false, variants: [:iphone]) do
<add> assert_digest_difference("messages/new", variants: [:iphone]) do
<ide> chan... | 1 |
Python | Python | add module with aws utility functions | 8a3f2dbf97b89eabd9c769c10c10f90792d59168 | <ide><path>libcloud/common/aws.py
<add># Licensed to the Apache Software Foundation (ASF) under one or more
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># The ASF licenses this file to You under the Apache Li... | 1 |
PHP | PHP | apply fixes from styleci | 36ca1bea4c217fbc2457844a87f035e28303f8f6 | <ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php
<ide> public function toMail($notifiable)
<ide>
<ide> return $this->buildMailMessage($url);
<ide> }
<del>
<add>
<ide> /**
<ide> * Get the password reset URL for the given notifiable.
<ide> * | 1 |
PHP | PHP | parse rules in getfield() | 60c611fa47321e2a359ea8e66b8351cb8d07e09d | <ide><path>lib/Cake/Model/ModelValidator.php
<ide> public function getMethods() {
<ide> * @return CakeValidationSet|array
<ide> */
<ide> public function getField($name = null) {
<add> $this->_parseRules();
<ide> if ($name !== null && !empty($this->_fields[$name])) {
<ide> return $this->_fields[$name];
<ide> ... | 2 |
Javascript | Javascript | fix ref behavior for remounting | d889a01cafd749a99ea5b6d67f8913cc21b451d1 | <ide><path>src/core/ReactCompositeComponent.js
<ide> var ReactCompositeComponentMixin = {
<ide> this._renderedComponent = null;
<ide>
<ide> ReactComponent.Mixin.unmountComponent.call(this);
<del> ReactOwner.Mixin.unmountComponent.call(this);
<ide>
<ide> // Some existing components rely on this.props ev... | 2 |
Text | Text | fix typo in docs | f4cf25863cdd9d6e6adf9a7c8aba731e3c295ff9 | <ide><path>docs/templates/applications.md
<ide> Weights are downloaded automatically when instantiating a model. They are stored
<ide> - [InceptionV3](#inceptionv3)
<ide> - [MobileNet](#mobilenet)
<ide>
<del>All of these architectures (except Xception and MobileNet) are compatible with both TensorFlow and Theano, and ... | 1 |
Javascript | Javascript | remove unnecessary test setup | 8079b518397dc4dfa07e1aae73899f56b8d3326c | <ide><path>spec/dock-spec.js
<ide> describe('Dock', () => {
<ide> describe('activating the next pane', () => {
<ide> describe('when the dock has more than one pane', () => {
<ide> it('activates the next pane', () => {
<del> jasmine.attachToDOM(atom.workspace.getElement())
<ide> const dock = a... | 1 |
Python | Python | get log events after sleep to get all logs | 21a90c5b7e2f236229812f9017582d67d3d7c3f0 | <ide><path>airflow/providers/amazon/aws/operators/ecs.py
<ide> def __init__(
<ide> def run(self) -> None:
<ide> logs_to_skip = 0
<ide> while not self.is_stopped():
<add> time.sleep(self.fetch_interval.total_seconds())
<ide> log_events = self._get_log_events(logs_to_skip)
<ide>... | 1 |
Text | Text | fix broken link | 8e5ef488220ab0f6242b1478b8ac227eab731e57 | <ide><path>examples/with-react-toolbox/README.md
<ide> Notice that `yarn toolbox` (or `npm run toolbox`) should be rerun every time the
<ide>
<ide> This is a simple example of getting react-toolbox up and running, using [react-toolbox-themr](https://github.com/react-toolbox/react-toolbox-themr).
<ide>
<del>For actual... | 1 |
Text | Text | improve async_hooks asynchronous context example | b4fe76d656d51ead949f2a35c13a221616f78c4c | <ide><path>doc/api/async_hooks.md
<ide> async_hooks.createHook({
<ide> },
<ide> before(asyncId) {
<ide> const indentStr = ' '.repeat(indent);
<del> fs.writeFileSync('log.out',
<del> `${indentStr}before: ${asyncId}\n`, { flag: 'a' });
<add> fs.writeSync(process.stdout.fd, `${indentStr}... | 1 |
PHP | PHP | refactor the generator command | b0370761de74571a793f40b0547b58402b9737d2 | <ide><path>src/Illuminate/Console/GeneratorCommand.php
<ide> abstract protected function getStub();
<ide> */
<ide> public function fire()
<ide> {
<del> $name = $this->parseName($this->getNameInput());
<add> $name = $this->qualifyClass($this->getNameInput());
<ide>
<ide> $path = $this... | 2 |
Python | Python | remove unused function _move_axis_to_0 | 0ccdd6fc1b30f767b1148690e1b73fd1b399c4ff | <ide><path>numpy/core/numeric.py
<ide> def moveaxis(a, source, destination):
<ide> return result
<ide>
<ide>
<del># fix hack in scipy which imports this function
<del>def _move_axis_to_0(a, axis):
<del> return moveaxis(a, axis, 0)
<del>
<del>
<ide> def _cross_dispatcher(a, b, axisa=None, axisb=None, axisc=None... | 1 |
Python | Python | bring english tag_map in line with ud treebank | 04395ffa49409f669147168c8966ac21335cbb4d | <ide><path>spacy/lang/en/morph_rules.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>from ...symbols import LEMMA, PRON_LEMMA
<add>from ...symbols import LEMMA, PRON_LEMMA, AUX
<ide>
<add>_subordinating_conjunctions = [
<add> "that",
<add> "if",
<add> "as",
<add> "because"... | 2 |
PHP | PHP | add computed support to sql server schema grammar | 0fc4965f052b19fbd572afa69c0882bbcc0f9dc2 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function unsignedDecimal($column, $total = 8, $places = 2)
<ide> ]);
<ide> }
<ide>
<add> /**
<add> * Create a new generated virtual column on the table.
<add> *
<add> * @param string $column
<add> * @param string $f... | 3 |
Python | Python | use project_id to get authenticated client | d4eb60712dc7bb34960ae10b9e6dd8624a554dfc | <ide><path>airflow/providers/google/cloud/hooks/bigquery.py
<ide> def create_empty_dataset(
<ide> dataset_reference["datasetReference"][param] = value
<ide>
<ide> location = location or self.location
<add> project_id = project_id or self.project_id
<ide> if location:
<ide> ... | 1 |
Javascript | Javascript | handle backtrace errors | 9b6acc27aad706505dff937e3b2ae6f8185b0995 | <ide><path>lib/_debugger.js
<ide> Client.prototype.reqEval = function(expression, cb) {
<ide> }
<ide>
<ide> // Otherwise we need to get the current frame to see which scopes it has.
<del> this.reqBacktrace(function(bt) {
<del> if (!bt.frames) {
<add> this.reqBacktrace(function(err, bt) {
<add> if (err || !... | 1 |
Javascript | Javascript | remove one loop from `baseviewer.getpagesoverview` | 1de466896d123486bdffd06bfbbd5735f5792d5b | <ide><path>web/base_viewer.js
<ide> class BaseViewer {
<ide> * @returns {Array} Array of objects with width/height/rotation fields.
<ide> */
<ide> getPagesOverview() {
<del> const pagesOverview = this._pages.map(function (pageView) {
<add> return this._pages.map(pageView => {
<ide> const viewport = ... | 1 |
Ruby | Ruby | handle relations with limit in include? | 345de17caf82f215b2a9a94e80eabf2473177e3a | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def exists?(conditions = :none)
<ide> # compared to the records in memory. If the relation is unloaded, an
<ide> # efficient existence query is performed, as in #exists?.
<ide> def include?(record)
<del> if loaded? || offset_val... | 2 |
PHP | PHP | fix possible problem in provider zip extraction | e89082e3bae8034dc3a3204040edcb4692ed884f | <ide><path>laravel/cli/tasks/bundle/providers/provider.php
<ide> protected function zipball($url, $bundle, $path)
<ide> // we have a spot to do all of our bundle extration work.
<ide> $target = $work.'laravel-bundle.zip';
<ide>
<del> File::put($target, file_get_contents($url));
<add> File::put($target, $this->do... | 1 |
PHP | PHP | add simplepaginator which skips count query | 409389f7100b24774994b4fda76f01d48a3108e9 | <ide><path>src/Datasource/Paginator.php
<ide> protected function getQuery(RepositoryInterface $object, QueryInterface $query =
<ide> *
<ide> * @param \Cake\Datasource\QueryInterface $query Query instance.
<ide> * @param array $data Pagination data.
<del> * @return int
<add> * @return int|null
<id... | 4 |
Ruby | Ruby | remove unneeded requires | bf7b8c193ffe2d6a05272a6ed763d87cfe743bb4 | <ide><path>actionmailer/lib/action_mailer/message_delivery.rb
<ide> require 'delegate'
<del>require 'active_support/core_ext/string/filters'
<ide>
<ide> module ActionMailer
<ide>
<ide><path>actionpack/lib/action_dispatch/http/response.rb
<ide> require 'active_support/core_ext/module/attribute_accessors'
<del>require ... | 9 |
Python | Python | fix imports for all namespace packages | 9016fe192fdd3121b6cb20eafeed2dd9154848eb | <ide><path>ciphers/affine_cipher.py
<ide> import random
<ide> import sys
<ide>
<del>import cryptomath_module as cryptomath
<add>from . import cryptomath_module as cryptomath
<ide>
<ide> SYMBOLS = (
<ide> r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`"""
<ide><path>ciphers/elgamal_key_genera... | 17 |
Javascript | Javascript | add a build step to hoist warning conditions | 1c2876d5b558b8591feb335d8d7204bc46f7da8a | <add><path>scripts/babel/__tests__/wrap-warning-with-env-check-test.js
<del><path>scripts/rollup/plugins/__tests__/wrap-warning-with-env-check-test.js
<ide> describe('wrap-warning-with-env-check', () => {
<ide> it('should wrap warning calls', () => {
<ide> compare(
<ide> "warning(condition, 'a %s b', 'c');"... | 4 |
PHP | PHP | check ob_get_level() before ob_flush() | 1f4402cd4c448571af68b9b694729f29f9ba45f0 | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> protected function _clearBuffer() {
<ide> protected function _flushBuffer() {
<ide> //@codingStandardsIgnoreStart
<ide> @flush();
<del> @ob_flush();
<add> if (ob_get_level()) {
<add> @ob_flush();
<add> }
<ide> //@codingStandardsIgnoreEnd
<ide> }
<ide> | 1 |
Go | Go | ensure run instruction to run without healthcheck | 44e08d8a7d1249a1956018c6c3d3655642a4f273 | <ide><path>builder/dockerfile/dispatchers.go
<ide> func dispatchRun(d dispatchRequest, c *instructions.RunCommand) error {
<ide> runConfig := copyRunConfig(stateRunConfig,
<ide> withCmd(cmdFromArgs),
<ide> withEnv(append(stateRunConfig.Env, buildArgs...)),
<del> withEntrypointOverride(saveCmd, strslice.StrSlice{"... | 3 |
PHP | PHP | add starts with validation | 5f6d9a431c4fcedcbae969ba95d266604be54060 | <ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php
<ide> public function validateSometimes()
<ide> return true;
<ide> }
<ide>
<add> /**
<add> * Validate the attribute starts with a given substring.
<add> *
<add> * @param string $attribute
<add> * @param mixed $val... | 2 |
Python | Python | fix compatibility for newer tensorflow and python3 | cbd8136fb3e55373581651d350a8b7c724cff42f | <ide><path>research/adversarial_text/data/data_utils.py
<ide> def sort_vocab_by_frequency(vocab_freq_map):
<ide> def write_vocab_and_frequency(ordered_vocab_freqs, output_dir):
<ide> """Writes ordered_vocab_freqs into vocab.txt and vocab_freq.txt."""
<ide> tf.gfile.MakeDirs(output_dir)
<del> with open(os.path.join... | 4 |
Text | Text | transform comma into period | be304ec688e080ae6fe4c58bcc7d0f662bb240dc | <ide><path>CONTRIBUTING.md
<ide> The Docker maintainers take security seriously. If you discover a security
<ide> issue, please bring it to their attention right away!
<ide>
<ide> Please **DO NOT** file a public issue, instead send your report privately to
<del>[security@docker.com](mailto:security@docker.com),
<add>... | 1 |
Text | Text | change the "degree" to degree sign(°) | 3c925cf2a6ab04c2754e4878eb03a88e8852b8c7 | <ide><path>guide/english/mathematics/area-of-a-triangle/index.md
<ide> Sin - The sine trigonometric expression.
<ide>
<ide> 2. If two sides of a triangle are known to be 3 and 6, and the angle between them is 30 degrees, what is the angle of the triangle?
<ide>
<del> Area = 0.5 x 3 x 6 x sin(30 degrees) = 4.5 un... | 1 |
Python | Python | add type check to axis | 8e9d1c54552ca7350ff092544d265b1bf6f1eecf | <ide><path>keras/losses.py
<ide> from tensorflow.python.util import dispatch
<ide> from tensorflow.python.util.tf_export import keras_export
<ide> from tensorflow.tools.docs import doc_controls
<del>from tensorflow.python.ops import check_ops
<ide>
<ide>
<ide> @keras_export('keras.losses.Loss')
<ide> def categorical_... | 1 |
Ruby | Ruby | rescue more errors during `cask upgrade` | fbf4b0432d18e48b3b611b135e9b2e177e4e958d | <ide><path>Library/Homebrew/cask/cmd/upgrade.rb
<ide> def run
<ide>
<ide> upgradable_casks.each do |(old_cask, new_cask)|
<ide> upgrade_cask(old_cask, new_cask)
<del> rescue CaskError => e
<add> rescue => e
<ide> caught_exceptions << e
<ide> next
<ide> end
<i... | 1 |
Javascript | Javascript | remove proptypes from modal.js | 6b892141cc77e87e9ed28b7ba21a63ce35d7937e | <ide><path>Libraries/Modal/Modal.js
<ide> const ModalEventEmitter =
<ide> : null;
<ide>
<ide> import type EmitterSubscription from 'EmitterSubscription';
<add>import type {ViewProps} from 'ViewPropTypes';
<add>import type {SyntheticEvent} from 'CoreEventTypes';
<ide>
<ide> /**
<ide> * The Modal component is a si... | 1 |
Javascript | Javascript | add helpful message about pooled classes | e65f17b86cdfbe04453766161d5159203e672a7f | <ide><path>src/utils/PooledClass.js
<ide>
<ide> var invariant = require('invariant');
<ide>
<add>var ABOUT_POOLING_MESSAGE = null;
<add>if (__DEV__) {
<add> ABOUT_POOLING_MESSAGE = (
<add> 'This object is reused for performance reasons. If you\'re seeing this ' +
<add> 'after logging an object, try logging ind... | 1 |
PHP | PHP | add missing docblock | ee204009891b65d03a2fcc4447033c5f88299fb5 | <ide><path>lib/Cake/TestSuite/Fixture/TestFixture.php
<ide> class TestFixture {
<ide> */
<ide> public $fields = array();
<ide>
<add>/**
<add> * Configuration for importing fixture schema
<add> *
<add> * Accepts a `connection` and `table` key, to define
<add> * which table and which connection contain the schema to b... | 1 |
Javascript | Javascript | support multiple classes in classed operator | 927426f79f56802aa99e6620be714646bcee3b7b | <ide><path>d3.js
<ide> d3_selectionPrototype.attr = function(name, value) {
<ide> : (name.local ? attrConstantNS : attrConstant)));
<ide> };
<ide> d3_selectionPrototype.classed = function(name, value) {
<add> var names = name.split(d3_selection_classedWhitespace),
<add> n = names.length;
<add> if (n > 1) {... | 4 |
Go | Go | fix flaky test testjsonformatprogress | d17bb23ae6efba6e76e7a56b856705400e26a61b | <ide><path>pkg/streamformatter/streamformatter_test.go
<ide> import (
<ide> "encoding/json"
<ide> "errors"
<ide> "reflect"
<add> "strings"
<ide> "testing"
<ide>
<ide> "github.com/docker/docker/pkg/jsonmessage"
<ide> func TestJSONFormatProgress(t *testing.T) {
<ide> if msg.Status != "action" {
<ide> t.Fatalf("S... | 1 |
Javascript | Javascript | fix the time zone for testing | 1ac0fa09a96e252ee1f0def5018b7c0f3e6686c4 | <ide><path>test/load.js
<add>process.env.TZ = "America/Los_Angeles";
<add>
<ide> var smash = require("smash"),
<ide> jsdom = require("jsdom");
<ide> | 1 |
Ruby | Ruby | extract error handling from github.open | 1d5ab3195cb9c19a349ccdcdf6c4f75d7c02460b | <ide><path>Library/Homebrew/utils.rb
<ide> def open url, headers={}, &block
<ide> yield Utils::JSON.load(f.read)
<ide> end
<ide> rescue OpenURI::HTTPError => e
<add> handle_api_error(e)
<add> rescue SocketError, OpenSSL::SSL::SSLError => e
<add> raise Error, "Failed to connect to: #{url}\n#{e.message... | 1 |
Javascript | Javascript | simplify getall helper | 25712d77c3bc0221b5b2b9b9492c20a9cfbe1b17 | <ide><path>src/manipulation.js
<ide> function cloneCopyEvent( src, dest ) {
<ide> }
<ide>
<ide> function getAll( context, tag ) {
<del> var elems, elem,
<del> i = 0,
<del> ret = typeof context.getElementsByTagName !== "undefined" ? context.getElementsByTagName( tag || "*" ) :
<del> typeof context.querySelectorAll ... | 1 |
PHP | PHP | return 500 error on debug exceptions | 475872269956f1217f180a976d27f0b79ec03cc4 | <ide><path>src/Illuminate/Exception/Handler.php
<ide> public function handleException($exception)
<ide>
<ide> $response->send();
<ide> }
<add>
<add> // If no response was sent by this custom exception handler, we will call the
<add> // default exception displayer for the current application context and let
<add... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.