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 | allow cleaning from non-cwd | 5a840cc39e1b6f823978e3cd3a8dc8f3e7a65108 | <ide><path>server/build/clean.js
<ide> import getConfig from '../config'
<ide>
<ide> export default function clean (dir) {
<ide> const dist = getConfig(dir).distDir
<del> return del(resolve(dir, dist))
<add> return del(resolve(dir, dist), { force: true })
<ide> } | 1 |
Go | Go | add new `local` log driver | a351b38e7217af059eb2f8fc3dba14dc03836a45 | <ide><path>container/container.go
<ide> import (
<ide> "github.com/docker/docker/daemon/exec"
<ide> "github.com/docker/docker/daemon/logger"
<ide> "github.com/docker/docker/daemon/logger/jsonfilelog"
<add> "github.com/docker/docker/daemon/logger/local"
<ide> "github.com/docker/docker/daemon/network"
<add> "github.c... | 7 |
Go | Go | apply apparmor profile | 94c07441c233ed4b738b97ca19774912f728075e | <ide><path>builder/builder-next/builder.go
<ide> type Opt struct {
<ide> Rootless bool
<ide> IdentityMapping *idtools.IdentityMapping
<ide> DNSConfig config.DNSConfig
<add> ApparmorProfile string
<ide> }
<ide>
<ide> // Builder can build using BuildKit backend
<ide><path>builder/builder-... | 7 |
Javascript | Javascript | remove workaround for adreno | 03f35a96ae36507a2d234f6f0726dd64393ee49d | <ide><path>examples/jsm/nodes/math/MathNode.js
<ide> import TempNode from '../core/TempNode.js';
<ide> import ExpressionNode from '../core/ExpressionNode.js';
<del>import JoinNode from '../utils/JoinNode.js';
<ide> import SplitNode from '../utils/SplitNode.js';
<ide> import OperatorNode from './OperatorNode.js';
<ide> ... | 1 |
Javascript | Javascript | remove unused code | 025d3d0836b16be7eb970743c67b64d9cb670d23 | <ide><path>lib/optimize/SideEffectsFlagPlugin.js
<ide>
<ide> const mm = require("micromatch");
<ide> const HarmonyExportImportedSpecifierDependency = require("../dependencies/HarmonyExportImportedSpecifierDependency");
<del>const HarmonyImportSideEffectDependency = require("../dependencies/HarmonyImportSideEffectDepen... | 1 |
Go | Go | adjust warning strings for cgroup v2 | 00225e220fb18283dcf9e4fa6625fad6746d8a50 | <ide><path>daemon/info_unix.go
<ide> func (daemon *Daemon) fillPlatformInfo(v *types.Info, sysInfo *sysinfo.SysInfo)
<ide> // blkio weight is not available on cgroup v1 since kernel 5.0.
<ide> // Warning is not printed on cgroup v1, because there is no action user can take.
<ide> // On cgroup v2, blkio weight ... | 1 |
Python | Python | remove dt_double from the t5 graph | babd7b1a92a12d88516f4081dd37a0df27259c35 | <ide><path>src/transformers/models/t5/modeling_tf_t5.py
<ide> def _relative_position_bucket(relative_position, bidirectional=True, num_buckets
<ide> max_exact = num_buckets // 2
<ide> is_small = tf.math.less(relative_position, max_exact)
<ide> relative_position_if_large = max_exact + tf.cast(
<d... | 1 |
PHP | PHP | fix memory leak in eagerloader | c5cb54cbe46ab8ff2cedceddd0d63d8672982a92 | <ide><path>src/ORM/EagerLoader.php
<ide> public function associationsMap($table)
<ide> return $map;
<ide> }
<ide>
<del> $visitor = function ($level, $matching = false) use (&$visitor, &$map) {
<del> /* @var \Cake\ORM\EagerLoadable $meta */
<del> foreach ($level as $asso... | 1 |
Python | Python | replace list creation with list literal" | 571b9eb999e27df33681537af8a033d2320e3667 | <ide><path>glances/plugins/glances_help.py
<ide> def get_view_data(self, args=None):
<ide>
<ide> def msg_curse(self, args=None):
<ide> """Return the list to display in the curse interface."""
<del> ret = [
<del> # Header
<del> self.curse_add_line(self.view_data['version'], 'TIT... | 1 |
Mixed | Javascript | replace validator and error | 8c4b8b201ada6b76d5306c9c7f352e45087fb4a9 | <ide><path>doc/api/crypto.md
<ide> This property is deprecated. Please use `crypto.setFips()` and
<ide>
<ide> <!-- YAML
<ide> added: v15.8.0
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/41678
<add> description: Passing an invalid callback to the `callback` argument
... | 78 |
Python | Python | remove unused variable in parse_error | 137d232aeeceab3bae17312048d54853d37b8319 | <ide><path>libcloud/common/openstack.py
<ide> def parse_body(self):
<ide> return self.body
<ide>
<ide> def parse_error(self):
<del> text = None
<ide> body = self.parse_body()
<ide>
<ide> if self.has_content_type('application/xml'): | 1 |
Ruby | Ruby | fix typo in the documentation | 1a06f5dc09dcb71c3a8196c3905a3f6909a0f04e | <ide><path>actionview/lib/action_view/model_naming.rb
<ide>
<ide> module ActionView
<ide> module ModelNaming # :nodoc:
<del> # Converts the given object to an ActiveModel compliant one.
<add> # Converts the given object to an Active Model compliant one.
<ide> def convert_to_model(object)
<ide> object... | 1 |
Go | Go | remove dead code | ee230d8fdda6a1901c2adc394b5fb8471ec7aa51 | <ide><path>client/errors.go
<ide> type notFound interface {
<ide> // IsErrNotFound returns true if the error is a NotFound error, which is returned
<ide> // by the API when some object is not found.
<ide> func IsErrNotFound(err error) bool {
<del> var e notFound
<del> if errors.As(err, &e) {
<add> if errdefs.IsNotFound... | 3 |
Javascript | Javascript | resolve local route promises | 885fb0dd0743859a8985c23e4d0c1855a2be711e | <ide><path>src/ng/directive/ngView.js
<ide> var ngViewDirective = ['$http', '$templateCache', '$route', '$anchorScroll', '$c
<ide> restrict: 'ECA',
<ide> terminal: true,
<ide> link: function(scope, element, attr) {
<del> var changeCounter = 0,
<del> lastScope,
<add> var lastScope,
<ide> ... | 4 |
Text | Text | add documentation for definition list helper | 5942771ce9bd69d46ce2b84ac683681c322a776e | <ide><path>laravel/documentation/views/html.md
<ide> The "mailto" method on the HTML class obfuscates the given e-mail address so it
<ide> echo HTML::ol(array('Get Peanut Butter', 'Get Chocolate', 'Feast'));
<ide>
<ide> echo HTML::ul(array('Ubuntu', 'Snow Leopard', 'Windows'));
<add>
<add> echo HTML::dl(array('Ubun... | 1 |
Javascript | Javascript | use unique filenames in fs benchmarks | cfda245706249255b517c2c76252c50377f7c616 | <ide><path>benchmark/fs/read-stream-throughput.js
<ide>
<ide> const path = require('path');
<ide> const common = require('../common.js');
<del>const filename = path.resolve(__dirname, '.removeme-benchmark-garbage');
<add>const filename = path.resolve(__dirname,
<add> `.removeme-benchmark-g... | 3 |
Javascript | Javascript | improve readability of computetangents() | a9f43b83b9ac50b5eea047fa0c2359f79ef9c2a3 | <ide><path>examples/js/utils/BufferGeometryUtils.js
<ide> THREE.BufferGeometryUtils = {
<ide> uvB.fromArray( uvs, b * 2 );
<ide> uvC.fromArray( uvs, c * 2 );
<ide>
<del> var x1 = vB.x - vA.x;
<del> var x2 = vC.x - vA.x;
<add> vB.sub( vA );
<add> vC.sub( vA );
<ide>
<del> var y1 = vB.y - vA.y;
<del> ... | 2 |
Ruby | Ruby | use #prepend rather than using 2 aliases | d3684c4154df66059ba77d022eca285563b8f506 | <ide><path>activesupport/lib/active_support/core_ext/range/each.rb
<del>class Range #:nodoc:
<add>module ActiveSupport
<add> module EachTimeWithZone #:nodoc:
<add> def each(&block)
<add> ensure_iteration_allowed
<add> super
<add> end
<ide>
<del> def each_with_time_with_zone(&block)
<del> ensure_it... | 2 |
PHP | PHP | add test case for quoted strings | bf0cd7ef2fb5fe6c0322323025e4e6b5ed698612 | <ide><path>tests/TestCase/I18n/Parser/PoFileParserTest.php
<ide> public function testParseMultiLine() {
<ide> $this->assertCount(12, $messages);
<ide> $this->assertTextEquals("v\nsecond line", $messages["valid\nsecond line"]);
<ide> }
<add>
<add>/**
<add> * Test parsing a file with quoted strings
<add> *
<add> * @... | 1 |
Python | Python | add acl_policy parameter to gcstos3operator | dd98b21494ff6036242b63268140abe1294b3657 | <ide><path>airflow/providers/amazon/aws/transfers/gcs_to_s3.py
<ide> class GCSToS3Operator(BaseOperator):
<ide> Service Account Token Creator IAM role to the directly preceding identity, with first
<ide> account from the list granting this role to the originating account (templated).
<ide> :type goo... | 2 |
Text | Text | add the text "необходимо" instead of "должен" | 445b619515ec64f70715cef672c8542ad4eccf08 | <ide><path>guide/russian/angular/animations/index.md
<ide> localeTitle: Анимации
<ide>
<ide> #### Настройка анимаций
<ide>
<del>Перед анимацией `BrowserAnimationsModule` должен включать в массив импорта корневого модуля. Он доступен из `@angular/platform-browser/animations` . Этот NgModule обеспечивает работу анимаци... | 1 |
Python | Python | fix examples in docstring | 6ec1ee9ec28ead1a7c065153df32271ead95b417 | <ide><path>pytorch_transformers/modeling_bert.py
<ide> class BertModel(BertPreTrainedModel):
<ide>
<ide> Examples::
<ide>
<del> >>> tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
<del> >>> model = BertModel.from_pretrained('bert-base-uncased')
<del> >>> input_ids = torch.tenso... | 4 |
PHP | PHP | fix bug in query string construction | 92a1c709181c4680fc5746c61446e0a1637d4806 | <ide><path>laravel/paginator.php
<ide> protected function element($element, $text, $page, $disabler)
<ide> */
<ide> protected function appendage($element, $page)
<ide> {
<del> if (is_null($this->appendage))
<add> $this->appendage = '?page=%s';
<add>
<add> if (count($this->appends) > 0)
<ide> {
<del> $this->a... | 1 |
Go | Go | increase raft electiontick to 10xheartbeattick | 6abee2008b314a65553202b15d9a333d171e3433 | <ide><path>daemon/cluster/noderunner.go
<ide> func (n *nodeRunner) start(conf nodeStartConfig) error {
<ide> n.cluster.config.Backend,
<ide> n.cluster.config.PluginBackend,
<ide> n.cluster.config.ImageBackend),
<del> HeartbeatTick: 1,
<del> ElectionTick: 3,
<add> HeartbeatTick: 1,
<add> // Recommend... | 1 |
Text | Text | move 5 collaborators to emeritus status | 7a687624b4b5c7de1a2a33944dc44df76723309a | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Yuta Hiroto** <hello@hiroppy.me> (he/him)
<ide> * [iarna](https://github.com/iarna) -
<ide> **Rebecca Turner** <me@re-becca.org>
<del>* [imran-iq](https://github.com/imran-iq) -
<del>**Imran Iqbal** <... | 1 |
Javascript | Javascript | fix email and refactor | 58b883f06c8b0c6dd90e1302545a956ca7affea6 | <ide><path>server/boot/certificate.js
<ide> function sendCertifiedEmail(
<ide> const notifyUser = {
<ide> type: 'email',
<ide> to: email,
<del> from: 'quincy@freecodecamp.org',
<del> subject: dedent`Congratulations on completing all of the
<del> freeCodeCamp certificates!`,
<add> from: 'team@fre... | 1 |
Javascript | Javascript | remove unnecessary bind | 454757438670585d172c0c2129959daa7fcf25a2 | <ide><path>lib/perf_hooks.js
<ide> function getObserversList(type) {
<ide> return list;
<ide> }
<ide>
<del>function doNotify() {
<del> this[kQueued] = false;
<del> this.runInAsyncScope(this[kCallback], this, this[kBuffer], this);
<del> this[kBuffer][kEntries] = [];
<del> L.init(this[kBuffer][kEntries]);
<add>fun... | 1 |
Python | Python | fix bugs in pep 3118 format string parsing | 204efabe8d40e0ff8b7e81518476eb5253e4d09d | <ide><path>numpy/core/_internal.py
<ide> def _dtype_from_pep3118(spec, byteorder='@', is_subdtype=False):
<ide> # Not supported
<ide> raise ValueError("Non item-size 1 structures not supported")
<ide> elif spec[0] in type_map_chars:
<del> j = 1
<del> for j i... | 2 |
Go | Go | fix some typos | 34b82a69b94ef9c7913e2809ae918e6f4331201e | <ide><path>profiles/apparmor/apparmor.go
<ide> func InstallDefault(name string) error {
<ide> return nil
<ide> }
<ide>
<del>// IsLoaded checks if a passed profile as been loaded into the kernel.
<add>// IsLoaded checks if a passed profile has been loaded into the kernel.
<ide> func IsLoaded(name string) error {
<ide>... | 11 |
PHP | PHP | fix cs error | dd12292cc8f83052d8c36412d77805ab311419a2 | <ide><path>tests/TestCase/Http/ClientTest.php
<ide> public function testGetSimpleWithHeadersAndCookies()
<ide> 'split' => 'value',
<ide> ];
<ide>
<del> $mock = $this->getMockBuilder('Cake\Http\Client\Adapter\Stream')
<add> $mock = $this->getMockBuilder(Stream::class)
<ide> ... | 1 |
Python | Python | fix wrong checkpoint paths in doc examples | 16870d114b652954bb0ccf069ad7433a93ac06fb | <ide><path>src/transformers/models/big_bird/modeling_big_bird.py
<ide> def forward(
<ide> >>> from transformers import BigBirdTokenizer, BigBirdForPreTraining
<ide> >>> import torch
<ide>
<del> >>> tokenizer = BigBirdTokenizer.from_pretrained('bigbird-roberta-base')
<del> ... | 4 |
Javascript | Javascript | add unstable prefix to experimental apis | fe7163e73dadceda2655736d97cdd745d7abc8ea | <ide><path>fixtures/blocks/src/server/App.block.js
<ide> /* eslint-disable import/first */
<ide>
<ide> import * as React from 'react';
<del>import {block} from 'react';
<add>import {unstable_block as block} from 'react';
<ide>
<ide> // Server
<ide>
<ide><path>fixtures/dom/src/__tests__/wrong-act-test.js
<ide> it("do... | 31 |
Javascript | Javascript | fix the vrmlloader `this` scope | 770b4296c0f2ceca60632eed7f0b96c726524f1c | <ide><path>examples/js/loaders/VRMLLoader.js
<ide> THREE.VRMLLoader.prototype = {
<ide>
<ide> parse: function ( data ) {
<ide>
<add> var scope = this;
<ide> var texturePath = this.texturePath || '';
<ide>
<ide> var textureLoader = new THREE.TextureLoader( this.manager );
<ide> THREE.VRMLLoader.prototype = {
<i... | 1 |
Text | Text | add a note about downcasing submit tag | 5d87bb4da8cce4687d83a81ac5bed07afa4f65b2 | <ide><path>guides/source/5_0_release_notes.md
<ide> Please refer to the [Changelog][action-view] for detailed changes.
<ide> button on submit to prevent double submits.
<ide> ([Pull Request](https://github.com/rails/rails/pull/21135))
<ide>
<add>* Downcase model name in form submit tags rather than humanize.... | 1 |
Text | Text | add contributing.md file | 9443dea4e5f50c14674fe92a11d70c8a8a8beae0 | <ide><path>CONTRIBUTING.md
<add># Contributing to Glances
<add>
<add>Looking to contribute something to Glances ? **Here's how you can help.**
<add>
<add>Please take a moment to review this document in order to make the contribution
<add>process easy and effective for everyone involved.
<add>
<add>Following these guide... | 1 |
PHP | PHP | remove unused imports | 0dbd340ebb1a909c00c26d09a81fce93c2cfbffd | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> use Swift_Mailer;
<ide> use Swift_Message;
<ide> use Illuminate\Support\Arr;
<del>use Illuminate\Support\Str;
<del>use SuperClosure\Serializer;
<ide> use InvalidArgumentException;
<ide> use Illuminate\Contracts\View\Factory;
<ide> use Illuminate\Contracts\Events\Dispatche... | 1 |
Ruby | Ruby | say something when running bundle commands | 2561a1f546b304032b6d2702c59bdf5492990ba6 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def gem_for_javascript
<ide> end
<ide>
<ide> def bundle_command(command)
<add> say_status :run, "bundle #{command}"
<add>
<ide> # We use backticks and #print here instead of vanilla #system because it
<ide> # is easier to sil... | 1 |
Javascript | Javascript | fix path in doctool/test-doctool-json | 0048169f5e6d280ffd4efd9ce3812bb09ff7309e | <ide><path>test/doctool/test-doctool-json.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<del>// The doctool currently uses js-yaml from the tool/eslint/ tree.
<add>// The doctool currently uses js-yaml from the tool/node_modules/eslint/ tree.
<ide> try {
<del> require('../../tools/eslint/nod... | 1 |
Text | Text | translate 10.2 to korean | bf6d9811e72b5a5d96f2c78d9e35da4543e3d24e | <ide><path>docs/docs/10.2-form-input-binding-sugar.ko-KR.md
<add>---
<add>id: two-way-binding-helpers-ko-KR
<add>title: 양방향 바인딩 핼퍼
<add>permalink: two-way-binding-helpers-ko-KR.html
<add>prev: animation-ko-KR.html
<add>next: class-name-manipulation-ko-KR.html
<add>---
<add>
<add>`ReactLink`는 React에서 양방향 바인딩을 표현하는 쉬운 방법... | 1 |
PHP | PHP | use di and contract instead of static method | a5ccc1302223042a2b5656da009e8e19aaf4e9df | <ide><path>src/Illuminate/Queue/CallQueuedHandler.php
<ide> use Exception;
<ide> use ReflectionClass;
<ide> use Illuminate\Pipeline\Pipeline;
<del>use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Queue\Job;
<ide> use Illuminate\Contracts\Bus\Dispatcher;
<add>use Illuminate\Contracts\Container\Containe... | 2 |
Text | Text | fix optionality of callback arg of checkprime | 1ecc6c05405dc23473567e49df689e0e9aa78581 | <ide><path>doc/api/crypto.md
<ide> is currently in use. Setting to true requires a FIPS build of Node.js.
<ide> This property is deprecated. Please use `crypto.setFips()` and
<ide> `crypto.getFips()` instead.
<ide>
<del>### `crypto.checkPrime(candidate[, options[, callback]])`
<add>### `crypto.checkPrime(candidate[, o... | 1 |
Ruby | Ruby | simplify console with helpers | d75a2345015046e08f8191748f0e246e1b9f9703 | <ide><path>actionpack/lib/action_view/helpers.rb
<ide> module ClassMethods
<ide> include FormHelper
<ide> include FormOptionsHelper
<ide> include FormTagHelper
<add> include JavaScriptHelper
<ide> include NumberHelper
<ide> include PrototypeHelper
<ide> include RecordIdentificationHelper
<ide... | 2 |
Python | Python | add standardized get_vocab method to tokenizers | c36416e53c29da8b6193f4a36d7b024c5f513495 | <ide><path>src/transformers/tokenization_albert.py
<ide> def __init__(
<ide> def vocab_size(self):
<ide> return len(self.sp_model)
<ide>
<add> def get_vocab(self):
<add> vocab = {self.convert_ids_to_tokens(i): i for i in range(self.vocab_size)}
<add> vocab.update(self.added_tokens_encoder)... | 12 |
Javascript | Javascript | invoke createconnection when no agent | 0a01a42e8729cfb1c2bbf59e98daac9d13b06c80 | <ide><path>lib/http.js
<ide> function ClientRequest(options, cb) {
<ide> var self = this;
<ide> OutgoingMessage.call(self);
<ide>
<del> self.agent = options.agent === undefined ? globalAgent : options.agent;
<add> self.agent = options.agent;
<add> if (!options.agent && options.agent !== false && !options.create... | 2 |
Ruby | Ruby | convert `brew options` test to spec | be2645b04f3b001069daf353289a19155afaf00c | <ide><path>Library/Homebrew/test/cmd/options_spec.rb
<add>describe "brew options", :integration_test do
<add> it "prints a given Formula's options" do
<add> setup_test_formula "testball", <<-EOS.undent
<add> depends_on "bar" => :recommended
<add> EOS
<add>
<add> expect { brew "options", "testball" }
<add... | 2 |
PHP | PHP | make fix in other location | 063e5ae341c32220d4679d0215ab9b263d0c8a33 | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
<ide> public function newPivot(array $attributes = [], $exists = false)
<ide> {
<ide> $using = $this->using;
<ide>
<del> $pivot = $using ? new $using($this->parent, $attributes, $this->table, $exists)
<add> $pivot = $using ... | 1 |
Python | Python | fix mypy errors for ssh provider | da783f88a16e20211d7087bd5c8802dc002c78a8 | <ide><path>airflow/providers/ssh/hooks/ssh.py
<ide> import warnings
<ide> from base64 import decodebytes
<ide> from io import StringIO
<del>from typing import Dict, Optional, Tuple, Union
<add>from typing import Any, Dict, Optional, Sequence, Tuple, Type, Union
<ide>
<ide> import paramiko
<ide> from paramiko.config im... | 2 |
Ruby | Ruby | require https for all *.googlecode.com resources | 2e3a0263d4c91525dbb907122c87e90af75c20a2 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_urls
<ide> end
<ide>
<ide> # Check for Google Code download urls, https:// is preferred
<add> # Intentionally not extending this to SVN repositories due to certificate
<add> # issues.
<ide> urls.grep(%r[^http://.*\.googlecode\.com/files.*]) do ... | 1 |
PHP | PHP | fix styleci warning | 7414de1dbe645e371f9ddff758e11aa287ae92c8 | <ide><path>src/Illuminate/Foundation/Testing/TestCase.php
<ide>
<ide> use Mockery;
<ide> use Carbon\Carbon;
<del>use Illuminate\Support\Str;
<ide> use Carbon\CarbonImmutable;
<add>use Illuminate\Support\Str;
<ide> use Illuminate\Support\Facades\Facade;
<ide> use Illuminate\Database\Eloquent\Model;
<ide> use Mockery\Ex... | 1 |
Java | Java | use databuffer.write in charsequenceencoder | 4955d08f2891810627961ac4df660b9bed64a30b | <ide><path>spring-core/src/main/java/org/springframework/core/codec/CharSequenceEncoder.java
<ide>
<ide> package org.springframework.core.codec;
<ide>
<del>import java.nio.ByteBuffer;
<del>import java.nio.CharBuffer;
<ide> import java.nio.charset.Charset;
<add>import java.nio.charset.CoderMalfunctionError;
<ide> impo... | 2 |
Ruby | Ruby | fix typo in named_scope documentation | 7a34ab7d60756856b79d2f8ef33ac843a78b70ad | <ide><path>activerecord/lib/active_record/named_scope.rb
<ide> def scoped(options = nil)
<ide> # on scopes
<ide> #
<ide> # class Article < ActiveRecord::Base
<del> # scope :pubished, where(:published => true)
<add> # scope :published, where(:published => true)
<ide> # sc... | 1 |
Text | Text | add a sql example for `not` [ci skip] | a8d1412a3227ac3d14a40f0e62c9cd83b515ff95 | <ide><path>guides/source/active_record_querying.md
<ide> SELECT * FROM clients WHERE (clients.orders_count IN (1,3,5))
<ide> Post.where.not(author: author)
<ide> ```
<ide>
<del>In other words, this query can be generated by calling `where` with no argument, then immediately chain with `not` passing `where` conditions.... | 1 |
Javascript | Javascript | use mustcall() in test-http-timeout | 1111111122342506eefa7fc16f6a2b15bd239510 | <ide><path>test/parallel/test-http-timeout.js
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide>
<ide> const http = require('http');
<ide> const Countdown = require('../common/countdown');
<add>const MAX_COUNT = 11;
<ide... | 1 |
Javascript | Javascript | remove second arg from assert.iferror() | dcfd323c6be53c6ea812e5d98eee8f4e8d31dc57 | <ide><path>test/parallel/test-fs-readfile.js
<ide> for (const e of fileInfo) {
<ide> for (const e of fileInfo) {
<ide> fs.readFile(e.name, common.mustCall((err, buf) => {
<ide> console.log(`Validating readFile on file ${e.name} of length ${e.len}`);
<del> assert.ifError(err, 'An error occurred');
<add> asse... | 1 |
Ruby | Ruby | add .dry_run? method | f17429f842222428d31095e0f604681764824afa | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup
<ide> end
<ide> clean_cache
<ide> # seems like a good time to do some additional cleanup
<del> Homebrew.prune unless ARGV.switch? 'n'
<add> Homebrew.prune unless ARGV.dry_run?
<ide> else
<ide> ARGV.formulae.each do |f|
<i... | 3 |
Java | Java | investigate claim on so regarding ctx cache in tcf | c2908399141381de5b9f79f29d5b90c822a7b7e3 | <ide><path>spring-test/src/test/java/org/springframework/test/context/support/AbstractContextLoaderUtilsTests.java
<ide> import org.springframework.test.context.ContextLoader;
<ide> import org.springframework.test.context.MergedContextConfiguration;
<ide> import org.springframework.test.context.TestContextBootstrapper;... | 2 |
Text | Text | update testing.md with pre-processing information | f88fe71ee6c8aed4f906c06b97a269fd1f759115 | <ide><path>docs/Testing.md
<ide> npm test
<ide>
<ide> from the react-native root, and we encourage you to add your own tests for any components you want to contribute to. See [`getImageSource-test.js`](https://github.com/facebook/react-native/blob/master/Examples/Movies/__tests__/getImageSource-test.js) for a basic e... | 1 |
PHP | PHP | fix coding style | 7d4421ebb479d66e7672ac763c221e86d0191b95 | <ide><path>src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
<ide> protected function getConfigurationFiles(Application $app)
<ide> /**
<ide> * Get the configuration file nesting path.
<ide> *
<del> * @param \Symfony\Component\Finder\SplFileInfo $file
<add> * @param \Symfony\Component\Finder\SplFileInf... | 1 |
Ruby | Ruby | use options hash for install_bottle? | a7e1dbae63ee62e7900dc7fbb3f67ea5c435a0a4 | <ide><path>Library/Homebrew/bottles.rb
<ide> require 'extend/ARGV'
<ide> require 'bottle_version'
<ide>
<del># TODO: use options={} for some arguments.
<del>
<ide> def bottle_filename f, bottle_revision=nil
<ide> name = f.name.downcase
<ide> version = f.stable.version
<ide> bottle_revision ||= f.bottle.revision.... | 2 |
Java | Java | fix bug in webclientdatabufferallocatingtests | 38052e77b710a0fa373483bc6e55d68c26e6ec38 | <ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientDataBufferAllocatingTests.java
<ide> import io.netty.channel.ChannelOption;
<ide> import okhttp3.mockwebserver.MockResponse;
<ide> import okhttp3.mockwebserver.MockWebServer;
<add>import org.junit.jupiter.api.AfterAll;
<id... | 1 |
PHP | PHP | change indent style | fef793a9ab03a0e7d867fa68939e4055c321af38 | <ide><path>src/Illuminate/Routing/Router.php
<ide> protected function getGroupResourceName($prefix, $resource, $method)
<ide> {
<ide> $group = str_replace('/', '.', $this->getLastGroupPrefix());
<ide>
<del> if (empty($group))
<del> {
<del> return trim("{$prefix}{$resource}.{$method}", '.');
<del>... | 1 |
PHP | PHP | fix translate behavior tests | 2a9f7108d965e0360442fabaab480b0ed12bf1b4 | <ide><path>tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php
<ide> public function testMatchingDoesNotCreateAssociationProperty()
<ide> $table = $this->getTableLocator()->get('Articles');
<ide> $table->hasMany('Comments');
<ide>
<del> $table->Comments->addBehavior('Translate');
<add> ... | 1 |
Text | Text | update compiler requirements in readme | 081e94a90d82359ababd12b4cda913467284a40d | <ide><path>README.md
<ide> Evented I/O for V8 javascript.
<ide>
<ide> Prerequisites (Unix only):
<ide>
<del> * GCC 4.2 or newer
<del> * G++ 4.2 or newer
<add> * `gcc` and `g++` 4.8 or newer, or
<add> * `clang` and `clang++` 3.3 or newer
<ide> * Python 2.6 or 2.7
<ide> * GNU Make 3.81 or newer
<ide... | 1 |
Javascript | Javascript | remove a pair of outdated comments | 4d91d0164d9eff466b4d3b63ecbd50944b5cedfa | <ide><path>lib/_http_common.js
<ide> function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
<ide> return parser.onIncoming(incoming, shouldKeepAlive);
<ide> }
<ide>
<del>// XXX This is a mess.
<del>// TODO: http.Parser should be a Writable emits request/response events.
<ide> function parserOn... | 1 |
Javascript | Javascript | restore original canvas context when destroying | 85f3755f9abd6a1b5224f61cb4e209739f850eed | <ide><path>src/Chart.Core.js
<ide> destroy : function(){
<ide> this.clear();
<ide> unbindEvents(this, this.events);
<add> var canvas = this.chart.canvas;
<add>
<add> // Reset canvas height/width attributes starts a fresh with the canvas context
<add> canvas.width = this.chart.width;
<add> canvas.height ... | 1 |
Python | Python | clarify subdagoperator exception | fb6a7a8684977af49bab96580a5c07c254ba164f | <ide><path>airflow/operators/subdag_operator.py
<ide> def __init__(
<ide> super(SubDagOperator, self).__init__(*args, **kwargs)
<ide> if dag.dag_id + '.' + kwargs['task_id'] != subdag.dag_id:
<ide> raise AirflowException(
<del> "The subdag's dag_id should correspond to the par... | 1 |
Go | Go | avoid a data race in container/health.go | 53e0c5012637656de1765c330b2549aa7088b853 | <ide><path>container/health.go
<ide> func (s *Health) String() string {
<ide> case types.Starting:
<ide> return "health: starting"
<ide> default: // Healthy and Unhealthy are clear on their own
<del> return s.Health.Status
<add> return status
<ide> }
<ide> }
<ide> | 1 |
Javascript | Javascript | add scrolltoend ability to viewability tests | ca8a75536ecb383d459fe922302b499dad66328e | <ide><path>packages/rn-tester/js/examples/FlatList/FlatListExamples.js
<ide> export function FlatList_onViewableItemsChanged(props: {
<ide> viewabilityConfig: ViewabilityConfig,
<ide> offScreen?: ?boolean,
<ide> horizontal?: ?boolean,
<add> useScrollRefScroll?: ?boolean,
<ide> }): React.Node {
<del> const {view... | 2 |
Javascript | Javascript | add test case for ssg full re-export | f1d0e577e6a29a14caba521afa11396fc3bf46f9 | <ide><path>test/unit/babel-plugin-next-ssg-transform.test.js
<ide> describe('babel plugin (next-ssg-transform)', () => {
<ide> `"class El extends React.Component{render(){return __jsx(\\"div\\",null);}}const a=5;export var __N_SSG=true;export{El as default,a};"`
<ide> )
<ide> })
<add>
<add> it('sho... | 1 |
Go | Go | fix duplicate calls to mountable | ffa7233d1538363fe12ad609e720b8d75e8768de | <ide><path>api/server/router/build/build_routes.go
<ide> func (br *buildRouter) postBuild(ctx context.Context, w http.ResponseWriter, r *
<ide> output.Write(notVerboseBuffer.Bytes())
<ide> }
<ide>
<del> logrus.Debugf("isflushed %v", output.Flushed())
<ide> // Do not write the error in the http output if it's s... | 2 |
Text | Text | add v3.22.1 to changelog.md | f2104f2d2a092cfdb95317f1f6745dcc498f1334 | <ide><path>CHANGELOG.md
<ide> - [#19136](https://github.com/emberjs/ember.js/pull/19136) [BUGFIX] Update router microlib to improve Transition related debugging
<ide> - [#19173](https://github.com/emberjs/ember.js/pull/19173) [BUGFIX] Enforce usage of `capabilities` generation.
<ide>
<add>### v3.22.1 (November 10, 202... | 1 |
Python | Python | fix typo in train.py | c59cf48d7491a5d4fe512fb480d19bb8cf73743e | <ide><path>research/deeplab/train.py
<ide> def main(unused_argv):
<ide> first_clone_label = graph.get_tensor_by_name(
<ide> ('%s/%s:0' % (first_clone_scope, common.LABEL)).strip('/'))
<ide> # Scale up summary image pixel values for better visualization.
<del> pixel_scaling = max(1, 255 // dat... | 1 |
PHP | PHP | add test for abort case | 1c4b2134d361abf6648f5edc44778d15d54d3cee | <ide><path>tests/TestCase/Console/CommandTest.php
<ide> use Cake\TestSuite\Stub\ConsoleOutput;
<ide> use Cake\TestSuite\TestCase;
<ide> use InvalidArgumentException;
<add>use TestApp\Command\AbortCommand;
<ide> use TestApp\Command\AutoLoadModelCommand;
<ide> use TestApp\Command\DemoCommand;
<ide>
<ide> public function... | 1 |
Python | Python | add assertion for user data | a4a58f9c5b8fa4e1a6cd2d37a0356ba23d05540a | <ide><path>libcloud/test/__init__.py
<ide> def assertUrlContainsQueryParams(self, url, expected_params, strict=False):
<ide> self.assertDictEqual(params, expected_params)
<ide> else:
<ide> for key, value in expected_params.items():
<add> self.assertIn(key, params)
<ide> ... | 2 |
PHP | PHP | add tests for parsedatetime(1970) | 62885abbebcc5d7dd442ffc590da6db5f3cfd7a9 | <ide><path>tests/TestCase/I18n/TimeTest.php
<ide> public function testDebugInfo()
<ide> */
<ide> public function testParseDateTime()
<ide> {
<add> $time = Time::parseDateTime('01/01/1970 00:00am');
<add> $this->assertNotNull($time);
<add> $this->assertEquals('1970-01-01 00:00', $time->... | 1 |
Text | Text | remove quotation marks from code tag text | fe3f0b2ac48c277f2f1c3c8706c7187082d82c5d | <ide><path>curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.english.md
<ide> Camper Cat's Mortal Kombat survey results are in! Wrap a <code>time</code> tag a
<ide>
<ide> ```yml
<ide> tests:
<del> - text: Your code should have a <code>p</c... | 8 |
PHP | PHP | fix code style 2 | 4883bb5ae32ba3b79a67598932b648f8f85ecf32 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function qualifyColumns($columns)
<ide> foreach ($columns as $column) {
<ide> $qualifiedArray[] = $this->qualifyColumn($column);
<ide> }
<add>
<ide> return $qualifiedArray;
<ide> }
<ide> | 1 |
Javascript | Javascript | move beforeblur phase to prepareforcommit | bf55ea743496f4fb71df982af0324e322f25046c | <ide><path>packages/react-dom/src/client/ReactDOMHostConfig.js
<ide> import {
<ide> enableUseEventAPI,
<ide> enableScopeAPI,
<ide> } from 'shared/ReactFeatureFlags';
<del>import {HostComponent} from 'react-reconciler/src/ReactWorkTags';
<ide> import {
<ide> RESPONDER_EVENT_SYSTEM,
<ide> IS_PASSIVE,
<ide> import... | 7 |
PHP | PHP | fix alias usage | 609104806b8b639710268c75c22f43034c2b72db | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function firstOr($columns = ['*'], Closure $callback = null)
<ide> public function value($column)
<ide> {
<ide> if ($result = $this->first([$column])) {
<del> return $result->{$column};
<add> return $result->{Str:... | 1 |
Javascript | Javascript | fix mock for textinput | 5a3c6faee9c44a2d99b13d113c91dbf98990f8af | <ide><path>jest/setup.js
<ide> jest
<ide> mockComponent('../Libraries/Text/Text', MockNativeMethods),
<ide> )
<ide> .mock('../Libraries/Components/TextInput/TextInput', () =>
<del> mockComponent(
<del> '../Libraries/Components/TextInput/TextInput',
<del> MockNativeMethods,
<del> ),
<add> mock... | 1 |
Javascript | Javascript | add touch (zoom) support to d3.behavior.zoom | c29a12168770f34dd8117d698521d7a320c4a659 | <ide><path>d3.behavior.js
<ide> d3.behavior.zoom = function() {
<ide> z = 0,
<ide> listeners = [],
<ide> pan,
<del> zoom;
<add> zoom,
<add> last = 0;
<ide>
<ide> function zoom() {
<ide> var container = this
<ide> .on("mousedown", mousedown)
<ide> .on("mousewheel",... | 3 |
Text | Text | add 4.0 to security policy | 4bb89e7c5c3d57ea21daeb0fc4ac7e66ccaf0382 | <ide><path>SECURITY.md
<ide> We support fixing security issues on the following releases:
<ide>
<ide> | Version | Supported |
<ide> | ------- | ------------------ |
<add>| 4.0.x | :white_check_mark: |
<add>| 3.8.x | :white_check_mark: |
<ide> | 3.7.x | :white_check_mark: |
<del>| 3.6.x | :white_check_... | 1 |
Go | Go | remove httputils dependency from api client lib | 83b5729f6452de6b40719b9485947eea0bd0eedd | <ide><path>api/client/lib/image_build.go
<ide> import (
<ide> "encoding/json"
<ide> "net/http"
<ide> "net/url"
<add> "regexp"
<ide> "strconv"
<ide>
<ide> "github.com/docker/docker/api/types"
<del> "github.com/docker/docker/pkg/httputils"
<ide> "github.com/docker/docker/pkg/units"
<ide> "github.com/docker/docker... | 2 |
Javascript | Javascript | add minwithcomments and minlang into release tasks | 4352f3561e88f8ba9d60347f5e1b668a9baf8508 | <ide><path>Gruntfile.js
<ide> module.exports = function (grunt) {
<ide> grunt.registerTask('default', ['jshint', 'nodeunit']);
<ide>
<ide> // Task to be run when releasing a new version
<del> grunt.registerTask('release', ['jshint', 'nodeunit', 'concatlang', 'uglify']);
<add> grunt.registerTask('release'... | 1 |
Ruby | Ruby | move strict cop | ea77fce409879406b9caa6a745f6eef63cc32b3e | <ide><path>Library/Homebrew/rubocops/lines.rb
<ide> def autocorrect(node)
<ide> end
<ide>
<ide> class Miscellaneous < FormulaCop
<del> MAKE_CHECK_WHITELIST = %w[
<del> beecrypt
<del> ccrypt
<del> git
<del> gmp
<del> gnupg
<del> gnupg@1.4
<del> ... | 2 |
Javascript | Javascript | remove calculations inside 'const' declarations | a44f6e6cd9fa60f3b50113615ab1fdcbf2887eb4 | <ide><path>examples/js/SkyShader.js
<ide> THREE.ShaderLib[ 'sky' ] = {
<ide>
<ide> // wavelength of used primaries, according to preetham
<ide> "const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );",
<del> // this pre-calcuation replaces older TotalRayleigh(vec3 lambda) function
<add> // this pre-calcuation repla... | 1 |
Javascript | Javascript | remove needless assignment of null | 1081f0f33df3a6e8825489600967a6f9e469ebb6 | <ide><path>lib/fs.js
<ide> ReadStream.prototype._read = function(n) {
<ide>
<ide> if (!pool || pool.length - pool.used < kMinPoolSpace) {
<ide> // discard the old pool.
<del> pool = null;
<ide> allocNewPool(this._readableState.highWaterMark);
<ide> }
<ide> | 1 |
Ruby | Ruby | verify downloads by default | 3cfb028e7f15bc3c51783380d8358b1c7f141ec9 | <ide><path>Library/Homebrew/cmd/fetch.rb
<ide> def fetch_fetchable(f)
<ide> already_fetched = f.cached_download.exist?
<ide>
<ide> begin
<del> download = f.fetch
<add> download = f.fetch(verify_download_integrity: false)
<ide> rescue DownloadError
<ide> retry if retry_fetch? f
<ide> r... | 5 |
Javascript | Javascript | execute jquery#load callback with correct context | 5d20a3c3f10bda935c8370392a25e45719afa6b9 | <ide><path>src/ajax/load.js
<ide> jQuery.fn.load = function( url, params, callback ) {
<ide> // If it fails, this function gets "jqXHR", "status", "error"
<ide> } ).always( callback && function( jqXHR, status ) {
<ide> self.each( function() {
<del> callback.apply( self, response || [ jqXHR.responseText, statu... | 2 |
Python | Python | add support for custom scope name | 41aafda97ff4b7bc6125c07bbfe3658707414a81 | <ide><path>research/object_detection/utils/ops.py
<ide> def map_box_encodings(i):
<ide>
<ide>
<ide> def nearest_neighbor_upsampling(input_tensor, scale=None, height_scale=None,
<del> width_scale=None):
<add> width_scale=None,
<add> ... | 1 |
Text | Text | add changelog for eslint-plugin-react-hooks | 4e93b9364c978fd0c1224f8008dd19f88a82a048 | <ide><path>packages/eslint-plugin-react-hooks/CHANGELOG.md
<add>## 4.0.0
<add>
<add>* **New Violations:** Consider `PascalCase.useFoo()` calls as Hooks. ([@cyan33](https://github.com/cyan33) in [#18722](https://github.com/facebook/react/pull/18722))
<add>* **New Violations:** Check callback body when it's not written i... | 1 |
PHP | PHP | add missing tab | 024e5fbaf7a67008eec1bc99eaeefd8755a88cee | <ide><path>src/Illuminate/Queue/IronQueue.php
<ide> public function push($job, $data = '', $queue = null)
<ide> * @param string $queue
<ide> * @return mixed
<ide> */
<del>public function later($delay, $job, $data = '', $queue = null)
<add> public function later($delay, $job, $data = '', $queue = null)
<ide> {
... | 1 |
Javascript | Javascript | update current challenge for all challenges | f6fa7549065a6ae161dc7c251d44fc21efa12955 | <ide><path>client/src/templates/Challenges/backend/Show.js
<ide> import { graphql } from 'gatsby';
<ide>
<ide> import {
<ide> executeChallenge,
<add> challengeMounted,
<ide> challengeTestsSelector,
<ide> consoleOutputSelector,
<ide> initTests,
<ide> const reduxFormPropTypes = {
<ide> };
<ide>
<ide> const pro... | 7 |
Mixed | Text | kill react.initializetouchevents for good | 9c4c2f58ea103f84c055d2241c0f178c79d90fd9 | <ide><path>docs/docs/03-interactivity-and-dynamic-uis.md
<ide> React.render(
<ide>
<ide> With React you simply pass your event handler as a camelCased prop similar to how you'd do it in normal HTML. React ensures that all events behave identically in IE8 and above by implementing a synthetic event system. That is, Rea... | 8 |
Javascript | Javascript | reduce code logic. defer promises | b6f621fee381f4f71f86e5ba095034c69dd0bffe | <ide><path>common/models/user.js
<ide> import {
<ide> const debug = debugFactory('fcc:user:remote');
<ide> const BROWNIEPOINTS_TIMEOUT = [1, 'hour'];
<ide>
<del>const createEmailError = () => new Error(
<del> 'Please check to make sure the email is a valid email address.'
<add>const createEmailError = redirectTo => wr... | 1 |
PHP | PHP | correct doc blocks as per cs | 759c24e6608960d799141311905d3adeafa0f703 | <ide><path>lib/Cake/Console/ConsoleErrorHandler.php
<ide> public function handleError($code, $description, $file = null, $line = null, $co
<ide> /**
<ide> * Wrapper for exit(), used for testing.
<ide> *
<del> * @param int $code The exit code.
<add> * @param integer $code The exit code.
<ide> * @return void
<ide> */... | 4 |
Mixed | Javascript | add offsetgridlines option to line charts | 2677360f4bcda5109664c6f2fc93378f46f82760 | <ide><path>docs/01-Line-Chart.md
<ide> These are the customisation options specific to Line charts. These options are m
<ide> //String - A legend template
<ide> legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].s... | 2 |
Ruby | Ruby | use the build accessor rather than metaprogramming | 92eb96aca08a22d69d0c7a4455444e9af95acf63 | <ide><path>Library/Homebrew/formula.rb
<ide> def verify_download_integrity fn
<ide> end
<ide>
<ide> def test
<del> tab = Tab.for_formula(self)
<del> extend Module.new { define_method(:build) { tab } }
<add> self.build = Tab.for_formula(self)
<ide> ret = nil
<ide> mktemp do
<ide> @testpath = ... | 1 |
Ruby | Ruby | allow env overriding | 5d8a6e368f2c8fd5d2075cfb9dd8bb3928c2ac42 | <ide><path>Library/Homebrew/test/test_integration_cmds.rb
<ide>
<ide> class IntegrationCommandTests < Homebrew::TestCase
<ide> def cmd_output(*args)
<add> # 1.8-compatible way of writing def cmd_output(*args, **env)
<add> env = args.last.is_a?(Hash) ? args.pop : {}
<ide> cmd_args = %W[
<ide> -W0
<ide... | 1 |
Javascript | Javascript | use sortableset in modules | 4e5ef0d72d4a473074462a17114e327f59890925 | <ide><path>lib/Module.js
<ide> "use strict";
<ide>
<ide> const util = require("util");
<add>
<ide> const DependenciesBlock = require("./DependenciesBlock");
<ide> const ModuleReason = require("./ModuleReason");
<add>const SortableSet = require("./util/SortableSet");
<ide> const Template = require("./Template");
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.