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 | add changelog entry to action pack as well | 801c6f9e04033b68dd9f268a94e4317f7dde8b65 | <ide><path>actionpack/CHANGELOG.md
<add>* Show cache hits and misses when rendering partials.
<add>
<add> Partials using the `cache` helper will show whether a render hit or missed
<add> the cache:
<add>
<add> ```
<add> Rendered messages/_message.html.erb in 1.2 ms [cache hit]
<add> Rendered recordings... | 1 |
Javascript | Javascript | specify function return type for handler | a903d1b86ab56163abcdcb584f335949ba0c85fc | <ide><path>Libraries/Utilities/BackHandler.android.js
<ide> type TBackHandler = {|
<ide> +exitApp: () => void,
<ide> +addEventListener: (
<ide> eventName: BackPressEventName,
<del> handler: Function,
<add> handler: () => ?boolean,
<ide> ) => {remove: () => void, ...},
<ide> +removeEventListener: (
<id... | 3 |
Javascript | Javascript | add alltime vs. perbatch uimanager stats | 340229303f7d0e4c45167d8eefa25a45a728985c | <ide><path>Libraries/ReactNative/UIManagerStatTracker.js
<ide>
<ide> var RCTUIManager = require('NativeModules').UIManager;
<ide>
<add>var performanceNow = require('performanceNow');
<add>
<ide> var installed = false;
<ide> var UIManagerStatTracker = {
<ide> install: function() {
<ide> var UIManagerStatTracker = {
... | 1 |
Ruby | Ruby | remove useless require | 3ed92c876c5cebea908f23020457bd494755f54b | <ide><path>activesupport/lib/active_support/dependencies/autoload.rb
<ide> require "active_support/inflector/methods"
<del>require "active_support/lazy_load_hooks"
<ide>
<ide> module ActiveSupport
<ide> module Autoload | 1 |
PHP | PHP | update timehelper docs | 1c7985089452299b713a353fd123818e5c4501b1 | <ide><path>src/View/Helper/TimeHelper.php
<ide> public function isThisWeek($dateString, $timezone = null) {
<ide> *
<ide> * @param int|string|\DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object
<ide> * @param string|\DateTimeZone $timezone User's timezone string or DateTimeZone object
<... | 1 |
Text | Text | update description of etag [ci skip] | 0f87413f41050d6e3eacefb97a05a5d954f602d1 | <ide><path>guides/source/5_0_release_notes.md
<ide> Please refer to the [Changelog][action-pack] for detailed changes.
<ide> `ActionDispatch::IntegrationTest` instead.
<ide> ([commit](https://github.com/rails/rails/commit/4414c5d1795e815b102571425974a8b1d46d932d))
<ide>
<del>* Rails will only generate "weak"... | 1 |
PHP | PHP | touch owners on delete | 46ff00d733ee72c5419702af0181d8bbd8272b38 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function delete()
<ide> {
<ide> $this->fireModelEvent('deleting', false);
<ide>
<del> // After firing the "deleting" event, we can go ahead and delete off the model
<del> // then call the "deleted" event. These events could give the developer ... | 2 |
Python | Python | adapt attention masks for the decoder case | 075206961700fd2359f5c5cfc86a8c18d8404406 | <ide><path>transformers/modeling_bert.py
<ide> def transpose_for_scores(self, x):
<ide> x = x.view(*new_x_shape)
<ide> return x.permute(0, 2, 1, 3)
<ide>
<del> def forward(self, hidden_states, attention_mask=None, head_mask=None, encoder_hidden_states=None):
<add> def forward(self, hidden_states,... | 1 |
Python | Python | ignore dummy process | 3c1485b1bc64a7f007feae5722923f1e755e7dec | <ide><path>glances/glances.py
<ide> def update(self):
<ide> for proc in psutil.process_iter():
<ide> try:
<ide> procstat = self.__get_process_stats__(proc)
<del> # Ignore the 'idle' process on Windows or Bsd
<del> # Waiting upstream patch from PsUtil
<ad... | 1 |
PHP | PHP | use non-mocked methods for tests | e04e0a0ec89ba95eaaa6dc51b1612a2909722018 | <ide><path>lib/Cake/Test/Case/View/MediaViewTest.php
<ide> class MediaViewTest extends CakeTestCase {
<ide> public function setUp() {
<ide> parent::setUp();
<ide> $this->MediaView = $this->getMock('MediaView', array('_isActive', '_clearBuffer', '_flushBuffer'));
<del> $this->MediaView->response = $this->getMock('... | 1 |
PHP | PHP | provide immediate access to set cookies | 374f72f5e51c13cf375d64d5ddd46c9dc37ad23d | <ide><path>laravel/cookie.php
<ide> public static function put($name, $value, $minutes = 0, $path = '/', $domain = n
<ide> {
<ide> if (headers_sent()) return false;
<ide>
<del> if ($minutes < 0) unset($_COOKIE[$name]);
<add> if ($minutes < 0)
<add> {
<add> unset($_COOKIE[$name]);
<add> }
<add> else
<add> {
... | 1 |
PHP | PHP | consolidate underscore, dasherize and humanize | 77bd88d84abc914149813c426e9ed240d59bb325 | <ide><path>src/Utility/Inflector.php
<ide> public static function singularize($word)
<ide> /**
<ide> * Returns the given lower_case_and_underscored_word as a CamelCased word.
<ide> *
<del> * @param string $lowerCaseAndUnderscoredWord Word to camelize
<add> * @param string $string Word to camelize
... | 2 |
Java | Java | ignore invalid connect frame | dc2947c52df18d5e99cad03383f7d6ba13d031fd | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.java
<ide> /*
<del> * Copyright 2002-2019 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 "Lice... | 3 |
Text | Text | add npm downloads badge | 72904d894daa5947e4b368fa15b1b9737b9d4ba9 | <ide><path>README.md
<ide> # [Redux](http://gaearon.github.io/redux)
<del>[](https://travis-ci.org/gaearon/redux) [](https://www.npmjs.com/package/redux) [![re... | 1 |
Python | Python | add tests for prefer_gpu() and require_gpu() | 91593b7378f5480d0b95930d12e7d1874967ccfa | <ide><path>spacy/tests/test_misc.py
<ide> from ..tokens import Span
<ide> from .util import get_doc
<ide> from .._ml import PrecomputableAffine
<add>from .. import prefer_gpu, require_gpu
<ide>
<ide> from pathlib import Path
<ide> import pytest
<ide> def test_PrecomputableAffine(nO=4, nI=5, nF=3, nP=2):
<ide> asse... | 1 |
Javascript | Javascript | add dependency on angular-sanitize to example | 8c121b94e7cfe9fd3e0f0acfb238a23156ea4093 | <ide><path>src/ngSanitize/sanitize.js
<ide> var $sanitizeMinErr = angular.$$minErr('$sanitize');
<ide> * @returns {string} Sanitized html.
<ide> *
<ide> * @example
<del> <example module="ngSanitize">
<add> <example module="ngSanitize" deps="angular-sanitize.js">
<ide> <file name="index.html">
<ide> <scri... | 1 |
Javascript | Javascript | add support for binding to global paths | 0f09b6d79e4a387cc600dac8e82db5061c86da87 | <ide><path>packages/ember-htmlbars/lib/hooks/get-root.js
<ide> */
<ide>
<ide> import Ember from "ember-metal/core";
<add>import { isGlobal } from "ember-metal/path_cache";
<add>import SimpleStream from "ember-metal/streams/simple-stream";
<ide>
<ide> export default function getRoot(scope, key) {
<ide> if (key === '... | 7 |
Go | Go | extend health check to start service | a99db84b4a966f0f09e81c446e857323a2a3302c | <ide><path>daemon/cluster/executor/container/controller.go
<ide> func (r *controller) Start(ctx context.Context) error {
<ide> return errors.Wrap(err, "starting container failed")
<ide> }
<ide>
<del> return nil
<add> // no health check
<add> if ctnr.Config == nil || ctnr.Config.Healthcheck == nil {
<add> return ni... | 2 |
PHP | PHP | perform redirection only in case of get requests | fd4cc43435353b3358013bb9b33374830157da12 | <ide><path>src/Http/Middleware/HttpsEnforcerMiddleware.php
<ide> class HttpsEnforcerMiddleware implements MiddlewareInterface
<ide> *
<ide> * ### Options
<ide> *
<del> * - `redirect` If set to true (default) redirect to same URL with https.
<add> * - `redirect` If set to true (default) redirects ... | 2 |
Python | Python | fix import of secrets | 75b4caf442bcc2889b66e3a966e02449ceb2433e | <ide><path>test/test_voxel.py
<ide> import httplib
<ide>
<ide> from test import MockHttp, multipleresponse, TestCaseMixin
<del>from secrets import VOXEL_USER, VOXEL_SECRET
<add>from secrets import VOXEL_KEY, VOXEL_SECRET
<ide> from xml.etree import ElementTree as ET
<ide>
<ide> class VoxelTest(unittest.TestCase): | 1 |
Ruby | Ruby | add missing inflector dependency | b13400086c2d39a5bbc5e8a6ea26434e842fbb10 | <ide><path>activesupport/lib/active_support/testing/constant_lookup.rb
<ide> require "active_support/concern"
<add>require "active_support/inflector"
<ide>
<ide> module ActiveSupport
<ide> module Testing
<ide> module ClassMethods
<ide> def determine_constant_from_test_name(test_name)
<ide> names = ... | 2 |
Ruby | Ruby | remove wrong comment | 8d0c107a60a5f240c7a6e9caee4ad10cff8fe63e | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def serve(req)
<ide>
<ide> prepare_params!(params)
<ide>
<del> # Just raise undefined constant errors if a controller was specified as default.
<ide> controller = controller(params, @raise_on_name_error) do
<ide> ... | 1 |
Javascript | Javascript | uniformize links in layoutproptypes docs | 1234d274787aa2e4e5a8bbbf7c94dbbd43339b4f | <ide><path>Libraries/StyleSheet/LayoutPropTypes.js
<ide> var LayoutPropTypes = {
<ide> *
<ide> * It works similarly to `width` in CSS, but in React Native you
<ide> * must use logical pixel units, rather than percents, ems, or any of that.
<del> * See http://www.w3schools.com/cssref/pr_dim_width.asp for m... | 1 |
PHP | PHP | change some paths | f53b52c8a177e20e3947212a26798dedd1346be6 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function databasePath()
<ide> */
<ide> public function langPath()
<ide> {
<del> return $this->basePath.'/resources/lang';
<add> return $this->basePath.'/lang';
<ide> }
<ide>
<ide> /**
<ide><path>src/Illuminate/Foundation/Console/FreshCommand.php... | 2 |
Text | Text | use a react component as a vjs component | cff2e503ef9088207fcdd541fbe0c45c0c79c1b8 | <ide><path>docs/guides/react.md
<ide> return <VideoPlayer { ...videoJsOptions } />
<ide> Dont forget to include the video.js CSS, located at `video.js/dist/video-js.css`.
<ide>
<ide> [options]: /docs/guides/options.md
<add>
<add>
<add>## Using a React Component as a Video JS Component
<add>
<add>```jsx
<add>/**
<add> ... | 1 |
Javascript | Javascript | extract snapshotoptimization into separate class | 577156f790f96fa5a8892839cc5a77455d0d339d | <ide><path>lib/FileSystemInfo.js
<ide> const INVALID = Symbol("invalid");
<ide> * @property {Set<string>} resolveDependencies.missing list of missing entries
<ide> */
<ide>
<add>class SnapshotOptimization {
<add> constructor(key) {
<add> this._key = key;
<add> /** @type {Map<string, SnapshotOptimizationEntry>} */
... | 1 |
Javascript | Javascript | fetch dom node lazily for updates | 27996377e0da502b6d9fccd2018d7919c3de6733 | <ide><path>src/renderers/dom/shared/ReactDOMComponent.js
<ide> ReactDOMComponent.Mixin = {
<ide> break;
<ide> }
<ide>
<del> var node = ReactMount.getNode(this._rootNodeID);
<ide> assertValidProps(this, nextProps);
<del> this._updateDOMProperties(lastProps, nextProps, transaction, node);
<add> ... | 1 |
Ruby | Ruby | fix documentation mistakes | 2033db171ad88d0cbee719cd603bf76aa3dda5a9 | <ide><path>actionpack/lib/action_view/helpers/asset_tag_helper.rb
<ide> module AssetTagHelper
<ide> # * <tt>:title</tt> - Specify the title of the link, defaults to the +type+
<ide> #
<ide> # ==== Examples
<del> # auto_discovery_link_tag # =>
<del> # <link rel="alternate" type="applica... | 2 |
Javascript | Javascript | fix typo in `avoid-prototype-pollution` lint rule | 3303a10f322dbc351deb9ca8c33310c77ae46a69 | <ide><path>tools/eslint-rules/avoid-prototype-pollution.js
<ide> module.exports = {
<ide> [CallExpression('PromisePrototypeCatch')](node) {
<ide> context.report({
<ide> node,
<del> message: '%Promise.prototype.catch% look up the `then` property of ' +
<add> message: '%Promise.p... | 1 |
Ruby | Ruby | add ghc@8.6 to binary formula urls whitelist | f60e2a0c4a496ddfd2e2f69f499cb229deba3f75 | <ide><path>Library/Homebrew/rubocops/urls.rb
<ide> class Urls < FormulaCop
<ide> fpc
<ide> ghc
<ide> ghc@8.2
<add> ghc@8.6
<ide> go
<ide> go@1.9
<ide> go@1.10 | 1 |
Java | Java | remove utility functions from public api | 56b9feaf4257c86f5f952677e3529b09cb16a620 | <ide><path>src/main/java/rx/Observable.java
<ide> */
<ide> package rx;
<ide>
<del>import static rx.functions.Functions.alwaysFalse;
<del>
<ide> import java.util.*;
<ide> import java.util.concurrent.*;
<ide>
<ide> import rx.exceptions.*;
<ide> import rx.functions.*;
<ide> import rx.internal.operators.*;
<ide> import ... | 12 |
Ruby | Ruby | fix http 422 when gist-logs sends an empty file | 840a5c74185ee44546008bd585c3e5edbfa9528c | <ide><path>Library/Contributions/cmd/brew-gist-logs.rb
<ide> def load_logs name
<ide> logs = {}
<ide> dir = (HOMEBREW_LOGS/name)
<ide> dir.children.sort.each do |file|
<del> logs[file.basename.to_s] = {:content => file.read}
<add> logs[file.basename.to_s] = {:content => (file.size == 0 ? "empty log" : file.... | 1 |
Text | Text | replace "base" with "ubuntu" in documentation | c0969ed3d896c9add0a2cca7b9a9074cd138571b | <ide><path>docs/sources/reference/api/docker_remote_api_v1.10.md
<ide> List containers
<ide> [
<ide> {
<ide> "Id": "8dfafdbc3a40",
<del> "Image": "base:latest",
<add> "Image": "ubuntu:latest",
<ide> "Command": "echo 1... | 8 |
Java | Java | remove obsolete code | ba42deb7db626aecbee78707d2f697b7898f8bfb | <ide><path>spring-web/src/main/java/org/springframework/web/bind/UnsatisfiedServletRequestParameterException.java
<ide> private static List<String> paramsToStringList(List<String[]> paramConditions) {
<ide> @Override
<ide> public String getMessage() {
<ide> StringBuilder sb = new StringBuilder("Parameter conditions... | 1 |
Javascript | Javascript | improve tests for test-http-url.parse | 4a881e04dc1659669d2e84d2307abc1b9d9cbbd1 | <ide><path>test/parallel/test-http-url.parse-auth-with-header-in-request.js
<ide> function check(request) {
<ide>
<ide> const server = http.createServer(function(request, response) {
<ide> // run the check function
<del> check.call(this, request, response);
<add> check(request);
<ide> response.writeHead(200, {})... | 8 |
Javascript | Javascript | update message with instructions | c451dd6cceb526d4814993e4d0eb431375a9b01c | <ide><path>local-cli/server/middleware/systraceProfileMiddleware.js
<ide> */
<ide> 'use strict';
<ide>
<del>const exec = require('child_process').exec;
<ide> const fs = require('fs');
<del>const path = require('path');
<ide>
<ide> module.exports = function(req, res, next) {
<ide> if (req.url !== '/systrace') {
<id... | 1 |
Go | Go | add remove method to subsystems | 7fdeda87173ee6722ef1cbe7b21a13ac8b173365 | <ide><path>pkg/cgroups/fs/apply_raw.go
<ide> var (
<ide>
<ide> type subsystem interface {
<ide> Set(*data) error
<add> Remove(*data) error
<ide> }
<ide>
<ide> type data struct {
<ide> func (raw *data) join(subsystem string) (string, error) {
<ide> }
<ide>
<ide> func (raw *data) Cleanup() error {
<del> get := func(s... | 9 |
PHP | PHP | update core cake command for new bootstrapping | 89eeb630bca66cd1f418abb32ee1792dc3cea717 | <ide><path>App/Console/cake.php
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide> include dirname(__DIR__) . '/Config/bootstrap.php';
<add>
<ide> return Cake\Console\ShellDispatcher::run($argv);
<ide><path>lib/Cake/Console/cake.php
<ide> * @since CakePHP(t... | 3 |
Javascript | Javascript | simplify regression test for segv | 624a242b05397fdacc1e79007de223cd0331f6e8 | <ide><path>test/parallel/test-crypto.js
<ide> const tls = require('tls');
<ide> const fixtures = require('../common/fixtures');
<ide>
<ide> // Test Certificates
<del>const caPem = fixtures.readSync('test_ca.pem', 'ascii');
<del>const certPem = fixtures.readSync('test_cert.pem', 'ascii');
<ide> const certPfx = fixtures... | 1 |
Python | Python | handle invalid user situation | be590d61c09805955d89231cff84fd6fd1ab1ecb | <ide><path>rest_framework/authtoken/management/commands/drf_create_token.py
<ide> def add_arguments(self, parser):
<ide>
<ide> def handle(self, *args, **options):
<ide> username = options['username']
<del> token = self.create_user_token(username)
<add>
<add> try:
<add> token = self... | 2 |
Ruby | Ruby | reduce verbosity of artifacts hash | 5eab54f892cfac39c78a3d092f3084ce817fca04 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
<ide> def run
<ide> end
<ide>
<ide> if stanza == :artifacts
<del> value = Hash[value.map { |v| [v.class.dsl_key, v] }]
<add> value = Hash[value.map { |v| [v.class.dsl_key, v.to_s] }]
<ide> value = valu... | 1 |
PHP | PHP | add attachmany method to the pendingrequest.php | 884dd4ab56848949fc25d15c3036981446953bd1 | <ide><path>src/Illuminate/Http/Client/PendingRequest.php
<ide> public function attach($name, $contents, $filename = null, array $headers = [])
<ide>
<ide> return $this;
<ide> }
<add>
<add> /**
<add> * Attach multiple files to the request. Accepts an array containing arrays of files
<add> *
<... | 1 |
Python | Python | fix failing tests | 3c6b379d46b10994fbd037ea238e3f703c0f62e9 | <ide><path>libcloud/dns/drivers/vultr.py
<ide> def create_zone(self, domain, type='master', ttl=None, extra=None):
<ide> zones = self.list_zones()
<ide> if self.ex_zone_exists(domain, zones):
<ide> raise ZoneAlreadyExistsError(value='', driver=self,
<del> ... | 2 |
PHP | PHP | fix unreachable code in model mergevars | e7c913acba7cfff3dd17dd7270c5079dfdad300d | <ide><path>lib/Cake/Model/Model.php
<ide> public function __construct($id = false, $table = null, $ds = null) {
<ide> }
<ide>
<ide> if (is_subclass_of($this, 'AppModel')) {
<del> $merge = array('findMethods');
<del> if ($this->actsAs !== null || $this->actsAs !== false) {
<del> $merge[] = 'actsAs';
<del> ... | 1 |
Javascript | Javascript | add examples to rtlexample | bc5083ac40b269169522fa4e4acca17e26c17213 | <ide><path>RNTester/js/RTLExample.js
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> *
<ide> * @flow
<add> * @format
<ide> * @providesModule RTLExample
<ide> */
<ide> 'use strict';
<ide> const {
<ide> TouchableWithoutFeedback,
<ide> Switch,
<ide> View,
<add> Button,
<i... | 1 |
Javascript | Javascript | improve cert claiming test | f4dc81bce32763336a623dd44508658224597889 | <ide><path>cypress/integration/learn/responsive-web-design/claim-cert-from-learn.js
<ide> describe('Responsive Web Design Superblock', () => {
<ide> cy.contains("I've completed this challenge")
<ide> .should('not.be.disabled')
<ide> .click();
<add> cy.intercept('http://localhost:3000/... | 1 |
Text | Text | fix small typo in typescript documentation | 432eec2aecac0d3ee6336349d726f1130080de0f | <ide><path>packages/next/README.md
<ide> After adding the `tsconfig.json` you need to install `@types` to get proper Type
<ide> npm install --save-dev @types/react @types/react-dom @types/node
<ide> ```
<ide>
<del>Now can change any file from `.js` to `.ts` / `.tsx` (tsx is for files using JSX). To learn more about Ty... | 1 |
Python | Python | set version to 2.1.1 | 5a53e9358a2faa4f091fab196b48a66bbb6eb07f | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy"
<del>__version__ = "2.1.0"
<add>__version__ = "2.1.1"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Javascript | Javascript | save datalistener in memory | d86fe6b30122b7464471131b145cfecb7541cb47 | <ide><path>extensions/firefox/components/PdfStreamConverter.js
<ide> PdfStreamConverter.prototype = {
<ide> var channel = ioService.newChannel(
<ide> PDF_VIEWER_WEB_PAGE, null, null);
<ide>
<del> var self = this;
<ide> var listener = this.listener;
<add> var dataListener = this.dataLi... | 1 |
Python | Python | add test for ticket #203 | 19ce2ea3251916695bc5a7f3d4389664255d4db4 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_mem_array_creation_invalid_specification(self,level=rlevel):
<ide> # Correct way
<ide> N.array([(1,'object')],dt)
<ide>
<add> def check_recarray_single_element(self,level=rlevel):
<add> """Ticket #202"""
<add> a = N.array([... | 1 |
Text | Text | correct my wrong note about buf.fill() | 17c6b1d4f78d6050642d3cd3723c08564e67dcd5 | <ide><path>doc/api/buffer.md
<ide> console.log(b.toString());
<ide>
<ide> `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or
<ide> integer. If the resulting integer is greater than `255` (decimal), `buf` will be
<del>filled with `0`.
<add>filled with `value & 255`.
<ide>
<ide> If the final wri... | 1 |
Text | Text | add section and information on packet sniffing. | ec255f2d8068b6808fa71efa29551ffc9973939f | <ide><path>guide/english/security/packet-sniffing/index.md
<add>---
<add>title: Packet Sniffing
<add>---
<add>## Packet Sniffing
<add>
<add>Packet Sniffing is the process/strategy of intercepting/capturing traffic on the Network Level. The purpose of this act is to recover and analyze data passing through the target ne... | 1 |
PHP | PHP | do sameness checks on the type sensitive parts | 5e961c9e0ecc2023812f32fa3cb5e0a16113a6ae | <ide><path>tests/TestCase/Database/Schema/SqlserverSchemaTest.php
<ide> public function testDescribeTable()
<ide> ];
<ide> $this->assertEquals(['id'], $result->primaryKey());
<ide> foreach ($expected as $field => $definition) {
<del> $this->assertSame($definition, $result->column($fie... | 1 |
Javascript | Javascript | replace tab with space | 0d533b860fa6f72f0a6a8d7e3832f74e3e55ef35 | <ide><path>bin/webpack.js
<ide> try {
<ide> }
<ide>
<ide> if(webpackCliInstalled) {
<del> require("webpack-cli"); // eslint-disable-line node/no-missing-require, node/no-extraneous-require, node/no-unpublished-require
<add> require("webpack-cli"); // eslint-disable-line node/no-missing-require, node/no-extraneous-requ... | 1 |
Text | Text | add flags section to document all flags | 53822f605d3171530ab820d71e8832f473479c27 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> * `options` {Object|string}
<ide> * `encoding` {string|null} **Default:** `'utf8'`
<ide> * `mode` {integer} **Default:** `0o666`
<del> * `flag` {string} **Default:** `'a'`
<add> * `flag` {string} See [support of file system `flags`][]. **Default:** `'a'`.
<ide> * `cal... | 1 |
Mixed | Python | add doctests to radix_sort() | 5b6ebf8f12fa56f710c4d5fa254d069c0052f520 | <ide><path>DIRECTORY.md
<ide> * [All Subsequences](https://github.com/TheAlgorithms/Python/blob/master/backtracking/all_subsequences.py)
<ide> * [Coloring](https://github.com/TheAlgorithms/Python/blob/master/backtracking/coloring.py)
<ide> * [Hamiltonian Cycle](https://github.com/TheAlgorithms/Python/blob/master/... | 3 |
Go | Go | handle nxdomain, refused and log errors | 6dd3f452482c5487cea3f0643d0c70c5215ba1f0 | <ide><path>libnetwork/resolver.go
<ide> func (r *resolver) ServeDNS(w dns.ResponseWriter, query *dns.Msg) {
<ide> logrus.Debugf("[resolver] external DNS %s:%s returned empty response for %q", proto, extDNS.IPStr, name)
<ide> break
<ide> }
<del> if resp.Rcode == dns.RcodeServerFailure {
<del> // for Serv... | 1 |
PHP | PHP | fix protocol relative urls for css and js files | 5180540d1f5eae68f39ff000f743669ce328d56b | <ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> public function testCssLink() {
<ide> $expected['link']['href'] = 'preg:/.*ccss\/cake\.generic\.css/';
<ide> $this->assertTags($result, $expected);
<ide>
<add> $result = $this->Html->css('//example.com/css/cake.generic.css');
<add> $expected['lin... | 2 |
Text | Text | add details for "heap sort" | e1ae1bdd09f894eae83491ca58815befb257e284 | <ide><path>guide/english/algorithms/index.md
<ide> There is no sorting discussion which can finish without quick sort.
<ide> It is the sorting algorithm which relies on the concept how to sorted arrays are merged to give one sorted arrays. Read more about it here-
<ide> [Merge Sort](https://www.geeksforgeeks.org/merge-... | 1 |
PHP | PHP | remove empty array when plugin requires nothing | a743dacc59de19ae2ee74614a5a0a535cbc7d633 | <ide><path>src/Shell/Task/LoadTask.php
<ide> protected function _modifyBootstrap($plugin, $hasBootstrap, $hasRoutes, $hasAuto
<ide> $append = "\nPlugin::load('%s', [%s]);\n";
<ide> $options = implode(', ', array_filter([$autoloadString, $bootstrapString, $routesString]));
<ide>
<del> ... | 2 |
Python | Python | add validate cli command | fff1028391aee0f4218dfd7f572a86407cee48cf | <ide><path>spacy/__main__.py
<ide> import plac
<ide> import sys
<ide> from spacy.cli import download, link, info, package, train, convert, model
<del> from spacy.cli import profile, evaluate
<add> from spacy.cli import profile, evaluate, validate
<ide> from spacy.util import prints
<ide>
<ide> ... | 3 |
PHP | PHP | improve docs and add reset() method | f3ae5e6ff1ed8bc42ea15a6ff52a81cded1b023e | <ide><path>lib/Cake/Test/TestCase/Controller/ComponentRegistryTest.php
<ide> public function testGetController() {
<ide> $result = $this->Components->getController();
<ide> $this->assertInstanceOf('Cake\Controller\Controller', $result);
<ide> }
<add>
<add>/**
<add> * Test reset.
<add> *
<add> * @return void
<add> ... | 2 |
Python | Python | use setattr for adding fields to a new instance | 853c7a16c15c7291561bc4b3dfbcad88ea262a18 | <ide><path>rest_framework/serializers.py
<ide> def restore_object(self, attrs, instance=None):
<ide> if isinstance(self.fields.get(field_name, None), Serializer):
<ide> nested_forward_relations[field_name] = attrs[field_name]
<ide>
<del> # Update an existing instance...
<del> ... | 2 |
Python | Python | fix rackspace tests | 14b68f59e7c3180846e41fe726d43bdaffdb5327 | <ide><path>libcloud/test/compute/test_rackspace.py
<ide> class RackspaceNovaLonTests(BaseRackspaceNovaTestCase, OpenStack_1_1_Tests):
<ide> driver_args = RACKSPACE_NOVA_PARAMS
<ide> driver_kwargs = {'region': 'lon'}
<ide>
<del> conn_classes = RackspaceNovaLonMockHttp
<add> conn_class = RackspaceNovaLonMo... | 1 |
Go | Go | set default directory | c2d183426ba2fb4e850dc006d3ad3cc3bd86cc24 | <ide><path>daemon/oci_windows.go
<ide> func (daemon *Daemon) createSpec(c *container.Container) (*libcontainerd.Spec, e
<ide> s.Process.Args = escapeArgs(s.Process.Args)
<ide> }
<ide> s.Process.Cwd = c.Config.WorkingDir
<add> if len(s.Process.Cwd) == 0 {
<add> // We default to C:\ to workaround the oddity of the c... | 2 |
Javascript | Javascript | improve example description | c54f7a93e09d165d8e6742da7c8b7df2391f0c91 | <ide><path>src/ng/directive/ngRepeat.js
<ide> *
<ide> * @example
<ide> * This example uses `ngRepeat` to display a list of people. A filter is used to restrict the displayed
<del> * results by name. New (entering) and removed (leaving) items are animated.
<add> * results by name or by age. New (entering) and removed... | 1 |
Javascript | Javascript | fix abnormal close js exception | 9c75871a8152f03d73ec52fc49c3e65a91a78d1e | <ide><path>Libraries/Utilities/HMRClient.js
<ide> Error: ${e.message}`;
<ide> // https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.1
<ide> // https://www.rfc-editor.org/rfc/rfc6455.html#section-7.1.5
<ide> const isNormalOrUnsetCloseReason =
<add> closeEvent == null ||
<ide> closeE... | 1 |
Go | Go | use spf13/cobra for docker pause | 91731706c2c7d7efba78045ff8080f2b38d07c4f | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) Command(name string) func(...string) error {
<ide> "load": cli.CmdLoad,
<ide> "login": cli.CmdLogin,
<ide> "logout": cli.CmdLogout,
<del> "pause": cli.CmdPause,
<ide> "ps": cli.CmdPs,
<ide> "pull": cli.CmdPull,
<ide> "push": c... | 5 |
Javascript | Javascript | fix typo in text | 2fb9eeb7e10cfbea778b5e26a0871c6679b96bc5 | <ide><path>Libraries/Text/Text.js
<ide> const viewConfig = {
<ide> *
<ide> * In the following example, the nested title and body text will inherit the
<ide> * `fontFamily` from `styles.baseText`, but the title provides its own
<del> * additional styles. The title and body willstack on top of each other on
<add> * a... | 1 |
Text | Text | update portuguese sql inner join guide | 68bacae50287f4388bdcaabaf3c314b41b0cd681 | <ide><path>guide/portuguese/sql/sql-inner-join-keyword/index.md
<ide> Para este guia, discutiremos as junções SQL (INNER)
<ide>
<ide> ### Junte-se (mesmo que a junção interna)
<ide>
<del>A tabela do aluno estará na cláusula FROM, portanto, será uma tabela inicial ou LEFT.
<add>A tabela do aluno estará na cláusula FRO... | 1 |
Text | Text | fix added version of randomfill+randomfillsync | fa19ce92339edb0d741bfe1855ac39d4bc80e1d2 | <ide><path>doc/api/crypto.md
<ide> request.
<ide>
<ide> ### crypto.randomFillSync(buffer[, offset][, size])
<ide> <!-- YAML
<del>added: v7.10.0
<add>added:
<add> - v7.10.0
<add> - v6.13.0
<ide> changes:
<ide> - version: v9.0.0
<ide> pr-url: https://github.com/nodejs/node/pull/15231
<ide> console.log(Buffer.fro... | 1 |
PHP | PHP | add request tests | 82068c2bfef86119434208a01bcf1f4fc3b03e1b | <ide><path>tests/Http/HttpRequestTest.php
<ide> public function testCreateFromBase()
<ide>
<ide> $this->assertEquals($request->request->all(), $body);
<ide> }
<add>
<add> public function testHttpRequestFlashCallsSessionFlashInputWithInputData()
<add> {
<add> $session = m::mock('Illuminate\Sess... | 1 |
Javascript | Javascript | document the workspacecenter class | c34061a52e3752339adb5dc1473e6931fbf71895 | <ide><path>src/workspace-center.js
<ide> const TextEditor = require('./text-editor')
<ide> const PaneContainer = require('./pane-container')
<ide>
<add>// Essential: Represents the workspace at the center of the entire window.
<ide> module.exports = class WorkspaceCenter {
<ide> constructor (params) {
<ide> para... | 1 |
Text | Text | change titles on lines 51 and 77 | a8115b11817553db0938c97a3765f3971c8b3330 | <ide><path>guide/portuguese/html/tutorials/how-to-use-lists/index.md
<ide> Uma lista não ordenada é usada para agrupar um conjunto de itens relacionados,
<ide> * Bolo floresta negra
<ide> * Bolo de abacaxi
<ide>
<del>### Descrição Listas
<add>### Listas de descrição
<ide>
<ide> Uma lista de descrição é usada para... | 1 |
Ruby | Ruby | prefer normal method call over method_missing | aa756a4c4490b9260618b217eba6b7aa84629c67 | <ide><path>activesupport/lib/active_support/multibyte/chars.rb
<ide> def reverse
<ide> #
<ide> # 'こんにちは'.mb_chars.limit(7).to_s # => "こん"
<ide> def limit(limit)
<del> truncate_bytes(limit, omission: nil)
<add> chars(@wrapped_string.truncate_bytes(limit, omission: nil))
<ide> end
... | 1 |
Javascript | Javascript | add watch test case | 0d6b5db12e92464c3070ebe9b0205f8954e6d9c1 | <ide><path>test/watchCases/cache/loader-import-module/0/a.generate-json.js
<add>export const value = 42;
<add>export * from "./imported.js";
<add>export { default as nested } from "./b.generate-json.js";
<add>export const random = Math.random();
<ide><path>test/watchCases/cache/loader-import-module/0/b.generate-json.js... | 10 |
Javascript | Javascript | move debugenvironment helper to open source | 990dd869cf721ecc563544bcba062d37befe1b51 | <ide><path>Libraries/Utilities/DebugEnvironment.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> * @flow strict-local
<add> */... | 1 |
Javascript | Javascript | copy some sizzle combinators tests | 80ea65edf7466afc11823a914b175bd835d5b228 | <ide><path>test/unit/selector.js
<ide> test( "selectors with comma", function() {
<ide> equal( fixture.find( "h2 , div p" ).filter( "h2" ).length, 1, "has to find one <h2>" );
<ide> });
<ide>
<add>test("child and adjacent", function() {
<add> expect( 27 );
<add>
<add> var nothiddendiv;
<add>
<add> t( "Child", "p > a"... | 1 |
Text | Text | jump search code in java | 12ef1b792524f53ee1f45947e49b7bc46f954786 | <ide><path>guide/english/algorithms/search-algorithms/jump-search/index.md
<ide> O(√N)
<ide>
<ide> 
<ide>
<add># Code In Java.
<add>
<add>``` Java
<add>
<add>public int jumpSearch(int[] arr, int... | 1 |
Javascript | Javascript | fix flaky test-repl | ef6c4c694f901dbd47087bc2f7e3b72ed5d033a3 | <ide><path>test/parallel/test-repl.js
<ide> const prompt_npm = 'npm should be run outside of the ' +
<ide> 'node repl, in your normal shell.\n' +
<ide> '(Press Control-D to exit.)\n';
<ide> const expect_npm = prompt_npm + prompt_unix;
<del>var server_tcp, server_unix, client_tcp, c... | 1 |
Javascript | Javascript | avoid redundant else block | 50e48a8ad7d9a92b161446d21576f052f9c6f53b | <ide><path>test/MultiCompiler.test.js
<ide> describe("MultiCompiler", function () {
<ide> compiler.run(err => {
<ide> if (err) {
<ide> throw err;
<del> } else {
<del> expect(called).toBe(2);
<del> done();
<ide> }
<add> expect(called).toBe(2);
<add> done();
<ide> });
<ide> });
<ide>
<ide> des... | 1 |
Javascript | Javascript | update dllentryplugin to es2015 | 021d0cc53b42076cd5ea589c7fb40851c40423c9 | <ide><path>lib/DllEntryPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var DllEntryDependency = require("./dependencies/DllEntryDependency");
<del>var SingleEntryDependency = require("./dependencies/SingleEntryDependency");
<del>var DllMo... | 1 |
Go | Go | improve performance by using legacy mounts | 11e9167a6b45fdc134ee43e89abefd34a85cf624 | <ide><path>daemon/graphdriver/zfs/zfs.go
<ide> func (d *Driver) Status() [][2]string {
<ide> }
<ide> }
<ide>
<del>func cloneFilesystem(id, parent, mountpoint string) error {
<del> parentDataset, err := zfs.GetDataset(parent)
<del> if err != nil {
<del> return err
<del> }
<add>func cloneFilesystem(name, parentName st... | 1 |
Text | Text | add kvakil to triagers | 4c4963221083a35e65b40182a7797c5446c4857d | <ide><path>README.md
<ide> maintaining the Node.js project.
<ide> **Himadri Ganguly** <<himadri.tech@gmail.com>> (he/him)
<ide> * [iam-frankqiu](https://github.com/iam-frankqiu) -
<ide> **Frank Qiu** <<iam.frankqiu@gmail.com>> (he/him)
<add>* [kvakil](https://github.com/kvakil) -
<add> **Keyhan Vakil** <<kvakil@sy... | 1 |
Javascript | Javascript | add buffer() function | ac69703e278a5c1326f62bf02f61db19f847c391 | <ide><path>examples/jsm/nodes/ShaderNode.js
<ide> import AttributeNode from './core/AttributeNode.js';
<ide>
<ide> // input nodes
<ide> import BoolNode from './inputs/BoolNode.js';
<add>import BufferNode from './inputs/BufferNode.js';
<ide> import ColorNode from './inputs/ColorNode.js';
<ide> import FloatNode from './... | 1 |
Text | Text | remove erroneous line about static methods | 93a033a94fa4e0d65a2703f40ebc5ac1ff88f3a9 | <ide><path>docs/tips/16-references-to-components.md
<ide> var myComponent = React.renderComponent(<MyComponent />, myContainer);
<ide>
<ide> Keep in mind, however, that the "constructor" of a component doesn't return a component instance! It's just a **descriptor**: a lightweight representation that tells React what t... | 1 |
Python | Python | add support to detect wsl | 2340881dde775a43714c6bc15c4bd620bf8e1865 | <ide><path>glances/globals.py
<ide> import errno
<ide> import os
<ide> import sys
<add>import platform
<ide>
<ide> # OS constants (some libraries/features are OS-dependent)
<ide> BSD = sys.platform.find('bsd') != -1 | 1 |
Javascript | Javascript | fix default index for router#replacewith | b4189a5316b490e6523d0fa49a02f55bf9c91de0 | <ide><path>packages/ember-routing/lib/system/router.js
<ide> Ember.Router = Ember.Object.extend({
<ide> this.notifyPropertyChange('url');
<ide> },
<ide>
<del> transitionTo: function(passedName) {
<del> var args = [].slice.call(arguments), name;
<del>
<del> if (!this.router.hasRoute(passedName)) {
<del> ... | 1 |
Text | Text | add minimum node.js version to upgrading guide | dfb280b4a9591df345fe1927d3b6510ce5648d06 | <ide><path>docs/upgrading.md
<ide> description: Learn how to upgrade Next.js.
<ide>
<ide> ## Upgrading from 11 to 12
<ide>
<add>### Minimum Node.js version
<add>
<add>The minimum Node.js version has been bumped from 12.0.0 to 12.22.0 which is the first version of Node.js with native ES Modules support.
<add>
<ide> ##... | 1 |
Text | Text | add builtin module in building.md | f2e62b52385ff5e778d997ba86db70975e5670c7 | <ide><path>BUILDING.md
<ide> and [user guide](https://openssl.org/docs/fips/UserGuide-2.0.pdf).
<ide> `/usr/local/ssl/fips-2.0`
<ide> 8. Build Node.js with `make -j`
<ide> 9. Verify with `node -p "process.versions.openssl"` (for example `1.0.2a-fips`)
<add>
<add>## Building Node.js with external core modules
<add>
<... | 1 |
Python | Python | improve v3 pretrain command | 54c40223a1fac01ae1a8afd39eab90b866af2964 | <ide><path>spacy/cli/pretrain.py
<del>from typing import Optional, Dict, Any
<del>import random
<add>from typing import Optional
<ide> import numpy
<ide> import time
<ide> import re
<ide> from collections import Counter
<ide> from pathlib import Path
<add>from thinc.api import Config
<ide> from thinc.api import use_pyt... | 4 |
Python | Python | use a condition variable instead of sleeping | 75f2af7a6afdf620d7afdccee876b06f8c39373b | <ide><path>flask/testsuite/basic.py
<ide> import pickle
<ide> import unittest
<ide> from datetime import datetime
<del>from threading import Thread
<del>from time import sleep
<add>from threading import Thread, Condition
<ide> from flask.testsuite import FlaskTestCase, emits_module_deprecation_warning
<ide> from flask.... | 1 |
Javascript | Javascript | update webgl state | b0403abc33cf3cd24572545c0e0d9991eb751c0b | <ide><path>src/materials/Material.js
<ide> function Material() {
<ide> this.stencilFail = KeepStencilOp;
<ide> this.stencilZFail = KeepStencilOp;
<ide> this.stencilZPass = KeepStencilOp;
<del> this.stencilWrite = true;
<add> this.stencilWrite = false;
<ide>
<ide> this.clippingPlanes = null;
<ide> this.clipInterse... | 2 |
Javascript | Javascript | remove array.from(s) and add consts | 43a07bb8b87a11c4194c71da9b9114b9c5727e5f | <ide><path>src/config.js
<ide> class Config {
<ide> this.scopedSettingsStore.removePropertiesForSourceAndSelector(source, scopeSelector)
<ide> setValueAtKeyPath(settings, keyPath, undefined)
<ide> settings = withoutEmptyObjects(settings)
<del> if (settings != null) { this.set(null... | 1 |
Python | Python | remove duplicate code | c95f5d10c222c0e596135f6d32ee70f18f2958c6 | <ide><path>keras/models.py
<ide> def compile(self, optimizer, loss,
<ide> self.optimizer = optimizers.get(optimizer)
<ide>
<ide> self.loss = objectives.get(loss)
<del> weighted_loss = weighted_objective(objectives.get(loss))
<add> weighted_loss = weighted_objective(self.loss)
<ide>
<ide>... | 1 |
Ruby | Ruby | use == 0 instead of .zero? in #try | a94c2e1f23c4216a5b854c13f439882311fda461 | <ide><path>activesupport/lib/active_support/core_ext/object/try.rb
<ide> def try(*a, &b)
<ide>
<ide> def try!(*a, &b)
<ide> if a.empty? && block_given?
<del> if b.arity.zero?
<add> if b.arity == 0
<ide> instance_eval(&b)
<ide> else
<ide> yield self | 1 |
PHP | PHP | fix failing tests hopefully | 8bfb8e44053960b40e8d6a890a4942c0bd8a51c3 | <ide><path>src/Database/Connection.php
<ide> public function disableConstraints(callable $callback)
<ide>
<ide> try {
<ide> $result = $callback($this);
<del> } catch (Exception $e) {
<add> } finally {
<ide> $this->enableForeignKeys();
<del> ... | 4 |
PHP | PHP | correct typos in behavior.php | 74fc26157ef2427b3655553425beee32fd04af87 | <ide><path>src/ORM/Behavior.php
<ide> class Behavior implements EventListener {
<ide> /**
<ide> * Constructor
<ide> *
<del> * Merge config with the default and store in the config property
<add> * Merges config with the default and store in the config property
<ide> *
<ide> * Does not retain a reference to the Tabl... | 1 |
Ruby | Ruby | use system tmpdir rather than our own | 7896f35be37ab5ee8961a384f503137cfb154df0 | <ide><path>railties/lib/rails/generators/test_case.rb
<ide> class TestCase < ActiveSupport::TestCase
<ide> self.current_path = File.expand_path(Dir.pwd)
<ide> self.default_arguments = []
<ide>
<del> setup :destination_root_is_set?, :ensure_current_path
<del> teardown :ensure_current_path
<add> ... | 3 |
PHP | PHP | add missing tests for files and dir | 432c93783b1f137b2ab30d0a12e9b37d696c9ab4 | <ide><path>tests/Filesystem/FilesystemTest.php
<ide> public function testCopyDirectoryMovesEntireDirectory()
<ide> rmdir(__DIR__.'/tmp2');
<ide> }
<ide>
<add>
<add> public function testGetFiles()
<add> {
<add> mkdir(__DIR__.'/tmp', 0777, true);
<add> file_put_contents(__DIR__.'/tmp/foo.txt', '');
<add> file_put_... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.