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 |
|---|---|---|---|---|---|
Java | Java | add doesnotexist match to headerresultmatchers | 4bf5a0234c6c5c5d6591eb0fa52db3bf09573d9f | <ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/result/HeaderResultMatchers.java
<ide>
<ide> package org.springframework.test.web.servlet.result;
<ide>
<del>import static org.springframework.test.util.AssertionErrors.assertEquals;
<del>import static org.springframework.test.util.Assertio... | 2 |
Go | Go | change the wording of image verification warning | c97d8b1233bc17a9e58ce97473329ab5de59969a | <ide><path>graph/pull.go
<ide> func (s *TagStore) pullV2Tag(eng *engine.Engine, r *registry.Session, out io.Wri
<ide>
<ide> }
<ide>
<del> out.Write(sf.FormatStatus(repoInfo.CanonicalName+":"+tag, "The image you are pulling has been verified - This is a tech preview, don't rely on it for security yet."))
<add> out.Wr... | 1 |
Python | Python | add a sqlite backend. one test passes! | d3d1e599211c31e05d095b878de517dbb6fc998c | <ide><path>django/db/backends/sqlite3/base.py
<ide> from django.db.backends.sqlite3.client import DatabaseClient
<ide> from django.db.backends.sqlite3.creation import DatabaseCreation
<ide> from django.db.backends.sqlite3.introspection import DatabaseIntrospection
<add>from django.db.backends.sqlite3.schema import Data... | 3 |
Javascript | Javascript | use proper locale inheritance for the base locale | 9175f8256747ed8937c8197ba4575666e60020f3 | <ide><path>src/lib/locale/base-config.js
<add>import { defaultCalendar } from './calendar';
<add>import { defaultLongDateFormat } from './formats';
<add>import { defaultInvalidDate } from './invalid';
<add>import { defaultOrdinal, defaultOrdinalParse } from './ordinal';
<add>import { defaultRelativeTime } from './relat... | 8 |
Javascript | Javascript | fix various oversights with initial 176 deploy | 32b09dcb339861b9a6a9208ec2aa292682366670 | <ide><path>packages/ember-debug/lib/deprecate.js
<ide> import Logger from 'ember-console';
<ide> import { ENV } from 'ember-environment';
<ide>
<ide> import { registerHandler as genericRegisterHandler, invoke } from './handlers';
<del>
<add>/**
<add> @module @ember/debug
<add> @public
<add>*/
<ide> /**
<ide> Allows ... | 5 |
Javascript | Javascript | enable portable mode | d620da33f2dd57ef574c6c76535fa45f46569b23 | <ide><path>static/index.js
<ide> }
<ide> }
<ide>
<add> function isPortableMode() {
<add> // No portable mode on non-Windows
<add> if (process.platform !== 'win32') return false
<add>
<add> // DevMode? Nope
<add> var devMode = loadSettings &&
<add> (loadSettings.devMode || !loadSettings.resource... | 1 |
PHP | PHP | remove a useless isset | 46c8180b8e248fe18d7a39063080f25fd8874fec | <ide><path>src/Illuminate/Bus/Dispatcher.php
<ide> public function dispatchToQueue($command)
<ide> */
<ide> protected function pushCommandToQueue($queue, $command)
<ide> {
<del> if (isset($command->queue) && isset($command->delay)) {
<add> if (isset($command->queue, $command->delay)) {
<ide> ... | 1 |
Javascript | Javascript | replace var with let and const | 722fc72fc29a8f19c0225532f4a2024f8377367d | <ide><path>lib/_tls_common.js
<ide> exports.SecureContext = SecureContext;
<ide> exports.createSecureContext = function createSecureContext(options) {
<ide> if (!options) options = {};
<ide>
<del> var secureOptions = options.secureOptions;
<add> let secureOptions = options.secureOptions;
<ide> if (options.honorC... | 1 |
Python | Python | add tests for log2, exp2, and logaddexp | 13f253448bad23e1aa2fe5322899fc281ac06f12 | <ide><path>numpy/core/tests/test_umath.py
<ide> def test_power_complex(self):
<ide> assert_almost_equal(x**14, [-76443+16124j, 23161315+58317492j,
<ide> 5583548873 + 2465133864j])
<ide>
<add>class TestLog2(TestCase):
<add> def test_log2_values(self) :
<add> x = [1... | 1 |
Java | Java | support non-public anno. attr. values in annoutils | b830d7362df24ed0953009b8172a7d67f7b73fe9 | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
<ide> import org.springframework.core.BridgeMethodResolver;
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.util.ObjectUtils;
<add>import org.springframework.util.ReflectionUtils;
<ide>
<ide> /*... | 4 |
Javascript | Javascript | introduce queuemicrotask api | be189cd81905a735f08a8519c62a707658c7fb27 | <ide><path>Libraries/Core/Timers/queueMicrotask.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> * @flow
<add> */
<add>
<add>'... | 2 |
Go | Go | treat systemd listeners as all other | 6f9fa64645cd67eb10a9c8bd903df518d572f50d | <ide><path>api/server/server.go
<ide> func (s *Server) ServeApi(protoAddrs []string) error {
<ide> if err != nil {
<ide> return err
<ide> }
<del> s.servers = append(s.servers, srv)
<add> s.servers = append(s.servers, srv...)
<ide>
<del> go func(proto, addr string) {
<del> logrus.Infof("Listening for HTTP o... | 2 |
Text | Text | remove invalid hash in link | ebc58d7a220011c6f067f12918adb583f2192859 | <ide><path>doc/api/net.md
<ide> If `allowHalfOpen` is set to `true`, when the other end of the socket
<ide> sends a FIN packet, the server will only send a FIN packet back when
<ide> [`socket.end()`][] is explicitly called, until then the connection is
<ide> half-closed (non-readable but still writable). See [`'end'`][... | 1 |
Python | Python | use simplejson if available | 72d1fec69a587ac23f27534fbbbc350021a6d179 | <ide><path>libcloud/dns/drivers/pointdns.py
<ide> 'PointDNSDriver'
<ide> ]
<ide>
<del>import json
<add>try:
<add> import simplejson as json
<add>except ImportError:
<add> import json
<ide>
<ide> from libcloud.common.types import MalformedResponseError
<ide> from libcloud.common.pointdns import PointDNSConne... | 2 |
PHP | PHP | use newentity() to create session | ccec0ce00d11cbc9f4c0d4feabd95e313584a2af | <ide><path>src/Http/Session/DatabaseSession.php
<ide> */
<ide> namespace Cake\Http\Session;
<ide>
<del>use Cake\ORM\Entity;
<ide> use Cake\ORM\Locator\LocatorAwareTrait;
<ide> use SessionHandlerInterface;
<ide>
<ide> public function write($id, $data): bool
<ide> if (!$id) {
<ide> return false;
<i... | 4 |
Javascript | Javascript | remove redandant second argument to `parsefloat()` | 56b9b209ca692c43bc81bacf7e98de5845bed2ee | <ide><path>src/ng/directive/input.js
<ide> function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
<ide>
<ide> attr.$observe('min', function(val) {
<ide> if (isDefined(val) && !isNumber(val)) {
<del> val = parseFloat(val, 10);
<add> val = parseFloat(val);
<ide> }
<ide> ... | 1 |
Python | Python | kafka key name needs to be bytes | 62dbeb369efe8bb6c09b719835463ba71d2cec09 | <ide><path>glances/exports/glances_kafka.py
<ide>
<ide> from kafka import KafkaProducer
<ide> import json
<add>import codecs
<ide>
<ide>
<ide> class Export(GlancesExport):
<ide> def export(self, name, columns, points):
<ide> # value=JSON dict
<ide> try:
<ide> self.client.send(self.topic,
... | 1 |
Ruby | Ruby | remove anemic indirection | 1029c49c32cf3b8c7a013753783ab37f364ad65d | <ide><path>lib/action_cable/connection/base.rb
<ide> def transmit(data)
<ide> @websocket.send data
<ide> end
<ide>
<del>
<del> def handle_exception
<del> close
<del> end
<del>
<ide> def close
<ide> logger.error "Closing connection"
<ide> @websocket.close
<ide><path>... | 2 |
PHP | PHP | fix partial path being set for non existent paths | a4d96ec74d3745669e0860db42b7070557186769 | <ide><path>src/Filesystem/File.php
<ide> public function md5($maxsize = 5)
<ide> public function pwd()
<ide> {
<ide> if ($this->path === null) {
<del> $this->path = $this->Folder->slashTerm($this->Folder->pwd()) . $this->name;
<add> $dir = $this->Folder->pwd();
<add> if ... | 2 |
Javascript | Javascript | clarify examples of route parameters | fe84f7bef8b7c63158cf1699f3a62793b555fce8 | <ide><path>src/ngRoute/route.js
<ide> function $RouteProvider(){
<ide> * `$location.path` will be updated to add or drop the trailing slash to exactly match the
<ide> * route definition.
<ide> *
<del> * * `path` can contain named groups starting with a colon (`:name`). All characters up
<add> * ... | 1 |
Text | Text | use single quotes in --tls-cipher-list | cf32b4c74d84774e5465f6307acbbdb85846a634 | <ide><path>doc/api/tls.md
<ide> instance, the following makes `ECDHE-RSA-AES128-GCM-SHA256:!RC4` the default TLS
<ide> cipher suite:
<ide>
<ide> ```bash
<del>node --tls-cipher-list="ECDHE-RSA-AES128-GCM-SHA256:!RC4" server.js
<add>node --tls-cipher-list='ECDHE-RSA-AES128-GCM-SHA256:!RC4' server.js
<ide>
<del>export N... | 1 |
Python | Python | reimplement function with_metaclass() | c8f19f0afc8d49a68ec969097e6127d17706b6dc | <ide><path>flask/_compat.py
<ide> def implements_to_string(cls):
<ide> def with_metaclass(meta, *bases):
<ide> # This requires a bit of explanation: the basic idea is to make a
<ide> # dummy metaclass for one level of class instantiation that replaces
<del> # itself with the actual metaclass. Because of int... | 1 |
Python | Python | add exception when trying to reuse regularizers | 2a319c72552381a98c7a11b339c623cb999164b6 | <ide><path>keras/regularizers.py
<ide>
<ide> class Regularizer(object):
<ide> def set_param(self, p):
<add> if hasattr(self, 'p'):
<add> raise Exception('Regularizers cannot be reused')
<ide> self.p = p
<ide>
<ide> def set_layer(self, layer):
<add> if hasattr(self, 'layer'):
<... | 1 |
Javascript | Javascript | move module.hash and .renderedhash into chunkgraph | 3aa22804985c8174d0dc1a7ba4a707dd787fa8ea | <ide><path>lib/BannerPlugin.js
<ide>
<ide> "use strict";
<ide>
<add>const validateOptions = require("schema-utils");
<ide> const { ConcatSource } = require("webpack-sources");
<ide> const ModuleFilenameHelpers = require("./ModuleFilenameHelpers");
<ide> const Template = require("./Template");
<ide>
<del>const valida... | 15 |
Text | Text | update chinese translation of react and redux | 88ae7a5df88b1ff2a981ee734d52e6135bece9b8 | <ide><path>curriculum/challenges/chinese/03-front-end-libraries/react-and-redux/connect-redux-to-react.chinese.md
<ide> id: 5a24c314108439a4d4036147
<ide> title: Connect Redux to React
<ide> challengeType: 6
<ide> isRequired: false
<del>videoUrl: ''
<del>localeTitle: 将Redux连接到React
<add>forumTopicId: 301426
<add>locale... | 10 |
Ruby | Ruby | clarify application of homebrew_artifact_domain | b2796ec7fb9641becb8f8486b3695668447e2ee3 | <ide><path>Library/Homebrew/env_config.rb
<ide> module EnvConfig
<ide> description: "Prefix all download URLs, including those for bottles, with this value. " \
<ide> "For example, `HOMEBREW_ARTIFACT_DOMAIN=http://localhost:8080` will cause a " \
<ide> "formula with the... | 2 |
Javascript | Javascript | avoid extra look for getting dependencies | 95702bd1ae6d169779f7085a7e69974571a8d557 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> _processModuleDependencies(module, callback) {
<ide> const dependencies = new Map();
<ide>
<add> const sortedDependencies = [];
<add>
<ide> let currentBlock = module;
<ide>
<ide> let factoryCacheKey;
<ide> let factoryCacheValue;
<add> let factor... | 1 |
Text | Text | update build badge | 45a709f16ecd1a17d36ffce80786aeb222036d14 | <ide><path>README.md
<ide> It helps you write applications that behave consistently, run in different envir
<ide> You can use Redux together with [React](https://reactjs.org), or with any other view library.
<ide> It is tiny (2kB, including dependencies), and has a rich ecosystem of addons.
<ide>
<del>![GitHub Workflo... | 1 |
Text | Text | fix sentence in with-context-api example | 3d3855093a6e3d76c3aeb5cb385c8f2f6ef3788c | <ide><path>examples/with-context-api/README.md
<ide> now
<ide>
<ide> This example shows how to use react context api in our app.
<ide>
<del>It provides an example of using `pages/_app.js` to include include the context api provider and then shows how both the `pages/index.js` and `pages/about.js` can both share the s... | 1 |
Mixed | Javascript | remove unused parameter, improve docs | ba0b4e43e442926bfb9389a42aa7393f91e6748a | <ide><path>doc/api/crypto.md
<ide> otherwise `err` will be `null`. By default, the successfully generated
<ide> `derivedKey` will be passed to the callback as a [`Buffer`][]. An error will be
<ide> thrown if any of the input arguments specify invalid values or types.
<ide>
<add>If `digest` is `null`, `'sha1'` will be ... | 2 |
Python | Python | fix small use_cache typo in the docs | 942fa8ced860775e4fad556f5bc4fb99b1eef618 | <ide><path>src/transformers/generation_tf_utils.py
<ide> def generate(
<ide> [What are attention masks?](../glossary#attention-mask)
<ide> decoder_start_token_id (`int`, *optional*):
<ide> If an encoder-decoder model starts decoding with a different token than *bos*, the id o... | 2 |
Python | Python | add `is_decoder` attribute to `pretrainedconfig` | 488a6641513face9c03b537b6fe3210dbdb39f36 | <ide><path>transformers/configuration_utils.py
<ide> def __init__(self, **kwargs):
<ide> self.torchscript = kwargs.pop('torchscript', False)
<ide> self.use_bfloat16 = kwargs.pop('use_bfloat16', False)
<ide> self.pruned_heads = kwargs.pop('pruned_heads', {})
<add> self.is_decoder = kwargs.... | 1 |
Go | Go | add instructions on how to get help on commands | d128d9e669d840160f9f2357324f710d59a7a7d7 | <ide><path>docker/flags.go
<ide> func init() {
<ide> } {
<ide> help += fmt.Sprintf(" %-10.10s%s\n", command[0], command[1])
<ide> }
<add> help += "\nRun 'docker COMMAND --help' for more information on a command."
<ide> fmt.Fprintf(os.Stderr, "%s\n", help)
<ide> }
<ide> } | 1 |
PHP | PHP | apply fixes from styleci | 2b5d80b51ec020641fdfb3d2be255385a9c337ea | <ide><path>src/Illuminate/Bus/PendingBatch.php
<ide> public function dispatchAfterResponse()
<ide> /**
<ide> * Dispatch an existing batch.
<ide> *
<del> * @param \Illuminate\Bus\Batch $batch
<add> * @param \Illuminate\Bus\Batch $batch
<ide> * @return void
<ide> *
<ide> * @throws \... | 1 |
Ruby | Ruby | initialize ivars in tests | 3abd0593a62e2be118b783efe55f63ab3324a4d7 | <ide><path>actionpack/test/controller/caching_test.rb
<ide> def forbidden
<ide>
<ide> def with_layout
<ide> @cache_this = MockTime.now.to_f.to_s
<add> @title = nil
<ide> render :text => @cache_this, :layout => true
<ide> end
<ide>
<ide><path>actionpack/test/controller/render_other_test.rb
<ide> def ren... | 3 |
Ruby | Ruby | remove unneeded deprecation silence | d06d71bb54b17d9a7e1b9d1e7084c2bc1e7a38bc | <ide><path>actionview/test/template/render_test.rb
<ide> def test_render_does_not_use_unregistered_extension_and_template_handler
<ide> end
<ide>
<ide> def test_render_ignores_templates_with_malformed_template_handlers
<del> ActiveSupport::Deprecation.silence do
<del> %w(malformed malformed.erb malformed.h... | 1 |
Python | Python | fix decode error for ssh log | daedc998519f534f604fdecb86b101fa4eb5b5dd | <ide><path>airflow/providers/ssh/operators/ssh.py
<ide> def execute(self, context) -> Union[bytes, str, bool]:
<ide> if recv.recv_ready():
<ide> line = stdout.channel.recv(len(recv.in_buffer))
<ide> agg_stdout += line
<del> ... | 1 |
Javascript | Javascript | add option to indicate bundle encoding | 15006cf0b482bedd20fa407971c26e450ca083da | <ide><path>local-cli/bundle/__tests__/saveBundleAndMap-test.js
<ide> describe('saveBundleAndMap', () => {
<ide> saveBundleAndMap(
<ide> codeWithMap,
<ide> 'ios',
<del> bundleOutput
<add> bundleOutput,
<add> 'utf8',
<ide> );
<ide>
<del> expect(fs.writeFileSync.mock.calls[0]).toEqua... | 4 |
Python | Python | make like= in python functions strict | 1d7ad47a7bddfbdcdedbebe81ca87636f2e746ab | <ide><path>numpy/core/_asarray.py
<ide> """
<ide> from .overrides import (
<ide> array_function_dispatch,
<del> array_function_dispatch_like,
<ide> set_array_function_like_doc,
<ide> set_module,
<ide> )
<ide> def asarray(a, dtype=None, order=None, *, like=None):
<ide>
<ide> """
<ide> if like is ... | 4 |
Ruby | Ruby | pass the actual filter, not a string | 19b9f7ba334108bd669ec6ae3bdf11d707a7d689 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def apply(next_callback)
<ide> result = user_callback.call target, value
<ide> env.halted = halted_lambda.call result
<ide> if env.halted
<del> target.send :halted_callback_hook, @filter.inspect
<add>... | 2 |
PHP | PHP | fix cs errors | 5cb5c142b3165eb8d1d21e05724338e55352f76b | <ide><path>tests/TestCase/Database/ConnectionTest.php
<ide> */
<ide> class ConnectionTest extends TestCase
<ide> {
<del>
<ide> public $fixtures = ['core.Things'];
<ide>
<ide> /**
<ide><path>tests/TestCase/Database/ExpressionTypeCastingIntegrationTest.php
<ide> public function toDatabase($value, Driver $d)
<id... | 19 |
Javascript | Javascript | remove indexof, using reverse map instead | 683a8f0de8d9155a34f1ba422cc5d12ee4133b9b | <ide><path>src/fonts.js
<ide> var Font = (function Font() {
<ide> tables.push(cmap);
<ide> }
<ide>
<add> var cidToGidMap = properties.cidToGidMap || [];
<add> var gidToCidMap = [0];
<add> for (var j = cidToGidMap.length - 1; j >= 0; j--) {
<add> var gid = cidToGidMap[j];... | 1 |
Ruby | Ruby | fix typo in constraints method documentation | 5f4550889dcab7def4122d37a3379d57627f68e2 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def namespace(path, options = {})
<ide> # if the user should be given access to that route, or +false+ if the user should not.
<ide> #
<ide> # class Iphone
<del> # def self.matches(request)
<add> # def s... | 1 |
Java | Java | decrease allocation rate for cacheoperation | c73e52412acd7cb50c229d5c273760843bc97188 | <ide><path>spring-context/src/main/java/org/springframework/cache/annotation/SpringCacheAnnotationParser.java
<ide> private <T extends Annotation> Collection<CacheOperation> lazyInit(Collection<Ca
<ide> }
<ide>
<ide> CacheableOperation parseCacheableAnnotation(AnnotatedElement ae, DefaultCacheConfig defaultConfig, C... | 6 |
Javascript | Javascript | add getcachekey() to the open source transformer | 8fe24da6c21b2d1514e207799f062bc555d9eb70 | <ide><path>packager/src/Bundler/index.js
<ide> class Bundler {
<ide> /* $FlowFixMe: in practice it's always here. */
<ide> this._transformer = new Transformer(opts.transformModulePath, maxWorkerCount);
<ide>
<del> const getTransformCacheKey = (src, filename, options) => {
<del> return transformCacheKey... | 4 |
Java | Java | fix flaky maybefromcallabletest.noerrorloss | f61b2299d03baf16b5838510c42e1b4345db4a6e | <ide><path>src/test/java/io/reactivex/internal/operators/maybe/MaybeFromActionTest.java
<ide> public void noErrorLoss() throws Exception {
<ide> @Override
<ide> public void run() throws Exception {
<ide> cdl1.countDown();
<del> cdl2.await();
<add> ... | 3 |
Javascript | Javascript | remove redundant regexp flag | e2fa5a7e04ce961be81306e8095e65a911b7af7b | <ide><path>tools/doc/preprocess.js
<ide> const path = require('path');
<ide> const fs = require('fs');
<ide>
<ide> const includeExpr = /^@include\s+([\w-]+)(?:\.md)?$/gmi;
<del>const commentExpr = /^@\/\/.*$/gmi;
<add>const commentExpr = /^@\/\/.*$/gm;
<ide>
<ide> function processIncludes(inputFile, input, cb) {
<ide... | 1 |
Javascript | Javascript | preserve env in test cases | c879c9a5c6481df313bc90529588de44cf1e55f0 | <ide><path>test/parallel/test-benchmark-crypto.js
<ide> const argv = ['--set', 'algo=sha256',
<ide> '--set', 'v=crypto',
<ide> '--set', 'writes=1',
<ide> 'crypto'];
<del>
<del>const child = fork(runjs, argv, { env: { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 } });
<add>const env = Objec... | 7 |
Python | Python | set version to 2.0.18 | 413530b269638327ed1321e6755af9a486e3c002 | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '2.0.18.dev0'
<add>__version__ = '2.0.18'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = 'https:/... | 1 |
Text | Text | fix typos in contributing.md | 5bda05548bcfd473b3b112fe388ae64f862af86d | <ide><path>CONTRIBUTING.md
<ide> functional guidelines of the Node.js project.
<ide>
<ide> ## Pull Requests
<ide>
<del>Pull Requests are the way in which concrete changes are made to the code,
<del>documentation, dependencies, and tools contained with the `nodejs/node`
<del>repository.
<add>Pull Requests are the way ... | 1 |
Python | Python | add non-cudnn lstm option and perfzero benchmarks. | 4d93d89408a7ef4947e6a853b03665e84f600f0d | <ide><path>official/staging/shakespeare/shakespeare_benchmark.py
<ide> def benchmark_1_gpu(self):
<ide> FLAGS.batch_size = 64
<ide> self._run_and_report_benchmark()
<ide>
<add> def benchmark_1_gpu_no_cudnn(self):
<add> """Benchmark 1 gpu with CuDNN disabled."""
<add> self._setup()
<add> FLAGS.num_gpu... | 2 |
Text | Text | fix some table problems in changelog.md | e44eb0e6cefbba77808f64a2adc514c28239753d | <ide><path>CHANGELOG.md
<ide> release.
<ide> <b><a href="doc/changelogs/CHANGELOG_V4.md#4.6.1">4.6.1</a></b><br/>
<ide> <a href="doc/changelogs/CHANGELOG_V4.md#4.6.0">4.6.0</a><br/>
<ide> <a href="doc/changelogs/CHANGELOG_V4.md#4.5.0">4.5.0</a><br/>
<del><a href="doc/changelogs/CHANGELOG_V4.md#4.4.7">4.4.7</a></b>
<del... | 1 |
Ruby | Ruby | drop unnecessary nil checks | da2a2ab74899a659ba8fe5e9c178fb3c409d8d37 | <ide><path>Library/Homebrew/formula.rb
<ide> def set_spec(name)
<ide>
<ide> def determine_active_spec
<ide> case
<del> when head && ARGV.build_head? then head # --HEAD
<del> when devel && ARGV.build_devel? then devel # --devel
<del> when stable then stable
<del>... | 1 |
Ruby | Ruby | remove unused require and unused model stub | b351061b839b005586b9ac3f08fa8dcd768e3428 | <ide><path>activemodel/test/cases/helper.rb
<ide> require 'active_model'
<del>require 'active_support/core_ext/string/access'
<ide>
<ide> # Show backtraces for deprecated behavior for quicker cleanup.
<ide> ActiveSupport::Deprecation.debug = true
<ide><path>activemodel/test/models/project.rb
<del>class Project
<del> ... | 2 |
Javascript | Javascript | fix chart resizing issue | 94763bff351236ff5936280737b594701f0528b8 | <ide><path>src/platform/platform.dom.js
<ide> function createResizeObserver(chart, type, listener) {
<ide> // @ts-ignore until https://github.com/microsoft/TypeScript/issues/37861 implemented
<ide> const observer = new ResizeObserver(entries => {
<ide> const entry = entries[0];
<del> resize(entry.contentRect.width... | 2 |
Python | Python | remove mention of `ipython -p numpy`. | 48b204b641e899ee649eb57ad0652312c083067e | <ide><path>numpy/__init__.py
<ide>
<ide> Viewing documentation using IPython
<ide> -----------------------------------
<del>Start IPython with the NumPy profile (``ipython -p numpy``), which will
<del>import `numpy` under the alias ``np``. Then, use the ``cpaste`` command to
<del>paste examples into the shell. To se... | 1 |
PHP | PHP | has with dot notation | f71da22b7114d5ae0ea270a385bdec088d5a5f8c | <ide><path>src/Illuminate/Session/Store.php
<ide> protected function ageFlashData()
<ide> $this->put('flash.new', array());
<ide> }
<ide>
<add> /**
<add> * {@inheritdoc}
<add> */
<add> public function has($name)
<add> {
<add> return ! is_null($this->get($name));
<add> }
<add>
<ide> /**
<ide> * {@inheritdoc}
<... | 1 |
PHP | PHP | fix authcomponent tests for windows newlines | 26d526f6240239094aa714b86093cd36fbb9a1f3 | <ide><path>cake/tests/cases/libs/controller/components/auth.test.php
<ide> function testAjaxLogin() {
<ide> $Dispatcher =& new Dispatcher();
<ide> $Dispatcher->dispatch('/ajax_auth/add', array('return' => 1));
<ide> $result = ob_get_clean();
<del> $this->assertEqual("Ajax!\nthis is the test element", $result);
<... | 1 |
Javascript | Javascript | sanitize the string tag passed to dom components | a4e923b7fcc0313a0894740ba0ef60ba12ba9573 | <ide><path>src/browser/ui/ReactDOMComponent.js
<ide> var omittedCloseTags = {
<ide> // NOTE: menuitem's close tag should be omitted, but that causes problems.
<ide> };
<ide>
<add>// We accept any tag to be rendered but since this gets injected into abitrary
<add>// HTML, we want to make sure that it's a safe tag.
<a... | 2 |
PHP | PHP | reduce scope of primitive typehints | 029d9ba3928e91f90a9ac131be7c9dea25a946ae | <ide><path>src/Controller/ControllerFactory.php
<ide> public function invoke($controller): ResponseInterface
<ide> }
<ide>
<ide> // Primitive types are passed args as they can't be looked up in the container.
<del> if (in_array($typeName, ['float', 'int', 'string', 'bool'], true)) {
... | 1 |
Ruby | Ruby | increase timeout for some integration tests | bf9659423a0954482a0bd62f5130e41fe9831c39 | <ide><path>Library/Homebrew/test/cmd/reinstall_spec.rb
<ide> it_behaves_like "parseable arguments"
<ide> end
<ide>
<del>describe "brew reinstall", :integration_test do
<add>describe "brew reinstall", :integration_test, timeout: 120 do
<ide> it "reinstalls a Formula" do
<ide> install_test_formula "testball"
<id... | 2 |
PHP | PHP | apply fixes from styleci | 89c093f86ba0916724713208ee3b21194fba3e78 | <ide><path>tests/Integration/Database/DatabaseCustomCastsTest.php
<ide> public function test_custom_casting()
<ide> $this->assertEquals(['name' => 'Taylor'], $model->array_object->toArray());
<ide> $this->assertEquals(['name' => 'Taylor'], $model->array_object_json->toArray());
<ide> $this->asse... | 1 |
Text | Text | add changelogs for util | 2426aaf11c2b4f00e388633e84e12431e15ead3c | <ide><path>doc/api/util.md
<ide> util.format(1, 2, 3); // '1 2 3'
<ide> ## util.inherits(constructor, superConstructor)
<ide> <!-- YAML
<ide> added: v0.3.0
<add>changes:
<add> - version: v5.0.0
<add> pr-url: https://github.com/nodejs/node/pull/3455
<add> description: The `constructor` parameter can refer to an E... | 1 |
Python | Python | fix mypy providers | dad2f8103be954afaedf15e9d098ee417b0d5d02 | <ide><path>airflow/providers/apache/spark/hooks/spark_sql.py
<ide> def __init__(
<ide> yarn_queue: Optional[str] = None,
<ide> ) -> None:
<ide> super().__init__()
<add> options: Dict = {}
<add> conn: Optional[Connection] = None
<ide>
<ide> try:
<del> conn: "Optional... | 10 |
Python | Python | add basic tree structure and text display | a3f5dc51673278364b23c2e5b15d7439ac0a9924 | <ide><path>glances/core/glances_processes.py
<ide> import psutil
<ide> import re
<ide>
<add>PROCESS_TREE = True # TODO remove that and take command line parameter
<add>
<add>
<add>class ProcessTreeNode(object):
<add>
<add> def __init__(self, process=None):
<add> self.process = process # is None for tree ro... | 1 |
Javascript | Javascript | remove unreachable code | 5c783ee75102da682519be14cd11260a04a42593 | <ide><path>packages/react-reconciler/src/ReactFiberScheduler.js
<ide> function completeUnitOfWork(workInProgress: Fiber): Fiber | null {
<ide> nextRenderExpirationTime,
<ide> );
<ide> }
<del> let next = nextUnitOfWork;
<ide> stopWorkTimer(workInProgress);
<ide> resetChildExpirat... | 1 |
PHP | PHP | avoid boolean cast | f79d34ec7e8e65e5c342f8c77dc50468d47073c5 | <ide><path>src/Datasource/EntityTrait.php
<ide> public function dirty($property = null, $isDirty = null) {
<ide> return isset($this->_dirty[$property]);
<ide> }
<ide>
<del> if (!$isDirty) {
<add> if ($isDirty === false) {
<ide> unset($this->_dirty[$property]);
<ide> return false;
<ide> } | 1 |
Java | Java | update copyright header | bf6e7d0c26199d65d840a081cba4d20ada78dcc5 | <ide><path>spring-aop/src/main/java/org/springframework/aop/framework/adapter/AfterReturningAdviceInterceptor.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licen... | 1 |
PHP | PHP | reduce code duplication | db3ce0f08be8c95a08d0b29fb401de87e2d55c28 | <ide><path>src/Error/Debugger.php
<ide> protected static function export($var, DebugContext $context): NodeInterface
<ide> {
<ide> $type = static::getType($var);
<ide> switch ($type) {
<add> case 'float':
<add> case 'string':
<add> case 'resource':
<add> c... | 1 |
Ruby | Ruby | install service after linking | 391b02f870e7db3d3208729ab636372f6677daf4 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def finish
<ide>
<ide> ohai "Finishing up" if verbose?
<ide>
<del> install_service
<del>
<ide> keg = Keg.new(formula.prefix)
<ide> link(keg)
<ide>
<add> install_service
<add>
<ide> fix_dynamic_linkage(keg) if !@poured_bottle || !formula.bot... | 1 |
PHP | PHP | fix whitespace errors | ccd33782dac71ddf4a758cae68282eadb3c0c0a3 | <ide><path>lib/Cake/Test/Case/Utility/FolderTest.php
<ide> public function testCopyWithSkip() {
<ide> *
<ide> * @return void
<ide> */
<del> function testCopyWithOverwrite() {
<add> public function testCopyWithOverwrite() {
<ide> extract($this->_setupFilesystem());
<ide>
<ide> $Folder = new Folder($folderOne);
<... | 1 |
Go | Go | add a benchmark for taruntar | 76429cc11f6e2bd731e9ee77a2a538f15ef80eea | <ide><path>archive/archive_test.go
<ide> func TestUntarUstarGnuConflict(t *testing.T) {
<ide> t.Fatalf("%s not found in the archive", "root/.cpanm/work/1395823785.24209/Plack-1.0030/blib/man3/Plack::Middleware::LighttpdScriptNameFix.3pm")
<ide> }
<ide> }
<add>
<add>func prepareUntarSourceDirectory(numberOfFiles int,... | 1 |
Javascript | Javascript | fix diffiehellman `generator` validation | 88bc8645e733ee3f9b86272b6c1ae9c1da7790c9 | <ide><path>lib/internal/crypto/diffiehellman.js
<ide> function DiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding) {
<ide> generator = DH_GENERATOR;
<ide> } else if (typeof generator === 'number') {
<ide> validateInt32(generator, 'generator');
<del> } else if (generator !== true) {
<add> } else if... | 2 |
Javascript | Javascript | add a `kind` property to gutters | dbace171df4c31a931997ef75fa1f451ba86dcbc | <ide><path>spec/text-editor-spec.js
<ide> describe('TextEditor', () => {
<ide> const gutter = editor.addGutter(options)
<ide> expect(editor.getGutters().length).toBe(2)
<ide> expect(editor.getGutters()[1]).toBe(gutter)
<add> expect(gutter.kind).toBe('decorated')
<add> })
<add>
<add> ... | 4 |
PHP | PHP | change method visibility | 46186ccbb8069514eac8b0dc5951f12afaa69dee | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function register(ServiceProvider $provider, $options = array())
<ide> *
<ide> * @return void
<ide> */
<del> protected function loadDeferredProviders()
<add> public function loadDeferredProviders()
<ide> {
<ide> // We will simply spin through ea... | 1 |
Python | Python | add simple .dmg build to paver | 89d874eaa8a0c95fde53f705a9b17706f5567cf5 | <ide><path>pavement.py
<ide> import os
<ide> import sys
<ide> import subprocess
<add>import re
<ide> try:
<ide> from hash import md5
<ide> except ImportError:
<ide> import paver.doctools
<ide> import paver.path
<ide> from paver.easy import options, Bunch, task, needs, dry, sh, call_task
<del>from paver.setuputils i... | 1 |
Go | Go | add quoted string flag value | e4c1f0772923c3069ce14a82d445cd55af3382bc | <ide><path>opts/quotedstring.go
<add>package opts
<add>
<add>// QuotedString is a string that may have extra quotes around the value. The
<add>// quotes are stripped from the value.
<add>type QuotedString string
<add>
<add>// Set sets a new value
<add>func (s *QuotedString) Set(val string) error {
<add> *s = QuotedStri... | 2 |
Javascript | Javascript | copy jsm folder when getting new three.js | aa2db5e656e377ff0157ab21154246149267847c | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> { expand: true, cwd: `${threePath}/build/`, src: 'three.js', dest: `${basePath}/`, },
<ide> { expand: true, cwd: `${threePath}/build/`, src: 'three.min.js', dest: `${basePath}/`, },
<ide> { expand: true, cwd: `${... | 1 |
Javascript | Javascript | use an apostrophe rather than a prime (#566) | 369bc873f8e41ac29ec844bb4dee532cb086daa5 | <ide><path>examples/nested-components/pages/index.js
<ide> export default () => (
<ide> <hr />
<ide>
<ide> <Post title='The final blog post'>
<del> <P>C'est fin</P>
<add> <P>C’est fin</P>
<ide> </Post>
<ide>
<ide> <style jsx>{` | 1 |
Ruby | Ruby | add url to #find_versions object | 077fb350a5c10aad93c3b01a5406dfdd3ad229ce | <ide><path>Library/Homebrew/livecheck/strategy/extract_plist.rb
<ide> def self.versions_from_items(items, regex = nil, &block)
<ide> # versions from `plist` files.
<ide> #
<ide> # @param cask [Cask::Cask] the cask to check for version information
<add> # @param url [String, nil] an altern... | 1 |
PHP | PHP | add notes to iterator unset calls | c485a4db6314a51f97fdd324ec1ecda497bb3eca | <ide><path>src/Cache/Engine/FileEngine.php
<ide> public function clear(): bool
<ide> $cleared[] = $path;
<ide> }
<ide>
<add> // possible inner iterators need to be unset too in order for locks on parents to be released
<ide> unset($fileInfo);
<ide> }
<ide>
<a... | 3 |
Javascript | Javascript | add test for watching prop | ad91fc63b3b09297eb1b0a410a1f63c75db63fa0 | <ide><path>test/Compiler.test.js
<ide> describe("Compiler", () => {
<ide> });
<ide> });
<ide> });
<add> it("should set compiler.watching correctly", function (done) {
<add> const compiler = webpack({
<add> context: __dirname,
<add> mode: "production",
<add> entry: "./c",
<add> output: {
<add> path: "/... | 1 |
PHP | PHP | update flashcomponent to use flashmessage | e664b61dce341cb80b4c7aa3ed2d6700d8bc39e7 | <ide><path>src/Controller/Component/FlashComponent.php
<ide>
<ide> use Cake\Controller\Component;
<ide> use Cake\Http\Exception\InternalErrorException;
<del>use Cake\Http\Session;
<add>use Cake\Http\FlashMessage;
<ide> use Cake\Utility\Inflector;
<ide> use Throwable;
<ide>
<ide> class FlashComponent extends Component... | 2 |
Java | Java | avoid unnecessary wrapping for sqlparametervalue | 2fbfd8a5dbb32f74fee9c0a22dc4a402d3c6680f | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterUtils.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 2 |
Javascript | Javascript | remove duplicate from blacklisted usernames | c886ebfa92da54c362eff1babfab5bf0de2abada | <ide><path>server/utils/constants.js
<ide> export const blacklistedUsernames = [
<ide> 'completed-field-guide',
<ide> 'jobs',
<ide> 'nonprofits',
<del> 'api',
<ide> 'sitemap.xml',
<ide> 'get-help',
<ide> 'chat', | 1 |
Javascript | Javascript | adapt missed test to new expando name | c97c5cec2ff566d775c0f4996fa6647711c6fbab | <ide><path>test/ng/compileSpec.js
<ide> describe('$compile', function() {
<ide> elementName = parts.shift();
<ide> parts.sort();
<ide> parts.unshift(elementName);
<del> forEach(parts, function(value, key){
<del> if (value.substring(0,3) !== 'ng-') {
<add> ... | 1 |
PHP | PHP | add assertions for cc, bcc & attachments | 23733853ffb2f65894ef434c7df1101a0112f931 | <ide><path>src/TestSuite/EmailAssertTrait.php
<ide> public function assertEmailSubject($expected, $message = null)
<ide> * @param string $message The failure message to define.
<ide> * @return void
<ide> */
<del> public function assertEmailFrom($email, $name, $message = null)
<add> public function ... | 1 |
Java | Java | add support for multiple bridge listeners | 80bc07fd603b9ef27a1a2a977f03ee3e5a7b3e61 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java
<ide>
<ide> package com.facebook.react.bridge;
<ide>
<add>import java.util.List;
<add>import java.util.ArrayList;
<add>
<ide> import javax.annotation.Nullable;
<ide>
<ide> import com.facebook.proguard.annotations.DoNotStrip;
<ide> publi... | 1 |
Java | Java | improve performance of some string operations | 260ebeca3ada9d0bd2d62c41256cafe81ac8ca03 | <ide><path>spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
<ide> Class<?> getBeanClass() {
<ide> PropertyDescriptor getPropertyDescriptor(String name) {
<ide> PropertyDescriptor pd = this.propertyDescriptorCache.get(name);
<ide> if (pd == null && StringUtils.hasLength(name)) {
... | 5 |
Python | Python | use short hand for security.utils | 7f5c81bd0a2e086ef7e607bf4352003c5bd996a1 | <ide><path>airflow/hooks/hive_hooks.py
<ide> from airflow.hooks.base_hook import BaseHook
<ide> from airflow.utils import TemporaryDirectory
<ide> from airflow.configuration import conf
<del>import airflow.security.utils
<add>import airflow.security.utils as utils
<ide>
<ide> class HiveCliHook(BaseHook):
<ide> """... | 1 |
Javascript | Javascript | require path after setting start time | b8285a00b0399d39891f26718b0c12d038887629 | <ide><path>static/index.js
<ide> window.onload = function() {
<ide> try {
<del> var path = require('path');
<del>
<ide> var startTime = Date.now();
<ide>
<add> var path = require('path');
<add>
<ide> // Skip "?loadSettings=".
<ide> var loadSettings = JSON.parse(decodeURIComponent(location.search.su... | 1 |
Java | Java | fix issue with restoring included attributes | 0fb4b747c2f634ebcbbc2f4e37726234100e8367 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java
<ide> private void triggerAfterCompletionWithError(HttpServletRequest request, HttpSer
<ide> * @param request current HTTP request
<ide> * @param attributesSnapshot the snapshot of the request attributes before the include... | 1 |
Javascript | Javascript | remove custom message from assertion | 2054c66e7773e54a2f5a0844322b5e5752b6cff3 | <ide><path>test/addons/async-hooks-promise/test.js
<ide> const hook1 = async_hooks.createHook({
<ide> // Check that the internal field returns the same PromiseWrap passed to init().
<ide> assert.strictEqual(
<ide> binding.getPromiseField(Promise.resolve(1)),
<del> pwrap,
<del> 'Unexpected PromiseWrap');
<add> pwra... | 1 |
Text | Text | remove unnecessary line from upgrade guide | ed7be09263be1c21a4a3e73fea362a2688fa0a8c | <ide><path>upgrade.md
<ide> - Edit `app/controllers/BaseController.php` change `use Illuminate\Routing\Controllers\Controller;` to `use Illuminate\Routing\Controller;
<ide> `
<ide> - If you are overriding `missingMethod` in your controllers, add $method as the first parameter.
<del>- If you are registering model observ... | 1 |
Javascript | Javascript | add documentation for controllermixin | 032e874ba0dec3cec3eb1a9efcd5e5c9b77852ab | <ide><path>packages/ember-runtime/lib/controllers/controller.js
<ide> require('ember-runtime/system/object');
<ide> require('ember-runtime/system/string');
<ide>
<add>/**
<add> @class
<add>
<add> Ember.ControllerMixin provides a standard interface for all classes
<add> that compose Ember's controller layer: Ember... | 2 |
Text | Text | add changelogs for tls | 0dc6ff70d2538e19f60627fbcc2cbbe2a48b1c89 | <ide><path>doc/api/tls.md
<ide> connection is open.
<ide> ### new tls.TLSSocket(socket[, options])
<ide> <!-- YAML
<ide> added: v0.11.4
<add>changes:
<add> - version: v5.0.0
<add> pr-url: https://github.com/nodejs/node/pull/2564
<add> description: ALPN options are supported now.
<ide> -->
<ide>
<ide> * `socket`... | 1 |
Ruby | Ruby | add test for build.include? having dashed args | dc4d10ff6a59ce0da1bfc7bc06dd819c442813ab | <ide><path>Library/Homebrew/rubocops/lines_cop.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> next unless match = regex_match_group(arg, %r{with(out)?-(.*)})
<ide> problem "Use build.with#{match[1]}? \"#{match[2]}\" instead of build.include? 'with#{match[1]}-... | 2 |
Ruby | Ruby | use start_with? when possible | 92a71a534f9aa956eecc7ebeac0bd5dbe0ca980f | <ide><path>Library/Homebrew/os/mac.rb
<ide> def gcc_42_build_version
<ide> @gcc_42_build_version ||=
<ide> begin
<ide> gcc = MacOS.locate("gcc-4.2") || HOMEBREW_PREFIX.join("opt/apple-gcc42/bin/gcc-4.2")
<del> if gcc.exist? && gcc.realpath.basename.to_s !~ /^llvm/
<add> if gcc.... | 2 |
Text | Text | remove non existing samples folder mention | f8777524d3d833df08c43a0001ac5158c6deff68 | <ide><path>README.md
<ide> The [official models](official) are a collection of example models that use Tens
<ide>
<ide> The [research models](https://github.com/tensorflow/models/tree/master/research) are a large collection of models implemented in TensorFlow by researchers. They are not officially supported or availa... | 1 |
Javascript | Javascript | add support for patternunits attribute | 3f29d5d6cbbc8dc147c9e097187b7268b8b2d9fa | <ide><path>src/browser/ui/dom/SVGDOMPropertyConfig.js
<ide> var SVGDOMPropertyConfig = {
<ide> gradientTransform: MUST_USE_ATTRIBUTE,
<ide> gradientUnits: MUST_USE_ATTRIBUTE,
<ide> offset: MUST_USE_ATTRIBUTE,
<add> patternUnits: MUST_USE_ATTRIBUTE,
<ide> points: MUST_USE_ATTRIBUTE,
<ide> preserve... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.