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 |
|---|---|---|---|---|---|
Javascript | Javascript | move extensions to boot script | 8a668860816f1f9b644725dbe72385d45efdc101 | <ide><path>common/models/Access-Token.js
<del>import { Observable } from 'rx';
<del>
<del>module.exports = AccessToken => {
<del> // wait for datasource to attach before adding methods
<del> // prevents loopback from unnecessarily
<del> // adding watchers on startup
<del> AccessToken.on('dataSourceAttached', () => ... | 3 |
Javascript | Javascript | update node tests to be qunit 2 compatible | b5cfcf55875770c4d917854459e753c134332e5f | <ide><path>tests/node/app-boot-test.js
<ide> QUnit.test("App boots and routes to a URL", function(assert) {
<ide> assert.ok(this.app);
<ide> });
<ide>
<del>QUnit.test("nested {{component}}", function() {
<add>QUnit.test("nested {{component}}", function(assert) {
<ide> this.template('index', "{{root-component}}");
... | 3 |
Ruby | Ruby | fix new schema test dependency on hash#to_xml | 46b376962f064077734773c7e1eea5881e5d5696 | <ide><path>activeresource/test/cases/base/schema_test.rb
<ide> require 'abstract_unit'
<add>require 'active_support/core_ext/hash/conversions'
<ide> require "fixtures/person"
<ide> require "fixtures/street_address"
<ide> | 1 |
Text | Text | fix example in assert.md | a2d86f6009dd0a33830ecf0677d69e1f181aea26 | <ide><path>doc/api/assert.md
<ide> assert.throws(
<ide> );
<ide>
<ide> // Using regular expressions to validate error properties:
<del>throws(
<add>assert.throws(
<ide> () => {
<ide> throw err;
<ide> },
<ide> throws(
<ide> );
<ide>
<ide> // Fails due to the different `message` and `name` properties:
<del>thro... | 1 |
Text | Text | fix typo in changelog.md - s/issue/issues | 2ee3b482456cd2a09ccbd3a4b0c20f3d0c5a5644 | <ide><path>CHANGELOG.md
<ide> Fixes and Functionality:
<ide>
<ide> - Unzip response body only for statuses != 204 ([#1129](https://github.com/axios/axios/pull/1129)) - drawski
<del>- Destroy stream on exceeding maxContentLength (fixes [#1098](https://github.com/axios/axios/issue/1098)) ([#1485](https://github.com/axio... | 1 |
Java | Java | fix unset problem for text alignment change | 5b4fb89e4ca7edeb5124bcad8cb18815e30d021f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java
<ide> private static int parseNumericFontWeight(String fontWeightString) {
<ide>
<ide> protected int mNumberOfLines = UNSET;
<ide> protected int mFontSize = UNSET;
<del> protected int mTextAlign = UNSET;
<add> protected ... | 1 |
Text | Text | fix changelog badge to match style | 51c4b30f8e02000ccb53973c70194ab8a76989e2 | <ide><path>README.md
<ide> It is tiny (2kB) and has no dependencies.
<ide> [](https://www.npmjs.com/package/redux)
<ide> []... | 1 |
Javascript | Javascript | add transform option to module / module cache | a61ab8795af508669a986e7a60d3f82acf367166 | <ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/index.js
<ide> class DependencyGraph {
<ide> extensions,
<ide> mocksPattern,
<ide> extractRequires,
<add> transformCode,
<ide> shouldThrowOnUnresolvedErrors = () => true,
<ide> }) {
<ide> this._opts = {
<ide> class Depend... | 4 |
Ruby | Ruby | increase timeout tolerance | 35b8c3d6e2c2cfcddf754989dcc0e5265d4f88f1 | <ide><path>Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb
<ide> }.to output(/Application 'my.fancy.package.app' did not quit\./).to_stderr
<ide> end
<ide>
<del> expect(time.real).to be_within(0.5).of(10)
<add> expect(time.real).to be_within(3).of(10)
<ide> end
<ide> ... | 1 |
Java | Java | add perf markers for cold start | ca016e4eb30e4535c42e8e108ea6ff06e2b44b44 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java
<ide> import com.facebook.react.uimanager.ViewManager;
<ide> import com.facebook.react.uimanager.debug.DebugComponentOwnershipModule;
<ide> import com.facebook.react.uimanager.events.RCTEventEmitter;
<add>import com.facebook.systrace.Systr... | 5 |
Go | Go | check bad syntax on dockerfile before building | c8dc2b156a079ce03db8f579094b9643632661a8 | <ide><path>builder/dockerfile/builder.go
<ide> func (b *Builder) build(stdout io.Writer, stderr io.Writer, out io.Writer) (stri
<ide>
<ide> var shortImgID string
<ide> total := len(b.dockerfile.Children)
<add> for _, n := range b.dockerfile.Children {
<add> if err := b.checkDispatch(n, false); err != nil {
<add> ... | 5 |
Javascript | Javascript | fix hidden control text in progress bar (fixes ) | 70a71ae81e5026faf38fc0d675521d66847d8411 | <ide><path>src/js/control-bar/progress-control/load-progress-bar.js
<ide> class LoadProgressBar extends Component {
<ide> createEl() {
<ide> return super.createEl('div', {
<ide> className: 'vjs-load-progress',
<del> innerHTML: `<span class="vjs-control-text"><span>${this.localize('Loaded')}</span>: 0%<... | 3 |
Python | Python | fix function name in airflow/stats.py | c5349fd638cc9c3d3e23406e23186baed150e641 | <ide><path>airflow/stats.py
<ide> def stat_name_default_handler(stat_name, max_length=250) -> str:
<ide> return stat_name
<ide>
<ide>
<del>def get_current_handle_stat_name_func() -> Callable[[str], str]:
<add>def get_current_handler_stat_name_func() -> Callable[[str], str]:
<ide> """Get Stat Name Handler from... | 1 |
Ruby | Ruby | use parens and silence ambiguous args warnings | 88d8ca2ef976ea802657c92a3d27e2737247ee5c | <ide><path>railties/test/generators/plugin_new_generator_test.rb
<ide> def test_generating_test_files_in_full_mode
<ide>
<ide> def test_ensure_that_plugin_options_are_not_passed_to_app_generator
<ide> FileUtils.cd(Rails.root)
<del> assert_no_match /It works from file!.*It works_from_file/, run_generator([dest... | 2 |
Python | Python | remove whitespace, useless comment | 7f1eb97000d9ad3be1d227078dadd6ce9852193a | <ide><path>keras/layers/convolutional.py
<ide> def get_output(self, train=False):
<ide> border_mode=border_mode,
<ide> subsample=self.subsample)
<ide> if self.border_mode == 'same':
<del> shift_x = (self.n... | 2 |
Javascript | Javascript | pass the priority level along to children | e53f0dc4b44f08b354f24acb2e22ce1349dfc76f | <ide><path>src/renderers/shared/fiber/ReactChildFiber.js
<ide>
<ide> import type { ReactCoroutine, ReactYield } from 'ReactCoroutine';
<ide> import type { Fiber } from 'ReactFiber';
<add>import type { PriorityLevel } from 'ReactPriorityLevel';
<ide>
<ide> import type { ReactNodeList } from 'ReactTypes';
<ide>
<ide> ... | 5 |
Python | Python | fix model deserialization | 35d981241f0274ddd132cd87ee9b47932f1a018f | <ide><path>spacy/util.py
<ide> def model_from_bytes(model, bytes_data):
<ide> for layer in queue:
<ide> if hasattr(layer, '_mem'):
<ide> params = weights[i]
<del> flat_mem = layer._mem._mem.ravel()
<add> layer._mem._get_blob(params.size)
<add> layer._mem._i -= p... | 1 |
Ruby | Ruby | clarify deprecation message for #quoted_id | ae73637e35db20d0c4e14959d8c1274e5399278e | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
<ide> def quote(value)
<ide> value = id_value_for_database(value) if value.is_a?(Base)
<ide>
<ide> if value.respond_to?(:quoted_id)
<add> at = value.method(:quoted_id).source_location
<add> at &&= " at %... | 2 |
Text | Text | fix typo 'setup/set up' | 73baa673c72a49e9cccfde6e844c7dee2e478d8e | <ide><path>docs/sources/articles/networking.md
<ide> illustrate the technique.
<ide> $ echo 'DOCKER_OPTS="-b=bridge0"' >> /etc/default/docker
<ide> $ sudo service docker start
<ide>
<del> # Confirming new outgoing NAT masquerade is setup
<add> # Confirming new outgoing NAT masquerade is set up
<ide>
<id... | 1 |
Text | Text | add conclusion to tutorial | e3427f4c0b25f40e02520dd25f305384fd4ec874 | <ide><path>docs/Networking.md
<ide> ws.onclose = (e) => {
<ide> console.log(e.code, e.reason);
<ide> };
<ide> ```
<add>
<add>## High Five!
<add>
<add>If you've gotten here by reading linearly through the tutorial, then you are a pretty impressive human being. Congratulations. Next, you might want to check out [all t... | 1 |
Javascript | Javascript | remove duplicate test | 6217aff4445e16885e5e05debc19e8bd298a82b2 | <ide><path>packages/ember-metal/tests/performance_test.js
<ide>
<ide> module("Computed Properties - Number of times evaluated");
<ide>
<del>test("computed properties that depend on multiple properties should run only once per run loop", function() {
<del> var obj = {a: 'a', b: 'b', c: 'c'};
<del> var count = 0;
<de... | 1 |
Ruby | Ruby | replace closedtransaction with nulltransaction | 057c23715434adcab9b12f987d615979d1f57549 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/transaction.rb
<ide> def savepoint_name
<ide> end
<ide> end
<ide>
<del> class ClosedTransaction < Transaction #:nodoc:
<del> def initialize; super(nil); end
<add> class NullTransaction < Transaction #:nodoc:
<add> def init... | 2 |
PHP | PHP | handle array hosts | 0920c23efb9d7042d074729f2f70acbfec629c14 | <ide><path>src/Illuminate/Database/Schema/MySqlSchemaState.php
<ide> protected function baseDumpCommand()
<ide> protected function baseVariables(array $config)
<ide> {
<ide> return [
<del> 'LARAVEL_LOAD_HOST' => $config['host'],
<add> 'LARAVEL_LOAD_HOST' => is_array($config['host']... | 1 |
Ruby | Ruby | fix buildenvironment initializer | 8c4569b7c2af62983cfeb241be15d910b3aa15f4 | <ide><path>Library/Homebrew/build_environment.rb
<ide> class BuildEnvironment
<ide> attr_accessor :proc
<ide>
<ide> def initialize(*settings)
<del> @settings = Set.new(settings)
<add> @settings = Set.new(*settings)
<ide> end
<ide>
<ide> def merge(*args) | 1 |
Python | Python | remove todo note, since it hasn't been todone | 9f0ead95976c379957faf7d3f02eb52bf80a2e17 | <ide><path>rest_framework/views.py
<ide> def allowed_methods(self):
<ide>
<ide> @property
<ide> def default_response_headers(self):
<del> # TODO: deprecate?
<ide> # TODO: Only vary by accept if multiple renderers
<ide> return {
<ide> 'Allow': ', '.join(self.allowed_methods), | 1 |
Ruby | Ruby | add tests for tighter test audit | 7d5f0df71d6f5cdaf2406fca862dfc878253c5bb | <ide><path>Library/Homebrew/test/rubocops/class_cop_spec.rb
<ide> class Foo < Formula
<ide> end
<ide> RUBY
<ide> end
<add>
<add> it "reports an offense when there is an empty test block" do
<add> expect_offense(<<~RUBY)
<add> class Foo < Formula
<add> url 'https://example.com/foo-1.0.tgz'
<a... | 1 |
Javascript | Javascript | use callback helper on ticks.callback | 7d08bab45d57060af5ca84b464b2281da22c8938 | <ide><path>src/scales/scale.time.js
<ide> import adapters from '../core/core.adapters';
<del>import {isFinite, isNullOrUndef, mergeIf, valueOrDefault} from '../helpers/helpers.core';
<add>import {callback as call, isFinite, isNullOrUndef, mergeIf, valueOrDefault} from '../helpers/helpers.core';
<ide> import {toRadians,... | 1 |
Ruby | Ruby | test version interrogation methods | 3081e697832e8addd5fa7cfc19b4bc8f3922c256 | <ide><path>Library/Homebrew/test/test_versions.rb
<ide> def test_macos_version_comparison
<ide> assert v == :snow_leopard
<ide> assert v < :lion
<ide> end
<add>
<add> def test_version_interrogation
<add> v = Version.new("1.1alpha1")
<add> assert v.alpha?
<add> v = Version.new("1.0beta2")
<add> as... | 1 |
Python | Python | simplify celerykubernetesexecutor tests | 10be37513c420515251996602ca9362dfeeb095f | <ide><path>tests/executors/test_celery_kubernetes_executor.py
<ide> # under the License.
<ide> from unittest import mock
<ide>
<add>from parameterized import parameterized
<add>
<add>from airflow.executors.celery_executor import CeleryExecutor
<ide> from airflow.executors.celery_kubernetes_executor import CeleryKubern... | 1 |
PHP | PHP | fix incorrect param type | 9a9b43e610dbfbcab5b77d584539321f61883097 | <ide><path>src/Illuminate/Queue/Listener.php
<ide> public function makeProcess($connection, $queue, ListenerOptions $options)
<ide> /**
<ide> * Add the environment option to the given command.
<ide> *
<del> * @param string $command
<add> * @param array $command
<ide> * @param \Illuminate... | 1 |
Ruby | Ruby | remove the actual extension file as well [ci skip] | f0129da38572e5cc5b633b7b4cc003808c56ba30 | <ide><path>actionpack/lib/action_dispatch/journey/core-ext/hash.rb
<del># :stopdoc:
<del>if RUBY_VERSION < '1.9'
<del>class Hash
<del> def keep_if
<del> each do |k,v|
<del> delete(k) unless yield(k,v)
<del> end
<del> end
<del>end
<del>end
<del># :startdoc: | 1 |
Python | Python | remove old tf2 bert for squad | 3635527dc66cdfe7270e5b3086858db7307df8a3 | <ide><path>official/nlp/bert/run_squad.py
<ide> 'The maximum length of an answer that can be generated. This is needed '
<ide> 'because the start and end predictions are not conditioned on one another.')
<ide> flags.DEFINE_bool(
<del> 'use_keras_bert_for_squad', False, 'Whether to use keras BERT for squad '
... | 2 |
Python | Python | add test for deprecated flask.request properties | 4d4a639ba46cf72454497bc100b3e811e66af4b2 | <ide><path>tests/test_deprecations.py
<ide> :copyright: (c) 2014 by Armin Ronacher.
<ide> :license: BSD, see LICENSE for more details.
<ide> """
<add>
<add>import pytest
<add>
<add>import flask
<add>
<add>
<add>class TestRequestDeprecation(object):
<add>
<add> def test_request_json(self, catch_deprecation_wa... | 1 |
Python | Python | fix this pr | f0bc684c459df4d75a2bebb2e45a83d2f451b98c | <ide><path>research/object_detection/box_coders/detr_box_coder.py
<ide> # limitations under the License.
<ide> # ==============================================================================
<ide>
<del>"""Faster RCNN box coder.
<add>"""DETR box coder.
<ide>
<del>Faster RCNN box coder follows the coding schema descri... | 2 |
Python | Python | document the blueprint param too | fe1bf3c8213c56e045ead8afa84773f181b3dab6 | <ide><path>flask/app.py
<ide> def make_null_session(self):
<ide> return self.session_interface.make_null_session(self)
<ide>
<ide> @setupmethod
<del> def register_blueprint(
<del> self, blueprint, **options
<del> ):
<add> def register_blueprint(self, blueprint, **options):
<ide> """... | 1 |
Javascript | Javascript | update apollo example | 01cc89845040828c6e1f2bc053ff9c853d1635c5 | <ide><path>examples/with-apollo/lib/initClient.js
<ide> let apolloClient = null
<ide> function createClient (headers) {
<ide> return new ApolloClient({
<ide> ssrMode: !process.browser,
<del> headers,
<ide> dataIdFromObject: result => result.id || null,
<ide> networkInterface: createNetworkInterface({
<... | 2 |
Python | Python | remove references to python 2 | e4d1c7781fcd762646c77449690491597c2be82f | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide>
<ide> Behavior on division by zero can be changed using ``seterr``.
<ide>
<del> In Python 2, when both ``x1`` and ``x2`` are of an integer type,
<del> ``divide`` will behave like ``floor_divide``. In Pyth... | 3 |
Ruby | Ruby | handle no /usr/bin/gcc | e526c65566fde66b38b045dabf7fa9c7e28fad20 | <ide><path>Library/Homebrew/extend/os/linux/development_tools.rb
<ide> def build_system_too_old?
<ide>
<ide> sig { returns(T::Boolean) }
<ide> def system_gcc_too_old?
<del> gcc_version("/usr/bin/gcc") < OS::LINUX_GCC_CI_VERSION
<add> gcc = "/usr/bin/gcc"
<add> return true unless File.exist?(gcc)... | 1 |
Ruby | Ruby | use rails backtrace in tests | d91bee80beae4e92b2b015599771310cebc3a143 | <ide><path>activesupport/lib/active_support/backtrace_cleaner.rb
<ide> def clean(backtrace, kind = :silent)
<ide> filtered
<ide> end
<ide> end
<add> alias :filter :clean
<ide>
<ide> # Adds a filter from the block provided. Each line in the backtrace will be
<ide> # mapped against this filt... | 2 |
Python | Python | implement ex_open_console for openstack | 0cc480ebcc8f6ca75fbae5780e94274b298b7390 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def ex_delete_subnet(self, subnet_id):
<ide>
<ide> return response
<ide>
<add> def ex_open_console(self, node_id):
<add> """
<add> Get remote console URL
<add>
<add> :param node: node
<add> :type node: :class:`Nod... | 1 |
Javascript | Javascript | fix total item counting | f1d23381aaa96e076cf0675f062817c61d24352b | <ide><path>lib/stats/DefaultStatsFactoryPlugin.js
<ide> const getTotalSize = children => {
<ide> const getTotalItems = children => {
<ide> let count = 0;
<ide> for (const child of children) {
<del> if (child.children) count += getTotalItems(child.children);
<del> else if (child.filteredChildren) count += child.filt... | 1 |
Text | Text | fix typos in docs | 57e2a82355c15005875fedc733dc45081af5a2d9 | <ide><path>docs/migration.md
<ide> instructions that didn’t modify the filesystem.
<ide>
<ide> Content addressability is the foundation for the new distribution features. The
<ide> image pull and push code has been reworked to use a download/upload manager
<del>concept that makes pushing and pulling images much more s... | 3 |
Text | Text | fix a command typo in models.md | 7d13fc799b4764ccbc40137792c12f6984980990 | <ide><path>website/docs/usage/models.md
<ide> the package name or a path to the data directory:
<ide> >
<ide> > ```diff
<ide> > - python -m spacy download en
<del>> + python -m spacy dowmload en_core_web_sm
<add>> + python -m spacy download en_core_web_sm
<ide> > ```
<ide>
<ide> ```python | 1 |
Javascript | Javascript | revert a change from the narrow hack | 92081af8968ac6123797eab838e0e5bd5e4190a9 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> // This is a poor simulation for Arial Narrow while font-stretch
<ide> // is not implemented (bug 3512)
<ide> if (current.font.narrow) {
<del> textHScale += 0.6;
<add> textHScale += 0.2;
<ide> charSpacing -= (0.09 *... | 1 |
Text | Text | add documentation regarding our api tooling | bf28da8617a9ba37b4aa274b38957ea39a613e48 | <ide><path>doc/contributing/api-documentation.md
<add># Node.js API Documentation Tooling
<add>
<add>The Node.js API documentation is generated by an in-house tooling that resides
<add>within the [tools/doc](https://github.com/nodejs/node/tree/main/tools/doc)
<add>directory.
<add>
<add>The build process (using `make do... | 1 |
Python | Python | add additional tests of lcm and gcd | bf35ddcdc961842628b6aa257609a280ffee9e2c | <ide><path>numpy/core/tests/test_umath.py
<ide> def test_mixed(self):
<ide> a = np.array([True, True])
<ide> assert_equal(np.choose(c, (a, 1)), np.array([1, 1]))
<ide>
<add>
<ide> class TestRationalFunctions(object):
<ide> def test_lcm(self):
<ide> self._test_lcm_inner(np.int16)
<ide> def t... | 1 |
Text | Text | fix placement of exec driver heading | 68efb27e990a52478d9927911757a07910244dc5 | <ide><path>docs/reference/commandline/daemon.md
<ide> options for `zfs` start with `zfs`.
<ide>
<ide> $ docker -d --storage-opt dm.blkdiscard=false
<ide>
<del>
<del>## Docker execdriver option
<del>
<ide> Currently supported options of `zfs`:
<ide>
<ide> * `zfs.fsname`
<ide> Currently supported options of `... | 1 |
Ruby | Ruby | load 5.2 defaults in ast dummy app | ae7593e7e842ec5efb8d58a7ce005ba55fd4c886 | <ide><path>activestorage/test/dummy/config/application.rb
<ide>
<ide> module Dummy
<ide> class Application < Rails::Application
<del> config.load_defaults 5.1
<add> config.load_defaults 5.2
<ide>
<ide> config.active_storage.service = :local
<ide> end | 1 |
PHP | PHP | reduce code duplication | d94003c2dab0643a5e0539de6f7eae7f72f9074d | <ide><path>src/View/Widget/BasicWidget.php
<ide> public function render(array $data, ContextInterface $context)
<ide> */
<ide> public function secureFields(array $data)
<ide> {
<add> if (!isset($data['name']) || $data['name'] === '') {
<add> return [];
<add> }
<ide> return ... | 5 |
Ruby | Ruby | remove duplicated logic | f9b33e26e077a80e85caa1b2434943ab7b55de60 | <ide><path>Library/brew.rb
<ide> if ARGV == %w[--version] || ARGV == %w[-v]
<ide> puts "Homebrew #{Homebrew.homebrew_version_string}"
<ide> exit 0
<del>elsif ARGV.first == "-v"
<del> # Shift the -v to the end of the parameter list
<del> ARGV << ARGV.shift
<ide> end
<ide>
<ide> if OS.mac? && MacOS.version < "10.6... | 1 |
Text | Text | remove mentions of sorbet/files.yaml | 4e9773a650759b5d01c310a99fab00b138443eda | <ide><path>docs/Typechecking.md
<ide> file are always passed first (if it exists), followed by arguments provided on t
<ide> command line. We use it ignore the `Library/Homebrew/vendor` directory, which
<ide> contains gem definitions which we do not wish to type check.
<ide>
<del>- The `files.yaml` file. It contains a... | 1 |
Text | Text | add note about usage docs [ci skip] | bd435fadddfe21d6f3e94a32ed350ca4d49772b3 | <ide><path>website/docs/api/entityruler.md
<ide> token-based rules or exact phrase matches. It can be combined with the
<ide> statistical [`EntityRecognizer`](/api/entityrecognizer) to boost accuracy, or
<ide> used on its own to implement a purely rule-based entity recognition system.
<ide> After initialization, the co... | 1 |
Text | Text | add a notice to the readme in models/inception | c2fe833c56ba03b7d013100265934d1f17e29214 | <ide><path>inception/README.md
<ide> model architecture.
<ide>
<ide> ## Description of Code
<ide>
<add>NOTE: For the most part, you will find a newer version of this code at [models/slim](https://github.com/tensorflow/models/tree/master/slim). In particular:
<add>
<add>* `inception_train.py` and `imagenet_train.py`... | 1 |
Text | Text | fix first paragraph of index.html | 33fd42e7ed60def8b58b686d9912330445981197 | <ide><path>guide/spanish/computer-hardware/power-supply/index.md
<ide> localeTitle: Fuente de alimentación
<ide> ---
<ide> ## Fuente de alimentación
<ide>
<del>Una unidad de fuente de alimentación (PSU) suministra energía a una computadora. Convierte la alimentación de CA en una alimentación continua de baja tensión d... | 1 |
Text | Text | update clojure readme | 0da1e888705e9af489cf420ee0ed19c621a8def4 | <ide><path>language-adaptors/rxjava-clojure/README.md
<del># Clojure Adaptor for RxJava
<add>Clojure bindings for RxJava.
<ide>
<add># Binaries
<add>
<add>Binaries and dependency information for Maven, Ivy, Gradle and others can be found at [http://search.maven.org](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22rx... | 1 |
Ruby | Ruby | require hash/keys inside active_model/callbacks | 80873a49af6f52d48224d9c18c60e67c3f9d4731 | <ide><path>activemodel/lib/active_model/callbacks.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "active_support/core_ext/array/extract_options"
<add>require "active_support/core_ext/hash/keys"
<ide>
<ide> module ActiveModel
<ide> # == Active \Model \Callbacks | 1 |
Go | Go | remove accidental debug spew | bff0c4f3dc560109ed2d5dc6cae12453c9bc2747 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) loadMetadata(hash string) *DevInfo {
<ide> return nil
<ide> }
<ide>
<del> fmt.Printf("Loaded metadata %v\n", info)
<del>
<ide> // If the transaction id is larger than the actual one we lost the device due to some crash
<ide> if i... | 1 |
Ruby | Ruby | set cached values in the env hash | ec760e67fd9be26de165c912dfd0dd0f3f31b4b8 | <ide><path>actionpack/lib/action_dispatch/http/mime_negotiation.rb
<ide> module MimeNegotiation
<ide> # For backward compatibility, the post \format is extracted from the
<ide> # X-Post-Data-Format HTTP header if present.
<ide> def content_mime_type
<del> get_header("action_dispatch.request.con... | 1 |
Java | Java | replace "blacklist" with alternative words | 972c01cbbd8c99c9c175519dbbae67751c567d86 | <ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/CrossOriginAnnotationIntegrationTests.java
<ide> protected ApplicationContext initApplicationContext() {
<ide>
<ide> @Override
<ide> protected RestTemplate initRestTemplate() {
<del> // JDK default HTTP client blacklis... | 2 |
PHP | PHP | apply fixes from styleci | 0740f78a9869f0c96a78781b21ccd4c127ce460f | <ide><path>tests/Support/SupportStrTest.php
<ide> public function testStringCanBeLimitedByWordsNonAscii()
<ide> $this->assertSame('这是...', Str::words('这是 段中文', 1));
<ide> $this->assertSame('这是___', Str::words('这是 段中文', 1, '___'));
<ide> $this->assertSame('这是-段中文', Str::words('这是-段中文', 3, '___'))... | 1 |
Javascript | Javascript | flow strict statusbar | 6fa997dd634f76b04bcef9bd98c6e57c8069cef0 | <ide><path>Libraries/Components/StatusBar/StatusBar.js
<ide> * LICENSE file in the root directory of this source tree.
<ide> *
<ide> * @format
<del> * @flow
<add> * @flow strict-local
<ide> */
<ide>
<ide> 'use strict';
<ide> type Props = $ReadOnly<{|
<ide> barStyle?: ?('default' | 'light-content' | 'dark-content... | 1 |
Javascript | Javascript | extract orbitconstraint from orbitcontrols | 6a2a28fe34e3ff1ab6b183325ebbc810da2a4195 | <ide><path>examples/js/controls/OrbitControls.js
<ide> */
<ide> /*global THREE, console */
<ide>
<del>// This set of controls performs orbiting, dollying (zooming), and panning. It maintains
<del>// the "up" direction as +Y, unlike the TrackballControls. Touch on tablet and phones is
<del>// supported.
<del>//
<del>/... | 1 |
PHP | PHP | remove extra code from event list | e2dea14e0573d9b4293d2eef13b03ec038c203ea | <ide><path>src/Illuminate/Foundation/Console/EventListCommand.php
<ide>
<ide> use Closure;
<ide> use Illuminate\Console\Command;
<del>use Illuminate\Foundation\Support\Providers\EventServiceProvider;
<ide> use Illuminate\Support\Str;
<ide> use ReflectionFunction;
<ide>
<ide> protected function getEvents()
<ide> {... | 1 |
Java | Java | remove unused variable in test | f140464c1289c0d176823e246bfe21dda62e30df | <ide><path>spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/MultipartControllerTests.java
<ide>
<ide> import java.io.IOException;
<ide> import java.nio.charset.StandardCharsets;
<del>import java.util.Collections;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> import jav... | 1 |
Mixed | Go | fix some typos | 5c0d2a0932afb1e9c9e26326a22fdbefa1069463 | <ide><path>CHANGELOG.md
<ide> be found.
<ide> * Add `--format` option to `docker node ls` [#30424](https://github.com/docker/docker/pull/30424)
<ide> * Add `--prune` option to `docker stack deploy` to remove services that are no longer defined in the docker-compose file [#31302](https://github.com/docker/docker/pull/31... | 4 |
Ruby | Ruby | use models to match the docs | 9dc1871acb467abb18ba4e452d2a7c8039799bcd | <ide><path>railties/test/application/current_attributes_integration_test.rb
<ide> class CurrentAttributesIntegrationTest < ActiveSupport::TestCase
<ide> setup do
<ide> build_app
<ide>
<del> app_file "app/services/current.rb", <<-RUBY
<add> app_file "app/models/current.rb", <<-RUBY
<ide> class Current... | 1 |
Javascript | Javascript | fix imageobj.imagemask bug from merge | b873c1f4da297c4d4b1bd743d6d28a975fe75c65 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function canvasGraphics() {
<ide>
<ide> var tmpCanvas = new this.ScratchCanvas(w, h);
<ide> var tmpCtx = tmpCanvas.getContext('2d');
<del> if (imageObj.imageMask) {
<del> var fillColor = this.current.fillColor;
<del> tmpCtx.fillStyle = (fillC... | 1 |
Javascript | Javascript | fix no dumping after `maybereadmore` | 357f904169c39bbc9c2d8558bbffce2337c83c1b | <ide><path>lib/_http_incoming.js
<ide> exports.readStop = readStop;
<ide> function IncomingMessage(socket) {
<ide> Stream.Readable.call(this);
<ide>
<add> // Set this to `true` so that stream.Readable won't attempt to read more
<add> // data on `IncomingMessage#push` (see `maybeReadMore` in
<add> // `_stream_read... | 2 |
Python | Python | remove misleading documentation | 4c12860f7ae61659aed2675498350a386fc4e122 | <ide><path>transformers/tokenization_utils.py
<ide> def tokenize(self, text, **kwargs):
<ide> Take care of added tokens.
<ide>
<ide> text: The sequence to be encoded.
<del> return_tokens_mapped_to_origin: (optional) Set to True to return the index of each token in the initial whitesp... | 1 |
Javascript | Javascript | return time from getvalueforpixel | 5b0a0b039ce30f40a5a4a6162667f9eaf4c62f0f | <ide><path>src/adapters/adapter.moment.js
<ide> adapters._date.override(typeof moment === 'function' ? {
<ide>
<ide> endOf: function(time, unit) {
<ide> return moment(time).endOf(unit).valueOf();
<del> },
<del>
<del> // DEPRECATIONS
<del>
<del> /**
<del> * Provided for backward compatibility with scale.getValueFor... | 4 |
Ruby | Ruby | add missing test for | 69f3f81e6ca6ee7ce184f6eafaf4b1e1b78564c3 | <ide><path>activemodel/test/cases/validations/confirmation_validation_test.rb
<ide> def title_confirmation=(value)
<ide> assert_equal "expected title", model.title_confirmation,
<ide> "confirmation validation should not override the writer"
<ide> end
<add>
<add> def test_title_confirmation_with_case_sensiti... | 1 |
Javascript | Javascript | fix popover.android to bubble events correctly | eb21b25e2d9f148a33ac9b542aade05f2e197123 | <ide><path>Libraries/Modal/Modal.js
<ide> class Modal extends React.Component {
<ide> transparent={this.props.transparent}
<ide> onRequestClose={this.props.onRequestClose}
<ide> onShow={this.props.onShow}
<del> style={styles.modal}>
<add> style={styles.modal}
<add> onStartSh... | 1 |
Text | Text | fix metadata for v11.8.0 doc changes | bbb2134e7b5d2c736b294deee798124ac91fc245 | <ide><path>doc/api/cli.md
<ide> $ source node_bash_completion
<ide>
<ide> ### `--diagnostic-report-directory=directory`
<ide> <!-- YAML
<del>added: v11.7.0
<add>added: v11.8.0
<ide> -->
<ide>
<ide> Location at which the report will be generated.
<ide>
<ide> ### `--diagnostic-report-filename=filename`
<ide> <!-- YAML... | 4 |
Mixed | Python | add preprocessing.image to autodocs | 5216360a3c70b0f4d685966ef449645fa131ade8 | <ide><path>docs/autogen.py
<ide> preprocessing.sequence.TimeseriesGenerator,
<ide> ]
<ide> },
<add> {
<add> 'page': 'preprocessing/image.md',
<add> 'functions': [
<add> preprocessing.image.random_rotation,
<add> preprocessing.image.random_shift,
<add> ... | 5 |
Ruby | Ruby | add link to rollback in transactions doc | 8a3dcf941d9d90c3aee328287a1dd7440ff38f4e | <ide><path>activerecord/lib/active_record/transactions.rb
<ide> module Transactions
<ide> # be propagated (after triggering the ROLLBACK), so you should be ready to
<ide> # catch those in your application code.
<ide> #
<del> # One exception is the ActiveRecord::Rollback exception, which will trigger
<del... | 1 |
Go | Go | use termios via cgo | 244af451e9bdff5c87bca84e4c15193fc9eebc64 | <ide><path>pkg/term/term.go
<ide> func SetWinsize(fd uintptr, ws *Winsize) error {
<ide> // IsTerminal returns true if the given file descriptor is a terminal.
<ide> func IsTerminal(fd uintptr) bool {
<ide> var termios Termios
<del> _, _, err := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(getTermios), uintptr(unsaf... | 6 |
Go | Go | enhance testing infra | b09cb39fa5cb326bc8c55aa2743a9759b5543a72 | <ide><path>libnetwork/cmd/networkdb-test/dbclient/ndbClient.go
<ide> package dbclient
<ide>
<ide> import (
<ide> "context"
<add> "fmt"
<ide> "io/ioutil"
<ide> "log"
<ide> "net"
<ide> type resultTuple struct {
<ide> }
<ide>
<ide> func httpGetFatalError(ip, port, path string) {
<del> // for {
<ide> body, err := ht... | 4 |
Ruby | Ruby | handle frozen homebrew.args | 82e314c4674598552ad7f469377b47772ca64a05 | <ide><path>Library/Homebrew/test/messages_spec.rb
<ide> end
<ide> end
<ide>
<add> # Homebrew.args OpenStruct usage cannot use verified doubles.
<add> # rubocop:disable RSpec/VerifiedDoubles
<ide> context "when the --display-times argument is present" do
<ide> before do
<del> allow(Home... | 1 |
Ruby | Ruby | remove redundant begin block | 1f5e21bcbce41a5d49998df9ee58c1c875626fd6 | <ide><path>activerecord/lib/active_record/middleware/database_selector/resolver.rb
<ide> def read_from_replica(&blk)
<ide> def write_to_primary(&blk)
<ide> ActiveRecord::Base.connected_to(role: :writing) do
<ide> instrumenter.instrument("database_selector.active_record.wrote_to_prima... | 1 |
Text | Text | add sorbet documentation | cba751a34320a57be5dfec052ffd92783399e2d4 | <ide><path>docs/README.md
<ide> - [How To Create (And Maintain) A Tap](How-to-Create-and-Maintain-a-Tap.md)
<ide> - [Brew Test Bot](Brew-Test-Bot.md)
<ide> - [Prose Style Guidelines](Prose-Style-Guidelines.md)
<add>- [Type Checking with Sorbet](Typechecking.md)
<ide>
<ide> ## Maintainers
<ide>
<ide><path>docs/Typeche... | 2 |
Mixed | Text | remove mips support | 9334e45aa0ed815c2745bcc2bb606d91be64998d | <ide><path>configure.py
<ide>
<ide> valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
<ide> 'android', 'aix', 'cloudabi')
<del>valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
<add>valid_arch = ('arm', 'arm64', 'ia32', 'ppc',
<ide> 'ppc64', 'x32','x... | 3 |
Ruby | Ruby | ignore schema queries on sqlite 3 as well | 31ccedd440617edeaa9b11b89219a65ec7225442 | <ide><path>activerecord/lib/active_record/test_case.rb
<ide> def clear_log; self.log = []; self.log_all = []; end
<ide> oracle_ignored = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from all_triggers/im]
<ide> mysql_ignored = [/^SHOW TABLES/i, /^SHOW FULL FIELDS/]
<ide> postg... | 1 |
Python | Python | add benchmarks for thread tuning. | 54dffe2ef012c5cd241d65b270709d7ddb257f5d | <ide><path>official/resnet/keras/keras_imagenet_benchmark.py
<ide> def benchmark_8_gpu(self):
<ide> FLAGS.model_dir = self._get_model_dir('benchmark_8_gpu')
<ide> FLAGS.dtype = 'fp32'
<ide> FLAGS.enable_eager = True
<add> # Add some thread tunings to improve performance.
<add> FLAGS.datasets_num_priva... | 1 |
Go | Go | change push to use manifest builder | f33fa1b8d3befec31fdf1952ea1190012c812dc7 | <ide><path>distribution/push.go
<ide> import (
<ide> "io"
<ide>
<ide> "github.com/Sirupsen/logrus"
<del> "github.com/docker/distribution/digest"
<ide> "github.com/docker/docker/distribution/metadata"
<ide> "github.com/docker/docker/distribution/xfer"
<ide> "github.com/docker/docker/image"
<ide> func NewPusher(ref... | 7 |
PHP | PHP | add getter and setter | 5a6c10d5fafaf5a19e085b6b1b16d9aff9714d80 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> public function setCustomMessages(array $messages)
<ide> {
<ide> $this->customMessages = array_merge($this->customMessages, $messages);
<ide> }
<add>
<add> /**
<add> * Get the custom attributes for the validator
<add> *
<add> * @return array
<add> */
<ad... | 1 |
Java | Java | add operator for deferred writes | 8c89b478d94f5c290c82ede2c302b1740b5d08e4 | <ide><path>spring-web-reactive/src/main/java/org/springframework/http/server/reactive/WriteWithOperator.java
<add>/*
<add> * Copyright 2002-2015 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the... | 2 |
Ruby | Ruby | switch compilers when no build is specified | cc08d08d74f20d72ba378fed3bbc53390be0b97d | <ide><path>Library/Homebrew/build.rb
<ide> def install f
<ide> end
<ide> end
<ide>
<del> if f.fails_with? ENV.compiler
<del> cs = CompilerSelector.new f
<del> cs.select_compiler
<del> cs.advise
<del> end
<add> CompilerSelector.new(f).select_compiler if f.fails_with? ENV.compiler
<ide>
<ide> f.brew... | 4 |
Ruby | Ruby | use inheritence to deal with custom methods | b2979117e0adad6f86370074237f57d96cc7c1c7 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def column_exists?(table_name, column_name, type = nil, options = {})
<ide> #
<ide> # See also TableDefinition#column for details on how to create columns.
<ide> def create_table(table_name, options = {})... | 2 |
Python | Python | use contextmanager in _run_doctests | 616d27eba33dcb6268ae443e3880300cc82fdc48 | <ide><path>tools/refguide_check.py
<ide>
<ide> $ python refguide_check.py --rst docs
<ide> """
<del>import sys
<del>import os
<del>import re
<ide> import copy
<del>import inspect
<del>import warnings
<ide> import doctest
<del>import tempfile
<add>import glob
<add>import inspect
<ide> import io
<del>import docutils... | 1 |
Java | Java | improve dateheaders in mockservletrequest/response | 43e36e2dee8e2c7be54ba3715cc355c8a35f9efc | <ide><path>spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.java
<ide> import java.io.Reader;
<ide> import java.io.UnsupportedEncodingException;
<ide> import java.security.Principal;
<add>import java.text.ParseException;
<add>import java.text.SimpleDateFormat;
<ide> import java.util.Collect... | 5 |
PHP | PHP | add deletemany() and deletemanyorfail() | 8c60a78fdf723711062622124dbcc8ecddf0eca0 | <ide><path>src/ORM/Table.php
<ide> public function deleteMany(iterable $entities, $options = [])
<ide> * @param array|\ArrayAccess $options Options used when calling Table::save() for each entity.
<ide> * @return \Cake\Datasource\EntityInterface[]|\Cake\Datasource\ResultSetInterface Entities list.
<ide> ... | 1 |
PHP | PHP | fix docblock on argument type | 603ed4a73f926e2a94fb39a01ac1d1dbaf5255d1 | <ide><path>src/Illuminate/Contracts/Foundation/Application.php
<ide> public function register($provider, $options = [], $force = false);
<ide> * Register a deferred provider and service.
<ide> *
<ide> * @param string $provider
<del> * @param string $service
<add> * @param string|null $servi... | 2 |
Javascript | Javascript | provide support for custom animation events | c53d4c94300c97dd005f9a0cbdbfa387294b9026 | <ide><path>src/ng/animator.js
<ide> var $AnimatorProvider = function() {
<ide> * @param {jQuery/jqLite element} element the element that will be rendered visible or hidden
<ide> */
<ide> animator.hide = animateActionFactory('hide', noop, hide);
<add>
<add> /**
<add> * @ngdoc func... | 2 |
Text | Text | add pronouns for tniessen to readme | 54a85d6bb5f8bacec2842caa2172a4fa6864b234 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> * [targos](https://github.com/targos) -
<ide> **Michaël Zasso** \<targos@protonmail.com> (he/him)
<ide> * [tniessen](https://github.com/tniessen) -
<del> **Tobias Nießen** \<tniessen@tnie.de>
<add> **Tobias Nießen** \<... | 1 |
Text | Text | add introductory links from docs in the readme | 9b9cf10a98e6c97453f059ccfdf35ffc9874c951 | <ide><path>README.md
<ide> We have a variety of resources available to help you learn Redux, no matter what
<ide>
<ide> If you're brand new to Redux and want to understand the basic concepts, see:
<ide>
<add>- The **[Motivation](https://redux.js.org/introduction/motivation)** behind building Redux, the **[Core Concep... | 1 |
Javascript | Javascript | remove obsolete domain test | a8526cb5a46df0cd8052ca1a13cab78e0e0c6a4b | <ide><path>test/parallel/test-microtask-queue-run-immediate-domain.js
<del>// Copyright Joyent, Inc. and other Node contributors.
<del>//
<del>// Permission is hereby granted, free of charge, to any person obtaining a
<del>// copy of this software and associated documentation files (the
<del>// "Software"), to deal in ... | 1 |
Ruby | Ruby | remove redundant require of file | 52720b46ead63ced84abb0a6efaf54cf72bee70e | <ide><path>activemodel/test/cases/validations/validates_test.rb
<ide> require 'models/person'
<ide> require 'models/topic'
<ide> require 'models/person_with_validator'
<del>require 'validators/email_validator'
<ide> require 'validators/namespace/email_validator'
<ide>
<ide> class ValidatesTest < ActiveModel::TestCase | 1 |
Javascript | Javascript | set the iteration state before linking | 0c8a2cd2da3a4a9f5d2ee9c25ea8ed56d74a93ab | <ide><path>src/ng/directive/ngRepeat.js
<ide> var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
<ide> $animate.move(getBlockElements(block.clone), null, jqLite(previousNode));
<ide> }
<ide> previousNode = getBlockEnd(block);
<add> update... | 2 |
Python | Python | add norm exception for ing verbs | 288298ead9dc6631172173c92049525315859e85 | <ide><path>spacy/lang/en/norm_exceptions.py
<ide> "disorganised": "disorganized",
<ide> "distil": "distill",
<ide> "distils": "distills",
<add> "doin": "doing",
<add> "doin'": "doing",
<ide> "dramatisation": "dramatization",
<ide> "dramatisations": "dramatizations",
<ide> "dramatise": "dra... | 1 |
Javascript | Javascript | add assert.deep[strict]equal benchmarks | 5e4545e18f707e9ab28a50bd30f29b06320c8234 | <ide><path>benchmark/assert/deepequal-buffer.js
<add>'use strict';
<add>const common = require('../common.js');
<add>const assert = require('assert');
<add>const bench = common.createBenchmark(main, {
<add> n: [1e3],
<add> len: [1e2],
<add> method: ['strict', 'nonstrict']
<add>});
<add>
<add>function main(conf) {
<a... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.