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
Python
Python
add __doc__ to minimum
156af61c8d19024bb9a71436d645b019cf35670b
<ide><path>numpy/ma/core.py <ide> class _extrema_operation(object): <ide> `_minimum_operation`. <ide> <ide> """ <del> <del> @property <del> def __name__(self): <del> return self.ufunc.__name__ <add> def __init__(self, ufunc, compare, fill_value): <add> self.ufunc = ufunc <add> s...
1
Python
Python
improve error message when scons command fails
4db04374b605c4b7a11ff90afc48d169bcefacb9
<ide><path>numpy/distutils/command/scons.py <ide> def run(self): <ide> log.info("======== Executing scons command for pkg %s =========", pkg_name) <ide> st = os.system(cmdstr) <ide> if st: <del> print "status is %d" % st <del> msg...
1
Go
Go
add some verbosity to the push/pull
966cddf26bc5e86c47faab0ddc69b42e9bd8a9f2
<ide><path>commands.go <ide> func (srv *Server) CmdPush(stdin io.ReadCloser, stdout io.Writer, args ...string <ide> // If it fails, try to get the repository <ide> if localRepo, exists := srv.runtime.repositories.Repositories[local]; exists { <ide> fmt.Fprintf(stdout, "Pushing %s (%d tags) on %s...\n", local, le...
2
Ruby
Ruby
add missing punctuation mark [ci skip]
762f7daf55a91d2a20bedb4906c9dd04e031d74e
<ide><path>actionpack/lib/abstract_controller/base.rb <ide> def inherited(klass) # :nodoc: <ide> # instance methods on that abstract class. Public instance methods of <ide> # a controller would normally be considered action methods, so methods <ide> # declared on abstract classes are being removed. <d...
2
Javascript
Javascript
get backend challenge data on challenge mount
71cf4495cbf19d785c83a4027348db83939db50c
<ide><path>client/src/templates/Challenges/redux/index.js <ide> export const isResetModalOpenSelector = state => state[ns].modal.reset; <ide> export const isBuildEnabledSelector = state => state[ns].isBuildEnabled; <ide> export const successMessageSelector = state => state[ns].successMessage; <ide> <del>export const b...
1
PHP
PHP
add new style get methods to event
c013f513cbe3d44c6fa85230922892cca2acaac5
<ide><path>src/Event/Event.php <ide> public function __set($attribute, $value) <ide> * Returns the name of this event. This is usually used as the event identifier <ide> * <ide> * @return string <add> * @deprecated 3.4.0 use getName() instead. <ide> */ <ide> public function name() <ide> ...
2
Text
Text
add localport to http.request() options
9092afd1764a729c774f54a1e5cc4679d279c7bc
<ide><path>doc/api/http.md <ide> changes: <ide> avoided. See [`--insecure-http-parser`][] for more information. <ide> **Default:** `false` <ide> * `localAddress` {string} Local interface to bind for network connections. <add> * `localPort` {number} Local port to connect from. <ide> * `lookup` {Function} Cu...
1
Python
Python
add paused column to `dags list` sub-command
3ff5a35494271dac1b8a4d0051cfc8644a9d0aba
<ide><path>airflow/cli/commands/dag_command.py <ide> def dag_list_dags(args): <ide> "dag_id": x.dag_id, <ide> "filepath": x.filepath, <ide> "owner": x.owner, <add> "paused": x.get_is_paused(), <ide> }, <ide> ) <ide> <ide><path>airflow/models/dag.py <ide> def c...
3
Python
Python
add base for seq2seq finetuning
d889e0b71beb12511b7fcc346113035e0115ef0c
<ide><path>examples/run_seq2seq_finetuning.py <add># coding=utf-8 <add># Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. <add># Copyright (c) 2018 Microsoft and The HuggingFace Inc. All rights reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add...
1
Go
Go
fix tests after cli update
73e2f55543346b285585f350e53f82ae419f8849
<ide><path>integration-cli/docker_cli_config_test.go <ide> func (s *DockerSuite) TestConfigHTTPHeader(c *check.C) { <ide> c.Assert(headers["User-Agent"], checker.NotNil, check.Commentf("Missing User-Agent")) <ide> <ide> //TODO(tiborvass): restore dockerversion.Version instead of library-import <del> c.Assert(headers...
2
Ruby
Ruby
add more test cases for adding primary key
6783bcab7ab11f2ced4b711d3518422e35e3dc01
<ide><path>activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb <ide> def test_copy_table_with_composite_primary_keys <ide> Barcode.reset_column_information <ide> end <ide> <add> def test_custom_primary_key_in_create_table <add> connection = Barcode.connection <add> connect...
2
PHP
PHP
use assertcount assertion
872be61fb64b5d63da92134b216cdf36657e860f
<ide><path>tests/Database/DatabaseEloquentBelongsToManyTest.php <ide> public function testFindManyMethod() <ide> <ide> $result = $relation->findMany(['foo', 'bar']); <ide> <del> $this->assertEquals(2, count($result)); <add> $this->assertCount(2, $result); <ide> $this->assertInstanceOf(St...
8
Python
Python
fix exc_type in handle_failure
f2856773fd526d239dc7fb510b8ccba471a22cb8
<ide><path>celery/task/trace.py <ide> def handle_retry(self, task, store_errors=True): <ide> def handle_failure(self, task, store_errors=True): <ide> """Handle exception.""" <ide> req = task.request <del> _, type_, tb = sys.exc_info() <add> type_, _, tb = sys.exc_info() <ide> t...
1
Java
Java
add javadoc to pivot
b1c14f3a178e9f65c10add4a39ae78f10e2d630f
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public final static <T> Observable<Observable<T>> parallelMerge(Observable<Obser <ide> } <ide> <ide> /** <del> * Pivot GroupedObservable streams without serializing/synchronizing to a single stream first. <add> * Pivot GroupedObservable str...
1
PHP
PHP
add option for double encode
61f8477fab55a258f39a3d598f67f7cc0ffd6aca
<ide><path>src/Illuminate/Support/helpers.php <ide> function dd(...$args) <ide> * Escape HTML special characters in a string. <ide> * <ide> * @param \Illuminate\Contracts\Support\Htmlable|string $value <add> * @param bool $doubleEncode <ide> * @return string <ide> */ <del> function e...
1
Python
Python
set default celery_event_serializer to "json"
2bec9c7a99b3d8116cdd83afc66eeb1d805ef366
<ide><path>celery/conf.py <ide> "CELERY_EVENT_EXCHANGE": "celeryevent", <ide> "CELERY_EVENT_EXCHANGE_TYPE": "direct", <ide> "CELERY_EVENT_ROUTING_KEY": "celeryevent", <del> "CELERY_EVENT_SERIALIZER": "pickle", <add> "CELERY_EVENT_SERIALIZER": "json", <ide> "CELERY_RESULT_EXCHANGE": "celeryresults"...
1
Text
Text
add weekly focus document for 2018-05-07
e0f38409f4c683def738d9193c45fca0e8bef02e
<ide><path>docs/focus/2018-05-07.md <add>## Highlights from the past week <add> <add>- Atom Core <add> - Drafted Q2 plan for Atom Core <add>- GitHub Package <add>- Teletype <add>- Reactor Duty <add> <add>## Focus for week ahead <add> <add>- Atom Core <add> - Finish Atom CI experimentation <add> - Experiment with new...
1
Python
Python
fix treatment of main() and absl flags
9af0aad11399816be70bf69d8505bd85c5994525
<ide><path>official/mnist/mnist.py <ide> def validate_batch_size_for_multi_gpu(batch_size): <ide> raise ValueError(err) <ide> <ide> <del>def main(flags_obj): <add>def run_mnist(flags_obj): <add> """Run MNIST training and eval loop. <add> <add> Args: <add> flags_obj: An object containing parsed flag values. <...
7
Ruby
Ruby
reduce allocations in to_json's include option
8538dfdc084555673d18cfc3479ebef09f325c9c
<ide><path>activemodel/lib/active_model/serialization.rb <ide> def serializable_add_includes(options = {}) #:nodoc: <ide> return unless includes = options[:include] <ide> <ide> unless includes.is_a?(Hash) <del> includes = Hash[Array(includes).flat_map { |n| n.is_a?(Hash) ? n.to_a : [[n, {}]] }...
1
Text
Text
update changelog for 2.13.0
bf914c3f21f8050542b238790aabcf2452ed059d
<ide><path>CHANGELOG.md <ide> Changelog <ide> ========= <ide> <add>### 2.13.0 [See full changelog](https://gist.github.com/ichernev/0132fcf5b61f7fc140b0bb0090480d49) <add> <add>## Enhancements: <add>* [#2982](https://github.com/moment/moment/pull/2982) Add 'date' as alias to 'day' for startOf() and endOf(). <add>* [#2...
1
Javascript
Javascript
fix bracket placement
dd62944b79e0294880dd510961bd2a85df540f9f
<ide><path>src/scales/scale.linear.js <ide> }, <ide> // Get the correct value. If the value type is object get the x or y based on whether we are horizontal or not <ide> getRightValue: function(rawValue) { <del> return typeof (rawValue === "object" && rawValue !== null) ? (this.isHorizontal() ? rawValue.x : raw...
1
Java
Java
fix rounded image background (android)
56971bbb152babb0ee745d7abd55f5a5d35ae004
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java <ide> import com.facebook.drawee.controller.ControllerListener; <ide> import com.facebook.drawee.controller.ForwardingControllerListener; <ide> import com.facebook.drawee.drawable.AutoRotateDrawable; <add>import com.facebook.drawee...
1
Java
Java
avoid potential npe when onerror throws.
5b8845d4cfdbc2d563b90ce27db978b7e383d9e0
<ide><path>src/main/java/io/reactivex/subscribers/SafeSubscriber.java <ide> public void onError(Throwable t) { <ide> } <ide> } catch (Throwable e) { <ide> Exceptions.throwIfFatal(e); <del> t2.suppress(e); <del> <add> if (t2 == null) { <add> ...
1
Javascript
Javascript
initialize textdecoder once on blob.text()
76229fc216ffefc9e470b79bcab1752fd78e68ae
<ide><path>lib/internal/blob.js <ide> let ReadableStream; <ide> let URL; <ide> <ide> const enc = new TextEncoder(); <add>let dec; <ide> <ide> // Yes, lazy loading is annoying but because of circular <ide> // references between the url, internal/blob, and buffer <ide> class Blob { <ide> if (!isBlob(this)) <ide> ...
1
Javascript
Javascript
add testids to first example in scrollviewexample
2840e8abf91762814572d73db5be2a69eb78ec7c
<ide><path>packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js <ide> const { <ide> const nullthrows = require('nullthrows'); <ide> <ide> import {useState, useCallback} from 'react'; <add>import type {RNTesterExampleModuleItem} from '../../types/RNTesterTypes'; <ide> import type {ViewStyleProp} from 'react-n...
1
Javascript
Javascript
add repeater dsl and fix typo
fe03ea0d1f8814817bee5a35d745db16858eb490
<ide><path>src/scenario/DSL.js <ide> angular.scenario.dsl.input = function(selector) { <ide> }; <ide> }; <ide> <del>angular.scenario.dsl.expect = function(selector) { <del> return { <del> toEqual: function(expected) { <del> $scenario.addStep("Expect that " + selector + " equals '" + expected + "'", function...
3
Javascript
Javascript
replace assert.throws with common.expectserror
50afd901ea74b11352b4bc232c80cccede73f7fb
<ide><path>test/addons-napi/test_error/test.js <ide> assert.throws(() => { <ide> test_error.throwTypeError(); <ide> }, /^TypeError: type error$/); <ide> <del>assert.throws( <add>common.expectsError( <ide> () => test_error.throwErrorCode(), <del> common.expectsError({ <add> { <ide> code: 'ERR_TEST_CODE', <ide...
1
PHP
PHP
fix lint issue
53bde1293ef92964a98b9888e205beb29c95db5f
<ide><path>src/View/Form/EntityContext.php <ide> */ <ide> namespace Cake\View\Form; <ide> <add>use ArrayAccess; <ide> use Cake\Collection\Collection; <ide> use Cake\Datasource\EntityInterface; <ide> use Cake\Http\ServerRequest; <ide> use Cake\ORM\TableRegistry; <ide> use Cake\Utility\Inflector; <del>use ArrayAccess; ...
1
Python
Python
return valid openapi schema even when empty
d0b957760549710b90300b9a3a373d175238884c
<ide><path>rest_framework/schemas/openapi.py <ide> def get_info(self): <ide> def get_paths(self, request=None): <ide> result = {} <ide> <del> paths, view_endpoints = self._get_paths_and_endpoints(request) <del> <del> # Only generate the path prefix for paths that will be included <del> ...
2
Ruby
Ruby
make relative symlinks in pathname#install_symlink
aa7ed10968508f0390fba88c3bb2f2b0e8db9415
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def install_symlink *sources <ide> end <ide> end <ide> <del> def install_symlink_p src, new_basename = nil <del> if new_basename.nil? <del> dst = self+File.basename(src) <del> else <del> dst = self+File.basename(new_basename) <del> end <add...
2
Python
Python
fix recurrent tests
64449c196e3ad7f5a9e85b9c01e8f0ac83335232
<ide><path>keras/layers/recurrent.py <ide> def get_config(self): <ide> 'unroll': self.unroll, <ide> 'consume_less': self.consume_less} <ide> if self.stateful: <del> config['batch_input_shape'] = self.input_shape <add> config['batch_input_shape'] = self.i...
3
Python
Python
remove duplicated model declaration
06b6b96f933088ba36d4c98e13893274f29bed6a
<ide><path>tests/models.py <ide> class NullableOneToOneSource(RESTFrameworkModel): <ide> class BasicModelSerializer(serializers.ModelSerializer): <ide> class Meta: <ide> model = BasicModel <del> <del> <del># Models to test filters <del>class FilterableItem(models.Model): <del> text = models.CharField(max...
1
Javascript
Javascript
set hours to claim certs to 300
421c05e652ca4aba39982b13eabf139d82413f98
<ide><path>api-server/server/boot/certificate.js <ide> const completionHours = { <ide> [certTypes.apisMicroservices]: 300, <ide> [certTypes.qaV7]: 300, <ide> [certTypes.infosecV7]: 300, <del> [certTypes.sciCompPyV7]: 400, <del> [certTypes.dataAnalysisPyV7]: 400, <del> [certTypes.machineLearningPyV7]: 400 <add>...
1
Python
Python
add missing space in serializer error message
03b5438d072843dd5c5cba56535263df0bbafa82
<ide><path>rest_framework/serializers.py <ide> def raise_errors_on_nested_writes(method_name, serializer, validated_data): <ide> isinstance(validated_data[key], (list, dict)) <ide> for key, field in serializer.fields.items() <ide> ), ( <del> 'The `.{method_name}()` method does not support wri...
1
Text
Text
add teletype highlights from the past week
ae8c35b19adf73ff5a405623da7cd8e7621ba597
<ide><path>docs/focus/2018-05-07.md <ide> - Clear the branch name after a successful checkout [atom/github#1438](https://github.com/atom/github/pull/1438) <ide> - Improve readability of console git diagnostic messages [atom/github#1439](https://github.com/atom/github/pull/1439) <ide> - Teletype <add> - Shipped [Te...
1
Javascript
Javascript
make `model` an alias for `content` on controllers
49dd221e8cc0453f0e6ba260b109d88108b927a4
<ide><path>packages/ember-routing/lib/ext/controller.js <del>var get = Ember.get; <add>var get = Ember.get, set = Ember.set; <ide> <ide> Ember.ControllerMixin.reopen({ <ide> concatenatedProperties: ['needs'], <ide> Ember.ControllerMixin.reopen({ <ide> controllerFor: function(controllerName) { <ide> var contain...
1
PHP
PHP
update usage to "type" to "typefactory"
908acf9898cc0577acabba70687633351fb56c31
<ide><path>src/Database/FieldTypeConverter.php <ide> public function __construct(TypeMap $typeMap, Driver $driver) <ide> { <ide> $this->_driver = $driver; <ide> $map = $typeMap->toArray(); <del> $types = Type::buildAll(); <add> $types = TypeFactory::buildAll(); <ide> <ide> $si...
29
PHP
PHP
add test for request method() method
ad431e0267bb41eb97182bfdc33fe7853ef089a9
<ide><path>tests/Http/HttpRequestTest.php <ide> public function testInstanceMethod() <ide> $this->assertSame($request, $request->instance()); <ide> } <ide> <add> public function testMethodMethod() <add> { <add> $request = Request::create('', 'GET'); <add> $this->assertSame('GET', $reque...
1
Javascript
Javascript
extract fizz instruction set to build macro
a6bf466892c23a100991580895ddd80667c1b777
<ide><path>packages/react-dom-bindings/src/server/ReactDOMServerFormatConfig.js <ide> export { <ide> hoistResourcesToRoot, <ide> } from './ReactDOMFloatServer'; <ide> <add>import completeSegmentFunction from './fizz-instruction-set/completeSegmentFunctionString'; <add>import completeBoundaryFunction from './fizz-ins...
5
Ruby
Ruby
install python bindings properly
623b21a7bd2c346427f88e8711fb1e2d90aaa6e0
<ide><path>Library/Homebrew/download_strategy.rb <ide> def hgpath <ide> @path ||= %W[ <ide> #{which("hg")} <ide> #{HOMEBREW_PREFIX}/bin/hg <add> #{Formula.factory('mercurial').opt_prefix}/bin/hg <ide> #{HOMEBREW_PREFIX}/share/python/hg <ide> ].find { |p| File.executable? p } <ide> end
1
Java
Java
resolve @repeatable container in annotationutils
a0040245ca3bf968aec55db00f401e10b71a875f
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java <ide> public static Set<String> getMetaAnnotationTypes(AnnotatedElement element, Strin <ide> final Set<String> types = new LinkedHashSet<String>(); <ide> <ide> try { <del> Annotation annotation = getAnnotation(ele...
3
Text
Text
add links to writing specs doc
3a71b0470b4bcdbeb03289d2fec3401f29994667
<ide><path>docs/index.md <ide> * [Creating a Package](creating-a-package.md) <ide> * [Creating a Theme](creating-a-theme.md) <ide> * [Publishing a Package](publishing-a-package.md) <add>* [Writing Specs](writing-specs.md) <ide> * [Converting a TextMate Bundle](converting-a-text-mate-bundle.md) <ide> * [Converting a Tex...
2
Text
Text
add esm code examples in url.md
df744dbb9520076857155acdb95f2de12af6c77a
<ide><path>doc/api/url.md <ide> The `url` module provides utilities for URL resolution and parsing. It can be <ide> accessed using: <ide> <del>```js <add>```mjs <add>import url from 'url'; <add>``` <add> <add>```cjs <ide> const url = require('url'); <ide> ``` <ide> <ide> const myURL = <ide> <ide> Parsing the URL str...
1
PHP
PHP
use fewer lines to assign post/query params
d8f0b8ccbd11ff64cbc5729955a4086a4a98cf49
<ide><path>src/Routing/RequestActionTrait.php <ide> public function requestAction($url, array $extra = array()) { <ide> ['autoRender' => 0, 'return' => 1, 'bare' => 1, 'requested' => 1], <ide> $extra <ide> ); <del> $post = $query = []; <del> if (isset($extra['post'])) { <del> $post = $extra['post']; <del> ...
1
Python
Python
remove dev log message
7d09e4e1793e83b6f99a1ca8ef7d2b89c8724a1f
<ide><path>glances/outputs/glances_curses.py <ide> def display(self, stats, cs_status=None): <ide> if not self.args.disable_quicklook: <ide> # Quick look is in the place ! <ide> quicklook_width = screen_x - (stats_width + 8 + stats_number * self.space_between_column) <del> log...
1
Javascript
Javascript
use static number properties from primordials
1f9a5ae7aadd073ac61933226687a4483f8eccf4
<ide><path>lib/_http_client.js <ide> const { <ide> ArrayIsArray, <ide> Boolean, <add> NumberIsFinite, <ide> ObjectAssign, <ide> ObjectKeys, <ide> ObjectSetPrototypeOf, <ide> function ClientRequest(input, options, cb) { <ide> // but only if the Agent will actually reuse the connection! <ide> // If it'...
27
Python
Python
add regression test for the message options bug
773a389f2ae69384f09cbada8b4b2615a7c430de
<ide><path>celery/tests/test_messaging.py <add>import unittest <add>from celery.messaging import MSG_OPTIONS, get_msg_options, extract_msg_options <add> <add> <add>class TestMsgOptions(unittest.TestCase): <add> <add> def test_MSG_OPTIONS(self): <add> self.assertTrue(MSG_OPTIONS) <add> <add> def test_extrac...
1
Text
Text
fix dead links in packages.md
bf9ce95db77ab1e330a97530fd3d8f21dea50d3d
<ide><path>doc/api/packages.md <ide> Any number of custom conditions can be set with repeat flags. <ide> <ide> The `"import"`, `"require"`, `"node"` and `"default"` conditions are defined <ide> and implemented in Node.js core, <del>[as specified above](#esm_conditional_exports). <add>[as specified above](#packages_con...
1
Text
Text
fix documentation for has_many dependant options
391043ab04007bfd4c4c4c8e8d3308c1eae60175
<ide><path>guides/source/association_basics.md <ide> If you set the `:dependent` option to: <ide> <ide> * `:destroy`, when the object is destroyed, `destroy` will be called on its <ide> associated objects. <del>* `:delete`, when the object is destroyed, all its associated objects will be <add>* `:delete_all`, when the...
1
Python
Python
remove unused stdlib imports
e07b0fce7844a227fa05e4f20772ec9cc5bf9912
<ide><path>numpy/conftest.py <ide> """ <ide> from __future__ import division, absolute_import, print_function <ide> <del>import warnings <ide> import pytest <ide> import numpy <del>import importlib <ide> <ide> from numpy.core._multiarray_tests import get_fpu_mode <ide> <ide><path>numpy/core/setup.py <ide> import sys...
14
Go
Go
add pools for bufio readers & writers
2d2016b81b1f313cda2c8f145844b162352ba234
<ide><path>pkg/pools/pools.go <add>// +build go1.3 <add> <add>// Package pools provides a collection of pools which provide various <add>// data types with buffers. These can be used to lower the number of <add>// memory allocations and reuse buffers. <add>// <add>// New pools should be added to this package to allow t...
2
Java
Java
fix junit 4 to assertj migration bugs
449377908fe20d6f0cae5822e6db204b2abf8e00
<ide><path>spring-beans/src/test/java/org/springframework/beans/factory/support/DefinitionMetadataEqualsHashCodeTests.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (th...
12
Go
Go
fix pid 0, -1, negative values
735e25032659e4e46d8e1bf3c9fcc5b5ec785ec2
<ide><path>pkg/process/process_test.go <add>package process <add> <add>import ( <add> "fmt" <add> "os" <add> "os/exec" <add> "runtime" <add> "testing" <add>) <add> <add>func TestAlive(t *testing.T) { <add> for _, pid := range []int{0, -1, -123} { <add> t.Run(fmt.Sprintf("invalid process (%d)", pid), func(t *testing.T)...
2
Python
Python
fix multi-gpu evaluation in run_glue.py
6fc3d34abd2a73303afe6f9d558b25e4a83ff93a
<ide><path>examples/run_glue.py <ide> def evaluate(args, model, tokenizer, prefix=""): <ide> eval_dataloader = DataLoader(eval_dataset, sampler=eval_sampler, batch_size=args.eval_batch_size) <ide> <ide> # multi-gpu eval <del> if args.n_gpu > 1: <add> if args.n_gpu > 1 and not isinstance(m...
1
Python
Python
improve nested update and create testing
e1d98f77563abf49c4b19dcfb95f263515ae4087
<ide><path>rest_framework/serializers.py <ide> def create(self, validated_attrs): <ide> # If we don't do this explicitly they'd likely get a confusing <ide> # error at the point of calling `Model.objects.create()`. <ide> assert not any( <del> isinstance(field, BaseSerializer) and not ...
1
Javascript
Javascript
show red boxes on hl mode
fe77ce1c62d6c6dc2a2eb6a3e532bbf39482b0d3
<ide><path>Libraries/Utilities/HMRClient.js <ide> URL: ${host}:${port} <ide> Error: ${e.message}` <ide> ); <ide> }; <del> activeWS.onmessage = (m) => { <del> eval(m.data); // eslint-disable-line no-eval <add> activeWS.onmessage = ({data}) => { <add> data = JSON.parse(data); <add> if (data...
2
Python
Python
convert as_strided input to array first
e8590311a7b312711c7a4f40c1a15496e34d0ee6
<ide><path>numpy/lib/stride_tricks.py <ide> def __init__(self, interface, base=None): <ide> def as_strided(x, shape=None, strides=None, subok=False): <ide> """ Make an ndarray from the given array with the given shape and strides. <ide> """ <add> # first convert input to array, possibly keeping subclass <add...
2
Javascript
Javascript
exclude gyp from markdown link checker
a77f2ea6d436402ef4c197a470fcb3bd3a3037cd
<ide><path>tools/doc/checkLinks.js <ide> function findMarkdownFilesRecursively(dirPath) { <ide> entry.name !== 'changelogs' && <ide> entry.name !== 'deps' && <ide> entry.name !== 'fixtures' && <add> entry.name !== 'gyp' && <ide> entry.name !== 'node_modules' && <ide> entry.name !== 'o...
1
Ruby
Ruby
remove mocking on save, when not necessary
3c23f768440659c7c4eb20cea82032f71ef5556d
<ide><path>activerecord/test/cases/autosave_association_test.rb <ide> def save(*args) <ide> <ide> def test_should_save_changed_has_one_changed_object_if_child_is_saved <ide> @pirate.ship.name = "NewName" <del> @pirate.ship.expects(:save).once.returns(true) <del> <ide> assert @pirate.save <add> assert_e...
1
Javascript
Javascript
add message verification on assert.throws
3e7a414853fda90e6db28d1182ceb8ea61fbb83a
<ide><path>test/parallel/test-assert.js <ide> assert.doesNotThrow(makeBlock(a.deepEqual, /a/g, /a/g)); <ide> assert.doesNotThrow(makeBlock(a.deepEqual, /a/i, /a/i)); <ide> assert.doesNotThrow(makeBlock(a.deepEqual, /a/m, /a/m)); <ide> assert.doesNotThrow(makeBlock(a.deepEqual, /a/igm, /a/igm)); <del>assert.throws(makeB...
1
Mixed
Javascript
support uint8array input to send()
2dc1053b0a6800ab7baf052017d37eaebf5e5a7e
<ide><path>doc/api/dgram.md <ide> chained. <ide> <!-- YAML <ide> added: v0.1.99 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/11985 <add> description: The `msg` parameter can be an Uint8Array now. <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs...
3
Python
Python
update error messages several keras/utils module
edebe0f3b44714b30b8d3390da4fafa4df878651
<ide><path>keras/metrics_confusion_matrix_test.py <ide> def test_weighted_with_thresholds(self): <ide> def test_threshold_limit(self): <ide> with self.assertRaisesRegex( <ide> ValueError, <del> r'Threshold values must be in \[0, 1\]. Invalid values: \[-1, 2\]'): <add> r'Threshold values must...
5
Javascript
Javascript
allow function in byproperty configurations
b067bad545c1fe9022cbd13a866493a864b4ea34
<ide><path>lib/util/cleverMerge.js <ide> const mergeCache = new WeakMap(); <ide> /** @type {WeakMap<object, Map<string, Map<string|number|boolean, object>>>} */ <ide> const setPropertyCache = new WeakMap(); <ide> const DELETE = Symbol("DELETE"); <add>const DYNAMIC_INFO = Symbol("cleverMerge dynamic info"); <ide> <ide>...
2
Python
Python
add tests for template filter methods/decorators
820d099e82aa8ee01e1e82b85e2c6636d63be98a
<ide><path>flask/testsuite/blueprints.py <ide> def foo_foo_foo(): <ide> rv = c.get('/py/bar/123') <ide> assert rv.status_code == 404 <ide> <add> def test_template_filter(self): <add> bp = flask.Blueprint('bp', __name__) <add> @bp.app_template_filter() <add> def my_reverse(s): <a...
2
PHP
PHP
add missing exceptions docblocks.
3644e861ef9cbf6529e0e9f54e1636f403070ff2
<ide><path>src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php <ide> public function channel($channel, callable $callback) <ide> * @param \Illuminate\Http\Request $request <ide> * @param string $channel <ide> * @return mixed <add> * @throws \Symfony\Component\HttpKernel\Exception\HttpExcepti...
3
Text
Text
fix typo in docker-context-files/readme.md
81a977be6cb1fb6b309b6f92a7d248fe77a853e5
<ide><path>docker-context-files/README.md <ide> This folder is par of the Docker context. <ide> <ide> Most of other folders in Airflow are not part of the context in order to make the context smaller. <ide> <del>The Production [Dockerfile](../Dockerfile) copies th [docker-context-files](.) folder to the "build" <add>...
1
PHP
PHP
allow easy addition of custom drivers
68a4993372525cb154201ed02592e0086dc70877
<ide><path>src/Illuminate/Notifications/ChannelManager.php <ide> <ide> namespace Illuminate\Notifications; <ide> <add>use InvalidArgumentException; <ide> use Illuminate\Support\Manager; <ide> use Nexmo\Client as NexmoClient; <ide> use GuzzleHttp\Client as HttpClient; <ide> protected function createSlackDriver() <ide>...
1
Text
Text
add an article on vue-router
9d1ce7b83cea43961099e67c33c5ab5450d1f467
<ide><path>guide/english/vue/router/index.md <add>--- <add>title: Router <add>--- <add> <add>## Introduction <add>Vue router is the official router for Vue.js. With it you can easily create your Single Page Apps. <add> <add>## Basics <add>If you want to use Vue Router in your app, first you'll need to inject it in your...
1
Text
Text
fix minor version typo
cc358c2cadd16751f4df925b0a14a781de4a0160
<ide><path>docs/Installation.md <ide> Uninstallation is documented in the [FAQ](FAQ.md). <ide> <ide> <a name="1"><sup>1</sup></a> For 32-bit or PPC support see [Tigerbrew](https://github.com/mistydemeo/tigerbrew). <ide> <del><a name="2"><sup>2</sup></a> macOS 11 (Ventura) or higher is best and supported, 10.11 (El Ca...
1
Ruby
Ruby
avoid network call in `#initialize`
b54682f7091724fee2537b25a2dcc4d084d6a773
<ide><path>Library/Homebrew/download_strategy.rb <ide> def extract_ref(specs) <ide> end <ide> <ide> class AbstractFileDownloadStrategy < AbstractDownloadStrategy <del> attr_reader :temporary_path <del> <del> def initialize(url, name, version, **meta) <del> super <del> @temporary_path = Pathname.new("#{cached_l...
1
Ruby
Ruby
require xcode 10.2 on macos 10.14
01a342550285a92d8eef84e27721389c40029f76
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def latest_version <ide> <ide> def minimum_version <ide> case MacOS.version <del> when "10.14" then "10.0" <add> when "10.14" then "10.2" <ide> when "10.13" then "9.0" <ide> when "10.12" then "8.0" <ide> else "2.0" <i...
2
Text
Text
propose some sentence changes
c64bbfeacd031a5a09e263b85b0d7f51f36211bf
<ide><path>docs/advanced-features/customizing-babel-config.md <ide> description: Extend the babel preset added by Next.js with your own configs. <ide> </ul> <ide> </details> <ide> <del>Next.js includes the `next/babel` preset to your app, it includes everything needed to compile React applications and server-side co...
1
Text
Text
add missing labels to forms doc
e08be27b0c20b06ace289a2c2a4ac875adb4c163
<ide><path>docs/docs/forms.md <ide> HTML form elements work a little bit differently from other DOM elements in Reac <ide> <ide> ```html <ide> <form> <del> Name: <del> <input type="text" name="name" /> <add> <label> <add> Name: <add> <input type="text" name="name" /> <add> </label> <ide> <input type="submi...
1
Python
Python
add en_parser fixture
09807addff1519a543af2c5b7b21c94173983e23
<ide><path>spacy/tests/conftest.py <ide> def en_vocab(): <ide> return English.Defaults.create_vocab() <ide> <ide> <add>@pytest.fixture <add>def en_parser(): <add> return English.Defaults.create_parser() <add> <add> <ide> @pytest.fixture <ide> def de_tokenizer(): <ide> return German.Defaults.create_tokenize...
1
Python
Python
handle naive datetimes in rest apii
7478e18ee55eed80a2b8a8f7599b95d0955986c0
<ide><path>airflow/api_connexion/endpoints/dag_run_endpoint.py <ide> def post_dag_run(dag_id, session): <ide> """Trigger a DAG.""" <ide> if not session.query(DagModel).filter(DagModel.dag_id == dag_id).first(): <ide> raise NotFound(title="DAG not found", detail=f"DAG with dag_id: '{dag_id}' not found") ...
7
Ruby
Ruby
improve error reporting
06fe347de97975dc01e726f87bf07a56a6fb713e
<ide><path>Library/Homebrew/os/mac/ruby_keg.rb <ide> def change_dylib_id(id, file) <ide> @require_install_name_tool = true <ide> puts "Changing dylib ID of #{file}\n from #{file.dylib_id}\n to #{id}" if ARGV.debug? <ide> MachO::Tools.change_dylib_id(file, id) <add> rescue MachO::MachOError <add> ono...
1
Mixed
Ruby
fix dependency tracker bug
4640c346ea6c3a220152ec5749fb479062b273cc
<ide><path>actionview/CHANGELOG.md <add>* Fixed a dependency tracker bug that caused template dependencies not <add> count layouts as dependencies for partials. <add> <add> *Juho Leinonen* <add> <ide> * Extracted `ActionView::Helpers::RecordTagHelper` to external gem <ide> (`record_tag_helper`) and added ...
3
Text
Text
fix broken link on the upgrading guide
9bfd45de1530ca55e6f1205d14eb94902c1b27d6
<ide><path>docs/upgrading.md <ide> pnpm up next react react-dom eslint-config-next --latest <ide> <ide> ## Migrating shared features <ide> <del>Next.js 13 introduces a new [`app` directory](https://beta.nextjs.org/docs/routing/fundamentals) with new features and conventions. However, upgrading to Next.js 13 does **no...
1
Ruby
Ruby
add another todo
5a2ae61e66e517e1688ddcbc7c2ac822d780bbd5
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def validate_cc!(formula) <ide> # selector will be invoked if the formula fails with any version of clang. <ide> # I think we can safely remove this conditional and always invoke the <ide> # selector. <add> # The compiler priority logic in compilers....
1
Javascript
Javascript
fix reference to $scedelegateprovider
f7c8bcb329eb77b153cd91fcf35c5874a6f9a4b3
<ide><path>src/ng/sce.js <ide> function $SceDelegateProvider() { <ide> <ide> /** <ide> * @ngdoc method <del> * @name sceDelegateProvider#resourceUrlBlacklist <add> * @name $sceDelegateProvider#resourceUrlBlacklist <ide> * @function <ide> * <ide> * @param {Array=} blacklist When provided, replaces the...
1
Javascript
Javascript
add todo comment
5416b92392f38412960f08fc58ea6c75e56efaf4
<ide><path>src/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> case 'SA': <ide> case 'AIS': <ide> case 'TK': <add> // TODO implement these operators. <ide> info('graphic state ope...
1
PHP
PHP
update upgradeshell for app classes
b6040aec5a07f4b3de211cd861077a2dd578c903
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> public function locations() { <ide> } <ide> } <ide> } <add> <ide> $this->_moveViewFiles(); <add> $this->_moveAppClasses(); <add> <ide> $sourceDirs = array( <ide> '.' => array('recursive' => false), <ide> 'Console', <ide> protected function ...
1
Javascript
Javascript
add test case for checking typeof mgf1hash
12f5e0f8f84203e5b69c08906a898cea1313019c
<ide><path>test/parallel/test-crypto-keygen.js <ide> const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher); <ide> }); <ide> } <ide> } <add>{ <add> // Test RSA-PSS. <add> common.expectsError( <add> () => { <add> generateKeyPair('rsa-pss', { <add> modulusLength: 512, <add> ...
1
Javascript
Javascript
add a test for recursive context
4ba0eb91586c1f9800ced9c73b94568ff906ddb6
<ide><path>src/renderers/shared/fiber/__tests__/ReactIncremental-test.js <ide> describe('ReactIncremental', () => { <ide> 'ShowBoth {"locale":"en"}', <ide> ]); <ide> }); <add> <add> it('does not leak own context into context provider', () => { <add> var ops = []; <add> class Recurse extends React.Com...
1
Ruby
Ruby
fix minor typo in test name
17b846004d63f94b09b1a86986d9bfb3d64dda2a
<ide><path>activerecord/test/cases/attributes_test.rb <ide> def deserialize(*) <ide> end <ide> <ide> if current_adapter?(:PostgreSQLAdapter) <del> test "arrays types can be specified" do <add> test "array types can be specified" do <ide> klass = Class.new(OverloadedType) do <ide> at...
1
Java
Java
fix string equality
5b1341f4b572277c33a8ebf7ade1bfdb5de03437
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/Indexer.java <ide> * <ide> * @author Andy Clement <ide> * @author Phillip Webb <add> * @author Stephane Nicoll <ide> * @since 3.0 <ide> */ <ide> // TODO support multidimensional arrays <ide> public void generateCode(MethodVisitor mv...
1
Python
Python
create sol5.py (#425)
dd62f1b8023817ae5637812b3fa9acd815e4ef38
<ide><path>Project Euler/Problem 01/sol5.py <add>a=3 <add>result=0 <add>while a=<1000: <add> if(a%3==0 and a%5==0): <add> result+=a <add> elif(a%15==0): <add> result-=a <add>print(result)
1
Python
Python
initialize low data warning for debug-data parser
3906785b496e5fa5f735ba5a4a9238623b4d0b63
<ide><path>spacy/cli/debug_data.py <ide> def debug_data( <ide> ) <ide> <ide> if "parser" in pipeline: <add> has_low_data_warning = False <ide> msg.divider("Dependency Parsing") <ide> <ide> # profile sentence length
1
Javascript
Javascript
simplify "defaultdisplay" module
c62486fb4cb18fdb7dc5807231c964ed82ee6482
<ide><path>src/css/defaultDisplay.js <ide> function defaultDisplay( nodeName ) { <ide> .appendTo( doc.documentElement ); <ide> <ide> // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse <del> doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document; <add> doc = i...
1
Javascript
Javascript
fix typo in app / hello.js template
503fc854886eea6ae5c99b8efcf256c83687acf3
<ide><path>packages/create-next-app/templates/app/js/pages/api/hello.js <del>// Next.js API route support: https://nextjs.org/docs/api-routes/introduction} <add>// Next.js API route support: https://nextjs.org/docs/api-routes/introduction <ide> <ide> export default function handler(req, res) { <ide> res.status(200)....
1
Javascript
Javascript
prevent 403 reporting
4300ce44dbfd29bffd1e8a25d5e623bb16d91b50
<ide><path>api-server/server/middlewares/sentry-error-handler.js <ide> export default function sentryErrorHandler() { <ide> shouldHandleError(err) { <ide> // CSRF errors have status 403, consider ignoring them once csurf is <ide> // no longer rejecting people incorrectly. <del> retu...
1
Text
Text
remove usestate import
125103a9f72e81aa01e30d18618bd7f2d0cef734
<ide><path>docs/tutorials/quick-start.md <ide> export default configureStore({ <ide> Now we can use the React-Redux hooks to let React components interact with the Redux store. We can read data from the store with `useSelector`, and dispatch actions using `useDispatch`. Create a `src/features/counter/Counter.js` file w...
2
Javascript
Javascript
handle jquery objects of length 0
773efd0812097a89944c889c595485a5744326f6
<ide><path>src/Angular.js <ide> var <ide> msie = document.documentMode; <ide> <ide> <del>function isNodeList(obj) { <del> return typeof obj.length == 'number' && <del> typeof obj.item == 'function'; <del>} <del> <ide> /** <ide> * @private <ide> * @param {*} obj <ide> function isArrayLike(obj) { <ide> // ...
2
Python
Python
fix an english typo
af4ad9f368ac14a2745a7440b8ed8b25b6286245
<ide><path>numpy/ctypeslib.py <ide> class _ndptr(_ndptr_base): <ide> <ide> def _check_retval_(self): <ide> """This method is called when this class is used as the .restype <del> asttribute for a shared-library function. It constructs a numpy <add> attribute for a shared-library function. ...
1
Python
Python
add epsilon to the denominator, not to var
017c93c07dff11a55691dc1a0ddf0f18c91e5267
<ide><path>keras/backend/cntk_backend.py <ide> def batch_normalization(x, mean, var, beta, gamma, epsilon=1e-3): <ide> elif ndim(beta) == ndim(x) and shape(beta)[0] == 1: <ide> beta = _reshape_dummy_dim(beta, [0]) <ide> <del> return gamma * ((x - mean) / C.sqrt(var + epsilon)) + beta <add> return (x ...
1
Ruby
Ruby
raise a better exception for renaming long indexes
3e92806357543cdbabad813884a591fca69193c2
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb <ide> def remove_index!(table_name, index_name) #:nodoc: <ide> # rename_index :people, 'index_people_on_last_name', 'index_users_on_last_name' <ide> # <ide> def rename_index(table_name, old_name, new_name) <a...
3
Go
Go
use ms_private instead of ms_slave"
bd263f5b15b51747e3429179fef7fcb425ccbe4a
<ide><path>pkg/libcontainer/nsinit/mount.go <ide> const defaultMountFlags = syscall.MS_NOEXEC | syscall.MS_NOSUID | syscall.MS_NOD <ide> // is no longer in use, the mounts will be removed automatically <ide> func setupNewMountNamespace(rootfs, console string, readonly bool) error { <ide> // mount as slave so that the ...
1
Ruby
Ruby
convert array extension modules to class reopens
83fd1ae122cf1ee4ea2c52e0bd963462163516ca
<ide><path>activesupport/lib/active_support/core_ext/array.rb <del>require 'active_support/core_ext/util' <ide> require 'active_support/core_ext/array/wrap' <del>ActiveSupport.core_ext Array, %w(access conversions extract_options grouping random_access) <add>require 'active_support/core_ext/array/access' <add>require '...
6
PHP
PHP
fix issues with postgres
197c4794141e281cb17b710261933c445f411d64
<ide><path>src/TestSuite/Fixture/FixtureManager.php <ide> public function shutDown() { <ide> $fixture->drop($db); <ide> } <ide> } <del> $db->enableForeignKeys(); <ide> }); <ide> } <ide> } <ide><path>tests/Fixture/ArticlesTagFixture.php <ide> class ArticlesTagFixture extends TestFixture { <ide> ...
3
Ruby
Ruby
add password warning for pkg uninstall
94737ef41ddc5352289ed3e3f88f3bd34198197d
<ide><path>Library/Homebrew/cask/artifact/abstract_uninstall.rb <ide> def uninstall_script(directives, directive_name: :script, force: false, command: <ide> end <ide> <ide> def uninstall_pkgutil(*pkgs, command: nil, **_) <del> ohai "Uninstalling packages:" <add> ohai "Uninstalling packages (y...
1