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 | compress ajax. close gh-1041 | a938d7b1282fc0e5c52502c225ae8f0cef219f0a | <ide><path>src/ajax.js
<ide> var
<ide> ajaxLocParts,
<ide> ajaxLocation,
<ide>
<del> antiCacheValue = jQuery.now(),
<add> ajax_nonce = jQuery.now(),
<ide>
<add> ajax_rquery = /\?/,
<ide> rhash = /#.*$/,
<add> rts = /([?&])_=[^&]*/,
<ide> rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at... | 4 |
Java | Java | delete unused code in dataclassrowmapper | 0556fdecaa3b228880e7322529a385c5ebbfe5c1 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/DataClassRowMapper.java
<ide>
<ide> import org.springframework.beans.BeanUtils;
<ide> import org.springframework.beans.TypeConverter;
<del>import org.springframework.core.DefaultParameterNameDiscoverer;
<del>import org.springframework.core.ParameterNam... | 1 |
Java | Java | fix javadoc warnings | 2b0d8609231deaf1a3790334f6ffd7dae326aa0e | <ide><path>spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2013 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not us... | 6 |
Text | Text | add changelog entry for [ci skip] | e5e3ec20851bb336d0efb7956d115a4b4a4bd9b1 | <ide><path>activerecord/CHANGELOG.md
<add>* Do not set `sql_mode` if `strict: :default` is specified.
<add>
<add> ```
<add> # database.yml
<add> production:
<add> adapter: mysql2
<add> database: foo_prod
<add> user: foo
<add> strict: :default
<add> ```
<... | 1 |
Go | Go | use mount package to unmount container stuff | d6558ad6a4552fc745e893f93ae190710d1a36bc | <ide><path>container/container_linux.go
<del>package container // import "github.com/docker/docker/container"
<del>
<del>import (
<del> "golang.org/x/sys/unix"
<del>)
<del>
<del>func detachMounted(path string) error {
<del> return unix.Unmount(path, unix.MNT_DETACH)
<del>}
<ide><path>container/container_notlinux.go
<de... | 3 |
Text | Text | add cgroups freezer info | 3957d72f9cd613fa8a0eeb03517e4f78f9cc58f1 | <ide><path>docs/sources/reference/commandline/cli.md
<ide> log entry.
<ide>
<ide> Usage: docker pause CONTAINER
<ide>
<del> Pause all processes within a container
<add> Pause uses the cgroups freezer to suspend all processes in a container.
<add> Traditionally when suspending a process the SIGSTOP signal... | 1 |
PHP | PHP | apply fixes from styleci | 015ea8fd59e7a1bd38d08a3036ce08c045fe9075 | <ide><path>tests/Queue/QueueDatabaseQueueUnitTest.php
<ide> public function testBulkBatchPushesOntoDatabase()
<ide> public function testBuildDatabaseRecordWithPayloadAtTheEnd()
<ide> {
<ide> $queue = m::mock('Illuminate\Queue\DatabaseQueue');
<del> $record = $queue->buildDatabaseRecord('queue','a... | 1 |
PHP | PHP | create a test that a chain can be added | 77676a28826edb3a748ee8981ea9cf8499d4fd75 | <ide><path>tests/Bus/BusBatchTest.php
<ide> use Illuminate\Bus\BatchFactory;
<ide> use Illuminate\Bus\DatabaseBatchRepository;
<ide> use Illuminate\Bus\PendingBatch;
<add>use Illuminate\Bus\Queueable;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Queue\Factory;
<add>use Illuminate\Contracts\Q... | 1 |
PHP | PHP | add tests for plugin() method | 3a595147fd1744e19b2ca94316c77aad3737f66a | <ide><path>src/Routing/ScopedRouteCollection.php
<ide> public function prefix($name, callable $callback) {
<ide> * @param callable $callback The callback to invoke that builds the plugin routes.
<ide> * Only required when $options is defined.
<ide> * @return void
<del>* @throws \Cake\Error\Exception When an invalid c... | 2 |
Text | Text | improve vm.md copy | baeed8b3d93efb337a09c902e259c0695d179a15 | <ide><path>doc/api/vm.md
<ide>
<ide> <!--name=vm-->
<ide>
<del>You can access this module with:
<add>The `vm` module provides APIs for compiling and running code within V8 Virtual
<add>Machine contexts. It can be accessed using:
<ide>
<ide> ```js
<ide> const vm = require('vm');
<ide> const vm = require('vm');
<ide> ... | 1 |
Text | Text | add description of multidimensional arrays | b92b49efb6fc4462010a2e321aafa41ac81a8d66 | <ide><path>guide/english/csharp/array/index.md
<ide> Console.Write(array[1][2]); // Displays 3 (third element of second subarray)
<ide> Console.Write(array[1][0]); // Displays 1 (first element of second subarray)
<ide> ```
<ide>
<add>## Multidimensional array
<add>Arrays can have more than one dimension (every element... | 1 |
Text | Text | add changelog entry for | 684a040437197f421f31587681301ef6ddd0c4bc | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Fix select_tag when option_tags is nil.
<add> Fixes #7404.
<add>
<add> *Sandeep Ravichandran*
<add>
<ide> * Add Request#formats=(extensions) that lets you set multiple formats directly in a prioritized order *DHH*
<ide>
<id... | 1 |
Javascript | Javascript | use plain objects for write/corked reqs | a3539ae3be51c54f0b2f1619e18980fc1a2cb8d2 | <ide><path>lib/_stream_writable.js
<ide> util.inherits(Writable, Stream);
<ide>
<ide> function nop() {}
<ide>
<del>function WriteReq(chunk, encoding, cb) {
<del> this.chunk = chunk;
<del> this.encoding = encoding;
<del> this.callback = cb;
<del> this.next = null;
<del>}
<del>
<ide> function WritableState(options,... | 1 |
Python | Python | fix loading bertjapanesetokenizer | 57b5cb3eaa850a212235fccbd4e5d002aede72b6 | <ide><path>transformers/tokenization_auto.py
<ide> def from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs):
<ide> - contains `albert`: AlbertTokenizer (ALBERT model)
<ide> - contains `camembert`: CamembertTokenizer (CamemBERT model)
<ide> - contains `roberta`: Robe... | 1 |
Go | Go | fix typo in comment | 76122f95e9173c1182b8dd44e1aa236a045d4e6a | <ide><path>pkg/plugins/plugins.go
<ide> type Plugin struct {
<ide>
<ide> // error produced by activation
<ide> activateErr error
<del> // specifies if the activation sequence is completed (not if it is sucessful or not)
<add> // specifies if the activation sequence is completed (not if it is successful or not)
<ide>... | 1 |
Javascript | Javascript | fix three_to_webgl conversion | 95114947175b47a843d6072c3dc149bcc4eceae6 | <ide><path>examples/js/exporters/GLTFExporter.js
<ide> //------------------------------------------------------------------------------
<ide> var WEBGL_CONSTANTS = {
<ide> POINTS: 0x0000,
<del> LINES: 0x0001,
<del> LINE_LOOP: 0x0002,
<del> LINE_STRIP: 0x0003,
<del> TRIANGLES: 0x0004,
<del> TRIANGLE_STRIP: 0x0005... | 1 |
PHP | PHP | update warning messages | a7443625e240110ceae763e5e2aea30069eb2c3c | <ide><path>src/View/Helper.php
<ide> public function __get($name)
<ide> if (isset($removed[$name])) {
<ide> $method = $removed[$name];
<ide> deprecationWarning(sprintf(
<del> 'Helper::$%s is deprecated. Use $view->%s() instead.',
<add> 'Helper::$%s is remove... | 1 |
PHP | PHP | allow afterresponse chain | 4123c8d18807a0b31c8d82a446a46b611875ba28 | <ide><path>src/Illuminate/Foundation/Bus/PendingDispatch.php
<ide> class PendingDispatch
<ide> */
<ide> protected $job;
<ide>
<add> /**
<add> * Indicates if the job should be dispatched immediately after sending the response.
<add> *
<add> * @var bool
<add> */
<add> protected $afterRespo... | 1 |
PHP | PHP | prevent error on flushing empty cache | d29eec6576a47566fc907e7b0adc7052ef1f3ccf | <ide><path>src/Illuminate/Cache/Section.php
<ide> public function forget($key)
<ide> */
<ide> public function flush()
<ide> {
<del> $this->store->increment($this->sectionKey());
<add> $this->reset();
<ide> }
<ide>
<ide> /**
<ide> public function sectionItemKey($key)
<ide> return $this->name.':'.$this->sectio... | 1 |
Text | Text | adjust tty wording & add inter-doc links | 606ff7c6f2cb8ab36bdbbe782eaef66f83a42f08 | <ide><path>doc/api/tty.md
<ide> However, it can be accessed using:
<ide> const tty = require('tty');
<ide> ```
<ide>
<del>When Node.js detects that it is being run inside a text terminal ("TTY")
<del>context, the `process.stdin` will, by default, be initialized as an instance of
<del>`tty.ReadStream` and both `process... | 1 |
Javascript | Javascript | remove unused variables | 4dc6ae2181715157f91372c26d11c3d3ff2742ba | <ide><path>lib/_stream_writable.js
<ide> Writable.prototype.pipe = function() {
<ide> };
<ide>
<ide>
<del>function writeAfterEnd(stream, state, cb) {
<add>function writeAfterEnd(stream, cb) {
<ide> var er = new Error('write after end');
<ide> // TODO: defer error events consistently everywhere, not just the cb
<i... | 2 |
PHP | PHP | fix inconsistent types | d82aeb340cc6451182f37e032b326741fedd9444 | <ide><path>src/Database/Driver.php
<ide> public function supportsQuoting(): bool
<ide> /**
<ide> * {@inheritDoc}
<ide> */
<del> abstract public function queryTranslator($type);
<add> abstract public function queryTranslator(string $type);
<ide>
<ide> /**
<ide> * {@inheritDoc}
<ide><path>sr... | 2 |
Text | Text | add faq entry on form state | fe4069e101f5bec84423b5bf0f501d19d7e197f9 | <ide><path>docs/FAQ.md
<ide> - [Do I have to put all my state into Redux? Should I ever use React's setState()?](/docs/faq/OrganizingState.md#do-i-have-to-put-all-my-state-into-redux-should-i-ever-use-reacts-setstate)
<ide> - [Can I put functions, promises, or other non-serializable items in my store state?](/docs/... | 2 |
PHP | PHP | fix docblocks around bool false | 49a9b37e81624530582769e369ffd69b7750e5a6 | <ide><path>src/Controller/Component/AuthComponent.php
<ide> public function redirectUrl($url = null): string
<ide> * Triggers `Auth.afterIdentify` event which the authenticate classes can listen
<ide> * to.
<ide> *
<del> * @return array|bool User record data, or false, if the user could not be identi... | 5 |
Javascript | Javascript | update documentation for expect methods | 61cb4085d421060edfb98d7eae0a43b615542843 | <ide><path>src/ngMock/angular-mocks.js
<ide> function createHttpBackendMock($rootScope, $delegate, $browser) {
<ide> *
<ide> * @param {string} method HTTP method.
<ide> * @param {string|RegExp} url HTTP url.
<del> * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
<... | 1 |
Text | Text | add 1.5.3 release notes | 3cd00fa3dded965a72fba29f0004618122b9da14 | <ide><path>CHANGELOG.md
<add><a name="1.5.3"></a>
<add># 1.5.3 diplohaplontic-meiosis (2016-03-25)
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:** workaround a GC bug in Chrome < 50
<add> ([513199ee](https://github.com/angular/angular.js/commit/513199ee9f1c8eef1240983d6e52c824404adb98),
<add> [#14041](https://git... | 1 |
Javascript | Javascript | fix merge bug | 1637c4b1594115dcdab974b8e76fe03c0517914d | <ide><path>d3.js
<ide> d3.behavior.zoom = function() {
<ide> function start() {
<ide> d3_behavior_zoomXyz = xyz;
<ide> d3_behavior_zoomExtent = extent;
<del> d3_behavior_zoomDispatch = event.zoom.dispatch;
<add> d3_behavior_zoomDispatch = event.zoom;
<ide> d3_behavior_zoomEventTarget = d3.event.targ... | 3 |
Python | Python | reduce logs from imported/vendored fab class | c6414b8f4e7505c7c59da1045691cbf7eeee8ee0 | <ide><path>airflow/www/extensions/init_appbuilder.py
<ide> from airflow import settings
<ide> from airflow.configuration import conf
<ide>
<del>log = logging.getLogger(__name__)
<add># This module contains code imported from FlaskAppbuilder, so lets use _its_ logger name
<add>log = logging.getLogger("flask_appbuilder.... | 1 |
PHP | PHP | handle case when $this->events is null | ceab3cc25cb7257c273b81dbf06f0c4e00fade90 | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> public function send($view, array $data = [], $callback = null)
<ide>
<ide> $this->sendSwiftMessage($message->getSwiftMessage());
<ide>
<del> $this->events->dispatch(new Events\MessageSent($message->getSwiftMessage()));
<add> if ($this->events) {
<... | 1 |
PHP | PHP | fix failing test | f331866b855eac286edc81cdd86390fb865d5f17 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function input($fieldName, array $options = []) {
<ide> protected function _getInput($fieldName, $options) {
<ide> switch ($options['type']) {
<ide> case 'select':
<del> $opts = $options['options'];
<add> $opts = (array)$options['options'];
<ide> un... | 1 |
Javascript | Javascript | add chain removal to ember.destroy | 901b0f64cbd03d4dcf75bb616ef2b500b2dab449 | <ide><path>packages/ember-metal/lib/properties.js
<ide> Ember.createPrototype = function(obj, props) {
<ide> if (META_KEY in ret) Ember.rewatch(ret); // setup watch chains if needed.
<ide> return ret;
<ide> };
<del>
<del>
<del>/**
<del> Tears down the meta on an object so that it can be garbage collected.
<del> ... | 4 |
Text | Text | fix lint error in modules.md | 361632dab1eb57c55fae17d2fcb11b3000036661 | <ide><path>doc/api/modules.md
<ide> native modules and if a name matching a native module is added to the cache,
<ide> only `node:`-prefixed require calls are going to receive the native module.
<ide> Use with care!
<ide>
<add><!-- eslint-disable node-core/no-duplicate-requires -->
<ide> ```js
<ide> const assert = req... | 1 |
Text | Text | improve ajax example [ci skip] | 6dbd73d8264a12de329c4525c6e2a03a8533ee8d | <ide><path>guides/source/working_with_javascript_in_rails.md
<ide> fetch("/test")
<ide> .then((data) => data.text())
<ide> .then((html) => {
<ide> const results = document.querySelector("#results");
<del> results.insertAdjacentHTML("beforeend", data);
<add> results.insertAdjacentHTML("beforeend", html);
<... | 1 |
Python | Python | add control if server did not return uptime stat | 0e5b73c12bacb800fb95034ba4b393d5a56ffcc5 | <ide><path>glances/glances.py
<ide> def displaySystem(self, host, system, uptime):
<ide> center = ((screen_x - len(uptime_msg)) // 2) - len(system_msg) // 2
<ide> self.term_window.addnstr(self.system_y, self.system_x + center,
<ide> system_msg, 80... | 1 |
Javascript | Javascript | change the applicationtest to testresolver | 0296f161b6e976719c11255dafaa055cbca3e9ec | <ide><path>packages/ember-application/lib/system/application.js
<ide> Application.reopenClass({
<ide> });
<ide>
<ide> function commonSetupRegistry(registry) {
<add> registry.register('router:main', Router);
<ide> registry.register('-view-registry:main', { create() { return dictionary(null); } });
<ide>
<ide> reg... | 22 |
Text | Text | fix relative links in website readme.md | 838284c254948e599ec750a434805db288a2aedd | <ide><path>website/README.md
<ide> The docs can always use another example or more detail, and they should always b
<ide>
<ide> While all page content lives in the `.jade` files, article meta (page titles, sidebars etc.) is stored as JSON. Each folder contains a `_data.json` with all required meta for its files.
<ide>... | 1 |
Javascript | Javascript | remove unused focusedopacity prop and function | 85247f99864b890fb96b8356947abd2feb6c42ff | <ide><path>Libraries/Components/Touchable/TouchableOpacity.js
<ide> var TouchableOpacity = createReactClass({
<ide> * active. Defaults to 0.2.
<ide> */
<ide> activeOpacity: PropTypes.number,
<del> focusedOpacity: PropTypes.number,
<ide> /**
<ide> * Apple TV parallax effects
<ide> */
<ide>... | 1 |
Ruby | Ruby | simplify the block and add a comment | 329e357d9acdd7989cb3ba6394f3b4839bb1e83f | <ide><path>Library/Homebrew/caveats.rb
<ide> def plist_caveats
<ide> else
<ide> s << " launchctl load #{plist_link}"
<ide> end
<del> else
<del> if f.plist_startup
<add> # For startup plists, we cannot tell whether it's running on launchd,
<add> # as it requires for `su... | 1 |
Javascript | Javascript | pass cli flags in pummel/test-regress-gh-892 | 32ac8c0b69d87ff635c3827f1891907dec9ee381 | <ide><path>test/pummel/test-regress-GH-892.js
<ide> function makeRequest() {
<ide>
<ide> var stderrBuffer = '';
<ide>
<del> var child = spawn(process.execPath,
<del> [childScript, common.PORT, bytesExpected]);
<add> // Pass along --trace-deprecation/--throw-deprecation in
<add> // process.execArgv to track ... | 1 |
Go | Go | move "containers" to daemon/list.go | d0370076585f506d2f81af3fb3dab56119bdc0e9 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) Install(eng *engine.Engine) error {
<ide> if err := eng.Register("top", daemon.ContainerTop); err != nil {
<ide> return err
<ide> }
<add> if err := eng.Register("containers", daemon.Containers); err != nil {
<add> return err
<add> }
<ide> return nil
<ide> }
... | 3 |
Python | Python | fix openstackexception issue | 85b6f4a29c91dca6631dbff7cc25225f60cb70ba | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def __init__(self, id, parent_group_id, ip_protocol, from_port, to_port,
<ide> self.direction = direction
<ide> else:
<ide> raise OpenStackException("Security group direction incorrect "
<del> ... | 1 |
Javascript | Javascript | add test case | 6592956d357a7a47dad716d5bb57ba8f1c62a8d7 | <ide><path>test/configCases/parsing/issue-14720/index.js
<add>it("should generate a chunk for a full require dependencies in require.ensure", done => {
<add> require.ensure([], () => {
<add> expect(require("./module").property).toBe(42);
<add> expect(__STATS__.chunks.length).toBe(2);
<add> done();
<add> });
<add>});... | 3 |
Text | Text | add a section about platform.version on ios | 390c8cf96ee0b139aafc99bb23f8a49236f05309 | <ide><path>docs/PlatformSpecificInformation.md
<ide> if (Platform.Version === 25) {
<ide> }
<ide> ```
<ide>
<add>### Detecting the iOS version
<add>
<add>On iOS, the `Version` is a result of `-[UIDevice systemVersion]`, which is a string with the current version of the operating system. An example of the system versio... | 1 |
Python | Python | remove references to python 2 / is_python2 | 296b5d633b94ca51ed038b31d207edb5f53e0acb | <ide><path>spacy/tests/regression/test_issue5230.py
<ide> from spacy.vectors import Vectors
<ide> from spacy.language import Language
<ide> from spacy.pipeline import Pipe
<del>from spacy.compat import is_python2
<ide>
<ide>
<ide> from ..util import make_tempdir
<ide> def write_obj_and_catch_warnings(obj):
<ide> ... | 3 |
Java | Java | add tests to spring-messaging | e1a46bb57a88628305534ddab85591dbc8dcc8e9 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SubscriptionMethodReturnValueHandler.java
<ide>
<ide> /**
<ide> * A {@link HandlerMethodReturnValueHandler} for replying directly to a subscription. It
<del> * supports methods annotated with {@link SubscribeEvent} that do... | 13 |
Python | Python | add cinder support libcloud-874 | c8d253f7c8e566aa29589b78236264946a3cade3 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def create_volume(self, size, name, location=None, snapshot=None,
<ide> volume['snapshot_id'] = snapshot.id
<ide>
<ide> resp = self.volumev2_connection.request('/volumes',
<del> method='POST',
<del> ... | 1 |
Javascript | Javascript | move register/unregister to core.controller | 572b1c737ee20ad9e144976e60b2bb33444d74d0 | <ide><path>src/core/core.controller.js
<ide> Chart.instances = {};
<ide>
<ide> Chart.registry = registry;
<ide>
<add>// @ts-ignore
<add>const invalidatePlugins = () => each(Chart.instances, (chart) => chart._plugins.invalidate());
<add>
<add>Chart.register = (...items) => {
<add> registry.add(...items);
<add> invalid... | 2 |
Python | Python | invalidate _urls cache on register | 822b85ac36818f0d8cb4b05f47ea5532b12a8d57 | <ide><path>rest_framework/routers.py
<ide> def register(self, prefix, viewset, basename=None, base_name=None):
<ide> basename = self.get_default_basename(viewset)
<ide> self.registry.append((prefix, viewset, basename))
<ide>
<add> # invalidate the urls cache
<add> if hasattr(self, '_u... | 2 |
Javascript | Javascript | fix calls to dns bindings in dns.js | 3847add9436ce2eb080b9a91dd6955603ac6a714 | <ide><path>lib/dns.js
<del>process.binding('dns');
<add>var dns = process.binding('dns');
<ide>
<ide> exports.resolve = function (domain, type_, callback_) {
<ide> var type, callback;
<ide> exports.resolve = function (domain, type_, callback_) {
<ide> }
<ide> }
<ide>
<del>exports.resolve4 = process.dns.resolve... | 1 |
Java | Java | introduce entitymanager initialization callbacks | 9bf7ff23c02f68e492f377a0781eb607e7515440 | <ide><path>spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.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 "License");
<ide>... | 8 |
PHP | PHP | add support for themes + cells | d1300885f0705376ee600d4d1a786fb10bdae155 | <ide><path>src/View/Cell.php
<ide> abstract class Cell {
<ide> */
<ide> public $viewClass = 'Cake\View\View';
<ide>
<add>/**
<add> * The theme name that will be used to render.
<add> *
<add> * @var string
<add> */
<add> public $theme;
<add>
<ide> /**
<ide> * Instance of the Cake\Event\EventManager this cell is usin... | 3 |
PHP | PHP | add missing import | 49d2bb196d1e217c9332df11d33df31965f66563 | <ide><path>tests/TestCase/Cache/Engine/WincacheEngineTest.php
<ide>
<ide> use Cake\Cache\Cache;
<ide> use Cake\TestSuite\TestCase;
<add>use DateInterval;
<ide>
<ide> /**
<ide> * WincacheEngineTest class | 1 |
Text | Text | fix syntac error | 82637eae4528f97967870c3cd510b778d692b446 | <ide><path>docs/docs/10.1-animation.md
<ide> It is also possible to use custom class names for each of the steps in your tran
<ide> ```javascript
<ide> ...
<ide> <ReactCSSTransitionGroup
<del> transitionName={{
<add> transitionName={ {
<ide> enter: 'enter',
<ide> enterActive: 'enterActive',
<ide> ... | 1 |
Go | Go | use tag service for pulling tagged reference | e4cf1c733677ff77e51101e2de542373b449b471 | <ide><path>distribution/pull_v2.go
<ide> func (p *v2Puller) pullV2Tag(ctx context.Context, ref reference.Named, platform
<ide> }
<ide> tagOrDigest = digested.Digest().String()
<ide> } else if tagged, isTagged := ref.(reference.NamedTagged); isTagged {
<del> manifest, err = manSvc.Get(ctx, "", distribution.WithTag... | 1 |
PHP | PHP | replace foreach with in_array | 80f51e7e15082abeb34ff147fad8f87896754652 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateMimes($attribute, $value, $parameters)
<ide> // The Symfony File class should do a decent job of guessing the extension
<ide> // based on the true MIME type so we'll just loop through the array of
<ide> // extensions and compare i... | 1 |
PHP | PHP | apply fixes from styleci | f3a556927621bd745a6ca90e3a22063971c3d8c1 | <ide><path>src/Illuminate/Routing/ImplicitRouteBinding.php
<ide> namespace Illuminate\Routing;
<ide>
<ide> use Illuminate\Support\Str;
<del>use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Contracts\Routing\UrlRoutable;
<ide> use Illuminate\Database\Eloquent\ModelNotFoundException;
<ide> | 1 |
PHP | PHP | apply suggestions from code review | 6f7a8eb65c39c30de59f58f9eab63159a72f2dc7 | <ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php
<ide> public function testDescribeTable()
<ide> if (ConnectionManager::get('test')->getDriver()->isMariadb()) {
<ide> $expected['created_with_precision']['default'] = 'current_timestamp(3)';
<ide> $expected['created_with_preci... | 1 |
PHP | PHP | add asserttimessent method to notificationfake | c0afae9c56a0caabb03ac8e6d222c2b32a58a8bf | <ide><path>src/Illuminate/Support/Testing/Fakes/NotificationFake.php
<ide> public function assertNothingSent()
<ide> PHPUnit::assertEmpty($this->notifications, 'Notifications were sent unexpectedly.');
<ide> }
<ide>
<add> /**
<add> * Assert the total amount of times a notification was sent.
<add> ... | 2 |
Ruby | Ruby | add method to define a root requirement | d477d1663acaee53ec73acf7e4c3a1b2fd256878 | <ide><path>Library/Homebrew/formula.rb
<ide> def with_logging(log_type)
<ide> # </plist>
<ide> # EOS
<ide> # end</pre>
<add> #
<add> # @deprecated Please use {#service} instead
<ide> def plist
<ide> nil
<ide> end
<ide> def service_name
<ide> # The generated launchd {.plist} file path.
<ide> sig ... | 4 |
Go | Go | implement the cmdadd instruction | 6ae3800151025ff73a97c40af578ee714164003b | <ide><path>buildfile.go
<ide> type buildFile struct {
<ide> image string
<ide> maintainer string
<ide> config *Config
<add> context string
<ide>
<ide> tmpContainers map[string]struct{}
<ide> tmpImages map[string]struct{}
<ide> func (b *buildFile) CmdInsert(args string) error {
<ide> }
<ide> defe... | 4 |
Text | Text | remove duplicate test from catphotoapp step 23 | 3470ca57a304c8d0ac3792035db5b283f292b473 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md
<ide> After the image nested in the `figure` element, add a `figcaption` element with
<ide>
<ide> # --hints--
<ide>
<del>The Lasagna `img` element should be nested in the `figure` el... | 1 |
PHP | PHP | add strict_types to filesystem classes | 7de2b92e1a7942e332a492d405bc0a321527a902 | <ide><path>src/Filesystem/File.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> public function info()
<ide> /**
<ide> * Returns the file exte... | 4 |
Javascript | Javascript | change hotkeys to work across platforms | ab3a9076d90f17ee4d063495fd9f8df8b273cffd | <ide><path>client/src/templates/Challenges/classic/Editor.js
<ide> class Editor extends Component {
<ide> keybindings: [
<ide> /* eslint-disable no-bitwise */
<ide> monaco.KeyMod.chord(
<del> monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.PageDown
<add> monaco.KeyMo... | 2 |
Text | Text | change key terms to their correct translation | 1059098ac8c934bdd0f0f4a4ba55750da64ea469 | <ide><path>guide/russian/machine-learning/supervised-learning/index.md
<ide> ---
<ide> title: Supervised Learning
<del>localeTitle: Обучаемое обучение
<add>localeTitle: Обучение с учителем
<ide> ---
<del>## Обучаемое обучение
<add>## Обучение с учителем
<ide>
<del>В контролируемом обучении мы знаем, какой должен быть ... | 1 |
Python | Python | add camembert for question answering for examples | 47591763137f17021928e686ef171f25c240f076 | <ide><path>src/transformers/__init__.py
<ide> CamembertForSequenceClassification,
<ide> CamembertForMultipleChoice,
<ide> CamembertForTokenClassification,
<add> CamembertForQuestionAnswering,
<ide> CAMEMBERT_PRETRAINED_MODEL_ARCHIVE_MAP,
<ide> )
<ide> from .modeling_encode... | 1 |
Javascript | Javascript | add test to dynamic enablement of trace-events | 8e9121530711414586075186879ce3f7bada4125 | <ide><path>test/parallel/test-trace-events-dynamic-enable.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>
<add>common.skipIfInspectorDisabled();
<add>
<add>const assert = require('assert');
<add>const { performance } = require('perf_hooks');
<add>const { Session } = require('inspector');
<ad... | 1 |
PHP | PHP | fix failing test suite | a701e912e87d921429c3b9d605e8c4b9f0488d74 | <ide><path>tests/TestCase/ORM/Behavior/TimestampBehaviorTest.php
<ide> public function testUseImmutable()
<ide> $entity = new Entity();
<ide> $event = new Event('Model.beforeSave');
<ide>
<del> TypeFactory::build('timestamp')->useImmutable();
<ide> $entity->clean();
<ide> $this->... | 1 |
Javascript | Javascript | remove misleading comment | 04c1fbb0fa8cfa18c8b89985b777f37801660811 | <ide><path>lib/net.js
<ide> Socket.prototype._unrefTimer = function _unrefTimer() {
<ide>
<ide> // the user has called .end(), and all the bytes have been
<ide> // sent out to the other side.
<del>// If allowHalfOpen is false, or if the readable side has
<del>// ended already, then destroy.
<del>// If allowHalfOpen is... | 1 |
Ruby | Ruby | fix tests depending too deep | 9e4c8b88584ba09c46abcd484969da6244416946 | <ide><path>actionpack/lib/action_controller/response.rb
<ide> def prepare!
<ide> set_content_length!
<ide> end
<ide>
<add>
<ide> private
<ide> def handle_conditional_get!
<del> if body.is_a?(String) && headers['Status'][0..2] == '200' && !body.empty?
<add> if body.is_a?(String) && (he... | 4 |
PHP | PHP | remove extra cast | 46a7edb57fd35533d8465b6f865f60cf8d958ca7 | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide> public function __construct($key, $cipher = 'AES-128-CBC')
<ide> */
<ide> protected function hasValidCipherAndKeyCombination($key, $cipher)
<ide> {
<del> $length = mb_strlen($key = (string) $key, '8bit');
<add> $length = mb_strlen($key,... | 1 |
Javascript | Javascript | fix ie8 disabled input throwing on focus | 6203e53d16be80db5661f5bd51947fec0dc083fb | <ide><path>src/browser/ReactInputSelection.js
<ide> var ReactDOMSelection = require('ReactDOMSelection');
<ide>
<ide> var containsNode = require('containsNode');
<add>var focusNode = require('focusNode');
<ide> var getActiveElement = require('getActiveElement');
<ide>
<ide> function isInDocument(node) {
<ide> var Rea... | 2 |
Javascript | Javascript | fix variable typo. (i think.) | a9c64beaf3b745de8cb4f3bb961b95e6e4cabb25 | <ide><path>examples/js/effects/VREffect.js
<ide> THREE.VREffect = function ( renderer, onError ) {
<ide>
<ide> this.setSize = function ( width, height ) {
<ide>
<del> renderSize = { width: width, height: height };
<add> rendererSize = { width: width, height: height };
<ide>
<ide> if ( isPresenting ) {
<ide> | 1 |
Javascript | Javascript | fix small typo | b45c91d3e760791f0307ddd74a76de4e7691f49f | <ide><path>Libraries/Lists/FlatList.js
<ide> type DefaultProps = typeof defaultProps;
<ide> * - By default, the list looks for a `key` prop on each item and uses that for the React key.
<ide> * Alternatively, you can provide a custom `keyExtractor` prop.
<ide> *
<del> * Also inherets [ScrollView Props](docs/scroll... | 1 |
Text | Text | update export docs for selectlistview | 0730c7902dd697637d4ec4a4e60ee5a5f54fa020 | <ide><path>docs/README.md
<ide> The classes available from `require 'atom'` are:
<ide> * [Point][Point]
<ide> * [Range][Range]
<ide> * [ScrollView][ScrollView]
<del> * [SelectList][SelectList]
<add> * [SelectListView][SelectListView]
<ide> * [View][View]
<ide> * [WorkspaceView][WorkspaceView]
<ide>
<ide> A... | 1 |
Python | Python | use tensorflow ops for keras learningrateschedule | 9d38e894ab525ffde639cd09e13a2a96550af753 | <ide><path>official/resnet/keras/keras_common.py
<ide> def on_batch_begin(self, batch, logs=None):
<ide> 'change learning rate to %s.', self.epochs, batch, lr)
<ide>
<ide>
<add>class PiecewiseConstantDecayWithWarmup(
<add> tf.keras.optimizers.schedules.LearningRateSchedule):
<add> """Piecewise constant ... | 2 |
Javascript | Javascript | remove vestiges of previous _transform api | ea4f0b4a6b4c1785b1d112504a79ebf7d7f46e49 | <ide><path>lib/_stream_transform.js
<ide> Transform.prototype.push = function(chunk) {
<ide> // Call `cb(err)` when you are done with this chunk. If you pass
<ide> // an error, then that'll put the hurt on the whole operation. If you
<ide> // never call cb(), then you'll never get another chunk.
<del>Transform.protot... | 1 |
Text | Text | add the preferred name for @himself65 | 721fd012c04caeac304ae8094412e96df910645c | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> * [HarshithaKP](https://github.com/HarshithaKP) -
<ide> **Harshitha K P** <<harshitha014@gmail.com>> (she/her)
<ide> * [himself65](https://github.com/himself65) -
<del> **Zeyu Yang** <<himself65@outlook.com>> (he/him)
<... | 1 |
Javascript | Javascript | use compositetype in warning invariant for refs | 06ea71d3fdd614e12c659c2f08f371c6b01fe880 | <ide><path>src/renderers/shared/stack/reconciler/ReactCompositeComponent.js
<ide> var ReactCompositeComponent = {
<ide> if (__DEV__) {
<ide> var componentName = component && component.getName ?
<ide> component.getName() : 'a component';
<del> warning(publicComponentInstance != null,
<add> wa... | 2 |
Go | Go | use a map[string]struct{} for validopts | 342f7a357ad00164c5f8130127ab54a1d823b1de | <ide><path>volume/local/local.go
<ide> func validateOpts(opts map[string]string) error {
<ide> return nil
<ide> }
<ide> for opt := range opts {
<del> if !validOpts[opt] {
<add> if _, ok := validOpts[opt]; !ok {
<ide> return validationError(fmt.Sprintf("invalid option key: %q", opt))
<ide> }
<ide> }
<ide><pa... | 3 |
Text | Text | improve translation of spanish | 5c59201546e5eec4e922d63d09dcfc75351d36f6 | <ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/cash-register.spanish.md
<ide> localeTitle: Caja registradora
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Diseñe una función de cajón de la caja registradora... | 1 |
Text | Text | fix external links with 404 status | ee46c7302335ff495fb8acb632aa0b0a1a16e986 | <ide><path>doc/api/crypto.md
<ide> the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL.
<ide> [Crypto Constants]: #crypto_crypto_constants_1
<ide> [HTML5's `keygen` element]: http://www.w3.org/TR/html5/forms.html#the-keygen-element
<ide> [NIST SP 800-131A]: http://nvlpubs.nist.gov/nistpubs/Sp... | 2 |
Javascript | Javascript | remove disabled test | 999d25b5ecfd947f7a4262c75de94ec6bc633c06 | <ide><path>test/disabled/GH-670.js
<del>'use strict';
<del>var common = require('../common');
<del>var assert = require('assert');
<del>var https = require('https');
<del>var tls = require('tls');
<del>
<del>var options = {
<del> host: 'github.com',
<del> path: '/kriskowal/tigerblood/',
<del> port: 443
<del>};
<del>... | 1 |
Text | Text | update asset fingerprinting information | 8e311940ef8974606a57467c24f08072946bc03d | <ide><path>guides/source/asset_pipeline.md
<ide> requests can mean faster loading for your application.
<ide> Sprockets concatenates all JavaScript files into one master `.js` file and all
<ide> CSS files into one master `.css` file. As you'll learn later in this guide, you
<ide> can customize this strategy to group fi... | 1 |
PHP | PHP | allow modifiers in createfromformat() | 9c6653e43d374ca301e68c77a760cb9f62377b59 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
<ide> namespace Illuminate\Database\Eloquent\Concerns;
<ide>
<ide> use Carbon\CarbonInterface;
<add>use Carbon\Exceptions\InvalidFormatException;
<ide> use DateTimeInterface;
<ide> use Illuminate\Contracts\Database\Eloquent\Castable;
<ide> use Illu... | 1 |
Python | Python | fix issue with undefined vocab size | 40074aec8ecf6a81cf91dc7fa2f837928a40840f | <ide><path>keras/layers/preprocessing/index_lookup.py
<ide> def finalize_state(self):
<ide> # compute a new vocabulary.
<ide> if self.output_mode == TF_IDF:
<ide> self.idf_weights_const = self.idf_weights.value()
<add> self._record_vocabulary_size()
<ide> r... | 1 |
Javascript | Javascript | fix the closure in ajax.js too | ab74d8e6a0810717419abb696154d034ad145f2b | <ide><path>src/ajax.js
<ide> jQuery.support.ajax = !!testXHR;
<ide> // Does this browser support crossDomain XHR requests
<ide> jQuery.support.cors = testXHR && "withCredentials" in testXHR;
<ide>
<del>})(jQuery);
<ide>\ No newline at end of file
<add>})( jQuery ); | 1 |
Java | Java | improve performance of observable.flatmapiterable | ab21265ef0cb25f7149c699fc147597c13403221 | <ide><path>src/main/java/io/reactivex/Observable.java
<ide> public final <R> Observable<R> concatMapEagerDelayError(Function<? super T, ? ex
<ide> @SchedulerSupport(SchedulerSupport.NONE)
<ide> public final <U> Observable<U> concatMapIterable(final Function<? super T, ? extends Iterable<? extends U>> mapper) {
... | 8 |
Ruby | Ruby | convert search test to spec | 82e6070ca045001eab7aec0ba9b85dbca48615f8 | <ide><path>Library/Homebrew/cask/spec/cask/cli/search_spec.rb
<add>require "spec_helper"
<add>
<add>describe Hbc::CLI::Search do
<add> it "lists the available Casks that match the search term" do
<add> expect {
<add> Hbc::CLI::Search.run("photoshop")
<add> }.to output(<<-EOS.undent).to_stdout
<add> ==>... | 2 |
PHP | PHP | add a comment | 78148251944be9a3da065954baa52691f5263ed0 | <ide><path>src/Illuminate/Foundation/Console/Kernel.php
<ide> public function call($command, array $parameters = array())
<ide> {
<ide> $this->bootstrap();
<ide>
<add> // If we are calling a arbitary command from within the application, we will load
<add> // all of the available deferred providers which will make... | 1 |
Go | Go | apply the new walkhistory prototype to merge | f246cc9cdd9091baa5f956f7c8119a49e8379f91 | <ide><path>commands.go
<ide> func (srv *Server) CmdHistory(stdin io.ReadCloser, stdout io.Writer, args ...str
<ide> return err
<ide> }
<ide> var child *Image
<del> return image.WalkHistory(func(img *Image) {
<add> return image.WalkHistory(func(img *Image) error {
<ide> if child == nil {
<ide> fmt.Fprintf(stdou... | 1 |
Go | Go | move t from arg to env | 6ba456ff87cfe2687db7df896e2983636ca9fe1e | <ide><path>api.go
<ide> func postContainersStop(srv *Server, version float64, w http.ResponseWriter, r *
<ide> return fmt.Errorf("Missing parameter")
<ide> }
<ide> job := srv.Eng.Job("stop", vars["name"])
<del> if t := r.Form.Get("t"); t != "" {
<del> job.Args = append(job.Args, t)
<del> }
<add> job.Setenv("t", r.... | 3 |
Javascript | Javascript | classify stl file prefix using matchdataviewat | 303a954121734963c1376b6dbff79bf523fb6276 | <ide><path>examples/js/loaders/STLLoader.js
<ide> THREE.STLLoader.prototype = {
<ide>
<ide> for ( var off = 0; off < 5; off ++ ) {
<ide>
<del> // Check if solid[ i ] matches the i-th byte at the current offset
<add> // If "solid" text is matched to the current offset, declare it to be an ASCII STL.
<ide>
<d... | 1 |
Ruby | Ruby | fix typo in serialized_attribute_test. [ci skip] | c3b46d63b96729fb6b77f10de453171d7af39295 | <ide><path>activerecord/test/cases/serialized_attribute_test.rb
<ide> def test_regression_serialized_default_on_text_column_with_null_false
<ide> assert_equal [], light.long_state
<ide> end
<ide>
<del> def test_serialized_columh_should_not_be_wrapped_twice
<add> def test_serialized_column_should_not_be_wrapped... | 1 |
Javascript | Javascript | add dns.onlookupall() to increase coverage | a58f37720d389fe921b35daf45afb1c4e2c02274 | <ide><path>test/internet/test-dns-lookup.js
<ide> 'use strict';
<ide>
<ide> require('../common');
<del>const dnsPromises = require('dns').promises;
<add>const common = require('../common');
<add>const dns = require('dns');
<add>const dnsPromises = dns.promises;
<ide> const { addresses } = require('../common/internet')... | 1 |
Javascript | Javascript | fix process.nexttick() error case regression | 362b5a6c401d08eafad701f4b6023e357a82f910 | <ide><path>src/node.js
<ide> for (var i = 0; i < l; i++) q[i]();
<ide> }
<ide> catch (e) {
<add> if (i + 1 < l) {
<add> nextTickQueue = q.slice(i + 1).concat(nextTickQueue);
<add> }
<ide> if (nextTickQueue.length) {
<ide> process._needTickCallback();
<ide> ... | 2 |
Python | Python | fix serialization of optional elements | 924c58bde38c0b97f35e746b3d1367aa7f6c907b | <ide><path>spacy/util.py
<ide> def to_bytes(getters, exclude):
<ide> def from_bytes(bytes_data, setters, exclude):
<ide> msg = msgpack.loads(bytes_data, encoding='utf8')
<ide> for key, setter in setters.items():
<del> if key not in exclude:
<add> if key not in exclude and key in msg:
<ide> ... | 1 |
Javascript | Javascript | use strict equalities in src/core/jpg.js | 2796d1bf10b6a012835ebc131c28c860b5beb3d3 | <ide><path>src/core/jpg.js
<ide> var JpegImage = (function jpegImage() {
<ide> return (bitsData >> bitsCount) & 1;
<ide> }
<ide> bitsData = data[offset++];
<del> if (bitsData == 0xFF) {
<add> if (bitsData === 0xFF) {
<ide> var nextByte = data[offset++];
<ide> if (nextByte) ... | 1 |
Python | Python | disallow verbose=1 with parameterserverstrategy | 1dd712893462e9d656531f769a39556c7d0a1c02 | <ide><path>keras/distribute/dataset_creator_model_fit_ps_only_test.py
<ide> def testModelFitTensorBoardEpochLevel(self, strategy, use_dataset_creator):
<ide> files = tf.compat.v1.gfile.ListDirectory(log_dir)
<ide> self.assertGreaterEqual(len(files), 1)
<ide>
<add> def testModelFitVerbose1(self, strategy, use_... | 3 |
Python | Python | fix the tests for python 3.7 | 5c7074f90ee7093f231816cb356cb787e0f22802 | <ide><path>numpy/_pytesttester.py
<ide> def __call__(self, label='fast', verbose=1, extra_argv=None,
<ide> # so fetch module for suppression here.
<ide> from numpy.distutils import cpuinfo
<ide>
<del> # Ignore the warning from importing the array_api submodule. This
<del> ... | 1 |
PHP | PHP | fix more risky tests | 63b8d021864ae0eed4106efba0a0ea76958c7627 | <ide><path>tests/TestCase/TestSuite/TestCaseTest.php
<ide> class TestCaseTest extends TestCase {
<ide> public function testAssertHtmlBasic() {
<ide> $test = new AssertHtmlTestCase('testAssertHtmlQuotes');
<ide> $result = $test->run();
<add> ob_start();
<ide> $this->assertEquals(0, $result->errorCount());
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.