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 |
|---|---|---|---|---|---|
Text | Text | add changes for 1.6.10 | 77f26bddf79d812a8ac347f591896f197c8a3f08 | <ide><path>CHANGELOG.md
<add><a name="1.6.10"></a>
<add># 1.6.10 crystalline-persuasion (2018-04-12)
<add>
<add>## Bug Fixes
<add>- **$compile:**
<add> - correctly handle `null`/`undefined` href `attrs.$set()`
<add> ([f04e04](https://github.com/angular/angular.js/commit/f04e04e0e63e0d30c29718abd5cae634901793b2),
<add... | 1 |
Javascript | Javascript | add tests to highlight | 7dbeded1db214814040d987df8b40fc95e8badd6 | <ide><path>packages/ember/tests/routing/substates_test.js
<ide> import { RSVP } from '@ember/-internals/runtime';
<ide> import { Route } from '@ember/-internals/routing';
<add>import Controller from '@ember/controller';
<add>
<ide> import { moduleFor, ApplicationTestCase, runTask } from 'internal-test-helpers';
<ide>
... | 1 |
Javascript | Javascript | implement adapter to abstract date/time features | 8a3eb8592892965eb6e99750d74ef8000a409976 | <ide><path>src/adapters/adapter.moment.js
<add>// TODO v3 - make this adapter external (chartjs-adapter-moment)
<add>
<add>'use strict';
<add>
<add>var moment = require('moment');
<add>var adapter = require('../core/core.adapters')._date;
<add>var helpers = require('../helpers/helpers.core');
<add>
<add>var FORMATS = {... | 6 |
Javascript | Javascript | remove usememo from apollo examples | ba246446ef8069e160c3a9a010549e89e222dd1e | <ide><path>examples/api-routes-apollo-server-and-client/apollo/client.js
<del>import React, { useMemo } from 'react'
<add>import React from 'react'
<ide> import Head from 'next/head'
<ide> import { ApolloProvider } from '@apollo/react-hooks'
<ide> import { ApolloClient } from 'apollo-client'
<ide> let apolloClient = nu... | 3 |
Python | Python | fix error in reduceat documentation | a258e3cfbd28fb48722c5c83999f6910ef8d827a | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide> ``ufunc.reduce(a[indices[i]:indices[i+1]])``, which becomes the i-th
<ide> generalized "row" parallel to `axis` in the final result (i.e., in a
<ide> 2-D array, for example, if `axis = 0`, it becomes the i-th row, but if
<del> ... | 1 |
PHP | PHP | add some tests for fifo naming conventions | f8da97b1ea5c27ad5ed12e5b4c93dfd7329930ac | <ide><path>tests/Queue/QueueSqsQueueTest.php
<ide> public function testGetQueueProperlyResolvesUrlWithPrefix()
<ide> $this->assertEquals($queueUrl, $queue->getQueue('test'));
<ide> }
<ide>
<add> public function testGetQueueProperlyResolvesFifoUrlWithPrefix()
<add> {
<add> $this->queueName = 'e... | 1 |
Javascript | Javascript | enable stable concurrent apis flag for 16.7 alpha | 275e76e83bc2be5dc0be9185ff747f383969289a | <ide><path>packages/react-dom/src/client/ReactDOM.js
<ide> import getComponentName from 'shared/getComponentName';
<ide> import invariant from 'shared/invariant';
<ide> import lowPriorityWarning from 'shared/lowPriorityWarning';
<ide> import warningWithoutStack from 'shared/warningWithoutStack';
<add>import {enableStab... | 11 |
Ruby | Ruby | add test cases for cache#fetch instrumentation | a948490b9c9dc31afb3ece482fb6dafb76c34225 | <ide><path>activesupport/test/caching_test.rb
<ide> def test_really_long_keys
<ide> assert_equal({key => "bar"}, @cache.read_multi(key))
<ide> assert @cache.delete(key)
<ide> end
<add>
<add> def test_cache_hit_instrumentation
<add> key = "test_key"
<add> subscribe_executed = false
<add> ActiveSuppor... | 1 |
Text | Text | add explaination for options used with tar | 74f842838efa9d463ef2b28ee6dc5c30c7f2a7f5 | <ide><path>guide/english/linux/how-to-extract-or-decompress-a-compressed-file-in-linux/index.md
<ide> Step 1: To Know the file type<br>
<ide> `file File-Name`
<ide>
<ide> Step 2: To Decompress a tar file<br>
<add>Here options used with "tar" depends on the archive type, use `man tar` for more details on how to use tar... | 1 |
Java | Java | refine testpropertysourceutils for direct use | fc839331a7bd2064ed9bb215b5f5ff5259f05f21 | <ide><path>spring-test/src/main/java/org/springframework/test/context/support/TestPropertySourceUtils.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<i... | 2 |
Ruby | Ruby | remove special case for symbols at find | e7e72ec7d7a5869a070c086cf5d5b2cb869e19a6 | <ide><path>activerecord/lib/active_record/core.rb
<ide> def inherited(child_class)
<ide> def find(*ids)
<ide> # We don't have cache keys for this stuff yet
<ide> return super unless ids.length == 1
<del> # Allow symbols to super to maintain compatibility for deprecated finders until Rails 5... | 1 |
Ruby | Ruby | restore support for model.pluck('sql fragment') | 3f352d040575c9a08d13e10fd6191fbf2fa674ba | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def pluck(column_name)
<ide> column = types[key]
<ide>
<ide> result.map do |attributes|
<del> value = klass.initialize_attributes(attributes)[key]
<add> raise ArgumentError, "Pluck expects to select just one attribute: #... | 2 |
Javascript | Javascript | remove unneeded string splitting | 88d2e699d8287218cc6cd4cc80e13e1055e07fce | <ide><path>test/parallel/test-cluster-dgram-1.js
<ide> const dgram = require('dgram');
<ide>
<ide>
<ide> if (common.isWindows) {
<del> common.skip('dgram clustering is currently not supported ' +
<del> 'on windows.');
<add> common.skip('dgram clustering is currently not supported on Windows.');
<ide> ... | 22 |
Python | Python | update tfrecord example | 05b234f993b7dba88e8f468a1c8aba272ee8a55a | <ide><path>examples/mnist_tfrecord.py
<ide> tensors, save the model weights, and then evaluate the
<ide> model using the numpy based Keras API.
<ide>
<del>Gets to 99.1% test accuracy after 78 epochs
<del>(there is still a lot of margin for parameter tuning).
<add>Gets to ~99.1% validation accuracy after 5 epochs
<add>... | 1 |
Python | Python | enable cache by default | 2a18b709989d3cbb27ca7c5162ec2e89b067324f | <ide><path>src/transformers/models/bert_generation/configuration_bert_generation.py
<ide> class BertGenerationConfig(PretrainedConfig):
<ide> <https://arxiv.org/abs/1803.02155>`__. For more information on :obj:`"relative_key_query"`, please refer to
<ide> `Method 4` in `Improve Transformer Model... | 2 |
Python | Python | add failing regression test for unsafe casts | 367c5a2138d4bfdeb41c0de9ac8db8b974656f2e | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_unicode_to_string_cast(self):
<ide> dtype='U')
<ide> assert_raises(UnicodeEncodeError, np.array, a, 'S4')
<ide>
<add> def test_unicode_to_string_cast_error(self):
<add> # gh-15790
<add> a = np.array([u'\x80'] * ... | 1 |
Javascript | Javascript | reverse change that was locking users out | 94e855040892afe1919398fd2dafbae92c1a36d9 | <ide><path>app.js
<ide> app.use(helmet.contentSecurityPolicy({
<ide>
<ide> app.use(function (req, res, next) {
<ide> // Make user object available in templates.
<del> fullUser = req.user ? req.user : null;
<del> if (fullUser) fullUser.password = null;
<del> res.locals.user = fullUser;
<add> res.locals.... | 1 |
Python | Python | set version to 2.1.0a0 | c0e596283bb6d799afea7c1c246b2b03b9437be0 | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy-nightly'
<del>__version__ = '2.1.0.dev5'
<add>__version__ = '2.1.0a0'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = ... | 1 |
Text | Text | use code markup/markdown in headers | e11b3274fb0d83b9a138ef0417e4a1d8ba996c83 | <ide><path>doc/api/tls.md
<ide> The first 3 are enabled by default. The last 2 `CCM`-based suites are supported
<ide> by TLSv1.3 because they may be more performant on constrained systems, but they
<ide> are not enabled by default since they offer less security.
<ide>
<del>## Class: tls.Server
<add>## Class: `tls.Serv... | 1 |
Ruby | Ruby | remove autoloads for removed classes | c70bd1345d0eb33f4558b1a0813c742f0fec0645 | <ide><path>actionview/lib/action_view.rb
<ide> module ActionView
<ide>
<ide> autoload_at "action_view/template/resolver" do
<ide> autoload :Resolver
<del> autoload :PathResolver
<ide> autoload :FileSystemResolver
<del> autoload :OptimizedFileSystemResolver
<del> autoload :FallbackFileSys... | 1 |
Ruby | Ruby | fix unscope with subquery | 22ca710f20c3c656811df006cbf1f4dbc359f7a6 | <ide><path>activerecord/lib/active_record/relation/where_clause.rb
<ide> def merge(other)
<ide> end
<ide>
<ide> def except(*columns)
<del> WhereClause.new(
<del> predicates_except(columns),
<del> binds_except(columns),
<del> )
<add> WhereClause.new(*except_predicates_... | 2 |
PHP | PHP | add the beforerefreshingdatabase function | 8c737f054fe54076556870ae6a5b4745b554a063 | <ide><path>src/Illuminate/Foundation/Testing/RefreshDatabase.php
<ide> trait RefreshDatabase
<ide> */
<ide> public function refreshDatabase()
<ide> {
<add> $this->beforeRefreshingDatabase();
<add>
<ide> $this->usingInMemoryDatabase()
<ide> ? $this->refreshInMemoryData... | 1 |
Go | Go | fix tests regarding the new test image | a8a6848ce0c3c54d00cfcd85727546e54a4dcf7e | <ide><path>api_test.go
<ide> func TestGetContainersTop(t *testing.T) {
<ide> t.Fatalf("Expected 2 processes, found %d.", len(procs))
<ide> }
<ide>
<del> if procs[0].Cmd != "sh" && procs[0].Cmd != "exe" {
<del> t.Fatalf("Expected `sleep` or `sh`, found %s.", procs[0].Cmd)
<add> if procs[0].Cmd != "sh" && procs[0].C... | 1 |
PHP | PHP | set the controller router on the routelistcommand | 7768a18fb4db21d82172abd875aca08e3d00267e | <ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php
<ide> use Illuminate\Routing\Route;
<ide> use Illuminate\Routing\Router;
<ide> use Illuminate\Console\Command;
<add>use Illuminate\Routing\Controller;
<ide> use Symfony\Component\Console\Input\InputOption;
<ide>
<ide> class RouteListCommand extends Comm... | 1 |
Text | Text | save option description in validations | 73fece000f93d811337e18f376acc6df3efed6b3 | <ide><path>guides/source/active_record_validations.md
<ide> class Person < ActiveRecord::Base
<ide> validates :age, numericality: true, on: :update
<ide>
<ide> # the default (validates on both create and update)
<del> # The following line is in review state and as of now, it is not running in any version of Rails... | 2 |
PHP | PHP | fix whitespace and add usage to doc block | bf43a5ee24838755dcc3007a59a55e1f800d6297 | <ide><path>lib/Cake/Controller/Component/AuthComponent.php
<ide> public function constructAuthorize() {
<ide> *
<ide> * `$this->Auth->allow(array('edit', 'add'));` or
<ide> * `$this->Auth->allow('edit', 'add');`
<add> * `$this->Auth->allow();` to allow all actions.
<ide> *
<ide> * allow() also supports '*' as a wi... | 1 |
Go | Go | relax restriction on ipamconfig | 24339bea4333f0d33a90d67becf13e067a632b41 | <ide><path>libnetwork/libnetwork_internal_test.go
<ide> func compareIpamConfList(listA, listB []*IpamConf) bool {
<ide> a = listA[i]
<ide> b = listB[i]
<ide> if a.PreferredPool != b.PreferredPool ||
<del> a.SubPool != b.SubPool || a.IsV6 != b.IsV6 ||
<add> a.SubPool != b.SubPool ||
<ide> !compareStringMaps... | 2 |
Python | Python | add serialization tests for tensorizer | cef547a9f05fc39ee667606b6561ea3f106a7018 | <ide><path>spacy/tests/serialize/test_serialize_tensorizer.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>from ..util import make_tempdir
<add>from ...pipeline import TokenVectorEncoder as Tensorizer
<add>
<add>import pytest
<add>
<add>
<add>def test_serialize_tensorizer_roundtrip_bytes... | 1 |
Javascript | Javascript | add serializer for regexp | 06cd79f17f69782386650cef7e7427c0b39bcf4d | <ide><path>lib/serialization/ObjectMiddleware.js
<ide>
<ide> const MapObjectSerializer = require("./MapObjectSerializer");
<ide> const PlainObjectSerializer = require("./PlainObjectSerializer");
<add>const RegExpObjectSerializer = require("./RegExpObjectSerializer");
<ide> const SerializerMiddleware = require("./Seria... | 2 |
Mixed | Javascript | find next todo id correctly. fixes #524 | 408941a74348fb0482b0f13c438ff9196e79ee24 | <ide><path>docs/recipes/WritingTests.md
<ide> export default function todos(state = initialState, action) {
<ide> switch (action.type) {
<ide> case ADD_TODO:
<ide> return [{
<del> id: state.length,
<add> id: state.reduce((maxId, todo) => Math.max(todo.id, maxId), -1) + 1,
<ide> completed: false,... | 3 |
PHP | PHP | add alias for phpunit\framework\error\notice | ae397d77386bf77c31b12f4e3fd1ac8fc45b9f02 | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> public function testUndefinedPropertyError()
<ide> $controller->Bar = true;
<ide> $this->assertTrue($controller->Bar);
<ide>
<del> if (class_exists(Notice::class)) {
<del> $this->expectException(Notice::class);
<del> ... | 2 |
Go | Go | remove job from rmi | e4afc379dcee66475f3becb34cd2675f3ee9279c | <ide><path>api/client/build.go
<ide> func (cli *DockerCli) CmdBuild(args ...string) error {
<ide> // And canonicalize dockerfile name to a platform-independent one
<ide> *dockerfileName, err = archive.CanonicalTarNameForPath(*dockerfileName)
<ide> if err != nil {
<del> return fmt.Errorf("Cannot canonicalize doc... | 4 |
Text | Text | move fishrock123 to emeritus | 7c2b4906faf8b4afdb2f917a5ec22c167b2f90d8 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Evan Lucas** \<evanlucas@me.com> (he/him)
<ide> * [fhinkel](https://github.com/fhinkel) -
<ide> **Franziska Hinkelmann** \<franziska.hinkelmann@gmail.com> (she/her)
<del>* [Fishrock123](https://github.com/Fishrock123... | 1 |
Go | Go | add new functions to unsupported file | 17719cab91e175a7bd11f9852e27638df1202b8b | <ide><path>pkg/netlink/netlink_unsupported.go
<ide> package netlink
<ide>
<ide> import (
<del> "fmt"
<add> "errors"
<ide> "net"
<ide> )
<ide>
<add>var (
<add> ErrNotImplemented = errors.New("not implemented")
<add>)
<add>
<ide> func NetworkGetRoutes() ([]Route, error) {
<del> return nil, fmt.Errorf("Not implemented"... | 1 |
Text | Text | add v4.0.0-beta.5 to changelog | 7457fdbffa3280ca3908db865340ce4b7595356d | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.0.0-beta.5 (October 11, 2021)
<add>
<add>- [#19761](https://github.com/emberjs/ember.js/pull/19761) [BREAKING] Require ember-auto-import >= 2 or higher to enable ember-source to become a v2 addon in the 4.x cycle
<add>
<ide> ### v4.0.0-beta.4 (September... | 1 |
Ruby | Ruby | improve string#to docs | 0822dc01f68eb262274fbedcf97a224e6457ff3b | <ide><path>activesupport/lib/active_support/core_ext/string/access.rb
<ide> def from(position)
<ide> self[position..-1]
<ide> end
<ide>
<del> # Returns the beginning of the string up to position. If the position is
<del> # negative, it is counted from the end of the string.
<add> # Returns a substring from th... | 1 |
Text | Text | update readme to remove .nspid | 2f35f8e2a88a378d7ff8eacf5346f9711a59489a | <ide><path>pkg/libcontainer/README.md
<ide> nsinit exec /bin/bash
<ide> If you wish to spawn another process inside the container while your current bash session is
<ide> running just run the exact same command again to get another bash shell or change the command. If the original process dies, PID 1, all other proce... | 1 |
Text | Text | correct globalid mixin name in the guides | 79e5c0de6d87a7957889a0ff1fe9063337e627a2 | <ide><path>guides/source/active_job_basics.md
<ide> class TrashableCleanupJob
<ide> end
<ide> ```
<ide>
<del>This works with any class that mixes in `ActiveModel::GlobalIdentification`, which
<add>This works with any class that mixes in `GlobalID::Identification`, which
<ide> by default has been mixed into Active Mode... | 1 |
PHP | PHP | fix form populating with array names | 02b8a36cb846a12493acee332ac6019069a5ebe1 | <ide><path>src/Illuminate/Html/FormBuilder.php
<ide> protected function getCheckedState($type, $name, $value, $checked)
<ide> switch ($type)
<ide> {
<ide> case 'checkbox':
<del> return $this->getCheckboxCheckedState($name, $checked);
<add> return $this->getCheckboxCheckedState($name, $value, $checked);
<id... | 1 |
Mixed | Python | add densenet models | caf05b43d1eed9f77c8b220be57f7bfd878abb76 | <ide><path>docs/templates/applications.md
<ide> Weights are downloaded automatically when instantiating a model. They are stored
<ide> - [InceptionV3](#inceptionv3)
<ide> - [InceptionResNetV2](#inceptionresnetv2)
<ide> - [MobileNet](#mobilenet)
<add>- [DenseNet](#densenet)
<ide> - [NASNet](#nasnet)
<ide>
<ide> All of ... | 5 |
Javascript | Javascript | fix package resolution for edge case | 34e3dd50348dd824c881c183824237532c7721c5 | <ide><path>lib/internal/modules/cjs/loader.js
<ide> function trySelf(parentPath, request) {
<ide> try {
<ide> return finalizeEsmResolution(packageExportsResolve(
<ide> pathToFileURL(pkgPath + '/package.json'), expansion, pkg,
<del> pathToFileURL(parentPath), cjsConditions).resolved, parentPath, pkgPath... | 5 |
Python | Python | add algorithm for casimir effect | 553624fcd4d7e8a4c561b182967291a1cc44ade9 | <ide><path>physics/casimir_effect.py
<add>"""
<add>Title : Finding the value of magnitude of either the Casimir force, the surface area
<add>of one of the plates or distance between the plates provided that the other
<add>two parameters are given.
<add>
<add>Description : In quantum field theory, the Casimir effect is ... | 1 |
Python | Python | add task adoption to celerykubernetesexecutor | 7338912a78b87be9abcec197bff609b63e396fea | <ide><path>airflow/executors/celery_kubernetes_executor.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<del>from typing import Dict, Optional, Set, Union
<add>from typing import Dict, List, Optional, Set, Un... | 2 |
PHP | PHP | fix doc block line | 1c6b605e06b29a411857563924241de6f2a6f37f | <ide><path>src/Datasource/EntityTrait.php
<ide> public function setDirty($property, $isDirty)
<ide> /**
<ide> * Checks if the entity is dirty or if a single property of it is dirty.
<ide> *
<del> * @param string $property the field to check the status for
<add> * @param string|null $property The f... | 1 |
Javascript | Javascript | add script to fix color maps | d55958ea47ae293282e8c06667a0910c60d6f956 | <ide><path>editor/js/Menubar.Edit.js
<ide> Menubar.Edit = function ( editor ) {
<ide> } );
<ide> options.add( option );
<ide>
<add> options.add( new UI.HorizontalRule() );
<add>
<add> // Set textures to sRGB. See #15903
<add>
<add> var option = new UI.Row();
<add> option.setClass( 'option' );
<add> option.setTextCon... | 2 |
PHP | PHP | add redirect exception support | d3b05f157d9eca6ee79ab045a06c0f8068e50ca8 | <ide><path>src/Error/Middleware/ErrorHandlerMiddleware.php
<ide> use Cake\Core\InstanceConfigTrait;
<ide> use Cake\Error\ErrorHandler;
<ide> use Cake\Error\ExceptionRenderer;
<add>use Cake\Http\Exception\RedirectException;
<ide> use Cake\Http\Response;
<ide> use InvalidArgumentException;
<add>use Laminas\Diactoros\Resp... | 4 |
PHP | PHP | enable further clickability in ide | c91bd6301d5479bdcb48d2df5114f21ce2a9de24 | <ide><path>src/Routing/Router.php
<ide> public static function plugin($name, $options = [], $callback = null)
<ide> /**
<ide> * Get the route scopes and their connected routes.
<ide> *
<del> * @return array
<add> * @return \Cake\Routing\Route\Route[]
<ide> */
<ide> public static function ... | 7 |
Go | Go | use raw strings for regexes (gosimple) | a0d58b22483e7d1638e459514dac4b34105ba9f7 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildLabelsCache(c *testing.T) {
<ide> func (s *DockerSuite) TestBuildNotVerboseSuccess(c *testing.T) {
<ide> // This test makes sure that -q works correctly when build is successful:
<ide> // stdout has only the image ID (long image ... | 5 |
Python | Python | remove explanation of exception due to out | bcc77f9229707714db43e8b69c5dacaa494aa184 | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide> y : ndarray
<ide> The corresponding cosine values.
<ide>
<del> Raises
<del> ------
<del> ValueError: invalid return array shape
<del> if `out` is provided and `out.shape` != `x.shape` (Se... | 1 |
Text | Text | add some focus items for atom ide | 17af5933f9e4b7c7abb37f697ff950e6656cf73b | <ide><path>docs/focus/2018-02-19.md
<ide> ## Highlights from the past week
<ide>
<ide> - Atom IDE
<add> - Converted atom-languageclient to TypeScript
<add> - ide-typescript updated to use TypeScript 2.7.2
<add> - Published updates to ide-typescript, ide-json, and ide-csharp to improve language server stability
<ide... | 1 |
Javascript | Javascript | remove registration code from initial markup | a2553bb46e13e171f43c0f6314879bd917a26396 | <ide><path>packages/next/build/webpack/plugins/pages-plugin.js
<ide> export default class PagesPlugin {
<ide> routeName = `/${routeName.replace(/(^|\/)index$/, '')}`
<ide>
<ide> const source = new ConcatSource(
<del> `__NEXT_REGISTER_PAGE('${routeName}', function() {\n`,
<add> `(windo... | 3 |
Javascript | Javascript | fix method comments | 2b389b43fb792cea18249f6598f4bcb81181767a | <ide><path>packages/ember-runtime/lib/controllers/array_controller.js
<ide> Ember.ArrayController = Ember.ArrayProxy.extend(Ember.ControllerMixin,
<ide> });
<ide> ```
<ide>
<del> @method
<del> @type String
<del> @default null
<add> @method lookupItemController
<add> @param {Object} object
<add> ... | 2 |
Ruby | Ruby | add tests for | 7487e79d4df7b05debb59e4177bc3810c29c9967 | <ide><path>actionpack/test/controller/routing_test.rb
<ide> def test_named_route_root_without_hash
<ide> assert_equal("/", routes.send(:root_path))
<ide> end
<ide>
<add> def test_named_route_root_with_hash
<add> rs.draw do
<add> root "hello#index", as: :index
<add> end
<add>
<add> routes = setup_f... | 1 |
Python | Python | add type hints for vilt models | 46d09410eba7892a47d15eb8a7b29b5b7b598a19 | <ide><path>src/transformers/models/vilt/modeling_vilt.py
<ide> import collections.abc
<ide> import math
<ide> from dataclasses import dataclass
<del>from typing import List, Optional, Tuple
<add>from typing import List, Optional, Tuple, Union
<ide>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> class Pre... | 1 |
Python | Python | support empty suffix (--suffix='') | 50dcc1b1a813f903cd5423e0c92ff8a64e939e0b | <ide><path>celery/bin/celeryd_multi.py
<ide> def splash(self):
<ide> self.note(c.cyan("celeryd-multi v%s" % __version__))
<ide>
<ide> def waitexec(self, argv, path=sys.executable):
<del> argstr = shlex.split(" ".join([path] + list(argv)))
<add> args = " ".join([path] + list(argv))
<add> ... | 1 |
Ruby | Ruby | add example label to active_support/configurable | e8ef58a697c4af99a7db44267cf6d975fb5d6091 | <ide><path>activesupport/lib/active_support/configurable.rb
<ide> def #{name}=(value); config.#{name} = value; end
<ide> end
<ide>
<ide> # Reads and writes attributes from a configuration <tt>OrderedHash</tt>.
<del> #
<ide> # Example:
<ide> #
<ide> # require 'active_support/configurable' ... | 1 |
Python | Python | drop fun_accepts_kwargs backport | b863168ac9bc0811cbf73409d4101be02fe34489 | <ide><path>celery/utils/functional.py
<ide> def firstmethod(method, on_call=None):
<ide> The list can also contain lazy instances
<ide> (:class:`~kombu.utils.functional.lazy`.)
<ide> """
<add>
<ide> def _matcher(it, *args, **kwargs):
<ide> for obj in it:
<ide> try:
<ide> def _matcher... | 1 |
Javascript | Javascript | fix hmr (#680) | 8df7f0da57cff349e63bf4fe939a53b2de35ef1d | <ide><path>client/next-dev.js
<del>import 'react-hot-loader/patch'
<ide> import patch from './patch-react'
<ide>
<ide> // apply patch first
<ide> patch((err) => {
<ide> next.renderError(err)
<ide> })
<ide>
<add>require('react-hot-loader/patch')
<add>
<ide> const next = require('./next')
<ide> window.next = next | 1 |
PHP | PHP | fix missing view variables | 7416c530a205cce38f070d89a12f1434eab90cbf | <ide><path>lib/Cake/Error/ExceptionRenderer.php
<ide> protected function _outputMessage($template) {
<ide> $this->controller->afterFilter();
<ide> $this->controller->response->send();
<ide> } catch (Exception $e) {
<add> $this->controller->set(array(
<add> 'error' => $e,
<add> 'name' => $e->getMessage()... | 2 |
PHP | PHP | fix $withcount binding problems | 8c37b0d0c0821225b4c89a7e3b4c4aeb1f560471 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function whereKeyNot($id)
<ide> public function where($column, $operator = null, $value = null, $boolean = 'and')
<ide> {
<ide> if ($column instanceof Closure) {
<del> $query = $this->model->newQueryWithoutScopes();
<add> ... | 6 |
Javascript | Javascript | check the origin of the blob urls | 39f7e724405c81b7e5905e003f431ac034b79cd5 | <ide><path>test/fixtures/url-tests.js
<ide> module.exports =
<ide> "input": "non-special://[:80/",
<ide> "base": "about:blank",
<ide> "failure": true
<add> },
<add> {
<add> "input": "blob:https://example.com:443/",
<add> "base": "about:blank",
<add> "href": "blob:https://example.com:443/",
<add> ... | 1 |
Java | Java | fix priority semantic | b78b2e9a03f5a6b7924dda0f8d709a5a9b23e24c | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java
<ide> else if (candidateLocal) {
<ide> }
<ide>
<ide> /**
<del> * Determine the candidate with the highest priority in the given set of beans.
<add> * Determine the candidate with the highest priority in ... | 2 |
Javascript | Javascript | add unit tests for .html( number ). close gh-1447 | ed291938c287d34fe1183e588e12372e540eb5e7 | <ide><path>test/unit/manipulation.js
<ide> function testText( valueObj ) {
<ide> $parentDiv = jQuery( "<div/>" );
<ide> $parentDiv.append( $childDiv );
<ide> $parentDiv.text("Dry off");
<del>
<add>
<ide> equal( $childDiv.data("leak"), undefined, "Check for leaks (#11809)" );
<ide> }
<ide>
<ide> function childNode... | 1 |
Ruby | Ruby | add retry handling to connection establishment too | 02f5de1bc93407e878cf4d92e2caf46d4c6e5409 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> def all_foreign_keys_valid?
<ide> def active?
<ide> end
<ide>
<del> # Disconnects from the database if already connected, and establishes a
<del> # new connection with the database. Implementors should call su... | 4 |
Python | Python | trap key errors in debug, not all 400 errors | b573a86977161b93152dddb5bfc43195335b3c59 | <ide><path>flask/app.py
<ide> def trap_http_exception(self, e):
<ide>
<ide> trap_bad_request = self.config['TRAP_BAD_REQUEST_ERRORS']
<ide>
<del> # if unset, trap based on debug mode
<del> if (trap_bad_request is None and self.debug) or trap_bad_request:
<add> # if unset, trap key errors ... | 2 |
Javascript | Javascript | use default priority of "" rather than null | 420fed15d38b4916bf0c2c4f3fece5aebb3f61dd | <ide><path>d3.js
<ide> function d3_selection(groups) {
<ide> };
<ide>
<ide> groups.style = function(name, value, priority) {
<del> if (arguments.length < 3) priority = null;
<add> if (arguments.length < 3) priority = "";
<ide>
<ide> // If no value is specified, return the first value.
<ide> if (argu... | 3 |
PHP | PHP | user() returning void | 172ef6a271af0776f9f587671d0da7ec18a25d95 | <ide><path>src/Illuminate/Auth/RequestGuard.php
<ide> public function user()
<ide> return $this->user;
<ide> }
<ide>
<del> $this->user = call_user_func($this->callback, $this->request);
<add> return $this->user = call_user_func($this->callback, $this->request);
<ide> }
<ide>
<ide... | 1 |
Mixed | Text | add syslog driver | eaecd8b1b5871a4d17be27e3615106587eec1d3a | <ide><path>daemon/config.go
<ide> func (config *Config) InstallFlags() {
<ide> opts.LabelListVar(&config.Labels, []string{"-label"}, "Set key=value labels to the daemon")
<ide> config.Ulimits = make(map[string]*ulimit.Ulimit)
<ide> opts.UlimitMapVar(config.Ulimits, []string{"-default-ulimit"}, "Set default ulimits f... | 8 |
Python | Python | allow negative vertex indices for obj model format | f58c4167cdb51cebc6d74e9f41d46b8d6c638bda | <ide><path>utils/exporters/obj/convert_obj_three.py
<ide> def parse_obj(fname):
<ide> uv_index = []
<ide> normal_index = []
<ide>
<add>
<add> # Precompute vert / normal / uv lists
<add> # for negative index lookup
<add> vertle... | 1 |
Text | Text | add tdsmith as maintainer | f7bb5190411006ef1f8a7f6e6a4587ecd7eaf70d | <ide><path>README.md
<ide> Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/homebre
<ide>
<ide> Who Are You?
<ide> ------------
<del>Homebrew's current maintainers are [Misty De Meo][mistydemeo], [Adam Vandenberg][adamv], [Jack Nagel][jacknagel], [Mike McQuaid][mikemcquaid] and [Brett Koonce][a... | 1 |
Text | Text | add note to volume-plugins | fb893cf6568f2b0cdf500bc3ecfb231fd374ffac | <ide><path>docs/extend/plugins_volume.md
<ide> storage systems, such as Amazon EBS, and enable data volumes to persist beyond
<ide> the lifetime of a single Docker host. See the [plugin documentation](plugins.md)
<ide> for more information.
<ide>
<del># Command-line changes
<add>## Command-line changes
<ide>
<ide> A ... | 1 |
Mixed | Javascript | add info option to common.expectserror | 3e0d40d4af6f437ecacb8b54d0d84ed0e5a4899f | <ide><path>test/common/README.md
<ide> Indicates if there is more than 1gb of total memory.
<ide> regular expression must match the `message` property of the expected error.
<ide> * `name` [<string>]
<ide> expected error must have this value for its `name` property.
<add> * `info` <Object> expected err... | 2 |
Go | Go | remove unused controller.taskid (unused) | bd7180fcf9efc6d0695f230cbb02b8a7ba621cfb | <ide><path>daemon/cluster/controllers/plugin/controller.go
<ide> type Controller struct {
<ide>
<ide> pluginID string
<ide> serviceID string
<del> taskID string
<ide>
<ide> // hook used to signal tests that `Wait()` is actually ready and waiting
<ide> signalWaitReady func() | 1 |
PHP | PHP | add keyby method to collection | 27d50a2f5548765df136ccd9bf77059bbe73d093 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function groupBy($groupBy)
<ide> return new static($results);
<ide> }
<ide>
<add> /**
<add> * Key an associative array by a field.
<add> *
<add> * @param string $keyBy
<add> * @return \Illuminate\Support\Collection
<add> */
<add> public function k... | 2 |
Go | Go | check the length of entrypoint before comparing | 71d2ff494694d7f18310c7994daa34dce33af98b | <ide><path>utils.go
<ide> func CompareConfig(a, b *Config) bool {
<ide> if len(a.Cmd) != len(b.Cmd) ||
<ide> len(a.Dns) != len(b.Dns) ||
<ide> len(a.Env) != len(b.Env) ||
<del> len(a.PortSpecs) != len(b.PortSpecs) {
<add> len(a.PortSpecs) != len(b.PortSpecs) ||
<add> len(a.Entrypoint) != len(b.Entrypoint) {
<id... | 1 |
Python | Python | share app instance between kerberos tests | 54edbaa65db38f1b858efc461e411d880e778c1e | <ide><path>tests/api/auth/backend/test_kerberos_auth.py
<ide> import json
<ide> import os
<ide> import socket
<del>import unittest
<ide> from datetime import datetime
<ide> from unittest import mock
<ide>
<ide> import pytest
<ide>
<ide> from airflow.api.auth.backend.kerberos_auth import CLIENT_AUTH
<ide> from airflow... | 1 |
Python | Python | use permission constants | 728518224b9c6469c74b66d9d2b47b13de00fc8c | <ide><path>airflow/api_connexion/endpoints/config_endpoint.py
<ide> from airflow.api_connexion import security
<ide> from airflow.api_connexion.schemas.config_schema import Config, ConfigOption, ConfigSection, config_schema
<ide> from airflow.configuration import conf
<add>from airflow.security import permissions
<ide>... | 39 |
Ruby | Ruby | expand mulasgn for enhancing readability | 4ccf8319bb3b6e9f5df507b4e9b58c649a3adc34 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
<ide> module Format
<ide> # It will be mapped to one of the standard Rails SQL types in the <tt>type</tt> attribute.
<ide> # +null+ determines if this column allows +NULL+ values.
<ide> def initialize(name, de... | 1 |
Ruby | Ruby | allow head in new formulas | b796174d2cfb6d912f7d349d800f5a9a77899d36 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_specs
<ide>
<ide> problem "Formulae should not have a `devel` spec" if formula.devel
<ide>
<del> if formula.head
<add> if formula.head && @versioned_formula
<ide> head_spec_message = "Formulae should not have a `HEAD` spec"
<del> ... | 1 |
Ruby | Ruby | remove hash noise | 7174307bd8b7ddb0bd3ec1a5937f03e8ce80a5e4 | <ide><path>activerecord/test/cases/tasks/mysql_rake_test.rb
<ide> def setup
<ide> $stdout.stubs(:print).returns(nil)
<ide> @error.stubs(:errno).returns(1045)
<ide> ActiveRecord::Base.stubs(:connection).returns(@connection)
<del> ActiveRecord::Base.stubs(:establish_connection).raises(@error).then.... | 1 |
Text | Text | update changelog for 2.15.0 | defdd1e27472a99875ce928bc138d46b3d2a770b | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### 2.15.0-beta.3 (August 8, 2017)
<add>### 2.15.0 (August 31, 2017)
<ide>
<add>- [#15577](https://github.com/emberjs/ember.js/pull/15577) [BUGFIX] Include missing sourcemaps in vendorTree.
<ide> - [#14848](https://github.com/emberjs/ember.js/pull/14848) [BUG... | 1 |
Python | Python | resize instance masks with bilinear method | b810694eb5b155c1e199aa704155c103b6f17ece | <ide><path>official/vision/beta/projects/panoptic_maskrcnn/dataloaders/panoptic_maskrcnn_input.py
<ide> def _process_mask(mask, ignore_label, image_info):
<ide> panoptic_instance_mask = panoptic_instance_mask[:, :, 0]
<ide>
<ide> labels['groundtruths'].update({
<del> 'gt_panoptic_category_mask': p... | 2 |
Text | Text | update multi-db docs | 2451a568aff34816f1df7bd92b158fb059771337 | <ide><path>guides/source/active_record_multiple_databases.md
<ide> The following features are not (yet) supported:
<ide>
<ide> * Automatic swapping for horizontal sharding
<ide> * Load balancing replicas
<del>* Dumping schema caches for multiple databases
<ide>
<ide> ## Setting up your application
<ide>
<ide> order ... | 1 |
Ruby | Ruby | improve performance of rev_list | 4e11656e01f4f182bf7357b2bedc2fb4f1be1fa2 | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def versions
<ide> class Formula
<ide> def versions
<ide> versions = []
<del> rev_list.each do |sha|
<add> rev_list do |sha|
<ide> version = version_for_sha sha
<ide> unless versions.include? version or version.nil?
<ide> yield version, s... | 1 |
Java | Java | add support for multiple js contexts | 872b697730291575c5c25556bc9b49f66863947c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java
<ide> public interface CatalystInstance extends MemoryPressureListener {
<ide> // which this prevents.
<ide> @DoNotStrip
<ide> void invokeCallback(ExecutorToken executorToken, final int callbackID, final NativeArray arguments);
... | 5 |
Javascript | Javascript | serialize the svg to a stream | 9b5086d6491fa05efe8680acfe430641ddd205fd | <ide><path>examples/node/domstubs.js
<ide> DOMElement.prototype = {
<ide> }
<ide> },
<ide>
<del> toString: function DOMElement_toString() {
<del> var buf = [];
<del> buf.push('<' + this.nodeName);
<del> if (this.nodeName === 'svg:svg') {
<del> buf.push(' xmlns:xlink="http://www.w3.org/1999/xlink"'... | 2 |
Python | Python | improve unit test | 1cd238a460ac7608654856864e8adf224a1b2a2c | <ide><path>tests/keras/test_sequential_model.py
<ide> def test_clone_functional_model():
<ide>
<ide> x_a = dense_1(input_a)
<ide> x_a = keras.layers.Dropout(0.5)(x_a)
<add> x_a = keras.layers.BatchNormalization()(x_a)
<ide> x_b = dense_1(input_b)
<ide> x_a = dense_2(x_a)
<ide> outputs = keras.la... | 1 |
Text | Text | add upcoming 16.4.0 changelog | d1be01f079ed20b06bc76a0e66eb0d2c615e3aad | <ide><path>CHANGELOG.md
<ide> Changes that have landed in master but are not yet released.
<ide> Click to see more.
<ide> </summary>
<add>
<add>### React
<add>
<add>* Add a new experimental `React.unstable_Profiler` component for measuring performance. ([@bvaughn](https://github.com/bvaughn) in [#12745](https... | 1 |
Text | Text | add primordials guidelines | 92f8c03ce620aee28a97f19603b91dad14637064 | <ide><path>doc/contributing/primordials.md
<add># Usage of primordials in core
<add>
<add>The file `lib/internal/per_context/primordials.js` subclasses and stores the JS
<add>built-ins that come from the VM so that Node.js built-in modules do not need to
<add>later look these up from the global proxy, which can be muta... | 1 |
Ruby | Ruby | use odie instead of onoe+exit | 43dafc9859e415ac85c4a082b23ceadd5813c196 | <ide><path>Library/Homebrew/brew.rb
<ide> def require?(path)
<ide> safe_system(*tap_commands)
<ide> exec HOMEBREW_BREW_FILE, cmd, *ARGV
<ide> else
<del> onoe "Unknown command: #{cmd}"
<del> exit 1
<add> odie "Unknown command: #{cmd}"
<ide> end
<ide> end
<ide> | 1 |
PHP | PHP | move mysql describe() and tests to dialect system | dc1f7662484910513e394d782bcd11dc0ebfab76 | <ide><path>lib/Cake/Database/Connection.php
<ide> public function lastInsertId($table) {
<ide> return $this->_driver->lastInsertId($table);
<ide> }
<ide>
<del>/**
<del> * Get the schema information for a given table/collection
<del> *
<del> * @param string $table The table/collection you want schema information for... | 5 |
Text | Text | fix subtitle of schemas for filtering | 4632b5daaed5a71a1be3e7d412a7f9a2e5520b90 | <ide><path>docs/api-guide/filtering.md
<ide> Generic filters may also present an interface in the browsable API. To do so you
<ide>
<ide> The method should return a rendered HTML string.
<ide>
<del>## Pagination & schemas
<add>## Filtering & schemas
<ide>
<ide> You can also make the filter controls available to the ... | 1 |
Text | Text | change video url for clockwise-notation challenge | 9e4583b1f36a4ecaabc48b51e1445bb992692676 | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/use-clockwise-notation-to-specify-the-margin-of-an-element.english.md
<ide> id: bad87fee1348bd9afdf08726
<ide> title: Use Clockwise Notation to Specify the Margin of an Element
<ide> challengeType: 0
<del>videoUrl: 'https://scrimba.com/c/cB7mBS... | 1 |
Text | Text | specify file names using standard format | 14867705e90b2b5f7e84dc7385d4ffba0c82b3e1 | <ide><path>docs/tutorial/4-authentication-and-permissions.md
<ide> Then, add the following property to **both** the `SnippetList` and `SnippetDetai
<ide>
<ide> If you open a browser and navigate to the browsable API at the moment, you'll find that you're no longer able to create new code snippets. In order to do so w... | 2 |
Go | Go | add json utils for testing | e5e8669c7289959a2634bd3f66f89eef1bd4ef01 | <ide><path>integration-cli/docker_utils.go
<ide> func inspectField(name, field string) (string, error) {
<ide> return strings.TrimSpace(out), nil
<ide> }
<ide>
<add>func inspectFieldJSON(name, field string) (string, error) {
<add> format := fmt.Sprintf("{{json .%s}}", field)
<add> inspectCmd := exec.Command(dockerBin... | 2 |
Javascript | Javascript | refactor the code in test-dns-ipv4 | 4d3b487b791606ea965f6280ce0eeea03d79b660 | <ide><path>test/internet/test-dns-ipv4.js
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide> const dns = require('dns');
<ide> const net = require('net');
<ide> const isIPv4 = net.isIPv4;
<ide>
<del>let expected = 0;
<del>let completed... | 1 |
Python | Python | fix typo in cli error | c2266aac489b126638b3403b7a1ff0d2a9368056 | <ide><path>airflow/cli/commands/dag_command.py
<ide> def set_is_paused(is_paused, args):
<ide> dag = DagModel.get_dagmodel(args.dag_id)
<ide>
<ide> if not dag:
<del> raise SystemExit(f"DAG: {args.dag_id} does not exit in 'dag' table")
<add> raise SystemExit(f"DAG: {args.dag_id} does not exist in ... | 1 |
Mixed | Ruby | update instructions for os x < 10.9 | 81e2fbd032886a50a9550a49288e73c547b137ec | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> def check_for_unsupported_macos
<ide> You are using macOS #{MacOS.version}.
<ide> #{who} do not provide support for this #{what}.
<ide> You will encounter build failures and other breakages.
<del> Please create pull-req... | 2 |
Text | Text | update codepen url in bug template | 77cdadb1dcb8296e43751ed2d1ea999d26ba3149 | <ide><path>.github/ISSUE_TEMPLATE/BUG.md
<ide> labels: 'type: bug'
<ide> Head to https://stackoverflow.com/questions/tagged/chart.js
<ide>
<ide> Bug reports MUST be submitted with an interactive example:
<del> https://codepen.io/pen?template=JXVYzq
<add> https://codepen.io/pen?template=BapRepQ
<ide>
<ide> Cha... | 1 |
Text | Text | swap example pr title | e59d58edf1f8b691d18377be13a410b6c5943384 | <ide><path>docs/how-to-open-a-pull-request.md
<ide> Some examples of good PR titles would be:
<ide> - `fix(a11y): improved search bar contrast`
<ide> - `feat: add more tests to HTML and CSS challenges`
<ide> - `fix(api,client): prevent CORS errors on form submission`
<del>- `docs(i18n): Chinese translation of local set... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.