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 | adjust expected values in core.title.tests.js | 4f668c3ed94c57bc5176bd8c89c2bb743139087c | <ide><path>test/core.title.tests.js
<ide> describe('Title block tests', function() {
<ide> args: [0]
<ide> }, {
<ide> name: 'fillText',
<del> args: ['My title', 0, 0]
<add> args: ['My title', 0, 0, 400]
<ide> }, {
<ide> name: 'restore',
<ide> args: []
<ide> describe('Title block tests', function() {... | 1 |
PHP | PHP | correct docblock version | 8e73de938c59ccaa4082091abb78ef56ce32d22a | <ide><path>tests/TestCase/View/Helper/FlashHelperTest.php
<ide> *
<ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
<del> * @since 1.2.0
<add> * @since 3.0.0
... | 1 |
Text | Text | remove unneeded ellipsis in header | 08be585712774904bccbf4a43e481895a641464f | <ide><path>doc/api/modules.md
<ide> The `.mjs` extension is reserved for [ECMAScript Modules][] which cannot be
<ide> loaded via `require()`. See [Determining module system][] section for more info
<ide> regarding which files are parsed as ECMAScript modules.
<ide>
<del>## All together...
<add>## All together
<ide>
<... | 1 |
Javascript | Javascript | evaluate typeof requrire.ensure/include | f0c7815c93afcb994a2f4dd8b785b03de97562bc | <ide><path>lib/dependencies/RequireEnsurePlugin.js
<ide> */
<ide> var RequireEnsureItemDependency = require("./RequireEnsureItemDependency");
<ide> var RequireEnsureDependency = require("./RequireEnsureDependency");
<add>var ConstDependency = require("./ConstDependency");
<ide>
<ide> var NullFactory = require("../Null... | 3 |
Text | Text | create a set class | c3155c4f5b1add1036b5d74edd792c0ca3e24818 | <ide><path>curriculum/challenges/english/08-coding-interview-prep/data-structures/create-a-set-class.english.md
<ide> function Set() {
<ide>
<ide>
<ide> ```js
<del>function Set() {var collection = []; this.has = function(e){return(collection.indexOf(e) !== -1);};this.values = function() {return collection;};this.add ... | 2 |
Ruby | Ruby | remove unused argument | 9d40c09ab27d8b1c20e045a67a4b8c24d838cdfb | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> module ClassMethods
<ide> # calculating which callbacks can be omitted because of per_key conditions.
<ide> #
<ide> def __run_callbacks(key, kind, object, &blk) #:nodoc:
<del> name = __callback_runner_name(key, kind)
<add> na... | 1 |
PHP | PHP | add missing parameter | 84ce4b8dac1e4bc65c98f8bde89d6ec87541eb44 | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> public function id()
<ide> */
<ide> public function once(array $credentials = [])
<ide> {
<del> $this->fireAttemptEvent($credentials);
<add> $this->fireAttemptEvent($credentials, false);
<ide>
<ide> if ($this->validate($credential... | 1 |
Javascript | Javascript | fix strictequal assertion order on readline tests | 83fa60b37b775a1ef768b504a3cbae928a0c9c92 | <ide><path>test/parallel/test-readline.js
<ide> const assert = require('assert');
<ide> ''
<ide> ].forEach(function(expectedLine) {
<ide> rl.write.apply(rl, key.xterm.metad);
<del> assert.strictEqual(0, rl.cursor);
<del> assert.strictEqual(expectedLine, rl.line);
<add> assert.strictEqual(rl.cursor, 0... | 1 |
Ruby | Ruby | apply suggestions from code review | da007134c4f6ee37643752c662165d8da475c067 | <ide><path>Library/Homebrew/dev-cmd/update-license-data.rb
<ide> def update_license_data_args
<ide> usage_banner <<~EOS
<ide> `update_license_data` <cmd>
<ide>
<del> Update SPDX license data in the Homebrew repository.
<add> Update SPDX license data in the Homebrew repository.
<ide> ... | 1 |
Text | Text | fix doc for napi_get_value_string_utf8 | 82bad0b4d8b17e998b0ff15066f253f7e47c2feb | <ide><path>doc/api/n-api.md
<ide> NAPI_EXTERN napi_status napi_get_value_string_latin1(napi_env env,
<ide> - `[in] value`: `napi_value` representing JavaScript string.
<ide> - `[in] buf`: Buffer to write the ISO-8859-1-encoded string into. If NULL is
<ide> passed in, the length of the string (in bytes) is returned.
<de... | 1 |
Javascript | Javascript | add strict equalities in src/core/fonts.js | 97b3eadbc48d86d91754aee024c9f4d1dfb17908 | <ide><path>src/core/fonts.js
<ide> var Font = (function FontClosure() {
<ide>
<ide> this.toFontChar = [];
<ide>
<del> if (properties.type == 'Type3') {
<add> if (properties.type === 'Type3') {
<ide> for (charCode = 0; charCode < 256; charCode++) {
<ide> this.toFontChar[charCode] = (this.differ... | 1 |
Javascript | Javascript | duplicate short map into private use area | 09dfde69a285b547886c12539420673357726cb6 | <ide><path>src/fonts.js
<ide> var Font = (function FontClosure() {
<ide>
<ide> if (hasShortCmap && this.hasEncoding && !this.isSymbolicFont) {
<ide> // Re-encode short map encoding to unicode -- that simplifies the
<del> // resolution of MacRoman encoded glyphs logic for TrueType fonts.
<add... | 1 |
Javascript | Javascript | fix exporting globals in scope-hoisted modules | 9315ce29aa41d05252a43036cc9f2ff15cad59ef | <ide><path>lib/optimize/ConcatenatedModule.js
<ide> const getFinalName = (
<ide> } else if (!info.module.isUsed(exportName)) {
<ide> return "/* unused export */ undefined";
<ide> }
<add> if (info.globalExports.has(directExport)) {
<add> return directExport;
<add> }
<ide> const name = info.int... | 5 |
Go | Go | add support for reading journal extras and in utc | 0da0a8f9dae35e6a9cb63b9e4a3285e24c001af3 | <ide><path>daemon/logger/journald/read.go
<ide> package journald
<ide> // }
<ide> // return rc;
<ide> //}
<add>//static int is_attribute_field(const char *msg, size_t length)
<add>//{
<add>// const struct known_field {
<add>// const char *name;
<add>// size_t length;
<add>// } fields[] = {
<add>// {"MESSAGE", sizeof... | 1 |
PHP | PHP | use arrow functions for database | 6cc602456ff3652a9b6178c4347e7f113965607b | <ide><path>src/Illuminate/Database/Connectors/ConnectionFactory.php
<ide> protected function createPdoResolver(array $config)
<ide> protected function createPdoResolverWithHosts(array $config)
<ide> {
<ide> return function () use ($config) {
<del> foreach (Arr::shuffle($hosts = $this->parseHo... | 2 |
Python | Python | fix compiler flags, addressing | 2e449c1fbfd1fdb948da6056c3694a23de1bdf46 | <ide><path>setup.py
<ide>
<ide> COMPILE_OPTIONS = {
<ide> 'msvc': ['/Ox', '/EHsc'],
<del> 'mingw32' : ['-O3', '-Wno-strict-prototypes', '-Wno-unused-function'],
<del> 'other' : ['-O3', '-Wno-strict-prototypes', '-Wno-unused-function',
<del> '-march=native']
<add> 'mingw32' : ['-O2', '-Wno-s... | 1 |
Javascript | Javascript | add hyphen on drawerlockmode values | 20cd7ac339cd01f19ed3d74b6a4ce87b584be9aa | <ide><path>Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
<ide> var DrawerLayoutAndroid = React.createClass({
<ide> /**
<ide> * Specifies the lock mode of the drawer. The drawer can be locked in 3 states:
<ide> * - unlocked (default), meaning that the drawer will respond (open/close) to... | 1 |
Text | Text | update discussion template | a6e27c3f5593971dea7c350b52bae6f893dfdffd | <ide><path>.github/ISSUE_TEMPLATE/discussion.md
<ide> ---
<ide> name: 🗣 Start a Discussion
<del>about: Use https://discuss.reactjs.org/ to propose changes or discuss feature requests.
<add>about: Use https://github.com/react-native-community/discussions-and-proposals to propose changes or discuss feature requests.
<id... | 1 |
Ruby | Ruby | use the file watcher defined by the app config | ea3b6ac6ca8d2d60e393ed983a5d436bb135e503 | <ide><path>activesupport/lib/active_support/i18n_railtie.rb
<ide> def self.initialize_i18n(app)
<ide> I18n.enforce_available_locales = enforce_available_locales
<ide>
<ide> directories = watched_dirs_with_extensions(reloadable_paths)
<del> reloader = ActiveSupport::FileUpdateChecker.new(I18n.load_path... | 1 |
Javascript | Javascript | remove timermixin from touchablewithoutfeedback | 6c2001715246c5e92c1b08edb9df352c863575a3 | <ide><path>Libraries/Components/Touchable/TouchableWithoutFeedback.js
<ide> const DeprecatedEdgeInsetsPropType = require('DeprecatedEdgeInsetsPropType');
<ide> const React = require('React');
<ide> const PropTypes = require('prop-types');
<del>const TimerMixin = require('react-timer-mixin');
<ide> const Touchable = req... | 2 |
Javascript | Javascript | update query/hash test for safari | 89e572b12ba369845fa6289535b068ceb27002a0 | <ide><path>test/integration/production/test/index.test.js
<ide> describe('Production Usage', () => {
<ide> await browser.waitForElementByCss('.about-page')
<ide> })
<ide>
<del> it.each([
<del> { hash: '#hello?' },
<del> { hash: '#?' },
<del> { hash: '##' },
<del> { hash: '##?' },
<del> { hash: '#... | 1 |
Javascript | Javascript | handle the empty string as a valid override | 67a4a25b890fada0043c1ff98e5437d793f44d0c | <ide><path>src/ng/directive/ngPluralize.js
<ide> var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp
<ide> if (!isNaN(value)) {
<ide> //if explicit number rule such as 1, 2, 3... is defined, just use it. Otherwise,
<ide> //check it against pluralization rules in ... | 2 |
Javascript | Javascript | fix typo in lib/internal/crypto/certificate.js | 6f941456370322b2aeb83585064532992b7bd8a7 | <ide><path>lib/internal/crypto/certificate.js
<ide> const {
<ide> } = require('internal/crypto/util');
<ide>
<ide> // The functions contained in this file cover the SPKAC format
<del>// (also refered to as Netscape SPKI). A general description of
<add>// (also referred to as Netscape SPKI). A general description of
<i... | 1 |
Text | Text | fix error page doc for no server import in page | 6274733fcb67ad87f15a8d0d9c1fc3b9a178b491 | <ide><path>errors/no-server-import-in-page.md
<ide>
<ide> ### Why This Error Occurred
<ide>
<del>`next/server` was imported in a page outside of `pages/_middleware.js` (or `pages/_middleware.tsx` if you are using TypeScript)
<add>`next/server` was imported outside of `pages/**/_middleware.{js,ts}`.
<ide>
<ide> ### P... | 1 |
PHP | PHP | update method signature | 79b8b701e1be8e90372aec1f34724b63204b44a4 | <ide><path>src/Illuminate/Console/View/Components/Factory.php
<ide> * @method void alert(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)
<ide> * @method void bulletList(array $elements, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_... | 1 |
Javascript | Javascript | fix test-process-env-tz.js by using regexp | b35ee26f03021eb196fff0dec47291b0bb2f1c3a | <ide><path>test/parallel/test-process-env-tz.js
<ide> if (date.toString().includes('(Central European Time)') ||
<ide> common.skip('tzdata too old');
<ide> }
<ide>
<del>assert.strictEqual(
<del> date.toString().replace('Central European Summer Time', 'CEST'),
<del> 'Sat Apr 14 2018 14:34:56 GMT+0200 (CEST)');
<add... | 1 |
PHP | PHP | add test cases | b0035ff17ea0fdd86997cc8ab4024a5b67377226 | <ide><path>tests/Database/DatabaseEloquentModelTest.php
<ide> public function testFindMethodCallsQueryBuilderCorrectly()
<ide> $this->assertEquals('foo', $result);
<ide> }
<ide>
<add> public function testFindMethodUseWritePdo()
<add> {
<add> $result = EloquentModelFindWithWritePdoStub::onWrite()->find(1);
<add> }... | 2 |
Javascript | Javascript | add test for dispatch | 7d018fbc41a40b8832026c0ed8b86233dcd48e57 | <ide><path>test/core/dispatch-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("d3.dispatch");
<add>
<add>suite.addBatch({
<add> "dispatch": {
<add> topic: function() {
<add> return d3.disp... | 1 |
Python | Python | improve illustartion of unsupported args | 3b27713a2c2d432a2ece6344417df93422d3f96c | <ide><path>numpy/doc/dispatch.py
<ide> class to indicate that it would like to handle computations in a custom-defined
<ide> calls ``numpy.sum(self)``, and the same for ``mean``.
<ide>
<ide> >>> @implements(np.sum)
<del>... def sum(a, axis=None, out=None):
<add>... def sum(a):
<ide> ... "Implementation of np.sum f... | 1 |
Text | Text | fix nodei-image in readme | 6f8580a2f6675250bad8e9c8e7bc932863598614 | <ide><path>README.md
<ide> I'm very thankful for every dollar. If you leave your username or email, I may s
<ide> [david-dev-image]: https://david-dm.org/webpack/webpack/dev-status.svg
<ide> [david-peer-url]: https://david-dm.org/webpack/webpack#info=peerDependencies
<ide> [david-peer-image]: https://david-dm.org/webpa... | 1 |
Python | Python | add a comment on why we need to use a property | e9c7e7ef10aab669bb89e5940dba2f69a85bfd1b | <ide><path>libcloud/common/base.py
<ide> def response(self):
<ide>
<ide> @property
<ide> def body(self):
<add> # Note: We use property to avoid saving whole response body into RAM
<add> # See https://github.com/apache/libcloud/pull/1132 for details
<ide> return self.response.body
<ide>
<... | 2 |
PHP | PHP | remove translation from this test | d66ad0bc60f5614d5d6b47f3abd22e0288ea5786 | <ide><path>lib/Cake/tests/cases/console/libs/help_formatter.test.php
<ide> class HelpFormatterTest extends CakeTestCase {
<ide> */
<ide> function testWidthFormatting() {
<ide> $parser = new ConsoleOptionParser('test', false);
<del> $parser->description(__d('cake', 'This is fifteen This is fifteen This is fifteen')... | 1 |
PHP | PHP | fix bug with check state in form builder | 9acec8dcb91e6e7b0dbf774d764906345f3b1743 | <ide><path>src/Illuminate/Html/FormBuilder.php
<ide> public function radio($name, $value = null, $checked = null, $options = array())
<ide> */
<ide> protected function checkable($type, $name, $value, $checked, $options)
<ide> {
<del> if (is_null($checked)) $checked = (bool) $this->getValueAttribute($name, null);
<... | 1 |
Text | Text | add changes for 1.2.17 and 1.3.0-beta-11 | ebf59b4206afd801e3effd440e8d930063f1f8f3 | <ide><path>CHANGELOG.md
<add><a name="1.3.0-beta.11"></a>
<add># 1.3.0-beta.11 transclusion-deforestation (2014-06-06)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animate:** remove the need to add `display:block !important` for `ngShow`/`ngHide`
<add> ([7c011e79](https://github.com/angular/angular.js/commit/7c011e79... | 1 |
Python | Python | fix crash in browser mode with python 3 | 76cdd091eb24720d77341473ca86c6ea07f74183 | <ide><path>glances/core/glances_client_browser.py
<ide> def serve_forever(self):
<ide> # Display a popup to enter password
<ide> clear_password = self.screen.display_popup(_("Password needed for %s: " % v['name']), is_input=True)
<ide> # Hash with SHA256
<del>... | 1 |
PHP | PHP | remove duplicate property names & fix tests | e69a549e7ae95e4be6248b245f629fc26f31c390 | <ide><path>lib/Cake/Controller/Controller.php
<ide> class Controller extends Object implements EventListener {
<ide> */
<ide> public $layoutPath = null;
<ide>
<del>/**
<del> * Contains variables to be handed to the view.
<del> *
<del> * @var array
<del> */
<del> public $viewVars = array();
<del>
<ide> /**
<ide> * T... | 4 |
Ruby | Ruby | use each instead of map | 43ba72fb5768427b78d1a044488c5fce1539c419 | <ide><path>Library/Homebrew/descriptions.rb
<ide> def self.save_cache
<ide> # save it for future use.
<ide> def self.generate_cache
<ide> @cache = {}
<del> Formula.map do |f|
<add> Formula.each do |f|
<ide> @cache[f.full_name] = f.desc
<ide> end
<ide> self.save_cache | 1 |
Java | Java | update javadoc to reflect changes | 508be4e0facf32233287fdfa624f65654c6505e4 | <ide><path>spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java
<ide> * classpath:com/mycompany/**/applicationContext.xml</pre>
<ide> * the resolver follows a more complex but defined procedure to try to resolve
<ide> * the wildcard. It produces a {@code Resource... | 1 |
Java | Java | fix the bug that scan may request 0 when n is 1 | 9b503e5043932a3875558d601841ff7ae17c2500 | <ide><path>src/main/java/rx/internal/operators/OperatorScan.java
<ide> public void setProducer(final Producer producer) {
<ide>
<ide> final AtomicBoolean once = new AtomicBoolean();
<ide>
<add> final AtomicBoolean excessive = new AtomicBoolean();
<add>
<ide> ... | 2 |
PHP | PHP | use empty() instead of implicit cast | 268dfa38d2d9684967785f886d5ba44e5f87e24a | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _initInputField($field, $options = [])
<ide> }
<ide> $parts = explode('.', $field);
<ide> $first = array_shift($parts);
<del> $options['name'] = $first . ($parts ? '[' . implode('][', $parts) . ']' : '') . ... | 1 |
Text | Text | add details about rss on process.memoryusage | 367db920e3b69ed9ded50cf6e652b9f581e10748 | <ide><path>doc/api/process.md
<ide> Will generate:
<ide>
<ide> `heapTotal` and `heapUsed` refer to V8's memory usage.
<ide> `external` refers to the memory usage of C++ objects bound to JavaScript
<del>objects managed by V8.
<add>objects managed by V8. `rss`, Resident Set Size, is the amount of space
<add>occupied in ... | 1 |
Ruby | Ruby | remove code that could never be executed | de4bd472c3298f0455de8e3862c31900184f3c31 | <ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb
<ide> def aliased_table_name_for(name, suffix = nil)
<ide> if !@join_dependency.table_aliases[name].zero? # We need an alias
<ide> name = active_record.connection.table_alias_for "#{plurali... | 1 |
Ruby | Ruby | add bottle? method to tab | 4057a68e6e074d9e3e42a7e94f89723804f9f998 | <ide><path>Library/Homebrew/tab.rb
<ide> def build_bottle?
<ide> built_as_bottle && !poured_from_bottle
<ide> end
<ide>
<add> def bottle?
<add> built_as_bottle
<add> end
<add>
<ide> def to_json
<ide> attributes = {
<ide> "used_options" => used_options.as_flags, | 1 |
Go | Go | remove unused opts (moved to docker/cli) | 306074572ca3025820a4a3ad98e327dd51edaf47 | <ide><path>opts/mount.go
<del>package opts
<del>
<del>import (
<del> "encoding/csv"
<del> "fmt"
<del> "os"
<del> "strconv"
<del> "strings"
<del>
<del> mounttypes "github.com/docker/docker/api/types/mount"
<del> "github.com/docker/go-units"
<del>)
<del>
<del>// MountOpt is a Value type for parsing mounts
<del>type Mount... | 7 |
PHP | PHP | fix 2.6 merge errors | 6866d3aecdcd381e0fe8e8ecd351e272a01b24a6 | <ide><path>tests/TestCase/Network/RequestTest.php
<ide> public function testHere() {
<ide> public function testHereWithSpaceInUrl() {
<ide> Configure::write('App.base', '');
<ide> $_GET = array('/admin/settings/settings/prefix/Access_Control' => '');
<del> $request = new CakeRequest('/admin/settings/settings/pref... | 1 |
Python | Python | fix potential division by zero | d045e10195126981b79743adc9ad67e0ca5a4b62 | <ide><path>keras/preprocessing/image.py
<ide> def standardize(self, x):
<ide> if self.samplewise_center:
<ide> x -= np.mean(x, keepdims=True)
<ide> if self.samplewise_std_normalization:
<del> x /= np.std(x, keepdims=True) + 1e-7
<add> x /= (np.std(x, keepdims=True) + K.... | 1 |
Java | Java | upgrade tests to testng 7.1 | 745cfcb1617cda2763e6e58d88889885883b7822 | <ide><path>spring-test/src/test/java/org/springframework/test/context/cache/ClassLevelDirtiesContextTestNGTests.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lic... | 2 |
Javascript | Javascript | add support for re-entrant ssr stacks | 6ebc8f3c07d8aadea127532fd33637cb091a9e66 | <ide><path>packages/react-dom/src/__tests__/ReactDOM-test.js
<ide>
<ide> 'use strict';
<ide>
<del>let React = require('react');
<del>let ReactDOM = require('react-dom');
<del>const ReactTestUtils = require('react-dom/test-utils');
<add>let React;
<add>let ReactDOM;
<add>let ReactDOMServer;
<add>let ReactTestUtils;
<i... | 3 |
Python | Python | use our yaml util in all providers | 45b11d4ed1412c00ebf32a03ab5ea3a06274f208 | <ide><path>airflow/providers/amazon/aws/hooks/eks.py
<ide> from functools import partial
<ide> from typing import Callable, Dict, Generator, List, Optional
<ide>
<del>import yaml
<ide> from botocore.exceptions import ClientError
<ide> from botocore.signers import RequestSigner
<ide>
<ide> from airflow.providers.amazo... | 3 |
Ruby | Ruby | let tip and friends handle a multiline paragraph | 598eab90ffb60638a578b5b205388cb755485280 | <ide><path>railties/guides/rails_guides/generator.rb
<ide> def textile(body, lite_mode=false)
<ide> t = RedCloth.new(body)
<ide> t.hard_breaks = false
<ide> t.lite_mode = lite_mode
<del> t.to_html(:notestuff, :plusplus, :code, :tip)
<add> t.to_html(:notestuff, :plusplus, :code)
<id... | 2 |
Python | Python | fix documentation for box coder | e0b082ed7c21195a95212398bb7e51004f0cdc57 | <ide><path>research/object_detection/box_coders/detr_box_coder.py
<ide>
<ide>
<ide> class DETRBoxCoder(box_coder.BoxCoder):
<del> """Faster RCNN box coder."""
<add> """DETR box coder."""
<ide>
<ide> def __init__(self):
<del> """Constructor for DETRBoxCoder.
<del>
<del> Args:
<del> scale_factors: List ... | 1 |
Javascript | Javascript | support additional attribute types | 63502b521e1d50e42f57f24bc5d38b82fa5e0702 | <ide><path>examples/js/loaders/EXRLoader.js
<ide> THREE.EXRLoader.prototype = Object.assign( Object.create( THREE.DataTextureLoade
<ide>
<ide> }
<ide>
<add> function parseRational( dataView, offset ) {
<add>
<add> var x = parseUint32( dataView, offset );
<add> var y = parseUint32( dataView, offset );
<add>
<ad... | 2 |
Python | Python | change id to image to contain full path | 8d31503fd2f03c2b53a527fb830cf02c9ec81039 | <ide><path>libcloud/compute/drivers/libvirt_driver.py
<ide> def list_images(self, location=IMAGES_LOCATION):
<ide>
<ide> for image in output.strip().split('\n'):
<ide> name, size = image.split(' ')
<add> id = name
<ide> name = name.replace(IMAGES_LOCATION + '/', '')
<ide> ... | 1 |
Python | Python | fix lookup_url_kwarg handling in viewsets | 8d0dbc8092a754e1f0f7d80d93506072556f35a2 | <ide><path>rest_framework/routers.py
<ide> def get_lookup_regex(self, viewset, lookup_prefix=''):
<ide>
<ide> https://github.com/alanjds/drf-nested-routers
<ide> """
<del> base_regex = '(?P<{lookup_prefix}{lookup_field}>{lookup_value})'
<add> base_regex = '(?P<{lookup_prefix}{lookup_url_k... | 2 |
Javascript | Javascript | remove tests for qunit 1.x adapter | e8a0dba69acd454e8e830616fef751126cdcbc22 | <ide><path>packages/ember-testing/tests/adapters/qunit_test.js
<ide> import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
<ide>
<ide> var adapter;
<ide>
<del>moduleFor('ember-testing QUnitAdapter: QUnit 1.x', class extends AbstractTestCase {
<del> constructor() {
<del> super();
<del> adapter = ... | 1 |
Javascript | Javascript | simplify opaque nested text uiexplorer example | a670ed1d3c60ccb69c5e87ed04304ea12ebb844d | <ide><path>Examples/UIExplorer/TextExample.ios.js
<ide> exports.examples = [
<ide> <Text style={{fontSize: 11, color: '#527fe4'}}>
<ide> (and tiny inherited bold blue)
<ide> </Text>
<del> ),
<add> )
<ide> </Text>
<ide> )
<ide> </Text>... | 1 |
PHP | PHP | handle the case where viewpath changes | 437d68c60be0ad39a74e2f0751637f8235955795 | <ide><path>lib/Cake/Error/ExceptionRenderer.php
<ide> protected function _outputMessage($template) {
<ide> protected function _outputMessageSafe($template) {
<ide> $this->controller->layoutPath = '';
<ide> $this->controller->subDir = '';
<del> $this->controller->helpers = array('Form', 'Html', 'Session');
<add> ... | 2 |
PHP | PHP | remove old php 7 workarounds | 6bb9b4d992e2914a5c94787144138413411ee748 | <ide><path>tests/Cache/CacheMemcachedStoreTest.php
<ide> public function testSetMethodProperlyCallsMemcache()
<ide>
<ide> public function testIncrementMethodProperlyCallsMemcache()
<ide> {
<del> /* @link https://github.com/php-memcached-dev/php-memcached/pull/468 */
<del> if (version_compare(phpv... | 10 |
Python | Python | fix incorrect test name. fixes #635 | 221e77d3575c182eb49d50546f844f392a5f7ba6 | <ide><path>rest_framework/tests/serializer.py
<ide> def test_create_model_not_blank_field(self):
<ide> serializer = self.not_blank_model_serializer_class(data=self.data)
<ide> self.assertEquals(serializer.is_valid(), False)
<ide>
<del> def test_create_model_null_field(self):
<add> def test_create... | 1 |
Go | Go | fix godoc formatting | 481185fb8a91061240de906cfd374bfc9425ec77 | <ide><path>libnetwork/osl/sandbox.go
<ide> const (
<ide> // Sandbox represents a network sandbox, identified by a specific key. It
<ide> // holds a list of Interfaces, routes etc, and more can be added dynamically.
<ide> type Sandbox interface {
<del> // The path where the network namespace is mounted.
<add> // Key re... | 1 |
PHP | PHP | remove incorrect reference to strftime | 49901c59c275f882eed6778889ef5c3c0742dd42 | <ide><path>src/View/Helper/TimeHelper.php
<ide> public function format($date, $format = null, $invalid = false, $timezone = null
<ide> * This method takes into account the default date format for the current language if an LC_TIME file is used.
<ide> *
<ide> * @param int|string|\DateTime $date UNIX timestamp, strtot... | 1 |
Python | Python | remove references to "join" merge mode | 3695bc2db5ed9aa1c1a2fe90160df83202c343e4 | <ide><path>keras/engine/topology.py
<ide> def __call__(self, inputs, mask=None):
<ide> self.add_inbound_node(layers, node_indices, tensor_indices)
<ide>
<ide> outputs = self.inbound_nodes[-1].output_tensors
<del> return outputs[0] # merge only returns a single tensor
<add> ... | 1 |
Ruby | Ruby | remove unnecessary explicit return val | 2f419f5c55114122f290a692490cebd74d877026 | <ide><path>Library/Homebrew/utils/update.rb
<ide> def display_version_data(outdated_packages)
<ide> puts "==============Formatted outdated packages============\n"
<ide>
<ide> outdated_packages.each do |package_name, package_details|
<del> puts ""
<del> puts "Formula: #{package_name}"
<add> puts ... | 2 |
Javascript | Javascript | improve performance of nexttick | e0835c9cda8ad515e407baff0c3515d6f105fd14 | <ide><path>src/node.js
<ide> function _tickCallback() {
<ide> var callback, threw, tock;
<ide>
<del> scheduleMicrotasks();
<del>
<del> while (tickInfo[kIndex] < tickInfo[kLength]) {
<del> tock = nextTickQueue[tickInfo[kIndex]++];
<del> callback = tock.callback;
<del> threw = tr... | 2 |
Javascript | Javascript | replace function with arrow function | 8b68d48d82ff64a2af46af4ea35d2aac46cc004c | <ide><path>test/parallel/test-child-process-send-cb.js
<ide> const assert = require('assert');
<ide> const fork = require('child_process').fork;
<ide>
<ide> if (process.argv[2] === 'child') {
<del> process.send('ok', common.mustCall(function(err) {
<add> process.send('ok', common.mustCall((err) => {
<ide> assert... | 1 |
PHP | PHP | add method to dynamically add a deferred service | decd163efff4537ec0d2648953d8baf654901a62 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function setDeferredServices(array $services)
<ide> $this->deferredServices = $services;
<ide> }
<ide>
<add> /**
<add> * Add a service to the application's deferred services.
<add> *
<add> * @param string $service
<add> * @return void
<add> */... | 1 |
Javascript | Javascript | add type test that es6 collections can be used | 0ba7936d466754c441cccd73b0c022d123a26276 | <ide><path>type-definitions/tests/es6-collections.js
<add>/*
<add> * @flow
<add> */
<add>
<add>import {
<add> Map as ImmutableMap,
<add> Set as ImmutableSet,
<add>} from 'immutable'
<add>
<add>// Immutable.js collections
<add>var mapImmutable: ImmutableMap<string, number> = ImmutableMap()
<add>var setImmutable: Immut... | 1 |
Javascript | Javascript | use const in viewer.js | 276631db30c3f22d4f97e2340330d4675d879c3f | <ide><path>web/viewer.js
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> */
<add>/* eslint no-var: error, prefer-const: error */
<ide>
<ide> 'use strict';
<ide>
<ide> if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('CHROME')) {
<ide> (... | 1 |
Java | Java | use sparsearray for detached views | a6028919462b41ed5ebf24011e80f18eb0bc2143 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/ClippingDrawCommandManager.java
<ide> // less in our case because of the large constant overhead and auto boxing of the map.
<ide> private SparseIntArray mDrawViewIndexMap = StateBuilder.EMPTY_SPARSE_INT;
<ide> // Map of views that are currently clippe... | 4 |
Text | Text | add header fixes[ci skip] | d36c84b42c4108ce58cd99ff1d9f4a4f251c57ca | <ide><path>guides/source/security.md
<ide> Location: http://www.malicious.tld
<ide>
<ide> So _attack vectors for Header Injection are based on the injection of CRLF characters in a header field._ And what could an attacker do with a false redirection? They could redirect to a phishing site that looks the same as yours... | 1 |
Python | Python | remove long_description from setup.py | fabfdb868eb5d6b032dcaa9f71844743e57f69ca | <ide><path>setup.py
<ide> setup(name = 'Keras',
<ide> version = '0.1.0',
<ide> description = 'Theano-based Deep Learning library',
<del> long_description = open('README.md').read(),
<ide> author = 'Francois Chollet',
<ide> author_email = 'francois.chollet@gmail.com',
<ide> url = 'http... | 1 |
Ruby | Ruby | eliminate warning by initializing nil formats | be664392c030a2a0241616be764725f0e66d872b | <ide><path>actionpack/lib/abstract_controller/rendering_controller.rb
<ide> module RenderingController
<ide> self._view_paths ||= ActionView::PathSet.new
<ide> end
<ide>
<add> # Initialize controller with nil formats.
<add> def initialize(*) #:nodoc:
<add> @_formats = nil
<add> super
<add> ... | 1 |
Javascript | Javascript | use leniv to read the subrs section | 18661debdc1e01e1c386ece52e0dfce69fb5c476 | <ide><path>fonts.js
<ide> var Type1Parser = function() {
<ide> for (var j = 0; j < argc; j++)
<ide> charstring.push('drop');
<ide>
<del> // If the flex mechanishm is not used in a font program, Adobe
<add> // If the flex mechanism is not used in a font program, Adobe
<id... | 1 |
Javascript | Javascript | allow literals in isolate scope references | 43072e3812e32b89b97ad03144577cba50d4b776 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> optional = (match[2] == '?'),
<ide> mode = match[1], // @, =, or &
<ide> lastValue,
<del> parentGet, parentSet;
<add> parentGet, parentSet, ... | 2 |
Go | Go | expand unshare test to include privileged test | e58161fedcb8718c3880eb1778e29468e4cb72bd | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunUnshareProc(c *check.C) {
<ide> if out, _, err := runCommandWithOutput(runCmd); err == nil || !strings.Contains(out, "Permission denied") {
<ide> c.Fatalf("unshare should have failed with permission denied, got: %s, %v", out, err)
<... | 1 |
Javascript | Javascript | add version property to next.js instance | 010059915da401f63b56dc8e9355bb9ce7c2fc3e | <ide><path>packages/next/client/index.js
<ide> if (!window.Promise) {
<ide> const data = JSON.parse(document.getElementById('__NEXT_DATA__').textContent)
<ide> window.__NEXT_DATA__ = data
<ide>
<add>export const version = process.env.__NEXT_VERSION
<add>
<ide> const {
<ide> props,
<ide> err,
<ide><path>test/integr... | 2 |
Javascript | Javascript | make timeout longer | c3a8b5d9f1925ddde59e32d5c8118e841e05918e | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> stderr: true,
<ide> failOnError: true
<ide> },
<del> command: path.normalize('./node_modules/.bin/promises-aplus-tests tmp/promises-aplus-adapter++.js')
<add> command: path.normalize('./node_modules/.bin/pro... | 1 |
PHP | PHP | update exception message | 1a3285d360fd7debf416102ca3346b40d618755e | <ide><path>src/Mailer/AbstractTransport.php
<ide> protected function checkRecipient(Message $message): void
<ide> && $message->getCc() === []
<ide> && $message->getBcc() === []
<ide> ) {
<del> throw new Exception('You must specify at least one recipient of to, cc or bcc.');
<a... | 2 |
Javascript | Javascript | add websocket to eslint globals | af8ea06bb44e84ce51d4ca4e76f0d66bf34323bd | <ide><path>packages/eslint-config-react-native-community/index.js
<ide> module.exports = {
<ide> setImmediate: true,
<ide> setInterval: false,
<ide> setTimeout: false,
<add> WebSocket: true,
<ide> window: false,
<ide> XMLHttpRequest: false,
<ide> }, | 1 |
Ruby | Ruby | reduce relation allocations | fcb92882b12a4a79a5c2901062cef009ec5f2fdc | <ide><path>activerecord/lib/active_record/associations/preloader.rb
<ide> class Preloader #:nodoc:
<ide> def initialize(records, associations, preload_scope = nil)
<ide> @records = Array.wrap(records).compact.uniq
<ide> @associations = Array.wrap(associations)
<del> @preload_scope = ... | 1 |
Javascript | Javascript | use common.mustcall in test-worker-esm-exit | 060a170e296e17e73715ec8728816da6530e16a6 | <ide><path>test/parallel/test-worker-esm-exit.js
<ide> const { Worker } = require('worker_threads');
<ide>
<ide> const w = new Worker(fixtures.path('es-modules/import-process-exit.mjs'));
<ide> w.on('error', common.mustNotCall());
<del>w.on('exit', (code) => assert.strictEqual(code, 42));
<add>w.on('exit',
<add> c... | 1 |
Text | Text | fix typographic error in process doc | 4220e86414859db697d783f0a520ea5dbaa354b9 | <ide><path>doc/api/process.md
<ide> emitMyWarning();
<ide> added: v0.7.7
<ide> -->
<ide>
<del>The `process.execArgv' property returns the set of Node.js-specific command-line
<add>The `process.execArgv` property returns the set of Node.js-specific command-line
<ide> options passed when the Node.js process was launched... | 1 |
Python | Python | fix typo in gradient_checkpointing arg | 5c673efad71026ec820c5101349aa0ae8a95b360 | <ide><path>examples/research_projects/wav2vec2/run_asr.py
<ide> class ModelArguments:
<ide> default=True, metadata={"help": "Whether to freeze the feature extractor layers of the model."}
<ide> )
<ide> gradient_checkpointing: Optional[bool] = field(
<del> default=False, metadata={"help": "Whether... | 2 |
PHP | PHP | add usingconnection method to databasemanager | 9b652406ab4ef2ef039ebcf972abffb9a4129291 | <ide><path>src/Illuminate/Database/DatabaseManager.php
<ide> public function reconnect($name = null)
<ide> return $this->refreshPdoConnections($name);
<ide> }
<ide>
<add> /**
<add> * Set the database connection for the callback execution.
<add> *
<add> * @param string $name
<add> * @pa... | 1 |
Go | Go | add authorization plugins to docker info | 4a1eb3f3e275e2675a4c53852e21fddcaa301be9 | <ide><path>api/client/info.go
<ide> package client
<ide>
<ide> import (
<ide> "fmt"
<add> "strings"
<ide>
<ide> Cli "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/pkg/ioutils"
<ide> func (cli *DockerCli) CmdInfo(args ...string) error {
<ide>
<ide> fmt.Fprintf(cli.out, "Plugins: \n")
<ide> fmt.Fp... | 3 |
Python | Python | create singly_linkedlist.py (#110) | 75007332e4eddac6d67bcf9ad805a02972ef2caf | <ide><path>data_structures/LinkedList/singly_LinkedList.py
<add>class Node:#create a Node
<add> def __int__(self,data):
<add> self.data=data#given data
<add> self.next=None#given next to None
<add>class Linked_List:
<add> pass
<add> def insert_tail(Head,data):#insert the data at tail
<add> ... | 1 |
PHP | PHP | fix incorrect __construct params for mock object | 5b67534acc4f6d9c708676bcc16258789c4465b1 | <ide><path>lib/Cake/Test/Case/Console/ShellDispatcherTest.php
<ide> public function testGetShell() {
<ide> */
<ide> public function testDispatchShellWithMain() {
<ide> $Dispatcher = new TestShellDispatcher();
<del> $Mock = $this->getMock('Shell', array(), array(&$Dispatcher), 'MockWithMainShell');
<add> $Mock = $... | 1 |
Text | Text | add additional link to html & forms topic page | 16f5d42cbc3e966ab2d4d8dc00163942f2769e43 | <ide><path>docs/api-guide/renderers.md
<ide> You can use `TemplateHTMLRenderer` either to return regular HTML pages using RES
<ide>
<ide> If you're building websites that use `TemplateHTMLRenderer` along with other renderer classes, you should consider listing `TemplateHTMLRenderer` as the first class in the `renderer... | 1 |
Javascript | Javascript | modularize ajax (and sub-modules) | a47b304f814458fb1f53e1fda82e7ccb7c07189d | <ide><path>grunt.js
<ide> module.exports = function( grunt ) {
<ide> "src/traversing.js",
<ide> "src/manipulation.js",
<ide> { flag: "css", src: "src/css.js" },
<del> "src/ajax.js",
<del> "src/ajax/jsonp.js",
<del> "src/ajax/script.js",
<del> "src/ajax/xhr.js",
<add> { flag: "ajax", src: "src... | 1 |
Go | Go | fix error messages | b3e1178ad0e2cee43e9958f0f3b6e720bddc4ea4 | <ide><path>api/server/router/container/container_routes.go
<ide> func (s *containerRouter) postContainersKill(ctx context.Context, w http.Respons
<ide> // to keep backwards compatibility.
<ide> version := httputils.VersionFromContext(ctx)
<ide> if version.GreaterThanOrEqualTo("1.20") || !isStopped {
<del> retur... | 2 |
Javascript | Javascript | add rel attribute binding to linkto helper | a6d5f9574d32f3920f4dd738b8b90ca1667d9d58 | <ide><path>packages/ember-routing/lib/helpers/link_to.js
<ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) {
<ide> **/
<ide> title: null,
<ide>
<add> /**
<add> Sets the `rel` attribute of the `LinkView`'s HTML element.
<add>
<add> @property rel
<add> @default null
<add> **/
<add>... | 2 |
Go | Go | remove reflection on cli init | 5c8950e84d2384919f45209f8cc4cbf00ff29015 | <ide><path>api/client/commands.go
<add>package client
<add>
<add>// Command returns a cli command handler if one exists
<add>func (cli *DockerCli) Command(name string) func(...string) error {
<add> return map[string]func(...string) error{
<add> "attach": cli.CmdAttach,
<add> "build": cli.CmdB... | 3 |
Text | Text | add release date | ac95aa4162280c1d762049f3004ea33354f2409a | <ide><path>CHANGELOG-5.5.md
<ide> # Release Notes for 5.5.x
<ide>
<del>## [Unreleased]
<add>## v5.5.3 (2017-09-07)
<ide>
<ide> ### Added
<ide> - Added `$action` parameter to `Route::getAction()` for simpler access ([#20975](https://github.com/laravel/framework/pull/20975)) | 1 |
Text | Text | remove duplicated document | 5527202e41dfa48b8635dd6f274acb7f19ee3302 | <ide><path>docs/reference/commandline/deploy.md
<ide> advisory: "experimental"
<ide> will be rejected.
<ide> -->
<ide>
<del># stack deploy (experimental)
<add># deploy (alias for stack deploy) (experimental)
<ide>
<ide> ```markdown
<ide> Usage: docker deploy [OPTIONS] STACK | 1 |
Ruby | Ruby | convert blacklist test to spec | 7be5a6a3d2cdb68870a37bdaa2d0c5cdec20c70b | <ide><path>Library/Homebrew/test/blacklist_spec.rb
<add>require "blacklist"
<add>
<add>RSpec::Matchers.define :be_blacklisted do
<add> match do |actual|
<add> blacklisted?(actual)
<add> end
<add>end
<add>
<add>describe "Blacklist" do
<add> context "rubygems" do
<add> %w[gem rubygem rubygems].each do |s|
<add> ... | 2 |
PHP | PHP | use check date in the date validator | 4035bbc94ae809005d5941514b744cfc482d92da | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateRegex($attribute, $value, $parameters)
<ide> */
<ide> protected function validateDate($attribute, $value)
<ide> {
<del> return strtotime($value) !== false;
<add> if (strtotime($value) === false) return false;
<add>
<add> $date = ... | 1 |
Ruby | Ruby | fix bad locate reference | 504152038cb591a661721b09e989f428bbc6ae0a | <ide><path>Library/Homebrew/os/mac/sdk.rb
<ide> def sdk_paths
<ide> # Xcode < 4.3 style
<ide> sdk_prefix = "/Developer/SDKs" unless File.directory? sdk_prefix
<ide> # Finally query Xcode itself (this is slow, so check it last)
<del> sdk_prefix = File.join(Utils.popen_read(OS::Mac.... | 1 |
Python | Python | fix property name in breeze shell params | 4afa8e3cecf1e4a2863715d14a45160034ad31a6 | <ide><path>dev/breeze/src/airflow_breeze/params/shell_params.py
<ide> def enabled_integrations(self) -> str:
<ide> return enabled_integration
<ide>
<ide> @property
<del> def the_image_type(self) -> str:
<del> the_image_type = 'CI'
<del> return the_image_type
<add> def image_type(self) -... | 1 |
Javascript | Javascript | clarify highlightrow usage with uiexplorer example | a26afd2d731b305ea6b051c131b4f10509b9fcb2 | <ide><path>Examples/UIExplorer/ListViewExample.js
<ide> var ListViewSimpleExample = React.createClass({
<ide> dataSource={this.state.dataSource}
<ide> renderRow={this._renderRow}
<ide> renderScrollComponent={props => <RecyclerViewBackedScrollView {...props} />}
<del> renderSeparat... | 2 |
Text | Text | add globalid link to active_job_basics.md | 3ca47692e48d63634b02564620cb2070ae598b3b | <ide><path>guides/source/active_job_basics.md
<ide> ActiveJob supports the following types of arguments by default:
<ide>
<ide> ### GlobalID
<ide>
<del>Active Job supports GlobalID for parameters. This makes it possible to pass live
<add>Active Job supports [GlobalID](https://github.com/rails/globalid/blob/master/REA... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.