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 color reset in error message | 57f4b67316d901efe8fe3a267fbb037c5ac2ffb8 | <ide><path>lib/EnvironmentPlugin.js
<ide> EnvironmentPlugin.prototype.apply = function(compiler) {
<ide> if(value === undefined) {
<ide> compiler.plugin("this-compilation", function(compilation) {
<ide> var error = new Error(
<del> 'EnvironmentPlugin - ' + key + ' environment variable is undefined. \033[0m... | 1 |
Ruby | Ruby | add support for npm 7 | 35a7e336bef8b972495ef135571feceb46c3c57c | <ide><path>Library/Homebrew/language/node.rb
<ide> def self.std_npm_install_args(libexec)
<ide>
<ide> pack = pack_for_installation
<ide>
<add> # npm 7 requires that these dirs exist before install
<add> (libexec/"lib").mkpath
<add>
<ide> # npm install args for global style module format installe... | 2 |
Javascript | Javascript | fix backwards compat shim for custom ast plugins | eeecb9b2c88fb5ec7943bae52950c1e2fa439b42 | <ide><path>packages/ember-template-compiler/lib/index.js
<ide> export { default as precompile } from './system/precompile';
<ide> export { default as compile } from './system/compile';
<ide> export {
<ide> default as compileOptions,
<del> registerPlugin
<add> registerPlugin,
<add> unregisterPlugin
<ide> } from './... | 3 |
Javascript | Javascript | add stages for cache plugins | 39c75ee6a979ee8993f7ad64484136d0b858b4f2 | <ide><path>lib/Cache.js
<ide> class Cache {
<ide> }
<ide> }
<ide>
<add>Cache.STAGE_MEMORY = -10;
<add>Cache.STAGE_DEFAULT = 0;
<add>Cache.STAGE_DISK = 10;
<add>Cache.STAGE_NETWORK = 20;
<add>
<ide> module.exports = Cache;
<ide><path>lib/cache/BackgroundFileCachePlugin.js
<ide>
<ide> "use strict";
<ide>
<add>const C... | 6 |
Go | Go | fix journald compile error | 5452954d89160985d4d896f4241f1838b4114413 | <ide><path>daemon/logger/journald/journald_unsupported.go
<ide> // +build !linux
<ide>
<ide> package journald
<add>
<add>type journald struct {
<add>} | 1 |
PHP | PHP | fix bug in array_pluck helper | cf29450b996515637534a3a8dee6577214c654f1 | <ide><path>laravel/helpers.php
<ide> function array_divide($array)
<ide> */
<ide> function array_pluck($array, $key)
<ide> {
<del> return array_map(function($v)
<add> return array_map(function($v) use ($key)
<ide> {
<ide> return is_object($v) ? $v->$key : $v[$key];
<ide> | 1 |
Text | Text | add french translation | ff5d39ea9ebef3a6712fba62e65d7375e3568df0 | <ide><path>threejs/lessons/fr/threejs-shadows.md
<add>Title: Les ombres dans Three.js
<add>Description: Les ombres dans Three.js
<add>TOC: Shadows
<add>
<add>Cet article fait partie d'une série consacrée à Three.js.
<add>Le premier article s'intitule [Principes de base](threejs-fundamentals.html).
<add>Si vous ne l'ave... | 1 |
Javascript | Javascript | enforce explicit cwd() | 23741470ca706776815f77c757e1dbddb706889e | <ide><path>local-cli/__mocks__/fs.js
<ide>
<ide> 'use strict';
<ide>
<del>const fs = new (require('metro-memory-fs'))();
<add>const fs = new (require('metro-memory-fs'))({cwd: process.cwd});
<ide>
<ide> function setMockFilesystem(object) {
<ide> fs.reset(); | 1 |
Ruby | Ruby | remove unused `depthfirst` visitor | fc38ff6e4417295c870f419f7c164ab5a7dbc4a5 | <ide><path>activerecord/lib/arel/nodes/node.rb
<ide> module Nodes
<ide> # Abstract base class for all AST nodes
<ide> class Node
<ide> include Arel::FactoryMethods
<del> include Enumerable
<ide>
<ide> ###
<ide> # Factory method to create a Nodes::Not node that has the recipient of
<ide> ... | 7 |
Text | Text | clarify combinereducers() usage | ec0b1a36e958584b7a11a5977734f04d05955c22 | <ide><path>docs/api/combineReducers.md
<ide> The resulting reducer calls every child reducer, and gather their results into a
<ide> Consequently, the state object will look like this :
<ide>
<ide> ```
<del>state : {
<add>{
<ide> reducer1: ...
<ide> reducer2: ...
<ide> }
<ide> ```
<add>
<add>You can control state ... | 1 |
PHP | PHP | remove duplicate rows from simple pagination | 29d0a968019bff40baccac21f6bde2f243cee083 | <ide><path>src/Illuminate/Pagination/Paginator.php
<ide> public function __construct(Factory $factory, array $items, $total, $perPage = n
<ide> if (is_null($perPage))
<ide> {
<ide> $this->perPage = (int) $total;
<del> $this->items = array_slice($items, 0, $perPage);
<del> $this->hasMore = count(array_slice($... | 2 |
Ruby | Ruby | report outdated count & suggest `brew upgrade` | 0e732d3917c013bad3404015d939e8f0fad35913 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def update_report
<ide> DescriptionCacheStore.new(db)
<ide> .update_from_report!(hub)
<ide> end
<add>
<add> unless args.preinstall?
<add> outdated_formulae = Formula.installed.count(&:outdated?)
<add>... | 2 |
Text | Text | remove old console note | 1e84e69eac1d09e849e22e90570f18e2794e83a2 | <ide><path>doc/api/console.md
<ide> console.timeEnd('100-elements');
<ide> // prints 100-elements: 225.438ms
<ide> ```
<ide>
<del>*Note*: As of Node.js v6.0.0, `console.timeEnd()` deletes the timer to avoid
<del>leaking it. On older versions, the timer persisted. This allowed
<del>`console.timeEnd()` to be called mult... | 1 |
Go | Go | implement docker diff for device-mapper | 1c5dc26a7c0a0abb7bc59174768ec309f6c5fd4f | <ide><path>changes.go
<ide> import (
<ide> "os"
<ide> "path/filepath"
<ide> "strings"
<add> "syscall"
<ide> )
<ide>
<ide> type ChangeType int
<ide> func (change *Change) String() string {
<ide> return fmt.Sprintf("%s %s", kind, change.Path)
<ide> }
<ide>
<del>func Changes(layers []string, rw string) ([]Change, er... | 3 |
Text | Text | add information about ctc quorum rules | 96611d097a8b576d7950918e25f7b542b9a5440a | <ide><path>GOVERNANCE.md
<ide> When an agenda item has appeared to reach a consensus, the moderator will ask
<ide> "Does anyone object?" as a final call for dissent from the consensus.
<ide>
<ide> If an agenda item cannot reach a consensus, a CTC member can call for either a
<del>closing vote or a vote to table the is... | 1 |
Javascript | Javascript | remove redundant function | 421eb682b993fa4b50b0e8ad15f18d7281bae557 | <ide><path>examples/jsm/csm/Frustum.js
<ide> import * as THREE from '../../../build/three.module.js';
<ide> import FrustumVertex from './FrustumVertex.js';
<del>import { toRad } from './Utils.js';
<ide>
<ide> export default class Frustum {
<ide>
<ide> export default class Frustum {
<ide>
<ide> getViewSpaceVertices(... | 2 |
Ruby | Ruby | remove unused variable | ba4bdc536b9241a374673a5a0e67feeff3532964 | <ide><path>activesupport/lib/active_support/core_ext/uri.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "uri"
<del>str = "\xE6\x97\xA5"
<ide>
<ide> if RUBY_VERSION < "2.6.0"
<ide> require "active_support/core_ext/module/redefine_method" | 1 |
Text | Text | correct personal info | 41a35e0ebfb3a895e93757c85611184371cca8f4 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> * [Qard](https://github.com/Qard) -
<ide> **Stephen Belanger** <admin@stephenbelanger.com> (he/him)
<ide> * [refack](https://github.com/refack) -
<del>**Refael Ackermann** <refack@gmail.com> (he/him)
<add>**Ref... | 1 |
Python | Python | fix simplernn step function | c2534964b76015eb3d76261b025c7556b354764c | <ide><path>keras/layers/recurrent.py
<ide> def step(self, x, states):
<ide> assert len(states) == 1
<ide> prev_output = states[0]
<ide> h = K.dot(x, self.W) + self.b
<del> output = self.activation(h * K.dot(prev_output, self.U))
<add> output = self.activation(h + K.dot(prev_output,... | 1 |
Java | Java | prevent hitslop crash on android | c2a55baf80c99df84c3a3d99ec58696ab2141e27 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java
<ide> public void setHitSlop(final ReactViewGroup view, @Nullable ReadableMap hitSlop)
<ide> view.setHitSlopRect(null);
<ide> } else {
<ide> view.setHitSlopRect(new Rect(
<del> (int) PixelUtil.toPixelFromD... | 1 |
Javascript | Javascript | add dataview test entry for whatwg | de9dc417fe1fc554c8cc34e51616668bfe012548 | <ide><path>test/parallel/test-whatwg-readablestream.js
<ide> class Source {
<ide> isReadable(stream, false);
<ide> })().then(common.mustCall());
<ide> }
<add>
<add>{
<add> const stream = new ReadableStream({
<add> type: 'bytes',
<add> start(controller) {
<add> controller.close();
<add> }
<add> });... | 1 |
Ruby | Ruby | support dalli 3.2.1 | f8f438fcedee1a68610f57f33f0deae283a1c4c7 | <ide><path>activesupport/test/cache/stores/mem_cache_store_test.rb
<ide> def emulating_unavailability
<ide> end
<ide>
<ide> def servers(cache = @cache)
<del> client(cache).instance_variable_get(:@servers)
<add> if client(cache).instance_variable_defined?(:@normalized_servers)
<add> client(cach... | 1 |
Text | Text | fix filename reference for statstestcases.test.js | aaaa4c30cfd28f47418edcd55df3671c0468504c | <ide><path>test/README.md
<ide> If you are trying to solve a bug which is reproducible when x and y properties a
<ide>
<ide> In addition to an `index.js`, these configCases require a `webpack.config.js` is located inside of your test suite. This will run this specific config through `webpack` just as you were building... | 1 |
PHP | PHP | remove unneeded block | 6ca2ecacea0f6f0ff8a4c2f0d39c1ddda4c17f3e | <ide><path>public/index.php
<ide> use Illuminate\Contracts\Http\Kernel;
<ide> use Illuminate\Http\Request;
<ide>
<del>/**
<del> * Laravel - A PHP Framework For Web Artisans
<del> *
<del> * @package Laravel
<del> * @author Taylor Otwell <taylor@laravel.com>
<del> */
<del>
<ide> define('LARAVEL_START', microtime(true... | 1 |
Javascript | Javascript | add tls write error regression test | 785e5ba48cb57a05c9c0966a502d34ac03084561 | <ide><path>test/common/tls.js
<add>/* eslint-disable node-core/required-modules, node-core/crypto-check */
<add>
<add>'use strict';
<add>const crypto = require('crypto');
<add>const net = require('net');
<add>
<add>exports.ccs = Buffer.from('140303000101', 'hex');
<add>
<add>class TestTLSSocket extends net.Socket {
<ad... | 2 |
Text | Text | update version requirements [ci skip] | 0712efc6b3e44c9652b641d9ecccd8427631512b | <ide><path>README.md
<ide> For detailed installation instructions, see the
<ide> [documentation](https://spacy.io/usage).
<ide>
<ide> - **Operating system**: macOS / OS X · Linux · Windows (Cygwin, MinGW, Visual Studio)
<del>- **Python version**: Python 2.7, 3.4+ (only 64 bit)
<add>- **Python version**: Python 2... | 2 |
Javascript | Javascript | make authentication work | 7786e4fefbc4bc2f5f8301b8aaa89c8180ff8999 | <ide><path>src/api.js
<ide> *
<ide> * @param {string|TypedAray} source Either a url to a PDF is located or a
<ide> * typed array (Uint8Array) already populated with data.
<add> * @param {Object} headers An object containing the http headers like this:
<add> * { Authorization: "BASIC XXX" }
<ide> * @return {Promise}... | 2 |
Javascript | Javascript | replace string concatenation with template | 2f823340766b1df3fb1a7895b317c0545f02aeeb | <ide><path>test/parallel/test-assert.js
<ide> try {
<ide> code: 'ERR_INVALID_ARG_TYPE',
<ide> type: TypeError,
<ide> message: 'The "block" argument must be of type function. Received ' +
<del> 'type ' + typeName(block)
<add> `type ${typeName(block)}`
<ide> }... | 1 |
PHP | PHP | start implementation of commandrunner | 73a85be90dfeca181a735b7689c18fbafb22a4e3 | <ide><path>src/Console/CommandRunner.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, please s... | 3 |
Text | Text | fix typo in crypto.md | 2dfd00081330603ba31f96b46c4aa83b31a8e518 | <ide><path>doc/api/crypto.md
<ide> added: v15.8.0
<ide> to the OpenSSL documentation for the [`BN_is_prime_ex`][] function `nchecks`
<ide> options for more details. **Defaults**: `0`
<ide> * `callback` {Function}
<del> * `err` {Error} Set to an {Error} object if an error occured during check.
<add> * `err` {E... | 1 |
Text | Text | add section for non-interactive installation | 9084cd21b167ee19f96cfb31911fb74f210584c9 | <ide><path>docs/Installation.md
<ide> chmod -R go-w "$(brew --prefix)/share/zsh"
<ide>
<ide> Create a Homebrew installation wherever you extract the tarball. Whichever `brew` command is called is where the packages will be installed. You can use this as you see fit, e.g. to have a system set of libs in the default pre... | 1 |
Text | Text | fix default value in guide [ci skip] | c59382b3b142c7225ce4ead04c0c85982120df8a | <ide><path>guides/source/configuring.md
<ide> There are a few configuration options available in Active Support:
<ide>
<ide> * `config.active_support.test_order` sets the order that test cases are executed. Possible values are `:random` and `:sorted`. This option is set to `:random` in `config/environments/test.rb` in... | 1 |
Text | Text | add plots to r guide | b1ef7ecfbfb17ebae424a62fa773ca0b677a097e | <ide><path>guide/english/r/plotting/index.md
<add>---
<add>title: Plotting in R
<add>---
<add>## Plotting
<add> The base version of R allows us to make many types of plots!
<add> The syntax for a simple scatterplot goes something like this:
<add> ```r
<add>plot(x, y)
<add>```
<add>We create a graph using the plot() f... | 1 |
Java | Java | request toolbar layout after drawable loads | 63c2ab3eb13c50e1cdd686b1f8913d569a7af53a | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbar.java
<ide> private class ActionIconControllerListener extends IconControllerListener {
<ide> @Override
<ide> protected void setDrawable(Drawable d) {
<ide> mItem.setIcon(d);
<add> ReactToolbar.this.requestLayout();
<i... | 1 |
Javascript | Javascript | remove unnecessary await | 8711c5ca53b468d4a270bb4d627a3c813565b8b3 | <ide><path>test/integration/profiling/test/index.test.js
<ide> jest.setTimeout(1000 * 60 * 5)
<ide> describe.skip('Profiling Usage', () => {
<ide> beforeAll(async () => {
<ide> // Delete file if it already exists
<del> if (await fs.existsSync(profileEventsPath))
<del> await fs.unlink(profileEventsPath, ()... | 1 |
Ruby | Ruby | get apps generated with working again | 591eaf3b2c56ebb8a779c3ebbd1300a3f776f39a | <ide><path>railties/lib/rails/commands/server.rb
<ide> :Port => 3000,
<ide> :Host => "0.0.0.0",
<ide> :environment => (ENV['RAILS_ENV'] || "development").dup,
<del> :config => Rails.root + "/config.ru",
<add> :config => "#{Rails.root}/config.ru",
<ide> :detach => false,
<ide> :d... | 2 |
Python | Python | return ram and pricing as integers | 72d32c3991a32f68d905da9f5a72748579abc1c3 | <ide><path>libcloud/compute/drivers/maxihost.py
<ide> import json
<add>import re
<ide>
<ide> from libcloud.compute.base import Node, NodeDriver, NodeLocation
<ide> from libcloud.compute.base import NodeSize, NodeImage
<ide> def ex_stop_node(self, node):
<ide>
<ide> return res.status in [httplib.OK, httplib.CR... | 1 |
PHP | PHP | add integration test | 12dad330ed505fa939eb50683bae795a7189246c | <ide><path>tests/Database/DatabaseSchemaBuilderIntegrationTest.php
<add><?php
<add>
<add>use PHPUnit\Framework\TestCase;
<add>use Illuminate\Database\Capsule\Manager as DB;
<add>
<add>class DatabaseSchemaBuilderIntegrationTest extends TestCase
<add>{
<add> protected $db;
<add>
<add> /**
<add> * Bootstrap data... | 1 |
PHP | PHP | fix form tests | ab4fcbd01ea8a8dfdb10d02ab8e8c2fa44233d2e | <ide><path>tests/Html/FormBuilderTest.php
<ide> public function testSelect()
<ide>
<ide> public function testFormCheckbox()
<ide> {
<add> $this->formBuilder->setSessionStore($session = m::mock('Illuminate\Session\Store'));
<add> $session->shouldReceive('getOldInput')->with('foo')->andReturn(null);
<add> $session-... | 1 |
Text | Text | update the docs to reflect the nice \n handling | cfb232cff27da2dd46ec04a5bf6699ab1d1df91c | <ide><path>docs/sources/reference/commandline/cli.md
<ide> Run a command in a new container
<ide>
<ide> Usage: docker run [OPTIONS] IMAGE[:TAG] [COMMAND] [ARG...]
<ide>
<del> -a, --attach=[]: Attach to stdin, stdout or stderr.
<del> -c, --cpu-shares=0: CPU shares (relative weight)
<del> --cidfile="": Wri... | 2 |
Text | Text | update tutorial to use classname | 6c1e8e8a668d30f02d423498b248541b938586e1 | <ide><path>docs/docs/tutorial.md
<ide> Let's build the `CommentBox` component, which is just a simple `<div>`:
<ide> var CommentBox = React.createClass({
<ide> render: function() {
<ide> return (
<del> <div class="commentBox">
<add> <div className="commentBox">
<ide> Hello, world! I am a Comment... | 1 |
PHP | PHP | add docs for hasmany savestrategy | d187e539727bc5d8708d401aed08d2e1404d1b32 | <ide><path>src/ORM/Table.php
<ide> public function hasOne($associated, array $options = [])
<ide> * When true records will be loaded and then deleted.
<ide> * - conditions: array with a list of conditions to filter the join with
<ide> * - sort: The order in which results for this association should be ... | 1 |
PHP | PHP | update authenticatesusers.php | a513aaa2da69d1d8619c10568b3c13e4e250c825 | <ide><path>src/Illuminate/Foundation/Auth/AuthenticatesUsers.php
<ide> public function login(Request $request)
<ide> protected function validateLogin(Request $request)
<ide> {
<ide> $this->validate($request, [
<del> $this->username() => 'required', 'password' => 'required',
<add> $... | 1 |
Javascript | Javascript | fix bug of linter error | 23dee756ca2382aae789cc4fc42dfdf9a28427c2 | <ide><path>spec/context-menu-manager-spec.js
<del>const ContextMenuManager = require("../src/context-menu-manager")
<del>
<del>describe("ContextMenuManager", function () {
<del> let [contextMenu, parent, child, grandchild] = []
<del>
<del> beforeEach(function () {
<del> const {resourcePath} = atom.getLoadSettings(... | 2 |
PHP | PHP | add support for biginteger on sqlserver | d4ee62be617b3f567e5d85cb681fe77912e68844 | <ide><path>lib/Cake/Model/Datasource/Database/Sqlserver.php
<ide> class Sqlserver extends DboSource {
<ide> */
<ide> public $columns = array(
<ide> 'primary_key' => array('name' => 'IDENTITY (1, 1) NOT NULL'),
<del> 'string' => array('name' => 'nvarchar', 'limit' => '255'),
<del> 'text' => array('name' => 'nvarc... | 2 |
Javascript | Javascript | move trie utilities into their own file | f9cee72713d2d301dfbf1ac756a449b42fb3c5f4 | <ide><path>dist/Immutable.dev.js
<ide> var $Sequence = Sequence;
<ide> return this.slice(0, -1);
<ide> },
<ide> has: function(searchKey) {
<del> return this.get(searchKey, __SENTINEL) !== __SENTINEL;
<add> return this.get(searchKey, SENTINEL) !== SENTINEL;
<ide> },
<ide> get: function(searchKey, notFo... | 6 |
Ruby | Ruby | use transform_values to build hash_rows | d495eaebb7a585ececb318f5af8e6a3c5b252863 | <ide><path>activerecord/lib/active_record/result.rb
<ide> def hash_rows
<ide> # used as keys in ActiveRecord::Base's @attributes hash
<ide> columns = @columns.map(&:-@)
<ide> length = columns.length
<add> template = nil
<ide>
<ide> @rows.map { |row|
<del> ... | 1 |
Text | Text | fix broken links | 09d79ea13cc66b5393b98e3201726cd42947f60d | <ide><path>docs/understanding/thinking-in-redux/Glossary.md
<ide> A middleware is a higher-order function that composes a [dispatch function](#dis
<ide>
<ide> Middleware is composable using function composition. It is useful for logging actions, performing side effects like routing, or turning an asynchronous API call... | 2 |
Text | Text | remove discord community | 4643fd78b27940d2a26ac4454cd54ccfcc435bf6 | <ide><path>README.md
<ide> resources:
<ide>
<ide> * [Questions tagged 'node.js' on StackOverflow][]
<ide> * [#node.js channel on chat.freenode.net][]
<del>* [Node.js Discord Community](https://discordapp.com/invite/v7rrPdE)
<ide> * [Node.js Slack Community](https://node-js.slack.com/)
<ide> * To register: [nodeslack... | 1 |
Ruby | Ruby | update xcode.latest_version for 4.5 | 5adea8c1e102dd1b19bdd79219da1c678c277a92 | <ide><path>Library/Homebrew/macos/xcode.rb
<ide> def latest_version
<ide> when 10.6 then "3.2.6"
<ide> else
<ide> if MacOS.version >= 10.7
<del> "4.4.1"
<add> "4.5"
<ide> else
<ide> raise "Mac OS X `#{MacOS.version}' is invalid"
<ide> end | 1 |
PHP | PHP | fix a bunch of various coding standards errors | 452c42bfaa79c63b9aa19ca39fe7b64f92deac0d | <ide><path>Cake/ORM/Association/HasMany.php
<ide> public function isOwningSide(Table $side) {
<ide> * @return boolean|Entity false if $entity could not be saved, otherwise it returns
<ide> * the saved entity
<ide> * @see Table::save()
<add> * @throws \InvalidArgumentException when the association data cannot be trav... | 5 |
Ruby | Ruby | remove lasgn since ast is mutated | 4d5f9a07658f610c34851ceca2a0e25e5ad83503 | <ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb
<ide> def join_target_table(relation, condition)
<ide> conditions << process_conditions(options[:conditions], aliased_table_name)
<ide> end
<ide>
<del> join = relation.join(targ... | 2 |
PHP | PHP | add getnextrundate timezone argument | e5763e16cb9170140d2c26697e34bda57b56e62d | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> public function nextRunDate($currentTime = 'now', $nth = 0, $allowCurrentDate =
<ide> {
<ide> return Carbon::instance(CronExpression::factory(
<ide> $this->getExpression()
<del> )->getNextRunDate($currentTime, $nth, $allowCurren... | 1 |
Ruby | Ruby | escape interpolation examples | 1bb7dfcafd223fd02639d99d6e3a4472df05b8e5 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_manpages
<ide> ['A top-level "man" directory was found.',
<ide> <<-EOS.undent
<ide> Homebrew requires that man pages live under share.
<del> This can often be fixed by passing "--mandir=#{man}" to configure.
<add> This ... | 1 |
Text | Text | add v4.8.2 to changelog | 0580eed5c18cdfcd239ccd475e04a1b4c222963c | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.8.2 (November 3, 2022)
<add>
<add>- [#20244](https://github.com/emberjs/ember.js/pull/20244) Add missing type for `getComponentTemplate` to preview types
<add>
<ide> ### v4.9.0-beta.3 (November 2, 2022)
<ide>
<ide> - [CVE pending](https://emberjs.com/b... | 1 |
Javascript | Javascript | reduce memory usage by int8array | 00b5ee6083bfbd8e3f63a574411300c5e5f42bd7 | <ide><path>lib/internal/querystring.js
<ide>
<ide> const {
<ide> Array,
<add> Int8Array,
<ide> } = primordials;
<ide>
<ide> const { ERR_INVALID_URI } = require('internal/errors').codes;
<ide> const hexTable = new Array(256);
<ide> for (let i = 0; i < 256; ++i)
<ide> hexTable[i] = '%' + ((i < 16 ? '0' : '') + i.t... | 4 |
Python | Python | remove unused imports | 37e0c9b5b852dffee11e41d1a9ee7a11be1f662e | <ide><path>numpy/lib/UserArray.py
<ide> # class as this is not complete.
<ide>
<ide> from numpy.core import *
<del>import string
<ide>
<ide> class UserArray(object):
<ide> def __init__(self, data, dtype=None, copy=True):
<ide><path>numpy/lib/function_base.py
<ide> import numpy.core.numeric as _nx
<ide> from num... | 4 |
Text | Text | fix broken link in collaborator_guide.md | 9de2adc04d2da7884c54e59a14f14b58b0a1e423 | <ide><path>COLLABORATOR_GUIDE.md
<ide> information regarding the change process:
<ide> - Protects against the assumption that GitHub will be around forever.
<ide>
<ide> Review the commit message to ensure that it adheres to the guidelines
<del>outlined in the [contributing](https://github.com/nodejs/node/blob/master... | 1 |
Java | Java | add methodreference support | c5c68a46622ec2688aed20cc8efde8c23aceb729 | <ide><path>spring-core/src/main/java/org/springframework/aot/generate/MethodReference.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * ... | 2 |
Ruby | Ruby | remove obsolete empty line | 76488216b78f83f3f76a052b1819f04bd0555bde | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def run
<ide> end
<ide>
<ide> verbose = ARGV.verbose?
<del> puts if verbose && !ENV["TRAVIS"]
<ide> @output = ""
<ide> working_dir = Pathname.new(@command.first == "git" ? @repository : Dir.pwd)
<ide> read, write = IO.pipe | 1 |
Go | Go | remove unneeded check for binary-commits | 750130d748add8eacdd31dc5e9706d8c5c6be56c | <ide><path>integration/system/info_linux_test.go
<ide> func TestInfoBinaryCommits(t *testing.T) {
<ide> assert.NilError(t, err)
<ide>
<ide> assert.Check(t, "N/A" != info.ContainerdCommit.ID)
<del> assert.Check(t, is.Equal(testEnv.DaemonInfo.ContainerdCommit.Expected, info.ContainerdCommit.Expected))
<ide> assert.Ch... | 1 |
Javascript | Javascript | simplify iterator access | 15480d5a80af602f1e4b12b7ea34f7ff793763b8 | <ide><path>dist/Immutable.js
<ide> var ITERATE_KEYS = 0;
<ide> var ITERATE_VALUES = 1;
<ide> var ITERATE_ENTRIES = 2;
<ide> var FAUX_ITERATOR_SYMBOL = '@@iterator';
<del>var ITERATOR_SYMBOL = typeof Symbol !== 'undefined' ? Symbol.iterator : FAUX_ITERATOR_SYMBOL;
<add>var REAL_ITERATOR_SYMBOL = typeof Symbol === 'funct... | 3 |
Ruby | Ruby | reduce code footprint of standard compilers map | 73b7c52673d707a4df38b96c22c9fda0cbab786d | <ide><path>Library/Homebrew/macos.rb
<ide> def prefer_64_bit?
<ide> Hardware.is_64_bit? and version != :leopard
<ide> end
<ide>
<del> StandardCompilers = {
<del> "3.1.4" => {:gcc_40_build_version=>5493, :gcc_42_build_version=>5577},
<del> "3.2.6" => {:gcc_40_build_version=>5494, :gcc_42_build_version=>566... | 1 |
PHP | PHP | fix a docblock. | fe8c7e17e765c99f35c0c44448258e94409f405f | <ide><path>src/Illuminate/Support/Stringable.php
<ide> public function match($pattern)
<ide> * Get the string matching the given pattern.
<ide> *
<ide> * @param string $pattern
<del> * @return static|null
<add> * @return \Illuminate\Support\Collection
<ide> */
<ide> public function mat... | 1 |
Javascript | Javascript | add missing isgroup property to group | 106b374183e884e15c94a84c7617c668ce427d7c | <ide><path>src/objects/Group.js
<ide> function Group() {
<ide>
<ide> Group.prototype = Object.assign( Object.create( Object3D.prototype ), {
<ide>
<del> constructor: Group
<add> constructor: Group,
<add>
<add> isGroup: true
<ide>
<ide> } );
<ide> | 1 |
Java | Java | fix checkstyle errors | 37a3765a4eb7d0d06e80a1c1de2440ddac58eeef | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java
<ide> public static RequestPredicate all() {
<ide>
<ide> /**
<ide> * Return a {@code RequestPredicate} that matches if the request's HTTP method is equal to the
<del> * given method
<add> * given method... | 2 |
Ruby | Ruby | rewrite cellar names before prefix names | 94ebe8e747e774d7eb8efcb0e49c84581cc11bc6 | <ide><path>Library/Homebrew/keg_fix_install_names.rb
<ide> def fix_install_names options={}
<ide>
<ide> def relocate_install_names old_prefix, new_prefix, old_cellar, new_cellar, options={}
<ide> mach_o_files.each do |file|
<add> install_names_for(file, options, relocate_reject_proc(old_cellar)) do |id, old... | 1 |
Text | Text | improve example description | ec1b989fce242ac7e9d9a6be34a9c452eff8344b | <ide><path>examples/wasm-simple/README.md
<ide> This very simple example shows usage of WebAssembly.
<ide>
<del>WebAssembly modules can be imported like other async modules.
<del>Their download and compilation happens in parallel to the download and evaluation of the javascript chunk.
<add>WebAssembly modules can be i... | 2 |
PHP | PHP | add docs for features that are coming soon | 36066a2dc47db912ed1059b48ea08619d0d2987e | <ide><path>src/Routing/DispatcherFilter.php
<ide> * event listener with the ability to alter the request or response as needed before it is handled
<ide> * by a controller or after the response body has already been built.
<ide> *
<add> * ### Limiting middleware to specific paths
<add> *
<add> * By using the `for` o... | 1 |
Javascript | Javascript | fix path issue | 65877d5d30d5a11394e62987d5413cf2546fc937 | <ide><path>test/Compiler.test.js
<ide> describe("Compiler", () => {
<ide> entry: "./c",
<ide> context: path.join(__dirname, "fixtures"),
<ide> output: {
<del> path: "/",
<add> path: "/directory",
<ide> pathinfo: true
<ide> }
<ide> });
<ide> describe("Compiler", () => {
<ide> mode: "pr... | 1 |
Text | Text | promote cdt to tier 3 | ac27c58180df05583f7df4c76e74da16bf896774 | <ide><path>doc/contributing/diagnostic-tooling-support-tiers.md
<ide> The tools are currently assigned to Tiers as follows:
<ide> | Profiling | V8 --interpreted-frames-native-stack | Yes | Yes | 2 |
<ide> | Profiling | Linux perf | Yes ... | 1 |
Javascript | Javascript | fix trailing arg | 8691a826c0110639480b3eae9e21db05d72bf305 | <ide><path>src/support.js
<ide>
<ide> // release memory in IE
<ide> root = script = div = all = a = null;
<del>})( jQuery );
<add>})();
<ide>
<ide> jQuery.props = {
<ide> "for": "htmlFor", | 1 |
Java | Java | update copyright year of changed files | 12f8cdd71571449a9d583f1ecfaa16d334a566a0 | <ide><path>spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may no... | 2 |
Javascript | Javascript | support custom headers per action | fbdab513dd48f667ad857030cf4b3481ecdd9097 | <ide><path>src/ngResource/resource.js
<ide> * @param {Object.<Object>=} actions Hash with declaration of custom action that should extend the
<ide> * default set of resource actions. The declaration should be created in the following format:
<ide> *
<del> * {action1: {method:?, params:?, isArray:?},
<del> * ... | 2 |
Python | Python | remove config assumption in trainer | fdccf82e28faf626fa8a64004164f3cd7744de41 | <ide><path>src/transformers/trainer.py
<ide> def __init__(
<ide> # Create output directory if needed
<ide> if self.is_world_process_zero():
<ide> os.makedirs(self.args.output_dir, exist_ok=True)
<del> if is_torch_tpu_available():
<add> if is_torch_tpu_available() and isinstance... | 2 |
Javascript | Javascript | fix incorrect use of err_invalid_arg_type | 1d7414354e4cce9ebc48c4f7117170c746f12970 | <ide><path>lib/assert.js
<ide> function innerThrows(shouldThrow, block, expected, message) {
<ide> if (typeof block !== 'function') {
<ide> const errors = lazyErrors();
<ide> throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'block', 'function',
<del> typeof block);
<add> ... | 2 |
Ruby | Ruby | add tests for `formulaauditor#audit_deps` | e0bb978cc93ab81ffeaa15656fe74384cf7982fc | <ide><path>Library/Homebrew/test/dev-cmd/audit_spec.rb
<ide> class Foo < Formula
<ide> end
<ide> end
<ide>
<add> describe "#audit_deps" do
<add> describe "a dependency on a macOS-provided keg-only formula" do
<add> describe "which is whitelisted" do
<add> let(:fa) do
<add> formula_audito... | 1 |
Ruby | Ruby | apply suggestions from code review | 4bde62b651a3d08543f54660871cafb0ae8c0da7 | <ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> def upgrade_formula(f)
<ide> end
<ide> fi.prelude
<ide>
<del> if f.optlinked?
<del> oh1 "Upgrading #{Formatter.identifier(f.full_specified_name)} #{Keg.new(f.opt_prefix).version} ->"\
<add> upgrade_version = if f.optlinked?
<add> "#{Keg.new(f.opt... | 1 |
Python | Python | add a test case for it | 5f0d9f6f2636e138e90a1c86388f0952825133df | <ide><path>libcloud/test/compute/test_azure_arm.py
<ide> def test_create_node(self):
<ide> 'version': image.version
<ide> })
<ide>
<add> def test_create_node_storage_account_not_provided_and_not_ex_use_managed_disks(self):
<add> location = NodeLocation('any_location', '', '', self.driver)... | 1 |
Text | Text | add "affects" field to issue template | f9ba069b9de19bd5bca3466fdfba8eb5ec5d024c | <ide><path>.github/ISSUE_TEMPLATE.md
<ide> <!--
<ide> !!! For Security Vulnerabilities, please go to https://pivotal.io/security !!!
<add>-->
<add>**Affects:** \<Spring Framework version>
<ide>
<add>---
<add><!--
<ide> Thanks for taking the time to create an issue. Please read the following:
<ide>
<ide> - Questions s... | 1 |
Python | Python | add pipeline - train | 2d8559731acbf673fe3e31aaeb17412a342cff73 | <ide><path>transformers/commands/train.py
<add>import os
<ide> from argparse import ArgumentParser, Namespace
<del>
<ide> from logging import getLogger
<ide>
<ide> from transformers.commands import BaseTransformersCLICommand
<ide> raise ImportError("At least one of PyTorch or TensorFlow 2.0+ should be installed to... | 3 |
Javascript | Javascript | remove extra loop (?) | 1c7c38c82af1c4d9985c3dd1e2b1a4d996bd6f66 | <ide><path>packages/react-dom/src/client/ReactDOMComponentTree.js
<ide> export function getClosestInstanceFromNode(node) {
<ide> return node[internalInstanceKey];
<ide> }
<ide>
<del> // Walk up the tree until we find an ancestor whose instance we have cached.
<del> let parents = [];
<ide> while (!node[intern... | 1 |
Javascript | Javascript | simplify regex expression | 2c1a8c85d22651acf584b95b4533f1b9fa264c7b | <ide><path>lib/repl.js
<ide> function _memory(cmd) {
<ide> if (cmd) {
<ide> // Going down is { and ( e.g. function() {
<ide> // going up is } and )
<del> var dw = cmd.match(/{|\(/g);
<del> var up = cmd.match(/}|\)/g);
<add> let dw = cmd.match(/[{(]/g);
<add> let up = cmd.match(/[})]/g);
<ide> ... | 1 |
Javascript | Javascript | add title to "ask for help" forum requests | e3fe5d0a9b6adaf20d8d4677059f6dcc28688ea5 | <ide><path>client/src/templates/Challenges/redux/create-question-epic.js
<ide> import dedent from 'dedent';
<ide> import i18next from 'i18next';
<ide> import { ofType } from 'redux-observable';
<ide> import { tap, mapTo } from 'rxjs/operators';
<add>import { nanoid } from 'nanoid';
<ide> import envData from '../../../.... | 1 |
Python | Python | move schedule.step after optimizer.step | 36362cf08637dea5aa00f209067e9c17b0bb2a69 | <ide><path>examples/single_model_scripts/run_multiple_choice.py
<ide> def train(args, train_dataset, model, tokenizer):
<ide>
<ide> tr_loss += loss.item()
<ide> if (step + 1) % args.gradient_accumulation_steps == 0:
<del> scheduler.step() # Update learning rate schedule
<add>
<i... | 1 |
Text | Text | add more details | d61dba9110a567e6193902e96b20de16a7655849 | <ide><path>guide/english/css/background-opacity/index.md
<ide> title: Background Opacity
<ide>
<ide> The opacity CSS property specifies the level of transparency of an element, that is, the degree to which the content behind the element is visible.
<ide>
<add>Opacity applies to the element as a whole, including its c... | 1 |
Go | Go | detect compressed archives in api /build call | 4f53722dee6c8ea18a9c30bde2cc6fee24b03d32 | <ide><path>buildfile.go
<ide> func (b *buildFile) Build(context io.Reader) (string, error) {
<ide> if err != nil {
<ide> return "", err
<ide> }
<del> b.context = &utils.TarSum{Reader: context, DisableCompression: true}
<add>
<add> decompressedStream, err := archive.DecompressStream(context)
<add> if err != nil {
<a... | 1 |
Text | Text | update main branch name in release guide | 5a8440bc51930d263a8b417ef1ae2e592a80badb | <ide><path>doc/contributing/releases.md
<ide> official release builds for Node.js, hosted on <https://nodejs.org/>.
<ide> * [10. Test the build](#10-test-the-build)
<ide> * [11. Tag and sign the release commit](#11-tag-and-sign-the-release-commit)
<ide> * [12. Set up for the next release](#12-set-up-for-the-next-... | 1 |
Javascript | Javascript | delete an unused conditional statement | a84e3e727015605ec02f21f8052ebe9530f0ea62 | <ide><path>src/ngAnimate/animation.js
<ide> var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
<ide> // may attempt more elements, but custom drivers are more particular
<ide> for (var i = drivers.length - 1; i >= 0; i--) {
<ide> var driverName = drivers[i];
<del> ... | 1 |
Javascript | Javascript | fix use of hydrateroot in devtools test | 061ac27bc9c30e758301d9db823677a0803938c8 | <ide><path>packages/react-devtools-shared/src/__tests__/inspectedElement-test.js
<ide> describe('InspectedElement', () => {
<ide> await utils.actAsync(() => {
<ide> const container = document.createElement('div');
<ide> container.innerHTML = '<div></div>';
<del> ReactDOMClient.hydrateRoot(container... | 1 |
Python | Python | add new script, clean up both | d9d47174463dd2d185337c7787a0b88be9460336 | <ide><path>research/object_detection/dataset_tools/create_ava_actions_tf_record.py
<ide> required files are downloaded (_download_data) which enables constructing the
<ide> label map. Then (in generate_examples), for each split in the data set, the
<ide> metadata and image frames are generated from the annotations for ... | 2 |
Text | Text | replace github wiki links with apache cwiki links | b1038284009c9da359fcb2e1bd32a691e2a1541f | <ide><path>README.md
<ide> monitor progress, and troubleshoot issues when needed.
<ide> ## Getting started
<ide> Please visit the Airflow Platform documentation for help with [installing Airflow](http://pythonhosted.org/airflow/installation.html), getting a [quick start](http://pythonhosted.org/airflow/start.html), or ... | 1 |
PHP | PHP | set an array and adding another option | 757460ca160cea6d14b25427c000495c01395e7b | <ide><path>Cake/ORM/Entity.php
<ide> class Entity implements \ArrayAccess, \JsonSerializable {
<ide> protected $_errors = [];
<ide>
<ide> /**
<del> * List of properties in this entity that can be set safely
<del> * an empty array means "all"
<add> * Map of properties in this entity that can be safely assigned, each
<... | 3 |
Text | Text | fix typos, grammar, more concise wording | 4982374739a37e349b82ab168fb2f43a55f3287c | <ide><path>docs/sources/project/set-up-dev-env.md
<ide> page_keywords: development, inception, container, image Dockerfile, dependencies
<ide> In this section, you learn to develop like a member of Docker's core team.
<ide> The `docker` repository includes a `Dockerfile` at its root. This file defines
<ide> Docker's de... | 2 |
Go | Go | improve error message to print the tag | bc45428220e4a8d05d9a0cbc701a729f7fe2aa8d | <ide><path>graph/pull.go
<ide> func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, localName,
<ide> repoData, err := r.GetRepositoryData(remoteName)
<ide> if err != nil {
<ide> if strings.Contains(err.Error(), "HTTP code: 404") {
<del> return fmt.Errorf("Error: image %s not found", remoteName)
<... | 1 |
PHP | PHP | update docblocks and simplify code | 057374882af9b50c76517e63b3675c43083171a7 | <ide><path>src/Illuminate/Log/LogManager.php
<ide> public function __construct($app)
<ide> /**
<ide> * Get a log channel instance.
<ide> *
<del> * @param string $driver
<add> * @param string|null $channel
<ide> * @return mixed
<ide> */
<ide> public function channel($channel = nul... | 1 |
Python | Python | fix comment typo | a24f830604fc150526d9fd4596a4f3900916abe9 | <ide><path>pytorch_transformers/modeling_bert.py
<ide> def forward(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm
<ide> sequence_output = outputs[0]
<ide> prediction_scores = self.cls(sequence_output)
<ide>
<del> outputs = (prediction_scores,) + outputs[2:] # Add hidden st... | 1 |
Ruby | Ruby | fix indentation for test formulae | cdb07d89ae54468d66a3f6948c937b00a3bbcdf0 | <ide><path>Library/Homebrew/global.rb
<ide> require "active_support/core_ext/file/atomic"
<ide> require "active_support/core_ext/enumerable"
<ide> require "active_support/core_ext/string/exclude"
<add>require "active_support/core_ext/string/indent"
<ide>
<ide> I18n.backend.available_locales # Initialize locales so the... | 3 |
Javascript | Javascript | unify systrace native hook argument passing | 52e3ae9063705bac53bad99ffe23976c29c8f1b2 | <ide><path>Libraries/Performance/Systrace.js
<ide> const Systrace = {
<ide> _asyncCookie++;
<ide> profileName = typeof profileName === 'function' ?
<ide> profileName() : profileName;
<del> global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie, 0);
<add> global.nativ... | 1 |
Python | Python | remove unnecessary wrapper function | a9eebae822da02694fcf327e396f7d278e7f57e6 | <ide><path>libcloud/common/openstack.py
<ide> def morph_action_hook(self, action):
<ide> self._populate_hosts_and_request_paths()
<ide> return super(OpenStackBaseConnection, self).morph_action_hook(action)
<ide>
<del> def request(self, **kwargs):
<del> return super(OpenStackBaseConnection, se... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.