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 | tweak some wording | 7afa27927f0b8a80f3d640f352885d3210b01911 | <ide><path>gulpfile.js
<ide> var elixir = require('laravel-elixir');
<ide>
<ide> /*
<del> |----------------------------------------------------------------
<del> | Have a Drink!
<del> |----------------------------------------------------------------
<add> |--------------------------------------------------------------... | 1 |
Javascript | Javascript | add tests to assert.ok and improve coverage | 6e9d79564234919b656a92da3e0ac3bc8a49bc2c | <ide><path>test/parallel/test-assert.js
<ide> assert.ok(a.AssertionError.prototype instanceof Error,
<ide> assert.throws(() => a(false), a.AssertionError, 'ok(false)');
<ide> assert.throws(() => a.ok(false), a.AssertionError, 'ok(false)');
<ide>
<add>// Throw message if the message is instanceof Error.
<add>{
<add> l... | 1 |
Python | Python | simplify property test | 41dc0508a03d869226cefbe074bdf5fa00484d8d | <ide><path>numpy/core/tests/test_numeric.py
<ide> def test_NaT_propagation(self, arr, amin, amax):
<ide> actual = np.clip(arr, amin, amax)
<ide> assert_equal(actual, expected)
<ide>
<del> @given(data=st.data(), shape=hynp.array_shapes())
<del> def test_clip_property(self, data, shape):
<add> @... | 1 |
Javascript | Javascript | improve merging of resolve and parsing options | f03c4f127ae568ae451246a387a65419a675401c | <ide><path>lib/NormalModuleFactory.js
<ide> const ModuleFactory = require("./ModuleFactory");
<ide> const NormalModule = require("./NormalModule");
<ide> const RawModule = require("./RawModule");
<ide> const RuleSet = require("./RuleSet");
<del>const cachedMerge = require("./util/cachedMerge");
<add>const { cachedCleve... | 17 |
Javascript | Javascript | remove unneeded test code | 3410d84e33d02300c4afb340b7c5fc8fba63c4f8 | <ide><path>lib/Entrypoint.js
<ide> Entrypoint.prototype.insertChunk = function(chunk, before) {
<ide> chunk.entrypoints.push(this);
<ide> };
<ide>
<del>Entrypoint.prototype.getFiles = function(filterPredicate) {
<add>Entrypoint.prototype.getFiles = function() {
<ide> var files = [];
<ide>
<ide> for(var chunkIdx = ... | 1 |
Ruby | Ruby | explain different ways to use match() | d1ef543794efdcc1d225055f88cbc88b20e84921 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def root(options = {})
<ide> match '/', options.reverse_merge(:as => :root)
<ide> end
<ide>
<del> # When you set up a regular route, you supply a series of symbols that
<del> # Rails maps to parts of an incoming HTTP requ... | 1 |
Javascript | Javascript | add support for missing html elements | fc5f7e0e85e164f6826cf1ddc3f055f6ee4f93cb | <ide><path>src/core/ReactDOM.js
<ide> var ReactDOM = objMapKeyVal({
<ide> a: false,
<ide> abbr: false,
<ide> address: false,
<add> area: false,
<add> article: false,
<add> aside: false,
<ide> audio: false,
<ide> b: false,
<add> base: false,
<add> bdi: false,
<add> bdo: false,
<add> big: false,
<ide> ... | 1 |
Java | Java | update copyright date | 222dbf837702ac01b04c42432f4995dd7d2f1b08 | <ide><path>spring-web/src/main/java/org/springframework/web/multipart/support/StandardMultipartHttpServletRequest.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "L... | 1 |
Text | Text | add note re term-size commit on top of npm | 10d8e2687e9217ff3c5722b2b3293cf1f0e81ae9 | <ide><path>doc/guides/maintaining-npm.md
<ide> Note: please ensure you are only making the updates that are changed by npm.
<ide> $ git rebase --whitespace=fix master
<ide> ```
<ide>
<del>## Step 7: Test the build
<add>## Step 7: Apply signed term-size commit
<add>
<add>The `term-size` package in npm's dependency tree... | 1 |
Mixed | Javascript | revise http documentation | 52c7f9d22115a3ab7174654cc61c9e34335246e2 | <ide><path>doc/api/http.md
<ide> The HTTP Agent is used for pooling sockets used in HTTP client
<ide> requests.
<ide>
<ide> The HTTP Agent also defaults client requests to using
<del>Connection:keep-alive. If no pending HTTP requests are waiting on a
<add>`Connection: keep-alive`. If no pending HTTP requests are waiti... | 2 |
Text | Text | update main branch name in doc/contributing/* | 7bf50bc26aa01308d06ffd6bd75864c29486fa0b | <ide><path>doc/contributing/backporting-to-release-lines.md
<ide> For the active staging branches see the [Release Schedule][].
<ide>
<ide> ## What needs to be backported?
<ide>
<del>If a cherry-pick from master does not land cleanly on a staging branch, the
<add>If a cherry-pick from `main` does not land cleanly on ... | 11 |
Text | Text | clarify timeout option in vm | 278086a3870ac5ab7b73d28ec7a33ea863c9209b | <ide><path>doc/api/vm.md
<ide> in the ECMAScript specification.
<ide> ### module.evaluate([options])
<ide>
<ide> * `options` {Object}
<del> * `timeout` {number} Specifies the number of milliseconds to evaluate
<add> * `timeout` {integer} Specifies the number of milliseconds to evaluate
<ide> before terminating e... | 1 |
Javascript | Javascript | skip remaining failing tests | 586f56bc0a6c5f94cc8885b4343acd98ed3dfe61 | <ide><path>packages/ember-application/tests/system/logging_test.js
<ide> QUnit.test("do not log when template and view are missing when flag is not true"
<ide> });
<ide> });
<ide>
<del>QUnit.test("log which view is used with a template", function() {
<add>QUnit.skip("log which view is used with a template", function... | 46 |
Ruby | Ruby | add a test for | 0d5a384498296f005395d02943bd18e688aba436 | <ide><path>railties/test/application/configuration_test.rb
<ide> def teardown
<ide> end
<ide> end
<ide>
<add> test "lib dir is on LOAD_PATH during config" do
<add> app_file 'lib/my_logger.rb', <<-RUBY
<add> require "logger"
<add> class MyLogger < ::Logger
<add> end
<add> RUB... | 2 |
Text | Text | add missing code tag | d2914dd4d679e965c746769a048e9c79e74bfa12 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6998d.md
<ide> const oneFilter = getComputedStyle(one).filter;
<ide> assert(oneFilter === 'blur(1px)');
<ide> ```
<ide>
<del>Your `.two` element should have a filter value of `b... | 1 |
Python | Python | pull python 3 changes from node/node-gyp | 5ebaf703aa24abd7f45875d61d72a5088a0eb78b | <ide><path>tools/gyp/PRESUBMIT.py
<ide> def _LicenseHeader(input_api):
<ide> # Accept any year number from 2009 to the current year.
<ide> current_year = int(input_api.time.strftime('%Y'))
<del> allowed_years = (str(s) for s in reversed(xrange(2009, current_year + 1)))
<del>
<add> allowed_years = (str(s) for s in... | 16 |
Go | Go | remove unused parsetmpfsoptions | 144c95029c9658a89f28668b9faf6343face2344 | <ide><path>pkg/mount/flags.go
<ide> func parseOptions(options string) (int, string) {
<ide> }
<ide> return flag, strings.Join(data, ",")
<ide> }
<del>
<del>// ParseTmpfsOptions parse fstab type mount options into flags and data
<del>func ParseTmpfsOptions(options string) (int, string, error) {
<del> flags, data := pa... | 1 |
Text | Text | add license file to each component | 9e57e8bea04638d5bafec62db1051fbc2ce39e3a | <ide><path>src/Illuminate/Auth/LICENSE.md
<add>The MIT License (MIT)
<add>
<add>Copyright (c) Taylor Otwell
<add>
<add>Permission is hereby granted, free of charge, to any person obtaining a copy
<add>of this software and associated documentation files (the "Software"), to deal
<add>in the Software without restriction,... | 28 |
Text | Text | add notes for v1.4.10 | 82a4545e772400127cc909ff44f95809e8790bae | <ide><path>CHANGELOG.md
<add><a name="1.4.10"></a>
<add># 1.4.10 benignant-oscillation (2016-03-16)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **core:** only call `console.log` when `window.console` exists
<add> ([beb00e44](https://github.com/angular/angular.js/commit/beb00e44de947981dbe35d5cf7a116e10ea8dc67),
<add> ... | 1 |
Javascript | Javascript | remove all special code for ie8 | e843ae7a4cfb746760e1d8c3578d9ec613c3e2ee | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> var attrEndName = false;
<ide>
<ide> attr = nAttrs[j];
<del> if (!msie || msie >= 8 || attr.specified) {
<del> name = attr.name;
<del> value = trim(attr.val... | 17 |
Javascript | Javascript | set fragment export flags to true | f6894dc48be2e389ffae03cea736122a971e3f76 | <ide><path>packages/react-cs-renderer/src/ReactNativeCSFeatureFlags.js
<ide> import typeof * as CSFeatureFlagsType from './ReactNativeCSFeatureFlags';
<ide> export const debugRenderPhaseSideEffects = false;
<ide> export const enableAsyncSubtreeAPI = true;
<ide> export const enableAsyncSchedulingByDefaultInReactDOM = fa... | 9 |
Javascript | Javascript | set icon on macos | 9b76d2d7b3a86ffde945f88b758a0537aeca027a | <ide><path>packages/react-devtools/app.js
<ide>
<ide> const {app, BrowserWindow} = require('electron'); // Module to create native browser window.
<ide> const {join} = require('path');
<add>const os = require('os');
<ide>
<ide> const argv = require('minimist')(process.argv.slice(2));
<ide> const projectRoots = argv._... | 1 |
Text | Text | add util.inspect() legacy signature | 5e63cf29bfd09ad2c099b937602a355bd08ecdc4 | <ide><path>doc/api/util.md
<ide> stream.write('With ES6');
<ide> ```
<ide>
<ide> ## util.inspect(object[, options])
<add>## util.inspect(object[, showHidden[, depth[, colors]]])
<ide> <!-- YAML
<ide> added: v0.3.0
<ide> changes: | 1 |
Ruby | Ruby | install bundler into vendor directory | c87c97e4d7dc485753d39523ef9e6dd5f82333d7 | <ide><path>Library/Homebrew/dev-cmd/tests.rb
<ide> def tests
<ide>
<ide> puts "Randomized with seed #{seed}"
<ide>
<del> # Let tests find `bundle` in the actual location.
<del> ENV["HOMEBREW_TESTS_GEM_USER_DIR"] = gem_user_dir
<del>
<del> # Let `bundle` in PATH find its gem.
<del> ENV["GEM_P... | 2 |
Text | Text | add more info on attach inspired by discussion in | 801edfa9b8a765e734ac4a909ab032f0cb03fe87 | <ide><path>docs/sources/reference/commandline/cli.md
<ide> Docker supports softlinks for the Docker data directory
<ide> --no-stdin=false Do not attach STDIN
<ide> --sig-proxy=true Proxy all received signals to the process (even in non-TTY mode). SIGCHLD, SIGKILL, and SIGSTOP are not proxied.
<ide>
<... | 1 |
Text | Text | fix typo seemless -> seamless [ci skip] | c1b94cbbe34ea54425dac8a6cd810aeb5952bc2d | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> config.load_defaults(7.0)
<ide> ```
<ide>
<ide> However Rails 6.1 applications are not able to read this new serialization format,
<del>so to ensure a seemless upgrade you must first deploy your Rails 7.0 upgrade with
<add>so to ensure a seamless upgrade you mu... | 1 |
Python | Python | reduce led memory | c8ea582ed65ead33603286de6800bb6107843a9f | <ide><path>tests/test_modeling_led.py
<ide> def test_seq_to_seq_generation(self):
<ide>
<ide> dct = tok.batch_encode_plus(
<ide> [ARTICLE_LEP, ARTICLE_MAGNET],
<del> max_length=12288,
<add> max_length=6144,
<ide> padding="max_length",
<add> truncation=Tr... | 1 |
Go | Go | check remote when local img platform doesn't match | ed033adb2cc287b513102e15fc47ddd60c51171d | <ide><path>builder/builder-next/adapters/containerimage/pull.go
<ide> import (
<ide> "fmt"
<ide> "io"
<ide> "io/ioutil"
<add> "path"
<ide> "runtime"
<ide> "sync"
<ide> "sync/atomic"
<ide> import (
<ide> "github.com/opencontainers/image-spec/identity"
<ide> ocispec "github.com/opencontainers/image-spec/specs-go/... | 1 |
Javascript | Javascript | use special powers quit in unit tests | 70ce3a88a1a8fc436430d16006720aff7dc95a36 | <ide><path>test/unit/testreporter.js
<ide> var TestReporter = function(browser, appPath) {
<ide> 'use strict';
<ide>
<del> function send(action, json) {
<add> function send(action, json, cb) {
<ide> var r = new XMLHttpRequest();
<ide> // (The POST URI is ignored atm.)
<ide> r.open('POST', action, true)... | 1 |
Text | Text | harmonize version list style in yaml comments | 125523bffe9e5fbc14af185da6f682e08c05b1ba | <ide><path>doc/api/assert.md
<ide> changes:
<ide> - version: v8.0.0
<ide> pr-url: https://github.com/nodejs/node/pull/12142
<ide> description: The `Set` and `Map` content is also compared
<del> - version: v6.4.0, v4.7.1
<add> - version:
<add> - v6.4.0
<add> - v4.7.1
<ide> pr-url: https://github.co... | 13 |
PHP | PHP | add strict types to cookiecrypttrait | 482c9c2a177bf88cc39240f054d9ed7d1b6ca5b9 | <ide><path>src/Utility/CookieCryptTrait.php
<ide> trait CookieCryptTrait
<ide> *
<ide> * @return string
<ide> */
<del> abstract protected function _getCookieEncryptionKey();
<add> abstract protected function _getCookieEncryptionKey(): string;
<ide>
<ide> /**
<ide> * Encrypts $value using ... | 1 |
PHP | PHP | apply fixes from styleci | 87fe04daf668c4c1de9269a003760e677b575fcb | <ide><path>tests/Support/SupportPluralizerTest.php
<ide> public function testPluralNotAppliedForStringEndingWithNonAlphanumericCharacter(
<ide> $this->assertSame('Alien ', Str::plural('Alien '));
<ide> $this->assertSame('50%', Str::plural('50%'));
<ide> }
<del>
<add>
<ide> public function te... | 1 |
Text | Text | add guides for common cases | 10f529d091b6fd7db7e054191bac55dc19f24038 | <ide><path>docs/Adding-Software-to-Homebrew.md
<add># Adding Software to Homebrew
<add>
<add>Are you missing your favorite software in Homebrew? Then you're the perfect person to resolve this problem.
<add>
<add>Before you start, please check the open pull requests for [homebrew-core](https://github.com/Homebrew/homebr... | 4 |
Java | Java | expose method to determine form content type | ddb38eefeea1506bbf5bdefda4fd0c354381d79f | <ide><path>spring-web/src/main/java/org/springframework/http/converter/FormHttpMessageConverter.java
<ide> private boolean isMultipart(MultiValueMap<String, ?> map, @Nullable MediaType co
<ide> private void writeForm(MultiValueMap<String, Object> formData, @Nullable MediaType contentType,
<ide> HttpOutputMessage ou... | 1 |
Text | Text | add ember 1.13.0 to changelog | 4a2f37a500b2e8047e5af80f57419105f65dea0c | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 1.13.0 (June 12, 2015)
<add>
<add>- [#11270](https://github.com/emberjs/ember.js/pull/11270) [BUGFIX] Ensure view registry is propagated to components.
<add>- [#11273](https://github.com/emberjs/ember.js/pull/11273) [BUGFIX] Downgrade Ember.Service without... | 1 |
PHP | PHP | update the phpdoc of the id method to accept uuid | 3627f33df082c988f84dd421ff97daf1c800eadf | <ide><path>src/Illuminate/Contracts/Auth/Guard.php
<ide> public function user();
<ide> /**
<ide> * Get the ID for the currently authenticated user.
<ide> *
<del> * @return int|null
<add> * @return int|string|null
<ide> */
<ide> public function id();
<ide> | 1 |
Javascript | Javascript | fix tests for testswarm | 493548c099b1b0c5413fd7db94346dbe61c028c7 | <ide><path>test/jquery.js
<ide> /* jshint eqeqeq: false */
<ide>
<ide> var i, len,
<del> // Parent is the current window if not an iframe, which is fine
<ide> src = window.location.pathname.split( "test" )[ 0 ],
<ide> QUnit = window.QUnit || parent.QUnit,
<del> require = require || parent.require;
<add> requi... | 1 |
Python | Python | add gcd implementation (#371) | a31d20acf51be53de690d2b4a22c45f861522eb1 | <ide><path>Maths/gcd.py
<add>def gcd(a, b):
<add> if a == 0 :
<add> return b
<add>
<add> return gcd(b%a, a)
<add>
<add>def main():
<add> print(gcd(3, 6))
<add>
<add>
<add>if __name__ == '__main__':
<add> main() | 1 |
Javascript | Javascript | reduce memory usage | dffedccc75daaf583ed0f2ae41cb3a883fc82743 | <ide><path>lib/Parser.js
<ide> class Parser extends Tapable {
<ide> if(expr.argument.type === "Identifier") {
<ide> name = this.scope.renames.get(expr.argument.name) || expr.argument.name;
<ide> if(!this.scope.definitions.has(name)) {
<del> res = this.hooks.evaluateTypeof.for(name).call(expr);
<del> ... | 1 |
Java | Java | avoid defensive checks against java.time api | 85b0ce1ef78ea0aa795e80821e206cc851c9894b | <ide><path>spring-beans/src/main/java/org/springframework/beans/PropertyEditorRegistrySupport.java
<ide> import java.net.URL;
<ide> import java.nio.charset.Charset;
<ide> import java.nio.file.Path;
<add>import java.time.ZoneId;
<ide> import java.util.Collection;
<ide> import java.util.Currency;
<ide> import java.util.H... | 5 |
Javascript | Javascript | fix mutability of return values | 56950674d6f56e1577df2affcf884619d91fa0bf | <ide><path>lib/internal/util.js
<ide> exports.cachedResult = function cachedResult(fn) {
<ide> return () => {
<ide> if (result === undefined)
<ide> result = fn();
<del> return result;
<add> return result.slice();
<ide> };
<ide> };
<ide>
<ide><path>lib/tls.js
<ide> exports.DEFAULT_CIPHERS =
<ide>
<... | 3 |
Go | Go | add tests for logging | 2ec3e14c0ff7f8552c1f9b09ffde743632fa1f8c | <ide><path>daemon/logger/loggertest/logreader.go
<ide> package loggertest // import "github.com/docker/docker/daemon/logger/loggertest"
<ide> import (
<ide> "runtime"
<ide> "strings"
<add> "sync"
<ide> "testing"
<ide> "time"
<ide>
<ide> func (tr Reader) TestFollow(t *testing.T) {
<ide> <-doneReading
<ide> asse... | 4 |
Text | Text | add learnnextjs link | a52458181a4e2f3d6e2fea64e34f158e087037f6 | <ide><path>readme.md
<ide> Next.js is a minimalistic framework for server-rendered React applications.
<ide> <!-- https://github.com/thlorenz/doctoc -->
<ide>
<ide> - [How to use](#how-to-use)
<add> - [Getting Started](#getting-started)
<ide> - [Setup](#setup)
<ide> - [Automatic code splitting](#automatic-code-sp... | 1 |
Text | Text | add docs for named exports using dynamic | a169017c87f52fc6ddf0a59ae88f9d468cf50697 | <ide><path>packages/next/README.md
<ide> Since Next.js supports dynamic imports with SSR, you could do amazing things wit
<ide>
<ide> Here are a few ways to use dynamic imports.
<ide>
<del>#### 1. Basic Usage (Also does SSR)
<add>#### Basic Usage (Also does SSR)
<ide>
<ide> ```jsx
<ide> import dynamic from 'next/dyn... | 1 |
PHP | PHP | fix cs as per psr-12 | d397fbdcc8ab2150f26cf3f4cf75b51d58d6b689 | <ide><path>src/Cache/Engine/FileEngine.php
<ide> protected function _setKey($key, $createKey = false)
<ide> if (!$createKey && !$path->isFile()) {
<ide> return false;
<ide> }
<del> if (empty($this->_File) ||
<add> if (
<add> empty($this->_File) ||
<ide> $... | 73 |
Python | Python | use x.any() instead of any(x) | 3937248fc8dd0ccfb3fde2a626a622ecb2d1ccb4 | <ide><path>numpy/lib/function_base.py
<ide> import types
<ide> import numpy.core.numeric as _nx
<ide> from numpy.core.numeric import ones, zeros, arange, concatenate, array, \
<del> asarray, asanyarray, empty, empty_like, asanyarray, ndarray, around
<add> asarray, asanyarray, empty, empty_like, ndarray, around
... | 1 |
Javascript | Javascript | remove unneeded code | f5652f19c4efcbe183c8cd2dd774669ee5e9ea12 | <ide><path>lib/hmr/lazyCompilationBackend.js
<ide> module.exports = (compiler, client, callback) => {
<ide> const activeModules = new Map();
<ide> const prefix = "/lazy-compilation-using-";
<ide>
<del> if (!client) {
<del> client = `webpack/hot/lazy-compilation-${
<del> compiler.options.externalsPresets.node ? "n... | 1 |
Ruby | Ruby | remove more integration tests | ec83d1decb7cf7166ccf0021f998503975a845f3 | <ide><path>Library/Homebrew/test/test_uninstall.rb
<ide> def test_check_for_dependents_when_ignore_dependencies
<ide> end
<ide>
<ide> class IntegrationCommandTestUninstall < IntegrationCommandTestCase
<del> def setup
<del> super
<del> @f1_path = setup_test_formula "testball_f1", <<-CONTENT
<del> def instal... | 1 |
Text | Text | use new panel classes | d914ae2a62351d4046b9e166db61c461a23679bb | <ide><path>docs/upgrading/upgrading-your-ui-theme.md
<ide> Old Selector | New Selector
<ide> `.pane-container` | `atom-pane-conatiner`
<ide> `.pane` | `atom-pane`
<ide> `.tool-panel` | `atom-panel`
<del>`.panel-top` | `atom-panel[location="top"]`
<del>`.panel-bottom` | `atom-panel[... | 1 |
Javascript | Javascript | handle some illegal characters in hex string | eb8f4e83434b20644aea30bff9755b29199c29b5 | <ide><path>src/parser.js
<ide> var Lexer = (function LexerClosure() {
<ide> getHexString: function Lexer_getHexString(ch) {
<ide> var str = '';
<ide> var stream = this.stream;
<del> for (;;) {
<add> var isFirstHex = true;
<add> var firstDigit;
<add> var secondDigit;
<add> while ... | 2 |
PHP | PHP | fix typo in description | 98c9aa3be17ed82c3405d2c2843c16942d40f676 | <ide><path>src/I18n/Number.php
<ide> public static function defaultCurrency($currency = null)
<ide> if ($currency === false) {
<ide> static::setDefaultCurrency(null);
<ide>
<del> // This doesn't sem like a useful result to return, but it's what the old version did.
<add> // Th... | 1 |
Python | Python | fix np.ma.median with only one non-masked value | ed300480512029be7fbd031251a280964341acfe | <ide><path>numpy/ma/extras.py
<ide> def _median(a, axis=None, out=None, overwrite_input=False):
<ide> ind = np.meshgrid(*axes_grid, sparse=True, indexing='ij')
<ide>
<ide> # insert indices of low and high median
<del> ind.insert(axis, h - 1)
<add> ind.insert(axis, np.maximum(0, h - 1))
<ide> low = as... | 2 |
Text | Text | remove outdated s_client information in tls.md | 5cb196441a6df0fc3fa62e042ce108347f49814c | <ide><path>doc/api/tls.md
<ide> threshold is exceeded. The limits are configurable:
<ide> The default renegotiation limits should not be modified without a full
<ide> understanding of the implications and risks.
<ide>
<del>To test the renegotiation limits on a server, connect to it using the OpenSSL
<del>command-line ... | 1 |
Text | Text | fix text to follow portuguese language syntax | 083e9d0b6de4c17b2780ee5c4a505eb18f726691 | <ide><path>curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/use-the-order-property-to-rearrange-items.portuguese.md
<ide> localeTitle: ''
<ide> <section id="description"> A propriedade <code>order</code> é usada para informar ao CSS a ordem de como os itens flexíveis aparecem no contêiner flexível.... | 1 |
Text | Text | add changelog for | 3a6770fb512572bec904c0d710dc3d0954edcafa | <ide><path>activerecord/CHANGELOG.md
<add>* Don't allow mutations on the datbase configurations hash.
<add>
<add> Freeze the configurations hash to disallow directly changing the configurations hash. If applications need to change the hash, for example to create adatabases for parallelization, they should use the ... | 1 |
Javascript | Javascript | add modulefederationplugin and full test case | faa7dda8cd816cb30e25a439ac6a208a7ba2034f | <ide><path>lib/container/ModuleFederationPlugin.js
<add>/*
<add> MIT License http://www.opensource.org/licenses/mit-license.php
<add> Author Tobias Koppers @sokra and Zackary Jackson @ScriptedAlchemy
<add>*/
<add>
<add>"use strict";
<add>
<add>const ContainerPlugin = require("./ContainerPlugin");
<add>const ContainerRe... | 13 |
Text | Text | fix entry for `napi_create_external_buffer` | cfa3d8fec5d9f6469c8d4ef077b53e0d9007dab9 | <ide><path>doc/api/n-api.md
<ide> napi_status napi_create_external_buffer(napi_env env,
<ide> * `[in] env`: The environment that the API is invoked under.
<ide> * `[in] length`: Size in bytes of the input buffer (should be the same as the
<ide> size of the new buffer).
<del>* `[in] data`: Raw pointer to the underlyin... | 1 |
Javascript | Javascript | remove s/ss global flag | 38844ac5f6b2daaf652c93244693e46c194be812 | <ide><path>src/lib/duration/humanize.js
<ide> import { createDuration } from './create';
<ide>
<ide> var round = Math.round;
<del>var secondsThresholdChanged = false;
<ide> var thresholds = {
<ide> ss: 44, // a few seconds to seconds
<ide> s : 45, // seconds to minute
<ide> export function getS... | 1 |
Text | Text | fix typo in 4_0_release_notes.md | f51d95aee52d86b9d6bd8e1d10d35d73349bfc97 | <ide><path>guides/source/4_0_release_notes.md
<ide> Active Record
<ide>
<ide> * `mysql` and `mysql2` connections will set `SQL_MODE=STRICT_ALL_TABLES` by default to avoid silent data loss. This can be disabled by specifying `strict: false` in `config/database.yml`.
<ide>
<del>* Added default order to `ActiveRecor... | 1 |
Java | Java | remove duplication of optional api behavior | 94bbe08c83a381954cd46c88b0b73b75908b9ca0 | <ide><path>src/main/java/io/reactivex/observables/BlockingObservable.java
<ide> public Optional<T> firstOption() {
<ide> }
<ide>
<ide> public T first() {
<del> Optional<T> o = firstOption();
<del> if (o.isPresent()) {
<del> return o.get();
<del> }
<del> throw new NoSu... | 2 |
PHP | PHP | add test for | 2fd4f87c1bc4bf84e2e75708b6eafafe2b1db442 | <ide><path>tests/TestCase/View/XmlViewTest.php
<ide> public function testRenderSerializeWithOptions()
<ide> $Response = new Response();
<ide> $Controller = new Controller($Request, $Response);
<ide> $data = [
<del> '_serialize' => ['tags'],
<add> '_serialize' => ['tags', 'n... | 1 |
Python | Python | build npymath lib | 67683ac66f5dac485a65c29446c912856a79b838 | <ide><path>numpy/core/setup.py
<ide> def generate_umath_c(ext,build_dir):
<ide> if sys.platform == 'cygwin':
<ide> config.add_data_dir('include/numpy/fenv')
<ide>
<add> config.add_extension('_sort',
<add> sources=[join('src','_sortmodule.c.src'),
<add> ... | 1 |
Text | Text | add robertkowalski as collaborator | fb2439a6997afd96e776e11268aeb358284d7c9a | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Wyatt Preul** ([@geek](https://github.com/geek)) <wpreul@gmail.com>
<ide> * **Brian White** ([@mscdex](https://github.com/mscdex)) <mscdex@mscdex.net>
<ide> * **Christian Vaagland Tellnes** ([@tellnes](https://gi... | 1 |
Python | Python | use amqplib if running under pypy | 7938a951355ce3d9eb6bf3f9a207dc1e18dd1c1e | <ide><path>funtests/benchmarks/bench_worker.py
<ide>
<ide> DEFAULT_ITS = 20000
<ide>
<add>BROKER_TRANSPORT = "librabbitmq"
<add>if hasattr(sys, "pypy_version_info"):
<add> BROKER_TRANSPORT = "amqplib"
<add>
<ide> celery = Celery(__name__)
<del>celery.conf.update(BROKER_TRANSPORT="librabbitmq",
<add>celery.conf.upd... | 1 |
Python | Python | add tests for build_err_msg | 4112bf1a19f614fc426b82ff6b3ae86d8b25f92b | <ide><path>numpy/testing/tests/test_utils.py
<ide> def test_recarrays(self):
<ide>
<ide> self._test_not_equal(c, b)
<ide>
<add>class TestBuildErrorMessage(unittest.TestCase):
<add> def test_build_err_msg_defaults(self):
<add> x = np.array([1.00001, 2.00002, 3.00003])
<add> y = np.array([1.000... | 1 |
Javascript | Javascript | fix tailwind error with redis example. | 655eb5cb5b7e01591c16bc2d3fcba9d5740a5d67 | <ide><path>examples/with-redis/postcss.config.js
<ide> module.exports = {
<ide> plugins: {
<del> '@tailwindcss/jit': {},
<add> tailwindcss: {},
<ide> autoprefixer: {},
<ide> },
<ide> }
<ide><path>examples/with-redis/tailwind.config.js
<ide> module.exports = {
<add> mode: 'jit',
<ide> purge: ['./pages/*... | 2 |
PHP | PHP | fix inconsistent type causing php7.1 errors | 2249869650080138c34501d41d24ffe18d2a9a8e | <ide><path>src/ORM/Query.php
<ide> public function update($table = null)
<ide> * @param string|null $table Unused parameter.
<ide> * @return $this
<ide> */
<del> public function delete($table = null)
<add> public function delete(?string $table = null)
<ide> {
<ide> /** @var \Cake\ORM\Ta... | 1 |
Python | Python | add task to build html doc | 958f4a4e7c6c66e7509c745f77e1826e3159df4f | <ide><path>pavement.py
<ide> from paver.easy import options, Bunch, task, needs, dry, sh, call_task
<ide> from paver.setuputils import setup
<ide>
<del># NOTES/Changelog stuff
<add>PDF_DESTDIR = paver.path.path('build') / 'pdf'
<add>HTML_DESTDIR = paver.path.path('build') / 'html'
<add>
<ide> RELEASE = 'doc/release/1.... | 1 |
Javascript | Javascript | improve windows absolute path detection | a11922fea3ff793da1f3e1e3e2b5db2355a4ad86 | <ide><path>lib/util/URLAbsoluteSpecifier.js
<ide> const { getMimetype: getDataUrlMimetype } = require("./DataURI");
<ide> /** @typedef {(error: Error|null, result?: Buffer) => void} ErrorFirstCallback */
<ide>
<ide> const backSlashCharCode = "\\".charCodeAt(0);
<add>const slashCharCode = "/".charCodeAt(0);
<ide> const... | 2 |
Python | Python | fix failing tests for xla generation in tf | 8fb7c908c81de73bc8b525cdbbb4035dcc39581f | <ide><path>tests/test_modeling_tf_common.py
<ide> def _generate_and_check_results(model, config, inputs_dict):
<ide> config.do_sample = False
<ide> config.num_beams = num_beams
<ide> config.num_return_sequences = num_return_sequences
<add>
<add> # fix config for models wit... | 1 |
Python | Python | add the start of some operation tests | 05929ee89bc51de772343d18d5a7bf2518d41333 | <ide><path>tests/migrations/test_operations.py
<add>from django.test import TransactionTestCase
<add>from django.db import connection, models, migrations
<add>from django.db.migrations.state import ProjectState, ModelState
<add>
<add>
<add>class OperationTests(TransactionTestCase):
<add> """
<add> Tests running t... | 1 |
Go | Go | add support for healthcheck in composefile v3 | 3bd64de7a9c3eecbd57cb11d861a6fe94a5bb788 | <ide><path>cli/command/stack/deploy.go
<ide> import (
<ide> "os"
<ide> "sort"
<ide> "strings"
<add> "time"
<ide>
<ide> "github.com/spf13/cobra"
<ide> "golang.org/x/net/context"
<ide>
<ide> "github.com/aanand/compose-file/loader"
<ide> composetypes "github.com/aanand/compose-file/types"
<ide> "github.com/docke... | 2 |
Text | Text | fix method name in changelog | 59b39056d91787f6a3e4e0dfc0825c8687bd0af9 | <ide><path>CHANGELOG.md
<ide> ### React DOM
<ide>
<ide> * Add a new `getDerivedStateFromProps()` lifecycle and `UNSAFE_` aliases for the legacy lifecycles. ([@bvaughn](https://github.com/bvaughn) in [#12028](https://github.com/facebook/react/pull/12028))
<del>* Add a new `getSnapshotForUpdate()` lifecycle. ([@bvaughn]... | 1 |
Ruby | Ruby | compare pathnames directly | 6d949599b5a9b4d770420fa2e0eec0c143d0e11d | <ide><path>Library/Homebrew/formula.rb
<ide> def tap
<ide>
<ide> # True if this formula is provided by Homebrew itself
<ide> def core_formula?
<del> path.realpath.to_s == Formula.path(name).to_s
<add> path.realpath == Formula.path(name)
<ide> end
<ide>
<ide> def self.path name | 1 |
Ruby | Ruby | fix has_and_belongs_to_many_associations tests. | 3b1cd9e525fa74c681a1bd2261881d16d5d9106d | <ide><path>activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
<ide> def test_caching_of_columns
<ide> david = Developer.find(1)
<ide> # clear cache possibly created by other tests
<ide> david.projects.reset_column_information
<del> assert_queries(1) { david.projects.columns... | 2 |
Javascript | Javascript | add test for user provided template on a view | a7ab858f9ef8496c8940cf8acc98d6f4ddff2dc1 | <ide><path>packages/ember/tests/routing/basic_test.js
<ide> test('render does not replace templateName if user provided', function() {
<ide> equal(Ember.$('p', '#qunit-fixture').text(), "THIS IS THE REAL HOME", "The homepage template was rendered");
<ide> });
<ide>
<add>test('render does not replace template if user... | 1 |
PHP | PHP | remove unnecessary parameter | 3f66a220825366a098f064b1da2c116b2ed2d6d9 | <ide><path>Cake/Test/TestCase/ORM/QueryTest.php
<ide> public function strategiesProvider() {
<ide> * @return void
<ide> */
<ide> public function testHasManyEagerLoadingNoHydration($strategy) {
<del> $table = TableRegistry::get('author', ['connection' => $this->connection]);
<del> TableRegistry::get('article', ['co... | 1 |
Text | Text | add github issue templates | 05e487a12ffee59b75db82995f3f826254444741 | <ide><path>.github/ISSUE_TEMPLATE.md
<del><!--
<del> Note: if the issue is about documentation or the website, please file it at:
<del> https://github.com/reactjs/reactjs.org/issues/new
<del>-->
<add>👉 Please follow one of these issue templates:
<add>- https://github.com/facebook/react/issues/new/choose
<ide>
<del>... | 5 |
Java | Java | simplify initialization of websession mono | 2f2546c8a454bd63181d793e31acdf0252b3ff4c | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/server/adapter/DefaultServerWebExchange.java
<ide> public class DefaultServerWebExchange implements ServerWebExchange {
<ide>
<ide> private final ServerHttpResponse response;
<ide>
<del> private final WebSessionManager sessionManager;
<del>
<del>
<... | 2 |
Ruby | Ruby | prevent "saved" message when edit command aborted | d4e87ca190f5f0707439a37d020c5b58e6b02d73 | <ide><path>railties/lib/rails/commands/credentials/credentials_command.rb
<ide> def edit
<ide> ensure_credentials_have_been_added
<ide> ensure_diffing_driver_is_configured
<ide>
<del> catch_editing_exceptions do
<del> change_credentials_in_system_editor
<del> end
<del>
<del> ... | 4 |
Text | Text | add backticks to show shell command | fab3a73af4e6f10f80cfd2a9004426c432394ddc | <ide><path>railties/CHANGELOG.md
<ide>
<ide> To generate a new app that has Webpack dependencies configured and binstubs for webpack and webpack-watcher:
<ide>
<del> rails new myapp --webpack
<add> `rails new myapp --webpack`
<ide>
<ide> To generate a new app that has Webpack + React configured and... | 1 |
Python | Python | fix failing tests | d6d5a83053c5077f2d3d51084113e4386f496380 | <ide><path>libcloud/compute/drivers/cloudwatt.py
<ide> def __init__(self, *args, **kwargs):
<ide> self._ex_tenant_id = kwargs.pop("ex_tenant_id")
<ide> super(CloudwattAuthConnection, self).__init__(*args, **kwargs)
<ide>
<add> def morph_action_hook(self, action):
<add> (_, _, _, request_path)... | 3 |
Javascript | Javascript | fix browserstack tests | d5a9092c3f97290fa40e65b15d03015909f98587 | <ide><path>testem.dist.js
<ide> module.exports = {
<ide> '--b',
<ide> 'safari',
<ide> '--bv',
<del> '11',
<add> 'latest',
<ide> '-t',
<ide> '1200',
<ide> '--u',
<ide> module.exports = {
<ide> '--b',
<ide> 'safari',
<ide> '--bv',
<del>... | 1 |
PHP | PHP | allow run tests from any directory | 4ec56e28b52da6ed8b7976601d6dbe311880fdbc | <ide><path>src/TestSuite/MiddlewareDispatcher.php
<ide> public function __construct($test, $class = null, $constructorArgs = null)
<ide> {
<ide> $this->_test = $test;
<ide> $this->_class = $class ?: Configure::read('App.namespace') . '\Application';
<del> $this->_constructorArgs = $constructo... | 1 |
PHP | PHP | add array_where helper | 7b7df5a18c38bd2bc24b1721d06e21dff11a418e | <ide><path>src/Illuminate/Support/helpers.php
<ide> function array_sort($array, Closure $callback)
<ide> }
<ide> }
<ide>
<add>if ( ! function_exists('array_where'))
<add>{
<add> /**
<add> * Filter the array using the given Closure.
<add> *
<add> * @param array $array
<add> * @param \Closure $callback
<add> *... | 1 |
PHP | PHP | add missing import | ab6fab667559a0d8263c0bee7e23350835150bba | <ide><path>lib/Cake/Error/ExceptionRenderer.php
<ide> App::uses('Sanitize', 'Utility');
<ide> App::uses('Router', 'Routing');
<ide> App::uses('CakeResponse', 'Network');
<add>App::uses('Controller', 'Controller');
<ide>
<ide> /**
<ide> * Exception Renderer. | 1 |
Java | Java | improve javadoc for beanexpressionresolver | 8fc744f4f4bb27bba10532264a257677d2c35802 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/BeanExpressionResolver.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<i... | 2 |
Go | Go | fix removeinterface in sandbox | 820712cae66227bf4e551c93319f8729f60c5a05 | <ide><path>libnetwork/sandbox/namespace_linux.go
<ide> func (n *networkNamespace) RemoveInterface(i *Interface) error {
<ide> return err
<ide> }
<ide>
<add> n.Lock()
<add> for index, intf := range n.sinfo.Interfaces {
<add> if intf == i {
<add> n.sinfo.Interfaces = append(n.sinfo.Interfaces[:index], n.sinfo.Inte... | 3 |
Ruby | Ruby | remove cvar for registered details | eeea496d5fcf824b0c5e2b0a4e3bfedd5e038b1b | <ide><path>actionview/lib/action_view/lookup_context.rb
<ide> module ActionView
<ide> class LookupContext #:nodoc:
<ide> attr_accessor :prefixes, :rendered_format
<ide>
<del> mattr_accessor :registered_details, default: []
<add> singleton_class.attr_accessor :registered_details
<add> self.registered_det... | 2 |
Python | Python | add missed files for test | 0ee2edc0a14c4d14b8aa6e4b63ccbd0c2cc78024 | <ide><path>tests/browsable_api/models.py
<add>from django.db import models
<add>
<add>
<add>class Foo(models.Model):
<add> name = models.CharField(max_length=30)
<add>
<add>
<add>class Bar(models.Model):
<add> foo = models.ForeignKey("Foo", editable=False)
<ide><path>tests/browsable_api/serializers.py
<add>from .... | 2 |
Text | Text | add a mention of brew-desc to readme | 8a08d101147a8ff3a60bf6b5e6ee24f0f84c7de6 | <ide><path>README.md
<ide> What Packages Are Available?
<ide> 1. You can [browse the Formula directory on GitHub][formula].
<ide> 2. Or type `brew search` for a list.
<ide> 3. Or visit [braumeister.org][braumeister] to browse packages online.
<add>4. Or visit [`brew desc`][brew-desc] to browse and search packages from ... | 1 |
Python | Python | add type annotations for roformer models | afb71b672679e57449085e4955a321db8e5705b9 | <ide><path>src/transformers/models/roformer/modeling_roformer.py
<ide>
<ide> import math
<ide> import os
<del>from typing import Optional
<add>from typing import Optional, Tuple, Union
<ide>
<ide> import numpy as np
<ide> import torch
<ide> class PreTrainedModel
<ide> )
<ide> def forward(
<ide> self,
... | 1 |
Text | Text | fix rdoc inconsistency | 638e9e7a7a067623452af9ae2397709b21d6e1f1 | <ide><path>guides/source/plugins.md
<ide> The first step is to update the README file with detailed information about how
<ide> * How to add the functionality to the app (several examples of common use cases)
<ide> * Warnings, gotchas or tips that might help users and save them time
<ide>
<del>Once your README is soli... | 1 |
Python | Python | fix mgrid for count of 1 | 10f2827029febe95d6e72a2f8568b0595f83c66b | <ide><path>numpy/lib/index_tricks.py
<ide> def __getitem__(self,key):
<ide> start = key[k].start
<ide> if start is None: start=0
<ide> if step is None: step=1
<del> if type(step) is type(1j):
<add> if isinstance(step, complex):
<ide> ... | 1 |
Ruby | Ruby | convert audit test to spec | 9e31b51cb0f14ca8e9491de90248532fc44f123f | <ide><path>Library/Homebrew/cask/spec/cask/cli/audit_spec.rb
<add>require "spec_helper"
<add>
<add>describe Hbc::CLI::Audit do
<add> let(:auditor) { double }
<add> let(:cask) { double }
<add>
<add> describe "selection of Casks to audit" do
<add> it "audits all Casks if no tokens are given" do
<add> allow(Hbc... | 2 |
Javascript | Javascript | add missing methods | 7d0c256ecd0fc22126090c4aeb18fd2c9fff2baa | <ide><path>src/jqLite.js
<ide> * - [css()](http://api.jquery.com/css/)
<ide> * - [data()](http://api.jquery.com/data/)
<ide> * - [eq()](http://api.jquery.com/eq/)
<add> * - [find()](http://api.jquery.com/find/) - Limited to lookups by tag name.
<ide> * - [hasClass()](http://api.jquery.com/hasClass/)
<add> * - [html... | 1 |
PHP | PHP | add iterator annotation | f132aeed64d58593e095b5f3de210e0b345e15c2 | <ide><path>src/ORM/Table.php
<ide> public function association($name)
<ide> /**
<ide> * Get the associations collection for this table.
<ide> *
<del> * @return \Cake\ORM\AssociationCollection The collection of association objects.
<add> * @return \Cake\ORM\AssociationCollection|\Cake\ORM\Associati... | 1 |
Text | Text | add example for proc-based route to routing guide | 71e10a00e31ad433ea44f66a07a95044e59b5603 | <ide><path>guides/source/routing.md
<ide> As long as `MyRackApp` responds to `call` and returns a `[status, headers, body]
<ide>
<ide> NOTE: For the curious, `'articles#index'` actually expands out to `ArticlesController.action(:index)`, which returns a valid Rack application.
<ide>
<add>NOTE: Since procs/lambdas are... | 1 |
Python | Python | change the identifier | 2004246f752825816dfaa187a6367d3a47a5cc01 | <ide><path>test/test.py
<ide> # The local web server uses the git repo as the document root.
<ide> DOC_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__),".."))
<ide>
<del>ANAL = True
<add>GIT_CLONE_CHECK = True
<ide> DEFAULT_MANIFEST_FILE = 'test_manifest.json'
<ide> EQLOG_FILE = 'eq.log'
<ide> BROWSERLOG_... | 1 |
Java | Java | remove trailing whitespace | 98808347ca4e1c0fffa3430321e701bc4c297257 | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java
<ide> public class ReflectiveMethodResolver implements MethodResolver {
<ide>
<ide> private Map<Class<?>, MethodFilter> filters = null;
<ide>
<del> // Using distance will ensure a more accurate match ... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.