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 |
|---|---|---|---|---|---|
Mixed | PHP | remove stupid test | a4c781ac40695051b2559d127e3d7595dcc5f904 | <ide><path>CHANGELOG-5.4.md
<ide> # Release Notes for 5.4.x
<ide>
<add>## [Unreleased]
<add>
<add>### Changed
<add>- Moved `tap()` method from `Builder` to `BuildsQueries` ([#20384](https://github.com/laravel/framework/pull/20384))
<add>- Made Blade `or` operator case-insensitive ([#20425](https://github.com/laravel/f... | 14 |
Javascript | Javascript | add an example of overriding the handler | 666705c0a4d128fdaa0a53929c194232a4e34087 | <ide><path>src/ng/exceptionHandler.js
<ide> * Any uncaught exception in angular expressions is delegated to this service.
<ide> * The default implementation simply delegates to `$log.error` which logs it into
<ide> * the browser console.
<del> *
<add> *
<ide> * In unit tests, if `angular-mocks.js` is loaded, this ... | 1 |
Python | Python | prepare new pypi release | d4b618bf23d83b1a7306bc6816bd509c23bba15d | <ide><path>keras/__init__.py
<ide> # Importable from root because it's technically not a layer
<ide> from .layers import Input
<ide>
<del>__version__ = '2.0.4'
<add>__version__ = '2.0.5'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='2.0.4',
<add> version='2.0.5',
<ide> desc... | 2 |
Text | Text | fix broken link in readme.md | e4e44c10fee2479ab789738664090628837d8313 | <ide><path>README.md
<ide> Airflow is the work of the [community](https://github.com/apache/airflow/graphs/
<ide> but the [core committers/maintainers](https://people.apache.org/committers-by-project.html#airflow)
<ide> are responsible for reviewing and merging PRs as well as steering conversation around new feature re... | 1 |
Ruby | Ruby | inform users of macos upgrade | 1373441e53d838264c70690e9612009f0e9735d8 | <ide><path>Library/Homebrew/requirements/xcode_requirement.rb
<ide> def message
<ide> A full installation of Xcode.app#{version} is required to compile this software.
<ide> Installing just the Command Line Tools is not sufficient.
<ide> EOS
<del> if MacOS.version >= :lion
<add> if Version.new(MacO... | 1 |
Text | Text | add chinese version of the chapter fog | e5c645f8643ff3358309393f8e4852710a2ac97d | <ide><path>threejs/lessons/zh_cn/threejs-fog.md
<add>Title: Three.js 雾
<add>Description: Three.js中的雾
<add>TOC: 雾
<add>
<add>本文是three.js系列文章的一部分。第一篇文章是[three.js 基础](threejs-fundamentals.html)。如果你是个新手,还没读过,请从那里开始。如果你还没读过有关摄像机的章节,请从[这篇文章](threejs-cameras.html)开始。
<add>
<add>在3D引擎里,雾通常是基于离摄像机的距离褪色至某种特定颜色的方式。在three.js中添加雾是通... | 1 |
Javascript | Javascript | add tests for duration.add and .remove | c823fbcbce189894792792e35c1bc7f42d783a37 | <ide><path>test/moment/duration.js
<ide> exports.duration = {
<ide> test.ok(moment.isDuration(moment.duration(12345678)), "correctly says true");
<ide> test.ok(!moment.isDuration(moment()), "moment object is not a duration");
<ide> test.ok(!moment.isDuration({milliseconds: 1}), "plain object is ... | 1 |
Python | Python | add tests for matrix return types | 8d915a55c5ecbca15ebaf13584b0c255d22768a1 | <ide><path>numpy/linalg/linalg.py
<ide> isfinite, size
<ide> from numpy.lib import triu
<ide> from numpy.linalg import lapack_lite
<del>from numpy.core.defmatrix import matrix_power
<add>from numpy.core.defmatrix import matrix_power, matrix
<ide>
<ide> fortran_int = intc
<ide>
<ide> def svd(a, full_matrices=1... | 2 |
Javascript | Javascript | remove unactionable warning when on 'paper' | 494b73cb33197fa865e9ead8fdca11bce6822917 | <ide><path>Libraries/Utilities/codegenNativeComponent.js
<ide> function codegenNativeComponent<Props>(
<ide> componentName: string,
<ide> options?: Options,
<ide> ): NativeComponentType<Props> {
<del> const errorMessage =
<del> "Native Component '" +
<del> componentName +
<del> "' that calls codegenNative... | 1 |
Text | Text | fix a typo in electron url | 16faef2b79802441b9c101b169a04a57928ae93d | <ide><path>CONTRIBUTING.md
<ide> Please open an issue on `atom/atom` if you have suggestions for new labels, and
<ide> | `installer` | [search][search-atom-repo-label-installer] | [search][search-atom-org-label-installer] | Related to the Atom installers for different OSes. |
<ide> | `auto-updater` | [search][search-at... | 1 |
Ruby | Ruby | remove warning of shadowing variable | dc3d3fb0b97d3be0501d66ba71a71611cf942b2b | <ide><path>actionpack/lib/action_controller/caching/fragments.rb
<ide> def fragment_cache_key(value = nil, &key)
<ide> # with the specified +key+ value. The key is expanded using
<ide> # ActiveSupport::Cache.expand_cache_key.
<ide> def fragment_cache_key(key)
<del> head = self.class.fragment_ca... | 1 |
Javascript | Javascript | remove wasteful checks from `shouldyield` | 9abc2785cb070148d64fae81e523246b90b92016 | <ide><path>packages/react/src/__tests__/ReactProfiler-test.internal.js
<ide> describe('Profiler', () => {
<ide> // Errors that happen inside of a subscriber should throw,
<ide> throwInOnWorkStarted = true;
<ide> expect(Scheduler).toFlushAndThrow('Expected error onWorkStarted');
<del> // R... | 3 |
Text | Text | add theanarkh to collaborators | be5face1571136e8f9af3fe6c5f0006ea6ed1ea9 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Stewart X Addison** <<sxa@redhat.com>> (he/him)
<ide> * [targos](https://github.com/targos) -
<ide> **Michaël Zasso** <<targos@protonmail.com>> (he/him)
<add>* [theanarkh](https://github.com/theanarkh) -
<add> **the... | 1 |
Javascript | Javascript | remove fix for | 6215840995ae77f8d309ccaf58c6966b23925602 | <ide><path>src/manipulation.js
<ide> var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>
<ide>
<ide> // Support: IE 9
<ide> option: [ 1, "<select multiple='multiple'>" ],
<del> param: [ 1, "<object>" ],
<ide> thead: [ 1, "<table>" ],
<ide> tr: [ 2, "<table><tbody>" ],
<ide> col... | 1 |
Text | Text | update changelog for 3.0.0-beta.4 | 28753cf193ed8fccacc535dc9af09a9d1cb91f09 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 3.0.0-beta.4 (January 25, 2018)
<add>
<add>- [#16160](https://github.com/emberjs/ember.js/pull/16160) [BUGFIX] Remove humanize() call from generated test descriptions
<add>- [#16101](https://github.com/emberjs/ember.js/pull/16101) [CLEANUP] Remove legacy A... | 1 |
PHP | PHP | fix bug in session class | b9e91835ec9d8d66e94452c676a632ac9887a6c7 | <ide><path>laravel/session.php
<ide> public static function start(Driver $driver)
<ide> static::$session = $driver->load($id);
<ide> }
<ide>
<del> if (static::invalid())
<add> if (is_null(static::$session) or static::invalid())
<ide> {
<ide> static::$exists = false;
<ide>
<ide> protected static function i... | 1 |
Ruby | Ruby | move integration test runner into actiondispatch | 4a55d1de8d42694bd060d834c549c53c079dd747 | <ide><path>actionpack/lib/action_controller.rb
<ide> module ActionController
<ide> # require 'action_controller/routing'
<ide> autoload :Caching, 'action_controller/caching'
<ide> autoload :Dispatcher, 'action_controller/dispatch/dispatcher'
<del> autoload :Integration, 'action_controller/... | 7 |
Ruby | Ruby | combine aliased_table_for and aliased_name_for | 9e7037f19865021030893880b16be7b1ecbd3470 | <ide><path>activerecord/lib/active_record/associations/alias_tracker.rb
<ide> def initialize(connection, aliases)
<ide> end
<ide>
<ide> def aliased_table_for(table_name, aliased_name)
<del> table_alias = aliased_name_for(table_name, aliased_name)
<del>
<del> if table_alias == table_name
<del>... | 2 |
Python | Python | fix triggerdagrunoperator docstring | b65c4f277254ad3811123edda2574e0e458368e3 | <ide><path>airflow/operators/trigger_dagrun.py
<ide> class TriggerDagRunOperator(BaseOperator):
<ide> :param trigger_dag_id: The dag_id to trigger (templated).
<ide> :param trigger_run_id: The run ID to use for the triggered DAG run (templated).
<ide> If not provided, a run ID will be automatically gene... | 1 |
Ruby | Ruby | freeze all the strings in visitors | 685825cdfc3c5595b504ae5dd0fc45638c47aeec | <ide><path>lib/arel/visitors/bind_visitor.rb
<add># frozen_string_literal: true
<ide> module Arel
<ide> module Visitors
<ide> module BindVisitor
<ide><path>lib/arel/visitors/dot.rb
<add># frozen_string_literal: true
<ide> module Arel
<ide> module Visitors
<ide> class Dot < Arel::Visitors::Visitor
<ide> def ... | 12 |
Javascript | Javascript | remove code duplication | 01b10d7a24b371e667dfd5b081e98a690b0fc426 | <ide><path>src/jqLite.js
<ide> forEach({
<ide> var eventFns = events[type];
<ide>
<ide> if (!eventFns) {
<del> if (type == 'mouseenter' || type == 'mouseleave') {
<del> events[type] = [];
<add> events[type] = [];
<ide>
<add> if (type == 'mouseenter' || type == 'mouseleave') {... | 1 |
Text | Text | fix error on pr #45x | 62a5edf3d194baba8c09cf6ef701555f7dc16898 | <ide><path>README.md
<ide> Table of Contents
<ide> - [Getting Started](#getting-started)
<ide> - [Obtaining API Keys](#obtaining-api-keys)
<ide> - [Project Structure](#project-structure)
<del>- [Useful Tools](#use-tools)
<add>- [Useful Tools](#useful-tools)
<ide> - [Recommended Design](#recommended-design)
<ide> - [Rec... | 1 |
Python | Python | add add_special_tokens=true for input examples | 3c28a2daac43386dbc63b0bd014a966f22888850 | <ide><path>transformers/modeling_bert.py
<ide> class BertModel(BertPreTrainedModel):
<ide>
<ide> tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
<ide> model = BertModel.from_pretrained('bert-base-uncased')
<del> input_ids = torch.tensor(tokenizer.encode("Hello, my dog is cute")).u... | 1 |
Javascript | Javascript | use regex for openssl function name | c1ee66804c3605882410a7adfe7e44c7ad603b82 | <ide><path>test/parallel/test-crypto-scrypt.js
<ide> for (const options of bad) {
<ide>
<ide> for (const options of toobig) {
<ide> const expected = {
<del> message: /error:[^:]+:digital envelope routines:EVP_PBE_scrypt:memory limit exceeded/,
<add> message: new RegExp('error:[^:]+:digital envelope routines:' ... | 1 |
Text | Text | remove a reference to an issue [ci skip] | 058d3c6183ef6e0e878bea37f4fe3f8f0d6758e2 | <ide><path>activerecord/CHANGELOG.md
<del>* Allow strings to specify the `#order` value. Fixes #10732.
<add>* Allow strings to specify the `#order` value.
<ide>
<ide> Example:
<ide> | 1 |
Javascript | Javascript | add note about browser compatibility | 9f68b0e29dfab351736c622119e6f07e51bd71ee | <ide><path>src/ng/directive/attrs.js
<ide> * A special directive is necessary because we cannot use interpolation inside the `open`
<ide> * attribute. See the {@link guide/interpolation interpolation guide} for more info.
<ide> *
<add> * ## A note about browser compatibility
<add> *
<add> * Edge, Firefox, and Intern... | 1 |
Javascript | Javascript | fix version controller links (for realsies) | 6894b486d0486bd813af24fb4c27c4f5775e5fd8 | <ide><path>docs/source/_static/js/custom.js
<ide> function addGithubButton() {
<ide> function addVersionControl() {
<ide> // To grab the version currently in view, we parse the url
<ide> const parts = location.toString().split('/');
<del> let versionIndex = parts.length - 2
<add> let versionIndex = parts.... | 1 |
Python | Python | remove unused import in tests folder | bfae0a61917f8cc7563db80051f89e178e8bfb1c | <ide><path>tests/keras/layers/normalization_test.py
<ide> import numpy as np
<ide> from numpy.testing import assert_allclose
<ide>
<del>from keras.layers import Dense, Activation, Input
<add>from keras.layers import Input
<ide> from keras.utils.test_utils import layer_test, keras_test
<ide> from keras.layers import no... | 3 |
Javascript | Javascript | avoid more allocations for rtl text in bidi.js | b1cf4d98ad98cb80e1ce793cd384516a2f8a0c1c | <ide><path>src/core/bidi.js
<ide> var bidi = PDFJS.bidi = (function bidiClosure() {
<ide> // don't mirror as characters are already mirrored in the pdf
<ide>
<ide> // Finally, return string
<del> var result = '';
<ide> for (i = 0, ii = chars.length; i < ii; ++i) {
<ide> var ch = chars[i];
<del> ... | 1 |
Python | Python | add a main_input_name attribute to all models | 33f36c869fa5db07bb35789d411cfed8bf9d3b0c | <ide><path>src/transformers/modeling_flax_utils.py
<ide> class FlaxPreTrainedModel(PushToHubMixin, FlaxGenerationMixin):
<ide> :class:`~transformers.PretrainedConfig` to use as configuration class for this model architecture.
<ide> - **base_model_prefix** (:obj:`str`) -- A string indicating the attrib... | 32 |
Python | Python | remove dirty patch | 6b31df3423688a3d01e53c05032205567bb695bd | <ide><path>libcloud/common/base.py
<ide> def request(self, action, params=None, data=None, headers=None,
<ide> headers=headers,
<ide> stream=stream)
<ide> else:
<del> ... | 1 |
Javascript | Javascript | pass component stack to error boundary handler | f923adb5856a2c251039c8a435d77be9d0542a4f | <ide><path>src/renderers/shared/fiber/ReactFiberScheduler.js
<ide> export type CapturedError = {
<ide> willRetry : boolean,
<ide> };
<ide>
<add>export type HandleErrorInfo = {
<add> componentStack : string,
<add>};
<add>
<ide> var {
<ide> popContextProvider,
<ide> } = require('ReactFiberContext');
<ide> module.ex... | 1 |
PHP | PHP | use psalm override | 1aa0cbfc3bfa0380aa4ef5470647217bbdd82670 | <ide><path>src/Core/PluginCollection.php
<ide> public function valid(): bool
<ide> * Filter the plugins to those with the named hook enabled.
<ide> *
<ide> * @param string $hook The hook to filter plugins by
<del> * @return \Generator|\Cake\Core\PluginInterface[] A generator containing matching plugi... | 1 |
Python | Python | excuse emoji failure on narrow unicode builds | 8c945310fb16912a23ef8311cd4cd00aeb3798e2 | <ide><path>spacy/tests/tokenizer/test_exceptions.py
<ide> # coding: utf-8
<ide> from __future__ import unicode_literals
<ide>
<add>import sys
<ide> import pytest
<ide>
<ide>
<ide> def test_tokenizer_excludes_false_pos_emoticons(tokenizer, text, length):
<ide> tokens = tokenizer(text)
<ide> assert len(tokens)... | 1 |
Python | Python | simplify serialization slightly | 609014460861fdfe82054551790d6439292dde7b | <ide><path>rest_framework/fields.py
<ide> def get_value(self, dictionary):
<ide> return self.default_empty_html if (ret == '') else ret
<ide> return dictionary.get(self.field_name, empty)
<ide>
<del> def get_attribute(self, instance):
<add> def get_field_representation(self, instance):
<ide> ... | 2 |
Java | Java | exclude jdk package in shadowingclassloader | a07245caf8a5ba9debd11d3ace3b47e0b68d8422 | <ide><path>spring-context/src/main/java/org/springframework/instrument/classloading/ShadowingClassLoader.java
<ide> public class ShadowingClassLoader extends DecoratingClassLoader {
<ide>
<ide> /** Packages that are excluded by default. */
<ide> public static final String[] DEFAULT_EXCLUDED_PACKAGES =
<del> new St... | 1 |
PHP | PHP | apply fixes from styleci | 6fea6c271086e2ad017a6078e1ee457a2b8c398e | <ide><path>src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php
<ide> public function handle()
<ide> $executions[] = $execution = new Process([
<ide> PHP_BINARY,
<ide> defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan',
<del> 'schedule:... | 1 |
PHP | PHP | fix introspection on models in other plugins | c871d85f2b410b020aa4da8786c2c97c3d3e7c03 | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> protected function _getModel($model) {
<ide> 'class' => $plugin . $this->request->params['models'][$model]['className'],
<ide> 'alias' => $model
<ide> ));
<add> } elseif (ClassRegistry::isKeySet($this->defaultModel)) {
<add> $defaultObject = ClassRegist... | 1 |
Text | Text | add miladfarca to collaborators | d22f16d6e7b6c631ca3048dd097592f1cef69d00 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Matteo Collina** <matteo.collina@gmail.com> (he/him)
<ide> * [mhdawson](https://github.com/mhdawson) -
<ide> **Michael Dawson** <midawson@redhat.com> (he/him)
<add>* [miladfarca](https://github.com/miladfarca... | 1 |
PHP | PHP | replace duplicate code with existing stub | 8a5b388a301727199a5e80d7ead26b990317c65e | <ide><path>src/TestSuite/Stub/ConsoleOutput.php
<ide> public function messages(): array
<ide> {
<ide> return $this->_out;
<ide> }
<add>
<add> /**
<add> * Get the output as a string
<add> *
<add> * @return string
<add> */
<add> public function output(): string
<add> {
<add> ... | 2 |
Python | Python | use variable names in formula for convolve | 9f8639aaf2791f3f6e2f5e9f28877314f35db1a3 | <ide><path>numpy/core/numeric.py
<ide> def convolve(a,v,mode='full'):
<ide> distributed according to the convolution of their individual
<ide> distributions.
<ide>
<add> If `v` is longer than `a`, the arrays are swapped before computation.
<add>
<ide> Parameters
<ide> ----------
<ide> a : (N,) a... | 1 |
Javascript | Javascript | remove extra new line from html source | 19c3fd1e2fa983859ffc6d6aca71867ec9fe782e | <ide><path>gulpfile.js
<ide> function preprocessHTML(source, defines) {
<ide> fs.unlinkSync(outName);
<ide>
<ide> var i = source.lastIndexOf("/");
<del> return createStringSource(source.substr(i + 1), out);
<add> return createStringSource(source.substr(i + 1), `${out.trimEnd()}\n`);
<ide> }
<ide>
<ide> function... | 1 |
Mixed | PHP | fix transaction handling for microsoft sql server | 13522832fb15dec1e09a979badae64238fc4a743 | <ide><path>readme.md
<ide> - Routes with too many leading or trailing slashes will now 404.
<ide> - Added `callSecure` test helper.
<ide> - Added `values` method to the `Collection` class.
<add>- Fix transaction handling for Microsoft SQL Server.
<ide>
<ide> ## Beta 3
<ide>
<ide><path>src/Illuminate/Database/SqlServe... | 2 |
Python | Python | add subclass matching to serializer field mapping | 82d4b2083292659358d5df4d03d2115576e8ae4e | <ide><path>rest_framework/serializers.py
<ide> def get_field(self, model_field):
<ide> try:
<ide> return self.field_mapping[model_field.__class__](**kwargs)
<ide> except KeyError:
<add> for model_field_class, serializer_field_class in self.field_mapping.items():
<add> ... | 1 |
Text | Text | update readme to link to the new docs | a15ccbc0fe04c64e2bb92fb3485f8d29c292f28f | <ide><path>packages/next/README.md
<ide> </a>
<ide> </p>
<ide>
<del><p align="center">
<del> <strong>
<del> Visit <a aria-label="next.js learn" href="https://nextjs.org/learn">https://nextjs.org/learn</a> to get started with Next.js.
<del> </strong>
<del></p>
<del>
<del>---
<del>
<del>**The below readme is the ... | 1 |
Javascript | Javascript | remove unused var | b99ddfd3bfb7a83cdefc04e2a34d91ee640ca524 | <ide><path>src/text-editor-component.js
<ide> class LinesTileComponent {
<ide> this.renderHighlights(),
<ide> this.renderLines()
<ide> )
<del>
<ide> }
<ide>
<ide> renderHighlights () {
<del> const {measuredContent, top, height, width, lineHeight, highlightDecorations} = this.props
<add> const... | 1 |
Ruby | Ruby | push the before filter lambdas to factory methods | bd95ff84f3199fba2c35c2727182672ac75c08b2 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> class Before
<ide> def self.build(next_callback, user_callback, user_conditions, chain_config, filter)
<ide> if chain_config.key?(:terminator) && user_conditions.any?
<ide> halted_lambda = eval "lambda { |result| #{chain_config... | 1 |
Text | Text | update context example for react-router v4 beta | 564fa646262300683e2c0212fe12bcb0ae5e7daf | <ide><path>docs/docs/context.md
<ide> If `contextTypes` is not defined, then `context` will be an empty object.
<ide>
<ide> ## Parent-Child Coupling
<ide>
<del>Context can also let you build an API where parents and children communicate. For example, one library that works this way is [React Router V4](https://react-... | 1 |
PHP | PHP | fix more tests | aa7cac185a1e2a320615bf6e8605abba3472898a | <ide><path>lib/Cake/Test/TestCase/TestSuite/HtmlCoverageReportTest.php
<ide> <?php
<ide> /**
<del> * Test case for HtmlCoverageReport
<del> *
<ide> * PHP5
<ide> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> *
<ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (http... | 1 |
Ruby | Ruby | remove trailing whitespace | 8f7621edb85ba73a7532b39869425a188bb6c77b | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def tap
<ide> opoo "`brew tap --full` is now a no-op!"
<ide> # odeprecated "`brew tap --full`"
<ide> end
<del>
<add>
<ide> if args.shallow?
<ide> opoo "`brew tap --shallow` is now a no-op!"
<ide> # odeprecated "`brew tap --sh... | 1 |
Ruby | Ruby | relocate requirement tests | 62984b956e4e2fc1dced4998dc913421babde8bf | <ide><path>Library/Homebrew/test/java_requirement_spec.rb
<del># typed: false
<del># frozen_string_literal: true
<del>
<del>require "cli/args"
<del>require "requirements/java_requirement"
<del>
<del>describe JavaRequirement do
<del> subject { described_class.new([]) }
<del>
<del> before do
<del> ENV["JAVA_HOME"] =... | 3 |
Go | Go | add debug infos | ccac5b138253ab87846089cb5af9b4b77a7fd9d5 | <ide><path>commands.go
<ide> func (srv *Server) CmdAttach(stdin io.ReadCloser, stdout io.Writer, args ...stri
<ide> return err
<ide> }
<ide> wg.Add(1)
<del> go func() { io.Copy(cStdin, stdin); wg.Add(-1) }()
<add> go func() {
<add> Debugf("Begin stdin pipe [attach]")
<add> io.Copy(cStdin, stdin)
<add> wg... | 2 |
Java | Java | delete dead code in spring-webmvc | 2c648379abc56f5ce5ad83f2522d63b24ad72ffb | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java
<ide> import org.springframework.beans.factory.InitializingBean;
<ide> import org.springframework.beans.factory.config.BeanDefinition;
<ide> import org.springframework.beans.factory.config.BeanDefinit... | 1 |
Mixed | Text | remove mips support" | eaddb22d920d092f13a034a11ed1e4516c3f602a | <ide><path>configure.py
<ide>
<ide> valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
<ide> 'android', 'aix', 'cloudabi')
<del>valid_arch = ('arm', 'arm64', 'ia32', 'ppc',
<add>valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
<ide> 'ppc64', 'x32','x... | 3 |
Java | Java | bind implementation of map, cast, timestamp | 60ac55f587500fbef42338c06d541e1720c27ec9 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperationAverage;
<ide> import rx.operators.OperationBuffer;
<ide> import rx.operators.OperationCache;
<del>import rx.operators.OperationCast;
<add>import rx.operators.OperatorCast;
<ide> import rx.operators.OperationCombineLatest;
<ide> ... | 10 |
PHP | PHP | add store() and fix cookie expiration/overwrite | a9e1d0858d1e857e67dc88847e96fa80b96687a6 | <ide><path>src/Http/Cookie/CookieCollection.php
<ide> namespace Cake\Http\Cookie;
<ide>
<ide> use ArrayIterator;
<add>use Cake\Http\Client\Response as ClientResponse;
<ide> use Countable;
<ide> use DateTime;
<ide> use InvalidArgumentException;
<ide> public function __construct(array $cookies = [])
<ide> {
<ide> ... | 2 |
Ruby | Ruby | use inject rather than lasgn | 12f67a70697212b55cde66f89ccd4caf0e9f4dad | <ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb
<ide> def join_target_table(relation, *conditions)
<ide> # If the target table is an STI model then we must be sure to only include records of
<ide> # its type and its sub-types.
<ide> ... | 1 |
Text | Text | use relative path to create the index | 4d7b88da36054cb37692be8dddeb03d977b8aeaa | <ide><path>CONTRIBUTING.md
<ide>
<ide> ## 1. Index
<ide>
<del>1. [Index](https://github.com/gero3/three.js/blob/patch-6/CONTRIBUTING.md#2-Index)
<del>2. [Having a problem](https://github.com/gero3/three.js/blob/patch-6/CONTRIBUTING.md#2-having-a-problem)
<del> * [How to report](https://github.com/gero3/three.js/blob... | 1 |
Go | Go | fix inconsistency in ip address parsing errors | a30fd7a962f8486df0d0dbd3334c7621d22c1aec | <ide><path>opts/ip.go
<ide> func NewIpOpt(ref *net.IP, defaultVal string) *IpOpt {
<ide> func (o *IpOpt) Set(val string) error {
<ide> ip := net.ParseIP(val)
<ide> if ip == nil {
<del> return fmt.Errorf("incorrect IP format")
<add> return fmt.Errorf("%s is not an ip address", val)
<ide> }
<ide> (*o.IP) = net.Pars... | 1 |
Javascript | Javascript | remove duplicate @param annotation | c995b09b77696ebb4b7806f681ad616705fb4a49 | <ide><path>src/ng/directive/form.js
<ide> function FormController(element, attrs, $scope, $animate) {
<ide> </file>
<ide> </example>
<ide> *
<del> * @param {string=} name Name of the form. If specified, the form controller will be published into
<del> * related scope, under this name.
<... | 1 |
PHP | PHP | bring the pluralization rules back | b2d997dcfb73347670e6261f6d6cae3980aa9181 | <ide><path>src/Illuminate/Translation/MessageSelector.php
<ide> class MessageSelector
<ide> *
<ide> * @param string $line
<ide> * @param int $number
<add> * @param string $locale
<ide> * @return mixed
<ide> */
<del> public function choose($line, $number)
<add> public function ch... | 4 |
Python | Python | extract api versions per resource | 83e6f51d03ad9010093f44b29491a84cabb09858 | <ide><path>libcloud/compute/drivers/azure_arm.py
<ide>
<ide>
<ide> RESOURCE_API_VERSION = "2016-04-30-preview"
<add>DISK_API_VERSION = "2018-06-01"
<add>IMAGES_API_VERSION = "2015-06-15"
<add>INSTANCE_VIEW_API_VERSION = "2015-06-15"
<add>IP_API_VERSION = "2019-06-01"
<add>LOCATIONS_API_VERSION = "2015-01-01"
<add>NIC... | 1 |
Java | Java | refine brokeravailabilityevent behavior | 6bcbb94abac229b70a8b0a89b12ce461d4321a8b | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Li... | 10 |
Ruby | Ruby | fix unscoping `default_scope` for `preloader` | 9aa04315febfb37b50f52471a2837c40313a2d5f | <ide><path>activerecord/lib/active_record/associations/preloader/association.rb
<ide> def reflection_scope
<ide> @reflection_scope ||= reflection.scope_for(klass)
<ide> end
<ide>
<add> def klass_scope
<add> current_scope = klass.current_scope
<add>
<add> if current_... | 2 |
Text | Text | update changelog.md for 2.11.2 | bd96be28693d82dff6b0659a24c5c33b6a8124bb | <ide><path>CHANGELOG.md
<ide> - [#14852](https://github.com/emberjs/ember.js/pull/14852) [PERF] only `LOG_TRANSITIONS` and `LOG_TRANSITIONS_INTERNAL` in debug
<ide> - [#14854](https://github.com/emberjs/ember.js/pull/14854) [PER] only `LOG_ACTIVE_GENERATION` and `LOG_RESOLVER` in debug
<ide>
<add>### 2.11.2 (February ... | 1 |
Go | Go | remove non-ascii characters from name generator | c38386d876aab1c1e3391de2180cb03f083f8955 | <ide><path>namesgenerator/names-generator.go
<ide> var (
<ide> // http://en.wikipedia.org/wiki/John_Bardeen
<ide> // http://en.wikipedia.org/wiki/Walter_Houser_Brattain
<ide> // http://en.wikipedia.org/wiki/William_Shockley
<del> right = [...]string{"lovelace", "franklin", "tesla", "einstein", "bohr", "davinci", "pa... | 1 |
Javascript | Javascript | fix paths for windows | 25ef1f882f314ce2cd03b9558c7f0f7482751270 | <ide><path>test/ContextReplacementPlugin.test.js
<ide> describe("ContextReplacementPlugin", () => {
<ide> let obj = buildPluginWithParams(/selector/, "./folder", true, /filter/);
<ide>
<ide> let x = (nothing, result) => {
<del> result.resource.should.containEql('/selector/folder')
<add> result.resource... | 1 |
Java | Java | fix subject subscriptionmanager | 4e4c165d59f3196044a7a79d35e40e32126d153b | <ide><path>rxjava-core/src/main/java/rx/subjects/SubjectSubscriptionManager.java
<ide> import rx.Observer;
<ide> import rx.Subscription;
<ide> import rx.operators.SafeObservableSubscription;
<add>import rx.subscriptions.Subscriptions;
<ide> import rx.util.functions.Action1;
<ide>
<ide> /* package */class SubjectSubscr... | 1 |
Python | Python | enable ftptos3operator to transfer several files | 8e56ed234bf48775d553744c792fadc3ad63fbf7 | <ide><path>airflow/providers/amazon/aws/transfers/ftp_to_s3.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide> from tempfile import NamedTemporaryFile
<add>from typing import List, Optional, Union
<ide>
<ide> from airflow.models import BaseOperator
<ide> from airflow.pr... | 2 |
Text | Text | clarify .next in .gitignore text | 7e67152232f30d7c7ef8b178e60a36f54f3d594e | <ide><path>readme.md
<ide> Next.js can be deployed to other hosting solutions too. Please have a look at th
<ide>
<ide> Note: `NODE_ENV` is properly configured by the `next` subcommands, if absent, to maximize performance. if you’re using Next.js [programmatically](#custom-server-and-routing), it’s your responsibility... | 1 |
Python | Python | use int_shape where appropriate | 2a3d4722c21d99d882b2cbc2da451108147fe1c4 | <ide><path>keras/layers/normalization.py
<ide> def build(self, input_shape):
<ide> def call(self, x, mask=None):
<ide> if self.mode == 0 or self.mode == 2:
<ide> assert self.built, 'Layer must be built before being called'
<del> input_shape = self.input_spec[0].shape
<add> ... | 3 |
Javascript | Javascript | extract updateattribute from updateobject | e29f28d6486eb2d49f62122d9cc7d7f92e05fac1 | <ide><path>src/renderers/webgl/WebGLObjects.js
<ide> THREE.WebGLObjects = function ( gl, properties, info ) {
<ide> for ( var name in attributes ) {
<ide>
<ide> var attribute = attributes[ name ];
<add> updateAttribute( attribute, name );
<ide>
<del> var bufferType = ( name === 'index' ) ? gl.ELEMENT_ARRAY_B... | 1 |
Mixed | Go | add support for ambient capabilities | 199e19548e93262ab00873c1d761b0d05f866042 | <ide><path>docs/reference/run.md
<ide> since Docker 1.12. In Docker 1.10 and 1.11 this did not happen and it may be nec
<ide> to use a custom seccomp profile or use `--security-opt seccomp=unconfined` when adding
<ide> capabilities.
<ide>
<add>It is only possible to grant capabilities to a container running as a user ... | 4 |
PHP | PHP | fix multi-version assertion | dd8a8cb9a7fb2dc796246a6263e37e5b7383a04d | <ide><path>tests/TestCase/Error/ErrorHandlerTest.php
<ide> public function testHandleErrorLoggingTrace(): void
<ide>
<ide> $messages = $this->logger->read();
<ide> $this->assertMatchesRegularExpression('/^(notice|debug|warning)/', $messages[0]);
<del> if (version_compare(PHP_VERSION, '8.0.0-dev'... | 1 |
Python | Python | add bigquery copy operator | 6c9d27daca030eefa380592c262bb89d0a811d5d | <ide><path>airflow/contrib/hooks/bigquery_hook.py
<ide> def run_extract(self, source_dataset_table, destination_cloud_storage_uris, comp
<ide>
<ide> return self.run_with_configuration(configuration)
<ide>
<add> def run_copy(self, source_dataset_tables, destination_project_dataset_table, write_disposition='... | 2 |
Javascript | Javascript | make schedulerminheap flow strict | 7a7e792a6fd7668b37e475bf39e58fdb24e4ad81 | <ide><path>packages/scheduler/src/SchedulerMinHeap.js
<ide> * This source code is licensed under the MIT license found in the
<ide> * LICENSE file in the root directory of this source tree.
<ide> *
<del> * @flow
<add> * @flow strict
<ide> */
<ide>
<ide> type Heap = Array<Node>;
<ide> export function pop(heap: Heap... | 1 |
PHP | PHP | add bootstrap 5 styled pagination | 73d0ee647dc10f7f8fd452e15c171239a1f59e59 | <ide><path>src/Illuminate/Pagination/AbstractPaginator.php
<ide> public static function useTailwind()
<ide> static::defaultSimpleView('pagination::simple-tailwind');
<ide> }
<ide>
<add> /**
<add> * Indicate that Bootstrap 5 styling should be used for generated links.
<add> *
<add> * @return ... | 3 |
Javascript | Javascript | add test for issue | e7d37ee45ac48b0ff2a3d43f7236d316be6c241e | <ide><path>test/ng/directive/ngRepeatSpec.js
<ide> describe('ngRepeat', function() {
<ide> }));
<ide>
<ide>
<del> it('should ngRepeat over array of primitive correctly', inject(function($rootScope, $compile) {
<add> it('should ngRepeat over array of primitives', inject(function($rootScope, $compile) {
<ide> e... | 1 |
Python | Python | update links to new weights | 6be46a6e6422d7ab34984d6fbcaadad0323e5349 | <ide><path>transformers/configuration_gpt2.py
<ide>
<ide> GPT2_PRETRAINED_CONFIG_ARCHIVE_MAP = {"gpt2": "https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-config.json",
<ide> "gpt2-medium": "https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-config.json",
<del>... | 4 |
Javascript | Javascript | remove message argument in cluster setup test | 6563e56aef5287646aa433bfe088a73a2bea855d | <ide><path>test/parallel/test-cluster-setup-master-cumulative.js
<ide> const cluster = require('cluster');
<ide>
<ide> assert(cluster.isMaster);
<ide>
<del>assert.deepStrictEqual(
<del> cluster.settings,
<del> {},
<del> 'cluster.settings should not be initialized until needed'
<del>);
<add>// cluster.settings shou... | 1 |
Ruby | Ruby | add more information to comments | 6b248f6ea56b318d39b8c28b2a9f69a7d420f1fb | <ide><path>railties/lib/rails/commands.rb
<ide> Rails::Console.start(Rails.application)
<ide>
<ide> when 'server'
<del> # try to guess application's path if there is no config.ru file in current dir
<del> # it allows to run script/rails server from other directories
<add> # Change to the application's path if the... | 1 |
Mixed | Python | add `unauthenticated` exception | 4c17d1441f184eabea9000155f07445bcc2aa14c | <ide><path>docs/api-guide/exceptions.md
<ide> Raised if the request contains malformed data when accessing `request.DATA` or `
<ide>
<ide> By default this exception results in a response with the HTTP status code "400 Bad Request".
<ide>
<add>## Unauthenticated
<add>
<add>**Signature:** `Unauthenticated(detail=None)`... | 2 |
PHP | PHP | add support for named route generation | 40a81b5b7e6a95d000c92dd619cc38fef07b4d75 | <ide><path>lib/Cake/Routing/RouteCollection.php
<ide> public function promote($which) {
<ide> }
<ide>
<ide> /**
<del> * Get a route out of the collection.
<add> * Get route(s) out of the collection.
<ide> *
<del> * @param int $index The index of the route you want.
<add> * If a string argument is provided, the first... | 3 |
PHP | PHP | fix cs errors that fixers missed | 81c025bd21d086c338c4587d82d5c53364837b74 | <ide><path>src/Database/Driver/Sqlite.php
<ide> public function connect()
<ide> *
<ide> * @return bool true if it is valid to use this driver
<ide> */
<del>
<ide> public function enabled()
<ide> {
<ide> return in_array('sqlite', PDO::getAvailableDrivers());
<ide><path>src/Model/Behavior/T... | 9 |
Javascript | Javascript | initialize lensflares rotation at 0 | 28ba50e8c9f146e54facc40147f2f75556528652 | <ide><path>src/objects/LensFlare.js
<ide> THREE.LensFlare.prototype.add = function ( texture, size, distance, blending, co
<ide> distance = Math.min( distance, Math.max( 0, distance ) );
<ide>
<ide> this.lensFlares.push( {
<del> texture: texture, // THREE.Texture
<del> size: size, // size in pixels (-1 = us... | 1 |
PHP | PHP | remove some comment bloat | 216a38c574b5b49d9330268a39f0373ffaa07361 | <ide><path>laravel/uri.php
<ide> public static function current()
<ide> $uri = static::remove($uri, $index);
<ide> }
<ide>
<del> // Format the final request URI. If there is nothing left, we will just
<del> // return a single forward slash. Otherwise, we'll remove all of the
<del> // leading and trailing space... | 1 |
Ruby | Ruby | fix typo in resources documentation. closes [yon] | 7de21cc1c5ae899207f9aab9e111eda265bb2f32 | <ide><path>actionpack/lib/action_controller/resources.rb
<ide> module ActionController
<ide> # POST /posts # with => { :title => "My Whizzy New Post", :body => "I've got a brand new combine harvester" }
<ide> #
<ide> # # A PUT request on a single Post resource is asking for a Post to be updated
<del> # POS... | 1 |
Java | Java | refine tests for spr-14066 | 411ff8450fbf386b5a88f01777ab1e49aaa33a8d | <ide><path>spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java
<ide> public String contextPath(HttpServletRequest request) {
<ide>
<ide> @RestController
<ide> static class CookieController {
<del> @RequestMapping("/")
<add> @RequestMapping(value="/", produces="... | 2 |
Ruby | Ruby | add reselect method | 00c50c2b5966fa1d719c8a58564811c672a0e8c6 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def _select!(*fields) # :nodoc:
<ide> self
<ide> end
<ide>
<add> # Allows you to change a previously set select statement.
<add> #
<add> # Post.select(:title, :body)
<add> # # SELECT `posts.title`, `posts.body` FROM `po... | 2 |
Text | Text | add event handling guide for vue.js | ca29fb664ef40fc543df3db590c9929344c8a9d1 | <ide><path>guide/english/vue/event-handling/index.md
<add>---
<add>title: Event Handling
<add>---
<add>
<add>## Creating an Event
<add>We can create an event using the directive `v-on`:
<add>
<add>```html
<add><div id="app">
<add> <button v-on:click="buttonClicked">Click Me</button>
<add></div>
<add>```
<add>
<add>```... | 1 |
Python | Python | bloom minor changes on tokenizer | 18c263c4b6b82726a3f2699e2dfee89383804391 | <ide><path>src/transformers/models/bloom/tokenization_bloom_fast.py
<ide> },
<ide> }
<ide>
<del>PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {
<del> "bigscience/tokenizer": 1024,
<del> "bigscience/bloom-350m": 1024,
<del> "bigscience/bloom-760m": 1024,
<del> "bigscience/bloom-1b3": 1024,
<del> "bigscien... | 3 |
Python | Python | fix a tf test name (layoutlmmodeltest) | b6bdb943b214050c466a0cb52481c7a051144b2e | <ide><path>tests/layoutlm/test_modeling_tf_layoutlm.py
<ide> def prepare_config_and_inputs_for_common(self):
<ide>
<ide>
<ide> @require_tf
<del>class LayoutLMModelTest(TFModelTesterMixin, unittest.TestCase):
<add>class TFLayoutLMModelTest(TFModelTesterMixin, unittest.TestCase):
<ide>
<ide> all_model_classes = (
... | 1 |
Javascript | Javascript | improve test coverage for `os` package | 5e3055931822837840ba257768e7bd1350547d69 | <ide><path>test/parallel/test-os-process-priority.js
<ide> for (let i = PRIORITY_HIGHEST; i <= PRIORITY_LOW; i++) {
<ide> checkPriority(process.pid, i);
<ide> }
<ide>
<add>{
<add> assert.throws(() => { os.getPriority(-1); }, {
<add> code: 'ERR_SYSTEM_ERROR',
<add> message: /A system error occurred: uv_os_getp... | 1 |
Ruby | Ruby | fix calculation tests to work on sqlite | df8669d4b5691646ca8bb4ba01f6e5348ae8dd69 | <ide><path>activerecord/test/cases/calculations_test.rb
<ide> def test_should_count_selected_field_with_include
<ide> end
<ide>
<ide> def test_should_count_scoped_select
<del> Account.update_all("credit_limit = 50")
<del> assert_equal 1, Account.scoped(:select => "DISTINCT credit_limit").count
<add> Accou... | 1 |
Javascript | Javascript | fix windows path incompatibilities | 86f3e41dfe78e20d48cd78ddbac0da343ce164b4 | <ide><path>docs/src/writer.js
<ide> * All writing related code here. This is so that we can separate the async code from sync code
<ide> * for testability
<ide> */
<add>var pathUtils = require('path');
<ide> var qfs = require('q-fs');
<ide> var Q = require('qq');
<del>var OUTPUT_DIR = 'build/docs/';
<add>var OUTPUT_... | 1 |
Ruby | Ruby | add missing require | 5f60735194290172533521e417f81bb3075dc867 | <ide><path>actionpack/lib/action_view/helpers/number_helper.rb
<ide> require 'active_support/core_ext/big_decimal/conversions'
<ide> require 'active_support/core_ext/float/rounding'
<ide> require 'active_support/core_ext/object/blank'
<add>require 'active_support/core_ext/string/output_safety'
<ide>
<ide> module Actio... | 1 |
Javascript | Javascript | enable eslint strict key-spacing | 684c1bb42d916fed12945ba1678934e8983082dd | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> ObjectExpression: 'first',
<ide> SwitchCase: 1,
<ide> }],
<del> 'key-spacing': ['error', { mode: 'minimum' }],
<add> 'key-spacing': ['error', { mode: 'strict' }],
<ide> 'keyword-spacing': 'error',
<ide> 'linebreak-style': ['error', 'un... | 4 |
Ruby | Ruby | keep rubocop happy with the new selenium runner | f50aeba01ee14f8fcd9fd98ec75b26cd5ef7aea8 | <ide><path>ci/qunit-selenium-runner.rb
<del>require 'qunit/selenium/test_runner'
<del>require 'chromedriver/helper'
<add># frozen_string_literal: true
<add>
<add>require "qunit/selenium/test_runner"
<add>require "chromedriver/helper"
<ide>
<ide> driver_options = Selenium::WebDriver::Chrome::Options.new
<del>driver_opt... | 1 |
Javascript | Javascript | add some tests for bind | 44a9cdaeb3a3b28cdb95b1c6c65f9051ea62db85 | <ide><path>packages/ember-handlebars/tests/helpers/bind_test.js
<add>import EmberView from "ember-views/views/view";
<add>import EmberObject from "ember-runtime/system/object";
<add>import run from "ember-metal/run_loop";
<add>
<add>function appendView(view) {
<add> run(function() { view.appendTo('#qunit-fixture'); })... | 1 |
Ruby | Ruby | fix typo in comment | 2488998a0fa0bdeb384961d826d2e0f4abe1b968 | <ide><path>Library/Homebrew/exceptions.rb
<ide> class CurlDownloadStrategyError < RuntimeError
<ide> class ErrorDuringExecution < RuntimeError
<ide> end
<ide>
<del># raised by Pathname#verify_checksum when cksum is nil or empty
<add># raised by Pathname#verify_checksum when "expected" is nil or empty
<ide> class Check... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.