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 |
|---|---|---|---|---|---|
Javascript | Javascript | remove spaces from array brackets | eba5d1365c106261a85c806bd8a93b22bd8dafac | <ide><path>src/classic/element/__tests__/ReactElementValidator-test.js
<ide> describe('ReactElementValidator', function() {
<ide> spyOn(console, 'warn');
<ide> var Component = React.createFactory(ComponentClass);
<ide>
<del> Component(null, [ Component(), Component() ]);
<add> Component(null, [Component(... | 6 |
Go | Go | pass taroptions via cli arg | 9c01bc249dc628280f3fc019d5f0e0ace71be248 | <ide><path>builder/internals.go
<ide> func (b *Builder) readContext(context io.Reader) error {
<ide> return err
<ide> }
<ide>
<del> os.MkdirAll(tmpdirPath, 0700)
<ide> if err := chrootarchive.Untar(b.context, tmpdirPath, nil); err != nil {
<ide> return err
<ide> }
<ide><path>graph/load.go
<ide> import (
<ide> ... | 5 |
Javascript | Javascript | fix varynode build in vertex shader | ad7d8036ceb251c574f48becafe2cc0826f26b62 | <ide><path>examples/jsm/renderers/nodes/core/NodeVary.js
<ide> class NodeVary {
<ide>
<del> constructor( name, type, value ) {
<add> constructor( name, type, snippet = '' ) {
<ide>
<ide> this.name = name;
<ide> this.type = type;
<del> this.value = value;
<add> this.snippet = snippet;
<ide>
<ide> Object.defin... | 4 |
Java | Java | fix failing tests | 02949fc4a7248c0e329f688c3ae2a1a8eb048e6e | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/handler/AnnotationMethodMessageHandler.java
<ide> import org.springframework.stereotype.Controller;
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.util.ClassUtils;
<add>import org.springframework.util.Collection... | 3 |
Text | Text | remove unnecessary partial sentence | a417e78b8098e9c842039652ee2c0666381eb4f5 | <ide><path>docs/00-Getting-Started.md
<ide> img.onload = function() {
<ide> }
<ide>
<ide> ```
<del>
<del>It is common to spec
<ide>\ No newline at end of file | 1 |
Javascript | Javascript | remove fix for | f66c33d751879d139465417291f8da2ff266631a | <ide><path>src/manipulation.js
<ide> jQuery.extend({
<ide> srcElements = getAll( elem );
<ide>
<ide> for ( i = 0; ( node = srcElements[ i ] ) != null; ++i ) {
<del> // Ensure that the destination node is not null; Fixes #9587
<del> if ( destElements[ i ] ) {
<del> fixCloneNodeIssues( node, destElements... | 1 |
Text | Text | update rntester documentation for mac m1 | 4ec2d6cf0ba367f2ef5ae2e2250ac12fe1202ffe | <ide><path>packages/rn-tester/README.md
<ide> rm Podfile.lock
<ide> If you are still having a problem after doing the clean up (which can happen if you have built RNTester with older React Native versions where files were generated inside the react-native folder.), the best way might be to clean-install react-native (e... | 1 |
Ruby | Ruby | use regexp#match? rather than regexp#=== | 48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def update_table_definition(table_name, base) #:nodoc:
<ide> end
<ide>
<ide> def add_index_options(table_name, column_name, comment: nil, **options) # :nodoc:
<del> if column_name.is_a?(String) && /\W/ ... | 10 |
Javascript | Javascript | use arrayqueue for flagdependencyusageplugin | b6ce40adedbd6763ab923e6196a4b643997eb512 | <ide><path>lib/FlagDependencyUsagePlugin.js
<ide> const Dependency = require("./Dependency");
<ide> const { UsageState } = require("./ExportsInfo");
<ide> const ModuleGraphConnection = require("./ModuleGraphConnection");
<ide> const { STAGE_DEFAULT } = require("./OptimizationStages");
<add>const ArrayQueue = require(".... | 1 |
Text | Text | add changelog entry for [ci skip] | a9ebfc0f6a1b7a54a425887b9d1a37b08633666b | <ide><path>activerecord/CHANGELOG.md
<add>* Restrict deletion of record when using `delete_all` with `uniq`, `group`, `having`
<add> or `offset`.
<add>
<add> I these cases the generated query ignores them and that causes unintended
<add> records to be deleted.
<add>
<add> *Leandro Facchinetti*
<add>
<ide>... | 1 |
Text | Text | update copyright year in license and readme | 608dc83ecdec5df674cc29c0d4fcf5f983a4cc91 | <ide><path>LICENSE.md
<ide> BSD 3-Clause License
<ide>
<del>Copyright (c) 2021, freeCodeCamp.
<add>Copyright (c) 2022, freeCodeCamp.
<ide> All rights reserved.
<ide>
<ide> Redistribution and use in source and binary forms, with or without
<ide><path>README.md
<ide> The general platform status for all our applications... | 2 |
Text | Text | return response in code example | a590c4e7f3f515f15a577b4f2c5f57f09eddc3c0 | <ide><path>errors/middleware-upgrade-guide.md
<ide> export function middleware() {
<ide>
<ide> // clear all cookies means mark all of them as expired
<ide> response.cookies.clear()
<add>
<add> return response
<ide> }
<ide> ```
<ide> | 1 |
Text | Text | fix typo in console.md | 6a7f874825a153634d5a70009cab810d6a95b6ae | <ide><path>doc/api/console.md
<ide> added: v0.1.104
<ide> changes:
<ide> - version: v13.0.0
<ide> pr-url: https://github.com/nodejs/node/pull/29251
<del> description: The elapsed time is diplayed with a suitable time unit.
<add> description: The elapsed time is displayed with a suitable time unit.
<ide> -... | 1 |
Javascript | Javascript | fix error on worker disconnect/destroy | 73324cf76a1898d45d887a44145e7ab12236c076 | <ide><path>lib/internal/cluster/child.js
<ide> function _disconnect(masterInitiated) {
<ide>
<ide> // Extend generic Worker with methods specific to worker processes.
<ide> Worker.prototype.disconnect = function() {
<del> _disconnect.call(this);
<add> if (![ 'disconnecting', 'destroying' ].includes(this.state)) {
<a... | 2 |
Text | Text | move thefourtheye to emeritus | 1ed90e2c0c14a42dc5a269f9f6c706b5456a3701 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Stewart X Addison** <sxa@uk.ibm.com>
<ide> * [targos](https://github.com/targos) -
<ide> **Michaël Zasso** <targos@protonmail.com> (he/him)
<del>* [thefourtheye](https://github.com/thefourtheye) -
<del>**Sakt... | 1 |
PHP | PHP | add returntypewillchange to splfileinfo usage | a31b48afc92668ac02c29ed322734bf25e49f9d3 | <ide><path>src/Illuminate/Http/Testing/File.php
<ide> public function size($kilobytes)
<ide> *
<ide> * @return int
<ide> */
<add> #[\ReturnTypeWillChange]
<ide> public function getSize()
<ide> {
<ide> return $this->sizeToReport ?: parent::getSize(); | 1 |
Javascript | Javascript | use anchor tag for parsing urls | b091fdbafac33123cba329e6bb48b9281323ca38 | <ide><path>src/ajax.js
<ide> var
<ide> rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
<ide> rnoContent = /^(?:GET|HEAD)$/,
<ide> rprotocol = /^\/\//,
<del> rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
<ide>
<ide> /* Prefilters
<ide> * 1) They are useful to in... | 2 |
Ruby | Ruby | add yield to with_delivery_job test helper | ebf484a64018cbf84e6d6c39f4a22f2f2bfc9d51 | <ide><path>actionmailer/test/parameterized_test.rb
<ide> class DummyDeliveryJob < ActionMailer::DeliveryJob
<ide> def with_delivery_job(job)
<ide> old_delivery_job = ParamsMailer.delivery_job
<ide> ParamsMailer.delivery_job = job
<add> yield
<ide> ensure
<ide> ParamsMailer.delivery_job = ... | 1 |
Javascript | Javascript | add repairshopr to showcase | c0654cfc9662e3199c301d3125e06a35061a167d | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/reactto36/id989009293?mt=8',
<ide> author: 'Jonathan Solichin',
<ide> },
<add> {
<add> name: 'RepairShopr',
<add> icon: 'http://a3.mzstatic.com/us/r30/Purple69/v4/fa/96/ee/fa96ee57-c5f0-0c6f-... | 1 |
Javascript | Javascript | remove recursion from unmounting portals (#1) | 024e2a02591578dcf91ac68920b1ea0ff82f3949 | <ide><path>src/renderers/shared/fiber/ReactFiberCommitWork.js
<ide> module.exports = function<T, P, I, TI, C>(
<ide> // node from the tree.
<ide> removeChild(parent, node.stateNode);
<ide> } else if (node.tag === Portal) {
<del> // If this is a portal, then the parent is actually the portal... | 1 |
Text | Text | add .atom/bundles directory | d9f130352328fd003c36f831f190a2b805a31a09 | <ide><path>.atom/bundles/Readme.md
<add>Put TextMate bundles in this directory | 1 |
Javascript | Javascript | add failing test for appendto while rendering | 4e0a23ab93815b704ac762c793aa324039dfe2b6 | <ide><path>packages/ember-glimmer/tests/integration/components/append-test.js
<ide> moduleFor('appendTo: an element', class extends AbstractAppendTest {
<ide>
<ide> });
<ide>
<add>moduleFor('appendTo: with multiple components', class extends AbstractAppendTest {
<add>
<add> append(component) {
<add> this.runTask(... | 1 |
Python | Python | run classifier processor for sst-2 | 0f96d4b1f76a7e2278a8964aceae6b89da8623de | <ide><path>examples/run_classifier.py
<ide> def _create_examples(self, lines, set_type):
<ide> return examples
<ide>
<ide>
<add>class Sst2Processor(DataProcessor):
<add> """Processor for the SST-2 data set (GLUE version)."""
<add>
<add> def get_train_examples(self, data_dir):
<add> """See base cl... | 1 |
PHP | PHP | remove helpers that depend on illuminate/html | e1426baacf0c344f2ed241f0a30d49a09cc0abe8 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function info($message, $context = array())
<ide> }
<ide> }
<ide>
<del>if ( ! function_exists('link_to'))
<del>{
<del> /**
<del> * Generate a HTML link.
<del> *
<del> * @param string $url
<del> * @param string $title
<del> * @param array $attributes
<... | 1 |
Python | Python | fix conftest for website tests | be48a7b4f3d79b02e466ef34c0ccd287fec7ccb0 | <ide><path>spacy/tests/website/conftest.py
<ide> def nlp():
<ide> if os.environ.get('SPACY_DATA'):
<ide> data_dir = os.environ.get('SPACY_DATA')
<ide> else:
<del> data_dir = None
<add> data_dir = True
<ide> return English(path=data_dir)
<ide>
<ide> | 1 |
Javascript | Javascript | add messageport benchmark | ab9e89439e8f8699efe6c7786d5a3ba9be2a16a6 | <ide><path>benchmark/worker/messageport.js
<add>'use strict';
<add>
<add>const common = require('../common.js');
<add>const { MessageChannel } = require('worker_threads');
<add>const bench = common.createBenchmark(main, {
<add> payload: ['string', 'object'],
<add> n: [1e6]
<add>});
<add>
<add>function main(conf) {
<a... | 1 |
Mixed | Javascript | fix rntester typos | c2b699abc565c43e5289341a8b7f2694fe1229f0 | <ide><path>packages/rn-tester/js/examples/Alert/AlertExample.js
<ide> export default ({
<ide> category: 'UI',
<ide> documentationURL: 'https://reactnative.dev/docs/alert',
<ide> description:
<del> 'Alerts display a concise and informative messageand prompt the user to make a decision.',
<add> 'Alerts displa... | 14 |
Python | Python | add test of polyder return type | dd9d99c7fec0f7eedc1ad6ba4e557810f7a8954b | <ide><path>numpy/lib/tests/test_regression.py
<ide> def test_include_dirs(self):
<ide> assert isinstance(path, (str, unicode))
<ide> assert path != ''
<ide>
<add> def test_polyder_return_type(self):
<add> """Ticket #1249"""
<add> assert_(isinstance(np.polyder(np.poly1d([1]), 0)... | 1 |
Javascript | Javascript | improve setup script | 7e02eea553212740c141bd57e5c0ec7e6715777d | <ide><path>setup/setup.js
<ide> const fs = require("fs");
<ide> const path = require("path");
<ide> const root = process.cwd();
<ide> const node_modulesFolder = path.resolve(root, "node_modules");
<add>const huskyFolder = path.resolve(root, ".husky", "_");
<ide> const webpackDependencyFolder = path.resolve(root, "node_... | 1 |
Python | Python | use the same json loading as everywhere else | 6eb6657ce4c356d7c00f601ef2a061c2395ce95a | <ide><path>libcloud/drivers/gogrid.py
<ide> import time
<ide> import urllib
<ide> import md5, hashlib
<del>try:
<del> import simplejson as json
<del>except:
<del> import json
<add>
<add># JSON is included in the standard library starting with Python 2.6. For 2.5
<add># and 2.4, there's a simplejson egg at: http:... | 1 |
Text | Text | fix broken link to upgrading ruby on rails guide | 746ab3c45625f70524a772b41812599f6ea98f4d | <ide><path>guides/source/4_2_release_notes.md
<ide> coverage before going in. You should also first upgrade to Rails 4.1 in case you
<ide> haven't and make sure your application still runs as expected before attempting
<ide> an update to Rails 4.2. A list of things to watch out for when upgrading is
<ide> available in ... | 1 |
PHP | PHP | refactor the database connector | 3d30f9f8552c4c2110d5db48a2d0239a817ab023 | <ide><path>system/db/connection.php
<ide> public function query($sql, $bindings = array())
<ide> {
<ide> return $query->rowCount();
<ide> }
<del> else
<del> {
<del> return $result;
<del> }
<add>
<add> return $result;
<ide> }
<ide>
<ide> /** | 1 |
PHP | PHP | remove unnecessary strict type check | 4afcf7cea8d66b6e96e7dd8b352783cf9f2b42b2 | <ide><path>src/Command/RoutesCommand.php
<ide> public function execute(Arguments $args, ConsoleIo $io): ?int
<ide> $output[] = $item;
<ide> }
<ide>
<del> if ($args->getOption('sort') === true) {
<add> if ($args->getOption('sort')) {
<ide> usort($output, function ($a, $b) {... | 1 |
Javascript | Javascript | remove webpack replacer for debug module | 86380c59ddaca18c0d8336fa4c275329926e3120 | <ide><path>webpack.config.js
<ide> module.exports = {
<ide> },
<ide> __DEVTOOLS__: !__DEV__
<ide> }),
<del> // Use browser version of visionmedia-debug
<del> new webpack.NormalModuleReplacementPlugin(
<del> /debug\/node/,
<del> 'debug'
<del> ),
<ide> new webpack.optimize.DedupePlu... | 1 |
Javascript | Javascript | escape unsafe characters in request path | 38149bb048d9833cc3cf9a13cbff5300fbed36ef | <ide><path>lib/http.js
<ide> ClientRequest.prototype.clearTimeout = function(cb) {
<ide> exports.request = function(options, cb) {
<ide> if (typeof options === 'string') {
<ide> options = url.parse(options);
<add> } else if (options && options.path) {
<add> options = util._extend({}, options);
<add> option... | 2 |
Python | Python | fix matcher import | 686735b94e0a79c4111e5783ec108bd1bdc71238 | <ide><path>spacy/tests/regression/test_issue1855.py
<ide> from __future__ import unicode_literals
<ide> import re
<ide>
<del>from ..matcher import Matcher
<add>from ...matcher import Matcher
<ide>
<ide> import pytest
<ide> | 1 |
Javascript | Javascript | remove unneeded array | dabbfa7c4e8f38b9cea8f4e964a47d03b4719a08 | <ide><path>lib/optimize/ModuleConcatenationPlugin.js
<ide> class ModuleConcatenationPlugin {
<ide> }
<ide>
<ide> getImports(module) {
<del> return Array.from(
<del> new Set(
<del> module.dependencies
<del>
<del> // Only harmony Dependencies
<del> .filter(dep => dep instanceof HarmonyImportDependency)
<... | 1 |
Go | Go | add output to example | 3d73d32499cb13c08db45354cbe1a6bc97541c5b | <ide><path>api/types/filters/example_test.go
<ide> package filters // import "github.com/docker/docker/api/types/filters"
<add>import "fmt"
<ide>
<ide> func ExampleArgs_MatchKVList() {
<ide> args := NewArgs(
<ide> Arg("label", "image=foo"),
<ide> Arg("label", "state=running"))
<ide>
<ide> // returns true becaus... | 1 |
Ruby | Ruby | require json lib when serialization is loaded | fffb1da3f22852c722dbc4436ec7c924435d29a5 | <ide><path>activerecord/lib/active_record/serialization.rb
<add>require 'active_support/json'
<add>
<ide> module ActiveRecord #:nodoc:
<ide> module Serialization
<ide> class Serializer #:nodoc:
<ide><path>activesupport/lib/active_support.rb
<ide>
<ide> module ActiveSupport
<ide> def self.load_all!
<del> [De... | 2 |
Text | Text | add kernelmemory to api changelog | f988a9ce5e5926b211c7e762b67cff8e9dbac380 | <ide><path>docs/reference/api/docker_remote_api.md
<ide> This section lists each version from latest to oldest. Each listing includes a
<ide> * `GET /info` now lists engine version information and return the information of `CPUShares` and `Cpuset`.
<ide> * `GET /containers/json` will return `ImageID` of the image used... | 1 |
Javascript | Javascript | use mustcall() for simple flow tracking | 04b4d15b396a7befea31dbfec89f69ff71dc71ca | <ide><path>test/addons/async-hello-world/test.js
<ide> 'use strict';
<del>require('../../common');
<add>const common = require('../../common');
<ide> var assert = require('assert');
<ide> var binding = require('./build/Release/binding');
<del>var called = false;
<ide>
<del>process.on('exit', function() {
<del> assert... | 213 |
Go | Go | remove engine.table from more daemon side stuff | 650bc2ffe545f874adeb3c1d6f54e9158a7d647e | <ide><path>api/server/server_unit_test.go
<ide> import (
<ide> "testing"
<ide>
<ide> "github.com/docker/docker/api"
<add> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/engine"
<ide> "github.com/docker/docker/pkg/version"
<ide> )
<ide> func TestGetImagesJSON(t *testing.T) {
<ide> eng.Registe... | 4 |
Python | Python | fix rare failures in chord error test | 8304c0fca3c3ee3cfb295d6655eca8ad00fb28f6 | <ide><path>t/integration/test_canvas.py
<ide> def assert_parentids_chord(self, res, expected_root_id):
<ide> def test_chord_on_error(self, manager):
<ide> from celery import states
<ide> from .tasks import ExpectedException
<del> import time
<ide>
<ide> if not manager.app.conf.result... | 1 |
Javascript | Javascript | handle modifications to fs.open | c75f71dd721d04e03204ffcc290bb3a370275cce | <ide><path>lib/fs.js
<ide> var WriteStream = fs.WriteStream = function(path, options) {
<ide> this._queue = [];
<ide>
<ide> if (this.fd === null) {
<del> this._queue.push([fs.open, this.path, this.flags, this.mode, undefined]);
<add> this._open = fs.open;
<add> this._queue.push([this._open, this.path, thi... | 2 |
Text | Text | add thefourtheye as a collaborator | c019d9a2391be5d7257029ec01794f0bdf5753d6 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Domenic Denicola** <d@domenic.me> ([@domenic](https://github.com/domenic))
<ide> * **Rich Trott** <rtrott@gmail.com> ([@Trott](https://github.com/Trott))
<ide> * **Сковорода Никита Андреевич** <chalkerx@gmail.... | 1 |
Javascript | Javascript | throw typeerror if kill pid not a number | 832ec1cd507ed344badd2ed97d3da92975650a95 | <ide><path>src/node.js
<ide> process.kill = function(pid, sig) {
<ide> var err;
<ide>
<add> if (typeof pid !== 'number' || !isFinite(pid)) {
<add> throw new TypeError('pid must be a number');
<add> }
<add>
<ide> // preserve null signal
<ide> if (0 === sig) {
<ide> err = p... | 2 |
Javascript | Javascript | improve validation performance | a54972c195f708afbd985d981b804834817da92b | <ide><path>lib/_http_common.js
<ide> exports.httpSocketSetup = httpSocketSetup;
<ide> * so take care when making changes to the implementation so that the source
<ide> * code size does not exceed v8's default max_inlined_source_size setting.
<ide> **/
<del>function isValidTokenChar(ch) {
<del> if (ch >= 94 && ch <=... | 1 |
Javascript | Javascript | add support for events | 08d09ecbaa07564bf3cf6a62e0be4c41b355d23b | <ide><path>docs/spec/ngdocSpec.js
<ide> describe('ngdoc', function(){
<ide> var methodB = new Doc({name: 'methodB', methodOf: 'angular.service.abc'});
<ide> var propA = new Doc({name: 'propA', propertyOf: 'angular.service.abc'});
<ide> var propB = new Doc({name: 'propB', propertyOf: 'angular.service.a... | 2 |
Javascript | Javascript | expand error message | b07aa9264e6fc7ad0fb4c4b5e15e6e5f9a604706 | <ide><path>test/parallel/test-cluster-worker-isdead.js
<ide> const assert = require('assert');
<ide>
<ide> if (cluster.isMaster) {
<ide> const worker = cluster.fork();
<del> assert.ok(
<del> !worker.isDead(),
<del> 'isDead() should return false right after the worker has been created.');
<add> let workerDead... | 1 |
PHP | PHP | compile more files | b6d1e7ecb0ad5375a7d8b0e99ce4ead16af8afc6 | <ide><path>src/Illuminate/Foundation/Console/Optimize/config.php
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Contracts/Cookie/QueueingFactory.php',
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Contracts/Encryption/Encrypter.php',
<ide> $basePath.'/vendor/laravel/framework/src/Illu... | 1 |
Javascript | Javascript | convert `namespacesassert` to es6 class | 2f57dafa4934fd9097b262f7f986de84584deac3 | <ide><path>packages/internal-test-helpers/lib/ember-dev/namespaces.js
<ide> import { run } from '@ember/runloop';
<ide> import { NAMESPACES, NAMESPACES_BY_ID } from '@ember/-internals/metal';
<ide>
<del>function NamespacesAssert(env) {
<del> this.env = env;
<del>}
<add>export default class NamespacesAssert {
<add> c... | 1 |
Go | Go | add image graph output (dot/graphviz) | f4de9d919d7ad6cf677c8157eabf82cf65aa4396 | <ide><path>commands.go
<ide> func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...stri
<ide> //limit := cmd.Int("l", 0, "Only show the N most recent versions of each image")
<ide> quiet := cmd.Bool("q", false, "only show numeric IDs")
<ide> flAll := cmd.Bool("a", false, "show all images")
<add... | 1 |
Java | Java | relax servletcontext check for resource handling | 436486b8a1cab5a37a415c7560ee6dea8014bf9b | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
<ide> import java.util.HashMap;
<ide> import java.util.List;
<ide> import java.util.Map;
<del>import javax.servlet.ServletContext;
<ide> import javax.servlet.ServletException;
<ide> import javax.servlet.Servl... | 3 |
Ruby | Ruby | fix a couple of formatting issues [ci skip] | f1cc45e56a4fc6e80bb4be4434dbf49d41adfd83 | <ide><path>actionpack/lib/action_view/helpers/text_helper.rb
<ide> def truncate(text, options = {})
<ide>
<ide> # Highlights one or more +phrases+ everywhere in +text+ by inserting it into
<ide> # a <tt>:highlighter</tt> string. The highlighter can be specialized by passing <tt>:highlighter</tt>
<del> ... | 1 |
PHP | PHP | apply fixes from styleci | 4f5c5cc1ef773d8bac72fc9bd2ae178ce3991f9f | <ide><path>src/Illuminate/Foundation/Console/ComponentMakeCommand.php
<ide> public function handle()
<ide>
<ide> return;
<ide> }
<del>
<add>
<ide> if (parent::handle() === false && ! $this->option('force')) {
<ide> return false;
<ide> }
<ide> public function hand... | 1 |
Javascript | Javascript | add support for chrome 75 | 0f1732bdcc5bc72b808eb9cbeab3305819ab5a56 | <ide><path>examples/js/vr/HelioWebXRPolyfill.js
<ide>
<ide> if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
<ide>
<del> console.log( "Helio WebXR Polyfill (Lumin 0.96.0)" );
<add> console.log( "Helio WebXR Polyfill (Lumin 0.97.0)" );
<add> const isHelio96 = navigator.userAgent.includes("Chrome/73... | 1 |
PHP | PHP | list as json | 2d14798f6115d5a4f7ee50359c43e4b8c6180d0f | <ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php
<ide> protected function pluckColumns(array $routes)
<ide> */
<ide> protected function displayRoutes(array $routes)
<ide> {
<add> if ($this->option('json')) {
<add> $this->line(json_encode(array_values($routes)));
<add>
<ad... | 1 |
Javascript | Javascript | use custom elements on text editor element spec | fc5286fdcac757b9c6a20014039898bcfc94bd91 | <ide><path>spec/text-editor-element-spec.js
<ide> describe('TextEditorElement', () => {
<ide> });
<ide>
<ide> describe('when focused while a parent node is being attached to the DOM', () => {
<del> class ElementThatFocusesChild extends HTMLDivElement {
<del> attachedCallback() {
<add> class El... | 1 |
Python | Python | remove a duplicate test. closes gh-8447 | bed40e207a26064bf83568efaeeec8079a99dc74 | <ide><path>numpy/random/tests/test_random.py
<ide> def test_logistic(self):
<ide> [-0.21682183359214885, 2.63373365386060332]])
<ide> assert_array_almost_equal(actual, desired, decimal=15)
<ide>
<del> def test_laplace_0(self):
<del> assert_(np.random.laplace(scale=0) in [0... | 1 |
PHP | PHP | remove html from default formatting in messagebag | 77024b6d23eceb58f47e9a2039ed33de516224f5 | <ide><path>src/Illuminate/Support/MessageBag.php
<ide> class MessageBag implements ArrayableInterface, Countable, JsonableInterface, Me
<ide> *
<ide> * @var string
<ide> */
<del> protected $format = '<span class="help-inline">:message</span>';
<add> protected $format = ':message';
<ide>
<ide> /**
<ide> * Crea... | 1 |
Text | Text | add the missing module name | 1ca1583513372422bd301fc0fef7bbb5a760fd87 | <ide><path>docs/api-guide/serializers.md
<ide> A mapping of Django model fields to REST framework serializer fields. You can ov
<ide>
<ide> This property should be the serializer field class, that is used for relational fields by default.
<ide>
<del>For `ModelSerializer` this defaults to `PrimaryKeyRelatedField`.
<ad... | 1 |
Python | Python | fix broken tests after url restructure pr | f91f1ca9773fce258f02a6bc3c11d16ac029467b | <ide><path>airflow/utils/helpers.py
<ide> Tuple,
<ide> TypeVar,
<ide> )
<del>from urllib import parse
<ide>
<ide> from airflow.configuration import conf
<ide> from airflow.exceptions import AirflowException
<ide> def build_airflow_url_with_query(query: Dict[str, Any]) -> str:
<ide> import flask
<ide>
<ide... | 2 |
Go | Go | add journald tag as syslog_identifier | ae557f9d85f41e009229d1a33844f06f7ad1fb99 | <ide><path>daemon/logger/journald/journald.go
<ide> func New(info logger.Info) (logger.Logger, error) {
<ide> "CONTAINER_ID_FULL": info.ContainerID,
<ide> "CONTAINER_NAME": info.Name(),
<ide> "CONTAINER_TAG": tag,
<add> "SYSLOG_IDENTIFIER": tag,
<ide> }
<ide> extraAttrs, err := info.ExtraAttributes(sani... | 1 |
PHP | PHP | fix regression in save(touch) option | 6c3ecdc5cf02c19ae28218201152ef34cd1ff9b5 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function save(array $options = [])
<ide> // clause to only update this model. Otherwise, we'll just insert them.
<ide> if ($this->exists) {
<ide> $saved = $this->isDirty() ?
<del> $this->performUpdate($... | 2 |
Javascript | Javascript | update morphanimmesh to work with the new mixer | 4985ed03dbfa59fb722af18fa66f4c347d034ae9 | <ide><path>examples/js/MD2Character.js
<ide> THREE.MD2Character = function () {
<ide> scope.root.add( mesh );
<ide>
<ide> scope.meshBody = mesh;
<del> scope.activeAnimationClipName = geo.firstAnimationClip.name;
<add> scope.activeAnimationClipName = mesh.firstAnimationClip.name;
<ide>
<ide> checkLoadingC... | 3 |
PHP | PHP | previous() | e38cf45df8ec077134de79987c2b9d566fceb257 | <ide><path>tests/Routing/RoutingUrlGeneratorTest.php
<ide> public function testForceRootUrl()
<ide> $this->assertEquals('https://www.bar.com/foo', $url->route('plain'));
<ide> }
<ide>
<add>
<add> public function testPrevious()
<add> {
<add> $url = new UrlGenerator(
<add> $routes = new Illuminate\Routing\RouteCol... | 1 |
PHP | PHP | apply suggestions from @staudenmeir | c1984c9715e980e7f545fe70db0f997c87a70bd7 | <ide><path>src/Illuminate/Http/Resources/ConditionallyLoadsAttributes.php
<ide> protected function removeMissingValues($data)
<ide> $value->resource instanceof PotentiallyMissing &&
<ide> $value->isMissing())) {
<ide> unset($data[$key]);
<add> } else {
<add> ... | 2 |
Javascript | Javascript | add tests for codegennativecomponent | 2e8ecab583a3c66491cbc31202a0f1b6e23c912e | <ide><path>Libraries/Utilities/__tests__/codegenNativeComponent-test.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> * @email... | 1 |
Python | Python | remove mutable arguments in assert_routes_to_queue | d537be48e41cec1336e8e35f6db271b5f635adb7 | <ide><path>t/unit/app/test_routes.py
<ide> def mytask(*args, **kwargs):
<ide> self.mytask = mytask
<ide>
<ide> def assert_routes_to_queue(self, queue, router, name,
<del> args=[], kwargs={}, options={}):
<add> args=None, kwargs=None, options=None)... | 1 |
Javascript | Javascript | remove common.port in test tls ticket cluster | dac9f42a7e1fbe7128e3c39d565b0ac1040231ec | <ide><path>test/parallel/test-tls-ticket-cluster.js
<ide> if (cluster.isMaster) {
<ide> let reqCount = 0;
<ide> let lastSession = null;
<ide> let shootOnce = false;
<add> let workerPort = null;
<ide>
<ide> function shoot() {
<del> console.error('[master] connecting');
<del> const c = tls.connect(common.... | 1 |
Text | Text | add release key for danielle adams | 6b6bbfe7d043e9170895c8dfdb61fec28b2a368c | <ide><path>README.md
<ide> Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys):
<ide> `4ED778F539E3634C779C87C6D7062848A1AB005C`
<ide> * **Colin Ihrig** <cjihrig@gmail.com>
<ide> `94AE36675C464D64BAFA68DD7434390BDBE9B9C5`
<add>* **Danielle Adams** <adamzdanielle@gmail.com>
<add>`1C0508... | 1 |
Javascript | Javascript | use specific method names in error messages | ebe51284896981142af5b8b1509df17419f2b644 | <ide><path>src/isomorphic/classic/class/ReactClass.js
<ide> var ReactClassMixin = {
<ide> replaceState: function(newState, callback) {
<ide> this.updater.enqueueReplaceState(this, newState);
<ide> if (callback) {
<del> this.updater.enqueueCallback(this, callback);
<add> this.updater.enqueueCallback(... | 4 |
Java | Java | avoid hamcrest 2.x deprecation warnings | 19ed439e4bab269400a1dd585bcb947e61cda45e | <ide><path>spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/JsonPathRequestMatchersIntegrationTests.java
<ide> import static org.hamcrest.Matchers.endsWith;
<ide> import static org.hamcrest.Matchers.equalTo;
<ide> import static org.hamcrest.Matchers.hasItem;
<del>import static org.hamcrest... | 2 |
Javascript | Javascript | simplify simd setup | 5f2994723048f6d433cece23af0e11bdd97e0896 | <ide><path>lib/util.js
<ide> if (typeof global.SIMD === 'object' && global.SIMD !== null) {
<ide>
<ide> const SIMD = global.SIMD; // Pacify eslint.
<ide>
<del> if (typeof SIMD.Bool16x8 === 'function')
<del> simdFormatters.set(SIMD.Bool16x8, make(SIMD.Bool16x8.extractLane, 8));
<del>
<del> if (typeof SIMD.Bool... | 1 |
PHP | PHP | add coverage for warnings being generated | 920f8af4d98968686cac813bc4161614692633ea | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> use Cake\Http\ServerRequest;
<ide> use Cake\Routing\Router;
<ide> use Cake\TestSuite\TestCase;
<add>use PHPUnit\Framework\Error\Warning;
<ide> use TestApp\Controller\Admin\PostsController;
<ide> use TestPlugin\Controller\TestPluginController;
<ide>
<ide> pu... | 1 |
Python | Python | fix obvious typos in flax decoder impl | e86faecfd43b8a8e296f14b4dbe21a68f3e2a4ed | <ide><path>src/transformers/models/bart/modeling_flax_bart.py
<ide> def setup(self) -> None:
<ide> )
<ide> self.encoder_attn_layer_norm = nn.LayerNorm(dtype=self.dtype, epsilon=1e-05)
<ide> self.fc1 = nn.Dense(
<del> self.config.encoder_ffn_dim,
<add> self.config.decoder_ff... | 7 |
Javascript | Javascript | fix lint issues | 66bb2d95cd834b97d13bc6c5cd8c4d7e116d0ac3 | <ide><path>src/lib/locale/locales.js
<ide> function chooseLocale(names) {
<ide> function loadLocale(name) {
<ide> var oldLocale = null;
<ide> // TODO: Find a better way to register and load all the locales in Node
<del> if (!locales[name] && (typeof module !== "undefined") &&
<add> if (!locales[name] && (... | 2 |
Javascript | Javascript | remove observables from requestupdateemail method | 9cf1d67e024f9993fd8d7b2aec46af0111bf8b5a | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide>
<ide> User.prototype.requestUpdateEmail = function requestUpdateEmail(newEmail) {
<ide> const currentEmail = this.email;
<del> return Observable.defer(() => {
<del> const isOwnEmail = isTheSame(newEmail, currentEmail);
<del> ... | 4 |
Text | Text | describe the available pypi packages | b8565dcab1292944b96328d92ad81ec1adaa481e | <ide><path>official/README.md
<ide> don't recommend earlier versions.
<ide> ### Installation
<ide>
<ide> Please check [here](https://github.com/tensorflow/models#Installation) for the
<del>instructions
<add>instructions.
<add>
<add>Available pypi packages:
<add>
<add>* [tf-models-official](https://pypi.org/project/tf-... | 1 |
Java | Java | avoid deprecation warnings on jdk 9 in spring-test | c88f11f9583bf5123d7f51d81fe4c1bbe40d6e51 | <ide><path>spring-test/src/test/java/org/springframework/test/context/junit/jupiter/SpringExtensionTestCase.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License... | 6 |
Ruby | Ruby | remove unused method expand_deps | 596d26f8b430bfbe2250a7de90009c5f949997fd | <ide><path>Library/Homebrew/brew.h.rb
<ide> def clean f
<ide> end
<ide>
<ide>
<del>def expand_deps ff
<del> deps = []
<del> ff.deps.collect do |f|
<del> deps += expand_deps(Formula.factory(f))
<del> end
<del> deps << ff
<del>end
<del>
<del>
<ide> def prune
<ide> $n=0
<ide> $d=0 | 1 |
Javascript | Javascript | add tests for stream3 buffering using cork | 9d0b7d85b55c13fd49948094732c2bb55d0e92a1 | <ide><path>test/parallel/test-stream3-cork-end.js
<add>'use strict';
<add>require('../common');
<add>const assert = require('assert');
<add>const stream = require('stream');
<add>const Writable = stream.Writable;
<add>
<add>// Test the buffering behaviour of Writable streams.
<add>//
<add>// The call to cork() triggers... | 2 |
Javascript | Javascript | add known helpers to precompilation | 7f1e74b95820d5698a1e9564e40bdbc394f89aca | <ide><path>packages/ember-handlebars/lib/ext.js
<ide> Ember.Handlebars.Compiler.prototype.mustache = function(mustache) {
<ide> */
<ide> Ember.Handlebars.precompile = function(string) {
<ide> var ast = Handlebars.parse(string);
<del> var options = { data: true, stringParams: true };
<add>
<add> var options = {
<add... | 1 |
Javascript | Javascript | use strict in tests | 92fdc1562df54f486a7927c37768c26870b320de | <ide><path>src/core/__tests__/ReactMultiChild-test.js
<ide> * @jsx React.DOM
<ide> * @emails react-core
<ide> */
<add>"use strict";
<ide>
<ide> var mocks = require('mocks');
<ide>
<ide><path>src/dom/__tests__/Danger-test.js
<ide> * @jsx React.DOM
<ide> * @emails react-core
<ide> */
<add>"use strict";
<ide>
<id... | 2 |
Go | Go | use timeouts instead of relying on runtime.gosched | fd672d59269d100acbb36abef4e4eddc1d30bdc7 | <ide><path>pkg/locker/locker_test.go
<ide> package locker
<ide>
<ide> import (
<del> "runtime"
<ide> "testing"
<add> "time"
<ide> )
<ide>
<ide> func TestLockCounter(t *testing.T) {
<ide> func TestLockerLock(t *testing.T) {
<ide> close(chDone)
<ide> }()
<ide>
<del> runtime.Gosched()
<add> chWaiting := make(chan s... | 1 |
Javascript | Javascript | introduce the ngmessages module and directives | 0f4016c84a47e01a0fb993867dfd0a64828c089c | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> ngLocale: {
<ide> files: { src: 'src/ngLocale/**/*.js' },
<ide> },
<add> ngMessages: {
<add> files: { src: 'src/ngMessages/**/*.js' },
<add> },
<ide> ngMock: {
<ide> files: { src: 'src/ngMock/**/*.j... | 5 |
Python | Python | fix fortran kind detection for aarch64 & s390x | e0c126dfc7b19f7681380b413e4793e94a85b065 | <ide><path>numpy/f2py/crackfortran.py
<ide> def _selected_real_kind_func(p, r=0, radix=0):
<ide> if p < 16:
<ide> return 8
<ide> machine = platform.machine().lower()
<del> if machine.startswith('power') or machine.startswith('ppc64'):
<add> if machine.startswith(('aarch64', 'power', 'ppc64', 's390... | 1 |
Python | Python | change signature of base class (see comment) | 53f9917b04b184341607d4d44c27957a3edd6ebd | <ide><path>libcloud/compute/base.py
<ide> def create_volume(self, size, name, location=None, snapshot=None):
<ide> (optional)
<ide> :type location: :class:`.NodeLocation`
<ide>
<del> :param snapshot: Name of snapshot from which to create the new
<del> ... | 1 |
Python | Python | switch convolutional layers to new regularization | 8ef90a03b37b03a3d4b88b958462fa200be99d7b | <ide><path>keras/layers/convolutional.py
<ide> class Convolution1D(Layer):
<ide> def __init__(self, nb_filter, stack_size, filter_length,
<ide> init='uniform', activation='linear', weights=None,
<ide> image_shape=None, border_mode='valid', subsample_length=1,
<del> W_regularizer=None, b_regul... | 1 |
Ruby | Ruby | remove unused code in fakerecord | 8f1d11027171202a78ef784459d43cb11438ca92 | <ide><path>activerecord/test/cases/arel/support/fake_record.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "active_support/core_ext/enumerable"
<del>
<ide> require "date"
<add>
<ide> module FakeRecord
<ide> class Column < Struct.new(:name, :type)
<ide> end
<ide> class Connection
<ide> attr_reader :... | 1 |
Mixed | Go | allow extra lines in /etc/hosts | 68e48b65a64df10fc797cbaa89d6caa2188eadc9 | <ide><path>daemon/container.go
<ide> func (container *Container) buildHostsFiles(IP string) error {
<ide> extraContent[alias] = child.NetworkSettings.IPAddress
<ide> }
<ide>
<add> for _, extraHost := range container.hostConfig.ExtraHosts {
<add> parts := strings.Split(extraHost, ":")
<add> extraContent[parts[0]] ... | 8 |
Python | Python | add head_mask/decoder_head_mask for bart | 357fb1c5d8b6a16f042f9b504f023d935086e8e5 | <ide><path>src/transformers/models/bart/modeling_bart.py
<ide> def forward(
<ide> key_value_states: Optional[torch.Tensor] = None,
<ide> past_key_value: Optional[Tuple[torch.Tensor]] = None,
<ide> attention_mask: Optional[torch.Tensor] = None,
<add> layer_head_mask: Optional[torch.Tensor]... | 13 |
Text | Text | fix addon name in npm readme | c9ab11f5ff8d7c9d148d99e5f65873c2d54377b6 | <ide><path>npm-react/README.md
<ide> var React = require('react');
<ide>
<ide> // Addons can be accessed individually from the "addons" directory.
<ide> var createFragment = require('react/addons/createFragment');
<del>var immutabilityHelpers = require('react/addons/updates');
<add>var immutabilityHelpers = require('r... | 1 |
Text | Text | simplify recommendations in process.md | b07dc4d19fdbc15b4f76557dc45b3ce3a43ad0c3 | <ide><path>doc/api/process.md
<ide> <!-- source_link=lib/process.js -->
<ide>
<ide> The `process` object provides information about, and control over, the current
<del>Node.js process. While it is available as a global, it is recommended to
<del>explicitly access it via require or import:
<add>Node.js process.
<ide>
... | 1 |
Javascript | Javascript | move standalone functions to the service scope | 560951e9881b5f772262804384b4da9f673b925e | <ide><path>src/ng/interpolate.js
<ide> function $InterpolateProvider() {
<ide> return '\\\\\\' + ch;
<ide> }
<ide>
<add> function unescapeText(text) {
<add> return text.replace(escapedStartRegexp, startSymbol).
<add> replace(escapedEndRegexp, endSymbol);
<add> }
<add>
<add> function stri... | 1 |
Text | Text | update upgrade docs | 3f22451545704a27388eb9d352d4e467c684e228 | <ide><path>docs/upgrading.md
<ide> description: Learn how to upgrade Next.js.
<ide>
<ide> # Upgrade Guide
<ide>
<add>## Upgrading from 11 to 12
<add>
<add>### SWC replacing Babel
<add>
<add>Next.js now uses Rust-based compiler [SWC](https://swc.rs/) to compile JavaScript/TypeScript. This new compiler is up to 17x fas... | 1 |
Javascript | Javascript | remove unnecessary array | a050008557631dce1049636f957abff7005d0542 | <ide><path>packages/ember-handlebars/lib/controls/select.js
<ide> Ember.Select = Ember.View.extend(
<ide>
<ide> groupedContent: Ember.computed(function() {
<ide> var groupPath = get(this, 'optionGroupPath');
<del> var groupedContent = Ember.A([]);
<add> var groupedContent = Ember.A();
<ide>
<ide> forE... | 10 |
Ruby | Ruby | add circleci to env check | f457c6ab327b0520c61021437b87be0cedc5f770 | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> def check_xcode_up_to_date
<ide> return unless MacOS::Xcode.installed?
<ide> return unless MacOS::Xcode.outdated?
<ide>
<del> # Travis CI images are going to end up outdated so don't complain.
<del> return if ENV["TRAVIS"]
<add... | 1 |
Javascript | Javascript | add test for importing acorn | 7ce6d23387967db636d1f15493d770fadcfb86c7 | <ide><path>test/parallel/test-require-deps-deprecation.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<add>const assert = require('assert');
<ide> // The v8 modules when imported leak globals. Disable global check.
<ide> common.globalCheck = false;
<ide>
<ide> const deprecatedModules = [
<ide... | 1 |
Javascript | Javascript | put shell scripts outside of asar | 33f5cdd7b3fa007fd5dbfc32c09dd3ab1f9f8687 | <ide><path>script/lib/include-path-in-packaged-app.js
<ide> const EXCLUDE_REGEXPS_SOURCES = [
<ide> // Ignore *.cc and *.h files from native modules
<ide> escapeRegExp(path.sep) + '.+\\.(cc|h)$',
<ide>
<add> // Shell scripts need to be outside of ASAR because Git will call them
<add> // directly
<add> escapeRe... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.