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 |
|---|---|---|---|---|---|
PHP | PHP | revert one change | a2f859fb3636850ae49cc35fe245d7ac54586bf3 | <ide><path>src/Cache/Cache.php
<ide> *
<ide> * ```
<ide> * Cache::config('shared', [
<del> * 'className' => \Cake\Cache\Engine\ApcuEngine::class,
<add> * 'className' => Cake\Cache\Engine\ApcuEngine::class,
<ide> * 'prefix' => 'my_app_'
<ide> * ]);
<ide> * ``` | 1 |
Text | Text | add missing readme descriptions | 339230eebf973796cdc7ac8b313a97e01aff8294 | <ide><path>README.md
<ide> running TensorFlow 0.12 or earlier, please
<ide> - [neural_programmer](neural_programmer): neural network augmented with logic and mathematic operations.
<ide> - [next_frame_prediction](next_frame_prediction): probabilistic future frame synthesis via cross convolutional networks.
<ide> - [obj... | 1 |
Javascript | Javascript | fix eventlistener fork | ebbe599a25f4d751787ad49a9026215f14dc6d03 | <ide><path>scripts/rollup/forks.js
<ide> const forks = Object.freeze({
<ide> },
<ide>
<ide> // We wrap top-level listeners into guards on www.
<del> './packages/react-dom/src/events/EventListener.js': (bundleType, entry) => {
<add> './packages/react-dom-bindings/src/events/EventListener.js': (
<add> bundleTyp... | 1 |
PHP | PHP | add comment explaining behavior | b430cd2d4895b9c0794edb7dee2f99285b5aed48 | <ide><path>src/Controller/Controller.php
<ide> protected function chooseViewClass(): ?string
<ide> if (empty($possibleViewClasses)) {
<ide> return null;
<ide> }
<add> // Controller or component has already made a view class decision.
<add> // That decision should overwrite the ... | 1 |
Ruby | Ruby | fix arg destructure | b1164adda12268b38bba9b0d81c0d26b7251b8bb | <ide><path>activesupport/lib/active_support/cache.rb
<ide> require 'benchmark'
<add>require 'active_support/core_ext/array/wrap'
<ide> require 'active_support/core_ext/benchmark'
<ide> require 'active_support/core_ext/exception'
<ide> require 'active_support/core_ext/class/attribute_accessors'
<ide> module Strategy
<id... | 1 |
Javascript | Javascript | update validation snapshot | 8af4c0800c5b29e00a12c0445f8490fa1c432f3f | <ide><path>test/Validation.test.js
<ide> describe("Validation", () => {
<ide> expect(msg).toMatchInlineSnapshot(`
<ide> "Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
<ide> - configuration has an unknown property 'postcss'. These properti... | 1 |
Ruby | Ruby | move `.tar.xz` logic from `xz` to `tar` | f8dc9eff5898d4b9d75c409954540777ab844c23 | <ide><path>Library/Homebrew/unpack_strategy/tar.rb
<ide> def self.can_extract?(path)
<ide> private
<ide>
<ide> def extract_to_dir(unpack_dir, basename:, verbose:)
<del> system_command! "tar", args: ["xf", path, "-C", unpack_dir]
<add> Dir.mktmpdir do |tmpdir|
<add> tar_path = path
<add>
<add> ... | 2 |
Javascript | Javascript | fix bug when applying common.glsl | ea188856bf35610a2e968a79c9e4ea5136fd3397 | <ide><path>src/renderers/shaders/ShaderLib.js
<ide> THREE.ShaderLib = {
<ide>
<ide> "void main() {",
<ide>
<del> " vec4 worldPosition = transformNormal( position, modelMatrix );",
<add> " vWorldPosition = transformNormal( position, modelMatrix );",
<ide>
<ide> " gl_Position = projectionMatrix * modelViewMa... | 1 |
Javascript | Javascript | reduce forwardref(view) noise in systrace | 3aea678c38b3f2f208c039a22fc9c6f841826e81 | <ide><path>Libraries/Components/View/View.js
<ide> export type Props = ViewProps;
<ide>
<ide> let ViewToExport = ViewNativeComponent;
<ide> if (__DEV__) {
<del> const View = (
<del> props: Props,
<del> forwardedRef: React.Ref<typeof ViewNativeComponent>,
<del> ) => {
<del> return (
<del> <TextAncestor.... | 1 |
PHP | PHP | fix bad merge | ac6fc32c2933d5868a2c0d2aea4af9405d710378 | <ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php
<ide> public function bearerToken()
<ide> if ($position !== false) {
<ide> $header = substr($header, $position + 7);
<ide>
<del><<<<<<< HEAD
<del> return str_contains($header, ',') ? strstr(',', $header, true) : $header;
<del... | 1 |
Python | Python | remove redundant parenthesis | 60cf315d1b61e823ebc73714800bc9e1e3833c12 | <ide><path>airflow/executors/celery_executor.py
<ide> def trigger_tasks(self, open_slots: int) -> None:
<ide>
<ide> task_tuples_to_send: List[TaskInstanceInCelery] = []
<ide>
<del> for _ in range(min((open_slots, len(self.queued_tasks)))):
<add> for _ in range(min(open_slots, len(self.queued_tas... | 1 |
Python | Python | move pickle import to numpy.compat | b6dc039961768bd5f3a3d7f57e8c396f8fa02815 | <ide><path>numpy/compat/py3k.py
<ide> 'unicode', 'asunicode', 'asbytes_nested', 'asunicode_nested',
<ide> 'asstr', 'open_latin1', 'long', 'basestring', 'sixu',
<ide> 'integer_types', 'is_pathlib_path', 'npy_load_module', 'Path',
<del> 'contextlib_nullcontext', 'os_fspath', 'os... | 17 |
Javascript | Javascript | export more helpers in videojs object | 9d832eca5f997e040a554cd2e44c11b3800079a1 | <ide><path>src/js/video.js
<ide> import * as Fn from './utils/fn.js';
<ide> import TextTrack from './tracks/text-track.js';
<ide> import AudioTrack from './tracks/audio-track.js';
<ide> import VideoTrack from './tracks/video-track.js';
<del>
<ide> import { createTimeRanges } from './utils/time-ranges.js';
<ide> import ... | 1 |
Text | Text | add note on defaults block option | 6a116bd9091fc68dc26317b398ebcbdfe8c34155 | <ide><path>guides/source/routing.md
<ide> get 'photos/:id', to: 'photos#show', defaults: { format: 'jpg' }
<ide>
<ide> Rails would match `photos/12` to the `show` action of `PhotosController`, and set `params[:format]` to `"jpg"`.
<ide>
<add>You can also use `defaults` in a block format to define the defaults for mul... | 1 |
Ruby | Ruby | move dependencies to softwarespec | 5511a8b3f528445a79ae04138698e43620400640 | <ide><path>Library/Homebrew/formula.rb
<del>require 'dependency_collector'
<ide> require 'formula_support'
<ide> require 'formula_lock'
<ide> require 'formula_pin'
<ide> def resources
<ide> active_spec.resources.values
<ide> end
<ide>
<add> def deps
<add> active_spec.deps
<add> end
<add>
<add> def requirem... | 4 |
Java | Java | refine resolvabletype class | 3337fd32cba66aee549e4dddae61b86fe80832e3 | <ide><path>spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java
<ide> public static Class[] resolveTypeArguments(Class<?> clazz, Class<?> genericIfc)
<ide> * @deprecated as of Spring 4.0 in favor of {@link ResolvableType}
<ide> */
<ide> @Deprecated
<del> public static Class<?> resolveType(Ty... | 6 |
Ruby | Ruby | use underscore in notification namespaces | 3990310a2bedd0dff5753e3e9b1282e686cff0cc | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> def deliver!(mail = @mail)
<ide> logger.debug "\n#{mail.encoded}"
<ide> end
<ide>
<del> ActiveSupport::Notifications.instrument("actionmailer.deliver", :mail => mail) do
<add> ActiveSupport::Notifications.instrument("action_mailer.deliver"... | 10 |
Text | Text | add 0.69.6 changelog | e78a495900607a91270bbb0f9e5ec88e511c5f59 | <ide><path>CHANGELOG.md
<ide> - Add GitHub token permissions for workflows ([3da3d82320](https://github.com/facebook/react-native/commit/3da3d82320bd035c6bd361a82ea12a70dba4e851) by [@varunsh-coder](https://github.com/varunsh-coder))
<ide> - Bump RCT-Folly to 2021-07-22 ([68f3a42fc7](https://github.com/facebook/react-n... | 1 |
Python | Python | change eager retry behaviour | f4e674334d23db2727a2ab8ed9b582cd0246c21a | <ide><path>celery/app/task.py
<ide> def retry(self, args=None, kwargs=None, exc=None, throw=True,
<ide> ), task_args=S.args, task_kwargs=S.kwargs
<ide> )
<ide>
<del> ret = Retry(exc=exc, when=eta or countdown)
<add> ret = Retry(exc=exc, when=eta or countdown, is_eager=is_eager... | 3 |
Python | Python | remove re-defination of flaxwav2vec2forctcmodule | 60b81dfa6faae3aa90c34a7df9304036f513d055 | <ide><path>src/transformers/models/wav2vec2/modeling_flax_wav2vec2.py
<ide> class FlaxWav2Vec2ForCTC(FlaxWav2Vec2PreTrainedModel):
<ide> append_replace_return_docstrings(FlaxWav2Vec2ForCTC, output_type=FlaxCausalLMOutput, config_class=Wav2Vec2Config)
<ide>
<ide>
<del>class FlaxWav2Vec2ForCTCModule(nn.Module):
<del> ... | 1 |
PHP | PHP | add binary protocol option in memcachedengine | a5843dbe875a5b5b6b63a6e569a274327566d3ee | <ide><path>lib/Cake/Cache/Engine/MemcachedEngine.php
<ide> public function init($settings = array()) {
<ide> __d('cake_dev', 'Memcached extension is not build with SASL support')
<ide> );
<ide> }
<add> $this->_Memcached->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
<ide> $this->_Memcached->setSaslA... | 1 |
PHP | PHP | add missing return docblocks | 57d31b1a209b3ac74959d93b79612c96a4d58386 | <ide><path>src/Illuminate/Auth/Access/Response.php
<ide> class Response
<ide> * Create a new response.
<ide> *
<ide> * @param string|null $message
<add> * @return void
<ide> */
<ide> public function __construct($message = null)
<ide> {
<ide><path>src/Illuminate/Auth/Events/Attempting.p... | 9 |
Javascript | Javascript | fix linting issues/errors | 8abdabb66d6913c7df43bae398e57907ffbd10e0 | <ide><path>src/package-transpilation-registry.js
<ide> Object.assign(PackageTranspilationRegistry.prototype, {
<ide> // This means searching for a config for `/path/to/file/here.js` only
<ide> // only iterates four times, even if there are hundreds of configs registered.
<ide> while (thisPath !== lastPath) ... | 1 |
Python | Python | update old link to new website | 06141bd524b23f402417af64415f6c8d94aad789 | <ide><path>celery/result.py
<ide>
<ide> E_WOULDBLOCK = """\
<ide> Never call result.get() within a task!
<del>See http://docs.celeryq.org/en/latest/userguide/tasks.html\
<del>#task-synchronous-subtasks
<add>See https://docs.celeryq.dev/en/latest/userguide/tasks.html\
<add>#avoid-launching-synchronous-subtasks
<ide> ""... | 1 |
Javascript | Javascript | fix removelistener for symbols | 1b3dbc9635d45c83e355d312b6114d58664b1e7a | <ide><path>lib/events.js
<ide> const {
<ide> ObjectDefineProperty,
<ide> ObjectGetPrototypeOf,
<ide> ObjectSetPrototypeOf,
<del> ObjectKeys,
<ide> Promise,
<ide> PromiseReject,
<ide> PromiseResolve,
<ide> EventEmitter.prototype.removeAllListeners =
<ide>
<ide> // Emit removeListener for all listener... | 2 |
Mixed | Python | restore resnet distribution strategies | 18d05ad3df0b6bd5f386d3373f59561f5fa004b1 | <ide><path>official/mnist/mnist.py
<ide> def create_model(data_format):
<ide>
<ide>
<ide> def define_mnist_flags():
<del> flags_core.define_base()
<add> flags_core.define_base(multi_gpu=True, num_gpu=False)
<ide> flags_core.define_image()
<ide> flags.adopt_module_key_flags(flags_core)
<ide> flags_core.set_def... | 10 |
Ruby | Ruby | remove dead code, and the tests for it | ef21e013338461f33bf85f5cf6edd84b5ce9b6fe | <ide><path>actionpack/lib/action_view/compiled_templates.rb
<del>module ActionView
<del>
<del> # CompiledTemplates modules hold methods that have been compiled.
<del> # Templates are compiled into these methods so that they do not need to be
<del> # read and parsed for each request.
<del> #
<del> # Each template m... | 2 |
PHP | PHP | fake() assertions | 9922c87369962939af7c620472fe3a82dd0f4019 | <ide><path>src/Illuminate/Support/Testing/Fakes/EventFake.php
<ide> use Closure;
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Support\Arr;
<add>use Illuminate\Support\Traits\ReflectsClosures;
<ide> use PHPUnit\Framework\Assert as PHPUnit;
<ide>
<ide> class EventFake implements Dispatcher
<ide... | 2 |
Ruby | Ruby | add nodoc to localcacheregistry | 4770b773d01d1e313373ef115da40b70244b6ff7 | <ide><path>activesupport/lib/active_support/cache/strategy/local_cache.rb
<ide> module Strategy
<ide> # in-memory cache for faster access.
<ide> module LocalCache
<ide> # Class for storing and registering the local caches.
<del> class LocalCacheRegistry
<add> class LocalCacheRegistry #... | 1 |
Javascript | Javascript | add code comments | 19668677884515f3fe469dab50be8b0b03791ba3 | <ide><path>packages/ember-routing/lib/location/history_location.js
<ide> export default EmberObject.extend({
<ide> @return url {String}
<ide> */
<ide> getURL() {
<del> var rootURL = get(this, 'rootURL');
<ide> var location = get(this, 'location');
<ide> var path = location.pathname;
<add>
<add> va... | 1 |
Text | Text | update downloads page for 0.14 | e1d4668fd5453157083665dbe034590b54ac83c0 | <ide><path>docs/downloads.md
<ide> title: Downloads
<ide> layout: single
<ide> ---
<ide> Download the starter kit to get everything you need to
<del>[get started with React](/react/docs/getting-started.html). The starter kit includes React, the in-browser JSX transformer, and some simple example apps.
<add>[get started... | 1 |
Go | Go | fix windows cross compile with new netlink | 7d8b5fc3aa291e1126f43157a26b9b021023d76f | <ide><path>daemon/container_windows.go
<ide> func (container *Container) unmountIpcMounts() error {
<ide> func (container *Container) ipcMounts() []execdriver.Mount {
<ide> return nil
<ide> }
<add>
<add>func getDefaultRouteMtu() (int, error) {
<add> return -1, errSystemNotSupported
<add>}
<ide><path>daemon/daemon.go
<... | 3 |
Python | Python | add tests for tile and fix error | c75bd2d03ccc6415bb9a0f090d7e2d80b40ea2af | <ide><path>numpy/lib/shape_base.py
<ide> def tile(A, reps):
<ide> c = _nx.array(A,copy=False,subok=True,ndmin=d)
<ide> shape = list(c.shape)
<ide> n = c.size
<del> if (d < A.ndim):
<del> tup = (1,)*(A.ndim-d) + tup
<add> if (d < c.ndim):
<add> tup = (1,)*(c.ndim-d) + tup
<ide> for i,... | 2 |
Text | Text | set missing links for d3-contour | f7b65c85def5484bc4f9c487b4924a7413e7ab2e | <ide><path>API.md
<ide> Color ramps and palettes for quantitative, ordinal and categorical scales.
<ide> Compute contour polygons using marching squares.
<ide>
<ide> * [d3.contours](https://github.com/d3/d3-contour/blob/master/README.md#contours) - create a new contour generator.
<del>* *contours* - compute the contou... | 1 |
Ruby | Ruby | use helper method | 9b0c74e8780f9769320ee912e43066627602ce68 | <ide><path>activestorage/test/analyzer/video_analyzer_test.rb
<ide> class ActiveStorage::Analyzer::VideoAnalyzerTest < ActiveSupport::TestCase
<ide>
<ide> test "analyzing a video without a video stream" do
<ide> blob = create_file_blob(filename: "video_without_video_stream.mp4", content_type: "video/mp4")
<del> ... | 1 |
Python | Python | add comment to explain `object.__new__` | 5391ac3d426a9cfa1317e989e1b312dbe1d7b82f | <ide><path>numpy/doc/subclassing.py
<ide> class C(object):
<ide> def __new__(cls, *args):
<ide> print('Cls in __new__:', cls)
<ide> print('Args in __new__:', args)
<add> # The `object` type __new__ method takes a single argument.
<ide> return object.__new__(cls)
<ide>
<ide>... | 1 |
Javascript | Javascript | add support for default message | 84d80be2b4624b9fcfac81204ff047eba108d804 | <ide><path>src/ngMessages/messages.js
<ide> var jqLite;
<ide> * sequencing based on the order of how the messages are defined in the template.
<ide> *
<ide> * Currently, the ngMessages module only contains the code for the `ngMessages`, `ngMessagesInclude`
<del> * `ngMessage` and `ngMessageExp` directives.
<add> * `... | 2 |
Python | Python | remove code for old django versions | b82ec540ad447dcf703a9b21e9e94976109fd175 | <ide><path>rest_framework/views.py
<ide> def force_evaluation():
<ide> 'Use `.all()` or call `.get_queryset()` instead.'
<ide> )
<ide> cls.queryset._fetch_all = force_evaluation
<del> cls.queryset._result_iter = force_evaluation # Django <= 1.5
<ide>
<ide> ... | 2 |
Python | Python | remove unused import | 1368c31a705a4892995f42cf5e0dcdcbfa13a1ce | <ide><path>rest_framework/generics.py
<ide> from django.utils import six
<ide> from django.utils.translation import ugettext as _
<ide> from rest_framework import views, mixins
<del>from rest_framework.exceptions import NotFound
<ide> from rest_framework.settings import api_settings
<ide>
<ide> | 1 |
Javascript | Javascript | expose stuff and all non-bundle modules | 2c8ea603680fb731f86db385360ff6e01a8d1b51 | <ide><path>lib/JavascriptModulesPlugin.js
<ide> class JavascriptModulesPlugin {
<ide> (source, chunk, hash, moduleTemplate, dependencyTemplates) => {
<ide> return Template.renderChunkModules(
<ide> chunk,
<del> () => true,
<add> m => typeof m.source === "function",
<ide> moduleTempl... | 2 |
Javascript | Javascript | add source maps to all min files | 908071afbf32c46fe9110e4a67e104bbd4b3a56b | <ide><path>lib/grunt/utils.js
<ide> module.exports = {
<ide> },
<ide>
<ide>
<del> singleStrict: function(src, insert, newline){
<del> var useStrict = newline ? "$1\n'use strict';" : "$1'use strict';";
<add> singleStrict: function(src, insert){
<ide> return src
<ide> .replace(/\s*("|')use strict("|');... | 1 |
Python | Python | fix ja leading spaces | 332803eda9e9999434d4da41e56d1689f353bbd8 | <ide><path>spacy/lang/ja/__init__.py
<ide> def get_dtokens_and_spaces(dtokens, text, gap_tag="空白"):
<ide> return text_dtokens, text_spaces
<ide>
<ide> # align words and dtokens by referring text, and insert gap tokens for the space char spans
<del> for word, dtoken in zip(words, dtokens):
<add> for i... | 2 |
Javascript | Javascript | use buffer.from instead of slice | 894ef94b86d6bda4c8c8ae35e348185faa13d3d9 | <ide><path>lib/serialization/FileMiddleware.js
<ide> const deserialize = async (middleware, name, readFile) => {
<ide> } else if (contentPosition !== 0) {
<ide> if (length <= contentItemLength - contentPosition) {
<ide> result.push(
<del> contentItem.slice(contentPosition, contentPosition + length)
<ad... | 1 |
Java | Java | optimize single blockingobservable operations | 3816f473cb9f7d1a691855d053720f57bf51a0cd | <ide><path>rxjava/src/main/java/rx/observables/BlockingObservable.java
<ide> /**
<ide> * Copyright 2014 Netflix, Inc.
<del> *
<add> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this file except in compliance with the License.
<ide> * You may obtain a copy of the... | 4 |
Javascript | Javascript | use const instead of var in require | 6d21a74c5da48b36cde147993fe9d0e8154a9457 | <ide><path>gulpfile.js
<del>var elixir = require('laravel-elixir');
<add>const elixir = require('laravel-elixir');
<ide>
<ide> require('laravel-elixir-vue');
<ide> | 1 |
Javascript | Javascript | update router.js. fixes | f6e85ce7aeb4ba2bcff9d3faf0df5fffa60d1f37 | <ide><path>packages/ember-routing/lib/vendor/router.js
<ide> define("router",
<ide> */
<ide> function getMatchPoint(router, handlers, objects, inputParams) {
<ide>
<del> var objectsToMatch = objects.length,
<del> matchPoint = handlers.length,
<add> var matchPoint = handlers.length,
<ide>... | 1 |
Python | Python | update links from s3 to huggingface.co | 55e8d0cea25be18b044523b30f4bef58fec63289 | <ide><path>examples/seq2seq/bertabs/configuration_bertabs.py
<ide>
<ide>
<ide> BERTABS_FINETUNED_CONFIG_MAP = {
<del> "bertabs-finetuned-cnndm": "https://s3.amazonaws.com/models.huggingface.co/bert/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/config.json",
<add> "bertabs-finetuned-cnndm": "... | 81 |
Python | Python | fix typo in mark_as_failure | 98fdcd749b0c4d3ec1ad0cfae058d193595413e1 | <ide><path>celery/backends/base.py
<ide> def mark_as_failure(self, task_id, exc,
<ide> # elements of the chain. This is only truly important so
<ide> # that the last chain element which controls completion of
<ide> # the chain itself is marked as completed to avoid stalls... | 1 |
Python | Python | add multiple tokenizer exceptions for danish | 056547e989ae8d2d5633cf901d9dc376d32cdcfe | <ide><path>spacy/lang/da/tokenizer_exceptions.py
<ide> # encoding: utf8
<add>"""
<add>Tokenizer Exceptions.
<add>Source: https://forkortelse.dk/ and various others.
<add>"""
<add>
<ide> from __future__ import unicode_literals
<ide>
<ide> from ...symbols import ORTH, LEMMA, NORM, TAG, ADP, PUNCT
<ide> _exc[exc_data... | 2 |
Python | Python | add a test case for it | b9e7a62d3ecdbb36e462d5d3d24d7eb6ee80b34a | <ide><path>libcloud/test/test_httplib_ssl.py
<ide> import os
<ide> import sys
<ide> import os.path
<add>import socket
<ide>
<add>import mock
<ide> from mock import patch
<ide>
<ide> import libcloud.security
<ide> def test_setup_ca_cert(self, _):
<ide> self.assertRaisesRegexp(RuntimeError, expected_msg,
<ide> ... | 1 |
Javascript | Javascript | use bufferattribute as mock to supress warnings | a71785d0d3db2b2d86cb0f6a68a4d7a832382c2c | <ide><path>test/unit/core/InstancedBufferGeometry.js
<ide> test( "copy", function() {
<ide> var instanceMock1 = {};
<ide> var instanceMock2 = {};
<ide> var indexMock = createClonableMock();
<del> var attributeMock1 = {};
<del> var attributeMock2 = {};
<add> var defaultAttribute1 = new THREE.BufferAttribute([1]);
<ad... | 1 |
PHP | PHP | update doc block | 3792f56eecd337aea3045b46640bd33e7f5529b2 | <ide><path>Cake/Cache/Cache.php
<ide> public static function enabled() {
<ide> *
<ide> * Examples:
<ide> *
<del> * Using a Closure to provide data, assume $this is a Model:
<add> * Using a Closure to provide data, assume `$this` is a Table object:
<ide> *
<ide> * {{{
<del> * $model = $this;
<del> * $results = Cach... | 1 |
Javascript | Javascript | replace `getall` with `getkeys` in `loadtype3data` | f7f60197ce6de81fcd0b3bdc177c0e55cd39f813 | <ide><path>src/core/evaluator.js
<ide> var TranslatedFont = (function TranslatedFontClosure() {
<ide>
<ide> var translatedFont = this.font;
<ide> var loadCharProcsPromise = Promise.resolve();
<del> var charProcs = this.dict.get('CharProcs').getAll();
<add> var charProcs = this.dict.get('CharProcs... | 1 |
Python | Python | replace list creation with list literal | 6a8de48502a85fbd4592d7cc43cdde4f610ae894 | <ide><path>glances/core/glances_logs.py
<ide> def add(self, item_state, item_type, item_value,
<ide> # Create the new log item
<ide> # Time is stored in Epoch format
<ide> # Epoch -> DMYHMS = datetime.fromtimestamp(epoch)
<del> item = []
<del> ... | 3 |
Java | Java | remove obsolete code in r2dbctransactionmanager | fae36e98b4c3d72941e3f209a87047332ff51ba1 | <ide><path>spring-r2dbc/src/main/java/org/springframework/r2dbc/connection/R2dbcTransactionManager.java
<ide> protected Mono<Void> doCleanupAfterCompletion(TransactionSynchronizationManager
<ide> afterCleanup = afterCleanup.then(Mono.from(con.setAutoCommit(true)));
<ide> }
<ide>
<del> if (txObject.getPrevious... | 1 |
PHP | PHP | add tests for index reflection | 13f7da961fe019915a502629e6e2f62ee1dc2fed | <ide><path>lib/Cake/Database/Schema/MysqlSchema.php
<ide> public function convertIndexDescription(Table $table, $row) {
<ide> $type = strtolower($row['Index_type']);
<ide> } elseif ($row['Non_unique'] == 0 && $type !== 'primary') {
<ide> $type = 'unique';
<del> } else {
<add> } elseif ($type !== 'primary') {
... | 2 |
Text | Text | fix headings in quic.md | 7a1220a1d745cf2f6d00ed3aa3905b604cea0952 | <ide><path>doc/api/quic.md
<ide> TBD
<ide>
<ide> ## QUIC JavaScript API
<ide>
<del>### `net.createQuicSocket(\[options\])`
<add>### `net.createQuicSocket([options])`
<ide> <!-- YAML
<ide> added: REPLACEME
<ide> -->
<ide> The object will contain the properties:
<ide>
<ide> If the `QuicEndpoint` is not bound, `quicend... | 1 |
Text | Text | add logo to readme | 2d039ffa29e4c4366a1028555b71cb36b7129fb1 | <ide><path>README.md
<del># Node.js
<del>
<del>[](https://gitter.im/nodejs/node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://bestpractices.core... | 1 |
Text | Text | add grand rounds to companies list | 1e2d237389f974735517f6c6d821ae7563e6b3ec | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [Cotap](https://github.com/cotap/) [[@maraca](https://github.com/maraca) & [@richardchew](https://github.com/richardchew)]
<ide> 1. [Credit Karma](https://www.creditkarma.com/) [[@preete-dixit-ck](https://github.com/preete-dixit-ck) & [@harish-... | 1 |
Ruby | Ruby | modify regex in tests | 1edff7934e378393ff09e0b343161c291c6744dd | <ide><path>Library/Homebrew/test/formula_spec.rb
<ide> livecheck do
<ide> skip "foo"
<ide> url "https://brew.sh/test/releases"
<del> regex(/test-(\d+(?:\.\d+)+)\.tbz/)
<add> regex(/test-v?(\d+(?:\.\d+)+)\.t/i)
<ide> end
<ide> end
<ide>
<ide> expect(f.livecheck.skip?).t... | 1 |
PHP | PHP | improve doc blocks | 2f5962ecc6ab3c7ed9d708b4c1ccc083a45952d4 | <ide><path>src/Validation/Validation.php
<ide> public static function localizedTime($check, $type = 'datetime', $format = null)
<ide> }
<ide>
<ide> /**
<del> * Boolean validation, determines if value passed is a boolean integer or true/false.
<add> * Validates if passed value is boolish.
<add> *
<i... | 1 |
Text | Text | use code markup/markdown in headers | a80d4ac3debaea72a6fec4fd691a676dec2b9be7 | <ide><path>doc/api/tty.md
<ide> In most cases, there should be little to no reason for an application to
<ide> manually create instances of the `tty.ReadStream` and `tty.WriteStream`
<ide> classes.
<ide>
<del>## Class: tty.ReadStream
<add>## Class: `tty.ReadStream`
<ide> <!-- YAML
<ide> added: v0.5.8
<ide> -->
<ide> R... | 1 |
Ruby | Ruby | allow table name and direction in string order arg | 5180fe2cd8233169935065efe8762bd5d7b2709c | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def pluck(*column_names)
<ide> end
<ide>
<ide> if has_include?(column_names.first)
<del> construct_relation_for_association_calculations.pluck(*column_names)
<add> relation = apply_join_dependency
<add> relation.p... | 27 |
Javascript | Javascript | update typedef to be more readable with @property | f7790f838266e248d42d66e999349a1b12b1fb0b | <ide><path>lib/util/identifier.js
<ide> "use strict";
<ide> const path = require("path");
<ide>
<del>/** @typedef {{relativePaths: Map<string, string|Map<string,string>>}} MakeRelativePathsCache */
<add>/**
<add> * @typedef {Object} MakeRelativePathsCache
<add> * @property {Map<string, Map<string, string>>=} relativeP... | 1 |
PHP | PHP | add methods to cast stringables | 66d37573dd6017dba1531c8ff9f294b1898351e6 | <ide><path>src/Illuminate/Support/Stringable.php
<ide> namespace Illuminate\Support;
<ide>
<ide> use Closure;
<add>use Illuminate\Support\Facades\Date;
<ide> use Illuminate\Support\Traits\Conditionable;
<ide> use Illuminate\Support\Traits\Macroable;
<ide> use Illuminate\Support\Traits\Tappable;
<ide> public function t... | 2 |
Text | Text | add 4.2.z back to the maintenance list | fdc52ddb76d69235c01494a5f19c56cb9bddff0c | <ide><path>guides/source/maintenance_policy.md
<ide> from.
<ide> In special situations, where someone from the Core Team agrees to support more series,
<ide> they are included in the list of supported series.
<ide>
<del>**Currently included series:** `5.0.Z`.
<add>**Currently included series:** `5.0.Z`, `4.2.Z`.
<ide>... | 1 |
Javascript | Javascript | fix inner loop of "remove" method | f4d8c5f20f99f8f8e4c54536305d5d03199d4181 | <ide><path>lib/Chunk.js
<ide> class Chunk {
<ide> chunk.addParent(parentChunk);
<ide> // add "sub chunk" to parent
<ide> parentChunk.addChunk(chunk);
<del>
<del> // remove this as parent of every "sub chunk"
<del> const idx = chunk.parents.indexOf(this);
<del> if(idx >= 0) {
<del> chunk.parents... | 1 |
Javascript | Javascript | use clearinterval instead of cleartimer on a timer | b3fad60d7d49fee1ef6f2f60f6be5f520f4456a8 | <ide><path>packages/next/client/dev/error-overlay/eventsource.js
<ide> function EventSourceWrapper(options) {
<ide>
<ide> return {
<ide> close: () => {
<del> clearTimeout(timer)
<add> clearInterval(timer)
<ide> source.close()
<ide> },
<ide> addMessageListener: function(fn) { | 1 |
Javascript | Javascript | fix eslint issues | 7ade84efb733aaa677d8f005ef94c2d9b82259e8 | <ide><path>packages/@ember/-internals/metal/tests/accessors/mandatory_setters_test.js
<ide> if (DEBUG) {
<ide> ['@test watched ES5 setter should not be smashed by mandatory setter'](assert) {
<ide> let value;
<ide> let obj = {
<del> get foo() {},
<add> get foo() {
<add> ... | 2 |
Javascript | Javascript | convert the password prompt to a class | 2b7137ba0a05aede70b03860c9546adba19490a6 | <ide><path>web/app.js
<ide> var PDFViewerApplication = {
<ide> });
<ide> }
<ide>
<del> PasswordPrompt.initialize({
<add> this.passwordPrompt = new PasswordPrompt({
<ide> overlayName: 'passwordOverlay',
<del> passwordField: document.getElementById('password'),
<del> passwordText: documen... | 2 |
Text | Text | update code examples in domain.md | 5a42cd1505578a50faa1255c233de25bb1efe059 | <ide><path>doc/api/domain.md
<ide> For example, this is not a good idea:
<ide> ```js
<ide> // XXX WARNING! BAD IDEA!
<ide>
<del>var d = require('domain').create();
<add>const d = require('domain').create();
<ide> d.on('error', (er) => {
<ide> // The error won't crash the process, but what it does is worse!
<ide> ... | 1 |
Javascript | Javascript | upgrade abstractplugin to es6 | ccfd5a8e6974d057d9551297fdbb777d0776b450 | <ide><path>lib/AbstractPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>function AbstractPlugin(plugins) {
<del> this._plugins = plugins || {};
<del>}
<del>module.exports = AbstractPlugin;
<add>"use strict";
<add>
<add>class AbstractPlugin... | 1 |
Ruby | Ruby | remove todos related to exceptron [ci skip] | 4327444cfdbfc8ce93ca0efa50ac6cf00940fbaa | <ide><path>actionview/lib/action_view/renderer/streaming_template_renderer.rb
<ide> module ActionView
<ide> # == TODO
<ide> #
<ide> # * Support streaming from child templates, partials and so on.
<del> # * Integrate exceptions with exceptron
<ide> # * Rack::Cache needs to support streaming bodies
<ide> class... | 1 |
PHP | PHP | add testisregisteredstreamwrapper method | 5d91ab036d4414731239ed9041d95a99874f3f8f | <ide><path>tests/TestCase/Filesystem/FolderTest.php
<ide> public function testSortByName()
<ide>
<ide> $this->assertSame(['a.txt', 'b.txt', 'c.txt'], $results);
<ide> }
<add>
<add> /**
<add> * testIsRegisteredStreamWrapper
<add> *
<add> * @return void
<add> */
<add> public functio... | 1 |
Python | Python | ensure new setuptools before building sdist | 7cbdcaddf32f460f71e2c9370d5430ff91461e6a | <ide><path>fabfile.py
<ide> def make():
<ide> def sdist():
<ide> with virtualenv(VENV_DIR) as venv_local:
<ide> with lcd(path.dirname(__file__)):
<add> local('python -m pip install -U setuptools')
<ide> local('python setup.py sdist')
<ide>
<ide> def wheel(): | 1 |
Go | Go | lock container while connecting to a new network | 4d0888e32bccfd8c0f27a7b66b2a5607d42e2698 | <ide><path>daemon/container_operations.go
<ide> func (daemon *Daemon) ConnectToNetwork(container *container.Container, idOrName
<ide> if endpointConfig == nil {
<ide> endpointConfig = &networktypes.EndpointSettings{}
<ide> }
<add> container.Lock()
<add> defer container.Unlock()
<add>
<ide> if !container.Running {
... | 1 |
PHP | PHP | add tests for callback related features | 9291f2b7113d8127faab7aa49ff23991fd335a2a | <ide><path>Cake/ORM/Table.php
<ide> public function delete(Entity $entity, array $options = []) {
<ide> $process = function () use ($entity, $options) {
<ide> return $this->_processDelete($entity, $options);
<ide> };
<add>
<ide> if ($options['atomic']) {
<ide> $success = $this->connection()->transactional($... | 2 |
Javascript | Javascript | add shift+enter to go to previous search result | 6215e1c2db7e55a364a1156be38b4e3d7490d551 | <ide><path>packages/react-devtools-shared/src/devtools/views/Components/SearchInput.js
<ide> export default function SearchInput(props: Props) {
<ide> );
<ide>
<ide> const handleInputKeyPress = useCallback(
<del> ({key}) => {
<add> ({key, shiftKey}) => {
<ide> if (key === 'Enter') {
<del> dispat... | 1 |
Javascript | Javascript | add setrequestheader method to fileloader | 6f68f3c93fcbdf7a79bc9e99e47a17569580c502 | <ide><path>src/loaders/FileLoader.js
<ide> Object.assign( FileLoader.prototype, {
<ide>
<ide> if ( request.overrideMimeType ) request.overrideMimeType( this.mimeType !== undefined ? this.mimeType : 'text/plain' );
<ide>
<add> if ( this.requestHeader !== undefined ) {
<add>
<add> var keys = Object.keys( this.r... | 1 |
Java | Java | call soloader.init in mainapplication#oncreate | 0907ef668921a63f3ed447d442f84c54a5a20452 | <ide><path>local-cli/generator-android/templates/package/MainApplication.java
<ide> import com.facebook.react.ReactNativeHost;
<ide> import com.facebook.react.ReactPackage;
<ide> import com.facebook.react.shell.MainReactPackage;
<add>import com.facebook.soloader.SoLoader;
<ide>
<ide> import java.util.Arrays;
<ide> imp... | 1 |
Python | Python | set color to operators in cloud_sql.py | 3dd7b1ddbaa3170fbda30a8323286abf075f30ba | <ide><path>airflow/providers/google/cloud/operators/cloud_sql.py
<ide> class CloudSQLCreateInstanceOperator(CloudSQLBaseOperator):
<ide> 'impersonation_chain',
<ide> )
<ide> # [END gcp_sql_create_template_fields]
<add> ui_color = '#FADBDA'
<ide> operator_extra_links = (CloudSQLInstanceLink(),)
<i... | 1 |
Text | Text | adjust line breaks | 43070d73a1913691e401cece5d604b2fbc037c45 | <ide><path>docs/Homebrew-brew-Maintainer-Guide.md
<ide> # Homebrew/brew Maintainer Guide
<ide>
<del>This document describes a few components of the `Homebrew/brew` repository that are useful for maintainers to
<del>be aware of, but don't necessarily need to appear in documentation for most users and contributors.
<add... | 5 |
Javascript | Javascript | change var to let | de20c530d4e5ff2106c0da1a7a1359c5a689da7a | <ide><path>lib/internal/fs/streams.js
<ide> WriteStream.prototype._writev = function(data, cb) {
<ide> const chunks = new Array(len);
<ide> let size = 0;
<ide>
<del> for (var i = 0; i < len; i++) {
<add> for (let i = 0; i < len; i++) {
<ide> const chunk = data[i].chunk;
<ide>
<ide> chunks[i] = chunk; | 1 |
Javascript | Javascript | use template literals | 2b0af7c4e721bde1a26718e21ab1724bc2438a1f | <ide><path>lib/DelegatedModuleFactoryPlugin.js
<ide> class DelegatedModuleFactoryPlugin {
<ide> (data, callback) => {
<ide> const [dependency] = data.dependencies;
<ide> const { request } = dependency;
<del> if (request && request.startsWith(scope + "/")) {
<add> if (request && request.startsWith(... | 1 |
PHP | PHP | fix code style | 3965f76737c16f4b9890aa40b9ff348f154f9eff | <ide><path>src/I18n/TranslatorRegistry.php
<ide> public function __construct(
<ide> ) {
<ide> parent::__construct($packages, $formatters, $factory, $locale);
<ide>
<del> $this->setFallbackLoader(function($name, $locale) {
<add> $this->setFallbackLoader(function ($name, $locale) {
<ide> ... | 1 |
Java | Java | fix the compose covariance | 855252b72070ed448d8b8fdcde63fbc4d48075d2 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public void call(Subscriber<? super R> o) {
<ide> * @see <a href="https://github.com/Netflix/RxJava/wiki/Implementing-Your-Own-Operators">RxJava wiki: Implementing Your Own Operators</a>
<ide> * @since 0.20
<ide> */
<del> public <R> Observa... | 2 |
Javascript | Javascript | return error objects on error | e3d4a7d9994ff7d1bd144779f8b91d8302112bc0 | <ide><path>lib/inspector.js
<ide> const {
<ide> ERR_INSPECTOR_ALREADY_CONNECTED,
<ide> ERR_INSPECTOR_CLOSED,
<add> ERR_INSPECTOR_COMMAND,
<ide> ERR_INSPECTOR_NOT_AVAILABLE,
<ide> ERR_INSPECTOR_NOT_CONNECTED,
<ide> ERR_INVALID_ARG_TYPE,
<ide> class Session extends EventEmitter {
<ide> if (parsed.id) {
<... | 2 |
Text | Text | remove statement about (ec)dhe performance | 986cf3b986c6c3e1495327eb3aa1ffc3972f2442 | <ide><path>doc/api/tls.md
<ide> the character "E" appended to the traditional abbreviations):
<ide> * [ECDHE][]: An ephemeral version of the Elliptic Curve Diffie-Hellman
<ide> key-agreement protocol.
<ide>
<del>Ephemeral methods may have some performance drawbacks, because key generation
<del>is expensive.
<del>
<i... | 1 |
Ruby | Ruby | add more test coverage for option descriptions | 20452f3edc22ede05814a7355d65c9ef4547b3b0 | <ide><path>Library/Homebrew/test/test_software_spec.rb
<ide> def test_cxx11_option_special_case
<ide> refute @spec.option_defined?("cxx11")
<ide> end
<ide>
<add> def test_option_description
<add> @spec.option("bar", "description")
<add> assert_equal "description", @spec.options.first.description
<add> en... | 1 |
Go | Go | extract ioctl from wrapper | 1214b8897bba2a33a7ded8779bcdc966fe1cb176 | <ide><path>graphdriver/devmapper/attachLoopback.go
<ide> package devmapper
<ide> import (
<ide> "fmt"
<ide> "github.com/dotcloud/docker/utils"
<del> "unsafe"
<ide> )
<ide>
<del>func ioctlLoopCtlGetFree(fd uintptr) (int, error) {
<del> index, _, err := sysSyscall(sysSysIoctl, fd, LoopCtlGetFree, 0)
<del> if err != 0 ... | 4 |
Text | Text | update local env setup | ce092d657701a800a93971558d10fe920c51b912 | <ide><path>CONTRIBUTING.md
<ide> To setup your local dev environment, you will need the following tools.
<ide> 2. [git](https://github.com/) for code repository management.
<ide> 3. [python](https://www.python.org/) to build and code in Keras.
<ide>
<del>Using Apple Mac as an example (and linux will be very similar)... | 1 |
PHP | PHP | remove unneeded variable | 88c745afb24aef1feeb4aaa76c4f87d0cf49ec47 | <ide><path>src/Illuminate/Database/Connection.php
<ide> public function selectFromWriteConnection($query, $bindings = [])
<ide> */
<ide> public function select($query, $bindings = [], $useReadPdo = true)
<ide> {
<del> return $this->run($query, $bindings, function ($me, $query, $bindings) use ($useRe... | 1 |
Text | Text | add link to meteor talk | 3119d66e26bbda43f657128859c092b24e53c829 | <ide><path>docs/docs/videos.md
<ide> by [Stoyan Stefanov](http://www.phpied.com/)
<ide> <iframe width="650" height="315" src="//www.youtube.com/embed/R2CGKiNnPFo" frameborder="0" allowfullscreen></iframe>
<ide>
<ide> **In Russian** by [Alexander Solovyov](http://solovyov.net/)
<add>
<add>### -Functional DOM programmin... | 1 |
Text | Text | add explicit directions to link | 50cafde97d348e9fb5a07c2ecaf266eedb2fc64b | <ide><path>test/README.md
<ide> But don't give up hope!!! Although our tests may appear complex and overwhelming
<ide> ## tl;dr
<ide> * Clone repo
<ide> * install and link deps
<del> * `yarn install.`
<add> * `yarn install && yarn link && yarn link webpack`
<ide> * `npm run test` or `npm t`
<ide> * To run an individua... | 1 |
PHP | PHP | continue refactor of view files | 4320acdb96b4fed9e0b31f708d3599b7d488bfca | <ide><path>cake/libs/view/view.php
<ide> class View extends Object {
<ide> var $loaded = array();
<ide>
<ide> /**
<del> * File extension. Defaults to Cake's conventional ".thtml".
<add> * File extension. Defaults to Cake's template ".ctp".
<ide> *
<ide> * @var array
<ide> */
<del> var $ext = '.thtml';
<add> var $e... | 1 |
Javascript | Javascript | fix flaky test | ad997344893403948a70edb47b0d056658458e39 | <ide><path>test/integration/react-streaming-and-server-components/test/rsc.js
<ide> export default function (context, { runtime, env }) {
<ide> expect(content).toContain('component:index.server')
<ide>
<ide> await browser.waitForElementByCss('#goto-streaming-rsc').click()
<del> await new Promise((res) => se... | 1 |
Python | Python | add exhaustive test for einsum specialized loops | d9dae76fce6fe3e87ee01670d3905f6fbdd04569 | <ide><path>numpy/core/tests/test_einsum.py
<ide> import itertools
<ide>
<add>import pytest
<add>
<ide> import numpy as np
<ide> from numpy.testing import (
<ide> assert_, assert_equal, assert_array_equal, assert_almost_equal,
<ide> def test_einsum_all_contig_non_contig_output(self):
<ide> np.einsum('ij,jk-... | 1 |
Python | Python | add detection generator back | 394cefcc13bf2a07121b94f1426d038700b1b61a | <ide><path>official/vision/beta/projects/yolo/modeling/layers/detection_generator.py
<add>"""Contains common building blocks for yolo neural networks."""
<add>import tensorflow as tf
<add>import tensorflow.keras as ks
<add>import tensorflow.keras.backend as K
<add>
<add># from official.vision.beta.projects.yolo.ops imp... | 2 |
Javascript | Javascript | add tests for querystring.unescapebuffer | 2a750bffcc6b8c33df9f575b83979d245cd7b384 | <ide><path>test/simple/test-querystring.js
<ide> assert.equal(f, "a:b;q:x%3Ay%3By%3Az");
<ide>
<ide>
<ide> assert.deepEqual({}, qs.parse());
<add>
<add>
<add>
<add>var b = qs.unescapeBuffer('%d3%f2Ug%1f6v%24%5e%98%cb%0d%ac%a2%2f%9d%eb%d8%a2%e6')
<add>// <Buffer d3 f2 55 67 1f 36 76 24 5e 98 cb 0d ac a2 2f 9d eb d8 a2... | 1 |
Javascript | Javascript | drop testing on jsdom with node 0.10 & 0.12 | c7431c7793f7605250807f91bee7c9ddcbaeb91b | <ide><path>Gruntfile.js
<ide> module.exports = function( grunt ) {
<ide> var fs = require( "fs" ),
<ide> gzip = require( "gzip-js" ),
<ide> srcHintOptions = readOptionalJSON( "src/.jshintrc" ),
<del> newNode = !/^v0/.test( process.version ),
<del>
<del> // Allow to skip jsdom-related tests in Node.js < 1.0.0
<de... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.