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 |
|---|---|---|---|---|---|
Python | Python | change latex author to & contributors | 2513efc27af3e0f7b6e66d1b8cf8ea4c4190d83a | <ide><path>docs/conf.py
<ide>
<ide> # General information about the project.
<ide> project = u'Celery'
<del>copyright = u'2009-2011, Ask Solem & contributors'
<add>copyright = u'2009-2011, Ask Solem & Contributors'
<ide>
<ide> # The version info for the project you're documenting, acts as replacement for
<ide> # |ver... | 1 |
Javascript | Javascript | fix code block of ember.string.capitalize | 018661de496991d9b7d8e1eadcbbf4e7973bbd1e | <ide><path>packages/ember-runtime/lib/system/string.js
<ide> Ember.String = {
<ide> /**
<ide> Returns the Capitalized form of a string
<ide>
<del> 'innerHTML'.capitalize() // 'InnerHTML'
<del> 'action_name'.capitalize() // 'Action_name'
<del> 'css-class-name'.capitalize() // 'C... | 1 |
Python | Python | create simple binary search | 7b3d385ad62a74b7e984c9b5424006566e4f848d | <ide><path>searches/simple-binary-search.py
<add># A binary search implementation to test if a number is in a list of elements
<add>
<add>
<add>def binary_search(a_list, item):
<add> """
<add> >>> test_list = [0, 1, 2, 8, 13, 17, 19, 32, 42]
<add> >>> print(binary_search(test_list, 3))
<add> False
<add> ... | 1 |
Text | Text | add example of ternary operator | 25b6f1d9249d260d392e0ddd4c6887bebf842b50 | <ide><path>guide/english/ruby/ruby-conditionals/index.md
<ide> The above statement equal to the statement below
<ide> ```
<ide> ## Ternary Statement
<ide> A ternary statement is used as a short conditional statement. It is written as follows
<add>
<add> *variable = condition ? true_result : false_result*
<ide> *... | 1 |
Ruby | Ruby | add module for managing git config settings | f1f3fdc315238e6f86892f6228f7da5c5eb462a3 | <ide><path>Library/Homebrew/brew.rb
<ide> class MissingEnvironmentVariables < RuntimeError; end
<ide> ENV["PATH"] = path
<ide>
<ide> require "commands"
<add> require "settings"
<ide>
<ide> if cmd
<ide> internal_cmd = Commands.valid_internal_cmd?(cmd)
<ide> internal_cmd ||= begin
<ide> internal_de... | 9 |
Text | Text | add more help on using glamor (#165) | 47d057134185c5a60d5690c94e339e5f5bcace8b | <ide><path>README.md
<ide> That means pages never load unnecessary code!
<ide>
<ide> ### CSS
<ide>
<del>We use [glamor](https://github.com/threepointone/glamor) to provide a great built-in solution for CSS isolation and modularization without trading off any CSS features
<add>We use [glamor](https://github.com/threep... | 1 |
PHP | PHP | add coverage for invalid renderer | 3a9c474205aa55849c353e106620f0b963b3a6e7 | <ide><path>tests/TestCase/Error/DebuggerTest.php
<ide> public function testOutputErrorDescriptionEncoding(): void
<ide> }
<ide>
<ide> /**
<del> * Test setOutputFormat overwrite
<add> * Test invalid class and addRenderer()
<add> */
<add> public function testAddRendererInvalid(): void
<add> {
<... | 1 |
Javascript | Javascript | fix typo in comment | f15640f551aca825b0ac5e50a48c751e7ec267ad | <ide><path>lib/JsonpMainTemplatePlugin.js
<ide> JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
<ide> "return Promise.resolve();"
<ide> ]),
<ide> "",
<del> "// an Promise means \"currently loading\".",
<add> "// a Promise means \"currently loading\".",
<ide> "if(installedChunks[chunk... | 1 |
PHP | PHP | use associative array | 06e7eeae00434d600beafcc42d63fef63bff9a78 | <ide><path>src/Mailer/Email.php
<ide> public function send($content = null): array
<ide> */
<ide> public function render(?string $content = null): void
<ide> {
<del> list($this->_message,
<del> $this->_boundary,
<del> $this->_textMessage,
<del> $this->_htmlMessage
<d... | 2 |
PHP | PHP | remove port numbers from message-id domains | 853d866c3567da6a832f4617d07ef3796110af01 | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> public function __construct($config = null) {
<ide> if ($this->_appCharset !== null) {
<ide> $this->charset = $this->_appCharset;
<ide> }
<del> $this->_domain = env('HTTP_HOST');
<add> $this->_domain = preg_replace('/\:\d+$/', '', env('HTTP_HOST'));
<ide> ... | 2 |
Ruby | Ruby | allow commands that look like options | 326321c1fdcba7717ec27e3db8cec9c0dfe15069 | <ide><path>Library/Homebrew/cli/parser.rb
<ide> def parse_remaining(argv, ignore_invalid_options: false)
<ide> remaining = []
<ide>
<ide> argv, non_options = split_non_options(argv)
<add> allow_commands = Array(@named_args_type).include?(:command)
<ide>
<ide> while i < argv.count
<ide> ... | 2 |
Text | Text | add guide of certificate/api/create a model | 3eab20af322c42d1ef1fa0e8a5dd73f6f9d16cc3 | <ide><path>guide/english/certifications/apis-and-microservices/mongodb-and-mongoose/create-a-model/index.md
<ide> title: Create a Model
<ide> ---
<ide> ## Create a Model
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/apis-and-microservices/mongodb-and-mo... | 1 |
Javascript | Javascript | deprecate nonstandard promise.prototype.done | 35800962c16a33eb8e9ff1adfd428cf00bb670d3 | <ide><path>Libraries/Core/polyfillPromise.js
<ide> 'use strict';
<ide>
<ide> const {polyfillGlobal} = require('../Utilities/PolyfillFunctions');
<add>const warnOnce = require('../Utilities/warnOnce');
<ide>
<ide> /**
<ide> * Set up Promise. The native Promise implementation throws the following error:
<ide> if (glob... | 4 |
PHP | PHP | remove testing accessor | 5062a9b42632e55ee90b7397141c0b12622447e1 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php
<ide> use Exception;
<ide> use Illuminate\Support\Str;
<ide> use InvalidArgumentException;
<add>use Illuminate\Http\UploadedFile;
<ide> use Symfony\Component\DomCrawler\Form;
<ide> use Symfony\Component\DomCrawler\Crawler;
<ide> use Illuminate... | 3 |
Text | Text | adjust markdown table for linting | a4eb7b07e0bea8e340dba61bef6bb12e09ac6c26 | <ide><path>test/README.md
<ide> GitHub with the `autocrlf` git config flag set to true.
<ide>
<ide> ## Test Directories
<ide>
<del>|Directory |Runs on CI |Purpose |
<del>|-------------------|---------------|---------------|
<del>|abort |Yes |Tests for when the ``` --abort-... | 1 |
Javascript | Javascript | remove rctlog from prod builds | 5db4aad347ad8aec754e227e9afd3f5b4922c120 | <ide><path>Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js
<ide> function setUpConsole() {
<ide> const ExceptionsManager = require('ExceptionsManager');
<ide> ExceptionsManager.installConsoleErrorReporter();
<ide>
<del> require('RCTLog');
<add> if (__DEV__) {
<add> require('RCTLo... | 1 |
Text | Text | add details to with-scoped-external-css | ebfa08fdff12f5de546ec8b303980d206418c672 | <ide><path>examples/with-external-scoped-css/README.md
<ide> yarn start
<ide> #### Supported Langs
<ide> The plugin supports the `less`, `scss` and `css` file extensions. It is possible to add support for another pre-processor by creating a function to compile the code. In the example we use `sass` as our css pre-proce... | 1 |
Python | Python | match typing declaration with implementation | 9a134da31bafc12d31f75474a4b354c80545b9b5 | <ide><path>src/flask/templating.py
<ide> def _render(template: Template, context: dict, app: "Flask") -> str:
<ide>
<ide>
<ide> def render_template(
<del> template_name_or_list: t.Union[str, t.List[str]], **context: t.Any
<add> template_name_or_list: t.Union[str, Template, t.List[t.Union[str, Template]]],
<add>... | 1 |
Text | Text | add v4.3.0 to changelog | 0e2f7e26384eea39bda21111b24b511ee8444525 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v4.3.0-beta.2 (March 1, 2022)
<add>### v4.3.0 (March 21, 2022)
<ide>
<add>- [#20025](https://github.com/emberjs/ember.js/pull/20025) [BUGFIX] Fix a memory leak in the Router Service class
<ide> - [#19971](https://github.com/emberjs/ember.js/pull/19971) [B... | 1 |
Javascript | Javascript | fix prettier issue after merge | 830163239131f83304b07584ce299938a975bfad | <ide><path>test/SourceMapDevToolModuleOptionsPlugin.unittest.js
<ide> describe("SourceMapDevToolModuleOptionsPlugin", () => {
<ide> });
<ide>
<ide> describe("with line-to-line true", () => {
<del> beforeEach(
<del> () =>
<del> (eventBindings = applyPluginWithOptions(
<del> SourceMapDevToolModuleOptio... | 1 |
PHP | PHP | fix wrong phpdoc | ede6ee6b8743449cbef3fa4b59f115cf764c24e0 | <ide><path>src/Illuminate/Database/Query/JoinClause.php
<ide> public function on($first, $operator = null, $second = null, $boolean = 'and')
<ide> *
<ide> * @param \Closure|string $first
<ide> * @param string|null $operator
<del> * @param string|null $second
<add> * @param \Illuminate\Data... | 1 |
PHP | PHP | fix failing tests related to table counts | dd201c6da621e952fdfd3ea9d4ba0e5794ef79d9 | <ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php
<ide> public function testListTables() {
<ide> $result = $schema->listTables();
<ide>
<ide> $this->assertInternalType('array', $result);
<del> $this->assertCount(2, $result);
<del> $this->assertEquals('schema_articles', $result[0]);
<del> $this->asse... | 3 |
Go | Go | log fallback errors as "info" | 86061441593f8c768781681db2268bc1ab6d043e | <ide><path>distribution/pull.go
<ide> func Pull(ctx context.Context, ref reference.Named, imagePullConfig *ImagePullCo
<ide> // append subsequent errors
<ide> lastErr = err
<ide> }
<del> logrus.Errorf("Attempting next endpoint for pull after error: %v", err)
<add> logrus.Infof("Attempting next endpo... | 3 |
Javascript | Javascript | compare binaries equal times | 31314b697874eabe2308bd26b98b72aff3e13ef6 | <ide><path>benchmark/compare.js
<ide> if (nodes.length !== 2)
<ide>
<ide> var spawn = require('child_process').spawn;
<ide> var results = {};
<del>var n = 1;
<add>var toggle = 1;
<add>var r = (+process.env.NODE_BENCH_RUNS || 1) * 2;
<ide>
<ide> run();
<del>
<del>var RUNS = +process.env.NODE_BENCH_RUNS || 1;
<del>var ... | 1 |
Javascript | Javascript | remove private enumerable observers | d342a2a1dc89200a941040e7eefaaede161a39bb | <ide><path>packages/ember-runtime/lib/mixins/array.js
<ide> export function objectAt(content, idx) {
<ide> }
<ide>
<ide> export function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {
<del> let removing, lim;
<del>
<ide> // if no args are passed assume everything changes
<ide> if (startIdx === undef... | 9 |
Javascript | Javascript | clarify ember.nativearray docs | 44283a24d5fe3ab809a3a981a51e02e2e82ac68f | <ide><path>packages/ember-runtime/lib/system/native_array.js
<ide> NativeArray = NativeArray.without(...ignore);
<ide>
<ide> /**
<ide> Creates an `Ember.NativeArray` from an Array like object.
<del> Does not modify the original object. Ember.A is not needed if
<add> Does not modify the original object's contents. ... | 1 |
PHP | PHP | add support for cookies with "samesite" option | 8b5c0d849faf5669e3e2930982cb7e26e24d6217 | <ide><path>src/Http/Cookie/Cookie.php
<ide> class Cookie implements CookieInterface
<ide> */
<ide> protected $httpOnly = false;
<ide>
<add> /**
<add> * Samesite
<add> *
<add> * @var string|null
<add> * @psalm-var CookieInterface::SAMESITE_LAX|CookieInterface::SAMESITE_STRICT|null
<add> ... | 5 |
Javascript | Javascript | use arrow function for callback in lint-sh.js | 27c6fdf3b2960c31c8573eb92d3431a5faf0d018 | <ide><path>tools/lint-sh.js
<ide> if (
<ide> const entryPoint = resolve(process.argv[2]);
<ide> const stats = statSync(entryPoint, { throwIfNoEntry: false });
<ide>
<del> function onError(e) {
<add> const onError = (e) => {
<ide> console.log(USAGE_STR);
<ide> console.error(e);
<ide> process.exitCode ... | 1 |
Javascript | Javascript | use colon for hour-minute delimiter in czech | 99ae5bbace116733facc03df57d214654c174319 | <ide><path>locale/cs.js
<ide> weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
<ide> weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
<ide> longDateFormat : {
<del> LT: 'H.mm',
<add> LT: 'H:mm',
<ide> L : 'DD. MM. YYYY',
<ide> LL : 'D. MMMM YYYY',
... | 2 |
Javascript | Javascript | help button tests | 626d286bcacf2a7367b4196c939a84100a27bce0 | <ide><path>cypress/integration/learn/common-components/helpButton.js
<add>/* global cy */
<add>
<add>describe('Help Button', () => {
<add> it('should be visible', () => {
<add> cy.visit(
<add> '/learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements'
<add> );
<add> cy.get('#get-help-... | 1 |
Javascript | Javascript | move the debugger tests back to parallel | b95160daae00a5c39b3815c29a0cfcbc395e3824 | <add><path>test/parallel/test-debugger-repeat-last.js
<del><path>test/sequential/test-debugger-repeat-last.js
<ide> const fixture = path.join(
<ide>
<ide> const args = [
<ide> 'debug',
<add> `--port=${common.PORT}`,
<ide> fixture
<ide> ];
<ide>
<add><path>test/parallel/test-debugger-util-regression.js
<del><path... | 2 |
PHP | PHP | apply fixes from styleci | 4d13ad92ee9dd881d7eb59dde0f31572b8605cf5 | <ide><path>tests/View/Blade/BladeComponentTagCompilerTest.php
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Foundation\Application;
<ide> use Illuminate\Contracts\View\Factory;
<del>use Illuminate\Filesystem\Filesystem;
<ide> use Illuminate\View\Compilers\BladeCompiler;
<ide> use Illuminate\V... | 1 |
Javascript | Javascript | move lastappprops back where it should be | 20c7d98efe0ce4483ff6d06e1ac1060f584530fb | <ide><path>client/index.js
<ide> async function doRender ({ Component, props, err, emitter }) {
<ide> props = props || lastAppProps.props
<ide>
<ide> const appProps = { Component, props, err, router, headManager }
<add> // lastAppProps has to be set before ReactDom.render to account for ReactDom throwing an error... | 1 |
Javascript | Javascript | remove unused flow suppressions | a2aa008b33f9a62b0ed7c30e5c6908e1cc864163 | <ide><path>Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js
<ide> const styles = StyleSheet.create({
<ide>
<ide> const ProgressViewIOSWithRef = React.forwardRef(ProgressViewIOS);
<ide>
<del>/* $FlowFixMe(>=0.89.0 site=react_native_ios_fb) This comment suppresses an
<del> * error found when Flow v0.89 was d... | 1 |
Javascript | Javascript | fix issue with how chart.pluginbase is defined | 8c90b9f2de6863cca3051276648e363aa332d6a2 | <ide><path>src/chart.js
<ide> var Chart = require('./core/core.js')();
<ide> require('./core/core.helpers')(Chart);
<ide> require('./platforms/platform.js')(Chart);
<ide> require('./core/core.canvasHelpers')(Chart);
<del>require('./core/core.plugin.js')(Chart);
<ide> require('./core/core.element')(Chart);
<add>require(... | 2 |
Javascript | Javascript | add deprecation helpers | f47febd04503ce49bf5ce56f7e1d57966cc28310 | <ide><path>lib/util/deprecation.js
<add>/*
<add> MIT License http://www.opensource.org/licenses/mit-license.php
<add> Author Tobias Koppers @sokra
<add>*/
<add>
<add>"use strict";
<add>
<add>const util = require("util");
<add>
<add>const COPY_METHODS = [
<add> "concat",
<add> "entry",
<add> "filter",
<add> "find",
<add... | 1 |
Go | Go | remove support for runtime v1 api | 658a4b0feca1e8d8a885edd8511f55efeeea3950 | <ide><path>libcontainerd/remote/client.go
<ide> import (
<ide> containerderrors "github.com/containerd/containerd/errdefs"
<ide> "github.com/containerd/containerd/events"
<ide> "github.com/containerd/containerd/images"
<del> "github.com/containerd/containerd/runtime/linux/runctypes"
<ide> v2runcoptions "github.com/... | 1 |
Text | Text | remove extra newline | 622b8776631d3739313fc402ade089c05cdbcb26 | <ide><path>CHANGELOG.md
<ide> * Improved: Use grunt (instead of rake) for build system
<del>
<ide> * Fixed: Java files not syntax highlighting correctly.
<ide> * Fixed: LESS/CSS now indents properly after hitting enter.
<ide> * Added: Support for browsing .tar.gz and .zip files in the editor | 1 |
Text | Text | fix typo in `url.md` | 8bfb4b98156a653c396bee4f4ab64091d1bb49ad | <ide><path>doc/api/url.md
<ide> expected by the [`http.request()`][] and [`https.request()`][] APIs.
<ide> import { urlToHttpOptions } from 'url';
<ide> const myURL = new URL('https://a:b@測試?abc#foo');
<ide>
<del>console.log(urlToHttpOptions(myUrl));
<add>console.log(urlToHttpOptions(myURL));
<ide> /**
<ide> {
<ide> ... | 1 |
Text | Text | add note about asset pipeline and cdns | e85cb2d3bb95ae5cf2f524ffc6828fd40723c83e | <ide><path>guides/source/asset_pipeline.md
<ide> group :production do
<ide> end
<ide> ```
<ide>
<add>### CDNs
<add>
<add>If your assets are being served by a CDN, ensure they don't stick around in
<add>your cache forever. This can cause problems. If you use
<add>`config.action_controller.perform_caching = true`, Rack:... | 1 |
Python | Python | run memcache tests if any cache is configured | 27192564c3193a54165752e8803b4d7b635f9022 | <ide><path>tests/regressiontests/cache/tests.py
<ide> def test_incr_decr_timeout(self):
<ide>
<ide> # memcached backend isn't guaranteed to be available.
<ide> # To check the memcached backend, the test settings file will
<del># need to contain a cache backend setting that points at
<add># need to contain at least one... | 1 |
Ruby | Ruby | remove superfluous odie | 0d3e1119a1155dc60fb9a0840ea4fb2783dc3f37 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def merge
<ide> --keep-old was passed but there are changes in:
<ide> #{mismatches.join("\n")}
<ide> EOS
<del> odie "--keep-old was passed but there were changes in #{mismatches.join(", ")}!"
<ide> ... | 1 |
Python | Python | add ner converter for conll 2003 data | 735d18654da9481a860c11c398abaa754e05f263 | <ide><path>spacy/cli/convert.py
<ide> import plac
<ide> from pathlib import Path
<ide>
<del>from .converters import conllu2json, iob2json
<add>from .converters import conllu2json, iob2json, conll_ner2json
<ide> from ..util import prints
<ide>
<ide> # Converters are matched by file extension. To add a converter, add a... | 2 |
Text | Text | change the instruction text in step 31 | 414ecbf1c20e3ac4eeec1784a7a8dd2de24b4eb8 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fabf0dd4959805dbae09e6.md
<ide> dashedName: step-31
<ide>
<ide> Add another `label` after the first, with the text `Input your age (years): `. Then, nest an `input` with the `type` of `number`.
<ide>... | 1 |
Python | Python | remove misleading docstring | 1650130b0fd71eb80380c47c8ffed89d49ff3481 | <ide><path>examples/text-classification/run_glue.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<del>""" Finetuning the library models for sequence classification on GL... | 1 |
Javascript | Javascript | add edge to browserstack tests | 5ec46b0372147dcecf907b5e6b523b95d93871f7 | <ide><path>build/grunt.js
<ide> module.exports = function(grunt) {
<ide> chrome_bs: { browsers: ['chrome_bs'] },
<ide> firefox_bs: { browsers: ['firefox_bs'] },
<ide> safari_bs: { browsers: ['safari_bs'] },
<add> edge_bs: { browsers: ['edge_bs'] },
<ide> ie11_bs: { browser... | 2 |
PHP | PHP | add support for handling redirects | b6253885f08d42e3b1101e3945aa761f62a5735f | <ide><path>lib/Cake/Network/Http/Adapter/Stream.php
<ide> class Stream {
<ide> *
<ide> * @param Cake\Network\Http\Request $request The request object to send.
<ide> * @param array $options Array of options for the stream.
<del> * @return Cake\Network\Http\Response
<add> * @return array Array of populated Response ob... | 5 |
Javascript | Javascript | fix some lint nits | 7e64ad8fc4defb68deabf10c4bf1d8582e3cbf95 | <ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js
<ide> class ResolutionRequest {
<ide>
<ide> _resolveNodeDependency(fromModule, toModuleName) {
<ide> if (toModuleName[0] === '.' || toModuleName[1] === '/') {
<del> return this._resolveFileOrDir(fromModule, toModu... | 1 |
Javascript | Javascript | fix property name in code comment | 147fb6f637dcf788249f622df6f38b591dc81b4d | <ide><path>packages/ember-runtime/lib/mixins/array.js
<ide> Ember.Array = Ember.Mixin.create(Ember.Enumerable, /** @scope Ember.Array.protot
<ide> Becomes true whenever the array currently has observers watching changes
<ide> on the array.
<ide>
<del> @property Boolean
<add> @property {Boolean} hasArrayO... | 1 |
Mixed | Python | update nel examples and documentation | cafe94ee045fe9937cadbdc0e1c96d6eabde5dec | <ide><path>bin/wiki_entity_linking/README.md
<del>## Entity Linking with Wikipedia and Wikidata
<del>
<del>### Step 1: Create a Knowledge Base (KB) and training data
<del>
<del>Run `wikidata_pretrain_kb.py`
<del>* This takes as input the locations of a **Wikipedia and a Wikidata dump**, and produces a **KB directory*... | 16 |
Ruby | Ruby | fix spaced paths with brew bottle | 55aa2a296be215716466016bfff3fc8116881328 | <ide><path>Library/Contributions/examples/brew-bottle.rb
<ide> HOMEBREW_CELLAR.cd do
<ide> # Use gzip, much faster than bzip2 and hardly any file size difference
<ide> # when compressing binaries.
<del> safe_system "tar czf #{destination}/#{filename} #{formula}/#{version}"
<add> safe_system 'tar', 'czf'... | 1 |
Javascript | Javascript | fix ci problems | c3691df74064ec2a591b3c0beefe3565f84cb71b | <ide><path>test/configCases/container/0-container-full/test.config.js
<ide> module.exports = {
<ide> findBundle: function (i, options) {
<del> return i === 0 ? "./main.js" : "./module/main.mjs";
<add> // In node 10 the ESM part of the test doesn't work
<add> return i === 0 || process.version.startsWith("v10.")
<add... | 4 |
Java | Java | add accessors for expirationtime in flashmap | 83ff0adc2ece396b21561c3a76c47d2413a818c8 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/FlashMap.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use... | 1 |
Javascript | Javascript | remove redundant validateuint32 argument | 64ee64d3afc837350ee39058cef9179e92f3554c | <ide><path>lib/internal/crypto/pbkdf2.js
<ide> function check(password, salt, iterations, keylen, digest) {
<ide>
<ide> password = getArrayBufferView(password, 'password');
<ide> salt = getArrayBufferView(salt, 'salt');
<del> validateUint32(iterations, 'iterations', 0);
<del> validateUint32(keylen, 'keylen', 0);... | 1 |
Text | Text | add text "данная команда перечислит" | 4f56f7238c9e75e3eae2167cdd585663ca5d16f2 | <ide><path>guide/russian/git/git-status/index.md
<ide> git status
<ide> ```
<ide>
<ide> Отображает, какие файлы проиндексированные, непроиндексированные и неотслеживаемые.
<add> | 1 |
Javascript | Javascript | remove unnecessary conditions | 28288c82bd7e485831eb85a2bb9475cf1da88def | <ide><path>lib/EvalSourceMapDevToolModuleTemplatePlugin.js
<ide> class EvalSourceMapDevToolModuleTemplatePlugin {
<ide> return filename;
<ide> });
<ide> sourceMap.sources = moduleFilenames;
<del> if(sourceMap.sourcesContent) {
<del> sourceMap.sourcesContent = sourceMap.sourcesContent.map(content => typeo... | 2 |
Javascript | Javascript | fix hover animations and optimize pivot() | 86ed35446d394ec505d879e79fd29e6ecb199b87 | <ide><path>src/core/core.element.js
<ide> helpers.extend(Element.prototype, {
<ide> pivot: function() {
<ide> var me = this;
<ide> if (!me._view) {
<del> me._view = helpers.clone(me._model);
<add> me._view = helpers.extend({}, me._model);
<ide> }
<ide> me._start = {};
<ide> return me;
<ide> helpers.exten... | 3 |
PHP | PHP | allow disabling of specific middleware in tests | 3879cb699f26136e227f61595c631112a050438b | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
<ide>
<ide> namespace Illuminate\Foundation\Testing\Concerns;
<ide>
<add>use Illuminate\Http\Testing\NullMiddleware;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Foundation\Testing\TestResponse;
<i... | 1 |
Java | Java | fix compose generics | 4a593af2b18af11ad7f326890a13a301629302d4 | <ide><path>src/main/java/rx/Observable.java
<ide> public void call(Subscriber<? super R> o) {
<ide> * @return the source Observable, transformed by the transformer function
<ide> * @see <a href="https://github.com/ReactiveX/RxJava/wiki/Implementing-Your-Own-Operators">RxJava wiki: Implementing Your Own Operat... | 2 |
Python | Python | remove print in __init__.py | 91495a3352d9a35174c3ec711161010c14be1952 | <ide><path>glances/__init__.py
<ide> def main():
<ide> from glances.server import GlancesServer
<ide>
<ide> args = core.get_args()
<del> print args.cached_time
<ide>
<ide> server = GlancesServer(cached_time=args.cached_time,
<ide> config=core.get_config(), | 1 |
Ruby | Ruby | remove extra whitespace | 3adb01ed769fa19c9b7460c22cf1f766194e7c9f | <ide><path>actionpack/lib/action_dispatch.rb
<ide> module Http
<ide> end
<ide>
<ide> module Session
<del> autoload :AbstractStore, 'action_dispatch/middleware/session/abstract_store'
<del> autoload :CookieStore, 'action_dispatch/middleware/session/cookie_... | 1 |
Python | Python | provide a __repr__ for nodeimage and node size | f4ef11abeb07dbfa1df569a8456ec0554043ead0 | <ide><path>libcloud/base.py
<ide> def destroy(self):
<ide> return self.driver.destroy_node(self)
<ide>
<ide> def __repr__(self):
<del> return (('<Node: uuid=%s, name=%s, provider=%s ...>')
<del> % (self.uuid, self.name, self.driver.name))
<add> return (('<Node: uuid=%s, name=%s... | 1 |
Ruby | Ruby | use 1.9 syntax | 1a8ca9fc35083b51c48ddddb6b5b73af2046778c | <ide><path>actionmailer/test/assert_select_email_test.rb
<ide> class AssertSelectEmailTest < ActionMailer::TestCase
<ide>
<ide> class AssertSelectMailer < ActionMailer::Base
<ide> def test(html)
<del> mail :body => html, :content_type => "text/html",
<del> :subject => "Test e-mail", :from => "test@te... | 1 |
Ruby | Ruby | return an array from options | f2e018d747a79056fb618c12d5ed922574e249fd | <ide><path>Library/Homebrew/formula.rb
<ide> def cached_download
<ide> def caveats; nil end
<ide>
<ide> # any e.g. configure options for this package
<del> def options; end
<add> def options; [] end
<ide>
<ide> # patches are automatically applied after extracting the tarball
<ide> # return an array of strin... | 1 |
Javascript | Javascript | replace assert.throws w/ common.expectserror | eae0c05697121aaae4b097f34d30a259c8591af1 | <ide><path>test/parallel/test-http2-compat-serverresponse-headers.js
<ide> server.listen(0, common.mustCall(function() {
<ide> ':path',
<ide> ':authority',
<ide> ':scheme'
<del> ].forEach((header) => assert.throws(
<add> ].forEach((header) => common.expectsError(
<ide> () => response.setHe... | 48 |
Python | Python | add hebrew to init and setup.py | 7e4befec8820371930d9815c0f1c880e2c1d2196 | <ide><path>setup.py
<ide> 'spacy.sv',
<ide> 'spacy.fi',
<ide> 'spacy.bn',
<add> 'spacy.he',
<ide> 'spacy.en.lemmatizer',
<ide> 'spacy.language_data',
<ide> 'spacy.serialize',
<ide><path>spacy/__init__.py
<ide> from . import sv
<ide> from . import fi
<ide> from . import bn
<add>from . import h... | 2 |
Text | Text | fix volume binding in fluentd container example | c450e608b9b1f79f474dbfb468ab26ae0f741868 | <ide><path>docs/admin/logging/fluentd.md
<ide> aggregate store.
<ide>
<ide> 2. Launch Fluentd container with this configuration file:
<ide>
<del> $ docker run -it -p 24224:24224 -v /path/to/conf/test.conf:/fluentd/etc -e FLUENTD_CONF=test.conf fluent/fluentd:latest
<add> $ docker run -it -p 24224:24224 ... | 1 |
Ruby | Ruby | take advantage of inheritence for easier codes | 56f2de870a7279e11575f6d0c6f2f9eea1374407 | <ide><path>lib/arel/algebra/relations/writes.rb
<ide> module Arel
<del> class Deletion < Compound
<del> attributes :relation
<del> deriving :initialize, :==
<add> class Action < Compound
<add> def == other
<add> super || self.class === other && @relation == other.relation
<add> end
<add> end
<ide>
... | 3 |
PHP | PHP | create tests for assertnotfound | c9c5513bb0dcc94a118c4fe86348c02b2b0fded9 | <ide><path>tests/Foundation/FoundationTestResponseTest.php
<ide> public function testAssertSeeTextInOrderCanFail2()
<ide> $response->assertSeeTextInOrder(['foobar', 'qux', 'baz']);
<ide> }
<ide>
<add> public function testAssertNotFound()
<add> {
<add> $statusCode = 500;
<add>
<add> $thi... | 1 |
Python | Python | unskip test on win32 | af6e61668ac3598daca111e7ed81bcca5e910735 | <ide><path>numpy/random/_examples/cython/setup.py
<ide> from distutils.core import setup
<ide> from Cython.Build import cythonize
<ide> from setuptools.extension import Extension
<del>from os.path import join, abspath, dirname
<add>from os.path import join, dirname
<ide>
<del>path = abspath(dirname(__file__))
<add>pat... | 2 |
Ruby | Ruby | show help text for tapped external command | 5b393cb049edbc4d85356896883bf5e85d913acc | <ide><path>Library/Homebrew/brew.rb
<ide> class MissingEnvironmentVariables < RuntimeError; end
<ide> safe_system(*tap_commands)
<ide> end
<ide>
<add> ARGV << "--help" if help_flag
<ide> exec HOMEBREW_BREW_FILE, cmd, *ARGV
<ide> end
<ide> rescue UsageError => e | 1 |
Python | Python | fix conv reccurent test | 84ceb94055b831c486dbf4955fdf1ba0f63320d1 | <ide><path>tests/keras/layers/convolutional_recurrent_test.py
<ide> def test_convolutional_recurrent():
<ide> for return_sequences in [True, False]:
<ide>
<ide> # test for return state:
<del> inputs = Input(batch_shape=inputs.shape)
<add> x = Input(batch_shape=inputs.shape)
<i... | 1 |
Text | Text | add note about nghttp2 hd pair size | 91cc4fa32d98952312b5bc543b4f0cd43246112b | <ide><path>doc/api/http2.md
<ide> changes:
<ide> serialized, compressed block of headers. Attempts to send headers that
<ide> exceed this limit will result in a `'frameError'` event being emitted
<ide> and the stream being closed and destroyed.
<add> While this sets the maximum allowed size to the entire... | 1 |
PHP | PHP | fix model typo in eloquent/model.php | a83c3f2f471b9ba78e3f9500caf1673cac7f413d | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function hasGlobalScope($scope)
<ide> }
<ide>
<ide> /**
<del> * Get a global scope registered with the modal.
<add> * Get a global scope registered with the model.
<ide> *
<ide> * @param \Illuminate\Database\Eloquent\ScopeInterface $sc... | 1 |
PHP | PHP | use hash instead of set class | ad5e62515fd824210d1ca0c67b33b5c372f0f63c | <ide><path>lib/Cake/View/XmlView.php
<ide>
<ide> App::uses('View', 'View');
<ide> App::uses('Xml', 'Utility');
<add>App::uses('Hash', 'Utility');
<ide>
<ide> /**
<ide> * A view class that is used for creating XML responses.
<ide> protected function _serialize($serialize) {
<ide> }
<ide> } else {
<ide> $data ... | 1 |
Ruby | Ruby | remove unused require | 9d700ad6259a459f8b0c25ebaad49a095f36a814 | <ide><path>railties/lib/rails/commands/dbconsole/dbconsole_command.rb
<del>require "erb"
<del>require "yaml"
<del>
<ide> require "rails/command/environment_argument"
<ide>
<ide> module Rails | 1 |
Javascript | Javascript | add unc support to url.pathtofileurl() | 7b8c6b0c00f5e321e431047794fde8b84d0c4c3f | <ide><path>lib/internal/url.js
<ide> const { getConstructorOf, removeColors } = require('internal/util');
<ide> const {
<ide> ERR_ARG_NOT_ITERABLE,
<ide> ERR_INVALID_ARG_TYPE,
<add> ERR_INVALID_ARG_VALUE,
<ide> ERR_INVALID_CALLBACK,
<ide> ERR_INVALID_FILE_URL_HOST,
<ide> ERR_INVALID_FILE_URL_PATH,
<ide> cons... | 3 |
Python | Python | add juggler sequence | b33ea81a7437eaf7d048d92a9b75330c9d9e165e | <ide><path>maths/juggler_sequence.py
<add>"""
<add>== Juggler Sequence ==
<add>Juggler sequence start with any positive integer n. The next term is
<add>obtained as follows:
<add> If n term is even, the next term is floor value of square root of n .
<add> If n is odd, the next term is floor value of 3 time the sq... | 1 |
PHP | PHP | fix storeas array issue | 37a9617da416d8aec68d01a206c0453f0288c159 | <ide><path>src/Illuminate/Http/UploadedFile.php
<ide> public function storePubliclyAs($path, $name, $options = [])
<ide> */
<ide> public function storeAs($path, $name, $options = [])
<ide> {
<add> $options = $this->parseOptions($options);
<add>
<ide> $disk = Arr::pull($options, 'disk... | 1 |
Javascript | Javascript | expose the serialization api | e06a8087638284d4def981e396feaead7b207c17 | <ide><path>lib/cache/FileCachePlugin.js
<ide> const path = require("path");
<ide> const createHash = require("../util/createHash");
<ide> const makeSerializable = require("../util/makeSerializable");
<del>const serializer = require("../util/serializer");
<add>const { serializer } = require("../util/serialization");
<id... | 3 |
Text | Text | add notes on how to exit the debugger [ci-skip] | 14e8939e2861f69505c0810caf63b5c0579a7ed1 | <ide><path>guides/source/debugging_rails_applications.md
<ide> Processing by PostsController#index as HTML
<ide> (rdbg)
<ide> ```
<ide>
<add>You can exit the debugging session at any time and continue your application execution with the `continue` (or `c`) command. Or, to exit both the debugging session and your appl... | 1 |
Python | Python | fix double-wrapping of object scalars | fa56437c4eb4ca0c2a97597700a3fc6ad36963fa | <ide><path>numpy/lib/shape_base.py
<ide> def apply_along_axis(func1d, axis, arr, *args, **kwargs):
<ide> in_dims = list(range(nd))
<ide> inarr_view = transpose(arr, in_dims[:axis] + in_dims[axis+1:] + [axis])
<ide>
<del> # compute indices for the iteration axes
<add> # compute indices for the iteration a... | 2 |
Ruby | Ruby | set correct compiler symbol for gcc 4.0 | bdd2e71b3a66f9f4a434110ec7501d87cf7b256d | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def gcc_4_0_1
<ide> self.cxx = "#{MacOS.dev_tools_path}/g++-4.0"
<ide> replace_in_cflags '-O4', '-O3'
<ide> set_cpu_cflags '-march=nocona -mssse3'
<del> @compiler = :gcc
<add> @compiler = :gcc_4_0
<ide> end
<ide> alias_method :gcc_4_0, :gcc_4_0_1... | 1 |
Javascript | Javascript | throw error if interpolation is used in expression | cd21602d5b1650d8be373618cb7320d697e32c4d | <ide><path>src/ng/directive/ngBind.js
<ide> var ngBindHtmlDirective = ['$sce', '$parse', '$compile', function($sce, $parse,
<ide> return {
<ide> restrict: 'A',
<ide> compile: function ngBindHtmlCompile(tElement, tAttrs) {
<add> var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);
<add> var ngBindHtmlWa... | 2 |
PHP | PHP | update deprecation notice | 1d374307beabdb45a3e79d8f57433a2ed3e09e6e | <ide><path>src/Validation/Validator.php
<ide> protected function _convertValidatorToArray($fieldName, $defaults = [], $setting
<ide> * Because this and `allowEmpty()` modify the same internal state, the last
<ide> * method called will take precedence.
<ide> *
<del> * @deprecated 3.7.0 Use allowEmptyS... | 1 |
Ruby | Ruby | add mktemp function | bb1bb5130908381e91106ae1312d4dced780a011 | <ide><path>Library/Homebrew/requirement.rb
<ide> def display_s
<ide> name
<ide> end
<ide>
<add> def mktemp
<add> Mktemp.new(name).run do |staging|
<add> yield staging
<add> end
<add> end
<add>
<ide> private
<ide>
<ide> def infer_name | 1 |
Java | Java | expose js source location to js | 3a0a1a41222f327beb607fd7994e1b273532dbf4 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java
<ide> public List<NativeModule> createNativeModules(
<ide> new ExceptionsManagerModule(mReactInstanceManager.getDevSupportManager()),
<ide> new Timing(catalystApplicationContext),
<ide> new SourceCodeModule(
<del> ... | 3 |
Javascript | Javascript | fix length judgment in minchunksizeplugin | d8a495c357a907279a91fdfc26180dc176c8c87f | <ide><path>lib/optimize/MinChunkSizePlugin.js
<ide> MinChunkSizePlugin.prototype.apply = function(compiler) {
<ide> return pair[0].size(equalOptions) < minChunkSize || pair[1].size(equalOptions) < minChunkSize;
<ide> });
<ide>
<del> if(combinations.length === 0) return;
<del>
<ide> combinations.forEach(fun... | 1 |
Text | Text | update all pypi.python.org urls to pypi.org | 8c47a875ec526192550f4b5c1a7f22a3b8dd095d | <ide><path>README.md
<ide> Send a description of the issue via email to [rest-framework-security@googlegrou
<ide> [coverage-status-image]: https://img.shields.io/codecov/c/github/encode/django-rest-framework/master.svg
<ide> [codecov]: https://codecov.io/github/encode/django-rest-framework?branch=master
<ide> [pypi-ver... | 3 |
PHP | PHP | remove deprecated method | e90b88bccf104aa90c307e0bcac74688365677b9 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function fill(array $attributes)
<ide> $totallyGuarded = $this->totallyGuarded();
<ide>
<ide> foreach ($this->fillableFromArray($attributes) as $key => $value) {
<del> $key = $this->removeTableFromKey($key);
<del>
<ide> ... | 1 |
Python | Python | fix typo in comment | f00bceab8d3f74d107396fcfb0a90c8ea54b2264 | <ide><path>src/transformers/models/gpt2/modeling_gpt2.py
<ide> def forward(
<ide> attention_mask = attention_mask.to(dtype=self.dtype) # fp16 compatibility
<ide> attention_mask = (1.0 - attention_mask) * -10000.0
<ide>
<del> # If a 2D ou 3D attention mask is provided for the cross-atten... | 1 |
Java | Java | fix checkstyle violation | 09db8881bba81cdf7a41565b97f055485ff8e96b | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java
<ide> import java.util.Arrays;
<ide> import java.util.Collection;
<ide> import java.util.Collections;
<del>import java.util.Iterator;
<ide> import java.util.LinkedHashMap;
<ide> import java.util.Map;
<ide> import java.util.reg... | 1 |
Text | Text | remove unnecessary line break | 238f17825762fcb17f3c8670f37614178efb49e6 | <ide><path>docs/api/combineReducers.md
<ide>
<ide> As your app grows more complex, you’ll want to split your [reducing function](../Glossary.md#reducer) into separate functions, each managing independent parts of the [state](../Glossary.md#state).
<ide>
<del>The `combineReducers` helper function turns an object whose... | 1 |
Python | Python | detect vendor versions of gnu compilers | ed569bfa689a3f58425af2c5007a6779a7f4c4a7 | <ide><path>numpy/distutils/fcompiler/gnu.py
<ide> class GnuFCompiler(FCompiler):
<ide>
<ide> def gnu_version_match(self, version_string):
<ide> """Handle the different versions of GNU fortran compilers"""
<del> m = re.match(r'GNU Fortran', version_string)
<add> m = re.search(r'GNU Fortran', v... | 1 |
Python | Python | remove more compat code | 57d628ca74513480908a63a6b66c1c8b1af896e8 | <ide><path>src/flask/cli.py
<ide> def convert(self, value, param, ctx):
<ide>
<ide> obj = import_string(value, silent=True)
<ide>
<del> if sys.version_info < (2, 7, 9):
<del> if obj:
<del> return obj
<del> else:
<del> if isinstance(obj... | 9 |
Ruby | Ruby | align the gemfileentry api with stable branches | 46617f02c6e473b7e695330076d2039de1c9aff2 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def initialize(name, version, comment, options = {}, commented_out = false)
<ide> super
<ide> end
<ide>
<del> def self.github(name, github, comment = nil)
<del> new(name, nil, comment, github: github)
<add> def self.git... | 1 |
Javascript | Javascript | update linkrendernode signature | 93d42e327425a9ae776fe200469b3048d47ef63d | <ide><path>packages/ember-htmlbars/lib/hooks/link-render-node.js
<ide> import subscribe from "ember-htmlbars/utils/subscribe";
<ide> import shouldDisplay from "ember-views/streams/should_display";
<ide> import { chain, read } from "ember-metal/streams/utils";
<ide>
<del>export default function linkRenderNode(renderNod... | 1 |
Python | Python | update the beta dependencies | d5ce303a3b675886827344e2b85d4a94c7e61242 | <ide><path>official/projects/basnet/modeling/basnet_model.py
<ide>
<ide> from official.modeling import tf_utils
<ide> from official.projects.basnet.modeling import nn_blocks
<del>from official.vision.beta.modeling.backbones import factory
<add>from official.vision.modeling.backbones import factory
<ide>
<ide> # Speci... | 3 |
PHP | PHP | add support for sha256 hashing on token guard | e2e16744bea55dab43a4b2093f6de67720e6a28d | <ide><path>src/Illuminate/Auth/TokenGuard.php
<ide> class TokenGuard implements Guard
<ide> */
<ide> protected $storageKey;
<ide>
<add> /**
<add> * Indicates if the API token is hashed in storage.
<add> *
<add> * @var bool
<add> */
<add> protected $hash = false;
<add>
<ide> /**
<ide>... | 2 |
Javascript | Javascript | use main entry points only inside ember-views | e9d69fb6fa8cce70d099db09e1a36cf155d693a5 | <ide><path>packages/ember-metal/lib/index.js
<ide> export {
<ide> didRender,
<ide> assertNotRendered
<ide> } from './transaction';
<add>export { default as descriptor } from './descriptor';
<ide>
<ide>
<ide> // TODO: this needs to be deleted once we refactor the build tooling
<ide><path>packages/ember-views/lib/c... | 24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.