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 | expand client testing for espanol | 92dfb3065cfc62febb49e5a269c01b8e961ae712 | <ide><path>client/src/components/Header/Header.test.js
<ide> const hasProfileAndSettingsNavItems = (component, username) => {
<ide>
<ide> const hasForumNavItem = component => {
<ide> const { children, to } = navigationLinks(component, 'forum');
<add> const localizedForums = {
<add> chinese: 'https://chinese.free... | 1 |
PHP | PHP | add phpdoc hints for request class | 66eb5d01609f1021baed99a3f5d9d16bec6dcfcb | <ide><path>src/Illuminate/Http/Request.php
<ide> use Symfony\Component\HttpFoundation\ParameterBag;
<ide> use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
<ide>
<add>/**
<add> * @method array validate(array $rules, ...$params)
<add> * @method array validateWithBag(array $rules, ...$params)
<add> * @meth... | 1 |
Java | Java | avoid unnecessary generics on emptymap/set/list | fb7ae010c867ae48ab51f48cce97fe2c07f44115 | <ide><path>spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java
<ide> public CacheOperationContexts(Collection<? extends CacheOperation> operations, M
<ide>
<ide> public Collection<CacheOperationContext> get(Class<? extends CacheOperation> operationClass) {
<ide> Collection<C... | 35 |
PHP | PHP | remove locale routing stuff | 5f78e404c665c5f70d845b7514d87bc751d44fd5 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function __construct(Request $request = null)
<ide> */
<ide> protected function createRequest(Request $request = null)
<ide> {
<del> $request = $request ?: Request::createFromGlobals();
<del>
<del> $this->registerLocaleHandler($request);
<del>
<del... | 4 |
PHP | PHP | update typehints for event/ | 744065a75a635bdebe61199ae5a884856a31d27e | <ide><path>src/Event/EventDispatcherInterface.php
<ide> interface EventDispatcherInterface
<ide> *
<ide> * @return \Cake\Event\EventInterface
<ide> */
<del> public function dispatchEvent(string $name, $data = null, $subject = null): EventInterface;
<add> public function dispatchEvent(string $name, ... | 4 |
Go | Go | fix issue with multiple volume refs with same name | 0fe31306d1c1c93c4ef33654f7a37932296cf8a6 | <ide><path>volume/store/store.go
<ide> func (s *VolumeStore) Dereference(v volume.Volume, ref string) {
<ide>
<ide> s.globalLock.Lock()
<ide> defer s.globalLock.Unlock()
<del> refs, exists := s.refs[v.Name()]
<del> if !exists {
<del> return
<del> }
<add> var refs []string
<ide>
<del> for i, r := range refs {
<del>... | 2 |
Text | Text | add railties info to 5.1 release notes | ee9f97de94fef19550da3006f36e5090d138cdbc | <ide><path>guides/source/5_1_release_notes.md
<ide> Please refer to the [Changelog][railties] for detailed changes.
<ide>
<ide> ### Removals
<ide>
<add>* Remove deprecated `config.static_cache_control`.
<add> ([commit](https://github.com/rails/rails/commit/c861decd44198f8d7d774ee6a74194d1ac1a5a13)
<add>
<add>* ... | 1 |
Python | Python | crerate ti context with data interval compat layer | 1159133040b3513bcc88921823fa001e9773276d | <ide><path>airflow/models/taskinstance.py
<ide> def get_template_context(self, session: Session = None, ignore_param_exceptions:
<ide> integrate_macros_plugins()
<ide>
<ide> dag_run = self.get_dagrun(session)
<add> data_interval = dag.get_run_data_interval(dag_run)
<ide>
<ide> params = ... | 1 |
Text | Text | update ruby version to 2.3.1p112 | 913542f79432ba85aed25ebe1699e585554ba150 | <ide><path>guides/source/getting_started.md
<ide> current version of Ruby installed:
<ide>
<ide> ```bash
<ide> $ ruby -v
<del>ruby 2.3.0p0
<add>ruby 2.3.1p112
<ide> ```
<ide>
<ide> TIP: A number of tools exist to help you quickly install Ruby and Ruby | 1 |
Javascript | Javascript | use regex to hide hikes | c736a5c00ff6a4db3cb98b290cd03b68f020b69a | <ide><path>seed/index.js
<ide> destroy()
<ide> challenge.order = order;
<ide> challenge.suborder = index + 1;
<ide> challenge.block = block;
<del> challenge.superBlock = superBlock;
<ide> challenge.isBeta = challenge.isBeta || isBeta;
<ide> challenge.time = challengeSpec.t... | 2 |
Javascript | Javascript | fix event replaying | 9e7f334c7159b10900a8d197c3df226d32efdc96 | <ide><path>packages/react-dom/src/events/DOMModernPluginEventSystem.js
<ide> export function dispatchEventForPluginEventSystem(
<ide> ) {
<ide> return;
<ide> }
<del> // The below logic attempts to work out if we need to change
<del> // the target fiber to a different ancestor. We had similar logic
<... | 2 |
Python | Python | add npz support and make zipping optional | 0b393d4049afd187ed7d24ea70177a72cf4a3ce2 | <ide><path>keras/saving/experimental/saving_lib.py
<ide> import warnings
<ide> import zipfile
<ide>
<add>import numpy as np
<ide> import tensorflow.compat.v2 as tf
<ide>
<ide> import keras
<ide>
<ide> # isort: off
<ide>
<del>_SELF_DIRNAME = "self"
<ide> _CONFIG_FILENAME = "config.json"
<ide> _METADATA_FILENAME = "m... | 1 |
Python | Python | register sentencesegmenter in language.factories | 38109a0e4a65f815eacc1a84ee5a3faad391e483 | <ide><path>spacy/language.py
<ide> from .vocab import Vocab
<ide> from .lemmatizer import Lemmatizer
<ide> from .pipeline import DependencyParser, Tensorizer, Tagger, EntityRecognizer
<del>from .pipeline import SimilarityHook, TextCategorizer
<add>from .pipeline import SimilarityHook, TextCategorizer, SentenceSegmenter... | 1 |
Text | Text | correct information about milestones | 2daaf3ea19149f471850d8c3aa3d0989f0a0d23b | <ide><path>TRIAGING.md
<ide> This process based on the idea of minimizing user pain
<ide> 1. Label `origin: google` for issues from Google
<ide>
<ide> 1. Assign a milestone:
<del> * Current 1.x.y milestone - regressions and urgent bugs only
<del> * Backlog - fixes; changes that should go into a patch release
<de... | 1 |
Go | Go | handle kernel and os info error in /info api | b0fb0f19934287f428d14d1267183fe9194a4fdf | <ide><path>daemon/info.go
<ide> import (
<ide> // SystemInfo returns information about the host server the daemon is running on.
<ide> func (daemon *Daemon) SystemInfo() (*types.Info, error) {
<ide> kernelVersion := "<unknown>"
<del> if kv, err := kernel.GetKernelVersion(); err == nil {
<add> if kv, err := kernel.GetK... | 1 |
Mixed | Javascript | add example for polyfilling domparser in node | 20f2b0b3b2decc6544a29ddd90c19e2fdbe8b009 | <ide><path>examples/with-react-intl/README.md
<ide> $ npm start
<ide>
<ide> You can then switch your browser's language preferences to French and refresh the page to see the UI update accordingly.
<ide>
<add>### FormattedHTMLMessage support (react-intl pre-v4)
<add>
<add>Out of the box, this example does not support ... | 2 |
Python | Python | drop defunct tests | c8764de7881f419c9269913ec3654fc1d904ab2e | <ide><path>tests/test_files.py
<del># from __future__ import unicode_literals
<del># from django.test import TestCase
<del># from django.utils import six
<del># from rest_framework import serializers
<del># from rest_framework.compat import BytesIO
<del># import datetime
<del>
<del>
<del># class UploadedFile(object):
<... | 13 |
PHP | PHP | remove extra spaces | 7ccba640d4fbb1bc9e3d7335c3e8405fc435b0d5 | <ide><path>src/Illuminate/Pagination/Paginator.php
<ide> class Paginator implements ArrayAccess, Countable, IteratorAggregate {
<ide> */
<ide> public function __construct(Environment $env, array $items, $total, $perPage)
<ide> {
<del> $this->env = $env;
<del> $this->total = $total;
<del> $this->items = $... | 1 |
PHP | PHP | add multiple_of custom replacer | 11d747064030963c906412012ac8f6581711022e | <ide><path>src/Illuminate/Validation/Concerns/ReplacesAttributes.php
<ide> protected function replaceMax($message, $attribute, $rule, $parameters)
<ide> return str_replace(':max', $parameters[0], $message);
<ide> }
<ide>
<add> /**
<add> * Replace all place-holders for the multiple_of rule.
<add> ... | 2 |
Ruby | Ruby | reverse tag/digest for new bottles | fc1c142ebd0e7d0c1ab308c11c52ab33ce204054 | <ide><path>Library/Homebrew/software_spec.rb
<ide> def tag?(tag)
<ide> # a Hash, which indicates the platform the checksum applies on.
<ide> # Example bottle block syntax:
<ide> # bottle do
<del> # sha256 "69489ae397e4645..." => :big_sur, :cellar => :any_skip_relocation
<del> # sha256 "449de5ea35d0e94..." => ... | 3 |
Text | Text | add a pointer to a colab for the embeddings | 60d6808b4cf1c728ad8ec10d7a2793c62d94c120 | <ide><path>research/audioset/README.md
<ide> the postprocessor can be run after inference.
<ide> If you don't need to use the released embeddings or YouTube-8M, then you could
<ide> skip postprocessing and use raw embeddings.
<ide>
<add>A [Colab](https://colab.research.google.com/)
<add>showing how to download the mod... | 1 |
Javascript | Javascript | export the hmr plugin directly | cf1569c556d28779edbba92edb658a881a68516c | <ide><path>babel-preset/configs/hmr.js
<ide> module.exports = function(options, filename) {
<ide> return {
<ide> plugins: [
<ide> [
<del> require('metro-babel7-plugin-react-transform').default,
<add> require('metro-babel7-plugin-react-transform'),
<ide> {
<ide> transforms: [{... | 1 |
PHP | PHP | make migration opt-in with shortcut | cfba00f2dee92bbba9343004d3d1e8aa0a3e269e | <ide><path>src/Illuminate/Foundation/Console/ModelMakeCommand.php
<ide> public function fire()
<ide> {
<ide> parent::fire();
<ide>
<del> if ( ! $this->option('no-migration'))
<add> if ($this->option('migration'))
<ide> {
<ide> $table = str_plural(snake_case(class_basename($this->argument('name'))));
<ide>
<... | 1 |
Javascript | Javascript | remove remaining obsolete jquery.cache references | d96111e18b42ae1bc7def72a8a0d156ea39e4d0e | <ide><path>test/data/testrunner.js
<ide>
<ide> "use strict";
<ide>
<del>// Store the old counts so that we only assert on tests that have actually leaked,
<add>// Store the old count so that we only assert on tests that have actually leaked,
<ide> // instead of asserting every time a test has leaked sometime in the p... | 2 |
Ruby | Ruby | move option comparison into buildoptions | f3d3bc436829b5e9212e052cec50cded80cea2df | <ide><path>Library/Homebrew/bottles.rb
<ide> def install_bottle? f
<ide> and f.downloader.local_bottle_path
<ide> not ARGV.build_from_source? \
<ide> and MacOS.bottles_supported? \
<del> and ARGV.used_options(f).empty? \
<add> and f.build.used_options.empty? \
<ide> and bottle_current?(f)
<ide> end
... | 4 |
PHP | PHP | fix parameter typehints in testapp | acc6cef75357191b17307407fae9ab593a9b72db | <ide><path>tests/TestCase/Auth/FormAuthenticateTest.php
<ide> public function testAuthenticateRehash(): void
<ide> /**
<ide> * Tests that password hasher function is called exactly once in all cases.
<ide> *
<del> * @param string $username
<del> * @param string|null $password
<ide> * @return ... | 49 |
Javascript | Javascript | extract applicationinstance to separate file | 9c2b8d4166d67774d5565834cd2622dd6d2b0b95 | <ide><path>packages/ember-application/lib/system/application-instance.js
<add>/**
<add>@module ember
<add>@submodule ember-application
<add>*/
<add>
<add>import EmberObject from "ember-runtime/system/object";
<add>import run from "ember-metal/run_loop";
<add>
<add>export default EmberObject.extend({
<add> container: n... | 2 |
Python | Python | make test less flakey | 711278b66785498f155785d430bce0295ba364dc | <ide><path>spacy/tests/parser/test_preset_sbd.py
<ide> def test_sents_1_2(parser):
<ide> doc[1].sent_start = True
<ide> doc[2].sent_start = True
<ide> doc = parser(doc)
<del> assert len(list(doc.sents)) == 3
<add> assert len(list(doc.sents)) >= 3
<ide>
<ide>
<ide> def test_sents_1_3(parser): | 1 |
Javascript | Javascript | create utilities for module generators | c3001938537b7f5590d71e536653ebfd083ffa52 | <ide><path>packages/react-native-codegen/src/generators/modules/Utils.js
<ide>
<ide> 'use strict';
<ide>
<del>import type {ObjectTypeAliasTypeShape} from '../../CodegenSchema';
<add>import type {
<add> SchemaType,
<add> NativeModuleAliasMap,
<add> Required,
<add> NativeModuleObjectTypeAnnotation,
<add> NativeMod... | 1 |
Ruby | Ruby | remove dependency on pathname in new routes | 5ced4023931e2749aea1c64a4491bbd9efa5a524 | <ide><path>actionpack/lib/action_controller/routing.rb
<ide> require 'cgi'
<del>require 'pathname'
<ide>
<ide> class Object
<ide> def to_param
<ide> def possible_controllers
<ide> @possible_controllers = []
<ide>
<ide> paths = $LOAD_PATH.select { |path| File.directory? path }
<del> ... | 1 |
Javascript | Javascript | remove unused https imports | 71776f90572fcc3c3c79089189bae3661a679b81 | <ide><path>test/parallel/test-http-url.parse-post.js
<ide> var common = require('../common');
<ide> var assert = require('assert');
<ide> var http = require('http');
<del>var https = require('https');
<ide> var url = require('url');
<ide>
<ide> var testURL = url.parse('http://localhost:' + common.PORT + '/asdf?qwer=zx... | 2 |
Ruby | Ruby | do a hash lookup for collision detection | 3e9158bb95de1770c5a529a903fe15b19a473439 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def name_for_action(as, action) #:nodoc:
<ide> # and return nil in case it isn't. Otherwise, we pass the invalid name
<ide> # forward so the underlying router engine treats it and raises an exception.
<ide> if as... | 2 |
Text | Text | fix typo in repl.md | a413df40b67e1005b6c0c6d9e280bd7dcb53ee11 | <ide><path>doc/api/repl.md
<ide> changes:
<ide> * `output` {Writable} The Writable stream to which REPL output will be
<ide> written. Defaults to `process.stdout`.
<ide> * `terminal` {boolean} If `true`, specifies that the `output` should be
<del> treated as a a TTY terminal, and have ANSI/VT100 escape codes... | 1 |
Java | Java | make jscconfig non-nullable | e54ff3d03f488d9d7e2b236c3f9d5914987d2b67 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/JSCConfig.java
<ide> * Interface for the configuration object that is passed to JSC.
<ide> */
<ide> public interface JSCConfig {
<del> public WritableNativeMap getConfigMap();
<add> JSCConfig EMPTY = new JSCConfig() {
<add> @Override
<add> public Writab... | 3 |
Ruby | Ruby | remove public `prevent_writes` writer | e4213e7c682f2b4bf19383ea1af1681c81c96ac5 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> class AbstractAdapter
<ide> attr_writer :visitor
<ide> deprecate :visitor=
<ide>
<del> attr_accessor :pool, :prevent_writes
<del> attr_reader :schema_cache, :visitor, :owner, :logger, :prepared_statements, :lo... | 1 |
Javascript | Javascript | move externals into chunk with entry | 1b459d91f56215a3c617373d456ad53f9a63fea3 | <ide><path>lib/Chunk.js
<ide> Chunk.prototype.integratedSize = function(other, options) {
<ide> return modulesSize * (this.initial || other.initial ? ENTRY_CHUNK_MULTIPLICATOR : 1) + CHUNK_OVERHEAD;
<ide> };
<ide>
<add>Chunk.prototype.hasEntryModule = function() {
<add> return this.modules.some(function(module) {
<ad... | 10 |
Ruby | Ruby | use jenkins pr plugin provided url | 358fd0ca19ea65e82577a1ff58f51793a9e9b56f | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def single_commit? start_revision, end_revision
<ide>
<ide> # Use Jenkins environment variables if present.
<ide> if no_args? and ENV['GIT_PREVIOUS_COMMIT'] and ENV['GIT_COMMIT'] \
<del> and not ENV['ghprbPullId']
<add> and not ENV['ghprbPul... | 1 |
Python | Python | fix issue #879 and add a test for it | 280d8659601a5e3b8dab77231d9f9fc16f5cd1ce | <ide><path>flask/app.py
<ide> def try_trigger_before_first_request_functions(self):
<ide> with self._before_request_lock:
<ide> if self._got_first_request:
<ide> return
<del> self._got_first_request = True
<ide> for func in self.before_first_request_funcs:
<ide... | 2 |
PHP | PHP | fix variable typo | f2d4bef8c0bf301bcad398f1e15ce8d0dfe9e48a | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function getGlobalScope($scope)
<ide> {
<ide> return array_first(static::$globalScopes[get_called_class()], function($key, $value) use ($scope)
<ide> {
<del> return $scope instanceof $registered;
<add> return $scope instanceof $value;
<i... | 1 |
Javascript | Javascript | remove unused code | 336e31740cb5697d67653fe00f1c4b214f49d398 | <ide><path>test/math/random-test.js
<ide> var vows = require("vows"),
<ide>
<ide> var suite = vows.describe("d3.random");
<ide>
<del>var STDDEV = 5;
<del>var MEAN = 38;
<del>
<del>
<ide> /**
<ide> * Testing a random number generator is a bit more complicated than testing
<del> * deterministic code, so we use a diffe... | 1 |
Javascript | Javascript | serialize userdata in gltfexporter | 9614c891972632ec8bbd33667e8024a144fe64d7 | <ide><path>examples/js/exporters/GLTFExporter.js
<ide> THREE.GLTFExporter.prototype = {
<ide>
<ide> }
<ide>
<add> if ( scene.userData && Object.keys( scene.userData ).length > 0 ) {
<add>
<add> gltfScene.extras = serializeUserData( scene );
<add>
<add> }
<add>
<ide> outputJSON.scenes.push( gltfScene );
<... | 1 |
Ruby | Ruby | convert zap test to spec | c431758f2dff931b69b16ab412dabacbe77380c0 | <add><path>Library/Homebrew/cask/spec/cask/artifact/zap_spec.rb
<del><path>Library/Homebrew/cask/test/cask/artifact/zap_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> # TODO: test that zap removes an alternate version of the same Cask
<ide> describe Hbc::Artifact::Zap do
<ide> Hbc::Artif... | 2 |
Python | Python | correct a bug with docker module and server mode | aa9845d985f7b1e3a21ad1a7b441c7712f6bca7b | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> self.reset()
<ide>
<ide> # The Docker-py lib is mandatory
<del> if not docker_tag or self.args.disable_docker:
<add> if not docker_tag or (self.args is not None and self.args.disable_docker):
<ide> retu... | 1 |
Javascript | Javascript | fix parsing of ssh urls | a1e54d6fb72ef0e0d3aab9ed2bf88d60a4a419d9 | <ide><path>lib/url.js
<ide> var protocolPattern = /^([a-z0-9.+-]+:)/i,
<ide> nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
<ide> hostEndingChars = ['/', '?', '#'],
<ide> hostnameMaxLen = 255,
<del> hostnamePatternString = '[^' + nonHostChars.join('') + ']{0,63}',
<del> hostnamePartPatte... | 2 |
Python | Python | fix docstrings for broadcastable inputs in ufunc | 4e532b858e5ccdcbc32051df18e9b8467d755bc0 | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def get(name):
<ide> For other keyword-only arguments, see the
<ide> :ref:`ufunc docs <ufuncs.kwargs>`.
<ide> """).strip(),
<add> 'BROADCASTABLE_2': ("If ``x1.shape != x2.shape``, they must be "
<add> "... | 1 |
Javascript | Javascript | update radial linear tests | 73bc52f196062f1998b7b5461f76eeb9a0fb4432 | <ide><path>gulpfile.js
<ide> var testFiles = [
<ide> '!./test/controller.line.tests.js',
<ide> '!./test/core.layoutService.tests.js',
<ide> '!./test/defaultConfig.tests.js',
<del> '!./test/scale.radialLinear.tests.js',
<del> //'!./test/scale.time.tests.js'
<ide> ];
<ide>
<ide> gulp.task('build', buildTask);
<i... | 2 |
Python | Python | handle more exception types inside one clause | fb35eaf746cbf15a4642bbd04c8cad3f51b571af | <ide><path>libcloud/base.py
<ide> def deploy_node(self, **kwargs):
<ide> try:
<ide> client.connect()
<ide> break
<del> except IOError, e:
<del> laste = e
<del> except socket.error, e:
<add> except (IOError, socket.gaierror, sock... | 1 |
Javascript | Javascript | fix uiexplorer search | c780a717e5e146e1b0c16893d70c3bbb87ef5907 | <ide><path>Libraries/NavigationExperimental/Reducer/NavigationScenesReducer.js
<ide> 'use strict';
<ide>
<ide> const invariant = require('fbjs/lib/invariant');
<add>const shallowEqual = require('fbjs/lib/shallowEqual');
<ide>
<ide> import type {
<ide> NavigationRoute,
<ide> function compareScenes(
<ide> );
<ide> ... | 2 |
Text | Text | update doc docker_remote_api_v1.20.md | 47e3ea7dd1a08abc86d1ef0e32b71248a0eac95e | <ide><path>docs/reference/api/docker_remote_api_v1.20.md
<ide> Status Codes:
<ide>
<ide> ### Inspect a container
<ide>
<del>`GET /containers/(id)/json`
<add>`GET /containers/(id or name)/json`
<ide>
<ide> Return low-level information on the container `id`
<ide>
<ide> Status Codes:
<ide>
<ide> ### List processes ru... | 1 |
Mixed | Ruby | inspect time attributes with subsec | a3f4202cd8b6675f0727593a45bcb970373557da | <ide><path>activerecord/CHANGELOG.md
<add>* Inspect time attributes with subsec.
<add>
<add> ```ruby
<add> p Knot.create
<add> => #<Knot id: 1, created_at: "2016-05-05 01:29:47.116928000">
<add> ```
<add>
<add> *akinomaeni*
<add>
<ide> * Deprecate passing a column to `type_cast`.
<ide>
<ide> *Ry... | 4 |
PHP | PHP | add final test for fifo | b72bfa502b0993dbe2ca74ab656ba75b3406b96a | <ide><path>tests/Queue/QueueSqsQueueTest.php
<ide> public function testGetQueueProperlyResolvesUrlWithoutPrefix()
<ide> $this->assertEquals($queueUrl, $queue->getQueue($queueUrl));
<ide> }
<ide>
<add> public function testGetQueueProperlyResolvesFifoUrlWithoutPrefix()
<add> {
<add> $this->queue... | 1 |
Text | Text | register django urls | 3bf611787a6ca8fedcf69dde3776a308da1c7f30 | <ide><path>docs/tutorial/quickstart.md
<ide> Okay, now let's wire up the API URLs. On to `tutorial/urls.py`...
<ide> path('', include(router.urls)),
<ide> path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
<ide> ]
<add>
<add> urlpatterns += router.urls
<ide>
<ide>... | 1 |
Ruby | Ruby | remove view_assigns from av | 977c60eeeaaeec694d71d2b3baadd372f19f0b2f | <ide><path>actionview/lib/action_view/rendering.rb
<ide> def default_protected_instance_vars
<ide> super + [:@_view_context_class, :@_view_renderer, :@_lookup_context]
<ide> end
<ide>
<del> # This method should return a hash with assigns.
<del> # You can overwrite this configuration per controller.
<de... | 1 |
Mixed | Go | add support for cpuset.mems | 8077b2fb805c78cee642d8350df88227c6414960 | <ide><path>daemon/container.go
<ide> func populateCommand(c *Container, env []string) error {
<ide> MemorySwap: c.hostConfig.MemorySwap,
<ide> CpuShares: c.hostConfig.CpuShares,
<ide> CpusetCpus: c.hostConfig.CpusetCpus,
<add> CpusetMems: c.hostConfig.CpusetMems,
<ide> Rlimits: rlimits,
<ide> }
<ide>
<id... | 11 |
Text | Text | add missing word to data fetching docs | 334ce64cd7419e3be53ff1b60f886e40060da8e9 | <ide><path>docs/basic-features/data-fetching.md
<ide> In the [Pages documentation](/docs/basic-features/pages.md), we’ve explained t
<ide> We’ll talk about the three unique Next.js functions you can use to fetch data for pre-rendering:
<ide>
<ide> - [`getStaticProps`](#getstaticprops-static-generation) (Static Generat... | 1 |
Ruby | Ruby | build fix for observing_test.rb | 7f248076a3f0aee773bc4148009a30623efcf173 | <ide><path>activemodel/test/cases/observing_test.rb
<ide> def teardown
<ide>
<ide> test "tracks implicit observable models" do
<ide> instance = FooObserver.new
<del> assert_equal [Foo], old_instance.observed_classes
<add> assert_equal [Foo], instance.observed_classes
<ide> end
<ide>
<ide> test "tracks... | 1 |
Go | Go | fix builder cache bug | 4f3889e4be9fe518e9be73306a8716c3a5f4b1c6 | <ide><path>builder/tarsum.go
<ide> func (c *tarSumContext) Stat(path string) (string, FileInfo, error) {
<ide> sum := path
<ide> // Use the checksum of the followed path(not the possible symlink) because
<ide> // this is the file that is actually copied.
<del> if tsInfo := c.sums.GetFile(rel); tsInfo != nil {
<add> ... | 3 |
Java | Java | use more modern java api for empty collections | 6163f2d32f3f1541a7032f8888bd79395e927140 | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/ContextAnnotationAutowireCandidateResolver.java
<ide> public Object getTarget() {
<ide> if (target == null) {
<ide> Class<?> type = getTargetClass();
<ide> if (Map.class == type) {
<del> return Collections.EMPTY_MAP;
<add>... | 1 |
Text | Text | update documentation for data download script. | 335dd532b7c6c3bfce18680ed4c0e7ffd12a9a9b | <ide><path>official/recommendation/README.md
<ide> In both datasets, the timestamp is represented in seconds since midnight Coordin
<ide> ### Download and preprocess dataset
<ide> To download the dataset, please install Pandas package first. Then issue the following command:
<ide> ```
<del>python data_download.py
<add>... | 1 |
PHP | PHP | add unit test for debugsecurity param | 2c0cebf5833216d84653606073b25acfff3e4a32 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function secure(array $fields = [], array $secureAttributes = [])
<ide> if (empty($this->request['_Token'])) {
<ide> return null;
<ide> }
<del> $debugSecurity = Hash::get($secureAttributes, 'debugSecurity') ?: Configure::read('deb... | 2 |
PHP | PHP | add exceptions for http client as per psr 18 | da53acca8b65ee6de8e7d6315ee77fb50d1d1c59 | <ide><path>src/Http/Client/Adapter/Curl.php
<ide> namespace Cake\Http\Client\Adapter;
<ide>
<ide> use Cake\Http\Client\AdapterInterface;
<add>use Cake\Http\Client\Exception\RequestException;
<add>use Cake\Http\Client\Exception\NetworkException;
<ide> use Cake\Http\Client\Request;
<ide> use Cake\Http\Client\Response;
<... | 6 |
Java | Java | add doondiscard hook for streaming mode | 77a562dfee04cfb4a76a84257cf33fd73ab6b696 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java
<ide> public Mono<Void> write(Publisher<? extends T> inputStream, ResolvableType eleme
<ide> }
<ide>
<ide> if (isStreamingMediaType(contentType)) {
<del> return message.writeAndFlushWith(body.map(buffer -> {
<del> ... | 1 |
Javascript | Javascript | remove jslint comments | 553dd90528f38e281c24829c8bd351a8b94f4a68 | <ide><path>src/browser/__tests__/ReactDOM-test.js
<ide> * @emails react-core
<ide> */
<ide>
<del>/*jslint evil: true */
<del>
<ide> 'use strict';
<ide>
<ide> var React = require('React');
<ide><path>src/browser/__tests__/ReactDOMSVG-test.js
<ide> * @emails react-core
<ide> */
<ide>
<del>/*jslint evil: true */
<d... | 20 |
Python | Python | test no reuse of non-existing buffers in nditer | 1e6d6e6272a1ca83c8e45d33c50268cfa4b32511 | <ide><path>numpy/core/tests/test_nditer.py
<ide> def test_iter_buffered_reduce_reuse():
<ide> a = np.arange(2*3**5)[3**5:3**5+1]
<ide> flags = ['buffered', 'delay_bufalloc', 'multi_index', 'reduce_ok', 'refs_ok']
<ide> op_flags = [('readonly',), ('readwrite','allocate')]
<del> op_axes = [(0,1,2), (0,1,-1... | 1 |
Python | Python | fix an undefined name in a test | c758839239626a2acc1884f58e9e3eb7c9177cb6 | <ide><path>numpy/core/tests/test_numeric.py
<ide> def test_clip_scalar_nan_propagation(self, arr, amin, amax):
<ide> def test_NaT_propagation(self, arr, amin, amax):
<ide> # NOTE: the expected function spec doesn't
<ide> # propagate NaT, but clip() now does
<del> expected = np.minimum(np.maxi... | 1 |
Python | Python | correct a bug on batinfo __init__ function | ca2b55ff6f6f3df616d9170a8f9269730a83548d | <ide><path>glances/glances.py
<ide> def __init__(self):
<ide> if batinfo_lib_tag:
<ide> try:
<ide> self.bat = batinfo.batteries()
<add> self.initok = True
<add> self.__update__()
<ide> except:
<ide> self.initok = False
<ide> ... | 1 |
Ruby | Ruby | improve formula name guessing | 99bb068ca734c7096bf82c72730f1babc7f72431 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def bump_formula_pr
<ide>
<ide> new_url = ARGV.value("url")
<ide> if new_url && !formula
<del> is_devel = ARGV.include?("--devel")
<del> base_url = new_url.split("/")[0..4].join("/")
<add> # Split the new URL on / and find any formulae... | 1 |
Javascript | Javascript | add test of cleartextstream.getcipher() in tls | 8727e5f2becfa538d0f2f5f48172fd0d1c902546 | <ide><path>test/simple/test-tls-getcipher.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software without rest... | 1 |
Python | Python | update albert with tf decorator | 37793259bb0201622b87c1a630cd16806d99897d | <ide><path>src/transformers/models/albert/modeling_tf_albert.py
<ide> TFSequenceClassificationLoss,
<ide> TFTokenClassificationLoss,
<ide> get_initializer,
<del> input_processing,
<ide> keras_serializable,
<add> unpack_inputs,
<ide> )
<ide> from ...tf_utils import shape_list
<ide> from ...utils im... | 1 |
Ruby | Ruby | add tests for named methods | 74c101025616c98bc5774a9a84a7c34311c886d1 | <ide><path>Library/Homebrew/cli/parser.rb
<ide> def check_constraint_violations
<ide> def check_named_args(args)
<ide> exception = if @min_named_args && args.size < @min_named_args
<ide> if @named_args_type.present?
<del> types = @named_args_type.is_a?(Array) ? @named_args_type : [@na... | 2 |
Python | Python | fix slack connections created in the ui | 7b183071a398cbe340853f357bc6c029d551b4d1 | <ide><path>airflow/providers/slack/hooks/slack.py
<ide> def get_connection_form_widgets(cls) -> dict[str, Any]:
<ide> from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
<ide> from flask_babel import lazy_gettext
<ide> from wtforms import IntegerField, StringField
<add> from wtfo... | 4 |
Ruby | Ruby | initialize instance variable to remove warning | b4ac65aa3855b806442934f6287d681e8bb0ef70 | <ide><path>railties/lib/rails/generators/actions.rb
<ide> module Rails
<ide> module Generators
<ide> module Actions
<add> def initialize(*) # :nodoc:
<add> super
<add> @in_group = nil
<add> end
<ide>
<ide> # Adds an entry into Gemfile for the supplied gem.
<ide> # | 1 |
Javascript | Javascript | fix lint errors | 5a6f93d1c34f369dffae4f7aa94ab4b86128308d | <ide><path>spec/grammar-registry-spec.js
<ide> describe('GrammarRegistry', () => {
<ide> describe('text-mate grammars with content regexes', () => {
<ide> it('favors grammars that match the content regex', () => {
<ide> const grammar1 = {
<del> name: "foo",
<del> fileTypes: ["foo"]
<... | 1 |
Ruby | Ruby | prefix keys in active storage service test | e44b3419d44b5fa6e66305fe703f34bb63932593 | <ide><path>activestorage/test/service/shared_service_tests.rb
<ide> module ActiveStorage::Service::SharedServiceTests
<ide> end
<ide>
<ide> test "deleting by prefix" do
<del> @service.upload("a/a/a", StringIO.new(FIXTURE_DATA))
<del> @service.upload("a/a/b", StringIO.new(FIXTURE_DATA))
<del> @se... | 1 |
Javascript | Javascript | ensure consistent use of ember.create | 1647fdd3ccdce1502ab7e9041c77b2136beba32e | <ide><path>packages/ember-application/lib/system/application.js
<ide> var Application = Namespace.extend(DeferredMixin, {
<ide> });
<ide>
<ide> Application.reopenClass({
<del> initializers: Object.create(null),
<add> initializers: create(null),
<ide>
<ide> /**
<ide> Initializer receives an object which has th... | 10 |
Python | Python | add missing cats to gold annot_tuples in scorer | 29e3da64930434c178fba30cfbbc2f0b7a29e3c7 | <ide><path>spacy/scorer.py
<ide> def score(self, doc, gold, verbose=False, punct_labels=("p", "punct")):
<ide> DOCS: https://spacy.io/api/scorer#score
<ide> """
<ide> if len(doc) != len(gold):
<del> gold = GoldParse.from_annot_tuples(doc, zip(*gold.orig_annot))
<add> gold =... | 1 |
PHP | PHP | translate error messsages | 9d8452da5511c72592d14a1d59abda34506d104b | <ide><path>src/Illuminate/Foundation/Exceptions/views/403.blade.php
<ide> @extends('errors::illustrated-layout')
<ide>
<ide> @section('code', '403')
<del>@section('title', 'Unauthorized')
<add>@section('title', __('Unauthorized'))
<ide>
<ide> @section('image')
<ide> <div style="background-image: url('/svg/403.svg');"... | 7 |
Ruby | Ruby | remove some globals from configuration tests | 5fc5665066110031ad4c76c9bc843713470824d0 | <ide><path>railties/test/application/configuration_test.rb
<ide> def index
<ide> end
<ide>
<ide> test "rake_tasks block works at instance level" do
<del> $ran_block = false
<del>
<ide> app_file "config/environments/development.rb", <<-RUBY
<ide> Rails.application.configure do
<add> ... | 1 |
Ruby | Ruby | remove outdated comment | ba2e9e0911a8ee91ce736578c03c8a7e1137d80a | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def invoke_after(arg)
<ide> end
<ide> end
<ide>
<del> # An Array with a compile method.
<ide> class CallbackChain #:nodoc:#
<ide> include Enumerable
<ide> | 1 |
Ruby | Ruby | remove unused branches from options.coerce | 0a2be32d802073ef46596792a46f7139bb862a8c | <ide><path>Library/Homebrew/options.rb
<ide> def inspect
<ide>
<ide> def self.coerce(arg)
<ide> case arg
<del> when self then arg
<del> when Option then new << arg
<ide> when Array
<ide> opts = new
<ide> arg.each do |a|
<ide><path>Library/Homebrew/test/test_options.rb
<ide> def test_set_uni... | 2 |
Javascript | Javascript | add e2e tests for /learn | 206c5994b72c353d118e3828b2c83905fdf5e6b5 | <ide><path>cypress/integration/learn/index.js
<ide> const locations = {
<ide> };
<ide>
<ide> const superBlockNames = [
<del> 'Responsive Web Design',
<del> 'JavaScript Algorithms and Data Structures',
<del> 'Front End Libraries',
<del> 'Data Visualization',
<del> 'APIs and Microservices',
<del> 'Quality Assuranc... | 1 |
Javascript | Javascript | improve wasi test coverage | bcd5491219bfd34630d331bdca3c92538a7b0e5e | <ide><path>test/wasi/test-wasi-options-validation.js
<add>'use strict';
<add>
<add>// Flags: --experimental-wasi-unstable-preview0
<add>
<add>require('../common');
<add>const assert = require('assert');
<add>const { WASI } = require('wasi');
<add>
<add>// If args is undefined, it should default to [] and should not thr... | 1 |
Javascript | Javascript | fix required descriptor | 64ef59005be9902815005846e641a5253ff58c59 | <ide><path>packages/ember-metal/lib/mixin.js
<ide> function mergeMixins(mixins, m, descs, values, base) {
<ide> value = baseValue ? baseValue.concat(value) : Ember.makeArray(value);
<ide> }
<ide>
<add> descs[key] = undefined;
<ide> values[key] = value;
<ide> }
<ide> ... | 1 |
Go | Go | move writejson() together with readjson() | ff5f70e55f8cd303efbaee3eafda9dfe86a3da36 | <ide><path>api/server/httputils/httputils.go
<ide> func ReadJSON(r *http.Request, out interface{}) error {
<ide> return nil
<ide> }
<ide>
<add>// WriteJSON writes the value v to the http response stream as json with standard json encoding.
<add>func WriteJSON(w http.ResponseWriter, code int, v interface{}) error {
<a... | 2 |
Go | Go | add nilvalue for structured-data in rfc5424 logs | b7d802bbccdf7ec6e4cc1ead733663cdce9768c0 | <ide><path>daemon/logger/syslog/syslog.go
<ide> func init() {
<ide> func rfc5424formatterWithAppNameAsTag(p syslog.Priority, hostname, tag, content string) string {
<ide> timestamp := time.Now().Format(time.RFC3339)
<ide> pid := os.Getpid()
<del> msg := fmt.Sprintf("<%d>%d %s %s %s %d %s %s",
<add> msg := fmt.Sprintf... | 1 |
Python | Python | remove lrn2d layer | 82353da4dc66bc702a74c6c233f3e16b7682f9e6 | <ide><path>keras/layers/normalization.py
<ide> def get_config(self):
<ide> "momentum": self.momentum}
<ide> base_config = super(BatchNormalization, self).get_config()
<ide> return dict(list(base_config.items()) + list(config.items()))
<del>
<del>
<del>class LRN2D(Layer):
<del> """
<... | 1 |
PHP | PHP | add additional assertions for saving joindata | f942e6ec9c474d2a1e11dbbffa5dd838ed3b5af3 | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> public function testBelongsToManyDeepSave($strategy)
<ide> 'Highlights.Authors'
<ide> ]
<ide> ]);
<del> $this->assertEquals('mariano', end($entity->special_tags)->author->name);
<ide> $this->assertEquals('mark... | 1 |
PHP | PHP | add tests to dispatcher | dae0cb962dbf6f48f9b5bd7dccd932b7833f41bc | <ide><path>tests/Events/EventsDispatcherTest.php
<ide> public function testBasicEventExecution()
<ide>
<ide> $this->assertEquals([null], $response);
<ide> $this->assertSame('bar', $_SERVER['__event.test']);
<add>
<add> // we can still add listeners after the event has fired
<add> $d->list... | 1 |
Ruby | Ruby | prepare ap and ar to be frozen string friendly | b3f3d49fd6b91c6573b3e10e3d00f65306638927 | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<add># frozen_string_literal: true
<ide> require "stringio"
<ide>
<ide> require "active_support/inflector"
<ide><path>actionpack/lib/action_dispatch/http/url.rb
<add># frozen_string_literal: true
<ide> require "active_support/core_ext/module/attribute_accessors... | 18 |
Javascript | Javascript | avoid gc tracking of asyncresource in als | 014feecc445c7dfc754378f2626cd43ee30a448d | <ide><path>lib/async_hooks.js
<ide> const storageHook = createHook({
<ide> }
<ide> });
<ide>
<add>const defaultAlsResourceOpts = { requireManualDestroy: true };
<ide> class AsyncLocalStorage {
<ide> constructor() {
<ide> this.kResourceStore = Symbol('kResourceStore');
<ide> class AsyncLocalStorage {
<ide> ... | 1 |
Python | Python | implement ld/ldxx for ninja and fips | cbd3708c85e13b234e9ded0beaaf1780a537dc39 | <ide><path>tools/gyp/pylib/gyp/generator/ninja.py
<ide> def GenerateOutputForConfig(target_list, target_dicts, data, params,
<ide> ld = os.path.join(build_to_root, value)
<ide> if key == 'LD.host':
<ide> ld_host = os.path.join(build_to_root, value)
<add> if key == 'LDXX':
<add> ldxx = os.path.jo... | 1 |
Python | Python | fix mypy errors in `scripts/in_container` | 96212cb8f5e7e1e8caba18d92f58755a33b07a67 | <ide><path>scripts/in_container/check_junitxml_result.py
<ide> with open(fname) as fh:
<ide> root = ET.parse(fh)
<ide> testsuite = root.find('.//testsuite')
<del> num_failures = int(testsuite.get('failures'))
<del> num_errors = int(testsuite.get('errors'))
<del> if num_f... | 1 |
Go | Go | fix service update of args | 07b59ef210490df19f65da950d7d41176d104a31 | <ide><path>api/client/service/update.go
<ide> func runUpdate(dockerCli *client.DockerCli, flags *pflag.FlagSet, serviceID stri
<ide> return err
<ide> }
<ide>
<del> err = updateService(&service.Spec, flags)
<add> err = updateService(flags, &service.Spec)
<ide> if err != nil {
<ide> return err
<ide> }
<ide> func ... | 3 |
Ruby | Ruby | inline path creation." | 623e2d95af6c04dca5b3de94443095fb1d25ce3b | <ide><path>Library/Homebrew/test/cleanup_spec.rb
<ide> describe "::cleanup_logs" do
<ide> let(:path) { (HOMEBREW_LOGS/"delete_me") }
<ide>
<del> it "cleans all logs if prune is 0" do
<add> before do
<ide> path.mkpath
<add> end
<add>
<add> it "cleans all logs if prune is 0" do
<ide> descri... | 1 |
Ruby | Ruby | cache the instrumentor for a speed gain | fc088d4e8fdc7fcc710df094ce4ae6faa27d8c8d | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def initialize(connection, logger = nil) #:nodoc:
<ide> @runtime = 0
<ide> @query_cache_enabled = false
<ide> @query_cache = {}
<add> @instrumenter = ActiveSupport::Notifications.instrumenter
<ide> ... | 1 |
Mixed | Javascript | remove converter scripts | 3bc9e619f7822cf5bbd95ed8495c2063f6e26b6f | <ide><path>utils/converters/README.md
<del>Utilities for converting model files to the Three.js JSON format.
<del>It's necessary to install the [esm](https://www.npmjs.com/package/esm) npm package before you can use the converters.
<del>
<del>## obj2three.js
<del>
<del>Usage:
<del>
<del>```
<del>node -r esm obj2three.j... | 3 |
Text | Text | remove unneeded node prefix | df7c3d066a433943c12e25327d3f76c679eb73ab | <ide><path>docs/building-atom.md
<ide> atom][download].
<ide> find-generic-password -ws 'GitHub API Token'` on OSX to get your
<ide> credentials).
<ide> * Use the Windows GitHub shell and cd into `C:\Users\<user>\github\atom`
<del>* Run `node script/bootstrap`
<add>* Run `script\bootstrap`
<ide>
<ide> [download]: ... | 1 |
Text | Text | add chinese translation of js-spread | 9c7dc5f3b8d7128cc2d5215b5a0c5351759deea1 | <ide><path>docs/docs/02.2-jsx-spread.zh-CN.md
<add>---
<add>id: jsx-spread-zh-CN
<add>title: JSX 展开属性 (Spread Attributes)
<add>permalink: jsx-spread-zh-CN.html
<add>prev: jsx-in-depth-zh-CN.html
<add>next: jsx-gotchas-zh-CN.html
<add>---
<add>
<add>如果你事先知道模块需要的全部 Props(属性),JSX 很容易地这样写:
<add>
<add>```javascript
<add> v... | 1 |
Text | Text | add references to immutabledata.md | aaf15c3dc9ef008c2288e88e6d28d992b8465a43 | <ide><path>docs/faq/ImmutableData.md
<ide> Immutability can bring increased performance to your app, and leads to simpler p
<ide>
<ide> In particular, immutability in the context of a Web app enables sophisticated change detection techniques to be implemented simply and cheaply, ensuring the computationally expensive ... | 1 |
Python | Python | raise exception if django version used is < 1.8 | 0c5d01ddedb040fe224deebaeea4ad62b92c254d | <ide><path>celery/fixups/django.py
<ide>
<ide> from celery import _state
<ide> from celery import signals
<del>from celery.exceptions import FixupWarning
<add>from celery.exceptions import FixupWarning, ImproperlyConfigured
<ide>
<ide> __all__ = ['DjangoFixup', 'fixup']
<ide>
<ide> def _maybe_close_fd(fh):
<ide> ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.