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 |
|---|---|---|---|---|---|
PHP | PHP | apply fixes from styleci | 7bdf8674651ad21bcf647a1a64efd569356313ef | <ide><path>tests/Database/DatabaseQueryBuilderTest.php
<ide> public function testDeleteMethod()
<ide> $result = $builder->from('users')->where('email', '=', 'foo')->orderBy('id')->take(1)->delete();
<ide> $this->assertEquals(1, $result);
<ide>
<del>
<ide> $builder = $this->getMySqlBuilder();
<i... | 2 |
Javascript | Javascript | allow dots in a controller name | de2cdb0658b8b8cff5a59e26c5ec1c9b470efb9b | <ide><path>src/ng/controller.js
<ide> */
<ide> function $ControllerProvider() {
<ide> var controllers = {},
<del> CNTRL_REG = /^(\w+)(\s+as\s+(\w+))?$/;
<add> CNTRL_REG = /^(\S+)(\s+as\s+(\w+))?$/;
<ide>
<ide>
<ide> /**
<ide><path>test/ng/controllerSpec.js
<ide> describe('$controller', function() {
<id... | 2 |
Javascript | Javascript | use onselect fallback in ie | 2ff75129756388c96c90eb03b72b3ba3dcc5475c | <ide><path>src/renderers/dom/client/eventPlugins/SelectEventPlugin.js
<ide>
<ide> var EventConstants = require('EventConstants');
<ide> var EventPropagators = require('EventPropagators');
<add>var ExecutionEnvironment = require('ExecutionEnvironment');
<ide> var ReactInputSelection = require('ReactInputSelection');
<i... | 1 |
Javascript | Javascript | remove prop types from `layoutanimation` | e873809222468e04ceb79a74e52c79ce447d9052 | <ide><path>Libraries/LayoutAnimation/LayoutAnimation.js
<ide> * @flow
<ide> * @format
<ide> */
<add>
<ide> 'use strict';
<ide>
<del>const PropTypes = require('prop-types');
<ide> const UIManager = require('UIManager');
<ide>
<del>/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
<del> ... | 1 |
PHP | PHP | show a pretty diff for assertexactjson() | abab1c87a2e54710e44d562d2ab3ac2dc67c6631 | <ide><path>src/Illuminate/Testing/AssertableJsonString.php
<ide> public function assertExact(array $data)
<ide>
<ide> $expected = $this->reorderAssocKeys($data);
<ide>
<del> PHPUnit::assertEquals(json_encode($expected), json_encode($actual));
<add> PHPUnit::assertEquals(
<add> json_en... | 1 |
Javascript | Javascript | prevent dupe events on enabled clickablecomponents | 03bab83dde2c4213e7e9cdddb046be4bf92f759b | <ide><path>src/js/clickable-component.js
<ide> class ClickableComponent extends Component {
<ide> * Enable this `Component`s element.
<ide> */
<ide> enable() {
<del> this.removeClass('vjs-disabled');
<del> this.el_.setAttribute('aria-disabled', 'false');
<del> if (typeof this.tabIndex_ !== 'undefined')... | 2 |
Python | Python | update error string | d200a23b08f376ca8ad45efd6ebcdb85f2f13c0b | <ide><path>setup.py
<ide> def get_data_files(dname, ignore=None, parent=None):
<ide>
<ide> if PY_pre_35:
<ide> version = '.'.join([str(x) for x in sys.version_info[:3]])
<del> print('Version ' + version + ' is not supported. Supported versions are: %s.'
<add> print('Version ' + version + ' is not supported. ... | 1 |
Text | Text | remove link to "breaking changes" wiki | 422ac61535fd190836b174bb6ad8ec2af76e1f05 | <ide><path>doc/guides/contributing/pull-requests.md
<ide> use `Refs:`.
<ide> contain an explanation about the reason of the breaking change, which
<ide> situation would trigger the breaking change and what is the exact change.
<ide>
<del>Breaking changes will be listed in the wiki with the aim to make upgrading
<del>e... | 1 |
Javascript | Javascript | reverse subpath direction for annulus | 3d064526d4bc21dffbd0024f7a099bd49e8aa3f7 | <ide><path>d3.js
<ide> d3.svg.arc = function() {
<ide> + "A" + r1 + "," + r1 + " 0 1,1 0," + (-r1)
<ide> + "A" + r1 + "," + r1 + " 0 1,1 0," + r1
<ide> + "M0," + r0
<del> + "A" + r0 + "," + r0 + " 0 1,1 0," + (-r0)
<del> + "A" + r0 + "," + r0 + " 0 1,1 0," + r0
<add> + "A" + r0 + "," + ... | 4 |
Mixed | Text | add edgetpu deeplab | 34a3581c0e09c293cd67b5ac2d64e8bc753cefce | <ide><path>research/deeplab/README.md
<ide> under tensorflow/models. Please refer to the LICENSE for details.
<ide>
<ide> ## Change Logs
<ide>
<add>### March 26, 2020
<add>* Supported EdgeTPU-DeepLab and EdgeTPU-DeepLab-slim on Cityscapes.
<add>**Contributor**: Yun Long.
<add>
<ide> ### November 20, 2019
<ide> * Supp... | 3 |
Python | Python | add check response for put actions | 5c26e61b311924418cafe4d73d478abc2a571796 | <ide><path>libcloud/container/drivers/lxd.py
<ide> def deploy_container(self, name, image, cluster=None,
<ide> # return this container?
<ide>
<ide> if isinstance(image, ContainerImage):
<del> return self._deploy_container_from_image(name=name, image=image, parameters=parameters)
<add> ... | 1 |
Python | Python | remove builtins from __all__ | 9ce99dd8b682754ca0efe0cb2fc1dad9f03fb234 | <ide><path>numpy/__init__.py
<ide>
<ide> # Make these accessible from numpy name-space
<ide> # but not imported in from numpy import *
<add> # TODO[gh-6103]: Deprecate these
<ide> if sys.version_info[0] >= 3:
<ide> from builtins import bool, int, float, complex, object, str
<ide> unicode... | 1 |
Go | Go | remove unused withstdout(), withsterr() opts" | 92eca900b086200b4f270cf438a8a5ff9c8c2a3b | <ide><path>testutil/registry/ops.go
<ide> package registry
<ide>
<add>import "io"
<add>
<ide> // Schema1 sets the registry to serve v1 api
<ide> func Schema1(c *Config) {
<ide> c.schema1 = true
<ide> func URL(registryURL string) func(*Config) {
<ide> c.registryURL = registryURL
<ide> }
<ide> }
<add>
<add>// WithSt... | 1 |
Javascript | Javascript | remove unnecessary assertion | 85d6b783432e1c58084c3bdebf15cf45384f6572 | <ide><path>test/simple/test-http-client-agent.js
<ide> function request(i) {
<ide> socket.on('close', function() {
<ide> ++count;
<ide> if (count < max) {
<del> assert.equal(http.globalAgent.sockets[name].length, max - count);
<ide> assert.equal(http.globalAgent.sockets[name].indexOf(sock... | 1 |
Javascript | Javascript | run focus test only if document has focus | 33c80f3dd4334c9b490c6e7dc69ffbda2c6a7fcf | <ide><path>test/unit/event.js
<ide> test( "make sure events cloned correctly", 18, function() {
<ide> clone.find("#check1").trigger("change"); // 0 events should fire
<ide> });
<ide>
<del>asyncTest( "Check order of focusin/focusout events", 2, function() {
<del> var focus, blur,
<del> input = jQuery("#name");
<add>/... | 1 |
Javascript | Javascript | add jsdoc comments to pdfattachmentview | 818b7fc3069ef02b48b60071bf53c9faabb690c0 | <ide><path>web/pdf_attachment_view.js
<ide>
<ide> 'use strict';
<ide>
<add>/**
<add> * @typedef {Object} PDFAttachmentViewOptions
<add> * @property {HTMLDivElement} container - The viewer element.
<add> * @property {Array} attachments - An array of attachment objects.
<add> * @property {DownloadManager} downloadManag... | 1 |
Text | Text | fix typos [ci-skip] | 4ae7acf00dd28c07db016bb844f82a991f16a1a9 | <ide><path>guides/source/action_cable_overview.md
<ide> You can use `ActionCable.createConsumer()` to connect to the cable
<ide> server if `action_cable_meta_tag` is invoked in the layout. Otherwise, A path is
<ide> specified as first argument to `createConsumer` (e.g. `ActionCable.createConsumer("/websocket")`).
<ide>... | 9 |
Text | Text | fix broken links to contributor's guide | c5e76fc592cddfe81cec2c9978f56c2a485552b2 | <ide><path>README.md
<ide>
<ide> ## Contributing
<ide>
<del>Instructions on building and testing Chart.js can be found in [the documentation](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md#building-and-testing). Before submitting an issue or a pull request, please take a moment to loo... | 1 |
PHP | PHP | use two spaces for docblock params | 49dad6f80092711af5e72a04c0f480feadd26a91 | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> public function compileInsertGetId(Builder $query, $values, $sequence)
<ide> * Compile an insert statement with subquery into SQL.
<ide> *
<ide> * @param \Illuminate\Database\Query\Builder $query
<del> * @param array $columns
<a... | 1 |
Javascript | Javascript | remove use of `promise.finally` in polyfill | c59218c4d88e2a42c161b209dad3aad9960fc6ab | <ide><path>packages/next/client/event-source-polyfill.js
<ide> FetchTransport.prototype.open = function (xhr, onStartCallback, onProgressCallba
<ide> }
<ide> readNextChunk()
<ide> })
<del> })['finally'](function () {
<add> }).then(function(result) {
<ide> onFinishCallback()
<add> return result
... | 1 |
Python | Python | add a docstring to the mypy plugin entry-point | 0917df2953ebe716c45c92671cb652eacd7dd8fd | <ide><path>numpy/typing/mypy_plugin.py
<ide> def get_type_analyze_hook(self, fullname: str) -> t.Optional[HookFunc]:
<ide>
<ide>
<ide> def plugin(version: str) -> t.Type[_NumpyPlugin]:
<add> """An entry-point for mypy."""
<ide> return _NumpyPlugin | 1 |
Ruby | Ruby | remove unused code that was copied from actionpack | 0e3b4d64c0a61793204873d844a546a88b10940b | <ide><path>actionview/test/abstract_unit.rb
<ide>
<ide> require "pp" # require 'pp' early to prevent hidden_methods from not picking up the pretty-print methods until too late
<ide>
<del>module Rails
<del> class << self
<del> def env
<del> @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["... | 1 |
PHP | PHP | add frameworks compatible breadcrumbs | a0f323eb4cfe3238f79e59119360f99f697e11bb | <ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> public function testCrumbListFirstLink() {
<ide> );
<ide> }
<ide>
<add>/**
<add> * test getCrumbList() in Twitter Bootstrap style.
<add> *
<add> *
<add> * @return void
<add> */
<add> public function testCrumbListBootstrapStyle() {
<add>
<add> $this... | 2 |
PHP | PHP | use artisan for seeding | acb7f0e409b0088d0b318cf7df063754bb28a9fe | <ide><path>src/Illuminate/Foundation/Testing/TestCase.php
<ide> public function be(UserInterface $user, $driver = null)
<ide> */
<ide> public function seed($class = 'DatabaseSeeder')
<ide> {
<del> $this->app[$class]->run();
<add> $this->app['artisan']->call('seed', array('--class' => $class));
<ide> }
<ide>
<id... | 1 |
Ruby | Ruby | use the attributes hash explicitly | 08db3d5af3ac6a36036083e80f7bb33e65cc9dd3 | <ide><path>railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
<ide> def create_test_files
<ide>
<ide> private
<ide>
<del> def accessible_attributes
<del> attributes.reject(&:reference?).map {|a| "\"#{a.name}\"" }.sort.join(', ')
<del> end
<add> def resource_attributes... | 4 |
Python | Python | update available record types enum | 401b929739a5158206c24eeda6616580f5686fb5 | <ide><path>libcloud/dns/types.py
<ide> class RecordType(object):
<ide> SOA = 8
<ide> SPF = 9
<ide> SRV = 10
<add> PTR = 11
<add> NAPTR = 12
<add> REDIRECT = 13
<ide>
<ide> @classmethod
<ide> def __repr__(self, value): | 1 |
Python | Python | incorporate image_shape and filter_shape in convs | cb77f7d7e2933078838e836018fdfa7075e5385f | <ide><path>examples/imdb_cnn.py
<ide>
<ide> # we start off with an efficient embedding layer which maps
<ide> # our vocab indices into embedding_dims dimensions
<del>model.add(Embedding(max_features, embedding_dims, max_length=maxlen))
<add>model.add(Embedding(max_features, embedding_dims, input_length=maxlen))
<ide> ... | 2 |
Text | Text | expand changelog for [ci skip] | e0b19a3622e9d6d328dde174165ac03719f565c4 | <ide><path>activerecord/CHANGELOG.md
<del>* Allow matches_regex on MySQL
<add>* Allow `matches_regex` and `does_not_match_regexp` on the MySQL Arel visitor.
<ide>
<ide> *James Pearson*
<del>
<add>
<ide> * Allow specifying fixtures to be ignored by setting `ignore` in YAML file's '_fixture' section.
<ide... | 1 |
Python | Python | fix some tests in pr #192 | 5b4e61b8a18d79385d503624886d9d5f2038b31b | <ide><path>numpy/lib/tests/test_function_base.py
<ide> def test_indexing(self):
<ide> x = [1, 2, 3]
<ide> y = [4, 5, 6, 7]
<ide> [X, Y] = meshgrid(x, y, indexing='ij')
<del> assert_(all(X == array([[1, 1, 1, 1],
<del> [2, 2, 2, 2],
<del> ... | 1 |
Ruby | Ruby | support fontforge scheme | 6ef3bab4a35f0a085670d29341c65862796665ef | <ide><path>Library/Homebrew/bottle_version.rb
<ide> def self._parse spec
<ide> m = /-(\d+_\d+(_\d+)+)/.match(stem)
<ide> return m.captures.first unless m.nil?
<ide>
<add> # e.g. 20120731 from fontforge-20120731.mavericks.bottle.tar.gz
<add> m = /-(\d+)/.match(stem)
<add> return m.captures.first unless... | 2 |
PHP | PHP | remove useless backups | c15259f49c0a268141eec84f779d8b7c611177f5 | <ide><path>lib/Cake/Test/Case/Network/CakeRequestTest.php
<ide> class CakeRequestTest extends CakeTestCase {
<ide> */
<ide> public function setUp() {
<ide> parent::setUp();
<del> $this->_server = $_SERVER;
<del> $this->_get = $_GET;
<del> $this->_post = $_POST;
<del> $this->_files = $_FILES;
<ide> $this->_app... | 1 |
Javascript | Javascript | fix some bugs in the animation stuff | 98253fea5d0e2ecc1dcdad6321e5bf3137fd7ae2 | <ide><path>src/Chart.Core.js
<ide> var stepDecimal = animationObject.currentStep / animationObject.numSteps;
<ide> var easeDecimal = easingFunction(stepDecimal);
<ide>
<del> chartInstance.draw(chartInstance, easeDecimal, stepDecimal, currentStep);
<add> chartInstance.draw(easeDecimal, stepDecima... | 1 |
Java | Java | use pre-parsed pathcontainer in webmvc.fn | 8e81360eba8cca33522872cdf48eb5f0b84644cb | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java
<ide> import org.springframework.http.MediaType;
<ide> import org.springframework.http.converter.GenericHttpMessageConverter;
<ide> import org.springframework.http.converter.HttpMessageConverter;
<add>import org.sp... | 1 |
PHP | PHP | move sqlite code into schema/dialect | 60a829f52b3ee6fa83a9ad94b134be106aacd542 | <ide><path>lib/Cake/Database/Dialect/SqliteDialectTrait.php
<ide> protected function _insertQueryTranslator($query) {
<ide> return $query->values($v);
<ide> }
<ide>
<del>/**
<del> * Convert a column definition to the abstract types.
<del> *
<del> * The returned type will be a type that
<del> * Cake\Database\Type ca... | 4 |
PHP | PHP | fix optional routing keys with braced placeholders | 63d990384911b753701c4cd1341a2966ffcaf6ef | <ide><path>src/Routing/Route/Route.php
<ide> public function match(array $url, array $context = []): ?string
<ide> }
<ide> $url += $hostOptions;
<ide>
<add> // Ensure controller/action keys are not null.
<add> if (
<add> (isset($keyNames['controller']) && !isset($url['controlle... | 5 |
Javascript | Javascript | add limited support for setfill/strokecolorspace | 5c1262e13bb44f28489c080081bb9b3f7fc12b1e | <ide><path>pdf.js
<ide> var PartialEvaluator = (function() {
<ide>
<ide> if ('Form' == type.name) {
<ide> // console.log("got xobj that is a Form");
<del> args[0].raw = this.evalRaw(xobj, xref, xobj.dict.get('Resources'),
<add> var raw = this.evalRaw(xobj, xr... | 1 |
Javascript | Javascript | improve flow types | bee33a4400bda89ce80b8cf9fd74d6a07a42459b | <ide><path>Libraries/Lists/SectionList.js
<ide> import type {Props as VirtualizedSectionListProps} from 'VirtualizedSectionList'
<ide>
<ide> type Item = any;
<ide>
<del>type SectionBase<SectionItemT> = {
<add>export type SectionBase<SectionItemT> = {
<ide> /**
<ide> * The data for rendering items in this section... | 1 |
Text | Text | fix documentation (missing backslashes) | 8edc898f63eb9fe3739c2d8f518788a7a5f13ce0 | <ide><path>README.md
<ide> Training one epoch on this corpus takes about 1:20h on 4 x NVIDIA Tesla P100 wit
<ide>
<ide> ```shell
<ide> python run_lm_finetuning.py \
<del> --bert_model bert-base-cased
<del> --do_train
<del> --train_file samples/sample_text.txt
<del> --output_dir models
<del> --num_train_epochs... | 1 |
Ruby | Ruby | remove unused methods | 41c8e41ff16b629ca520ccc3d098b440fa6df1ef | <ide><path>railties/test/isolation/abstract_unit.rb
<ide> def assert_welcome(resp)
<ide> assert_match "charset=utf-8", resp[1]["Content-Type"]
<ide> assert extract_body(resp).match(/Yay! You.*re on Rails!/)
<ide> end
<del>
<del> def assert_success(resp)
<del> assert_equal 202, resp[0]
<del> e... | 1 |
Javascript | Javascript | fix bug in example | 1c0241e5b210c14ea09ed9626072ead33bb183a9 | <ide><path>src/ng/interpolate.js
<ide> function $InterpolateProvider() {
<ide> *
<ide> * ```js
<ide> * var $interpolate = ...; // injected
<del> * var context = {greeting: 'Hey', name: undefined };
<add> * var context = {greeting: 'Hello', name: undefined };
<ide> *
<ide> * // d... | 1 |
Javascript | Javascript | use peekmeta + deletemeta is isolate the code-base | e46e056f1d5ed3136efbdf2136febebacd0461c6 | <ide><path>packages/ember-metal/lib/chains.js
<ide> import { warn } from 'ember-metal/debug';
<ide> import { get, normalizeTuple } from 'ember-metal/property_get';
<del>import { meta as metaFor } from 'ember-metal/meta';
<add>import { meta as metaFor, peekMeta } from 'ember-metal/meta';
<ide> import { watchKey, unwatch... | 11 |
Python | Python | add test for array priorities involving scalars | 5a9fe508e8df1f5a9ed2e0fc33da1b2d72ef4590 | <ide><path>numpy/core/tests/test_umath.py
<ide> def __array_wrap__(self, arr, context):
<ide> self.failUnless(isinstance(x, with_wrap))
<ide> assert_array_equal(x, np.array((1, 2, 3)))
<ide>
<add> def test_priority_with_scalar(self):
<add> # test fix for bug #826:
<add> class A(np.ndar... | 1 |
Java | Java | remove logical adjustments from flatviewgroup | 28654aef65913c8c14bd1102c69ca576fe3518e8 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/DrawView.java
<ide>
<ide> // These should only ever be set from within the DrawView, their only purpose is to prevent
<ide> // excessive rounding on the UI thread in FlatViewGroup, and they are left package protected to
<del> // speed up direct access.... | 6 |
Javascript | Javascript | move common code into separate module | 42c0214254df5ade315daf4a51580f0424a1792f | <ide><path>lib/wasm/WasmMainTemplatePlugin.js
<ide>
<ide> const Template = require("../Template");
<ide> const WebAssemblyImportDependency = require("../dependencies/WebAssemblyImportDependency");
<add>const WebAssemblyUtils = require("./WebAssemblyUtils");
<add>
<add>/** @typedef {import("../Module")} Module */
<ide>... | 3 |
Mixed | Javascript | add strict functionality export | a319e90807bbc74b6d0e85ee9bec697acb68ebcb | <ide><path>doc/api/assert.md
<ide> The `assert` module provides a simple set of assertion tests that can be used to
<ide> test invariants.
<ide>
<add>A `strict` and a `legacy` mode exist, while it is recommended to only use
<add>[`strict mode`][].
<add>
<ide> For more information about the used equality comparisons se... | 4 |
Java | Java | throw a proper exception if no convert is found | 12a9df8a1c1a24afdaabd615de33ed265250fa4d | <ide><path>spring-jms/src/main/java/org/springframework/jms/messaging/JmsMessagingTemplate.java
<ide> public Message<?> receive(String destinationName) throws MessagingException {
<ide> }
<ide>
<ide> @Override
<del> @SuppressWarnings("unchecked")
<ide> public <T> T receiveAndConvert(String destinationName, Class<T>... | 4 |
Javascript | Javascript | improve smartgrouping performance | a89deee176d10f39f40ae35df4bd03974f064151 | <ide><path>lib/util/smartGrouping.js
<ide>
<ide> /**
<ide> * @template T
<add> * @template R
<ide> * @typedef {Object} ItemWithGroups
<ide> * @property {T} item
<del> * @property {Set<string>} groups
<add> * @property {Set<Group<T, R>>} groups
<add> */
<add>
<add>/**
<add> * @template T
<add> * @template R
<add> * ... | 1 |
Python | Python | add map, foldl, foldr to the backend | 2878f606342d1ee8167e316ae9b0d3e2870d3caf | <ide><path>keras/backend/tensorflow_backend.py
<ide> def ctc_decode(y_pred, input_length, greedy=True, beam_width=100,
<ide> for st in decoded]
<ide>
<ide> return (decoded_dense, log_prob)
<add>
<add>
<add># HIGH ORDER FUNCTIONS
<add>
<add>def map_fn(fn, elems, name=None):
<add> '''Map the ... | 3 |
Mixed | Javascript | move pbkdf2 without digest to eol | bffa5044c576003198ccfee5a751c23036d0744f | <ide><path>doc/api/deprecations.md
<ide> to the `constants` property exposed by the relevant module. For instance,
<ide> ### DEP0009: `crypto.pbkdf2` without digest
<ide> <!-- YAML
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/31166
<add> description: End-of-Life (fo... | 3 |
Go | Go | fix issue with exit code in non-tty mode | fd38de2818d959a9f5591537515e923a3ac56632 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdRun(args ...string) error {
<ide> return err
<ide> }
<ide> } else {
<del> // No Autoremove: Simply retrieve the exit code
<del> if _, status, err = getExitCode(cli, runResult.ID); err != nil {
<del> return err
<add> if !config.Tty {
<add> // In non-tty ... | 1 |
Python | Python | fix ma.median for empty ndarrays | 05aa44d53f4f9528847a0c014fe4bda5caa5fd3d | <ide><path>numpy/ma/extras.py
<ide> def _median(a, axis=None, out=None, overwrite_input=False):
<ide> else:
<ide> axis = normalize_axis_index(axis, asorted.ndim)
<ide>
<add> if asorted.shape[axis] == 0:
<add> # for empty axis integer indices fail so use slicing to get same result
<add> # a... | 2 |
Text | Text | remove unused imports | 3d163d32142eab73cb4c5472ea7920b79b640d9d | <ide><path>doc/api/esm.md
<ide> purposes.
<ide> ```js
<ide> // coffeescript-loader.mjs
<ide> import { readFile } from 'fs/promises';
<del>import { readFileSync } from 'fs';
<del>import { createRequire } from 'module';
<ide> import { dirname, extname, resolve as resolvePath } from 'path';
<ide> import { cwd } from 'proc... | 1 |
Go | Go | execute buildportmapinfo after endpoint.join() | e03daebb48221bae84bfc48b0f9b652ced6d93f3 | <ide><path>daemon/container_unix.go
<ide> func (container *Container) buildEndpointInfo(n libnetwork.Network, ep libnetwor
<ide> return networkSettings, nil
<ide> }
<ide>
<add> if iface.MacAddress() != nil {
<add> networkSettings.Networks[n.Name()].MacAddress = iface.MacAddress().String()
<add> }
<add>
<ide> if i... | 2 |
Text | Text | add anaconda logo to python/anaconda/index.md | 69ec2781a330202b0a2f46f408ec654b0ee445dc | <ide><path>guide/english/python/anaconda/index.md
<ide> ---
<ide> title: Anaconda
<ide> ---
<add>
<ide>
<del>## Anaconda
<ide> **Anaconda** is a package manager, environment manager and Python distribution with a collection of numerou... | 1 |
Text | Text | add note about yarn 2 support. | 843252b8211f14ba9c2aa422f3feed728a827836 | <ide><path>docs/getting-started.md
<ide> npm install next react react-dom
<ide> yarn add next react react-dom
<ide> ```
<ide>
<add>> **Note**: [Yarn 2](https://yarnpkg.com/getting-started/install) is supported as best-effort within Next.js. For best results, use NPM or Yarn 1.
<add>
<ide> Open `package.json` and add t... | 1 |
PHP | PHP | add strict_types to collection test cases | cb4fcfe9d2ad97009e415b13080aaef8d51591d8 | <ide><path>tests/TestCase/Collection/CollectionTest.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>tests/TestCase/Collection/Iterator/BufferedIt... | 9 |
Java | Java | add closestatus to indicate unreliable session | cbd5af3a0352e408bccac7763a9ea7f1e94fc516 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/CloseStatus.java
<ide> public final class CloseStatus {
<ide> public static final CloseStatus TLS_HANDSHAKE_FAILURE = new CloseStatus(1015);
<ide>
<ide>
<add> /**
<add> * Indicates that a session has become unreliable (e.g. timed out while sen... | 6 |
Javascript | Javascript | fix select tests on ie8 | 0bc406cc0096f58b6f428afce4fdfb200c643fe5 | <ide><path>packages/ember-handlebars/tests/controls/select_test.js
<ide> var map = Ember.EnumerableUtils.map;
<ide>
<del>var dispatcher, select;
<add>var dispatcher, wrapper, select;
<ide>
<ide> module("Ember.Select", {
<ide> setup: function() {
<ide> dispatcher = Ember.EventDispatcher.create();
<ide> dispa... | 2 |
Ruby | Ruby | combine detection logic | 3005582f15237393d6dd9df5e8b6429112b2e12a | <ide><path>Library/Homebrew/gpg.rb
<ide> require "utils"
<ide>
<ide> class Gpg
<del> # Should ideally be using `GPGRequirement.new.gpg2`, etc to get path here but
<del> # calling that directly leads to:
<del> # requirement.rb:139:in `which_all': uninitialized constant Requirement::ORIGINAL_PATHS (NameError)
<del> ... | 1 |
Text | Text | revise dependency redirection text in policy.md | 163030eded94c010837e8cf62a618b5d973e0305 | <ide><path>doc/api/policy.md
<ide> replaced.
<ide> ```
<ide>
<ide> The dependencies are keyed by the requested specifier string and have values
<del>of either `true`, `null`, a string pointing to a module that will be resolved,
<add>of either `true`, `null`, a string pointing to a module to be resolved,
<ide> or a con... | 1 |
Python | Python | decorate regression tests | addeb34bc4538cada8f373a16ea89c46dcf63f07 | <ide><path>spacy/tests/regression/test_issue1-1000.py
<ide> from ..util import make_tempdir
<ide>
<ide>
<add>@pytest.mark.issue(118)
<ide> @pytest.mark.parametrize(
<ide> "patterns",
<ide> [
<ide> def test_issue118(en_tokenizer, patterns):
<ide> assert ents[0].end == 11
<ide>
<ide>
<add>@pytest.mark.iss... | 17 |
Go | Go | add support for srv query in embedded dns | 0051e39750559340e667ae7712afc18f81a45cb6 | <ide><path>libnetwork/libnetwork_internal_test.go
<ide> func TestAuxAddresses(t *testing.T) {
<ide> }
<ide> }
<ide>
<add>func TestSRVServiceQuery(t *testing.T) {
<add> c, err := New()
<add> if err != nil {
<add> t.Fatal(err)
<add> }
<add> defer c.Stop()
<add>
<add> n, err := c.NewNetwork("bridge", "net1", "", nil)
<... | 6 |
Python | Python | fix tokenizer to tensors | 78863f6b36e975f718eeae01a6cea3681ff735aa | <ide><path>pytorch_transformers/tokenization_utils.py
<ide>
<ide> if is_tf_available():
<ide> import tensorflow as tf
<add>if is_torch_available()
<add> import torch
<ide>
<ide> logger = logging.getLogger(__name__)
<ide>
<ide> def prepare_for_model(self, ids, pair_ids=None, max_length=None, add_special_tok
<i... | 1 |
PHP | PHP | add missing methods to queuefake | 6bfa29e220adbd35523e897d813524b4c3928dde | <ide><path>src/Illuminate/Support/Testing/Fakes/QueueFake.php
<ide> public function pop($queue = null)
<ide> {
<ide> //
<ide> }
<add>
<add> /**
<add> * Push an array of jobs onto the queue.
<add> *
<add> * @param array $jobs
<add> * @param mixed $data
<add> * @param string $que... | 1 |
Text | Text | fix doc styling and formatting issues | 107d6228db87a0bfded66b06f54f674e1d123e67 | <ide><path>docs/_posts/2015-12-16-ismounted-antipattern.md
<ide> const makeCancelable = (promise) => {
<ide> };
<ide> };
<ide> ```
<del>As an added bonus for getting your code cleaned up early, getting rid of `isMounted()` makes it one step easier for you to upgrade to ES6 classes, where using `isMounted()` is alread... | 9 |
Javascript | Javascript | fix shallow renderer with ref as function | f00d45d65f27f2b719c9b48f972f4ae015ada7dd | <ide><path>src/test/ReactTestUtils.js
<ide> NoopInternalComponent.prototype = {
<ide> unmountComponent: function() {
<ide> },
<ide>
<add> getPublicInstance: function() {
<add> return null;
<add> },
<ide> };
<ide>
<ide> var ShallowComponentWrapper = function() { };
<ide><path>src/test/__tests__/ReactTestUtils... | 2 |
Javascript | Javascript | add hascrypto when using binding('crypto') | 6fc9c331c624ceef5efcce19b1d610340e1f39be | <ide><path>test/parallel/test-accessor-properties.js
<ide> 'use strict';
<ide>
<del>require('../common');
<add>const common = require('../common');
<ide>
<ide> // This tests that the accessor properties do not raise assertions
<ide> // when called with incompatible receivers.
<ide> const assert = require('assert');
<... | 3 |
Text | Text | fix docs for sample query parameters | 9a3a0da319f566caba7fcfa225ab9214e92c935b | <ide><path>docs/routing/dynamic-routes.md
<ide> Similarly, the route `/post/abc?foo=bar` will have the following `query` object:
<ide> However, route parameters will override query parameters with the same name. For example, the route `/post/abc?pid=123` will have the following `query` object:
<ide>
<ide> ```json
<del... | 1 |
Python | Python | add blank line for pep8 | a3b990df1bb535064e31c099be19290e9c684ce6 | <ide><path>benchmarks/benchmarks/bench_shape_base.py
<ide>
<ide> import numpy as np
<ide>
<add>
<ide> class Block(Benchmark):
<ide> params = [1, 10, 100]
<ide> param_names = ['size'] | 1 |
PHP | PHP | fix inconsistency between app and skel directory | 3f778d8936dcca010d59f2d76dc25bd7abbcf152 | <ide><path>lib/Cake/Console/Templates/skel/webroot/index.php
<ide> * This should point at the directory containg `Cake`.
<ide> *
<ide> * For ease of development CakePHP uses PHP's include_path. If you
<del> * need to squeeze a bit more performance you can set this path.
<add> * cannot modify your include_path set t... | 1 |
Ruby | Ruby | use response_body rather than performed? | e28e0611652e4d2c4fc2e8afdf866264c1583154 | <ide><path>actionpack/lib/action_controller/base.rb
<ide> class Base < Metal
<ide> module ImplicitRender
<ide> def send_action(*)
<ide> ret = super
<del> default_render unless performed?
<add> default_render unless response_body
<ide> ret
<ide> end
<ide>
<ide><path>actionp... | 2 |
Java | Java | remove unused imports | b43bc8659aa9d0da6598b3e2385af1a2496cb55e | <ide><path>spring-aop/src/main/java/org/springframework/aop/support/AbstractRegexpMethodPointcut.java
<ide> /*
<del> * Copyright 2002-2009 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 2 |
Javascript | Javascript | use faster variant for rss in test-crypto-dh-leak | f4ef517debd90a95916da7178df4dcda02c93a80 | <ide><path>test/parallel/test-crypto-dh-leak.js
<ide> if (process.config.variables.asan)
<ide> const assert = require('assert');
<ide> const crypto = require('crypto');
<ide>
<del>const before = process.memoryUsage().rss;
<add>const before = process.memoryUsage.rss();
<ide> {
<ide> const dh = crypto.createDiffieHell... | 1 |
Ruby | Ruby | add sponsors graphql api | 286488f753b547d06f7f10cbba305df603480551 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def get_artifact_url(user, repo, pr, workflow_id: "tests.yml", artifact_name: "b
<ide> artifact.first["archive_download_url"]
<ide> end
<ide>
<add> def sponsors_by_tier(user)
<add> url = "https://api.github.com/graphql"
<add> data = {
<add> query: <<~... | 1 |
Python | Python | remove `has_key` use that was missed | 046d0575d0c052c9012221f36c3a2d0ccf34abb5 | <ide><path>doc/sphinxext/docscrape.py
<ide> def __getitem__(self,key):
<ide> return self._parsed_data[key]
<ide>
<ide> def __setitem__(self,key,val):
<del> if not self._parsed_data.has_key(key):
<add> if not key in self._parsed_data:
<ide> warn("Unknown section %s" % key)
<ide> ... | 2 |
Javascript | Javascript | add a cache for invokeforstate in ember.view | 9050fabac7f7b3e302893ce3312d241805514ee0 | <ide><path>packages/ember-views/lib/views/view.js
<ide> var childViewsProperty = Ember.computed(function() {
<ide> */
<ide> Ember.TEMPLATES = {};
<ide>
<add>var invokeForState = {
<add> preRender: {},
<add> inBuffer: {},
<add> hasElement: {},
<add> inDOM: {},
<add> destroyed: {}
<add>};
<add>
<ide> /**
<ide> @c... | 1 |
Javascript | Javascript | fix backtrace with no frames | c26cf84a088fae435d9a9a71cca40cfc7cc57b17 | <ide><path>lib/_debugger.js
<ide> Client.prototype.fullTrace = function(cb) {
<ide>
<ide> this.reqBacktrace(function(err, trace) {
<ide> if (err) return cb(err);
<add> if (trace.totalFrames <= 0) return cb(Error('No frames'));
<ide>
<ide> var refs = [];
<ide>
<ide> Client.prototype.fullTrace = function(... | 3 |
Ruby | Ruby | add skylake cpu | 37e423ebb2885f9f5799b9914357124b98e79643 | <ide><path>Library/Homebrew/os/mac/hardware.rb
<ide> def family
<ide> :haswell
<ide> when 0x582ed09c # Broadwell
<ide> :broadwell
<add> when 0x37fc219f # Skylake
<add> :skylake
<ide> else
<ide> :dunno
<ide> end
<ide><path>Library/Homebrew/test/test_hardware.rb
<ide>... | 2 |
Ruby | Ruby | fix pending migration checks for multi-db | 6793482df90805247fc5b9fd3417bb5161077adc | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def call(env)
<ide> @mutex.synchronize do
<ide> @watcher ||= build_watcher do
<ide> @needs_check = true
<del> ActiveRecord::Migration.check_pending!(connection)
<add> ActiveRecord::Migration.check_pending_mi... | 2 |
Javascript | Javascript | fix lint rules | 7e078d6a923783bc4914c16ad90cc6fb1c93274d | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> 'dot-notation': ERROR,
<ide> 'eol-last': ERROR,
<ide> 'eqeqeq': [ERROR, 'allow-null'],
<del> 'indent': [ERROR, 2, {SwitchCase: 1}],
<add> 'indent': OFF,
<ide> 'jsx-quotes': [ERROR, 'prefer-double'],
<ide> 'keyword-spacing': [ERROR, {after:... | 3 |
Ruby | Ruby | build an ast rather than slapping strings together | 6518f12b73546ee566ecef76f8d13da6f16272a0 | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def calculate(operation, column_name, options = {})
<ide> #
<ide> def pluck(*column_names)
<ide> column_names.map! do |column_name|
<del> if column_name.is_a?(Symbol)
<del> if attribute_alias?(column_name)
<del> ... | 1 |
PHP | PHP | use an associative array to improve readability | 98aafb428ae4eeb56ad2e8368bc6fe5e2315a62a | <ide><path>src/Cache/Engine/ArrayEngine.php
<ide> class ArrayEngine extends CacheEngine
<ide> /**
<ide> * Cached data.
<ide> *
<del> * Structured as [key => [expiration, value]]
<add> * Structured as [key => [exp => expiration, val => value]]
<ide> *
<ide> * @var array
<ide> */
<ide... | 1 |
Mixed | Text | use assert_nil instead of testing for equality | 0f8fe64c4e70698b75b0fb7e0566ded41a0573ec | <ide><path>activerecord/CHANGELOG.md
<ide> * Removed redundant override of `xml` column definition for PG,
<del> in order to use `xml` column type instead of `text`
<add> in order to use `xml` column type instead of `text`.
<ide>
<ide> *Paul Nikitochkin*, *Michael Nikitochkin*
<ide>
<ide><path>activerecor... | 2 |
Python | Python | remove the log group associated to the test | 7d760f39d542c302a85967708d5ec8c88335aa55 | <ide><path>tests/system/providers/amazon/aws/example_sagemaker_endpoint.py
<ide> def delete_endpoint(endpoint_name):
<ide>
<ide> @task(trigger_rule=TriggerRule.ALL_DONE)
<ide> def delete_logs(env_id, endpoint_name):
<del> generated_logs = [
<del> # Format: ('log group name', 'log stream prefix')
<del> ... | 1 |
PHP | PHP | fix mistake in path | 7c4b7a2cbe758b4e237387f9a390a4fc67bbd0a7 | <ide><path>lib/Cake/Test/Case/Configure/PhpReaderTest.php
<ide> public function testDump() {
<ide> PHP;
<ide> $file = $this->path . 'test.php';
<ide> $contents = file_get_contents($file);
<del> @unlink($contents);
<add>
<add> unlink($file);
<ide> $this->assertEquals($expected, $contents);
<ide> }
<ide>
<ide><... | 2 |
Javascript | Javascript | use bodystyle var instead of document.body.style | 66ceecc2956ae4550cb3c2493be760184bc18777 | <ide><path>src/ng/sniffer.js
<ide> function $SnifferProvider() {
<ide> animations = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));
<ide>
<ide> if (android && (!transitions || !animations)) {
<del> transitions = isString(document.body.style.webkitTransition);
<del> ... | 1 |
Text | Text | remove unnecessary comments | a9a68fa4984eb9929f4eba5f4f10da92ac239c41 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/access-array-data-with-indexes.md
<ide> if(typeof myArray !== "undefined" && typeof myData !== "undefined"){(function(y,
<ide> ## --seed-contents--
<ide>
<ide> ```js
<del>// Setup
<ide> var myArray = [50,60,70];
<ide... | 1 |
Javascript | Javascript | pick the right attribute name for ngform | 0fcd1e3b1fa6244d02f08631d9ef81bf79996fab | <ide><path>src/ng/directive/form.js
<ide> var nullFormCtrl = {
<ide> *
<ide> * - keys are validation tokens (error names) — such as `required`, `url` or `email`),
<ide> * - values are arrays of controls or forms that are invalid with given error.
<del> *
<add> *
<ide> * @description
<ide> * `FormController` kee... | 2 |
Ruby | Ruby | try #2 at handling backed up casks | 9227c8fe3c09cecf551cca060ee45c37cfc30be6 | <ide><path>Library/Homebrew/cask/lib/hbc/installer.rb
<ide> def initialize(cask, command: SystemCommand, force: false, skip_cask_deps: false
<ide> @require_sha = require_sha
<ide> @reinstall = false
<ide> @upgrade = upgrade
<del> @backed_up = false
<ide> end
<ide>
<ide> attr_predicate :b... | 1 |
Python | Python | add some docstrings | a19b3b585034d0dc33e6361b75c5c3e9901a3eca | <ide><path>libcloud/compute/drivers/rackspace.py
<ide> def create_node(self, **kwargs):
<ide> return self._to_node(resp.object)
<ide>
<ide> def ex_resize(self, node, image):
<add> """
<add> Change an existing server flavor / scale the server up or down.
<add>
<add> @keyword node: no... | 1 |
Text | Text | improve text for breakonsigint | 6bf213936596250b7531e01c564a15d290eb38eb | <ide><path>doc/api/vm.md
<ide> changes:
<ide> * `timeout` {integer} Specifies the number of milliseconds to execute `code`
<ide> before terminating execution. If execution is terminated, an [`Error`][]
<ide> will be thrown. This value must be a strictly positive integer.
<del> * `breakOnSigint` {boolean} If ... | 1 |
Python | Python | add converter for jsonl ner data | 6ea981c83904bd082d4a37d75dd02fe86b615b12 | <ide><path>spacy/cli/_messages.py
<ide> class Messages(object):
<ide> M051 = ("Development data not found")
<ide> M052 = ("Not a valid meta.json format")
<ide> M053 = ("Expected dict but got: {meta_type}")
<add> M054 = ("No --lang specified, but tokenization required.")
<ide><path>spacy/cli/convert.py
<i... | 7 |
Javascript | Javascript | remove hydrate option from createroot | 5041c37d27ee8f80bf152951d20bf861f817c7c6 | <ide><path>fixtures/ssr/src/index.js
<ide> import React from 'react';
<del>import {createRoot} from 'react-dom';
<add>import {hydrateRoot} from 'react-dom';
<ide>
<ide> import App from './components/App';
<ide>
<del>let root = createRoot(document, {hydrate: true});
<del>root.render(<App assets={window.assetManifest} ... | 12 |
PHP | PHP | fix signatures of test classes | 3423f9b664d54aca65118730eef0040ab70fc56e | <ide><path>tests/test_app/Plugin/TestPlugin/src/Http/Session/TestPluginSession.php
<ide>
<ide> namespace TestPlugin\Http\Session;
<ide>
<add>use ReturnTypeWillChange;
<ide> use SessionHandlerInterface;
<ide>
<ide> /**
<ide> * Test suite plugin session handler
<ide> */
<ide> class TestPluginSession implements Sessi... | 2 |
Ruby | Ruby | move bottle stdlib tracking post-pour | 2775a4b12cce406c85b97b70ed424852bf3bc783 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def install
<ide> raise "Unrecognized architecture for --bottle-arch: #{arch}"
<ide> end
<ide>
<del> if pour_bottle?
<del> # This assumes that bottles are built with
<del> # a) the OS's default compiler, and
<del> # b) the OS's default ... | 1 |
Text | Text | move the changelog entry to the proper place | e24e086ef1de73beffc0870cb37d6ae42cbbd2c8 | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Make `ActionDispatch::Journey::Path::Pattern#new` raise more meaningful exception message.
<add>
<add> *Thierry Zires*
<ide>
<del>## Rails 4.0.0.beta1 (February 25, 2013) ##
<ide>
<del>* Make ActionDispatch::Journey::Path::Pa... | 1 |
Text | Text | add missed quote | e14baf9a24e7045a32ac9dc7b7eb01752d91cf7f | <ide><path>docs/tutorials/essentials/part-5-async-logic.md
<ide> If we try calling `dispatch(fetchPosts())`, the `fetchPosts` thunk will first di
<ide>
<ide> We can listen for this action in our reducer and mark the request status as `'loading'`.
<ide>
<del>Once the `Promise` resolves, the `fetchPosts` thunk takes th... | 1 |
PHP | PHP | unskip tests for minute() | abecb49321c0b8fe332fecaf3553e9f67e1df886 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testDay() {
<ide> * @return void
<ide> */
<ide> public function testMinute() {
<del> $this->markTestIncomplete('Need to revisit once models work again.');
<ide> extract($this->dateRegex);
<ide>
<ide> $result = $this->Form->minute('M... | 1 |
Python | Python | improve tf backend docstrings | 0bf2b1b075223d9e53bc16e63e2ee11fa839508e | <ide><path>keras/backend/tensorflow_backend.py
<ide> def switch(condition, then_expression, else_expression):
<ide> def relu(x, alpha=0., max_value=None):
<ide> '''ReLU.
<ide>
<del> alpha: slope of negative section.
<add> # Arguments
<add> alpha: slope of negative section.
<add> max_value: satu... | 1 |
PHP | PHP | remove unnecessary assertions | 2e35feac5294fdca5171f3fa7dbd75f3592f47df | <ide><path>tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php
<ide> public function testLocalePropertyIsSetInMatchingData()
<ide> ->first();
<ide>
<ide> $this->assertArrayNotHasKey('_locale', $result->comments);
<del> $this->assertArrayHasKey('_locale', $result->_matchingData['Comments'])... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.