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 | add missing space | 41e76aed563c83a633c1187b1768e2181c213a28 | <ide><path>src/Illuminate/Support/SerializableClosure.php
<ide> public function getVariables()
<ide> */
<ide> protected function determineCodeAndVariables()
<ide> {
<del> if (!$this->code)
<add> if ( ! $this->code)
<ide> {
<ide> list($this->code, $this->variables) = unserialize($this->serialize());
<ide> } | 1 |
PHP | PHP | remove duplicated test code | f677bfea7da6c97ff8970cf6ec4d5d5dadb43cce | <ide><path>lib/Cake/Test/Case/Utility/SetTest.php
<ide> public function testEnum() {
<ide> /**
<ide> * testFilter method
<ide> *
<add> * @see Hash test cases, as Set::filter() is just a proxy.
<ide> * @return void
<ide> */
<ide> public function testFilter() {
<ide> $result = Set::filter(array('0', false, true, 0... | 1 |
Ruby | Ruby | fix rubocop warnings | 9b5c45a7df6a9a170389d6045bf06803fe4bc78b | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> require "erb"
<ide> require "extend/pathname"
<ide>
<del>BOTTLE_ERB = <<-EOS
<add>BOTTLE_ERB = <<-EOS.freeze
<ide> bottle do
<ide> <% if !root_url.start_with?(BottleSpecification::DEFAULT_DOMAIN) %>
<ide> root_url "<%= root_url %>"
<ide> def print_filename(... | 1 |
Python | Python | fix issue #265 | a556e998b7303fe57d98f7c898f8c9252860bfa1 | <ide><path>glances/glances.py
<ide> def displayHelp(self, core):
<ide>
<ide> # display the limits table
<ide> limits_table_x = self.help_x
<del> limits_table_y = self.help_y + 2
<add> limits_table_y = self.help_y + 1
<ide> self.term_window.addnstr(limits_table_... | 1 |
Javascript | Javascript | move options to assetmodulesplugin | a04f7bcafd83f6f3b17a673717361fed7db3422f | <ide><path>lib/asset/AssetGenerator.js
<ide> const RuntimeGlobals = require("../RuntimeGlobals");
<ide> /** @typedef {import("../NormalModule")} NormalModule */
<ide> /** @typedef {import("../RuntimeTemplate")} RuntimeTemplate */
<ide>
<del>/**
<del> * @type {Map<string|Buffer, string|null>}
<del> */
<del>const dataUr... | 2 |
PHP | PHP | apply fixes from styleci | 8b289e9dd00ae34394f76e3615ecd8a30d7be8dd | <ide><path>src/Illuminate/Database/Migrations/Migrator.php
<ide> protected function getMigrationsForRollback(array $options)
<ide> if (($steps = $options['step'] ?? 0) > 0) {
<ide> return $this->repository->getMigrations($steps);
<ide> }
<del>
<add>
<ide> return $this->reposi... | 1 |
Text | Text | add the text line 27 | c58af731f3c9e5cb53f0f54f8cc69446985f296a | <ide><path>guide/english/vim/vim-plug/index.md
<ide> Some useful plugins to get you started are :
<ide> - <a href='https://github.com/sheerun/vim-polyglot' target='_blank' rel='nofollow'>vim-polygot</a> - A solid language pack for Vim.
<ide> - <a href='https://github.com/jiangmiao/auto-pairs' target='_blank' rel='nofo... | 1 |
Javascript | Javascript | change how non-objects are handled | 1f0e77c9de3294c89c99da90ae32f793ed30a573 | <ide><path>lib/compareLocations.js
<ide> * @returns {-1|0|1} sorting comparator value
<ide> */
<ide> module.exports = (a, b) => {
<del> if (typeof a !== "object" || a === null) {
<del> return undefined;
<del> }
<del> if (typeof b !== "object" || b === null) {
<add> let isObjectA = typeof a === "object" && a !== null... | 2 |
Javascript | Javascript | add title field to challenges | fa566e47624f195dc61b44d5311c30971cc0f163 | <ide><path>index.js
<ide> var fs = require('fs'),
<ide> nonprofits = require('./nonprofits.json'),
<ide> jobs = require('./jobs.json');
<ide>
<add>var challangesRegex = /^(bonfire:|waypoint:|zipline:|basejump:|hikes:)/i;
<add>
<ide> function getFilesFor(dir) {
<ide> return fs.readdirSync(path.join(__dirname,... | 1 |
Python | Python | fix typo in decorator test | 1fdde76d68407b0bad17fa98f2aee4919b46c2cc | <ide><path>tests/decorators/test_python.py
<ide> def do_run():
<ide> assert ret.operator.owner == 'airflow'
<ide>
<ide> @task_decorator
<del> def test_apply_default_raise(unknow):
<del> return unknow
<add> def test_apply_default_raise(unknown):
<add> return unknown
<... | 1 |
Javascript | Javascript | add missing decorate docs | cae9ad4ba9c31dfa9e1aa2acc945dfc8242d1c72 | <ide><path>src/Injector.js
<ide> function inferInjectionArgs(fn) {
<ide> */
<ide>
<ide>
<add>/**
<add> * @ngdoc method
<add> * @name angular.module.AUTO.$provide#decorator
<add> * @methodOf angular.module.AUTO.$provide
<add> * @description
<add> *
<add> * Decoration of service, allows the decorator to intercept the ... | 1 |
Ruby | Ruby | ask the request object for the session | 9f23ee0fdcdc1337e4b489e51053ee1e6037215b | <ide><path>actionpack/lib/action_dispatch/middleware/flash.rb
<ide> def call(env)
<ide> req = ActionDispatch::Request.new env
<ide> @app.call(env)
<ide> ensure
<del> session = Request::Session.find(req) || {}
<add> session = req.session || {}
<ide> flash_hash = req.flash_hash
<ide>... | 1 |
Ruby | Ruby | add replica? check to databaseconfig | 8737dffce73a37dff073dfe0af8931efd08632c5 | <ide><path>activerecord/lib/active_record/database_configurations/database_config.rb
<ide> def initialize(env_name, spec_name)
<ide> @spec_name = spec_name
<ide> end
<ide>
<add> def replica?
<add> raise NotImplementedError
<add> end
<add>
<ide> def url_config?
<ide> false
<... | 3 |
Text | Text | improve active record changelog [ci skip] | eed9f15ba87d4d4c9be48119e55e8ff17102c4a7 | <ide><path>activerecord/CHANGELOG.md
<del>* Raise error when non-existent enum used in query
<del>
<del> This change will raise an error when a non-existent enum is passed to a query. Previously
<del> with MySQL this would return an unrelated record. Fixes #38687.
<add>* Raise error when non-existent enum used in... | 1 |
Text | Text | replace function with arrow function | 53d87b370b14ae6ff7a6daca360bef8680e07d88 | <ide><path>doc/api/util.md
<ide> but may return a value of any type that will be formatted accordingly by
<ide> const util = require('util');
<ide>
<ide> const obj = { foo: 'this will not show up in the inspect() output' };
<del>obj[util.inspect.custom] = function(depth) {
<add>obj[util.inspect.custom] = (depth) => {
... | 1 |
Ruby | Ruby | add methods for manipulating the opt record | d792b6465524dbcefa7876e2fb63c8e7b6074aa8 | <ide><path>Library/Homebrew/keg.rb
<ide> def remove_linked_keg_record
<ide> linked_keg_record.parent.rmdir_if_possible
<ide> end
<ide>
<add> def optlinked?
<add> opt_record.symlink? && path == opt_record.resolved_path
<add> end
<add>
<add> def remove_opt_record
<add> opt_record.unlink
<add> opt_recor... | 1 |
Go | Go | add fallback to resolvesystemaddr() in linux | c0b24c600e30656144522f85b053f015525022da | <ide><path>daemon/cluster/listen_addr.go
<ide> func resolveInterfaceAddr(specifiedInterface string) (net.IP, error) {
<ide> return interfaceAddr6, nil
<ide> }
<ide>
<add>func (c *Cluster) resolveSystemAddrViaSubnetCheck() (net.IP, error) {
<add> // Use the system's only IP address, or fail if there are
<add> // multi... | 3 |
PHP | PHP | add the actions and only options to resources() | 5b40e2da456f6777340f663d8daef6abb0b325b2 | <ide><path>src/Routing/RouteBuilder.php
<ide> class RouteBuilder {
<ide> *
<ide> * @var array
<ide> */
<del> protected static $_resourceMap = array(
<del> array('action' => 'index', 'method' => 'GET', 'id' => false),
<del> array('action' => 'view', 'method' => 'GET', 'id' => true),
<del> array('action' => 'add', ... | 2 |
Python | Python | use modern exception syntax | 705bf928e1256a06019c75ee945370fbe89cdde7 | <ide><path>numpy/_import_tools.py
<ide> def _init_info_modules(self, packages=None):
<ide> try:
<ide> exec 'import %s.info as info' % (package_name)
<ide> info_modules[package_name] = info
<del> except ImportError, msg:
<add> ... | 26 |
Mixed | Ruby | make enum feature work with dirty methods | a57a2bcf4a2c29519d553277e4439790ca443cc7 | <ide><path>activerecord/CHANGELOG.md
<add>* Make enum fields work as expected with the `ActiveModel::Dirty` API.
<add>
<add> Before this change, using the dirty API would have surprising results:
<add>
<add> conversation = Conversation.new
<add> conversation.status = :active
<add> conversation... | 3 |
Python | Python | switch tf to oss keras (1/n) | 045f34b232830e50a7990a5ba3814d8de5b9cde3 | <ide><path>research/object_detection/models/keras_models/resnet_v1.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<add>from keras.applications import resnet
<add>
<ide> import tensorflow.compat.v1 as tf
<ide>
<del>from tensorflow.python.keras.applications import resnet
<ide... | 1 |
PHP | PHP | clarify cookie comment | 97cb0035f4935e60ccd86f881156d4a1ddd23ad9 | <ide><path>laravel/cookie.php
<ide> protected static function set($cookie)
<ide> setcookie($name, $value, $time, $path, $domain, $secure);
<ide> }
<ide> }
<del>
<add>
<ide>
<ide> /**
<ide> * Get the value of a cookie.
<ide> public static function get($name, $default = null)
<ide> if ( ! is_null($value) and... | 1 |
Ruby | Ruby | fix a warning about grouped expressions | 881ca628b0df2db19f70830f178b0d55efc299ca | <ide><path>activesupport/test/core_ext/range_ext_test.rb
<ide> def test_should_not_include_overlapping_last
<ide> end
<ide>
<ide> def test_should_include_identical_exclusive_with_floats
<del> assert (1.0...10.0).include?(1.0...10.0)
<add> assert((1.0...10.0).include?(1.0...10.0))
<ide> end
<ide>
<ide> d... | 1 |
PHP | PHP | fix return types in cachemanager | 3c5fd2873f7225d884e1c88fb5877ae69ce8b644 | <ide><path>src/Illuminate/Cache/CacheManager.php
<ide> protected function callCustomCreator(array $config)
<ide> * Create an instance of the APC cache driver.
<ide> *
<ide> * @param array $config
<del> * @return \Illuminate\Cache\ApcStore
<add> * @return \Illuminate\Cache\Repository
<ide> ... | 1 |
Ruby | Ruby | add missing comma | 3a746723c351a582c2711b67c412e3905527776e | <ide><path>Library/Homebrew/os/mac/version.rb
<ide> class Version < ::Version
<ide> extend T::Sig
<ide>
<ide> SYMBOLS = {
<del> monterey: "12"
<add> monterey: "12",
<ide> big_sur: "11",
<ide> catalina: "10.15",
<ide> mojave: "10.14", | 1 |
Python | Python | introduce masking to simpledeeprnn | 981d23a66e3921ff5a3819b9d512f47b6b4f79f0 | <ide><path>keras/layers/recurrent.py
<ide> class SimpleDeepRNN(Layer):
<ide> def __init__(self, input_dim, output_dim, depth=3,
<ide> init='glorot_uniform', inner_init='orthogonal',
<ide> activation='sigmoid', inner_activation='hard_sigmoid',
<del> weights=None, truncate_gradient=-1, return_... | 2 |
Javascript | Javascript | remove hidden use of common.port in parallel tests | abd5d95711ee03265f3521712ef8a6794b5a6ecc | <ide><path>test/common/index.js
<ide> function _mustCallInner(fn, criteria = 1, field) {
<ide> exports.hasMultiLocalhost = function hasMultiLocalhost() {
<ide> const { TCP, constants: TCPConstants } = process.binding('tcp_wrap');
<ide> const t = new TCP(TCPConstants.SOCKET);
<del> const ret = t.bind('127.0.0.2', e... | 1 |
Python | Python | fix yaml serialization support | 8824f1b469cf48d5d8fa96be5368a4cd82d783ca | <ide><path>keras/layers/containers.py
<ide> def get_config(self):
<ide> return {"name":self.__class__.__name__,
<ide> "layers":[layer.get_config() for layer in self.layers]}
<ide>
<del> def to_yaml(self, store_params=True):
<del> seq_config = {}
<del> seq_config['name'] = self.__cl... | 5 |
Python | Python | fix another bug, see last commit | b9086fdf39941343fde65551b8667e635e05f14f | <ide><path>numpy/distutils/system_info.py
<ide> def __init__ (self,
<ide> def parse_config_files(self):
<ide> self.cp.read(self.files)
<ide> if not self.cp.has_section(self.section):
<del> self.cp.add_section(self.section)
<add> if self.section is not None:
<add> ... | 1 |
Javascript | Javascript | remove unnecessary use of inner state | f9c16b87eff60858efa0b6977fa1d253be538589 | <ide><path>lib/internal/child_process.js
<ide> function flushStdio(subprocess) {
<ide> // TODO(addaleax): This doesn't necessarily account for all the ways in
<ide> // which data can be read from a stream, e.g. being consumed on the
<ide> // native layer directly as a StreamBase.
<del> if (!stream || !st... | 1 |
Python | Python | remove lock in fit_generator | acc5c45feba49de09ee6f46dfb5fad64f4eeb28f | <ide><path>keras/engine/training.py
<ide> def generator_queue(generator, max_q_size=10,
<ide> if pickle_safe:
<ide> q = multiprocessing.Queue(maxsize=max_q_size)
<ide> _stop = multiprocessing.Event()
<del> lock = multiprocessing.Lock()
<ide> else:
<ide> q = queue.Queue()
<ide> ... | 1 |
Javascript | Javascript | fix reference in code comment | 7cff6e80bfd2f61ed67ff07af87af3ab63860273 | <ide><path>lib/async_hooks.js
<ide> const errors = require('internal/errors');
<ide> * hooks for each type.
<ide> *
<ide> * async_id_fields is a Float64Array wrapping the double array of
<del> * Environment::AsyncHooks::uid_fields_[]. Each index contains the ids for the
<del> * various asynchronous states of the app... | 1 |
Text | Text | add evan lucas to release team | b46c627ee9bbc9ce43ba53c1cc1e489d5bc9e64e | <ide><path>README.md
<ide> Releases of Node.js and io.js will be signed with one of the following GPG keys:
<ide> * **James M Snell** <jasnell@keybase.io> `71DCFD284A79C3B38668286BC97EC7A07EDE3FC1`
<ide> * **Rod Vagg** <rod@vagg.org> `DD8F2338BAE7501E3DD5AC78C273792F7D83545D`
<ide> * **Myles Borins** <th... | 1 |
PHP | PHP | update app/config to include all options | 660e0fc1c4bbec573671eacc1c7098cc338af1ab | <ide><path>App/Config/error.php
<ide> * - `errorLevel` - int - The level of errors you are interested in capturing.
<ide> * - `trace` - boolean - Whether or not backtraces should be included in
<ide> * logged errors/exceptions.
<add> * - `log` - boolean - Whether or not you want exceptions logged.
<ide> * - `exce... | 1 |
PHP | PHP | add the method addreplyto | 5546bd331a18a285a3319f29ec86c1410a199e37 | <ide><path>src/Mailer/Mailer.php
<ide> * @method array getSender() Gets "sender" address. {@see \Cake\Mailer\Message::getSender()}
<ide> * @method $this setReplyTo($email, $name = null) Sets "Reply-To" address. {@see \Cake\Mailer\Message::setReplyTo()}
<ide> * @method array getReplyTo() Gets "Reply-To" address. {@se... | 4 |
Java | Java | fix url decoding issue in reactive @requestparam | 613e65f043e36324577eed14e08da3d83b2fa520 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java
<ide>
<ide> package org.springframework.http.server.reactive;
<ide>
<add>import java.io.UnsupportedEncodingException;
<ide> import java.net.URI;
<add>import java.net.URLDecoder;
<add>import java.nio.charset.Sta... | 2 |
Javascript | Javascript | add alert docs | 73b2c529caea0697456cff1d9071ec3733ea4897 | <ide><path>website/server/extractDocs.js
<ide> var components = [
<ide>
<ide> var apis = [
<ide> '../Libraries/ActionSheetIOS/ActionSheetIOS.js',
<add> '../Libraries/Utilities/Alert.js',
<ide> '../Libraries/Utilities/AlertIOS.js',
<ide> '../Libraries/Animated/src/AnimatedImplementation.js',
<ide> '../Librarie... | 1 |
PHP | PHP | decomplicate the messages->format method | be3266d255529069c767b176c5c9c7e15af9f3a9 | <ide><path>system/messages.php
<ide> public function all($format = ':message')
<ide> */
<ide> private function format($messages, $format)
<ide> {
<del> array_walk($messages, function(&$message, $key) use ($format) { $message = str_replace(':message', $message, $format); });
<add> foreach ($messages as $key => &$m... | 1 |
Java | Java | expose resource lookup function | bfb2effddb7d2cb9b50c1088b3971028633ad8f2 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java
<ide> public static <T extends ServerResponse> RouterFunction<T> nest(
<ide> * For instance
<ide> * <pre class="code">
<ide> * Resource location = new FileSystemResource("public-resources/");
<del> * Rou... | 2 |
Python | Python | add argument for cnn maxout pieces | f5144f04be1e5b6d7bb937611f1303ec39054f99 | <ide><path>spacy/_ml.py
<ide> def drop_layer_fwd(X, drop=0.):
<ide> return model
<ide>
<ide>
<del>def Tok2Vec(width, embed_size, pretrained_dims=0):
<del> if pretrained_dims is None:
<del> pretrained_dims = 0
<add>def Tok2Vec(width, embed_size, pretrained_dims=0, **kwargs):
<add> assert pretrained_di... | 1 |
Text | Text | add mapreduce description to core hadoop | 71559e7aa827826777e64bacb29d997125af9f57 | <ide><path>guide/english/data-science-tools/hadoop/index.md
<ide> At the time of its release, Hadoop was capable of processing data on a larger sc
<ide>
<ide> Data is stored in the Hadoop Distributed File System (HDFS). Using map reduce, Hadoop processes data in parallel chunks (processing several parts at the same ti... | 1 |
PHP | PHP | fix cache events not being fired when using tags | 7b6600ba4fc97fd1eb6549913961cd0020d02e56 | <ide><path>src/Illuminate/Cache/RedisTaggedCache.php
<ide> class RedisTaggedCache extends TaggedCache
<ide> */
<ide> public function forever($key, $value)
<ide> {
<del> $this->pushForeverKeys($namespace = $this->tags->getNamespace(), $key);
<add> $this->pushForeverKeys($this->tags->getNamespa... | 6 |
Text | Text | document the fact you can add_index on new columns | 1badf20497828cf20f86455fb958832cc5104c08 | <ide><path>guides/source/migrations.md
<ide> class AddPartNumberToProducts < ActiveRecord::Migration
<ide> end
<ide> ```
<ide>
<del>Similarly,
<add>If you'd like to add an index on the new column, you can do that as well:
<add>
<add>```bash
<add>$ rails generate migration AddPartNumberToProducts part_number:string:ind... | 1 |
Python | Python | add initialize method for entity_ruler | 251b3eb4e5c688e076f4e761a43ffbab9ea793b9 | <ide><path>spacy/errors.py
<ide> class Errors:
<ide> "issue tracker: http://github.com/explosion/spaCy/issues")
<ide>
<ide> # TODO: fix numbering after merging develop into master
<add> E900 = ("Patterns for component '{name}' not initialized. This can be fixed "
<add> "by calling 'add_pa... | 3 |
PHP | PHP | change stackframe default in deprecationwarning() | 7332e0a410024ccbba5904aec4da44514bb0b3ef | <ide><path>src/Core/functions.php
<ide> function triggerWarning($message)
<ide> * Helper method for outputting deprecation warnings
<ide> *
<ide> * @param string $message The message to output as a deprecation warning.
<del> * @param int $stackFrame The stack frame to include in the error. Defaults t... | 2 |
PHP | PHP | add more test cases | 408b3ffe09a562542f374ed7129a345248ed75d2 | <ide><path>tests/TestCase/Validation/ValidatorTest.php
<ide> public function testAllowEmpty()
<ide> *
<ide> * @return void
<ide> */
<del> public function testAllowEmptyDateTime()
<add> public function testAllowEmptyWithDateTimeFields()
<ide> {
<ide> $validator = new Validator();
<ide> ... | 1 |
Mixed | Ruby | add `time` option to `#touch` | 219d71fb9049da677c9426c6d81bf9e74fae1977 | <ide><path>activerecord/CHANGELOG.md
<add>* `:time` option added for `#touch`
<add> Fixes #18905.
<add>
<add> *Hyonjee Joo*
<add>
<ide> * Deprecated passing of `start` value to `find_in_batches` and `find_each`
<ide> in favour of `begin_at` value.
<ide>
<ide><path>activerecord/lib/active_record/persisten... | 3 |
Javascript | Javascript | fix resetting styles in nodepool | a171380544109ccacb35c26e0ad7c8210e20e923 | <ide><path>src/text-editor-component.js
<ide> class NodePool {
<ide> constructor () {
<ide> this.elementsByType = {}
<ide> this.textNodes = []
<del> this.stylesByNode = new WeakMap()
<ide> }
<ide>
<ide> getElement (type, className, style) {
<ide> class NodePool {
<ide>
<ide> if (element) {
<ide> ... | 1 |
Ruby | Ruby | adjust compilerselectionerror message | 29d204c697ff2a554a4767657884d72a85ff9ff5 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def dump
<ide> # raised by CompilerSelector if the formula fails with all of
<ide> # the compilers available on the user's system
<ide> class CompilerSelectionError < StandardError
<del> def message
<del> if MacOS.version > :tiger then <<-EOS.undent
<del> This fo... | 1 |
PHP | PHP | fix failing tests for sql date functions | e26251b187765ebc2a21a5e4726ae5ffcd6a490e | <ide><path>src/Database/Dialect/PostgresDialectTrait.php
<ide> protected function _transformFunctionExpression(FunctionExpression $expression)
<ide> ->type(' + INTERVAL')
<ide> ->iterateParts(function ($p, $key) {
<ide> if ($key === 1) {
<del> ... | 4 |
Java | Java | fix one more issue in stomp broker relay int test | 56d26443e22d0704c655fa2535fe48501b8cebff | <ide><path>spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
<ide> public void messageDeliveryExceptionIfSystemSessionForwardFails() throws Excepti
<ide> logger.debug("Starting test messageDeliveryExceptionIfSystemSessionForwardFails()");
<ide>... | 1 |
Javascript | Javascript | fix crash because for invalid type | f2ed7ca3e398e74e902e364449888743fa13899e | <ide><path>lib/RuntimeTemplate.js
<ide> class RuntimeTemplate {
<ide> }) {
<ide> if (runtimeCondition === undefined) return "true";
<ide> if (typeof runtimeCondition === "boolean") return `${runtimeCondition}`;
<add> /** @type {Set<string>} */
<ide> const positiveRuntimeIds = new Set();
<ide> forEachRuntime(r... | 3 |
Text | Text | add note about removing asm archs | 4f1f14e5cdf028870c577aa32b3f87a82c2bb0cf | <ide><path>deps/openssl/README.md
<ide> little)
<ide> These are listed in [config/Makefile](config/Makefile).
<ide> Please refer [config/opensslconf_asm.h](config/opensslconf_asm.h) for details.
<ide>
<add>To remove or add an architecture the templates need to be updated for which
<add>there are two:
<add>* include_as... | 1 |
Text | Text | add a space on readme | ad84d23a02550663a10502cdec148e126935f795 | <ide><path>packages/next/README.md
<ide> import { withRouter } from 'next/router'
<ide> const ActiveLink = ({ children, router, href }) => {
<ide> const style = {
<ide> marginRight: 10,
<del> color: router.pathname === href? 'red' : 'black'
<add> color: router.pathname === href ? 'red' : 'black'
<ide> }
<... | 1 |
Python | Python | update tagger serialization | a7309a217d5a0d9c94bc9dff85c2e7d8262b345a | <ide><path>spacy/tests/serialize/test_serialize_tagger.py
<ide> def taggers(en_vocab):
<ide> tagger1 = Tagger(en_vocab)
<ide> tagger2 = Tagger(en_vocab)
<del> tagger1.model = tagger1.Model(None, None)
<del> tagger2.model = tagger2.Model(None, None)
<add> tagger1.model = tagger1.Model(8, 8)
<add> tag... | 1 |
Javascript | Javascript | make crypto.timingsafeequal test less flaky | c678ecbca0c9d18d6578fa2a65c9a4ab2a569744 | <ide><path>test/fixtures/crypto-timing-safe-equal-benchmark-func.js
<add>'use strict';
<add>
<add>const assert = require('assert');
<add>module.exports = (compareFunc, firstBufFill, secondBufFill, bufSize) => {
<add> const firstBuffer = Buffer.alloc(bufSize, firstBufFill);
<add> const secondBuffer = Buffer.alloc(bufS... | 3 |
PHP | PHP | fix method order | 5317cb529989e73793a64bbfc3ae9b6ed55ed3fd | <ide><path>src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
<ide> protected function compileLock(Builder $query, $value)
<ide> return $value ? 'for update' : 'for share';
<ide> }
<ide>
<add> /**
<add> * Compile a "where date" clause.
<add> *
<add> * @param \Illuminate\Database\Que... | 1 |
Python | Python | fix output shape of the position embedding layer | c93ac621f011ed490a9f19488f115ba2641a5fc7 | <ide><path>official/nlp/modeling/layers/position_embedding.py
<ide> def call(self, inputs):
<ide> seq_length = input_shape[1]
<ide> width = input_shape[2]
<ide>
<del> position_embeddings = tf.expand_dims(
<del> tf.slice(self._position_embeddings, [0, 0], [seq_length, width]),
<del> a... | 1 |
Go | Go | make `errorresponse` implement `error` | 6ddd43b589e91fbe0b015745a9fdf78a043361fc | <ide><path>api/types/error_response_ext.go
<add>package types
<add>
<add>// Error returns the error message
<add>func (e ErrorResponse) Error() string {
<add> return e.Message
<add>} | 1 |
Javascript | Javascript | track thenable state in work loop | 7572e4931f820ad7c8aa59452ab7a40eb68843fc | <ide><path>packages/react-reconciler/src/ReactFiberHooks.new.js
<ide> import {
<ide> requestEventTime,
<ide> markSkippedUpdateLanes,
<ide> isInvalidExecutionContextForEventFunction,
<add> getSuspendedThenableState,
<ide> } from './ReactFiberWorkLoop.new';
<ide>
<ide> import getComponentNameFromFiber from 'react... | 7 |
Ruby | Ruby | hoist assignment to simplify a conditional | 85feea33c003748740f3a3dc1e410549afa50e95 | <ide><path>Library/Homebrew/formula.rb
<ide> def test_defined?
<ide> # Throws if there's an error
<ide> def system cmd, *args
<ide> removed_ENV_variables = {}
<add> rd, wr = IO.pipe
<ide>
<ide> # remove "boring" arguments so that the important ones are more likely to
<ide> # be shown considering tha... | 1 |
Text | Text | add lxe as collaborator | 96597bc5927c57737c3bea943dd163d69ac76a96 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Vladimir Kurchatkin** ([@vkurchatkin](https://github.com/vkurchatkin)) <vladimir.kurchatkin@gmail.com>
<ide> * **Nikolai Vavilov** ([@seishun](https://github.com/seishun)) <vvnicholas@gmail.com>
<ide> * **Nicu Mi... | 1 |
Javascript | Javascript | fix real world to be case insensitive | e64573ecf9d470b41b476916e7375137863bb70d | <ide><path>examples/real-world/containers/RepoPage.js
<ide> RepoPage.propTypes = {
<ide> }
<ide>
<ide> function mapStateToProps(state, ownProps) {
<del> const { login, name } = ownProps.params
<add> // We need to lower case the login/name due to the way GitHub's API behaves.
<add> // Have a look at ../middleware/ap... | 3 |
Text | Text | remove internal link in orbit readme | 9d9456d221edd5f1e886d06b2599f6460e8de3e4 | <ide><path>orbit/README.md
<ide> the inner training loop. It integrates with `tf.distribute` seamlessly and
<ide> supports running on different device types (CPU, GPU, and TPU). The core code is
<ide> intended to be easy to read and fork.
<ide>
<del>See our [g3doc](g3doc) at go/orbit-trainer for additional documentati... | 1 |
Ruby | Ruby | remove duplicate line | 537a07b42d1e419cab678d68710ca12ce00a8f0c | <ide><path>Library/Homebrew/utils.rb
<ide> require "utils/repology"
<ide> require "utils/svn"
<ide> require "utils/tty"
<del>require "utils/repology"
<ide> require "tap_constants"
<ide> require "time"
<ide> | 1 |
PHP | PHP | reduce 5-level if cases to 2 levels | 5e0e85073337620fbd5e9c3ca7d9aefda491e709 | <ide><path>lib/Cake/Model/CakeSchema.php
<ide> public function read($options = array()) {
<ide> continue;
<ide> }
<ide>
<del> $db = $Object->getDataSource();
<del> if (is_object($Object) && $Object->useTable !== false) {
<del> $fulltable = $table = $db->fullTableName($Object, false, false);
<del> ... | 1 |
PHP | PHP | fix notice in cakesession | 864f5e06f69afe93918ba8d0fe3403a8fc11f549 | <ide><path>lib/Cake/Model/Datasource/CakeSession.php
<ide> protected static function _validAgentAndTime() {
<ide> $config = self::read('Config');
<ide> $validAgent = (
<ide> Configure::read('Session.checkAgent') === false ||
<del> self::$_userAgent == $config['userAgent']
<add> isset($config['userAgent']) &&... | 1 |
Javascript | Javascript | fix potential deopt while reading arguments | 96f80d27be74cead08e8a21d8ccadd162e05c111 | <ide><path>packages/container/lib/container.js
<ide> function areInjectionsDynamic(injections) {
<ide> return !!injections._dynamic;
<ide> }
<ide>
<del>function buildInjections(container) {
<add>function buildInjections(/* container, ...injections */) {
<ide> var hash = {};
<ide>
<ide> if (arguments.length > 1)... | 1 |
Javascript | Javascript | put createroot export under a feature flag | 1e35f2b282a20b41000e6b048fa5a16e147d930b | <ide><path>packages/react-cs-renderer/src/ReactNativeCSFeatureFlags.js
<ide> var ReactNativeCSFeatureFlags: FeatureFlags = {
<ide> enableAsyncSubtreeAPI: true,
<ide> enableAsyncSchedulingByDefaultInReactDOM: false,
<ide> enableReactFragment: false,
<add> enableCreateRoot: false,
<ide> // React Native CS uses p... | 4 |
Text | Text | wrap long lines in http.request | 4d55d1611db3241c8bfb177189373e4e2c928788 | <ide><path>doc/api/http.md
<ide> added: v0.3.6
<ide>
<ide> * `options` {Object}
<ide> * `protocol` {String} Protocol to use. Defaults to `'http:'`.
<del> * `host` {String} A domain name or IP address of the server to issue the request to.
<del> Defaults to `'localhost'`.
<del> * `hostname` {String} Alias for `h... | 1 |
Ruby | Ruby | remove extra white spaces on actionmailer docs | 5d0d4d8ad33be90e34721090991c86c8a22f2d05 | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> module ActionMailer #:nodoc:
<ide> #
<ide> # = Observing and Intercepting Mails
<ide> #
<del> # Action Mailer provides hooks into the Mail observer and interceptor methods. These allow you to
<add> # Action Mailer provides hooks into the Mail observer and... | 1 |
Ruby | Ruby | remove massassignmentsecurity from activemodel | f8c9a4d3e88181cee644f91e1342bfe896ca64c6 | <ide><path>activemodel/lib/active_model.rb
<ide> module ActiveModel
<ide> autoload :EachValidator, 'active_model/validator'
<ide> autoload :ForbiddenAttributesProtection
<ide> autoload :Lint
<del> autoload :MassAssignmentSecurity
<ide> autoload :Model
<ide> autoload :Name, 'active_model/naming'
<ide> autol... | 16 |
Text | Text | correct a small typo in style guide for articles. | 583676707ab5167dfb8ecc34ca898f2872cb27a9 | <ide><path>docs/style-guide-for-guide-articles.md
<ide> Proper nouns should use correct capitalization when possible. Below is a list of
<ide> - JavaScript (capital letters in "J" and "S" and no abbreviations)
<ide> - Node.js
<ide>
<del>Front-end development (adjective form with a dash) is when you working on the fron... | 1 |
Go | Go | use waitgroup instead of iterating errors chan | e6c9343457c501c1da718c25bb9601f87d82cd7d | <ide><path>daemon/attach.go
<ide> import (
<ide> "encoding/json"
<ide> "io"
<ide> "os"
<add> "sync"
<ide> "time"
<ide>
<ide> log "github.com/Sirupsen/logrus"
<ide> func (daemon *Daemon) attach(streamConfig *StreamConfig, openStdin, stdinOnce, t
<ide> var (
<ide> cStdout, cStderr io.ReadCloser
<ide> cStdin ... | 1 |
Text | Text | add syntax highlighting | 092f8473cef58ab67d6287194ebadebdd3a46498 | <ide><path>src/Illuminate/Database/README.md
<ide> The Illuminate Database component is a full database toolkit for PHP, providing
<ide>
<ide> First, create a new "Capsule" manager instance. Capsule aims to make configuring the library for usage outside of the Laravel framework as easy as possible.
<ide>
<del>```
<ad... | 1 |
Go | Go | add unit test for lxc conf merge and native opts | 10fdbc0467d1be6c7c731d3f35590d87ee42f96f | <ide><path>runtime/container.go
<ide> func populateCommand(c *Container) {
<ide> }
<ide> }
<ide>
<del> // merge in the lxc conf options into the generic config map
<del> if lxcConf := c.hostConfig.LxcConf; lxcConf != nil {
<del> lxc := driverConfig["lxc"]
<del> for _, pair := range lxcConf {
<del> lxc = append(... | 8 |
Ruby | Ruby | add example to collectionassociation#destroy_all | fcc13f46f5f8db2a7010c00bd209d442461e948d | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> module Associations
<ide> #
<ide> # CollectionAssociation is an abstract class that provides common stuff to
<ide> # ease the implementation of association proxies that represent
<del> # collections. See the class hier... | 1 |
Mixed | Javascript | change windowshide default to true | 420d8afe3db22ad703e74892f58f9e32d34ff699 | <ide><path>doc/api/child_process.md
<ide> exec('"my script.cmd" a b', (err, stdout, stderr) => {
<ide> <!-- YAML
<ide> added: v0.1.90
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/21316
<add> description: The `windowsHide` option now defaults to `true`.
<ide> - ver... | 4 |
Python | Python | restore tok2vec function | fa7c1990b6bb094c82271586739a4ce036f3ae61 | <ide><path>spacy/_ml.py
<del>from thinc.api import layerize, chain, clone
<add>from thinc.api import layerize, chain, clone, concatenate
<ide> from thinc.neural import Model, Maxout, Softmax
<ide> from thinc.neural._classes.hash_embed import HashEmbed
<del>from .attrs import TAG, DEP
<add>
<add>from thinc.neural._class... | 1 |
Ruby | Ruby | fix info/options for new options dsl | e196c845bf3099a1aaf7264fe87fa4e40ea8e2e6 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def info_formula f
<ide> history = github_info(f)
<ide> puts history if history
<ide>
<del> unless f.options.empty?
<add> unless f.build.empty?
<ide> require 'cmd/options'
<ide> ohai "Options"
<ide> Homebrew.dump_options_for_formula f
<ide><... | 2 |
Ruby | Ruby | remove unnecessary call to #tap | d97ba0d31bd10cd793649dbeb9e972edf3934fa7 | <ide><path>actionpack/test/dispatch/routing_test.rb
<ide> def test_enforce_with_string
<ide> class TestCallableConstraintValidation < ActionDispatch::IntegrationTest
<ide> def test_constraint_with_object_not_callable
<ide> assert_raises(ArgumentError) do
<del> ActionDispatch::Routing::RouteSet.new.tap do |ap... | 1 |
Text | Text | fix code snippet | 1aec8aeefc2ad6ccb39ef6c43d03ed86e0adb6ef | <ide><path>docs/templates/constraints.md
<ide> These layers expose 2 keyword arguments:
<ide>
<ide>
<ide> ```python
<del>from keras.constraints import maxnorm
<add>from keras.constraints import max_norm
<ide> model.add(Dense(64, kernel_constraint=max_norm(2.)))
<ide> ```
<ide> | 1 |
Text | Text | fix doc styles | 986be03a4c349dcac7a5fa4c85d81a25af50f02f | <ide><path>CONTRIBUTING.md
<ide> By making a contribution to this project, I certify that:
<ide> [Building guide]: ./BUILDING.md
<ide> [CI (Continuous Integration) test run]: #ci-testing
<ide> [Code of Conduct]: https://github.com/nodejs/TSC/blob/master/CODE_OF_CONDUCT.md
<del>[guide for writing tests in Node.js]: ./do... | 12 |
Text | Text | fix broken links in russian challenges | 82b340d42980075f24b80dc7078ff6faf94d003f | <ide><path>curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.russian.md
<ide> localeTitle: Назначение с возвращенной стоимость
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Если вы вспомните из нашего обсуждения « <a href... | 5 |
Ruby | Ruby | fix #not to stop wrapping in a grouping node | dbc86c0f2c2fc3c8bacf35c67fb8e0967b0a8980 | <ide><path>lib/arel/nodes/node.rb
<ide> class Node
<ide> # Factory method to create a Nodes::Not node that has the recipient of
<ide> # the caller as a child.
<ide> def not
<del> Nodes::Not.new Nodes::Grouping.new self
<add> Nodes::Not.new self
<ide> end
<ide>
<ide> ###
<ide... | 2 |
PHP | PHP | run provider boot method through container call | 8056d41b148dfca2d2f73a5c325e8fc91ecff3c5 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Filesystem\Filesystem;
<ide> use Illuminate\Support\Facades\Facade;
<add>use Illuminate\Support\ServiceProvider;
<ide> use Illuminate\Events\EventServiceProvider;
<ide> use Illuminate\Routing\RoutingServi... | 1 |
Javascript | Javascript | remove an unused internal module `assertport` | 879d6663eafdfd6e07111e7a38652cadbb1d17bd | <ide><path>lib/internal/net.js
<ide> function isLegalPort(port) {
<ide> return +port === (+port >>> 0) && port <= 0xFFFF;
<ide> }
<ide>
<del>
<del>function assertPort(port) {
<del> if (typeof port !== 'undefined' && !isLegalPort(port))
<del> throw new RangeError('"port" argument must be >= 0 and < 65536');
<del>... | 1 |
Ruby | Ruby | allow easier debugging of action dispatch requests | 190d1424a4926f761cbd1e20aea25809d8f2bc88 | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def request_method_symbol
<ide> # Returns the original value of the environment's REQUEST_METHOD,
<ide> # even if it was overridden by middleware. See #request_method for
<ide> # more information.
<del> def method
<del> @method ||= chec... | 2 |
Python | Python | list more test packages in the setup.py | b2cebdcca729c043d15db64d219d272d286b5dd1 | <ide><path>setup.py
<ide> 'spacy.syntax',
<ide> 'spacy.munge',
<ide> 'spacy.tests',
<add> 'spacy.tests.unit',
<add> 'spacy.tests.integration',
<ide> 'spacy.tests.matcher',
<ide> 'spacy.tests.morphology',
<ide> 'spacy.tests.munge', | 1 |
Ruby | Ruby | prefix internal method with _ | 89397d09ebb7ca4089f17820d05d5eb223913652 | <ide><path>activemodel/lib/active_model/validations.rb
<ide> def invalid?(context = nil)
<ide> protected
<ide>
<ide> def run_validations! #:nodoc:
<del> run_validate_callbacks
<add> _run_validate_callbacks
<ide> errors.empty?
<ide> end
<ide> end
<ide><path>activemodel/lib/active_model/valid... | 8 |
PHP | PHP | fix cs errors | 707c88a2686f8aeec66710009839f619e56fe946 | <ide><path>src/Model/Behavior/TreeBehavior.php
<ide> protected function _recoverTree($counter = 0, $parentId = null) {
<ide>
<ide> $query = $this->_scope($this->_table->query())
<ide> ->select($pk)
<del> ->where([$parent .' IS' => $parentId])
<add> ->where([$parent . ' IS' => $parentId])
<ide> ->order($pk)... | 5 |
Java | Java | fix typo in javadoc in headerassertions | 66826ac960be20aa0df25f22f1a47612c5b91845 | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/HeaderAssertions.java
<ide> public WebTestClient.ResponseSpec valueMatches(String name, String pattern) {
<ide> /**
<ide> * Match all values of the response header with the given regex
<ide> * patterns which are applied to the values... | 1 |
PHP | PHP | use php_sapi instead of php_sapi_name() | e499e38a18cc50c5e4f5caaa920db2b8aecf1445 | <ide><path>src/Cache/Engine/XcacheEngine.php
<ide> class XcacheEngine extends CacheEngine
<ide> */
<ide> public function init(array $config = [])
<ide> {
<del> if (!extension_loaded('xcache') || php_sapi_name() === 'cli') {
<add> if (PHP_SAPI === 'cli' || !extension_loaded('xcache')) {
<ide> ... | 8 |
Text | Text | update golang requirements in packagers.md | edadc2f4d737bf4f7aa3c477f2021aae2e551cc2 | <ide><path>project/PACKAGERS.md
<ide> need to package Docker your way, without denaturing it in the process.
<ide> To build Docker, you will need the following:
<ide>
<ide> * A recent version of Git and Mercurial
<del>* Go version 1.4 or later (Go version 1.5 or later required for hardware signing
<del> support in Do... | 1 |
Javascript | Javascript | use tock for nexttickqueue items | 4b31a2d8dafdeac404f5fb0c52b910bc30f458ae | <ide><path>src/node.js
<ide> process._tickCallback = _tickCallback;
<ide> process._tickDomainCallback = _tickDomainCallback;
<ide>
<add> function Tock(cb, domain) {
<add> this.callback = cb;
<add> this.domain = domain;
<add> }
<add>
<ide> function tickDone() {
<ide> if (infoBox[length... | 1 |
Java | Java | add @propertysources and ignoreresourcenotfound | e95bd9e25086bf1dad37f8d08293c948621faf6b | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/AnnotationConfigUtils.java
<ide>
<ide> package org.springframework.context.annotation;
<ide>
<add>import java.util.Collections;
<ide> import java.util.LinkedHashSet;
<add>import java.util.Map;
<ide> import java.util.Set;
<ide>
<ide> impor... | 10 |
PHP | PHP | remove event priorities | dbbfc62beff1625b0d45bbf39650d047555cf4fa | <ide><path>src/Illuminate/Contracts/Events/Dispatcher.php
<ide> interface Dispatcher
<ide> *
<ide> * @param string|array $events
<ide> * @param mixed $listener
<del> * @param int $priority
<ide> * @return void
<ide> */
<del> public function listen($events, $listener, $priority = 0)... | 5 |
Java | Java | add requestpredicate visitor to webflux.fn | 88cb126511779608d377b33793a8b00cfded7602 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicate.java
<ide> default Optional<ServerRequest> nest(ServerRequest request) {
<ide> return (test(request) ? Optional.of(request) : Optional.empty());
<ide> }
<ide>
<add> /**
<add> * Accept the given visitor. Defaul... | 5 |
Javascript | Javascript | improve error message with id of the canvas | 1a1e68380f1298ccb25e6941b07e158855ac4992 | <ide><path>src/core/core.controller.js
<ide> class Chart {
<ide> if (existingChart) {
<ide> throw new Error(
<ide> 'Canvas is already in use. Chart with ID \'' + existingChart.id + '\'' +
<del> ' must be destroyed before the canvas can be reused.'
<add> ' must be destroyed before the canvas with... | 2 |
PHP | PHP | remove complex rendering | 5f5165275b00548fcb06572c8187eb11e16d57fd | <ide><path>src/View/Input/MultiCheckbox.php
<ide> public function __construct($templates) {
<ide> * checked.
<ide> * - `disabled` Either a boolean or an array of checkboxes to disable.
<ide> * - `escape` Set to false to disable HTML escaping.
<add> * - `options` An associative array of value=>labels to generate op... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.