content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | update usage with react doc | 10551a1e1e691882e51e8b94c01079cf5aea629b | <ide><path>docs/basics/UsageWithReact.md
<ide> Let’s write the components! We begin with the presentational components, so we
<ide>
<ide> ### Presentational Components
<ide>
<del>These are all normal React components, so we'll not stop and examine them in detail. Here they are:
<add>These are all normal React compone... | 1 |
Text | Text | add @othiym23 to list of collaborators | 34d1932135c9f53cf6d71f7a336d661bf3adf82d | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [mikeal](https://github.com/mikeal) - **Mikeal Rogers** <mikeal.rogers@gmail.com>
<ide> * [monsanto](https://github.com/monsanto) - **Christopher Monsanto** <chris@monsan.to>
<ide> * [Olegas](https://github.com/O... | 1 |
Javascript | Javascript | pass enhancer to base createstore | 72ae943646fe5e23e55e4b287744028bc46e593c | <ide><path>src/applyMiddleware.js
<ide> import compose from './compose'
<ide> * @returns {Function} A store enhancer applying the middleware.
<ide> */
<ide> export default function applyMiddleware(...middlewares) {
<del> return (createStore) => (reducer, initialState) => {
<del> var store = createStore(reducer, i... | 1 |
Ruby | Ruby | add test case | aaf1af3cb83dad300c87e8abf2d1717cc528ff36 | <ide><path>activerecord/test/cases/validations/presence_validation_test.rb
<ide> require 'models/man'
<ide> require 'models/face'
<ide> require 'models/interest'
<add>require 'models/speedometer'
<add>require 'models/dashboard'
<ide>
<ide> class PresenceValidationTest < ActiveRecord::TestCase
<ide> class Boy < Man; ... | 1 |
Go | Go | remove use of deprecated pkg/system constants | f22ff19668e220fcc06182ca3dae14fd086e0a4a | <ide><path>builder/dockerfile/copy_windows.go
<ide> func fixPermissionsWindows(source, destination, SID string) error {
<ide> return err
<ide> }
<ide>
<del> return system.SetNamedSecurityInfo(windows.StringToUTF16Ptr(destination), system.SE_FILE_OBJECT, system.OWNER_SECURITY_INFORMATION|system.DACL_SECURITY_INFORMA... | 1 |
Javascript | Javascript | make ember.map keys and values private | 685d9e36fee7a8d99f3811a9f99758a1231ffaa7 | <ide><path>packages/ember-metal/lib/map.js
<ide> function copyNull(obj) {
<ide> }
<ide>
<ide> function copyMap(original, newObject) {
<del> var keys = original.keys.copy();
<del> var values = copyNull(original.values);
<add> var keys = original._keys.copy();
<add> var values = copyNull(original._values);
<ide>
<d... | 1 |
Javascript | Javascript | use updated path | 309dd89e2a677ed5a66963bc76978e03e00d61d4 | <ide><path>test/WatchDetection.test.js
<ide> describe("WatchDetection", () => {
<ide> function step1() {
<ide> onChange = () => {
<ide> if (
<del> memfs.readFileSync("/bundle.js") &&
<add> memfs.readFileSync("/directory/bundle.js") &&
<ide> memfs
<del> .readFileSync("/bundle.js"... | 1 |
Javascript | Javascript | add test case | 2b210f98fa05857c15b5a7114e8df71a368fbe2a | <ide><path>test/ConfigTestCases.template.js
<ide> const describeCases = config => {
<ide> module in testConfig.modules
<ide> ) {
<ide> return testConfig.modules[module];
<del> } else return require(module);
<add> } else {
<add> return require(module.star... | 3 |
Javascript | Javascript | remove string error from strictequal | fd520e7b4365dcda47dc209f8f1e3dd4a9d8665c | <ide><path>test/parallel/test-stream-writableState-uncorked-bufferedRequestCount.js
<ide> const stream = require('stream');
<ide> const writable = new stream.Writable();
<ide>
<ide> writable._writev = common.mustCall((chunks, cb) => {
<del> assert.strictEqual(chunks.length, 2, 'two chunks to write');
<add> assert.st... | 1 |
Javascript | Javascript | fix a spelling error | fabd0963c2c14d874ad17ebf65a9ed974ce0a905 | <ide><path>packages/learn/src/components/Donation/components/DonateForm.js
<ide> class DonateForm extends PureComponent {
<ide> donationState: {
<ide> ...state.donationState,
<ide> error:
<del> 'We need a valid email address to send your donation tax reciept to'
<add> '... | 1 |
Go | Go | add awslogs benchmarks | 84b03660dab03ac366d99ba817a5ec8523808386 | <ide><path>daemon/logger/awslogs/cloudwatchlogs_test.go
<ide> const (
<ide> sequenceToken = "sequenceToken"
<ide> nextSequenceToken = "nextSequenceToken"
<ide> logline = "this is a log line\r"
<add> multilineLogline = "2017-01-01 01:01:44 This is a multiline log entry\r"
<ide> )
<ide>
<add>// Generat... | 1 |
Javascript | Javascript | add scrollview example | 158abfe8bfd20d05cd67c6e861d5db02b4420916 | <ide><path>packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js
<ide> const React = require('react');
<ide> const {
<ide> Platform,
<ide> ScrollView,
<add> Picker,
<ide> StyleSheet,
<ide> Text,
<ide> TouchableOpacity,
<ide> View,
<add> TextInput,
<add> RefreshControl,
<ide> } = require('react-n... | 1 |
Ruby | Ruby | remove unused require | 3e0293a09293b0052ad443cc5eb67880032c83c6 | <ide><path>railties/lib/rails/generators/actions.rb
<del>require 'open-uri'
<del>
<ide> module Rails
<ide> module Generators
<ide> module Actions | 1 |
Javascript | Javascript | add named exports | 890c305dff01505e108b0b0d3f6fbd4def7cc23c | <ide><path>src/Immutable.js
<ide> export default {
<ide> fromJS: fromJS
<ide>
<ide> };
<add>
<add>export {
<add> Iterable,
<add>
<add> Seq,
<add> Collection,
<add> Map,
<add> OrderedMap,
<add> List,
<add> Stack,
<add> Set,
<add> OrderedSet,
<add>
<add> Record,
<add> Range,
<add> Repeat,
<add>
<add> is,
<add> fromJS
... | 1 |
Ruby | Ruby | pull initialization code out of begin block | 0578f1ff5a5234a4e7ca59c49dc0b0bb414cb78a | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def binread(*open_args)
<ide> def atomic_write content
<ide> require "tempfile"
<ide> tf = Tempfile.new(basename.to_s, dirname)
<del> tf.binmode
<del> tf.write(content)
<del>
<ide> begin
<del> old_stat = stat
<del> rescue Errno::ENOENT
<de... | 1 |
Mixed | Javascript | remove conflicting <head> tags in amp mode | 2d6a73cb66bec40105fec31d1117dd97ae3fe909 | <ide><path>errors/conflicting-amp-tag.md
<add># Conflicting AMP Tag
<add>
<add>#### Why This Error Occurred
<add>
<add>In AMP mode Next.js adds certain necessary tags automatically to comply with the AMP standard. You added a tag using `next/head` that conflicts with one of these automatically added tags.
<add>
<add>#... | 4 |
Python | Python | add tests for pipe.label_data | c2401fca411559c66fa4172886a24d4d632de162 | <ide><path>spacy/tests/pipeline/test_pipe_methods.py
<ide> import pytest
<ide> from spacy.language import Language
<del>from spacy.util import SimpleFrozenList
<add>from spacy.util import SimpleFrozenList, get_arg_names
<ide>
<ide>
<ide> @pytest.fixture
<ide> def test_pipe_methods_frozen():
<ide> nlp.componen... | 1 |
Javascript | Javascript | remove cta and add current challenge button | d01ce3bbc11fb0736ed3ad81e8565c6d23c342b9 | <ide><path>client/src/components/Intro/index.js
<ide> import { Link, Spacer, Loader, FullWidthRow } from '../helpers';
<ide> import { Row, Col } from '@freecodecamp/react-bootstrap';
<ide> import { apiLocation } from '../../../config/env.json';
<ide> import { randomQuote } from '../../utils/get-words';
<add>import Curr... | 3 |
Text | Text | add v4.0.0-beta.2 to changelog | 4f403127602efca9ca81288bcabb1671a0212b1d | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.0.0-beta.2 (August 23, 2021)
<add>
<add>- [#19680](https://github.com/emberjs/ember.js/pull/19680) [DEPRECATION] Deprecate owner.inject per [RFC #680](https://github.com/emberjs/rfcs/blob/sn/owner-inject-deprecation/text/0680-implicit-injection-deprecat... | 1 |
Ruby | Ruby | check nil? || empty? instead of to_s.empty? | a5895ad1fe1ae4ae296c71483e7a77d87606cdd8 | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<ide> def remove_from_cflags val
<ide> def append keys, value, separator = ' '
<ide> value = value.to_s
<ide> Array(keys).each do |key|
<del> unless self[key].to_s.empty?
<del> self[key] = self[key] + separator + value
<del> else
<add> old... | 1 |
Javascript | Javascript | use direct filter in winnow | 4765bb5c7840fc5f725f5bda38afcebc3730fbfc | <ide><path>src/traversing/findFilter.js
<ide> define( [
<ide>
<ide> "use strict";
<ide>
<del>var risSimple = /^.[^:#\[\.,]*$/;
<del>
<ide> // Implement the identical functionality for filter and not
<ide> function winnow( elements, qualifier, not ) {
<ide> if ( isFunction( qualifier ) ) {
<ide> function winnow( elem... | 1 |
Javascript | Javascript | remove message from strictequal assertions | 2a88f02f2ff861b794ea9b83bbdfe71950d584ed | <ide><path>test/parallel/test-http2-cookies.js
<ide> server.on('listening', common.mustCall(() => {
<ide>
<ide> req.on('response', common.mustCall((headers) => {
<ide> assert(Array.isArray(headers['set-cookie']));
<del> assert.deepStrictEqual(headers['set-cookie'], setCookie,
<del> '... | 1 |
Go | Go | fix some minor linting issues | 968ff5ab44b1846964e832d4509e17f814d6116d | <ide><path>distribution/pull_v2_test.go
<ide> package distribution // import "github.com/docker/docker/distribution"
<ide> import (
<ide> "context"
<ide> "encoding/json"
<del> "fmt"
<ide> "net/http"
<ide> "net/http/httptest"
<ide> "net/url"
<ide> func TestFormatPlatform(t *testing.T) {
<ide> }
<ide> matches, _... | 4 |
PHP | PHP | remove unnessary extra loop | 34ca97417818d9fe6eb4e25774df307538df3aa3 | <ide><path>src/Mailer/Renderer.php
<ide> public function renderTemplates(Email $email, ?string $content = null): array
<ide> $view->setTemplatePath(static::TEMPLATE_FOLDER . DIRECTORY_SEPARATOR . $type);
<ide> $view->setLayoutPath(static::TEMPLATE_FOLDER . DIRECTORY_SEPARATOR . $type);
<ide>
<d... | 1 |
Python | Python | use textwrap.dedent for multiline strings | f89414564743495ca9104400e9ab1a6ba0963e2e | <ide><path>numpy/distutils/command/autodist.py
<ide> """
<ide> from __future__ import division, absolute_import, print_function
<ide>
<add>import textwrap
<ide>
<ide> # We put them here since they could be easily reused outside numpy.distutils
<ide>
<ide> def check_inline(cmd):
<ide> """Return the inline identif... | 5 |
Ruby | Ruby | remove warning from postgresql geometric test | 4ab20ed563e832a09b22a4c6e87da2e6a3227263 | <ide><path>activerecord/test/cases/adapters/postgresql/geometric_test.rb
<ide> class PostgresqlLine < ActiveRecord::Base; end
<ide> end
<ide>
<ide> teardown do
<del> @connection.drop_table 'postgresql_lines', if_exists: true
<add> if defined?(@connection)
<add> @connection.drop_table 'postgresql_lines',... | 1 |
PHP | PHP | fix various things | 057492d31c569e96a3ba2f99722112a9762c6071 | <ide><path>src/Illuminate/Cache/ArrayStore.php
<ide> public function forget($key)
<ide> public function flush()
<ide> {
<ide> $this->storage = [];
<add>
<ide> return true;
<ide> }
<ide>
<ide><path>src/Illuminate/Cache/FileStore.php
<ide> public function flush()
<ide> {
<ide> if ... | 4 |
Text | Text | limit lines to 80 cols in internal readme | 40b6cf241e1b383abe7a0476a604979a123d17d4 | <ide><path>lib/internal/readme.md
<ide> # Internal Modules
<ide>
<del>The modules in `lib/internal` are intended for internal use in Node.js core only, and are not accessible with `require()` from user modules.
<del>These are subject to change at **any** time. Reliance on these modules outside of core is **not support... | 1 |
Go | Go | emit a buildresult after squashing | 9777ec3be0e3056d0bedcf36052704f832e45759 | <ide><path>api/server/backend/build/backend.go
<ide> func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string
<ide> if imageID, err = squashBuild(build, b.imageComponent); err != nil {
<ide> return "", err
<ide> }
<add> if config.ProgressWriter.AuxFormatter != nil {
<add> if err = conf... | 2 |
Javascript | Javascript | simplify jquery.removeattr and return this | b85d2cd8a5c49487dc3ea7f6fad963efd9fd0f55 | <ide><path>src/attributes.js
<ide> jQuery.extend({
<ide> }
<ide> },
<ide>
<del> // removeAttribute returns boolean in IE
<del> // set property to null if getSetAttribute not supported (IE6-7)
<ide> removeAttr: function( elem, name ) {
<ide> name = jQuery.attrFix[ name ] || name;
<del> if ( typeof elem.removeAt... | 1 |
Text | Text | add v2.11.0-beta.2 to the changelog | be54b40bf0b1fc5b21aca44ce96cf12db9848294 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.11.0-beta.2 (November 29, 2016)
<add>
<add>- [#14658](https://github.com/emberjs/ember.js/pull/14658) [BUGFIX] Make the ember-source build work.
<add>
<ide> ### 2.11.0-beta.1 (November 28, 2016)
<ide>
<ide> - [#14389](https://github.com/emberjs/ember.js... | 1 |
Text | Text | add squash guideline to pull-requests doc | 24a5ac797d6eb2431d532ddb3a9e2062490a7737 | <ide><path>doc/guides/contributing/pull-requests.md
<ide> whether the failure was caused by the changes in the Pull Request.
<ide>
<ide> ### Commit Squashing
<ide>
<del>When the commits in your Pull Request land, they may be squashed
<del>into one commit per logical change. Metadata will be added to the commit
<del>m... | 1 |
Python | Python | fix flake8 errors | b2355463366cc30ba5af518e1587fefb87f30c28 | <ide><path>celery/schedules.py
<ide> def day_out_of_range(year, month, day):
<ide> return True
<ide> return False
<ide>
<add> def is_before_last_run(year, month, day):
<add> return self.maybe_make_aware(datetime(year,
<add> ... | 1 |
Javascript | Javascript | remove picker from scrollview examples | f12f0e679dd6f1cdbd3c993d940a736ea1e952a3 | <ide><path>packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js
<ide> const React = require('react');
<ide> const {
<ide> Platform,
<ide> ScrollView,
<del> Picker,
<ide> StyleSheet,
<ide> Text,
<ide> TouchableOpacity,
<ide> const SnapToOptions = () => {
<ide> const [snapToInterval, setSnapToInter... | 1 |
Mixed | Python | delete all mentions of model2model | 9df74b8bc42eedc496f7148b9370728054ca3b6a | <ide><path>docs/source/quickstart.md
<ide> print(sequence)
<ide> ```
<ide>
<ide> The model only requires a single token as input as all the previous tokens' key/value pairs are contained in the `past`.
<del>
<del>### Model2Model example
<del>
<del>Encoder-decoder architectures require two tokenized inputs: one for the... | 4 |
Java | Java | add onrawstatus to webclient | 6cb4b8bd43be9c741377f52cc98b43abde27dbc8 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
<ide> import java.util.function.BiFunction;
<ide> import java.util.function.Consumer;
<ide> import java.util.function.Function;
<add>import java.util.function.IntPredicate;
<ide> import java.util.function.Pred... | 3 |
Java | Java | optimize iteration of readablenativemaps | 503a6f4463f5d2f7576b33158c18d8d8e99f3291 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java
<ide> import com.facebook.infer.annotation.Assertions;
<ide> import com.facebook.jni.HybridData;
<ide> import com.facebook.proguard.annotations.DoNotStrip;
<add>import com.facebook.react.config.ReactFeatureFlags;
<ide> import java.ut... | 2 |
Text | Text | add a troubleshooting guide | 54ff1f97b8588d0baf6131df2b18e4194fd3e272 | <ide><path>docs/guides/troubleshooting.md
<add> Troubleshooting
<add>
<add>## Problems with media formats
<add>
<add>### Choosing a video format
<add>#### I want to have a single source and don't care about live/adaptive streaming:
<add>Most browsers now play MP4 with h264 video. If you want to have a single source, an... | 1 |
Javascript | Javascript | support an empty context | c0686c443016a0757bb1f1ec2196b183af38aee9 | <ide><path>lib/ContextModule.js
<ide> ContextModule.prototype.build = function(options, compilation, resolver, fs, cal
<ide> var addon = this.addon;
<ide> this.resolveDependencies(fs, this.context, this.recursive, this.regExp, function(err, dependencies) {
<ide> if(err) return callback(err);
<del> dependencies.for... | 2 |
Go | Go | update the unit tests to reflect the new api | ff95f2b0ecf54fdfeffa1aa008e22cb5c7ec59d6 | <ide><path>commands_test.go
<ide> func TestAttachDisconnect(t *testing.T) {
<ide>
<ide> srv := &Server{runtime: runtime}
<ide>
<del> container, err := runtime.Create(
<add> container, err := NewBuilder(runtime).Create(
<ide> &Config{
<ide> Image: GetTestImage(runtime).Id,
<ide> Memory: 33554432,
<ide>... | 3 |
Ruby | Ruby | remove debug output | d3e2a98136385197f52f6f979378efed6cdad202 | <ide><path>Library/Homebrew/livecheck/strategy/page_match.rb
<ide> def self.match?(url)
<ide> def self.page_matches(url, regex, &block)
<ide> page = Strategy.page_contents(url)
<ide>
<del> odebug "Page Contents", page
<del>
<ide> if block
<ide> data = { page: page }
<id... | 1 |
Javascript | Javascript | fix console warning in legacyimmutableobject | 335e91df7146739dcc287b638e29b068f1451bbe | <ide><path>src/utils/LegacyImmutableObject.js
<ide> if (__DEV__) {
<ide> }
<ide> Object.freeze(object); // First freeze the object.
<ide> for (var prop in object) {
<del> var field = object[prop];
<del> if (object.hasOwnProperty(prop) && shouldRecurseFreeze(field)) {
<del> deepFreeze(field)... | 1 |
Javascript | Javascript | simplify regex in eslint config | 16a25afebb501b32b2ee63fc27e2fbf3d3bd8932 | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> line: {
<ide> // Ignore all lines that have less characters than 20 and all lines that
<ide> // start with something that looks like a variable name or code.
<del> // eslint-disable-next-line max-len
<del> ignorePattern: '.{0,20}... | 2 |
PHP | PHP | apply fixes from styleci | 9717c195fa4ab1edb489041b82563c28d7edb52a | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Carbon;
<ide> use Illuminate\Support\Facades\Date;
<del>use Illuminate\Support\Stringable;
<ide> use Illuminate\Support\Reflector;
<add>use Illuminate\Support\Stringable;
<ide> use Illuminate\Support\Tr... | 2 |
Ruby | Ruby | fix tests on ruby 2.0.0 | 1c1f65430046fa0041acc898d8d6f5377f20806e | <ide><path>actionpack/lib/action_view/routing_url_for.rb
<ide> def _routes_context #:nodoc:
<ide> protected :_routes_context
<ide>
<ide> def optimize_routes_generation? #:nodoc:
<del> controller.respond_to?(:optimize_routes_generation?) ?
<add> controller.respond_to?(:optimize_routes_generation?, tru... | 1 |
Javascript | Javascript | use shorter weekdaysmin in italian | 40d24da3345a3aa72b8ef2854fdd19fddcbe1aed | <ide><path>lang/it.js
<ide> monthsShort : "Gen_Feb_Mar_Apr_Mag_Giu_Lug_Ago_Set_Ott_Nov_Dic".split("_"),
<ide> weekdays : "Domenica_Lunedi_Martedi_Mercoledi_Giovedi_Venerdi_Sabato".split("_"),
<ide> weekdaysShort : "Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),
<del> weekdaysMin... | 4 |
Javascript | Javascript | remove incorrect statement | 02aef572a58a11776ac3e60bd4f9c9b92f96d054 | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.mock.animate = angular.module('ngAnimateMock', ['ng'])
<ide> * @name angular.mock.dump
<ide> * @description
<ide> *
<del> * *NOTE*: this is not an injectable instance, just a globally available function.
<add> * *NOTE*: This is not an injectable instance, just a g... | 1 |
Text | Text | add changelog entry for | 3a7e321246a8d1a4058b4c0ad5205cfc141e0cfd | <ide><path>railties/CHANGELOG.md
<add>* Make `config.log_level` work with custom loggers.
<add>
<add> *Max Shytikov*
<add>
<ide> * Changed stylesheet load order in the stylesheet manifest generator.
<ide> Fixes #11639.
<ide> | 1 |
Ruby | Ruby | fix the documentation method | ed0b080cb37a420194b56a7029017ce4a1e8b408 | <ide><path>activemodel/lib/active_model/dirty.rb
<ide> module ActiveModel
<ide> # Reset the changes:
<ide> #
<ide> # person.previous_changes # => {"name" => ["Uncle Bob", "Bill"]}
<del> # person.reload
<add> # person.reload!
<ide> # person.previous_changes # => {}
<ide> #
<ide> # Assigning the sam... | 1 |
Javascript | Javascript | expand test coverage for util.deprecate | fe8297ca92874770880e09e052c94f6ece5b2939 | <ide><path>test/parallel/test-util-deprecate-invalid-code.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const util = require('util');
<add>
<add>[1, true, false, null, {}].forEach((notString) => {
<add> common.expectsError(() => util.deprecate(() => {}, 'message', notString), {
<add> co... | 1 |
PHP | PHP | fix bound parameters in sub-queries not working | 8a5d65cebe66deee250b887a69a8e8040254f5da | <ide><path>src/Database/QueryCompiler.php
<ide> public function compile(Query $query, ValueBinder $generator)
<ide> $this->_sqlCompiler($sql, $query, $generator),
<ide> $this->{'_' . $type . 'Parts'}
<ide> );
<add>
<add> // Propagate bound parameters from sub-queries
<add> ... | 2 |
Text | Text | fix typo on examples/pytorch/question-answering | 3db2e8f92bd768053d0e4303914772a50a6f48ff | <ide><path>examples/pytorch/question-answering/README.md
<ide> and reply to the questions asked. Then
<ide> accelerate test
<ide> ```
<ide>
<del>that will check everything is ready for training. Finally, you cna launch training with
<add>that will check everything is ready for training. Finally, you can launch trainin... | 1 |
Ruby | Ruby | modify code to load spdx data once | ff1016b72997c3f6f33d39d48b335c08c734df24 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit
<ide>
<ide> # Check style in a single batch run up front for performance
<ide> style_results = Style.check_style_json(style_files, options) if style_files
<del>
<add> # load licenses
<add> path = File.join(File.dirname(__FILE__),"spdx.json")
<a... | 1 |
Text | Text | add another example using http-server | 6f09b6546399cb9d39284fba8231aea76b9aecd5 | <ide><path>threejs/lessons/threejs-setup.md
<ide> Once you've done that type
<ide>
<ide> http-server path/to/folder/where/you/unzipped/files
<ide>
<add>Or if you're like me
<add>
<add> cd path/to/folder/where/you/unzipped/files
<add> http-server
<add>
<ide> It should print something like
<ide>
<ide> {{{ima... | 1 |
Javascript | Javascript | fix delete in concatenated module | 51b6e9c4d7a2555c99c7c8c30327d56fa4232a4e | <ide><path>lib/ConcatenationScope.js
<ide> class ConcatenationScope {
<ide> const exportData = ids
<ide> ? Buffer.from(JSON.stringify(ids), "utf-8").toString("hex")
<ide> : "ns";
<del> return `__WEBPACK_MODULE_REFERENCE__${info.index}_${exportData}${callFlag}${directImportFlag}${asiSafeFlag}__`;
<add> // a ".... | 4 |
Javascript | Javascript | update refs on remount | ebb324390785799b9e570360f86a6cf3d2646637 | <ide><path>Libraries/Renderer/implementations/ReactFabric-dev.fb.js
<ide> function updateReducer(reducer, initialArg, init) {
<ide> }
<ide>
<ide> hook.memoizedState = newState;
<del> // Don't persist the state accumulated from the render phase updates to
<add> // Don't persist the state a... | 4 |
Go | Go | fix race in os sandbox sharing | 967917c8b4082aafe1834a5f79067cb179eec383 | <ide><path>libnetwork/controller.go
<ide> type controller struct {
<ide> unWatchCh chan *endpoint
<ide> svcDb map[string]svcMap
<ide> nmap map[string]*netWatch
<add> defOsSbox osl.Sandbox
<add> sboxOnce sync.Once
<ide> sync.Mutex
<ide> }
<ide>
<ide> func (c *controller) NewSandbo... | 2 |
Go | Go | use fewer modprobes | 074eca1d796d0863a8c71d4707f6d8767fd19fa9 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func xfsSupported() error {
<ide> return err // error text is descriptive enough
<ide> }
<ide>
<del> // Check if kernel supports xfs filesystem or not.
<del> exec.Command("modprobe", "xfs").Run()
<add> mountTarget, err := ioutil.TempDir("", "supportsXFS")
<... | 3 |
Java | Java | fix typo in behaviorsubject.java | 84736107209babc762ddd4394115afbe65a961c8 | <ide><path>src/main/java/io/reactivex/rxjava3/subjects/BehaviorSubject.java
<ide> *
<ide> * TestObserver<Integer> to1 = observable.test();
<ide> *
<del> * observable.onNext(1);
<add> * subject.onNext(1);
<ide> * // this will "clear" the cache
<del> * observable.onNext(EMPTY);
<add> * subject.onNext(EMPTY);
<i... | 1 |
Go | Go | avoid undefined ansi escape codes | b08b437acc3bf52bd2c3435e632ed09f3312e489 | <ide><path>pkg/jsonmessage/jsonmessage.go
<ide> func DisplayJSONMessagesStream(in io.Reader, out io.Writer, terminalFd uintptr,
<ide> if isTerminal {
<ide> fmt.Fprintf(out, "\n")
<ide> }
<del> } else {
<del> diff = len(ids) - line
<ide> }
<del> if isTerminal {
<del> // NOTE: this appears to be... | 2 |
Javascript | Javascript | parse interpolate and imagemask for images | 47f0326eee80dfd00006bf5a4ca12ce0d81efcf4 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> this.save();
<ide>
<ide> // TODO cache rendered images?
<del> var w = image.dict.get("Width");
<del> var h = image.dict.get("Height");
<add>
<add> var dict = image.dict;
<add> var w = di... | 1 |
Ruby | Ruby | suppress a warning on ruby 2.1+ | 61dd796f255290b24f965d885e31ae433a4811ce | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def install_symlink_p src, new_basename=src
<ide> protected :install_symlink_p
<ide>
<ide> # we assume this pathname object is a file obviously
<add> alias_method :old_write, :write if method_defined?(:write)
<ide> def write content
<ide> raise "Will not ... | 1 |
Javascript | Javascript | name anonymous functions in colorspace.js | 8f3448e9a8cea057b775a00678d5758bf4fe42e1 | <ide><path>src/colorspace.js
<ide> var ColorSpace = (function colorSpaceColorSpace() {
<ide> constructor.prototype = {
<ide> // Input: array of size numComps representing color component values
<ide> // Output: array of rgb values, each value ranging from [0.1]
<del> getRgb: function cs_getRgb(color) {
<ad... | 1 |
PHP | PHP | fix key handling | 84765753ee164e7b0978021c4d42711011aed340 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
<ide> protected function prepareCookiesForRequest()
<ide> }
<ide>
<ide> return collect($this->defaultCookies)->map(function ($value, $key) {
<del> return encrypt(CookieValuePrefix::create($key, base64_decode(substr(c... | 1 |
Text | Text | remove changes from 1.5.4 | 0d7f1ed428f19e7f1376b8d04173f7c1641afda4 | <ide><path>CHANGELOG.md
<del><a name="1.5.4"></a>
<del># 1.5.4 graduated-sophistry (2016-04-14)
<del>
<del>
<del>## Bug Fixes
<del>
<del>- **$compile:**
<del> - do not use `noop()` as controller for multiple components
<del> ([4c8aeefb](https://github.com/angular/angular.js/commit/4c8aeefb624de7436ad95f3cd525405e0c3f... | 1 |
Python | Python | update version to 2.0.16 | 48b1bc44d38d0cc7f94dfd43bbc1b1dad39dbbe4 | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '2.0.16.dev0'
<add>__version__ = '2.0.16'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = 'https:/... | 1 |
Text | Text | add reference to guide for n-api additions | 5cccc5545b0edfa41062497d2bd06a90dff027cd | <ide><path>COLLABORATOR_GUIDE.md
<ide> - [When Breaking Changes Actually Break Things](#when-breaking-changes-actually-break-things)
<ide> - [Reverting commits](#reverting-commits)
<ide> - [Introducing New Modules](#introducing-new-modules)
<add> - [Additions to N-API](#additions-to-n-api)
<ide> - [Depre... | 1 |
Text | Text | remove note about es6 since node 6 is stable | 6078afcc0590e5df0511278906a73bb494f8c066 | <ide><path>docs/recipes/ServerRendering.md
<ide> function renderFullPage(html, preloadedState) {
<ide> }
<ide> ```
<ide>
<del>>##### Note on String Interpolation Syntax
<del>
<del>>In the example above, we use ES6 [template strings](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings) sy... | 1 |
Go | Go | fix handling of remote "git@" notation | 913eb99fdcd26a4106250bd40dfe8b9c18564b23 | <ide><path>builder/remotecontext/git/gitutils.go
<ide> import (
<ide> "github.com/pkg/errors"
<ide> )
<ide>
<add>type gitRepo struct {
<add> remote string
<add> ref string
<add> subdir string
<add>}
<add>
<ide> // Clone clones a repository into a newly created directory which
<ide> // will be under "docker-build-g... | 2 |
Javascript | Javascript | stop pageconfig plugin from running on non-pages | 41cb3b3bc0639df06d33797725244ba8a1cf76de | <ide><path>packages/next/build/webpack/loaders/next-babel-loader.js
<ide> module.exports = babelLoader.custom(babel => {
<ide> customOptions: { isServer, asyncToPromises }
<ide> }
<ide> ) {
<add> const { cwd } = cfg.options
<ide> const filename = this.resourcePath
<ide> const options ... | 5 |
PHP | PHP | fix typo and update 2nd example comment for filter | 0bea2fb0b6eaf04133b75032ffb84f70c0fcd41d | <ide><path>application/routes.php
<ide> |
<ide> | Next, attach the filter to a route:
<ide> |
<del>| Router::register('GET /', array('before' => 'filter', function()
<add>| Route::get('/', array('before' => 'filter', function()
<ide> | {
<ide> | return 'Hello World!';
<ide> | })); | 1 |
Text | Text | add directory structure in writing-tests.md | 59b5d77b920aac08aab79df3e2d1969ba804b745 | <ide><path>doc/guides/writing-tests.md
<ide> Add tests when:
<ide> - Fixing regressions and bugs.
<ide> - Expanding test coverage.
<ide>
<add>## Test directory structure
<add>
<add>See [directory structure overview][] for outline of existing test & locations.
<add>When deciding on whether to expand an existing test fi... | 1 |
Javascript | Javascript | fix version number generation | b94109a244270d65bd865032117c421fc1e71227 | <ide><path>broccoli/version.js
<ide> module.exports.VERSION = (() => {
<ide>
<ide> let packageVersion = require('../package.json').version;
<ide> let sha = info.sha || '';
<del> let prefix = `${packageVersion}-${(process.env.BUILD_TYPE || info.branch)}`;
<add> let suffix = process.env.BUILD_TYPE || info.branch;... | 1 |
Javascript | Javascript | add comment about techniques to gltf2loader | 0d40bfdac25e852acbae35306e8bda347dfb489b | <ide><path>examples/js/loaders/GLTF2Loader.js
<ide> THREE.GLTF2Loader = ( function () {
<ide>
<ide> materialType = DeferredShaderMaterial;
<ide>
<add> // I've left the existing json.techniques code as is so far though
<add> // techniques is moved to extension in glTF 2.0 because
<add> // it seems the... | 1 |
Go | Go | remove job from `docker kill` | 3cb751906a8a0397dcf57d8fca97c0e9c0c418e8 | <ide><path>api/server/server.go
<ide> import (
<ide> "github.com/docker/docker/pkg/jsonmessage"
<ide> "github.com/docker/docker/pkg/parsers"
<ide> "github.com/docker/docker/pkg/parsers/filters"
<add> "github.com/docker/docker/pkg/signal"
<ide> "github.com/docker/docker/pkg/stdcopy"
<ide> "github.com/docker/docker/... | 5 |
Text | Text | add a changelog entry for [ci skip] | 7bce826adefadfa43335eb0f19f8f1746596da97 | <ide><path>activerecord/CHANGELOG.md
<add>* Raise `ActiveRecord::RangeError` when values that executed are out of range.
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Raise `ActiveRecord::NotNullViolation` when a record cannot be inserted
<ide> or updated because it would violate a not null constraint.
<ide> | 1 |
Python | Python | add cross attentions to tfgpt2model | bd21ed4099a05f469912278d4610290d31f26b3b | <ide><path>src/transformers/models/ctrl/modeling_tf_ctrl.py
<ide> def call(
<ide> )
<ide> return outputs
<ide>
<del> # Copied from transformers.models.gpt2.modeling_tf_gpt2.TFGPT2Model.serving_output
<ide> def serving_output(self, output):
<ide> pkv = tf.convert_to_tensor(output.past_key... | 4 |
Python | Python | fix lint - 2 | 3ca331b6d8d485311815c56f9f29d15a47dac1be | <ide><path>numpy/f2py/rules.py
<ide> 'cleanupfrompyobj': """\
<ide> \t\tSTRINGFREE(#varname#);
<ide> \t} /*if (f2py_success) of #varname#*/""",
<del> 'need': ['#ctype#_from_pyobj', 'len..', 'STRINGFREE', {l_not(isintent_c): 'STRINGPADN'}],
<add> 'need': ['#ctype#_from_pyobj', 'len..', 'STRINGFREE... | 1 |
PHP | PHP | replace incorrect return type | 415c5adba4f6f0f944d3a6d492af4988a4335655 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function freshTimestamp()
<ide> /**
<ide> * Get a fresh timestamp for the model.
<ide> *
<del> * @return DateTime
<add> * @return string
<ide> */
<ide> public function freshTimestampString()
<ide> { | 1 |
Mixed | Javascript | move text helpers and reduce scope of imports | c667a9ef8571d179a552f6013af2cc108f1d2ac5 | <ide><path>docs/getting-started/v3-migration.md
<ide> Animation system was completely rewritten in Chart.js v3. Each property can now
<ide> * `helpers.configMerge`
<ide> * `helpers.indexOf`
<ide> * `helpers.lineTo`
<add>* `helpers.longestText` was moved to the `helpers.canvas` namespace and made private
<ide> * `helper... | 8 |
Javascript | Javascript | update geteventkey tests to use public api | 51c101fc48088b9c1a379fbec41ffaebf3212972 | <ide><path>packages/react-dom/src/events/__tests__/getEventKey-test.js
<ide>
<ide> 'use strict';
<ide>
<del>// TODO: can we express this test with only public API?
<del>var getEventKey = require('../getEventKey').default;
<del>
<ide> describe('getEventKey', () => {
<add> var React;
<add> var ReactDOM;
<add>
<add> ... | 2 |
Ruby | Ruby | show homebrew ruby for all system (#492) | fe3915237ef0c530ce1260cf7d2d0ca0d9d0eed1 | <ide><path>Library/Homebrew/extend/os/mac/system_config.rb
<ide> def describe_xquartz
<ide> "#{MacOS::XQuartz.version} => #{describe_path(MacOS::XQuartz.prefix)}"
<ide> end
<ide>
<del> def describe_system_ruby
<del> s = ""
<del> case RUBY_VERSION
<del> when /^1\.[89]/, /^2\.0/
<del> ... | 2 |
Go | Go | remove redundant log in pkg/pidfile/pidfile.go | 60e5c273cfde9fac1ac09ebcc666977232115f65 | <ide><path>pkg/pidfile/pidfile.go
<ide> package pidfile
<ide> import (
<ide> "fmt"
<ide> "io/ioutil"
<del> "log"
<ide> "os"
<ide> "path/filepath"
<ide> "strconv"
<ide> func New(path string) (*PidFile, error) {
<ide>
<ide> func (file PidFile) Remove() error {
<ide> if err := os.Remove(file.path); err != nil {
<de... | 1 |
PHP | PHP | use str method rather than helper | c26b755d2794fe9f7a8a76ffae620b852394382e | <ide><path>src/Illuminate/Database/QueryException.php
<ide> namespace Illuminate\Database;
<ide>
<ide> use PDOException;
<add>use Illuminate\Support\Str;
<ide>
<ide> class QueryException extends PDOException
<ide> {
<ide> public function __construct($sql, array $bindings, $previous)
<ide> */
<ide> protected ... | 1 |
PHP | PHP | remove undocumented magic features for iis | fe809cd85d9281018036f4e0a3bb5329d8a51f4d | <ide><path>lib/Cake/basics.php
<ide> function env($key) {
<ide> }
<ide>
<ide> switch ($key) {
<del> case 'SCRIPT_FILENAME':
<del> if (defined('SERVER_IIS') && SERVER_IIS === true) {
<del> return str_replace('\\\\', '\\', env('PATH_TRANSLATED'));
<del> }
<del> break;
<ide> case 'DOCUMENT_ROOT':
<i... | 1 |
Mixed | Ruby | fix some typos | ea5daeb2e407d004cf134d47fe8ac28d24fb0a00 | <ide><path>activesupport/lib/active_support/notifications/instrumenter.rb
<ide>
<ide> module ActiveSupport
<ide> module Notifications
<del> # Instrumentors are stored in a thread local.
<add> # Instrumenters are stored in a thread local.
<ide> class Instrumenter
<ide> attr_reader :id
<ide>
<ide><pat... | 2 |
Mixed | Javascript | enable arbitrary rotation of datapoints | 0ddd0ee16b98bad17756a6b98b2460a04fac9056 | <ide><path>docs/charts/bubble.md
<ide> The bubble chart allows a number of properties to be specified for each dataset.
<ide> | [`hitRadius`](#interactions) | `Number` | Yes | Yes | `1`
<ide> | [`label`](#labeling) | `String` | - | - | `undefined`
<ide> | [`pointStyle`](#styling) | `String` | Yes | Yes | `circle`
<add>... | 10 |
Python | Python | move django.contrib.auth import out of compat | d6a8e020219a5c1a543b2b1c68de58ac03386b1d | <ide><path>rest_framework/compat.py
<ide> import django
<ide> from django.apps import apps
<ide> from django.conf import settings
<del>from django.contrib.auth import views
<ide> from django.core.exceptions import ImproperlyConfigured, ValidationError
<ide> from django.core.validators import \
<ide> MaxLengthValida... | 2 |
Ruby | Ruby | use path attribute instead of reconstructing it | 22e3e6c1e6050b00799384c35dc2c232da421748 | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def pretty_relative_path
<ide> if Pathname.pwd == repository
<ide> entry_name
<ide> else
<del> repository/"#{entry_name}"
<add> path
<ide> end
<ide> end
<ide> | 1 |
Go | Go | implement deferred deletion functionality | d929589c1fc4538dcd1b2a7a3dc7d4afbdfa72fd | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> type devInfo struct {
<ide> Size uint64 `json:"size"`
<ide> TransactionID uint64 `json:"transaction_id"`
<ide> Initialized bool `json:"initialized"`
<add> Deleted bool `json:"deleted"`
<ide> devices *DeviceSet
<ide>
<ide> mountC... | 3 |
Ruby | Ruby | reduce funcalls by using falsey objects | c326969745c38aaca552aebf240af644440afab3 | <ide><path>activerecord/lib/active_record/associations/belongs_to_association.rb
<ide> def build(attributes = {})
<ide>
<ide> def replace(record)
<ide> record = record.target if AssociationProxy === record
<del> raise_on_type_mismatch(record) unless record.nil?
<add> raise_on_type_mismatch(... | 1 |
PHP | PHP | fix remaining tests in error package | 09e14444520c1c6542627bad4e1de44004df708b | <ide><path>tests/TestCase/Error/ErrorHandlerTest.php
<ide> public function setUp()
<ide> parent::setUp();
<ide> Router::reload();
<ide>
<del> $request = new ServerRequest();
<add> $request = new ServerRequest([
<add> 'environment' => [
<add> 'HTTP_REFERER' => '/r... | 1 |
PHP | PHP | replace some spaces with tabs | dfc6bb040994806f8d56fa995b2818209fd2ad59 | <ide><path>tests/Mail/MailMandrillTransportTest.php
<ide>
<ide> class MailMandrillTransportTest extends PHPUnit_Framework_TestCase {
<ide>
<del> public function testSend()
<del> {
<del> $message = new Swift_Message('Foo subject', 'Bar body');
<del> $message->setTo('me@example.com');
<del> $... | 1 |
Javascript | Javascript | fix handle delivery | 21bd45676390fd21ffa7c3cca91af4ad37ed3e5c | <ide><path>lib/child_process.js
<ide> function setupChannel(target, channel) {
<ide> var json = jsonBuffer.slice(start, i);
<ide> var message = JSON.parse(json);
<ide>
<del> handleMessage(target, message, recvHandle);
<del> recvHandle = undefined;
<add> // There will be at most one... | 2 |
Text | Text | add dataroots to airflow users | 5c79495279c60917843eb8a4c7ffc12716cc88e9 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [DataCamp](https://datacamp.com/) [[@dgrtwo](https://github.com/dgrtwo)]
<ide> 1. [DataFox](https://www.datafox.com/) [[@sudowork](https://github.com/sudowork)]
<ide> 1. [Datamaran](https://www.datamaran.com) [[@valexharo](https://github.co... | 1 |
Javascript | Javascript | terminate cluster worker in infinite loop | 1f7b6a6cc916a8bab942e579ed930e9e2d66c4e0 | <ide><path>test/parallel/test-cluster-kill-infinite-loop.js
<add>'use strict';
<add>const common = require('../common');
<add>const cluster = require('cluster');
<add>const assert = require('assert');
<add>
<add>if (cluster.isMaster) {
<add> const worker = cluster.fork();
<add>
<add> worker.on('online', common.mustCa... | 1 |
Javascript | Javascript | add getkeyname function to codegen parser class | f849f495250ef446611e6936d587ba0da21b1b76 | <ide><path>packages/react-native-codegen/src/parsers/__tests__/parsers-commons-test.js
<ide> const {
<ide> } = require('../errors');
<ide>
<ide> import {MockedParser} from '../parserMock';
<add>import {TypeScriptParser} from '../typescript/parser';
<ide>
<ide> const parser = new MockedParser();
<add>const typeScriptP... | 9 |
Python | Python | fix the os check | f4cf6a31ac29d981bd0efcd9e7d2131242214840 | <ide><path>libcloud/test/test_utils.py
<ide> def tearDown(self):
<ide> WARNINGS_BUFFER = []
<ide> warnings.showwarning = original_func
<ide>
<del> @unittest.skipIf(platform.platform().lower() == 'windows', 'Unsupported on Windows')
<add> @unittest.skipIf(platform.system().lower() == 'windows', 'U... | 1 |
Javascript | Javascript | add a note about a mouseenter bug in chrome | a5e1c9b44c971fd7046d9a95bd0810e50840b663 | <ide><path>src/event.js
<ide> jQuery.Event.prototype = {
<ide> // Do the same for pointerenter/pointerleave and pointerover/pointerout
<ide> // Support: Safari<7.0
<ide> // Safari doesn't support mouseenter/mouseleave at all.
<add>// Support: Chrome 40+
<add>// Mouseenter doesn't perform while left mouse button is pres... | 1 |
Javascript | Javascript | use public getcursorpos() | befff8fa6004d2d1d45bd28674e5f97fa4dbfa16 | <ide><path>lib/internal/repl/utils.js
<ide> function setupPreview(repl, contextSymbol, bufferSymbol, active) {
<ide>
<ide> function getPreviewPos() {
<ide> const displayPos = repl._getDisplayPos(`${repl._prompt}${repl.line}`);
<del> const cursorPos = repl._getCursorPos();
<add> const cursorPos = repl.getCu... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.