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 | fix double logs if rails.logger outputs to stderr | 82eb1f441d9654b8ef1125fe40a30e6fcf6c8644 | <ide><path>railties/lib/rails/commands/server/server_command.rb
<ide> def log_to_stdout
<ide> console.formatter = Rails.logger.formatter
<ide> console.level = Rails.logger.level
<ide>
<del> unless ActiveSupport::Logger.logger_outputs_to?(Rails.logger, STDOUT)
<add> unless ActiveSupport::L... | 1 |
Ruby | Ruby | get the new base tests to pass | c7ba9aa195196d534109575affab700f7bc10984 | <ide><path>actionpack/test/new_base/test_helper.rb
<ide> # Debugging disabled. `gem install ruby-debug` to enable.
<ide> end
<ide>
<del>require 'action_controller/abstract'
<del>require 'action_controller/new_base'
<add>require 'action_controller'
<ide> require 'pp' # require 'pp' early to prevent hidden_methods fro... | 1 |
Go | Go | fix typo in testcase | 1567cf2cdf07bcbafbb1555fd950f5c5ce7a1c66 | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func TestContainerApiPause(t *testing.T) {
<ide> t.Fatalf("There should be no paused container.")
<ide> }
<ide>
<del> logDone("container REST API - check POST containers/pause nad unpause")
<add> logDone("container REST API - check POST containers/pause... | 1 |
Ruby | Ruby | remove obsolete fallback for broken xcode 4.3+ | 2c6d4973b96cbad71c868923bc456958582be36f | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> module Xcode
<ide>
<ide> V4_BUNDLE_ID = "com.apple.dt.Xcode"
<ide> V3_BUNDLE_ID = "com.apple.Xcode"
<del> V4_BUNDLE_PATH = Pathname.new("/Applications/Xcode.app")
<ide>
<ide> def latest_version
<ide> case MacOS.version
<ide> def prefix
<... | 1 |
Text | Text | change the formatting in line 6 | 02df1343e1daaa44329706436dcbe5dd12c1e991 | <ide><path>guide/english/css/background-size/index.md
<ide> title: Background Size
<ide> ---
<ide> ## Background Size
<ide>
<del>The background-size property specifies the size of the background images. You can set a length or a percentage, with the first value being the width and the second one being the height. You ... | 1 |
Python | Python | remove a todo item to use a tiny model | 322dffc6c9a44fd504b24b0efcbcaa419b577a93 | <ide><path>examples/test_examples.py
<ide> def test_run_glue(self):
<ide> def test_run_language_modeling(self):
<ide> stream_handler = logging.StreamHandler(sys.stdout)
<ide> logger.addHandler(stream_handler)
<del> # TODO: switch to smaller model like sshleifer/tiny-distilroberta-base
<ide>
... | 1 |
Javascript | Javascript | update controllername documentation | 505dbe681943bc25d55b654f298f6723e3dcb1be | <ide><path>packages/ember-routing/lib/system/route.js
<ide> let Route = EmberObject.extend(ActionHandler, Evented, {
<ide> The name of the controller to associate with this route.
<ide>
<ide> By default, Ember will lookup a route's controller that matches the name
<del> of the route (i.e. `App.PostControlle... | 1 |
Python | Python | fix exception cause in mingw32ccompiler.py | 86cd3582c0e9101ac40434ae4488abdab1c1c910 | <ide><path>numpy/distutils/mingw32ccompiler.py
<ide> def msvc_manifest_xml(maj, min):
<ide> fullver = _MSVCRVER_TO_FULLVER[str(maj * 10 + min)]
<ide> except KeyError:
<ide> raise ValueError("Version %d,%d of MSVCRT not supported yet" %
<del> (maj, min))
<add> ... | 1 |
Text | Text | add info about changing icon sizing | bc3bafcfb0cb462aebebd3543077b601d21eba98 | <ide><path>guide/english/bootstrap/fontawesome-icons/index.md
<ide> You can also use Font Awesome's own CDN.
<ide> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/fontawesome.css" integrity="sha384-BzCy2fixOYd0HObpx3GMefNqdbA7Qjcc91RgYeDjrHTIEXqiF00jKvgQG0+zY/7I" crossorigin="anonymous">
<i... | 1 |
Text | Text | remove rpm install instructions | a128cf5eb390066215fd870ae638241e2dfb15ba | <ide><path>README.md
<ide> Currently only a 64-bit version is available.
<ide> The Linux version does not currently automatically update so you will need to
<ide> repeat these steps to upgrade to future releases.
<ide>
<del>### Red Hat Linux (Fedora, CentOS, Red Hat)
<del>
<del>Currently only a 64-bit version is avail... | 1 |
Javascript | Javascript | update translation parser | 92a60f8bce2b79087e4f7c3579167a0fcc33a0f4 | <ide><path>curriculum/getChallenges.js
<ide> async function parseTranslation(engPath, transPath, dict, lang) {
<ide> const engChal = await parseMarkdown(engPath);
<ide> const translatedChal = await parseMarkdown(transPath);
<ide>
<del> const engWithTranslatedComments = translateCommentsInChallenge(
<del> engCh... | 3 |
Python | Python | fix typo in mt5 configuration docstring | 42477d68faae338d2c5a74875a3586a1a57a721e | <ide><path>src/transformers/models/mt5/configuration_mt5.py
<ide> class MT5Config(PretrainedConfig):
<ide> outputs. Read the documentation from :class:`~transformers.PretrainedConfig` for more information.
<ide>
<ide> Arguments:
<del> vocab_size (:obj:`int`, `optional`, defaults to 32128):
<add> ... | 1 |
Javascript | Javascript | add placement bit without removing others | 1377e465ddc492a1b4b33d75e652bce9b273cc85 | <ide><path>packages/react-reconciler/src/ReactChildFiber.new.js
<ide> function ChildReconciler(shouldTrackSideEffects) {
<ide> const oldIndex = current.index;
<ide> if (oldIndex < lastPlacedIndex) {
<ide> // This is a move.
<del> newFiber.flags = Placement;
<add> newFiber.flags |= Plac... | 2 |
PHP | PHP | remove unused imports | db20d3d754fa212605fad0cbcba833c714fda2e9 | <ide><path>tests/Support/SupportHelpersTest.php
<ide> use Mockery as m;
<ide> use RuntimeException;
<ide> use Illuminate\Support\Arr;
<del>use Illuminate\Support\Str;
<ide> use PHPUnit\Framework\TestCase;
<ide> use Illuminate\Support\Optional;
<ide> use Illuminate\Contracts\Support\Htmlable; | 1 |
Text | Text | use arrow functions in util.md sample code | 817d4adb47b0bbc03733f67a48b15287092b3909 | <ide><path>doc/api/util.md
<ide> such a way that it is marked as deprecated.
<ide> ```js
<ide> const util = require('util');
<ide>
<del>exports.obsoleteFunction = util.deprecate(function() {
<add>exports.obsoleteFunction = util.deprecate(() => {
<ide> // Do something here.
<ide> }, 'obsoleteFunction() is deprecated.... | 1 |
Text | Text | update cdn in readme to 2.1.2 | c276926c14a0f37e71f29f810e66354d7fca1e62 | <ide><path>README.md
<ide> To install via npm / bower:
<ide> npm install chart.js --save
<ide> bower install Chart.js --save
<ide> ```
<del>CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.1/Chart.min.js
<add>CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.2/Chart.min.js
<ide>
<ide> ## Documentation
<... | 1 |
Ruby | Ruby | improve wording of comments | c9d75177fe87ee1348c79d042c6449970eb47879 | <ide><path>activemodel/lib/active_model/attributes.rb
<ide> def attribute(attr_name)
<ide> @attributes.fetch_value(name)
<ide> end
<ide>
<del> # Handle *= for method_missing.
<add> # Dispatch target for <tt>*=</tt> attribute methods.
<ide> def attribute=(attribute_name, value)
<ide> ... | 5 |
Javascript | Javascript | remove createreactclass from camerarollview | 8465094523f904f1a3865f356e9cbfa792840db1 | <ide><path>Libraries/CameraRoll/CameraRoll.js
<ide> const getPhotosParamChecker = deprecatedCreateStrictShapeTypeChecker({
<ide> mimeTypes: PropTypes.arrayOf(PropTypes.string),
<ide> });
<ide>
<del>type GetPhotosReturn = Promise<{
<del> edges: Array<{
<del> node: {
<del> type: string,
<del> group_name:... | 3 |
Text | Text | add code contribution | ade05b6cef0a5576532ed69588b95b54f694d0c9 | <ide><path>CONTRIBUTING.md
<ide> A world-class feature request addresses the following points:
<ide> If your issue is well-written we're already 80% of the way there by the time you
<ide> post it.
<ide>
<del>## Contributing code
<del>
<del>## Contributing examples
<add>## Start contributing! (Pull Requests)
<add>
<add... | 1 |
Text | Text | move italo a. casas to release emeritus | 61e9e3c26b3730f10b5c4d90af68e76eed35d3e6 | <ide><path>README.md
<ide> Node.js releases are signed with one of the following GPG keys:
<ide> `B9AE9905FFD7803F25714661B63B535A4C206CA9`
<ide> * **Gibson Fahnestock** <gibfahn@gmail.com>
<ide> `77984A986EBC2AA786BC0F66B01FBB92821C587A`
<del>* **Italo A. Casas** <me@italoacasas.com>
<del>`56730D5401028683... | 1 |
Java | Java | improve empty request body handling | 36ed4df59df03082b510841e55511d02424b7e56 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodArgumentResolver.java
<ide> package org.springframework.web.servlet.mvc.method.annotation;
<ide>
<ide> import java.io.IOException;
<add>import java.io.InputStream;
<add>import java.io.PushbackInpu... | 9 |
Text | Text | add "input" class_mode to the docs. | 5728b390625a7d522555e3b0009560996abbffcf | <ide><path>docs/templates/preprocessing/image.md
<ide> Generate batches of tensor image data with real-time data augmentation. The data
<ide> The dimensions to which all images found will be resized.
<ide> - __color_mode__: one of "grayscale", "rbg". Default: "rgb". Whether the images will b... | 1 |
Python | Python | add regression test for #717 | 17018750ac3ea39c4fe5a96c05db2375ecd4973e | <ide><path>spacy/tests/regression/test_issue717.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>
<add>@pytest.mark.xfail
<add>@pytest.mark.models
<add>@pytest.mark.parametrize('text1,text2', [("You're happy", "You are happy")])
<add>def test_issue717(EN, text1, te... | 1 |
Go | Go | fix docker run on an unknown image | 0bb2c0b1d0f651e23c949381762fe79a45c58aeb | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdRun(args ...string) error {
<ide> if body, _, err = cli.call("POST", "/containers/create?"+containerValues.Encode(), config); err != nil {
<ide> return err
<ide> }
<del> }
<del> if err != nil {
<add> } else if err != nil {
<ide> return err
<ide> }
<ide> | 1 |
Javascript | Javascript | add size info to print-cache-file tooling | 267662e4fb82425b0196e17c1b4fca1871238063 | <ide><path>tooling/print-cache-file.js
<ide> const serializer = new Serializer([
<ide> new FileMiddleware(fs)
<ide> ]);
<ide>
<add>const rawSerializer = new Serializer([new FileMiddleware(fs)]);
<add>
<add>const lazySizes = [];
<add>
<add>const captureSize = async data => {
<add> let size = 0;
<add> let lazySize = 0;... | 1 |
PHP | PHP | apply fixes from styleci | 3538cbdd704b3e816aa3b2087c4ceec63e91e82b | <ide><path>src/Illuminate/Database/Eloquent/FactoryBuilder.php
<ide> protected function callAfter(array $afterCallbacks, $models)
<ide> */
<ide> protected function callAfterCallbacks(array $afterCallbacks, $model, $state)
<ide> {
<del> if (!isset($afterCallbacks[$this->class][$state])) {
<add> ... | 2 |
Javascript | Javascript | fix closure compile warnings | 943377a091bd7521d33e680dcd2141f7f9fa10c4 | <ide><path>src/sanitizer.js
<ide> var htmlParser = function( html, handler ) {
<ide>
<ide> /**
<ide> * @param str 'key1,key2,...'
<del> * @returns {key1:true, key2:true, ...}
<add> * @returns {object} in the form of {key1:true, key2:true, ...}
<ide> */
<ide> function makeMap(str){
<ide> var obj = {}, items = str.s... | 1 |
Ruby | Ruby | add strict check for <formula spacing | 716da2dfbd46b65a8299c9ece783ec423a462d3e | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def ff
<ide> def audit_formula_text name, text
<ide> problems = []
<ide>
<add> if text =~ /<Formula/
<add> problems << " * We now space class inheritance: class Foo < Formula"
<add> end if strict?
<add>
<ide> # Commented-out cmake support from default template
<i... | 1 |
Ruby | Ruby | use new hash syntax for generators gem method | fe7038eac8c1a4df57a0aacf4dd77da5ef87f6df | <ide><path>railties/lib/rails/generators/actions.rb
<ide> def gem(*args)
<ide> log :gemfile, message
<ide>
<ide> options.each do |option, value|
<del> parts << ":#{option} => #{value.inspect}"
<add> parts << "#{option}: #{value.inspect}"
<ide> end
<ide>
<ide> in_root ... | 4 |
Text | Text | add jdalton to collaborators | bb6b605d47896f2b1bcf146c16842a231b4f8a9b | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Jason Ginchereau** <jasongin@microsoft.com>
<ide> * [jbergstroem](https://github.com/jbergstroem) -
<ide> **Johan Bergström** <bugs@bergstroem.nu>
<add>* [jdalton](https://github.com/jdalton) -
<add>**Jo... | 1 |
Python | Python | allow softplacement for resnet | d93ffd0b69253ee3c3a40a19a4c86ac6975bd570 | <ide><path>resnet/resnet_main.py
<ide> def train(hps):
<ide> save_summaries_secs=60,
<ide> save_model_secs=300,
<ide> global_step=model.global_step)
<del> sess = sv.prepare_or_wait_for_session()
<add> sess = sv.prepare_or_wait_for_sessio... | 1 |
Javascript | Javascript | fix exceptional case for russian month parsing | 3928b2e0b8421c4dbc005a30610dc53f59f73a97 | <ide><path>lang/ru.js
<ide> weekdays : weekdaysCaseReplace,
<ide> weekdaysShort : "вск_пнд_втр_срд_чтв_птн_сбт".split("_"),
<ide> weekdaysMin : "вс_пн_вт_ср_чт_пт_сб".split("_"),
<add> monthsParse : [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^ок... | 2 |
Text | Text | use gfm footnotes in building.md | 3577f6dc485c3bb4a2e05cf61eb9417aac6534a3 | <ide><path>BUILDING.md
<ide> Node.js does not support a platform version if a vendor has expired support
<ide> for it. In other words, Node.js does not support running on End-of-Life (EoL)
<ide> platforms. This is true regardless of entries in the table below.
<ide>
<del>| Operating System | Architectures | Version... | 1 |
Text | Text | remove non-existant methods from docs | 0e964a7e6fe86de47de4ca21f464c47eaac256a8 | <ide><path>doc/api/console.md
<ide> The following methods are exposed by the V8 engine in the general API but do
<ide> not display anything unless used in conjunction with the [inspector][]
<ide> (`--inspect` flag).
<ide>
<del>### console.markTimeline(\[label\])
<del><!-- YAML
<del>added: v8.0.0
<del>-->
<del>
<del>* ... | 1 |
Mixed | Go | add the swapmemorysupport requirement to oom tests | adabb51311ecac031bd72378c5ed1669d1835d40 | <ide><path>integration-cli/docker_cli_oom_killed_test.go
<ide> import (
<ide> )
<ide>
<ide> func (s *DockerSuite) TestInspectOomKilledTrue(c *check.C) {
<del> testRequires(c, DaemonIsLinux, memoryLimitSupport)
<add> testRequires(c, DaemonIsLinux, memoryLimitSupport, swapMemorySupport)
<ide>
<ide> name := "testoomkil... | 3 |
Ruby | Ruby | add comment to superenv env to note trailing if | 71a4b8c6b976c68bc1a1b4c6d3100d521c840535 | <ide><path>Library/Homebrew/superenv.rb
<ide> def superenv?
<ide> false
<ide> end
<ide>
<add># Note that this block is guarded with `if superenv?`
<ide> class << ENV
<ide> attr_accessor :keg_only_deps, :deps, :x11
<ide> alias_method :x11?, :x11 | 1 |
Ruby | Ruby | simplify each method | 82d81bbfcb4d0d895e9ba059f33a3495879bc660 | <ide><path>activerecord/lib/active_record/associations/join_dependency/join_part.rb
<ide> def parents
<ide> parents
<ide> end
<ide>
<del> def each
<add> def each(&block)
<ide> yield self
<del> iter = lambda { |list|
<del> list.each { |item|
<del> ... | 1 |
Java | Java | revise documentation for testsocketutils | 542b6427c3b4682ab25e829756ae72c4d49e662f | <ide><path>spring-core/src/testFixtures/java/org/springframework/core/testfixture/net/TestSocketUtils.java
<ide>
<ide> package org.springframework.core.testfixture.net;
<ide>
<del>import java.net.DatagramSocket;
<ide> import java.net.InetAddress;
<ide> import java.net.ServerSocket;
<ide> import java.util.Random;
<ide... | 1 |
PHP | PHP | fix bug in eloquent model | 43212f8505421935938aa28d421b02b8ffe9f081 | <ide><path>laravel/database/eloquent/model.php
<ide> final public function sync()
<ide> */
<ide> public function changed($attribute)
<ide> {
<del> array_get($this->attributes, $attribute) !== array_get($this->original, $attribute);
<add> return array_get($this->attributes, $attribute) !== array_get($this->origina... | 1 |
Go | Go | create generic backend to cut dependency on daemon | 5087977fc1a4279be55f25e0b8782c9cf9bc65f3 | <ide><path>api/server/router/network/backend.go
<add>package network
<add>
<add>import (
<add> // TODO: network config needs to be refactored out to a
<add> // different location
<add> "github.com/docker/docker/daemon/network"
<add>
<add> "github.com/docker/libnetwork"
<add>)
<add>
<add>// Backend is all the methods th... | 3 |
Javascript | Javascript | fix lint error | a203437d67741b616dfa030ea93c01b3d0287a76 | <ide><path>pdf.js
<ide> var PDFObjects = (function() {
<ide> * Sets the data of an object but *doesn't* resolve it.
<ide> */
<ide> setData: function(objId, data) {
<del> // Watchout! If you call `this.ensureObj(objId, data)` you're going to
<add> // Watchout! If you call `this.ensureObj(objId, ... | 1 |
Text | Text | fix events typo | 62a858c60f6da8c6f2ae60dc7d0e2230ef35ee9c | <ide><path>doc/api/events.md
<ide> added for a particular event. This is a useful default that helps finding
<ide> memory leaks. Obviously, not all events should be limited to just 10 listeners.
<ide> The `emitter.setMaxListeners()` method allows the limit to be modified for this
<ide> specific `EventEmitter` instance.... | 1 |
Text | Text | fix obsolete instructions about editing docs | 2f46712074d187f5456723499e6885bf0941cfbc | <ide><path>CONTRIBUTING.md
<ide> There are many ways to contribute to React Native, and many of them do not invol
<ide> * Simply start using React Native. Go through the [Getting Started](https://facebook.github.io/react-native/docs/getting-started.html) guide. Does everything work as expected? If not, we're always loo... | 1 |
Python | Python | set version to v2.0.10 | d566e673bf16e7dd7e592c11b02cccc1cd63a771 | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '2.0.10.dev0'
<add>__version__ = '2.0.10'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = 'https:/... | 1 |
Ruby | Ruby | exclude hardlinks from mach_o_files." | cab97cf4d782ce36762f0cd615ca59718f55b0d5 | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> def find_dylib(bad_name)
<ide> end
<ide>
<ide> def mach_o_files
<del> hardlinks = Set.new
<ide> mach_o_files = []
<ide> path.find do |pn|
<del> # if we've already processed a file, ignore its hardlinks (which have the same dev ID and inode)
<del> ... | 1 |
Javascript | Javascript | expose injectintodevtools() to renderers | 8e7cb857889e0cf626fe221912cf923e82b36457 | <ide><path>packages/react-cs-renderer/src/ReactNativeCS.js
<ide> import type {ReactNativeCSType} from './ReactNativeCSTypes';
<ide> import {CSStatefulComponent} from 'CSStatefulComponent';
<ide>
<ide> import ReactFiberReconciler from 'react-reconciler';
<del>import {injectInternals} from 'react-reconciler/src/ReactFib... | 5 |
Mixed | Javascript | allow empty string for temp directory prefix | 1317252dfe8824fd9cfee125d2aaa94004db2f3b | <ide><path>doc/api/fs.md
<ide> rejection only when `recursive` is false.
<ide> ### `fsPromises.mkdtemp(prefix[, options])`
<ide> <!-- YAML
<ide> added: v10.0.0
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/39028
<add> description: The `prefix` parameter now accepts an... | 4 |
Javascript | Javascript | support error boundaries on reacttestrenderer | 38f74bcaf4a4a787dc5634c56c660beacd7df074 | <ide><path>src/renderers/testing/ReactTestReconcileTransaction.js
<ide> var Mixin = {
<ide> return ReactUpdateQueue;
<ide> },
<ide>
<add> /**
<add> * Save current transaction state -- if the return value from this method is
<add> * passed to `rollback`, the transaction will be reset to that state.
<add> *... | 2 |
Javascript | Javascript | use gatsby link for cta button | ba256b65d95d715b11e295751047a08ff291bedd | <ide><path>src/components/Header/components/Login.js
<ide> import React from 'react';
<ide> import PropTypes from 'prop-types';
<ide> import { Button } from 'react-bootstrap';
<add>import { Link } from 'gatsby';
<ide>
<ide> import './login.css';
<ide>
<ide> function Login({ children, ...restProps }) {
<ide> return ... | 1 |
Java | Java | add tests for java jni bindings | 1f36d9887413888ea592e792654b80099fc26472 | <ide><path>ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java
<ide> public class CSSNode implements CSSNodeAPI<CSSNode> {
<ide> }
<ide> }
<ide>
<add> /**
<add> * Get native instance count. Useful for testing only.
<add> */
<add> static native int jni_CSSNodeGetInstanceCount();
<add>
<ide> pri... | 1 |
Python | Python | fix wrong display in memory and swap | 6c3ea7f29337dbc112a28e00959036349dd1e3ef | <ide><path>glances/plugins/glances_mem.py
<ide> def msg_curse(self, args=None):
<ide> msg = "{0:5} ".format(_("MEM"))
<ide> ret.append(self.curse_add_line(msg, "TITLE"))
<ide> # Percent memory usage
<del> msg = "{0:>6}%".format(format(self.stats['percent'] / 100, '.1'))
<add> msg =... | 2 |
Text | Text | add kickstarter link." | a554e72dc6d57ae810b6da741da46e2cb9d19b23 | <ide><path>README.md
<ide> Homebrew
<ide> ========
<ide> Features, usage and installation instructions are [summarized on the homepage][home].
<ide>
<del>Kickstarter
<del>-----------
<del>
<del>Please [back our Kickstarter](http://www.kickstarter.com/projects/homebrew/brew-test-bot) before March 6th:
<del>[![Homebre... | 1 |
Javascript | Javascript | fix crash in debugger | fc8afd45c7150385897b867bb2123d81f4bb9943 | <ide><path>lib/_debugger.js
<ide> Client.prototype.reqEval = function(expression, cb) {
<ide> var frame = bt.frames[self.currentFrame];
<ide>
<ide> var evalFrames = frame.scopes.map(function(s) {
<del> return bt.frames[s.index].index;
<add> if (!s) return;
<add> var x = bt.frames[s.index];
<add>... | 1 |
Javascript | Javascript | use full path to packager for generated project | d6c9648aea72e1a6f90e635c7b3cd96e1e6d5474 | <ide><path>react-native-cli/index.js
<ide> function init(name) {
<ide> version: '0.0.1',
<ide> private: true,
<ide> scripts: {
<del> start: "react-native start"
<add> start: "node_modules/react-native/packager/packager.sh"
<ide> }
<ide> };
<ide> fs.writeFileSync(path.join(root, 'package.js... | 1 |
PHP | PHP | fix doc block | 54554c7cca58635ca39bb213a47583e481459ae1 | <ide><path>tests/TestCase/Command/HelpCommandTest.php
<ide> public function testMain()
<ide> /**
<ide> * Assert the help output.
<ide> *
<del> * @param string $output The output to check.
<ide> * @return void
<ide> */
<ide> protected function assertCommandList() | 1 |
Javascript | Javascript | add comments migration to loopback script | ef919b7ed3976c45d0c849f20de0c511a54ade57 | <ide><path>loopbackMigration.js
<ide> var storyCount = dbObservable
<ide> })
<ide> .count();
<ide>
<add>var commentCount = dbObservable
<add> .flatMap(function(db) {
<add> return createQuery(db, 'comments', {});
<add> })
<add> .withLatestFrom(dbObservable, function(comments, db) {
<add> return {
<add> ... | 1 |
Ruby | Ruby | fix failing `quotingtest#test_quoted_time_utc` | 7daa6f4a779727f1a57a4806692f43b58e150eb9 | <ide><path>activerecord/test/cases/quoting_test.rb
<ide> def test_quoted_time_utc
<ide> with_timezone_config default: :utc do
<ide> t = Time.now.change(usec: 0)
<ide>
<del> expected = t.change(year: 2000, month: 1, day: 1)
<del> expected = expected.getutc.to_s(:db).sub("2000-01-01 "... | 1 |
Python | Python | add explicit encode/decode for fernet key | b587f1e2968bfa2b82ff8a37b260d558608b2403 | <ide><path>airflow/configuration.py
<ide>
<ide> def generate_fernet_key():
<ide> try:
<del> FERNET_KEY = Fernet.generate_key()
<add> FERNET_KEY = Fernet.generate_key().decode()
<ide> except NameError:
<ide> FERNET_KEY = "cryptography_not_found_storing_passwords_in_plain_text"
<ide> re... | 2 |
Text | Text | add known issue of 'num_runs' | b56e6422472dcf80aafe160df335699f087c4ade | <ide><path>UPDATING.md
<ide> loops. This is now time bound and defaults to `-1`, which means run continuously
<ide> #### num_runs
<ide> Previously `num_runs` was used to let the scheduler terminate after a certain amount of loops. Now num_runs specifies
<ide> the number of times to try to schedule each DAG file within... | 1 |
Text | Text | add v3.19.0-beta.3 to changelog | f16f307152000c37e559c7154a8d2df6743de13c | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.19-0.beta.3 (May 4, 2020)
<add>
<add>- [#18941](https://github.com/emberjs/ember.js/pull/18941) [BUGFIX] Update rendering engine to latest version.
<add> - Reduce template size growth to near 3.16 levels (still ~ 3% higher than 3.16)
<add> - Ensures d... | 1 |
Python | Python | add support for dispatching c++ sources | 2d9e75f3a1dbe21de6b53cd2996e45054d3b86c5 | <ide><path>numpy/distutils/ccompiler_opt.py
<ide> class _Distutils:
<ide> def __init__(self, ccompiler):
<ide> self._ccompiler = ccompiler
<ide>
<del> def dist_compile(self, sources, flags, **kwargs):
<add> def dist_compile(self, sources, flags, ccompiler=None, **kwargs):
<ide> """Wrap CCompi... | 3 |
Python | Python | remove dft from build | 1f4b85881b127b879241f2dafb88483c3c20bdd4 | <ide><path>numpy/setup.py
<ide> def configuration(parent_package='',top_path=None):
<ide> config.add_subpackage('lib')
<ide> config.add_subpackage('oldnumeric')
<ide> config.add_subpackage('numarray')
<del> config.add_subpackage('dft')
<ide> config.add_subpackage('fft')
<ide> config.add_subpackag... | 1 |
Python | Python | update lucas_series.py to include another method | b93a9d8e8faa115d06a6bd656f5bf0e91254c1de | <ide><path>maths/lucas_series.py
<del># Lucas Sequence Using Recursion
<add>"""
<add>https://en.wikipedia.org/wiki/Lucas_number
<add>"""
<ide>
<ide>
<del>def recur_luc(n):
<add>def recursive_lucas_number(n):
<ide> """
<del> >>> recur_luc(1)
<add> Returns the nth lucas number
<add> >>> recursive_lucas_num... | 1 |
Go | Go | use 2 seconds instead of 2000 milliseconds | cbf2f4d2816b20df307a270d4267557618708c3f | <ide><path>integration-cli/docker_cli_external_volume_driver_unix_test.go
<ide> func (s *DockerExternalVolumeSuite) TestExternalVolumeDriverRetryNotImmediatelyE
<ide>
<ide> <-started
<ide> // wait for a retry to occur, then create spec to allow plugin to register
<del> time.Sleep(2000 * time.Millisecond)
<add> time.... | 1 |
Ruby | Ruby | avoid unused capture | a05fd2d4a8fbeaef8ac5cb82068235f855ae8039 | <ide><path>activesupport/lib/active_support/core_ext/marshal.rb
<ide> module MarshalWithAutoloading # :nodoc:
<ide> def load(source)
<ide> super(source)
<ide> rescue ArgumentError, NameError => exc
<del> if exc.message.match(%r|undefined class/module (.+?)(::)?\z|)
<add> if exc.message.match(%r|... | 1 |
PHP | PHP | fix param count for unique and exists | 24ec1591c3cc3f5624071f3989521f45e2a6ee08 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateNotIn($attribute, $value, $parameters)
<ide> */
<ide> protected function validateUnique($attribute, $value, $parameters)
<ide> {
<del> $this->requireParameterCount(2, $parameters, 'unique');
<add> $this->requireParameterCount(1, $... | 1 |
Python | Python | update average.py (#908) | 12a16d63b7bdc1da0e0b215dfd5d8b938234f4ed | <ide><path>maths/average.py
<ide> def average(nums):
<ide> sum = 0
<del> n = 0
<ide> for x in nums:
<ide> sum += x
<del> n += 1
<del> avg = sum / n
<add> avg = sum / len(nums)
<ide> print(avg)
<add> return avg
<ide>
<ide> def main():
<ide> average([2, 4, 6, 8, 20, 50, 70]) | 1 |
PHP | PHP | remove obsolete annotation | 5fbdbe215e3cfcb6390d389c791ed92b811855eb | <ide><path>src/Auth/AbstractPasswordHasher.php
<ide> abstract class AbstractPasswordHasher
<ide> * Constructor
<ide> *
<ide> * @param array $config Array of config.
<del> * @return void
<ide> */
<ide> public function __construct(array $config = [])
<ide> { | 1 |
Javascript | Javascript | fix undefined xboneinf | 02253acb2206b14a2df58882bf92bf52e03db548 | <ide><path>examples/js/loaders/XLoader.js
<ide> THREE.XLoader.prototype = {
<ide>
<ide> var scope = this;
<ide> scope.nowReadMode = THREE.XLoader.XfileLoadMode.Weit_init;
<del> scope.BoneInf = new XboneInf();
<add> scope.BoneInf = new THREE.XLoader.XboneInf();
<ide>
<ide> },
<ide> | 1 |
Python | Python | fix bleu computation when ratio=0.0 | 03a5f09a095cbae5b2223c8423c2356f46dcdb71 | <ide><path>official/nlp/metrics/bleu.py
<ide> def _get_ngrams_with_counter(segment, max_order):
<ide>
<ide> Args:
<ide> segment: text segment from which n-grams will be extracted.
<del> max_order: maximum length in tokens of the n-grams returned by this
<del> methods.
<add> max_order: maximum length... | 1 |
Mixed | Go | provide api to retrieve endpoint operational data | 56741e7d60607b0fd98f7790db389cc01da511f2 | <ide><path>libnetwork/README.md
<ide> There are many networking solutions available to suit a broad range of use-cases
<ide> if err != nil {
<ide> return
<ide> }
<add>
<add> // libentwork client can check the endpoint's operational data via the Info() API
<add> epInfo, err := ep.Info()... | 9 |
PHP | PHP | remove support for update with joins | 690f890c997dc7a9d8d44403be7af0f6eb0759a2 | <ide><path>lib/Cake/Database/Dialect/PostgresDialectTrait.php
<ide> protected function _selectQueryTranslator($query) {
<ide> return $query;
<ide> }
<ide>
<del>/**
<del> * Returns an update query that has been transformed for Postgres.
<del> *
<del> * Postgres requires joins to be defined in the FROM list instead o... | 4 |
Python | Python | add test for issue | 6b215d2dd3c6915b4d1c5a46b2a890b14cae7d75 | <ide><path>spacy/tests/regression/test_issue1537.py
<add>'''Test Span.as_doc() doesn't segfault'''
<add>from ...tokens import Doc
<add>from ...vocab import Vocab
<add>from ... import load as load_spacy
<add>
<add>
<add>def test_issue1537():
<add> string = 'The sky is blue . The man is pink . The dog is purple .'
<a... | 1 |
Java | Java | fix failing compositepropertysourcetests | 5ba3db6a7d28494c4fbf3a908f5591bca0d90457 | <ide><path>spring-core/src/test/java/org/springframework/core/env/CompositePropertySourceTests.java
<ide>
<ide> import org.junit.Test;
<ide>
<del>import static org.hamcrest.Matchers.*;
<ide> import static org.junit.Assert.*;
<ide>
<ide> /**
<ide> public void addFirst() {
<ide> composite.addPropertySource(p3);
<ide... | 1 |
Text | Text | update owasp link in docs for dangerous innerhtml | 616e468987fc655bf5e7bc62b97fc86d3b5917e7 | <ide><path>docs/tips/19-dangerously-set-inner-html.ko-KR.md
<ide> permalink: tips/dangerously-set-inner-html-ko-KR.html
<ide> prev: children-undefined-ko-KR.html
<ide> ---
<ide>
<del>부적절히 `innerHTML`를 사용하면 [사이트 간 스크립팅 (XSS)](https://en.wikipedia.org/wiki/Cross-site_scripting) 공격에 노출됩니다. 화면의 사용자 입력을 정제하다(sanitize) 오류를 ... | 2 |
Ruby | Ruby | remove unused ivar | 8d33be7d367af03de6706a05d1d8dfdeed91f446 | <ide><path>actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
<ide> class Request
<ide> class Session
<ide> class Options #:nodoc:
<ide> def initialize(by, env, default_options)
<del> @by = by
<del> @env = env
<del> @session_id_l... | 1 |
Text | Text | add notes for 1.5.0 release | 39eecd136f5782e85a92f611cf3e73ac6b97caf2 | <ide><path>CHANGELOG.md
<add><a name="1.5.0"></a>
<add># 1.5.0 ennoblement-facilitation (2016-02-05)
<add>
<add>## Bug Fixes
<add>
<add>- **$parse:** Copy `inputs` for expressions with expensive checks
<add> ([37cb9ad4](https://github.com/angular/angular.js/commit/37cb9ad43619e2b14055b3105a954f4474cd933c))
<add>- **$r... | 1 |
Ruby | Ruby | remove duplication in test | 0ebf45cf5d3119db3a3794df14a331f7bbea0e82 | <ide><path>activesupport/test/concern_test.rb
<ide> def test_class_methods_are_extended
<ide> assert_equal ConcernTest::Baz::ClassMethods, (class << @klass; self.included_modules; end)[0]
<ide> end
<ide>
<del> def test_instance_methods_are_included
<del> @klass.send(:include, Baz)
<del> assert_equal "baz"... | 1 |
PHP | PHP | remove useless closure comment | 64c9c13734dd9468ee014d01e95fc81ed127182c | <ide><path>src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php
<ide> protected function binder()
<ide> * Normalize the given callback into a callable.
<ide> *
<ide> * @param mixed $callback
<del> * @return \Closure|callable
<add> * @return callable
<ide> */
<ide> protected functio... | 4 |
Ruby | Ruby | keep track of pruned parent directories | e4b951520aafc3e5b4e9719d5b38962022f6133e | <ide><path>Library/Homebrew/keg.rb
<ide> def unlink
<ide> next unless dir.exist?
<ide> dir.find do |src|
<ide> next if src == self
<del> dst=HOMEBREW_PREFIX+src.relative_path_from(self)
<del> dst.extend ObserverPathnameExtension
<add> dst = HOMEBREW_PREFIX + src.relative_path_fr... | 2 |
Python | Python | drop environment markers from setup.py | 0adf1392568b10cbbf69ea56771db988e9767b2b | <ide><path>setup.py
<ide> def run(self):
<ide> 'export': ['bernhard', 'cassandra-driver', 'couchdb', 'elasticsearch',
<ide> 'influxdb>=1.0.0', 'kafka-python', 'pika', 'potsdb',
<ide> 'prometheus_client', 'pyzmq', 'statsd'],
<del> 'folders:python_version<"3.5"': ['sca... | 1 |
PHP | PHP | mode return docblock. | 0b70896854e1790fd40f52683c6f7b27658d0a3d | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function median($key = null)
<ide> * Get the mode of a given key.
<ide> *
<ide> * @param mixed $key
<del> * @return array
<add> * @return array|null
<ide> */
<ide> public function mode($key = null)
<ide> { | 1 |
Javascript | Javascript | fix lazy loading on node.js | b5413e6baf4768cf78c817296349e485b76bccb4 | <ide><path>src/lib/locale/locales.js
<ide> function loadLocale(name) {
<ide> require('./locale/' + name);
<ide> // because defineLocale currently also sets the global locale, we
<ide> // want to undo that for lazy loaded locales
<del> moment.locale(oldLocale);
<add> ... | 1 |
PHP | PHP | convert array syntax | 823c7318eed8923a9b998da8a5ede64aa4849045 | <ide><path>lib/Cake/Utility/ViewVarsTrait.php
<ide> trait ViewVarsTrait {
<ide> *
<ide> * @var array
<ide> */
<del> public $viewVars = array();
<add> public $viewVars = [];
<ide>
<ide> /**
<ide> * Saves a variable for use inside a template.
<ide> public function set($one, $two = null) {
<ide> $data = $one;
<id... | 1 |
Go | Go | move containers to a job | 5ea2986ce5cfce1b86fdc92610dbc6d670691168 | <ide><path>api.go
<ide> func getContainersJSON(srv *Server, version float64, w http.ResponseWriter, r *h
<ide> if err := parseForm(r); err != nil {
<ide> return err
<ide> }
<del> all, err := getBoolParam(r.Form.Get("all"))
<del> if err != nil {
<add> var (
<add> err error
<add> outs *engine.Table
<add> job = s... | 8 |
Go | Go | add unit test for (*pattern).compile | 8d250be008ea6521956a50e201f7e2a653e1a6c3 | <ide><path>pkg/fileutils/fileutils.go
<ide> func (p *Pattern) Exclusion() bool {
<ide>
<ide> func (p *Pattern) match(path string) (bool, error) {
<ide> if p.matchType == unknownMatch {
<del> if err := p.compile(); err != nil {
<add> if err := p.compile(string(os.PathSeparator)); err != nil {
<ide> return false, ... | 2 |
Ruby | Ruby | add deprected options audit for depends_on | efec2fa0c5cd868ec66a1e3e4ffc737b911ae5be | <ide><path>Library/Homebrew/rubocops/extend/formula_cop.rb
<ide> def audit_urls(urls, regex)
<ide> # Returns all string nodes among the descendants of given node
<ide> def find_strings(node)
<ide> return [] if node.nil?
<del> return node if node.str_type?
<add> return [node] if node.st... | 3 |
Javascript | Javascript | remove unnecessary assignment | f1e677895e936e60be519338a5ae935cd8235db4 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> }
<ide>
<ide> if (!directive.templateUrl && directive.controller) {
<del> directiveValue = directive.controller;
<ide> controllerDirectives = controllerDirectives || createMap();
<id... | 1 |
PHP | PHP | remove invalid usage example | 9542949f52a285b5ee44f6613aadac6cae55bb0b | <ide><path>src/View/Helper/FormHelper.php
<ide> public function error($field, $text = null, array $options = [])
<ide> * <label for="published">Publish</label>
<ide> * ```
<ide> *
<del> * Custom class name:
<del> *
<del> * ```
<del> * echo $this->Form->label('published', 'Publish', 'requi... | 1 |
PHP | PHP | fix failing tests | 7fef92255327a89f3977d975e89c190b47273622 | <ide><path>tests/TestCase/Console/CommandCollectionTest.php
<ide> public function testAutoDiscoverCore()
<ide> $this->assertTrue($collection->has('i18n'));
<ide> $this->assertTrue($collection->has('schema_cache'));
<ide> $this->assertTrue($collection->has('server'));
<del> $this->assertTr... | 2 |
Text | Text | fix typo in changelog | bc9c1a5a7b822f8d1e9208eff8cfaadcdbd52673 | <ide><path>CHANGELOG.md
<ide> In general it is recommended that you use [NAN](https://github.com/rvagg/nan) as
<ide>
<ide> - Exposed method signature has changed from `Handle<Value> Method(const Arguments& args)` to `void Method(const v8::FunctionCallbackInfo<Value>& args)` with the newly introduced `FunctionCallbackI... | 1 |
Python | Python | drop the tmp table after ingestion | 8e0cf961e2225ad916ea82699aab95534840c762 | <ide><path>airflow/operators/hive_to_druid.py
<ide> def execute(self, context):
<ide> "Cleaning up by dropping the temp "
<ide> "Hive table {}".format(hive_table))
<ide> hql = "DROP TABLE IF EXISTS {}".format(hive_table)
<del> #hive.run_cli(hql)
<add> hive.run_cli(hql) | 1 |
Java | Java | fix padding with text on android | c3f2bba834a5ffcc42352bb738132baceafce76d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java
<ide> public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
<ide> super.onCollectExtraUpdates(uiViewOperationQueue);
<ide> if (mPreparedSpannableText != null) {
<ide> ReactTextUpdate react... | 4 |
Text | Text | add lines 109-118(reading files) | 218bcfe75d0f44eadd9c13ec5667dee29e02da9a | <ide><path>guide/english/python/files-and-io/index.md
<ide> Sample code to open a text file using the `with` statement:
<ide> with open('hello_world.txt', 'w') as f:
<ide> f.write('Hello World!')
<ide> ```
<add>#### Reading files
<add>There are many ways of reading a file. Reading a file <code>fh</code> is only pos... | 1 |
Ruby | Ruby | add collectionproxy#count documentation | f81798d06415c538f5b1c5acfd4889b45473e62d | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide> #
<ide> # Pet.find(4, 5, 6) # => ActiveRecord::RecordNotFound: Couldn't find all Pets with IDs (4, 5, 6)
<ide>
<add> ##
<add> # :method: count
<add> #
<add> # :call-... | 1 |
Javascript | Javascript | improve normalization performance | 37d27486fce50bd82b6b5095af880d435ed308f8 | <ide><path>lib/path.js
<ide> function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
<ide> lastSegmentLength = 2;
<ide> }
<ide> } else {
<del> res += (res.length > 0 ? separator : '') + path.slice(lastSlash + 1, i);
<add> if (res.length > 0)
<add> res ... | 1 |
Text | Text | fix typos in /doc/api/fs.md | 97ebcdddcc861595eb892e271505ad38b2abbc64 | <ide><path>doc/api/fs.md
<ide> added: v10.0.0
<ide> -->
<ide>
<ide> * `len` {integer} **Default:** `0`
<del>* Returns: {Promise} Fulfills with `undefined` upo nsuccess.
<add>* Returns: {Promise} Fulfills with `undefined` upon success.
<ide>
<ide> Truncates the file.
<ide>
<ide> changes:
<ide> **Default:** `'r'`.
<... | 1 |
Ruby | Ruby | remove applicationcontroller & routingtesthelpers | 087c66d18337415d0ff5e46f63a9e1fd32afb13c | <ide><path>actionview/test/abstract_unit.rb
<ide> class TestCase
<ide> end
<ide> end
<ide>
<del>class ::ApplicationController < ActionController::Base
<del>end
<del>
<ide> module ActionView
<ide> class TestCase
<ide> # Must repeat the setup because AV::TestCase is a duplication
<ide> def stderr_logger
<ide> ... | 1 |
Text | Text | use string interpolation | 5708140f103f40f978f259294c12e0e5e9644a02 | <ide><path>docs/your-first-package.md
<ide> convert: ->
<ide> if error
<ide> console.error(error)
<ide> else
<del> selection.insertText("\n" + asciiArt + "\n")
<add> selection.insertText("\n#{asciiArt}\n")
<ide> ```
<ide>
<ide> ## Further reading | 1 |
Java | Java | publish events only after successful channel send | 27899abcb6c1651b0b25e196ae9768a264474b70 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java
<ide> else if (StompCommand.DISCONNECT.equals(headerAccessor.getCommand())) {
<ide>
<ide> try {
<ide> SimpAttributesContextHolder.setAttributesFromMessage(message);
<del> if (this.eventPublisher... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.