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 |
|---|---|---|---|---|---|
Ruby | Ruby | implement x11requirement for linux | 804393efc466e72ea07b3e38b09d39a5a64d1b78 | <ide><path>Library/Homebrew/extend/os/mac/requirements/x11_requirement.rb
<add>require "requirement"
<add>
<add>class XQuartzRequirement < Requirement
<add> include Comparable
<add>
<add> fatal true
<add> cask "xquartz"
<add> download "https://xquartz.macosforge.org"
<add>
<add> env { ENV.x11 }
<add>
<add> def in... | 3 |
Ruby | Ruby | add inline patch checks to patches cop | afb844538048055d3a5ce42ce051a21fb3ff8cf2 | <ide><path>Library/Homebrew/rubocops/patches.rb
<ide> module Cop
<ide> module FormulaAudit
<ide> # This cop audits patches in Formulae.
<ide> class Patches < FormulaCop
<del> def audit_formula(_node, _class_node, _parent_class_node, body)
<add> def audit_formula(node, _class_node, _parent_... | 1 |
Javascript | Javascript | add server integration tests for new context | c040bcbea8e4393fbab549cc195162ac183625ed | <add><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationLegacyContext-test.js
<del><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationContext-test.js
<ide> describe('ReactDOMServerIntegration', () => {
<ide> resetModules();
<ide> });
<ide>
<del> describe('context', function() {
<add> ... | 2 |
Javascript | Javascript | add more tests for error boundaries | bd3c90ac6f9b601e0c0b53ae38b0e8d4bbc5ac03 | <ide><path>src/renderers/shared/stack/reconciler/__tests__/ReactErrorBoundaries-test.js
<ide> describe('ReactErrorBoundaries', () => {
<ide> var BrokenComponentWillUnmount;
<ide> var BrokenRenderErrorBoundary;
<ide> var BrokenComponentWillMountErrorBoundary;
<add> var BrokenComponentDidMountErrorBoundary;
<ide> ... | 1 |
Javascript | Javascript | remove unused fast path in internal debuglog | 49ba2104c495935bc83390dc8c4cd82bd4c24db9 | <ide><path>lib/internal/util/debuglog.js
<ide> function debuglog(set, cb) {
<ide> if (typeof cb === 'function')
<ide> cb(debug);
<ide> switch (args.length) {
<del> case 0: return debug();
<ide> case 1: return debug(args[0]);
<ide> case 2: return debug(args[0], args[1]);
<ide> defaul... | 1 |
Text | Text | fix links in socket.connecting | ffc708daad2c512bfe5bc28af07d237bfeaaf89b | <ide><path>doc/api/net.md
<ide> The `connectListener` parameter will be added as a listener for the
<ide> ### socket.connect(path[, connectListener])
<ide> ### socket.connect(port[, host][, connectListener])
<ide>
<del>As [`socket.connect(options\[, connectListener\])`][`socket.connect(options, connectListener)`],
<ad... | 1 |
PHP | PHP | add test for view component class | 33461dcbb77702d444ec0e04a55c2e7ff97521b1 | <ide><path>tests/View/ViewComponentTest.php
<ide> public function testDataExposure()
<ide> $this->assertEquals('world', $variables['hello']());
<ide> $this->assertEquals('taylor', $variables['hello']('taylor'));
<ide> }
<add>
<add> public function testPublicMethodsWithNoArgsAreEagerlyInvokedAndNo... | 1 |
Python | Python | improve add_newdocs performance | 66174b8aa5644b11054b72761e89e22fd8a18eae | <ide><path>numpy/lib/function_base.py
<ide> def add_newdoc(place, obj, doc):
<ide> that the docstrings were changed.
<ide> """
<ide> try:
<del> new = {}
<del> exec('from %s import %s' % (place, obj), new)
<add> new = getattr(__import__(place, globals(), {}, [obj]), obj)
<ide> ... | 2 |
Python | Python | ignore unknown events | a77a42ea5cab5d5f34901e53cffd989d40bb46a8 | <ide><path>celery/events/state.py
<ide> def __init__(self, callback=None,
<ide> self.tasks = LRUCache(limit=max_tasks_in_memory)
<ide> self.event_callback = callback
<ide> self._mutex = threading.Lock()
<add> self.handlers = {'task': self.task_event,
<add> 'worker'... | 1 |
Javascript | Javascript | make use of declared but unused variables | 03c572551de92ef11f649dbeb305f7c747c68f52 | <ide><path>src/ng/directive/ngModel.js
<ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
<ide> };
<ide> ngModelSet = function($scope, newValue) {
<ide> if (isFunction(parsedNgModel($scope))) {
<del> invokeModelSetter($scope, {$$$p: ctrl.$modelValue});
<a... | 2 |
PHP | PHP | add language to str_slug helper | deefa1f96df1f21de36e40ebe1ef61b997d8e098 | <ide><path>src/Illuminate/Support/helpers.php
<ide> function str_singular($value)
<ide> *
<ide> * @param string $title
<ide> * @param string $separator
<add> * @param string $language
<ide> * @return string
<ide> */
<del> function str_slug($title, $separator = '-')
<add> functio... | 1 |
Python | Python | set version to v2.3.0 | 7ff447c5a0198600bfb8f4a43b042a6ed8276126 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.3.0.dev1"
<add>__version__ = "2.3.0"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mod... | 1 |
Ruby | Ruby | add configurable selenium driver for capybara | 4f08bc0808ab93f70a029f15ac094d61fc5ba121 | <ide><path>actionpack/lib/system_testing/driver_adapters.rb
<ide> module DriverAdapters
<ide> extend ActiveSupport::Autoload
<ide>
<ide> autoload :CapybaraRackTestDriver
<add> autoload :CapybaraSeleniumDriver
<ide>
<ide> class << self
<ide> def lookup(name)
<ide><path>actionpack/lib/system_testin... | 2 |
Text | Text | add documentation for wildcard | 4a37cd131893fb67fcbba45ef57ee4b4015ef043 | <ide><path>guide/english/bash/bash-rm/index.md
<ide> rm <file name or file path>
<ide> rm -R <folder name or folder path>
<ide> ```
<ide>
<del>You will be prompted with **'rm: remove regular file ‘hello’?'** and will need to respond **'y'** before the file can be deleted. Use this command with caution because 'rm' is ... | 1 |
Text | Text | add a note about font-family in syntax themes | c5a15fb50e36c6074208b0fcbef52d2ce23970e2 | <ide><path>docs/creating-a-theme.md
<ide> window in dev mode. To open a Dev Mode Atom window run `atom --dev .` in the
<ide> terminal, use `cmd-shift-o` or use the _View > Developer > Open in Dev Mode_
<ide> menu. When you edit your theme, changes will instantly be reflected!
<ide>
<add>> Note: It's advised to _not_ s... | 1 |
Javascript | Javascript | return needed objects | 706fac34a0d7c96a5e51ff453a9885ef631a31b9 | <ide><path>script/lib/update-dependency/check-npm.js
<ide> module.exports = async function(cwd) {
<ide> ignoreDev: true,
<ide> skipUnused: true
<ide> });
<del> const outdatedPackages = currentState.get('packages').filter(p => {
<del> if (p.packageJson && p.latest) {
<del> return p.latest ... | 1 |
Text | Text | add missing import in css docs | 9a548b649f541d2e0631102b2a4dc40edff7b1e6 | <ide><path>docs/basic-features/built-in-css-support.md
<ide> For importing CSS required by a third party component, you can do so in your com
<ide> // components/ExampleDialog.js
<ide> import { useState } from 'react'
<ide> import { Dialog } from '@reach/dialog'
<add>import VisuallyHidden from '@reach/visually-hidden'
... | 1 |
PHP | PHP | fix yoda condition in file test | b93f373f1627560dc001b1e52c2941e4ce9920e4 | <ide><path>lib/Cake/Test/Case/Utility/FileTest.php
<ide> public function testMime() {
<ide> $path = CAKE . 'Test' . DS . 'test_app' . DS . 'webroot' . DS . 'img' . DS . 'cake.power.gif';
<ide> $file = new File($path);
<ide> $expected = 'image/gif';
<del> if (function_exists('mime_content_type') && false === mime... | 1 |
Javascript | Javascript | create new array in defaults | 1de9e168589b383583086a1a776bbfd947335819 | <ide><path>lib/config/defaults.js
<ide> const applyResolveDefaults = (
<ide> F(resolve, "mainFields", () =>
<ide> webTarget ? ["browser", "module", "main"] : ["module", "main"]
<ide> );
<del> D(resolve, "roots", [context]);
<add> F(resolve, "roots", () => [context]);
<ide> F(resolve.byDependency, "commonjs", () =>... | 1 |
Javascript | Javascript | remove unused bundle flag | c539be05155eb6f4f6d19fbb9243dc335eb38aba | <ide><path>scripts/rollup/build.js
<ide> function getPlugins(
<ide> hasteName,
<ide> moduleType,
<ide> manglePropertiesOnProd,
<del> useFiber,
<ide> modulesToStub
<ide> ) {
<ide> const plugins = [
<ide> function createBundle(bundle, bundleType) {
<ide> bundle.hasteName,
<ide> bundle.moduleType,
<... | 2 |
Java | Java | fix broken test in enableschedulingtests | 08f3a7982192e3f1aee9f31c61fb98022fc3b0ac | <ide><path>spring-context/src/test/java/org/springframework/scheduling/annotation/EnableSchedulingTests.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
... | 1 |
Text | Text | simplify major release preparation | 18ff5832501b66b45a16ffcbddebd38c93bd4bcb | <ide><path>doc/guides/releases.md
<ide> announced immediately following the release of 12.0.0).
<ide>
<ide> ### Release branch
<ide>
<del>Approximately three months before a major release, new `vN.x` and
<add>Approximately two months before a major release, new `vN.x` and
<ide> `vN.x-staging` branches (where `N` indi... | 1 |
Text | Text | update info about wq.db.rest router | e9b6b47872ffbd6572c39af9b2198575ccd3dde4 | <ide><path>docs/api-guide/routers.md
<ide> The following third party packages are also available.
<ide>
<ide> The [drf-nested-routers package][drf-nested-routers] provides routers and relationship fields for working with nested resources.
<ide>
<del>## wq.db
<add>## ModelRouter (wq.db.rest)
<ide>
<del>The [wq.db pac... | 1 |
Python | Python | update example in np.nonzero docstring | 6aed49135b26fe23620b15cab6c3b99c56545867 | <ide><path>numpy/core/fromnumeric.py
<ide> def nonzero(a):
<ide> [0, 2, 0],
<ide> [1, 1, 0]])
<ide> >>> np.nonzero(x)
<del> (array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64))
<add> (array([0, 1, 2, 2]), array([0, 1, 0, 1]))
<ide>
<ide> >>> x[np.nonzero(x)]
<del> ... | 1 |
Javascript | Javascript | bind methods from the prototype chain in console | 04a291abec3b86ed902c5e9919b2a8adf1e07d14 | <ide><path>lib/console.js
<ide> function Console(options /* or: stdout, stderr, ignoreErrors = true */) {
<ide> var keys = Object.keys(Console.prototype);
<ide> for (var v = 0; v < keys.length; v++) {
<ide> var k = keys[v];
<del> this[k] = Console.prototype[k].bind(this);
<add> // We have to bind the meth... | 2 |
Text | Text | fix typo in zlib.md | 1fcd088fd9648bcbab9789d8f00ce3208647a683 | <ide><path>doc/api/zlib.md
<ide> http.createServer((request, response) => {
<ide> }).listen(1337);
<ide> ```
<ide>
<del>By default, the `zlib` methods with throw an error when decompressing
<add>By default, the `zlib` methods will throw an error when decompressing
<ide> truncated data. However, if it is known that the... | 1 |
Java | Java | change domstorageenabled default value to true | 829019400aca367656dd18110d2e7dd845b9d043 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java
<ide> public void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermiss
<ide> mWebViewConfig.configWebView(webView);
<ide> webView.getSettings().setBuiltInZoomControls(true);
<ide> webView.getSetti... | 1 |
Python | Python | add keras resnet code | 310219595b048b3b0c798d5439ce0e79ca3dd236 | <ide><path>official/resnet/imagenet_main.py
<ide> def parse_record(raw_record, is_training, dtype):
<ide>
<ide> def input_fn(is_training, data_dir, batch_size, num_epochs=1,
<ide> dtype=tf.float32, datasets_num_private_threads=None,
<del> num_parallel_batches=1):
<add> num_parallel... | 1 |
Ruby | Ruby | change merge to merge! in as on new hashes | 187969069a1d76b93088ec8f574b8c80252dbb51 | <ide><path>activesupport/lib/active_support/xml_mini/libxmlsax.rb
<ide> def on_end_document
<ide> end
<ide>
<ide> def on_start_element(name, attrs = {})
<del> new_hash = { CONTENT_KEY => '' }.merge(attrs)
<add> new_hash = { CONTENT_KEY => '' }.merge!(attrs)
<ide> new_hash[HASH_SIZE_KE... | 2 |
Go | Go | fix typo in comments and log | d69747e19e862dc302694f4d02b5a29c14aa5b78 | <ide><path>libnetwork/controller.go
<ide> type NetworkController interface {
<ide> // Sandboxes returns the list of Sandbox(s) managed by this controller.
<ide> Sandboxes() []Sandbox
<ide>
<del> // WlakSandboxes uses the provided function to walk the Sandbox(s) managed by this controller.
<add> // WalkSandboxes uses... | 5 |
Text | Text | add docs on how to configure active storage | cc488b40d2bde10083984df5bb85417e0c2f7c0c | <ide><path>guides/source/configuring.md
<ide> main application.
<ide> You can set this as nil to not mount Action Cable as part of your
<ide> normal Rails server.
<ide>
<add>
<add>### Configuring Active Storage
<add>
<add>`config.active_storage` provides the following configuration options:
<add>
<add>* `config.active... | 1 |
Python | Python | set the __name__ of generated methods | e8c387cb8a105b9209474b6abf5c8feb0e92d830 | <ide><path>numpy/lib/mixins.py
<ide> def _disables_array_ufunc(obj):
<ide> return False
<ide>
<ide>
<del>def _binary_method(ufunc):
<add>def _binary_method(ufunc, name):
<ide> """Implement a forward binary method with a ufunc, e.g., __add__."""
<ide> def func(self, other):
<ide> if _disables_a... | 1 |
Text | Text | add release date for 0.9.17 | 68ab0f9b02372d11d31412edce86080eaa43625b | <ide><path>CHANGELOG.md
<ide> <a name="0.9.17"><a/>
<del># <angular/> 0.9.17 vegetable-reanimation (in progress) #
<add># <angular/> 0.9.17 vegetable-reanimation (2011-06-30) #
<ide>
<ide> ### New Features
<ide> - New [ng:options] directive to better bind a model to `<select>` and `<option>` elements. | 1 |
Text | Text | fix sentence structure | ee986bf8a71269473c92796ee7fec6872f89e5d7 | <ide><path>guide/english/miscellaneous/how-to-start-when-you-are-stuck/index.md
<ide> ---
<ide> title: How to Start When You Are Stuck
<ide> ---
<del>You are a camper just like me, you get to an exercise and you get stuck ... just like anyone else. You have no idea how to start, you stare at your editor and you think y... | 1 |
Python | Python | fix failing static tests on master | e9add79160e3a16bb348e30f4e83386a371dbc1e | <ide><path>airflow/providers/amazon/aws/hooks/base_aws.py
<ide> def _get_credentials(self, region_name: Optional[str]) -> Tuple[boto3.session.Se
<ide> return session, None
<ide>
<ide> def get_client_type(
<del> self, client_type: str, region_name: Optional[str] = None, config: Optional[Config] = Non... | 1 |
Text | Text | add jsbeautify-loader to readme | e5ae047334d187b5fe17318fbc5ef58f6e500419 | <ide><path>README.md
<ide> Please see [Using Loaders](https://webpack.github.io/docs/using-loaders.html) fo
<ide> * [`jscs`](https://github.com/unindented/jscs-loader): PreLoader for style checking.
<ide> * [`injectable`](https://github.com/jauco/webpack-injectable): Allow to inject dependencies into modules
<ide> * [`... | 1 |
Javascript | Javascript | add missing keyboardavoidingview documentation | 0a1d7280eb5f50fed6b44b1b5244dedc22739f01 | <ide><path>Libraries/Components/Keyboard/KeyboardAvoidingView.js
<ide> type LayoutEvent = {
<ide>
<ide> const viewRef = 'VIEW';
<ide>
<add>/**
<add> * It is a component to solve the common problem of views that need to move out of the way of the virtual keyboard.
<add> * It can automatically adjust either its positio... | 2 |
Text | Text | fix a typo of a prop name | 7567a92ca75081ee8a2025661127d048b7916627 | <ide><path>docs/CommunicationIOS.md
<ide> class ImageBrowserApp extends React.Component {
<ide> render() {
<ide> return (
<ide> <View>
<del> {this.props.imageList.map(this.renderImage)}
<add> {this.props.images.map(this.renderImage)}
<ide> </View>
<ide> );
<ide> } | 1 |
Ruby | Ruby | apply suggestions from code review | 5e99ecfbdb0a33fd4cb831232abfd824b5b5ecb7 | <ide><path>Library/Homebrew/env_config.rb
<ide> module EnvConfig
<ide> default: 15,
<ide> },
<ide> HOMEBREW_FORBIDDEN_LICENSES: {
<del> description: "Use this environment variable to define a blacklist of space separated licenses and Homebrew " \
<add> description: "Use this... | 2 |
Python | Python | catch possible warnings | 2d841a8edc7acc3054937912b150d7a23764c41c | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_varstd_specialcases(self):
<ide> self.assertTrue(method(0) is masked)
<ide> self.assertTrue(method(-1) is masked)
<ide> # Using a masked array as explicit output
<del> _ = method(out=mout)
<add> warn_ctx = Wa... | 1 |
Javascript | Javascript | do the work after waiting | e8a5864707e0f898e08d97e64acc614dd0fa2025 | <ide><path>spec/git-repository-async-spec.js
<ide> describe('GitRepositoryAsync-js', () => {
<ide>
<ide> const repo = project2.getRepositories()[0].async
<ide> waitsFor(() => !repo._isRefreshing())
<del>
<del> const buffer = project2.getBuffers()[0]
<del>
<del> waitsFor(() => buffer.loaded)
<ide>... | 1 |
Ruby | Ruby | change directory only for git commands | 25442f20ec639375849f8be65000c367dbc6c5b8 | <ide><path>Library/Contributions/cmds/brew-test-bot.rb
<ide> def write_html
<ide> def self.run test, command, output_on_success = false
<ide> step = new test, command
<ide> step.puts_command
<del> `#{step.command} &>#{step.log_file_path}`
<add>
<add> command = "#{step.command} &>#{step.log_file_path}"
<... | 1 |
Python | Python | use open() instead of tf.gfile.fastgfile() | c6a4f783080c5310ce0e3244daa31af57df12def | <ide><path>im2txt/im2txt/data/build_mscoco_data.py
<ide> def _to_sequence_example(image, decoder, vocab):
<ide> Returns:
<ide> A SequenceExample proto.
<ide> """
<del> with tf.gfile.FastGFile(image.filename, "r") as f:
<add> with open(image.filename, "r") as f:
<ide> encoded_image = f.read()
<ide>
<ide> ... | 3 |
PHP | PHP | fix travis ci build | cab7114662b8e2d563058cd0126fe95bc4c38021 | <ide><path>src/View/Widget/WidgetRegistry.php
<ide> class WidgetRegistry {
<ide> public function __construct(StringTemplate $templates, View $view, $widgets = []) {
<ide> $this->_templates = $templates;
<ide> if (!empty($widgets)) {
<del> if (is_string($widgets)){
<add> if (is_string($widgets)) {
<ide> $lo... | 1 |
Javascript | Javascript | fix typo in deeplinking docs | d53d121956914f401bf4ea797cdf2361db3325cf | <ide><path>Libraries/Linking/Linking.js
<ide> const LinkingManager = Platform.OS === 'android' ?
<ide> * openURL:(NSURL *)url
<ide> * options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
<ide> * {
<del> * return [RCTLinkingManager application:app openURL:url options:options];
<add> * return [... | 1 |
Ruby | Ruby | factorize methods that are easily reversible [] | 7204d3c63e0c412c638b885fb552ec50e7c1520a | <ide><path>activerecord/lib/active_record/migration/command_recorder.rb
<ide> def #{method}(*args, &block) # def create_table(*args, &block)
<ide>
<ide> private
<ide>
<del> def invert_transaction(args, &block)
<del> [:transaction, args, block]
<add> module StraightReversions
<add> ... | 2 |
Mixed | Ruby | fix error when using `with_options` with lambda | db5d26c9d70fb72b8aa3ea98709224dd13800024 | <ide><path>activerecord/CHANGELOG.md
<add>* Fixed error when using `with_options` with lambda.
<add>
<add> Fixes #9805.
<add>
<add> *Lauro Caetano*
<add>
<ide> * Treat blank UUID values as `nil`.
<ide>
<ide> Example:
<ide><path>activerecord/test/cases/associations/has_many_associations_test.rb
<ide> requ... | 6 |
Python | Python | blackify, troubleshoot tests | 8e3cfd83fb778b03c8bd1537a6d9437461c48584 | <ide><path>numpy/core/tests/test_cython.py
<del>
<ide> import os
<ide> import shutil
<ide> import subprocess
<ide> cython = None
<ide> else:
<ide> from distutils.version import LooseVersion
<add>
<ide> # Cython 0.29.14 is required for Python 3.8 and there are
<ide> # other fixes in the 0.29 series that ... | 1 |
Text | Text | add focus for @kuychaco | 50b8d376499623ebe5f49688ad003333fc21610e | <ide><path>docs/focus/2018-03-05.md
<ide> - Finish "Remember me" within the credential dialog (@smashwilson) [#1327](https://github.com/atom/github/pull/1327)
<ide> - Write up `docs/vision` from meeting notes (@smashwilson)
<ide> - Kick-start our GPG pinentry handling (@smashwilson) [#846](https://github.com/atom... | 1 |
Javascript | Javascript | assign deep defaults for custom config | 369ac488e09b836d3f83d7f35e3b8a9bf72f74be | <ide><path>packages/next-server/server/config.js
<ide> const defaultConfig = {
<ide> }
<ide> }
<ide>
<add>function assignDefaults (userConfig) {
<add> Object.keys(userConfig).forEach(key => {
<add> const maybeObject = userConfig[key]
<add> if ((!!maybeObject) && (maybeObject.constructor === Object)) {
<add> ... | 2 |
Python | Python | add decayexponent support to lights | d848e13d346c5087d09b579066e241268d0ca6d0 | <ide><path>utils/exporters/blender/addons/io_three/constants.py
<ide> WARNING = 'warning'
<ide> INFO = 'info'
<ide> DEBUG = 'debug'
<add>DISABLED = 'disabled'
<ide>
<ide> NONE = 'None'
<ide> MSGPACK = 'msgpack'
<ide> DISTANCE = 'distance'
<ide> ASPECT = 'aspect'
<ide> ANGLE = 'angle'
<add>DECAY = 'decayExponent'
<ide>... | 3 |
Javascript | Javascript | reduce usage of require('util') | b51a546488698660f00aa5221bbe908d6e01f4e0 | <ide><path>lib/internal/errors.js
<ide> function lazyInternalUtil() {
<ide> return internalUtil;
<ide> }
<ide>
<add>let internalUtilInspect = null;
<add>function lazyInternalUtilInspect() {
<add> if (!internalUtilInspect) {
<add> internalUtilInspect = require('internal/util/inspect');
<add> }
<add> return inte... | 1 |
PHP | PHP | fix newlines around psr2 | 2b40e56493c4c2488753b1a5faa4a35abf1f9cde | <ide><path>src/Auth/BasicAuthenticate.php
<ide> */
<ide> class BasicAuthenticate extends BaseAuthenticate
<ide> {
<del>
<ide> /**
<ide> * Authenticate a user using HTTP auth. Will use the configured User model and attempt a
<ide> * login using HTTP auth.
<ide><path>src/Auth/ControllerAuthorize.php
<ide> ... | 300 |
Python | Python | make set_model unconditional | da1ff3db476c8d0ed4cf794a3c7de1c7caf3f8b5 | <ide><path>keras/callbacks.py
<ide> def set_params(self, params):
<ide>
<ide> def set_model(self, model):
<ide> for callback in self.callbacks:
<del> if callback.model is None:
<del> callback.set_model(model)
<add> callback.set_model(model)
<ide>
<ide> def on_epoch... | 1 |
Text | Text | change the capital "s" and remove 0. | f398d8346d5875e852b07fbf20278712e4cb0d34 | <ide><path>guide/english/miscellaneous/how-to-create-a-local-study-group/index.md
<ide> If you didn't see your city on <a href='https://www.freecodecamp.com/study-group
<ide> This also applies to creating smaller, more cohesive groups for neighbourhoods and districts inside of the same city. Thus, groups should ideally... | 1 |
Javascript | Javascript | add time scale | 42a9faa1242f5440c71c34570e6437c8c6d92028 | <ide><path>examples/js/materials/nodes/utils/TimeNode.js
<ide> THREE.TimeNode = function( value ) {
<ide> THREE.FloatNode.call( this, value );
<ide>
<ide> this.requestUpdate = true;
<add> this.scale = 1;
<ide>
<ide> };
<ide>
<ide> THREE.TimeNode.prototype.constructor = THREE.TimeNode;
<ide>
<ide> THREE.TimeNode.p... | 1 |
Text | Text | remove travis ci badge | 6b4da92fcd21dfebb9ac2934de873fd55d3acf7e | <ide><path>README.md
<ide>
<ide> [![node][node]][node-url]
<ide> [![deps][deps]][deps-url]
<del>[![tests][tests]][tests-url]
<ide> [![builds2][builds2]][builds2-url]
<ide> [![coverage][cover]][cover-url]
<ide> [![licenses][licenses]][licenses-url]
<ide> src="https://static.monei.net/monei-logo.svg" height="30" alt="MO... | 1 |
Python | Python | add batinfo to setup.py | 6310e1ef5fed8d0251e9db15a8cdd8e883ac5939 | <ide><path>setup.py
<ide> install_requires=['psutil>=0.4.1'],
<ide> extras_require={
<ide> 'HTML': ['jinja2>=2.0'],
<del> 'SENSORS': ['pysensors>=0.0.2']
<add> 'SENSORS': ['pysensors>=0.0.2'],
<ide> 'BATINFO': ['batinfo>=0.1.3']
<ide> },
<ide> packages=['glances'], | 1 |
Javascript | Javascript | register url to moduletemplates | bdb986b3ab140f0a375dc0a4508907cf0fb2e419 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> this.outputOptions,
<ide> this.requestShortener
<ide> );
<del> /** @type {{javascript: ModuleTemplate, webassembly: ModuleTemplate}} */
<add> /** @type {{url: ModuleTemplate, javascript: ModuleTemplate, webassembly: ModuleTemplate}} */
<ide> this... | 1 |
Text | Text | fix alphabetic ordering [ci skip] | 4daf1381365cd52958d6d53e9dcc7022eb9f7509 | <ide><path>website/docs/api/top-level.md
<ide> factories.
<ide> | `loggers` | Registry for functions that log [training results](/usage/training). ... | 1 |
Ruby | Ruby | apply suggestions from code review | 1b8ceee4a2efeb7b9d02d0a971e0dce343bb090b | <ide><path>activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
<ide> class Mysql2Adapter < AbstractMysqlAdapter
<ide> ER_BAD_DB_ERROR = 1049
<ide> ER_ACCESS_DENIED_ERROR = 1045
<ide> ER_CONN_HOST_ERROR = 2003
<del> ER_UNKOWN_HOST_ERROR = 2005
<add> ER_UNKNOWN_HO... | 2 |
Ruby | Ruby | remove unnecessary conditional | 529b060dbb445ccad7c0da4d66e7e2dc52b8382f | <ide><path>Library/Homebrew/cmd/--env.rb
<ide> module Homebrew
<ide> def __env
<ide> ENV.activate_extensions!
<del>
<del> if superenv?
<del> ENV.deps = ARGV.formulae.map(&:name) unless ARGV.named.empty?
<del> end
<del>
<add> ENV.deps = ARGV.formulae.map(&:name) if superenv?
<ide> ENV.setup_build... | 1 |
Java | Java | add httpbasic clientwebrequestpostprocessor | b58a06208f261db26832db531eb975e1e7c7c232 | <ide><path>spring-web/src/main/java/org/springframework/web/client/reactive/ClientWebRequestPostProcessors.java
<add>/*
<add> * Copyright 2002-2016 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 ... | 2 |
Python | Python | move beam search to nlp/modeling/ops | 55b82879955bc21527116366f4e44e7126b7b2a1 | <ide><path>official/nlp/modeling/ops/__init__.py
<add>
<ide><path>official/nlp/modeling/ops/beam_search.py
<add># Copyright 2018 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the Licen... | 7 |
PHP | PHP | fix the code indent of object operators | c7a0002432351690d28223afa7caa272e769e226 | <ide><path>app/Providers/RouteServiceProvider.php
<ide> public function map()
<ide> protected function mapWebRoutes()
<ide> {
<ide> Route::middleware('web')
<del> ->namespace($this->namespace)
<del> ->group(base_path('routes/web.php'));
<add> ->namespace($this->namespa... | 1 |
Java | Java | implement nativeanimated modulus node on android | 9b4927c9c444c61b8ddf3c1f17325d1b85bf6a2d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this sou... | 2 |
Ruby | Ruby | remove redundant blank line at the bottom | 42cf5eba260f97e6da0ef66b954d95b9e7c2b102 | <ide><path>railties/lib/rails/generators/rails/controller/templates/controller.rb
<ide> class <%= class_name %>Controller < ApplicationController
<ide> <% actions.each do |action| -%>
<ide> def <%= action %>
<ide> end
<del>
<add><%= "\n" unless action == actions.last -%>
<ide> <% end -%>
<ide> end
<ide> <% end -%> | 1 |
PHP | PHP | remove more uses of deprecated properties/methods | 65174c1112fc042a9f7c45bf1705a79fc68d50ac | <ide><path>src/Controller/Component/AuthComponent.php
<ide> public function authCheck(Event $event)
<ide> /* @var \Cake\Controller\Controller $controller */
<ide> $controller = $event->getSubject();
<ide>
<del> $action = strtolower($controller->request->params['action']);
<add> $action = ... | 3 |
Go | Go | get pkg/term to build for solaris | b216dc9115ebc0b803551ff761f5464fcbde09e1 | <ide><path>pkg/term/tc_linux_cgo.go
<ide> import (
<ide> import "C"
<ide>
<ide> // Termios is the Unix API for terminal I/O.
<del>// It is passthgrouh for syscall.Termios in order to make it portable with
<add>// It is passthrough for syscall.Termios in order to make it portable with
<ide> // other platforms where it ... | 6 |
Javascript | Javascript | improve error messages | 9e0f771224759484bd95358f02de650916287488 | <ide><path>lib/buffer.js
<ide> Buffer.from = function from(value, encodingOrOffset, length) {
<ide> throw new errors.TypeError(
<ide> 'ERR_INVALID_ARG_TYPE',
<ide> 'first argument',
<del> ['string', 'buffer', 'arrayBuffer', 'array', 'array-like object']
<add> ['string', 'buffer', 'arrayBuffer', 'array',... | 9 |
Python | Python | add some additional checks | fffdb1688817b228fedd7ce8e548b51944468daf | <ide><path>libcloud/storage/drivers/local.py
<ide> def download_object_range(self, obj, destination_path, start_bytes,
<ide>
<ide> def download_object_range_as_stream(self, obj, start_bytes, end_bytes=None,
<ide> chunk_size=None):
<add> if end_bytes and start_bytes > ... | 1 |
Text | Text | add formnovalidate and novalidate too | f8349f9614b25bf964a90c176209a19827184dd8 | <ide><path>docs/docs/ref-04-tags-and-attributes.md
<ide> For a list of events, see [Supported Events](/react/docs/events.html).
<ide> accept accessKey action allowFullScreen allowTransparency alt autoCapitalize
<ide> autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked
<ide> className colSpan content... | 1 |
Javascript | Javascript | destroy socket on error | eb09b0644b3cb910d318d1d2a80cd2215b63cdcc | <ide><path>lib/http2.js
<ide> ClientRequest.prototype.onSocket = function(socket) {
<ide> // and we need to make sure we don't double-fire the error event.
<ide> req._hadError = true;
<ide> parser.finish();
<add> socket.destroy();
<ide> }
<ide> socket.on('error', errorListener);
<ide> | 1 |
Java | Java | improve exception handling when clients disconnect | 80ff5ae9c513372db37eb0dbcb19048adb09b21f | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractResponseBodyFlushProcessor.java
<ide> public final void onNext(Publisher<DataBuffer> publisher) {
<ide>
<ide> @Override
<ide> public final void onError(Throwable t) {
<del> if (logger.isErrorEnabled()) {
<del> logger.error(this.s... | 5 |
Python | Python | add importorskip for janome | 30a34ebb6edb513e262d1f47b6742b4480282f3c | <ide><path>spacy/tests/conftest.py
<ide> def fi_tokenizer():
<ide>
<ide> @pytest.fixture
<ide> def ja_tokenizer():
<add> janome = pytest.importorskip("janome")
<ide> return Japanese.Defaults.create_tokenizer()
<ide>
<ide> | 1 |
Go | Go | add ovrouter binary | ec68d342d150730d650a6292c62bee1dd4f7735a | <ide><path>libnetwork/cmd/ovrouter/ovrouter.go
<add>package main
<add>
<add>import (
<add> "fmt"
<add> "net"
<add> "os"
<add> "os/signal"
<add>
<add> "github.com/docker/docker/pkg/reexec"
<add> "github.com/docker/libnetwork/driverapi"
<add> "github.com/docker/libnetwork/drivers/overlay"
<add> "github.com/docker/libnetw... | 1 |
Python | Python | fix stop_gradient inconsistent api | 0bc856f90a746ce3c8078f5ec4fb5156c88d8fdd | <ide><path>keras/backend/cntk_backend.py
<ide> def batch_set_value(tuples):
<ide>
<ide>
<ide> def stop_gradient(variables):
<del> return C.stop_gradient(C.combine(variables))
<add> if isinstance(variables, (list, tuple)):
<add> return map(C.stop_gradient, variables)
<add> else:
<add> return C.s... | 4 |
PHP | PHP | correct bad comparision | f2e953d8929e31f05909a8174278d5e1381e79db | <ide><path>lib/Cake/Test/Case/I18n/MultibyteTest.php
<ide> function testUsingMbStrtolower() {
<ide>
<ide> $string = 'ႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅ';
<ide> $result = mb_strtolower($string);
<del> $expected = 'ႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅ';
<add> $expected = 'ⴀⴁⴂⴃⴄⴅⴆⴇⴈⴉⴊⴋⴌⴍⴎⴏⴐⴑⴒⴓⴔⴕⴖⴗⴘⴙⴚⴛⴜⴝⴞⴟⴠⴡⴢⴣ... | 1 |
Text | Text | add message to ask questions on spectrum | 5e4dc75db1c52a6f562a9090130bb863fe285e6d | <ide><path>.github/issue_template.md
<ide> <!--- Provide a general summary of the issue in the Title above -->
<ide>
<add><!--
<add>IMPORTANT
<add>> If you have a question about Next.js you should ask your question on Spectrum https://spectrum.chat/next-js
<add>> or join our Slack community at https://zeit.chat and as... | 1 |
Ruby | Ruby | disallow nil value for token#create | bcc4f1bb292698c1ba3fbad5720706ddd123fbd0 | <ide><path>Library/Homebrew/version.rb
<ide> class Token
<ide> include Comparable
<ide>
<ide> def self.create(val)
<del> return NULL_TOKEN if val.nil?
<del> return NULL_TOKEN if val.respond_to?(:null?) && val.null?
<del>
<ide> raise TypeError, "Token value must be a string; got a #{val.class} (... | 1 |
Javascript | Javascript | handle suspenselistcomponent getting retried | e04f4259c4c2063038c47e0364f4d7ac71236bc0 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.js
<ide> import {
<ide> HostRoot,
<ide> ClassComponent,
<ide> SuspenseComponent,
<add> SuspenseListComponent,
<ide> FunctionComponent,
<ide> ForwardRef,
<ide> MemoComponent,
<ide> export function resolveRetryThenable(boundaryFiber: Fiber, thenable... | 2 |
Text | Text | improve description and tests descriptions | 052173e5023752bcbe39dbd193347a1025f8d4b7 | <ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/zhang-suen-thinning-algorithm.md
<ide> dashedName: zhang-suen-thinning-algorithm
<ide>
<ide> This is an algorithm used to thin a black and white i.e. one bit per pixel images. For example, with an input image of:
<ide>
<del><!-- TODO write... | 1 |
Text | Text | changelog entries for `{{#each}}` & `{{#each-in}}` | 0ddac17b8d4172dd77bd6a1e3183b67a728e3558 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#16613](https://github.com/emberjs/ember.js/pull/16613) [BUGFIX] Prevent errors in ember-engines + 3.1 + proxies.
<ide> - [#16597](https://github.com/emberjs/ember.js/pull/16597) [BUGFIX] Ensure `Ember.run.cancelTimers` is present.
<del>- [#16605](https://github.com/emberjs/ember... | 1 |
Go | Go | reorganize code between unix and windows files | a65f83317c88734536219209d975e7e3ca6c4f85 | <ide><path>daemon/config/config_unix.go
<ide> const (
<ide> DefaultIpcMode = "private"
<ide> )
<ide>
<add>// BridgeConfig stores all the bridge driver specific
<add>// configuration.
<add>type BridgeConfig struct {
<add> commonBridgeConfig
<add>
<add> // These fields are common to all unix platforms.
<add> commonUnix... | 2 |
Text | Text | simplify the definition of reducers | 6d18395e242d8cd2f49af097a0bc1be24f1cc3c1 | <ide><path>docs/basics/Reducers.md
<ide> # Reducers
<ide>
<del>[Actions](./Actions.md) describe the fact that *something happened*, but don't specify how the application's state changes in response. This is the job of reducers.
<add>**Reducers** specify how the application's state changes in response to [actions](./Ac... | 1 |
Text | Text | fix a spelling error in api-guide | e2c35920d180be47c835ee24a99440cb89dec58c | <ide><path>docs/api-guide/serializers.md
<ide> The [html-json-forms][html-json-forms] package provides an algorithm and seriali
<ide>
<ide> ## QueryFields
<ide>
<del>[djangorestframework-queryfields][djangorestframework-queryfields] allows API clients to specify which fields will be sent in the response via inclusion... | 1 |
Java | Java | add logger.isinfoenabled check before logger.info | b92515bdee5a3f153183e2f86ee5e378c28b0d1e | <ide><path>spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactoryBean.java
<ide> public Object getObject() throws BeansException {
<ide> return getSingletonInstance();
<ide> }
<ide> else {
<del> if (this.targetName == null) {
<add> if (this.targetName == null && logger.isInfoEnabled()) {
<id... | 1 |
Javascript | Javascript | integrate animation service with chart | 3e59438646382d66b2b1313731f237f43c4cc9dc | <ide><path>src/Chart.Core.js
<ide>
<ide> Chart.animationService = {
<ide> animations: [],
<del> addAnimation: function(chart, animationObject) {
<add> addAnimation: function(chartInstance, animationObject) {
<ide> for (var index = 0; index < this.animations.length; ++ index){
<del> if (this.animations[index... | 1 |
Mixed | Python | add adam optimizer | 9f595fe7f7856ae9ea8a1e8439e1342757f0f3a4 | <ide><path>docs/sources/optimizers.md
<ide> __Arguments__:
<ide>
<ide> - __lr__: float >= 0. Learning rate.
<ide> - __rho__: float >= 0.
<del>- __epsilon__: float >= 0. Fuzz factor.
<ide>\ No newline at end of file
<add>- __epsilon__: float >= 0. Fuzz factor.
<add>
<add>---
<add>
<add>## Adam
<add>
<add>```python
<ad... | 2 |
Javascript | Javascript | replace string concatenation with template | cb87c92694d7b9779acc6c6bf24d0298b259ecb2 | <ide><path>lib/_http_server.js
<ide> ServerResponse.prototype.detachSocket = function detachSocket(socket) {
<ide> };
<ide>
<ide> ServerResponse.prototype.writeContinue = function writeContinue(cb) {
<del> this._writeRaw('HTTP/1.1 100 Continue' + CRLF + CRLF, 'ascii', cb);
<add> this._writeRaw(`HTTP/1.1 100 Continue... | 1 |
Java | Java | add generatedtype infrastructure | fd191d165bb6c886d8c3720c96240441f89d75cd | <ide><path>spring-core/src/main/java/org/springframework/aot/generator/DefaultGeneratedTypeContext.java
<add>/*
<add> * Copyright 2002-2022 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 Lice... | 5 |
Ruby | Ruby | fix undefined variable ruby_version | 4f5643a67681f399dbabaeefb758a9c871ba513f | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> def check_for_other_package_managers
<ide> end
<ide>
<ide> def check_ruby_version
<del> return if RUBY_VERSION[/\d\.\d/] == "2.0"
<add> ruby_version = "2.0"
<add> return if RUBY_VERSION[/\d\.\d/] == ruby_version
<ide>
<ide>... | 2 |
Python | Python | fix merge conflict for jinja templating | 02bfeb68e5cf1a4c4c6a5b2fd43135514a3a0835 | <ide><path>airflow/www/utils.py
<ide> def wrapper(*args, **kwargs):
<ide> </table>
<ide> ''').render(**locals())
<ide> utils.send_email(task.email, subject, content)
<del>
<ide> return f(*args, **kwargs)
<ide> return wrapper
<ide> | 1 |
Python | Python | fix outdated docstring | 905335bd9ca4a7126a612b94ac43401b6f03bff7 | <ide><path>numpy/lib/shape_base.py
<ide> def _replace_zero_by_x_arrays(sub_arys):
<ide>
<ide> def array_split(ary,indices_or_sections,axis = 0):
<ide> """
<del> Split an array into multiple sub-arrays of equal or near-equal size.
<add> Split an array into multiple sub-arrays.
<ide>
<ide> Please refer to... | 1 |
Javascript | Javascript | fix scriptloader args | e6a17214e2924d9f58ef05939e78cd588f28cb06 | <ide><path>client/src/components/Donation/PayPalButtonScriptLoader.js
<ide> export class PayPalButtonScriptLoader extends Component {
<ide> if (subscription) queries += '&vault=true&intent=subscription';
<ide>
<ide> scriptLoader(
<del> 'paypal-sdk',
<ide> 'paypal-sdk',
<ide> true,
<ide> ... | 1 |
Javascript | Javascript | extract getcachedirectory helper | f989981d194743dc860ba9009a17a1ecee23c081 | <ide><path>static/index.js
<ide> window.onload = function() {
<ide> // Ensure ATOM_HOME is always set before anything else is required
<ide> setupAtomHome();
<ide>
<del> var cacheDir = path.join(process.env.ATOM_HOME, 'compile-cache');
<del> // Use separate compile cache when sudo'ing as root to avoid pe... | 1 |
Mixed | Javascript | add compose operator | ddb3ae7c308a997325043f175826d324f5fb6352 | <ide><path>doc/api/stream.md
<ide> option. In the code example above, data will be in a single chunk if the file
<ide> has less then 64 KiB of data because no `highWaterMark` option is provided to
<ide> [`fs.createReadStream()`][].
<ide>
<add>##### `readable.compose(stream[, options])`
<add>
<add><!-- YAML
<add>added:... | 4 |
Python | Python | update tfds readconfig parameter | 55ec81945a43a487a512a372475c6b7758bd0486 | <ide><path>official/vision/image_classification/dataset_factory.py
<ide> def load_tfds(self) -> tf.data.Dataset:
<ide> decoders['image'] = tfds.decode.SkipDecoding()
<ide>
<ide> read_config = tfds.ReadConfig(
<del> interleave_parallel_reads=64,
<add> interleave_cycle_length=64,
<ide> in... | 1 |
Python | Python | add ior and w to the curses interface | fdebbce53ed545064bafb86bec07bc0dabf132c3 | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> container['cpu'] = self.get_docker_cpu(container['Id'], self.thread_list[container['Id']].stats)
<ide> container['memory'] = self.get_docker_memory(container['Id'], self.thread_list[container['Id']].stats)
<ide> ... | 1 |
Ruby | Ruby | replace http with curl | 64ebecf0c1e07f9d5354e3d7fefb4241369e74b3 | <ide><path>Library/Homebrew/utils/repology.rb
<ide> # frozen_string_literal: true
<ide>
<del>require "net/http"
<del>require "json"
<add>require "utils/curl"
<ide>
<ide> module RepologyParser
<ide> def call_api(url)
<ide> ohai "- Calling API #{url}" if Homebrew.args.verbose?
<ide> uri = URI(url)
<del> re... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.