content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Ruby | Ruby | preserve request format for html requests too | c33bda875e562561292eafc7c99362f23cf8150a | <ide><path>actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
<ide> def render_exception(request, exception)
<ide> log_error(request, wrapper)
<ide>
<ide> if request.get_header('action_dispatch.show_detailed_exceptions')
<del> case @response_format
<del> when :api
<del> re... | 2 |
Text | Text | update flight manuals | a3c1e25d787ac5bd218f03c3cbc1ea22003d411b | <ide><path>docs/flight-manuals/working-on-virtual-machines.md
<ide> # Flight Manual for working on Virtual Machines
<ide>
<del>As a member of the staff or the dev-team, you may have been given access to our cloud service providers like Azure, Digital Ocean, etc.
<add>As a member of the staff or the dev-team, you may h... | 1 |
Javascript | Javascript | move testadapter tests into ember-testing | bb506f48135df05450e97fe34ce04a627dd3004c | <ide><path>packages/ember-testing/lib/index.js
<ide> export { default as Test } from './test';
<ide> export { default as Adapter } from './adapters/adapter';
<del>export { setAdapter, getAdapter } from './test/adapter';
<ide> export { default as setupForTesting } from './setup_for_testing';
<ide> export { default as QU... | 3 |
Java | Java | introduce getannotation() in annotatedelementutils | 9f717871e6aafaa0bc53762622b21cacdfff5584 | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java
<ide> public Boolean process(AnnotatedElement annotatedElement, Annotation annotation,
<ide> }));
<ide> }
<ide>
<add> /**
<add> * Get the first annotation of the specified {@code annotationType} within
<add> * the ... | 3 |
PHP | PHP | make resolveproviderclass public | f6c1319283e3b31bc8ab8067393b436b003c2857 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function register($provider, $options = array())
<ide> * @param string $provider
<ide> * @return \Illuminate\Support\ServiceProvider
<ide> */
<del> protected function resolveProviderClass($provider)
<add> public function resolveProviderClass($pro... | 1 |
Ruby | Ruby | add scons helper | 9055c1e3617269e2d28f97addf4d56f6b57d348a | <ide><path>Library/Homebrew/utils.rb
<ide> def curl *args
<ide> safe_system curl, *args
<ide> end
<ide>
<add># Run scons using a Homebrew-installed version, instead of whatever
<add># is in the user's PATH
<add>def scons *args
<add> scons = Formulary.factory("scons").opt_prefix/'bin/scons'
<add> raise "#{scons} is... | 1 |
Javascript | Javascript | update unit tests | 7630e7a649738cf28ad4fe5a9235da17d74de30c | <ide><path>test/unit/src/extras/curves/CatmullRomCurve3.tests.js
<ide> export default QUnit.module( 'Extras', () => {
<ide> ];
<ide>
<ide> var points = [
<del> curve.getPointAt( 0 ),
<del> curve.getPointAt( 0.3 ),
<del> curve.getPointAt( 0.5 ),
<del> curve.getPointAt( 1 )
<add> curve.getPoi... | 9 |
Python | Python | add datetime formatting for eta time. | 5ca4f74ae57eab613f1a6018b873c26db18bf232 | <ide><path>keras/utils/generic_utils.py
<ide> def update(self, current, values=None, force=False):
<ide> time_per_unit = 0
<ide> if self.target is not None and current <= self.target:
<ide> eta = time_per_unit * (self.target - current)
<del> info = ' - ETA: %0.... | 1 |
Text | Text | fix broken link to glossary page | f6753cd9635b294f1463ef7fb6952dd2a74c0a69 | <ide><path>docs/userguide/dockervolumes.md
<ide> Docker.
<ide>
<ide> A *data volume* is a specially-designated directory within one or more
<ide> containers that bypasses the [*Union File
<del>System*](/terms/layer/#union-file-system). Data volumes provide several
<add>System*](/reference/glossary#union-file-system).... | 1 |
Javascript | Javascript | fix clone(true) for ie | 500ff12d5da5e0d454663203101d65c9ed37cffa | <ide><path>src/core.js
<ide> jQuery.fn = jQuery.prototype = {
<ide> var ret = this.map(function(){
<ide> return this.outerHTML ? jQuery(this.outerHTML)[0] : this.cloneNode(true);
<ide> });
<del>
<del> if (events === true) {
<del> var clone = ret.find("*").andSelf();
<ide>
<add> // Need to set the expando ... | 1 |
Javascript | Javascript | add github to validation list | ea1c1328681c239478d64824ffc734c5a5d25888 | <ide><path>client/src/components/formHelpers/FormFields.js
<ide> function FormFields(props) {
<ide> types = {}
<ide> } = options;
<ide>
<del> const nullOrWarning = (value, error, isURL) => {
<add> const nullOrWarning = (value, error, isURL, name) => {
<ide> let validationError;
<ide> if (value && isURL... | 3 |
Python | Python | fix failing test | 7480ded658720267a23a537d30e939ec9218eee0 | <ide><path>tests/test_processor_wav2vec2_with_lm.py
<ide> def test_decoder_download_ignores_files(self):
<ide> path_to_cached_dir = Path(language_model._kenlm_model.path.decode("utf-8")).parent.parent.absolute()
<ide>
<ide> downloaded_decoder_files = os.listdir(path_to_cached_dir)
<add> expected... | 1 |
Go | Go | activate config.stdinonce at argument parsing | aea2675f7b2e4aa8bf63c8472af40bc059bd5d14 | <ide><path>commands.go
<ide> func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
<ide> if !config.Detach {
<ide> var attachErr chan error
<ide> if config.OpenStdin {
<del> config.StdinOnce = true
<ide> Debugf("Attaching with stdin\n")
<ide> attachErr = container.Attach(stdin, s... | 2 |
Javascript | Javascript | avoid calls to `element.value` | 3b7f29ff63e8bf02327a1430dcc2a4c83915a206 | <ide><path>src/ng/directive/ngOptions.js
<ide> var ngOptionsDirective = ['$compile', '$document', '$parse', function($compile,
<ide> element.label = option.label;
<ide> element.textContent = option.label;
<ide> }
<del> if (option.value !== element.value) element.value = option.selectV... | 1 |
Python | Python | allow use of predict without compilation | d8864bfe48d64c15dc70f13e46c7e08772811fd9 | <ide><path>keras/engine/training.py
<ide> def _make_test_function(self):
<ide>
<ide> def _make_predict_function(self):
<ide> if not hasattr(self, 'predict_function'):
<del> raise Exception('You must compile your model before using it.')
<add> self.predict_function = None
<ide> ... | 2 |
PHP | PHP | replace smart quotes with ascii equivalents | 32cb416ad7bf4118e85f6ffc10a20620cc0880f5 | <ide><path>lib/Cake/Model/Model.php
<ide> class Model extends Object {
<ide> * ### Possible keys in association
<ide> *
<ide> * - `className`: the classname of the model being associated to the current model.
<del> * If you’re defining a ‘Profile belongsTo User’ relationship, the className key should equal ‘User.’... | 1 |
Javascript | Javascript | remove .gethex() from gltf2loader | 0727fc42ff394dfad54c4fbc228deafeb967ece0 | <ide><path>examples/js/loaders/GLTF2Loader.js
<ide> THREE.GLTF2Loader = ( function () {
<ide>
<ide> } else {
<ide>
<del> materialParams.color.setRGB( 1.0, 1.0, 1.0 ).getHex();
<add> materialParams.color.setRGB( 1.0, 1.0, 1.0 );
<ide> materialParams.opacity = 1.0;
<ide>
<ide> } | 1 |
Python | Python | set version to 2.0.11 | 0c7fab44435756f10be4ca3c4d70358ab0ab502b | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '2.0.11.dev0'
<add>__version__ = '2.0.11'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = 'https:/... | 1 |
Ruby | Ruby | restore the behavior of journey root node methods | 754ed1f45b88c882efe90883f91ac227cede32fe | <ide><path>actionpack/lib/action_dispatch/journey/nodes/node.rb
<ide> module ActionDispatch
<ide> module Journey # :nodoc:
<ide> class Ast # :nodoc:
<del> delegate :find_all, :left, :right, :to_s, :to_sym, :type, to: :tree
<ide> attr_reader :names, :path_params, :tree, :wildcard_options, :terminals
<id... | 6 |
Javascript | Javascript | normalize platform colors early | 159eb0bdf4aec6f0fd3d66e372b9c13312aff6ef | <ide><path>Libraries/StyleSheet/__tests__/normalizeColor-test.js
<ide> describe('iOS', () => {
<ide> it('should normalize iOS Dynamic colors with named colors', () => {
<ide> const color = DynamicColorIOS({light: 'black', dark: 'white'});
<ide> const normalizedColor = normalizeColor(color);
<del> c... | 2 |
Go | Go | send capability ids to lxc | bff3509e431ce6d68e2accbb842c99d4abe86e05 | <ide><path>daemon/execdriver/lxc/lxc_template.go
<ide> package lxc
<ide>
<ide> import (
<del> "github.com/docker/docker/daemon/execdriver"
<del> nativeTemplate "github.com/docker/docker/daemon/execdriver/native/template"
<del> "github.com/docker/libcontainer/label"
<add> "fmt"
<ide> "os"
<ide> "strings"
<ide> "text... | 3 |
Python | Python | reorganise french punctuation rules | e895d1afd70555868198de1ec403728406c02e10 | <ide><path>spacy/lang/fr/punctuation.py
<ide> # coding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>from ..char_classes import TOKENIZER_INFIXES, LIST_PUNCT LIST_ELLIPSES
<del>from ..char_classes import LIST_QUOTES, CURRENCY, QUOTES, UNITS
<del>from ..char_classes import ALPHA, ALPHA_LOWER, ALPHA_UPP... | 1 |
Text | Text | add docs for static 404 and pages/404 | a4eef95056405c48d65fc61b65081cd7855edd0c | <ide><path>docs/advanced-features/custom-error-page.md
<ide> description: Override and extend the built-in Error page to handle custom errors.
<ide> ---
<ide>
<del># Custom Error Page
<add>## 404 Page
<ide>
<del>**404** or **500** errors are handled both client-side and server-side by the `Error` component. If you wi... | 1 |
Python | Python | fix mime type on schema.js endpoint. closes | de9a8c4811efccc7f6ab3ae2cd36cef7f9f4ea59 | <ide><path>rest_framework/renderers.py
<ide> def render(self, data, accepted_media_type=None, renderer_context=None):
<ide>
<ide>
<ide> class SchemaJSRenderer(BaseRenderer):
<del> media_type = 'script/javascript'
<add> media_type = 'application/javascript'
<ide> format = 'javascript'
<ide> charset = 'ut... | 1 |
Javascript | Javascript | fix lint errors | 07c7e53b1eb620064e9d81004438f3028d22151a | <ide><path>src/text-editor-component.js
<ide> const {Point, Range} = require('text-buffer')
<ide> const LineTopIndex = require('line-top-index')
<ide> const TextEditor = require('./text-editor')
<ide> const {isPairedCharacter} = require('./text-utils')
<del>const clipboard = require('./safe-clipboard')
<ide> const elec... | 1 |
PHP | PHP | use unguarded method for forcefill and forcecreate | 705ccb731cd65574b047c945a71a9adb60f078b9 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function fill(array $attributes)
<ide> */
<ide> public function forceFill(array $attributes)
<ide> {
<del> static::unguard();
<del>
<del> $this->fill($attributes);
<del>
<del> static::reguard();
<add> // Since some versions of PHP have a bug tha... | 2 |
Text | Text | add reference to update-python-resources | 465a1faa8a41156d0992af1b02c299a061d47d71 | <ide><path>docs/Python-for-Formula-Authors.md
<ide> Applications should be installed into a Python [virtualenv](https://virtualenv.p
<ide>
<ide> All of the Python module dependencies of the application (and their dependencies, recursively) should be declared as `resource`s in the formula and installed into the virtual... | 1 |
PHP | PHP | fix notification fake for arrays | 394ec059c3968a534434028b5040176b830d943b | <ide><path>src/Illuminate/Support/Testing/Fakes/NotificationFake.php
<ide> class NotificationFake implements NotificationFactory
<ide> */
<ide> public function assertSentTo($notifiable, $notification, $callback = null)
<ide> {
<add> if (is_array($notifiable) || $notifiable instanceof Collection) {
<... | 1 |
Ruby | Ruby | eliminate nil check on path parameter | e3e14a0cdfbd0b4bdc4757689055e3e3ee890438 | <ide><path>Library/Homebrew/formula.rb
<ide> class Formula
<ide> attr_reader :cxxstdlib
<ide>
<ide> # Homebrew determines the name
<del> def initialize name='__UNKNOWN__', path=nil
<add> def initialize name='__UNKNOWN__', path=self.class.path(name)
<ide> @name = name
<del> # If we got an explicit path, us... | 2 |
Ruby | Ruby | fix parsing of urls ending with version | a5a1b2969fa6a515495b11f746f43ec005ed671b | <ide><path>Library/Homebrew/test/test_versions.rb
<ide> def test_opam_version
<ide> "https://opam.ocaml.org/archives/easy-format.1.0.2+opam.tar.gz"
<ide> end
<ide>
<del> def test_waf_version
<add> def test_no_extension_version
<ide> assert_version_detected "1.8.12", "https://waf.io/waf-1.8.12"
<add> a... | 2 |
Text | Text | fix http.agent timeout option description | 9dc11764f27f701c5d3f027cfabec00a2d8222e1 | <ide><path>doc/api/http.md
<ide> added: v0.3.4
<ide> in a free state. Only relevant if `keepAlive` is set to `true`.
<ide> **Default:** `256`.
<ide> * `timeout` {number} Socket timeout in milliseconds.
<del> This will set the timeout after the socket is connected.
<add> This will set the timeout when th... | 1 |
Javascript | Javascript | use hooks in with-cookie-auth example | 960906553b82bce52c519e200c9ed647d076028f | <ide><path>examples/with-cookie-auth/utils/auth.js
<del>import { Component } from 'react'
<add>import { useEffect } from 'react'
<ide> import Router from 'next/router'
<ide> import nextCookie from 'next-cookies'
<ide> import cookie from 'js-cookie'
<ide>
<del>function login ({ token }) {
<add>export const login = ({ t... | 1 |
PHP | PHP | improve missing template errors | 9b15db136544a97fed63b845380a1c7b42d2fe77 | <ide><path>src/View/Cell.php
<ide> public function render(?string $template = null): string
<ide> try {
<ide> return $view->render($template);
<ide> } catch (MissingTemplateException $e) {
<del> throw new MissingCellViewException(['file' => $template, 'name' => $na... | 8 |
Javascript | Javascript | move ie8 onscroll check | 7ae8909504667629a5f5ae1459664d57893a03ed | <ide><path>src/browser/ui/ReactDOMComponent.js
<ide> var ReactPerf = require('ReactPerf');
<ide>
<ide> var escapeTextForBrowser = require('escapeTextForBrowser');
<ide> var invariant = require('invariant');
<add>var isEventSupported = require('isEventSupported');
<ide> var keyOf = require('keyOf');
<ide> var merge = r... | 2 |
Python | Python | fix code comments for method example in online doc | 209b42c5eec5fafa16e59f3882b563f27273c462 | <ide><path>docs/autogen.py
<ide> def process_class_docstring(docstring):
<ide>
<ide>
<ide> def process_method_docstring(docstring):
<del> docstring = re.sub(r' # (.*)\n',
<del> r' __\1__\n\n',
<add> docstring = re.sub(r'\n # (.*)\n',
<add> r'\n __\... | 1 |
Ruby | Ruby | add deprecate module | 7a62973de296e3d11cdbf17acd3bc7b19ca0d5bc | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> end
<ide>
<ide> def install_formula(f)
<add> opoo "#{f.name} has been deprecated" if f.is_deprecated?
<ide> f.print_tap_action
<ide> build_options = f.build
<ide>
<ide><path>Library/Homebrew/cmd/reinstall.rb
<ide> def reinstall
<ide> ... | 6 |
Ruby | Ruby | avoid chdir error in bin/setup test on ruby master | a484bd807e4f71b14bb00574233ae6c49c912e00 | <ide><path>railties/test/application/bin_setup_test.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "isolation/abstract_unit"
<add>require "chdir_helpers"
<ide>
<ide> module ApplicationTests
<ide> class BinSetupTest < ActiveSupport::TestCase
<del> include ActiveSupport::Testing::Isolation
<add> inc... | 1 |
Javascript | Javascript | ignore input elements except in search | 52653c57fcd4b0822dff302935a42f5070983f66 | <ide><path>client/src/components/search/searchBar/SearchBar.js
<ide> import { connect } from 'react-redux';
<ide> import { bindActionCreators } from 'redux';
<ide> import { createSelector } from 'reselect';
<ide> import { SearchBox } from 'react-instantsearch-dom';
<del>import { HotKeys, configure } from 'react-hotkeys... | 1 |
Javascript | Javascript | fix typo in reactfibertreereflection | 7831440dc9713fd758ec203d5e6053123e3f1a69 | <ide><path>src/renderers/shared/fiber/ReactFiberTreeReflection.js
<ide> function findCurrentFiberUsingSlowPath(fiber: Fiber): Fiber | null {
<ide> a = parentA;
<ide> b = parentB;
<ide> } else {
<del> // The return pointers pointer to the same fiber. We'll have to use the
<add> // The return po... | 1 |
Javascript | Javascript | improve logic to generate nightly release notes | c67794cf96cd16403a8621dc291112d6a4774b84 | <ide><path>script/vsts/lib/release-notes.js
<ide> module.exports.generateForNightly = async function(
<ide> releaseVersion,
<ide> githubToken
<ide> ) {
<del> const releases = await octokit.repos.getReleases({
<del> owner: 'atom',
<del> repo: 'atom-nightly-releases'
<del> });
<del> const previousRelease = g... | 1 |
Text | Text | fix typo in testing.md | 73daa9595bdcf182493bb9fb72eb9e9e7b3109e1 | <ide><path>docs/Testing.md
<ide> You can run integration tests locally with cmd+U in the IntegrationTest and UIEx
<ide>
<ide> A common type of integration test is the snapshot test. These tests render a component, and verify snapshots of the screen against reference images using `TestModule.verifySnapshot()`, using t... | 1 |
Go | Go | add integration test for hairpin nat | 1775ed8c75fabb3544402ca13afe7a4c35b27038 | <ide><path>integration-cli/docker_cli_nat_test.go
<add>package main
<add>
<add>import (
<add> "encoding/json"
<add> "fmt"
<add> "github.com/dotcloud/docker/runtime"
<add> "net"
<add> "os/exec"
<add> "path/filepath"
<add> "testing"
<add>)
<add>
<add>func TestNetworkNat(t *testing.T) {
<add> ncPath, err := exec.LookPath(... | 1 |
Javascript | Javascript | remove unused argument from helper functions | b86b0a23467158850c97f6bd04f2a9e990de647a | <ide><path>packages/ember-metal/lib/computed.js
<ide> var get = Ember.get,
<ide> This function returns a map of unique dependencies for a
<ide> given object and key.
<ide> */
<del>function keysForDep(obj, depsMeta, depKey) {
<add>function keysForDep(depsMeta, depKey) {
<ide> var keys = depsMeta[depKey];
<ide> i... | 1 |
Ruby | Ruby | get all of rake tests to pass | 7b1f483fda4fc8e4fc931649364a211a9f9d945f | <ide><path>actionpack/lib/action_controller.rb
<ide> module ActionController
<ide> # require 'action_controller/routing'
<ide> autoload :Caching, 'action_controller/caching'
<ide> autoload :Dispatcher, 'action_controller/dispatch/dispatcher'
<add> autoload :Integration, 'action_controller/... | 2 |
Java | Java | add consumer methods to configure jackson modules | e50131d454248b9eca26edb4765aaeae3f204107 | <ide><path>spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java
<ide> /*
<del> * Copyright 2002-2021 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
... | 2 |
Text | Text | remove duplicate accessibility header | 36cda5619a5985435e33191666da103608155a00 | <ide><path>docs/Accessibility.md
<ide> permalink: docs/accessibility.html
<ide> next: nativemodulesios
<ide> ---
<ide>
<del># Accessibility
<del>
<ide> Accessibility on iOS encompasses many topics, but for many, accessibility is synonymous with VoiceOver, a technology available since iOS 3.0. It acts as a screen reade... | 1 |
Python | Python | parse more subarrays in descr_to_dtype | b90addd13f17d967d81dc1d7515887d4fcd6ef59 | <ide><path>numpy/lib/format.py
<ide> def descr_to_dtype(descr):
<ide>
<ide> This function reverses the process, eliminating the empty padding fields.
<ide> '''
<del> if isinstance(descr, (str, dict, tuple)):
<add> if isinstance(descr, (str, dict)):
<ide> # No padding removal needed
<ide> ... | 2 |
Go | Go | fix leak of tmpfiles | 0aee096fd73676e2548e3bf132770f1692ac47dd | <ide><path>archive.go
<ide> func TarFilter(path string, compression Compression, filter []string, recursive
<ide> tmpDir := ""
<ide>
<ide> if createFiles != nil {
<del> tmpDir, err := ioutil.TempDir("", "docker-tar")
<add> var err error // Can't use := here or we override the outer tmpDir
<add> tmpDir, err = iout... | 1 |
Python | Python | fix bug with size_type | 6fa4e94790a2f230281ec79efff97c3235134f8c | <ide><path>libcloud/container/drivers/lxd.py
<ide> def create_volume(self, pool_id, definition, **kwargs):
<ide> "without a definition")
<ide>
<ide> # currently not used
<del> size_type = definition['config'].pop('size_type')
<add> size_type = definition.pop('siz... | 1 |
Javascript | Javascript | fix a bug in splom axes | 7d2ce55914d11f7017b5e0d2576d409b799bddac | <ide><path>examples/splom/splom.js
<ide> d3.json("flowers.json", function(flower) {
<ide> domain = [d3.min(flower.values, value), d3.max(flower.values, value)],
<ide> range = [padding / 2, size - padding / 2];
<ide> x[trait] = d3.scale.linear().domain(domain).range(range);
<del> y[trait] = d3.sca... | 1 |
Javascript | Javascript | modify async native test.js to test for | 50c88e0ff24890cadf2f1730a0eb93ebd0a63c28 | <ide><path>test/addons/async-hello-world/test.js
<ide> var assert = require('assert');
<ide> var binding = require('./build/Release/binding');
<add>var called = false;
<add>
<add>process.on('exit', function () {
<add> assert(called);
<add>});
<add>
<ide> binding(5, function (err, val) {
<ide> assert.equal(null, err)... | 1 |
PHP | PHP | fix double table prepend | 908741f04f6862bc72c0b8227167a0adb9d020e7 | <ide><path>src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php
<ide> public function addConstraints()
<ide> */
<ide> public function addEagerConstraints(array $models)
<ide> {
<del> $key = $this->related->getTable().'.'.$this->foreignKey;
<del>
<del> $this->query->whereIn($key, $this->getKeys($models));
<... | 1 |
Ruby | Ruby | add test cases for checkbox_tag | 0c5c88243bc007f5a4573b3fc39e6e4e6d95b3ae | <ide><path>actionview/test/template/form_tag_helper_test.rb
<ide> def test_check_box_tag
<ide> assert_dom_equal expected, actual
<ide> end
<ide>
<add> def test_check_box_tag_disabled
<add> actual = check_box_tag "admin","1", false, disabled: true
<add> expected = %(<input id="admin" disabled="disabled" na... | 1 |
Ruby | Ruby | use unixsocket to pass file descriptor | f5c8e3fdbd87ba53ea582d20fb539e9a83eb1d5c | <ide><path>Library/Homebrew/build.rb
<ide> require "extend/ENV"
<ide> require "debrew"
<ide> require "fcntl"
<add>require "socket"
<ide>
<ide> class Build
<ide> attr_reader :formula, :deps, :reqs
<ide> def fixopt f
<ide> end
<ide>
<ide> begin
<del> error_pipe = IO.new(ENV["HOMEBREW_ERROR_PIPE"].to_i, "w")
<add> e... | 2 |
Text | Text | correct seed code errors | a825708e3e95878b6dff35154fe9346b4d39e416 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.english.md
<ide> Adding one to a number is not very exciting, but we can apply these principles w
<ide>
<ide> ## Instructions
<ide> <section id='instructions'>
<del>Re... | 1 |
PHP | PHP | add phpdoc method for `view` facade | 4e46cf6290edd538cb3815901abe16eb61751a3e | <ide><path>src/Illuminate/Support/Facades/View.php
<ide> * @method static \Illuminate\Contracts\View\Factory addNamespace(string $namespace, string|array $hints)
<ide> * @method static \Illuminate\Contracts\View\View first(array $views, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
... | 1 |
Text | Text | update inlinecode reference | 0ec57da3a9037ab0478d48105b651a78f3287ee7 | <ide><path>docs/advanced-features/using-mdx.md
<ide> Then setup the provider in your page
<ide>
<ide> import { MDXProvider } from '@mdx-js/react'
<ide> import Image from 'next/image'
<del>import { Heading, Text, Pre, Code, Table } from 'my-components'
<add>import { Heading, InlineCode, Pre, Table, Text } from 'my-comp... | 1 |
PHP | PHP | improve tests for client\request | 02b58395998ec5f88dbd599178731db3550fbe7c | <ide><path>src/Http/Client/Request.php
<ide> public function header($name = null, $value = null)
<ide> * @param array $headers The headers to add.
<ide> * @return void
<ide> */
<del> protected function addHeaders($headers)
<add> protected function addHeaders(array $headers)
<ide> {
<ide> ... | 2 |
Text | Text | add v3.7.0-beta.1 to changelog | fa74f56921955a485707c5c6b2d5584db417ba9f | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.7.0-beta.1 (December 6, 2018)
<add>
<add>- [#17254](https://github.com/emberjs/ember.js/pull/17254) [BREAKING] Explicitly drop support for Node 4
<add>- [#16898](https://github.com/emberjs/ember.js/pull/16898) Add RFC 232 style util test blueprint for M... | 1 |
Python | Python | introduce a final methods in view class | 4ab67e789e78bb5579545d8e0df2389994a72391 | <ide><path>djangorestframework/views.py
<ide> def dispatch(self, request, *args, **kwargs):
<ide> except ErrorResponse, exc:
<ide> response = exc.response
<ide>
<del> # Always add these headers.
<del> #
<del> # TODO - this isn't actually the correct way to set the vary header,
... | 1 |
Python | Python | fix paramiko debug logging | 783c6422bb6a854790e4db15804ecb36fdad2068 | <ide><path>libcloud/__init__.py
<ide>
<ide>
<ide> try:
<del> import paramiko
<add> import paramiko # NOQA
<ide> have_paramiko = True
<ide> except ImportError:
<ide> have_paramiko = False
<ide> def _init_once():
<ide> fo = codecs.open(path, mode, encoding='utf8')
<ide> enable_debug(fo)
<... | 1 |
Ruby | Ruby | check remote file hash prior to upload | 622e76e7f375cfec6ae07f1db9efbf31e061a631 | <ide><path>Library/Homebrew/bintray.rb
<ide> def package_exists?(repo:, package:)
<ide> end
<ide> end
<ide>
<del> def file_published?(repo:, remote_file:)
<add> # Gets the SHA-256 checksum of the specified remote file.
<add> # Returns the empty string if the file exists but doesn't have a checksum.
<add> # R... | 2 |
Javascript | Javascript | fix tostring for durations with mixed sign | effaf874ad79b809cce35583f62334f37e630fae | <ide><path>src/lib/duration/iso-string.js
<ide> export function toISOString() {
<ide> var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
<ide> var total = this.asSeconds();
<ide>
<add> var totalSign = total < 0 ? '-' : '';
<add> var ymSign = Math.sign(total) === Math.sign(this._months) ? ''... | 2 |
Text | Text | add links to trygit & official documentation | bf9ddc4e4d98621920989c8bd84cef4fda767521 | <ide><path>guides/source/development_dependencies_install.md
<ide> In case you can't use the Rails development box, see section above, these are th
<ide>
<ide> Ruby on Rails uses Git for source code control. The [Git homepage](http://git-scm.com/) has installation instructions. There are a variety of resources on the ... | 1 |
Javascript | Javascript | remove unused variables | 842cd215710551ffa753340fdf27475fc16d5ab8 | <ide><path>examples/js/controls/TransformControls.js
<ide>
<ide> THREE.TransformGizmo.prototype.update.apply( this, arguments );
<ide>
<del> var group = {
<del>
<del> handles: this[ "handles" ],
<del> pickers: this[ "pickers" ]
<del>
<del> };
<del>
<ide> var tempMatrix = new THREE.Matrix4();
<ide> ... | 1 |
Javascript | Javascript | use new ruleset matching instead of loaderslist | a53799c0ac58983860a27648cdc8519b6a562b89 | <ide><path>lib/Compilation.js
<ide> Compilation.prototype.addModuleDependencies = function(module, dependencies, bai
<ide>
<ide> var factory = item[0];
<ide> factory.create({
<add> contextInfo: {
<add> issuer: module.nameForCondition && module.nameForCondition()
<add> },
<ide> context: module.context,
<i... | 12 |
Python | Python | fix docstring format for check_funcs_once | c316a60c3638aedb53d5571816d77dc2fa0a82d1 | <ide><path>numpy/distutils/command/config.py
<ide> def check_funcs_once(self, funcs,
<ide>
<ide> Arguments
<ide> ---------
<del>
<del> funcs: seq
<del> list of functions to test
<del> include_dirs : seq
<del> list of header paths
<del> libr... | 1 |
Ruby | Ruby | use statement cache for belongs_to relations | 86d6f05e695c545b7e744c958c8d740d0cdf5486 | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> def get_records
<ide> return scope.to_a if reflection.scope_chain.any?(&:any?)
<ide>
<ide> conn = klass.connection
<del> sc = reflection.association_scope_cache(conn) do
<add> sc = reflection.associatio... | 3 |
Go | Go | extract $home usages into utils.gethomedir() | 6ffb77afd4c3705322417f0673d254038f01a187 | <ide><path>api/client/cli.go
<ide> import (
<ide> flag "github.com/docker/docker/pkg/mflag"
<ide> "github.com/docker/docker/pkg/term"
<ide> "github.com/docker/docker/registry"
<add> "github.com/docker/docker/utils"
<ide> )
<ide>
<ide> type DockerCli struct {
<ide> func (cli *DockerCli) Subcmd(name, signature, descr... | 5 |
Ruby | Ruby | use tar xf | d9f90deb7c7ef8de93b6b4d80ccd5be42745aa33 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def stage
<ide> if type == :xz && DependencyCollector.tar_needs_xz_dependency?
<ide> pipe_to_tar "#{HOMEBREW_PREFIX}/opt/xz/bin/xz", unpack_dir
<ide> else
<del> flags = if type == :gzip
<del> ["-z"]
<del> elsif type == :bz... | 1 |
Java | Java | replace "mvc" in web rective config bean names | cabb25326921ecb958dae9e578abddfa6551f2f7 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java
<ide> protected ApplicationContext getApplicationContext() {
<ide> public RequestMappingHandlerMapping requestMappingHandlerMapping() {
<ide> RequestMappingHandlerMapping mapping = createRequestMappingH... | 2 |
Javascript | Javascript | use correct self reference for autoclose test | e04c8a8ee400b6453cdb1133e7dd6791b69c0834 | <ide><path>lib/fs.js
<ide> ReadStream.prototype.open = function() {
<ide> var self = this;
<ide> fs.open(this.path, this.flags, this.mode, function(er, fd) {
<ide> if (er) {
<del> if (this.autoClose) {
<add> if (self.autoClose) {
<ide> self.destroy();
<ide> }
<ide> self.emit('error... | 2 |
Python | Python | convert linalg to use dtypes instead of typecodes | d4840f8838361de985aa8858aaf99bbe85a43621 | <ide><path>numpy/linalg/linalg.py
<ide> from numpy.lib import *
<ide> import lapack_lite
<ide>
<add>fortran_int = int32
<add>
<ide> # Error object
<ide> class LinAlgError(Exception):
<ide> pass
<ide>
<del># Helper routines
<del>_array_kind = {'i':0, 'l': 0, 'q': 0, 'f': 0, 'd': 0, 'F': 1, 'D': 1}
<del>_array_prec... | 1 |
Javascript | Javascript | remove unnecessary nexttick usage in writable | e0cec37d50b2fea9b6d8c79d52241afbf3d83c4e | <ide><path>lib/_stream_writable.js
<ide> function onwrite(stream, er) {
<ide> if (er)
<ide> onwriteError(stream, state, sync, er, cb);
<ide> else {
<del> if (!finishMaybe(stream, state)) {
<del> if (state.length === 0 && state.needDrain)
<del> onwriteDrain(stream, state);
<add> var finished = ... | 1 |
Go | Go | add support for swarmkit generic runtime | e06e2ef107ad09191bfea3dfe51cfa830114b54b | <ide><path>api/types/swarm/runtime.go
<add>package swarm
<add>
<add>// RuntimeType is the type of runtime used for the TaskSpec
<add>type RuntimeType string
<add>
<add>// RuntimeURL is the proto type url
<add>type RuntimeURL string
<add>
<add>const (
<add> // RuntimeContainer is the container based runtime
<add> Runtim... | 6 |
Text | Text | remove changelog entry for pr [ci skip] | df505fb8104588af13c993c1dcd881398889dd30 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> *Ryuta Kamizono*
<ide>
<del>* Quote database name in `db:create` grant statement (when database user does not have access to create the database).
<del>
<del> *Rune Philosof*
<del>
<ide> * Raise error `UnknownMigrationVersionError` on the movement of migrati... | 1 |
Javascript | Javascript | remove fixed size for android. fixes | a3d9fadc78c601a6886db0fda824455cc72d1ea7 | <ide><path>Libraries/Components/Switch/Switch.js
<ide> var Switch = React.createClass({
<ide> if (Platform.OS === 'android') {
<ide> props.enabled = !this.props.disabled;
<ide> props.on = this.props.value;
<del> props.style = [styles.rctSwitchAndroid, this.props.style];
<add> props.style = thi... | 1 |
Text | Text | fix documentation typo in articles/basics.md | 2188c8d2f41f4905411a40c30f4c703d7f4e0fcf | <ide><path>docs/sources/articles/basics.md
<ide> will be stored (as a diff). See which images you already have using the
<ide> # Commit your container to a new named image
<ide> $ docker commit <container_id> <some_name>
<ide>
<del> # List your containers
<add> # List your images
<ide> $ docker image... | 1 |
Python | Python | bugfix version 0.20.1 | d1cf931796f1064f5b1c36d35a80551488fb5d50 | <ide><path>libcloud/__init__.py
<ide> """
<ide>
<ide> __all__ = ['__version__', 'enable_debug']
<del>__version__ = '0.20.0'
<add>__version__ = '0.20.1'
<ide>
<ide> import os
<ide> import codecs | 1 |
Ruby | Ruby | make install_p and install_symlink_p private | 1351f67e91c75451fb2c7ce8f024adb86dcb542d | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def install_p(src, new_basename)
<ide> FileUtils.mv src, dst
<ide> end
<ide> end
<del> protected :install_p
<add> private :install_p
<ide>
<ide> # Creates symlinks to sources in this folder.
<ide> def install_symlink *sources
<ide> def install_syml... | 1 |
Python | Python | add tf_data_service option to resnet model | c64cb01b4d957bccd9f47aea6f1ac8e9ffa05236 | <ide><path>official/vision/image_classification/dataset_factory.py
<ide> class DatasetConfig(base_config.Config):
<ide> skip_decoding: Whether to skip image decoding when loading from TFDS.
<ide> cache: whether to cache to dataset examples. Can be used to avoid re-reading
<ide> from disk on the second epo... | 1 |
Java | Java | use arraylist instead of linkedlist | 02d3cfa42d1cae6d84dea559efa096a86fd2b611 | <ide><path>spring-core/src/main/java/org/springframework/util/ReflectionUtils.java
<ide> private static List<Method> findConcreteMethodsOnInterfaces(Class<?> clazz) {
<ide> for (Method ifcMethod : ifc.getMethods()) {
<ide> if (!Modifier.isAbstract(ifcMethod.getModifiers())) {
<ide> if (result == null) {
<de... | 1 |
Go | Go | fix regression on --link on bridge network | 3a3f800ff48ddfa729f1db7898bf689d25a6d4cf | <ide><path>daemon/container_operations.go
<ide> func (daemon *Daemon) buildSandboxOptions(container *container.Container) ([]lib
<ide> // Legacy Link feature is supported only for the default bridge network.
<ide> // return if this call to build join options is not for default bridge network
<ide> // Legacy Link is ... | 2 |
PHP | PHP | add foreign key reflection to sqlite | aad301a7694d20ca8027b8cbde904d3c31d67201 | <ide><path>lib/Cake/Database/Schema/Collection.php
<ide> public function describe($name) {
<ide> );
<ide> $statement = $this->_executeSql($sql, $params);
<ide> foreach ($statement->fetchAll('assoc') as $row) {
<del> $this->_dialect->convertForeignKeyDescription($table, $row);
<add> $this->_dialect->convertFor... | 3 |
PHP | PHP | add comments to response class | 5d67672d66153be8554873c08279352e2bdfa9cb | <ide><path>laravel/response.php
<ide> class Response {
<ide> *
<ide> * @var mixed
<ide> */
<del> public $content;
<add> protected $content;
<ide>
<ide> /**
<ide> * The HTTP status code of the response.
<ide> *
<ide> * @var int
<ide> */
<del> public $status;
<add> protected $status;
<ide>
<ide> /**
<id... | 1 |
Text | Text | fix example in doc | a0a0d4263073b5027688d8f56e82926c60c68bb7 | <ide><path>docs/templates/applications.md
<ide> from keras import backend as K
<ide>
<ide> # create the base pre-trained model
<ide> base_model = InceptionV3(weights='imagenet', include_top=False)
<del># add some Dense layers on top
<del>x = base_model.output
<add>
<ide> # add a global spatial average pooling layer
<a... | 1 |
PHP | PHP | apply fixes from styleci | 33a5ea396a7d220c5cd8e76f1e02abf069a76ad0 | <ide><path>src/Illuminate/Database/DatabaseServiceProvider.php
<ide> protected function registerEloquentFactory()
<ide> $locale = $parameters['locale'] ?? $app['config']->get('app.faker_locale', 'en_US');
<ide>
<ide> if (! isset(static::$fakers[$locale])) {
<del> static::$fakers[... | 1 |
PHP | PHP | use symfony http foundation where applicable | 573725ade78db0d9091b9ad2fa36d0f61628511a | <ide><path>laravel/core.php
<ide> | Register The Symfony Components
<ide> |--------------------------------------------------------------------------
<ide> |
<del>| Laravel's "Artisan" CLI makes use of the Symfony Console component to
<del>| build a wonderful CLI environment that is both robust and testable.
<del>| We'... | 3 |
Javascript | Javascript | fix first empty line on rawshadermaterial shaders | 1f6eaf8b1c2d50e60bb2c4c7dff2164a5d310d1f | <ide><path>src/renderers/webgl/WebGLProgram.js
<ide> function WebGLProgram( renderer, extensions, code, material, shader, parameters
<ide>
<ide> prefixVertex = [
<ide>
<del> customDefines,
<del>
<del> '\n'
<add> customDefines
<ide>
<ide> ].filter( filterEmptyLine ).join( '\n' );
<ide>
<add> if ( prefixVe... | 1 |
Javascript | Javascript | fix resizemode for images | c0c2d4ca00cdbca93dacd5eea8a8dc07ef9dbae9 | <ide><path>Libraries/Image/ImageResizeMode.js
<ide> var ImageResizeMode = keyMirror({
<ide> cover: null,
<ide> /**
<ide> * stretch - The image will be stretched to fill the entire frame of the
<del> * view without clipping. This may change the aspect ratio of the image,
<del> * distoring it. Only supported... | 1 |
Ruby | Ruby | move helper method out of global namespace | a886a1b3e373b1ff8e986e52fa0aca14972f20e5 | <ide><path>Library/Homebrew/test/test_mach.rb
<ide> require 'testing_env'
<ide>
<del>def file pn
<del> `/usr/bin/file -h '#{pn}'`.chomp
<add>module FileHelper
<add> def file pn
<add> `/usr/bin/file -h '#{pn}'`.chomp
<add> end
<ide> end
<ide>
<ide> class MachOPathnameTests < Test::Unit::TestCase
<add> include F... | 1 |
Javascript | Javascript | fix broken lint tests | bc8a6c92bf0021980a11ea831cd4f49fa8c3bfcb | <ide><path>client/main.js
<ide> main = (function(main, global) {
<ide> localStorage.setItem(item, input);
<ide> return input;
<ide> } else {
<del> let data = typeof localStorage.getItem(item) !== 'undefined' && localStorage.getItem(item) !== null ? localStorage.getItem(item) : "";
<add> let da... | 1 |
Ruby | Ruby | fix default prefix | f98736119b0abf668a1c49272e129d4207f74d90 | <ide><path>Library/Homebrew/global.rb
<ide> module Homebrew
<ide> class << self
<ide> attr_writer :failed, :raise_deprecation_exceptions, :auditing
<ide>
<del> def Homebrew.default_prefix?(prefix = HOMEBREW_PREFIX)
<add> def default_prefix?(prefix = HOMEBREW_PREFIX)
<ide> prefix.to_s == DEFAULT_PREFI... | 1 |
Javascript | Javascript | remove loading spinner on ended | 14da28dabe37681b8ea873af0fe4d7d06574f803 | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> */
<ide> handleTechEnded_() {
<ide> this.addClass('vjs-ended');
<add> this.removeClass('vjs-waiting');
<ide> if (this.options_.loop) {
<ide> this.currentTime(0);
<ide> this.play(); | 1 |
PHP | PHP | fix errors with illegal string offsets | e9813d7a978475d5d2d264e9c8cf5526cdfbab27 | <ide><path>lib/Cake/Utility/Set.php
<ide> public static function insert($list, $path, $data = null) {
<ide> if (is_numeric($key) && intval($key) > 0 || $key === '0') {
<ide> $key = intval($key);
<ide> }
<del> if ($i === $count - 1) {
<add> if ($i === $count - 1 && is_array($_list)) {
<ide> $_list[$key... | 1 |
Javascript | Javascript | update url on regex match if incomplete url | 68df7b218eaa350c710234228156e9ed790241d3 | <ide><path>controllers/bonfire.js
<ide> exports.returnIndividualBonfire = function(req, res, next) {
<ide> if (err) {
<ide> next(err);
<ide> }
<add> var dashedNameFull = bonfire[bonfireNumber].name.toLowerCase().replace(/\s/g, '-');
<add> if (dashedNameFull != dashedName) {
<ad... | 1 |
PHP | PHP | add hsts header to httpsenforcermiddleware | f70896ccaf06de9c2f3cbfd62a0c9223e081962c | <ide><path>src/Http/Middleware/HttpsEnforcerMiddleware.php
<ide> use Psr\Http\Message\ServerRequestInterface;
<ide> use Psr\Http\Server\MiddlewareInterface;
<ide> use Psr\Http\Server\RequestHandlerInterface;
<add>use UnexpectedValueException;
<ide>
<ide> /**
<ide> * Enforces use of HTTPS (SSL) for requests.
<ide> cla... | 2 |
Mixed | Ruby | fix #version docs and some typos | 6ee6cb554b130f6c5a72897321ac10d83df43480 | <ide><path>actioncable/lib/action_cable/gem_version.rb
<ide> # frozen_string_literal: true
<ide>
<ide> module ActionCable
<del> # Returns the version of the currently loaded Action Cable as a <tt>Gem::Version</tt>.
<add> # Returns the currently loaded version of Action Cable as a <tt>Gem::Version</tt>.
<ide> def s... | 26 |
Python | Python | change valid record types and implement listing | 856b5be20a64eb45417489b3d436bf9148888368 | <ide><path>libcloud/dns/drivers/auroradns.py
<ide> class AuroraDNSDriver(DNSDriver):
<ide> RecordType.MX: 'MX',
<ide> RecordType.NS: 'NS',
<ide> RecordType.SOA: 'SOA',
<del> RecordType.SPF: 'SPF',
<ide> RecordType.SRV: 'SRV',
<ide> RecordType.TXT: 'TXT',
<add> Recor... | 2 |
Text | Text | allow disabling of default components | c9fa0be0e0a7f0ec1c782a3e98ab9820b3adadf6 | <ide><path>CHANGELOG.md
<add>* Allow disabling of default components
<ide> * Duration is now setable (need ed for HLS m3u8 files)
<ide> * Event binders (on/off/one) now return the player instance
<ide> * Stopped player from going back to beginningg on ended event. | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.