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 |
|---|---|---|---|---|---|
Python | Python | add hungarian examples (see ) | 485c4f6df5763a01b90117632114f96e28c31738 | <ide><path>spacy/lang/hu/examples.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>
<add>"""
<add>Example sentences to test spaCy and its language models.
<add>
<add>>>> from spacy.lang.hu.examples import sentences
<add>>>> docs = nlp.pipe(sentences)
<add>"""
<add>
<add>
<add>sentences = [... | 1 |
Javascript | Javascript | add comment and ignore rule on regular expression | ebf137954cbc0ea25dd10817f820de7840a92be7 | <ide><path>packages/line-ending-selector/lib/main.js
<ide> import StatusBarItem from './status-bar-item'
<ide> import helpers from './helpers'
<ide>
<ide> const LineEndingRegExp = /\r\n|\n/g
<add>
<add>// the following regular expression is executed natively via the `substring` package,
<add>// where `\A` corresponds ... | 1 |
Text | Text | add example for running with v8-inspector | bdb801261a8323a5a684398b60e6b9ca470c72a8 | <ide><path>doc/api/debugger.md
<ide> e.g. `--inspect=9222` will accept DevTools connections on port 9222.
<ide> To break on the first line of the application code, provide the `--debug-brk`
<ide> flag in addition to `--inspect`.
<ide>
<add>```txt
<add>$ node --inspect index.js
<add>Debugger listening on port 9229.
<ad... | 1 |
Javascript | Javascript | add filereader to eslint globals | 35b6d2e52bf3cab069c272bfd46490a2cd59673f | <ide><path>packages/eslint-config-react-native-community/index.js
<ide> module.exports = {
<ide> EventTarget: false,
<ide> exports: false,
<ide> fetch: false,
<add> FileReader: false,
<ide> FormData: false,
<ide> global: false,
<ide> Headers: false, | 1 |
Python | Python | resolve line-too-long in mixed_precision | ebb5e0e3f5e0b02cad2b54144022084301588ac5 | <ide><path>keras/mixed_precision/autocast_variable.py
<ide> class AutoCastVariable(tf.Variable, tf.__internal__.types.Tensor):
<ide> """Variable that will cast itself to a different dtype in applicable contexts.
<ide>
<ide> This class wraps a floating-point `tf.Variable`. It emulates the variable
<del> inte... | 13 |
Javascript | Javascript | fix disabled prop for text | 88a63980b58cb4f820229318dba39f0680b76ba3 | <ide><path>Libraries/Text/Text.js
<ide> const viewConfig = {
<ide> numberOfLines: true,
<ide> ellipsizeMode: true,
<ide> allowFontScaling: true,
<add> disabled: true,
<ide> selectable: true,
<ide> selectionColor: true,
<ide> adjustsFontSizeToFit: true, | 1 |
Go | Go | use local variable for platform | 9839ddd80047c62ce5e28f9436a1709eb2a5555d | <ide><path>api/server/router/image/image_routes.go
<ide> func (s *imageRouter) postImagesCreate(ctx context.Context, w http.ResponseWrite
<ide>
<ide> version := httputils.VersionFromContext(ctx)
<ide> if versions.GreaterThanOrEqualTo(version, "1.32") {
<del> apiPlatform := r.FormValue("platform")
<del> if apiPlatf... | 1 |
Javascript | Javascript | fix some inconsequential typos | 305e201b71710f1d7742662d36450b1926f4aeb6 | <ide><path>gdocs.js
<ide> if (flag === '--login') {
<ide> }
<ide>
<ide> function help() {
<del> console.log('Synopsys');
<add> console.log('Synopsis');
<ide> console.log('gdocs.js --login <username>');
<ide> console.log('gdocs.js --fetch [<docs collection>]');
<ide> process.exit(-1);
<ide><path>test/auto/injec... | 4 |
PHP | PHP | throw exception on invalid smtp client | 0997a53d5ad46c7ba946f85103ff1358feaf9505 | <ide><path>src/Mailer/Transport/SmtpTransport.php
<ide> protected function _connect(): void
<ide>
<ide> $host = 'localhost';
<ide> if (isset($config['client'])) {
<add> if (empty($config['client'])) {
<add> throw new SocketException('Cannot use an empty client name.');
<add> ... | 2 |
Javascript | Javascript | use fetch in fileloader | 8b80974628275e16583467410d0f488161c5a81b | <ide><path>src/loaders/FileLoader.js
<ide> class FileLoader extends Loader {
<ide>
<ide> url = this.manager.resolveURL( url );
<ide>
<del> const scope = this;
<del>
<ide> const cached = Cache.get( url );
<ide>
<ide> if ( cached !== undefined ) {
<ide>
<del> scope.manager.itemStart( url );
<add> this.mana... | 1 |
Ruby | Ruby | add compatibility for `macos.release` | 14c99abc6512d066b36f558c82c42abf7bf138c4 | <ide><path>Library/Homebrew/compat/macos.rb
<ide> def has_apple_developer_tools?
<ide> odeprecated "MacOS.has_apple_developer_tools?", "DevelopmentTools.installed?"
<ide> DevelopmentTools.installed?
<ide> end
<add>
<add> def release
<add> odeprecated "MacOS.release", "MacOS.version"
<a... | 1 |
Ruby | Ruby | fix rubocop offenses | b4e8bfe716c787edededeaa3475a78bfdb15ddd6 | <ide><path>Library/Homebrew/cask/artifact/abstract_artifact.rb
<ide> def staged_path_join_executable(path)
<ide>
<ide> def <=>(other)
<ide> return unless other.class < AbstractArtifact
<del> return 0 if self.class == other.class
<add> return 0 if instance_of?(other.class)
<ide>
<ide> ... | 5 |
Go | Go | set canonical name correctly | 7f48cd7dce6fdc077bcde0962e0aa0e73fb63225 | <ide><path>graph/pull.go
<ide> func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, repoInfo *
<ide> }
<ide> }
<ide>
<del> requestedTag := repoInfo.CanonicalName
<add> requestedTag := repoInfo.LocalName
<ide> if len(askedTag) > 0 {
<del> requestedTag = utils.ImageReference(repoInfo.CanonicalName,... | 3 |
PHP | PHP | remove useless imports. | 9820e484d0d01bd9f0d4a194e1a614c8ead5541f | <ide><path>src/Illuminate/Translation/Translator.php
<ide>
<ide> namespace Illuminate\Translation;
<ide>
<del>use Countable;
<ide> use Illuminate\Contracts\Translation\Loader;
<ide> use Illuminate\Contracts\Translation\Translator as TranslatorContract;
<ide> use Illuminate\Support\Arr; | 1 |
Ruby | Ruby | fix typo in deprecation message. [robin dupret] | 70b7e281deeb08f20b2254fd779ddfa0945358f2 | <ide><path>activemodel/lib/active_model/validations/length.rb
<ide> def initialize(options)
<ide> if options[:tokenizer]
<ide> ActiveSupport::Deprecation.warn(<<-EOS.strip_heredoc)
<ide> The `:tokenizer` option is deprecated, and will be removed in Rails 5.1.
<del> You can achie... | 1 |
PHP | PHP | improve doc blocks a bit | 1cd457b11060b890df835c8e74e036f37e486c12 | <ide><path>Cake/ORM/Association/ExternalAssociationTrait.php
<ide> protected function _buildQuery($options) {
<ide> * @return \Cake\ORM\Query
<ide> */
<ide> protected function _addFilteringCondition($query, $key, $filter) {
<del> return $query->andWhere([$key . ' in' => $filter]);
<add> return $query->andWhere([$k... | 2 |
Ruby | Ruby | extract template keys to a method | dc1633090e6689d53e688c7bc8357ac3b31f4c70 | <ide><path>actionview/lib/action_view/renderer/partial_renderer.rb
<ide> def initialize(*)
<ide> @context_prefix = @lookup_context.prefixes.first
<ide> end
<ide>
<add> def template_keys
<add> if @has_object || @collection
<add> @locals.keys + retrieve_variable(@path, @as)
<add> else
<add>... | 1 |
Text | Text | add examples of creating static and dynamic arrays | 77509c6d234fb90b5d7e390d1ea134ffad353a99 | <ide><path>guide/english/cplusplus/arrays/index.md
<ide> There are two types of arrays based on way the array is declared.
<ide> Those arrays whose size is defined before compile time like in the examples above, are called static arrays. In these arrays we can't change their size, once they are declared.
<ide> e.g : in... | 1 |
PHP | PHP | fix typo in session/store | cc889335728166f2ad2bffad6e75095cdf70e7ba | <ide><path>src/Illuminate/Session/Store.php
<ide> public function exists($key)
<ide> }
<ide>
<ide> /**
<del> * Checks if an a key is present and not null.
<add> * Checks if a key is present and not null.
<ide> *
<ide> * @param string|array $key
<ide> * @return bool | 1 |
Python | Python | set version to v3.0.0a15 | 5d09e3e15459d4ad0ec25ef7e0b5b3264eb54dc8 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy-nightly"
<del>__version__ = "3.0.0a14"
<add>__version__ = "3.0.0a15"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/... | 1 |
Text | Text | add section on how to raise security issues | 79411a511e8489dc04405e9138d1abf56f69ba68 | <ide><path>.github/ISSUE_TEMPLATE.md
<ide> <!-- NOTE: If your issue is CodePen Project / Test Suite related, please open it using the below URL instead -->
<ide> <!-- https://github.com/freeCodeCamp/testable-projects-fcc/issues/new -->
<ide>
<add>#### Security
<add>Trying to report a security issue?
<add>
<add>👌 plea... | 1 |
Javascript | Javascript | restrict supported extensions | 147ea5e3d78effd6da8ea2bfbf6bb77b6aaf52da | <ide><path>lib/internal/errors.js
<ide> E('ERR_WORKER_NEED_ABSOLUTE_PATH',
<ide> TypeError);
<ide> E('ERR_WORKER_UNSERIALIZABLE_ERROR',
<ide> 'Serializing an uncaught exception failed', Error);
<add>E('ERR_WORKER_UNSUPPORTED_EXTENSION',
<add> 'The worker script extension must be ".js" or ".mjs". Received "%s"',
<a... | 3 |
Ruby | Ruby | use sql literal factory method | 0a609eea504f72baead7548d47f0fe707314a033 | <ide><path>activerecord/lib/active_record/association_preload.rb
<ide> def find_associated_records(ids, reflection, preload_options)
<ide> append_conditions(reflection, preload_options)).join(' AND ')
<ide>
<ide> find_options = {
<del> :select => preload_options[:select] || options[:select] ... | 1 |
Javascript | Javascript | remove unnecessary set of default_max_version | c925d1dcaa13e23ae51769c8e9a20e9141a643a4 | <ide><path>lib/tls.js
<ide> exports.DEFAULT_CIPHERS =
<ide>
<ide> exports.DEFAULT_ECDH_CURVE = 'auto';
<ide>
<del>exports.DEFAULT_MAX_VERSION = 'TLSv1.3';
<del>
<ide> if (getOptionValue('--tls-min-v1.0'))
<ide> exports.DEFAULT_MIN_VERSION = 'TLSv1';
<ide> else if (getOptionValue('--tls-min-v1.1')) | 1 |
Ruby | Ruby | reset migration version before testing migration | e9e7e7d3fd70fb31224b9d1234b04cf41249ff2d | <ide><path>activerecord/test/cases/adapters/postgresql/uuid_test.rb
<ide> def test_schema_dumper_for_uuid_primary_key_default
<ide>
<ide> uses_transaction \
<ide> def test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration
<add> ActiveRecord::SchemaMigration.delete_all
<ide> @verbose_was = Activ... | 1 |
Text | Text | ignore no-literal-urls in readme | 0619b600b2ff66be75e66ef59184c46301e5273f | <ide><path>README.md
<add><!--lint disable no-literal-urls-->
<ide> <p align="center">
<ide> <a href="https://nodejs.org/">
<ide> <img | 1 |
Python | Python | add doc init from list of words and text | 3d2c308906e2bde7ca57d2e8213252530b944502 | <ide><path>spacy/errors.py
<ide> class Errors(object):
<ide> E193 = ("Unable to resize vectors in place if the resized vector dimension "
<ide> "({new_dim}) is not the same as the current vector dimension "
<ide> "({curr_dim}).")
<add> E194 = ("Unable to aligned mismatched text '{text}' a... | 3 |
Python | Python | remove named templates from the output | 16331cc1cf9b2cf3505d0c4742a854dc00923d9d | <ide><path>numpy/distutils/from_template.py
<ide> def find_repl_patterns(astr):
<ide> names[name] = thelist
<ide> return names
<ide>
<add>def find_and_remove_repl_patterns(astr):
<add> names = find_repl_patterns(astr)
<add> astr = re.subn(named_re, '', astr)[0]
<add> return astr, names
<add>
<ide>... | 2 |
PHP | PHP | update language domains | d2badbeb22d2e557746f5d2f3d06480ab2ff0bdb | <ide><path>lib/Cake/View/Helper.php
<ide> public function __construct(View $View, $settings = array()) {
<ide> * @param array $params Array of params for the method.
<ide> */
<ide> public function __call($method, $params) {
<del> trigger_error(__d('cake', 'Method %1$s::%2$s does not exist', get_class($this), $metho... | 9 |
Javascript | Javascript | add bigint formatting to util.inspect | 39dc947409c7df19ac4f9502df8cb0d4a1b2829a | <ide><path>lib/util.js
<ide> inspect.colors = Object.assign(Object.create(null), {
<ide> inspect.styles = Object.assign(Object.create(null), {
<ide> 'special': 'cyan',
<ide> 'number': 'yellow',
<add> 'bigint': 'yellow',
<ide> 'boolean': 'yellow',
<ide> 'undefined': 'grey',
<ide> 'null': 'bold',
<ide> functio... | 2 |
Javascript | Javascript | fix lint and deopt issues | 7d1d3a6621b9a6599b0ee139964afd6b2ca38c6d | <ide><path>lib/url.js
<ide> Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
<ide> var end = -1;
<ide> var rest = '';
<ide> var lastPos = 0;
<del> for (var i = 0, inWs = false, split = false; i < url.length; ++i) {
<del> var code = url.charCodeAt(i);
<add> var i = 0;
<add> for (var... | 1 |
Javascript | Javascript | add support for react.pure in reactdomserver | 8ecd4bd4f07ea41baa934e6748649e447c999231 | <ide><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationSpecialTypes-test.js
<ide> const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegratio
<ide> let React;
<ide> let ReactDOM;
<ide> let ReactDOMServer;
<add>let forwardRef;
<add>let pure;
<add>let yieldedValues;
<add>let yieldValue;... | 2 |
Go | Go | send sigterm to child instead of sigkill | 39037a91f85a4a072e5aa7e585d8c2f6b211df8a | <ide><path>pkg/libcontainer/nsinit/init.go
<ide> func (ns *linuxNs) Init(container *libcontainer.Container, uncleanRootfs, consol
<ide> return fmt.Errorf("setctty %s", err)
<ide> }
<ide> }
<del> if err := system.ParentDeathSignal(); err != nil {
<add> // this is our best effort to let the process know that the pa... | 2 |
Text | Text | add inline code | 202ca8efc2c9a28e4ac4be1075cb568f57ef417a | <ide><path>guide/english/r/functions/index.md
<ide> A function allows you to define a reusable block of code that can be executed ma
<ide>
<ide> Functions can be named and called repeatedly or can be run anonymously in place (similar to lambda functions in python).
<ide>
<del>Developing full understanding of R functi... | 1 |
Text | Text | update redirects in readme | c9dc9707c875bb9b33405005b70e702b0fe69b69 | <ide><path>README.md
<ide> I wrote Redux while working on my React Europe talk called [“Hot Reloading wit
<ide>
<ide> ### Influences
<ide>
<del>Redux evolves the ideas of [Flux](https://facebook.github.io/flux), but avoids its complexity by taking cues from [Elm](https://github.com/evancz/elm-architecture-tutorial/).... | 1 |
Javascript | Javascript | remove disabled test | 03216760ec858f3257e4e009a40f7f9a62b41510 | <ide><path>test/ng/directive/inputSpec.js
<ide> describe('input', function() {
<ide> });
<ide>
<ide>
<del> xit('should require at least one item', function() {
<del> compileInput('<input type="text" ng-model="list" ng-list required />');
<del>
<del> changeInputValueTo(' , ');
<del> expect(inputE... | 1 |
Python | Python | add vectors to language.meta | 8e022942413f65a7b28ea45fa92ba687db76d1f9 | <ide><path>spacy/language.py
<ide> def meta(self):
<ide> self._meta.setdefault('email', '')
<ide> self._meta.setdefault('url', '')
<ide> self._meta.setdefault('license', '')
<add> self._meta['vectors'] = {'width': self.vocab.vectors_length,
<add> 'entries':... | 1 |
Ruby | Ruby | silence another test that runs migrations | 9bb495e6ae4de6d8c22f5e0cf81fbd86d95362e2 | <ide><path>activerecord/test/cases/invertible_migration_test.rb
<ide> def change
<ide> end
<ide> end
<ide>
<add> setup do
<add> @verbose_was, ActiveRecord::Migration.verbose = ActiveRecord::Migration.verbose, false
<add> end
<add>
<ide> teardown do
<ide> %w[horses new_horses].each do |ta... | 1 |
PHP | PHP | update docblock | bba47876777b036d76811720769c681d6102e067 | <ide><path>src/Illuminate/Auth/Middleware/Authenticate.php
<ide> protected function unauthenticated($request, array $guards)
<ide> * Get the path the user should be redirected to when they are not authenticated.
<ide> *
<ide> * @param \Illuminate\Http\Request $request
<del> * @return string
<add> ... | 1 |
Text | Text | add "合约协议" in the articles | beaa609da7c7e7eb9dbfd16494951d3bc13bddda | <ide><path>guide/chinese/blockchain/index.md
<ide> localeTitle: 块链
<ide> >
<ide> > \--Bettina Warburg 1
<ide>
<del>区块链通常与比特币和其他加密货币相关联,但它们不是一回事。比特币是第一个实施区块链概念的人。区块链的结构,不断增长的记录列表,可以应用于许多其他领域,如数字身份,供应链甚至[民主](https://www.democracy.earth/) 。
<add>区块链通常与比特币和其他加密货币相关联,但它们不是一回事。比特币是第一个实施区块链概念的人。区块链的结构,不断增长的记录列表,可以应用于许多其他领域,... | 1 |
Ruby | Ruby | remove reset! as a connection#checkout callback | 9c3c42d8ea489ff50fceebe0d37c86f9291fece5 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> class AbstractAdapter
<ide> include QueryCache
<ide> include ActiveSupport::Callbacks
<ide> define_callbacks :checkout, :checkin
<del> checkout :reset!
<add>
<ide> @@row_even = true
<ide>
<ide> de... | 1 |
PHP | PHP | accept closure for sleepmilliseconds | 035a0b2e2da129bac2756b1ee3ee10bb8bcda569 | <ide><path>src/Illuminate/Support/helpers.php
<ide> function preg_replace_array($pattern, array $replacements, $subject)
<ide> *
<ide> * @param int $times
<ide> * @param callable $callback
<del> * @param int $sleepMilliseconds
<add> * @param int|\Closure $sleepMilliseconds
<ide> * @p... | 2 |
Text | Text | add missing imports in events sample code | ad5ea5f9a5fa8b514227c3553e1a3cf361f2ddae | <ide><path>doc/api/events.md
<ide> require manual async tracking. Specifically, all events emitted by instances
<ide> of `events.EventEmitterAsyncResource` will run within its [async context][].
<ide>
<ide> ```mjs
<del>import { EventEmitterAsyncResource } from 'node:events';
<add>import { EventEmitterAsyncResource, Ev... | 1 |
Python | Python | adjust names and formatting | 2185d31907041f4e4c8856bfcb8635998648571b | <ide><path>spacy/tests/tokenizer/test_urls.py
<ide> "mailto:foo-bar@baz-co.com"
<ide> ]
<ide>
<add>
<ide> # Punctuation we want to check is split away before the URL
<ide> PREFIXES = [
<ide> "(", '"', ">"
<ide> ]
<ide>
<add>
<ide> # Punctuation we want to check is split away after the URL
<ide> SUFFIXES = [
<... | 1 |
PHP | PHP | add array support to optional | 2564437750326edfe5b55da57ae295a770f4c9e5 | <ide><path>src/Illuminate/Support/Optional.php
<ide>
<ide> namespace Illuminate\Support;
<ide>
<del>class Optional
<add>use ArrayAccess;
<add>
<add>class Optional implements ArrayAccess
<ide> {
<ide> use Traits\Macroable {
<ide> __call as macroCall;
<ide> public function __call($method, $parameters)
<ide>... | 2 |
Java | Java | add null check after message conversion | da369aa8266c96d2fea635e39d5b5145b9e3d2ec | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/converter/CompositeMessageConverter.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licen... | 5 |
Ruby | Ruby | remove outdated comment [ci skip] | 45f06a7ce88e4589bccc9679ff3b44ea8690af89 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
<ide> def indexes(table_name, name = nil)
<ide>
<ide> # Returns the list of all column definitions for a table.
<ide> def columns(table_name)
<del> # Limit, precision, and scale are all handled by the... | 1 |
Text | Text | update serialization docs [ci skip] | 089f44cc564b30ff7cfe0ff8c68adacaa75c477f | <ide><path>website/docs/usage/101/_serialization.md
<ide> file or a byte string. This process is called serialization. spaCy comes with
<ide> > object to and from disk, but it's also used for distributed computing, e.g.
<ide> > with
<ide> > [PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html)
<d... | 1 |
PHP | PHP | add removesubcommand in consoleoptionparser | 79dc624062582ac57ce4ca19f8945d8addc6b92e | <ide><path>lib/Cake/Console/ConsoleOptionParser.php
<ide> public function addSubcommand($name, $options = array()) {
<ide> return $this;
<ide> }
<ide>
<add>/**
<add> * Remove an subcommand from the option parser.
<add> *
<add> * @param string $name The subcommand name to remove.
<add> * @return ConsoleOptionParser ... | 2 |
Text | Text | add link to docs readme | 67ca7415e71a3e6389b883f746a1a15580deb892 | <ide><path>README.md
<ide> Contributing to Docker
<ide> [](https://ci.dockerproject.com/github.com/docker/docker)
<ide>
<ide> Want to hack on Docker? Awesome! There are instructions to get you
<del>started [here](CONTRIBUTIN... | 1 |
Python | Python | fix text_to_word_sequence with unicode text | 71bfb00788ec6e899abc8d2de1a67a281879bccd | <ide><path>keras/preprocessing/text.py
<ide> def text_to_word_sequence(text,
<ide> """
<ide> if lower:
<ide> text = text.lower()
<del> text = text.translate(maketrans(filters, split * len(filters)))
<add>
<add> if sys.version_info < (3,) and isinstance(text, unicode):
<add> translate_map = ... | 2 |
Text | Text | switch installation to a tab when hash is present | 4c8c5debac5074427d5e6ce19896d4062e078a83 | <ide><path>docs/docs/installation.md
<ide> To load a specific version of `react` and `react-dom`, replace `15` with the ver
<ide> If you use Bower, React is available via the `react` package.
<ide>
<ide> <script>
<add>/**
<add> * The code below is based on a snippet from React Native Getting Started page.
<add> */
<ad... | 1 |
Text | Text | add tests reflecting | 9cf283aab950fb58e75e95c04ae0b7f80d6387f9 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.english.md
<ide> We've created an object, <code>users</code>, with some users in it and a functio
<ide>
<ide> ```yml
<ide> tests:
<del> - text: The <code>users</code> object on... | 1 |
Text | Text | update commands.rb content in initialization guide | 3d449dee5ed60b4d6c688c919c527dd70f528043 | <ide><path>guides/source/initialization.md
<ide> A standard Rails application depends on several gems, specifically:
<ide>
<ide> ### `rails/commands.rb`
<ide>
<del>Once `config/boot.rb` has finished, the next file that is required is `rails/commands` which will execute a command based on the arguments passed in. In t... | 1 |
Python | Python | fix broken static check on main | c0fbe3ad12eae4dc408a0ef103f2a359762f73e3 | <ide><path>airflow/utils/process_utils.py
<ide> def execute_interactive(cmd: List[str], **kwargs):
<ide> try:
<ide> # use os.setsid() make it run in a new process group, or bash job control will not be enabled
<ide> with subprocess.Popen(
<del> cmd, stdin=secondary_fd, stdout=secondary_fd... | 1 |
Go | Go | remove verbose logging for non errors | 055f1a1f8181d51d3386b4270f810efd59d51d30 | <ide><path>pkg/proxy/tcp_proxy.go
<ide> func NewTCPProxy(frontendAddr, backendAddr *net.TCPAddr) (*TCPProxy, error) {
<ide> func (proxy *TCPProxy) clientLoop(client *net.TCPConn, quit chan bool) {
<ide> backend, err := net.DialTCP("tcp", nil, proxy.backendAddr)
<ide> if err != nil {
<del> log.Printf("Can't forward t... | 2 |
PHP | PHP | add tests for belongstomany and hasmany saving | 353bd1a526ca1513fe41a1c4c0d3ccfa04ffefc5 | <ide><path>Cake/Test/TestCase/ORM/Association/BelongsToManyTest.php
<ide> public function testSaveWithReplaceReturnFalse() {
<ide> $this->assertFalse($assoc->save($entity, $options));
<ide> }
<ide>
<add>/**
<add> * Test that save() ignores non entity values.
<add> *
<add> * @return void
<add> */
<add> public functi... | 2 |
Ruby | Ruby | remove build flag from ant dep | 355361fa3f6a4c18fe582a45148cc9dcd5bc50b9 | <ide><path>Library/Homebrew/dependency_collector.rb
<ide> def autotools_dep(spec, tags)
<ide>
<ide> def ant_dep(spec, tags)
<ide> if MacOS.version >= :mavericks
<del> tags << :build
<ide> Dependency.new(spec.to_s, tags)
<ide> end
<ide> end | 1 |
Text | Text | change the printf function of the hello world code | a9dfb97bbde8de26ec150befdb1e1082641e59af | <ide><path>guide/english/c/index.md
<ide> Now that you have that background, let's start with our 'Hello, World' program.
<ide>
<ide> int main(void)
<ide> {
<del> printf("hello, world\n");
<add> printf("Hello, World!\n");
<ide> return 0;
<ide> }
<ide> ``` | 1 |
Text | Text | define a generator before referring to it | cb389fc6d002b1ec9102f6d39d6de195dcf90c34 | <ide><path>guides/source/getting_started.md
<ide> If it says something like "Rails 3.2.9", you are ready to continue.
<ide>
<ide> ### Creating the Blog Application
<ide>
<del>Rails comes with a number of generators that are designed to make your development life easier. One of these is the new application generator, ... | 1 |
Python | Python | update quadratic equations solver | d2f7982a4ee105ca980b2446ed8fc2e32139dd7d | <ide><path>maths/quadratic_equations_complex_numbers.py
<del>from math import sqrt
<add>from cmath import sqrt
<ide> from typing import Tuple
<ide>
<ide>
<del>def QuadraticEquation(a: int, b: int, c: int) -> Tuple[str, str]:
<add>def quadratic_roots(a: int, b: int, c: int) -> Tuple[complex, complex]:
<ide> """
<i... | 1 |
Go | Go | remove redundant init() | 31d34681463a275f0bcc0dd43461d3e11cc6b61d | <ide><path>libnetwork/service_windows.go
<ide> type policyLists struct {
<ide> elb *hcsshim.PolicyList
<ide> }
<ide>
<del>var lbPolicylistMap map[*loadBalancer]*policyLists
<del>
<del>func init() {
<del> lbPolicylistMap = make(map[*loadBalancer]*policyLists)
<del>}
<add>var lbPolicylistMap = make(map[*loadBalancer]*p... | 1 |
Javascript | Javascript | update example to use a module | b9faec0673ce8b26bfb1ba6073a7d8379b57a9eb | <ide><path>src/ng/directive/form.js
<ide> function FormController(element, attrs, $scope, $animate) {
<ide> * </pre>
<ide> *
<ide> * @example
<del> <example deps="angular-animate.js" animations="true" fixBase="true">
<add> <example deps="angular-animate.js" animations="true" fixBase="true" module="formExample"... | 1 |
PHP | PHP | add new validatewithbag macro to request | fdeb204e1cd3374a71d669fd2ff08323d88c1eef | <ide><path>src/Illuminate/Foundation/Providers/FoundationServiceProvider.php
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Support\AggregateServiceProvider;
<ide> use Illuminate\Support\Facades\URL;
<add>use Illuminate\Validation\ValidationException;
<ide>
<ide> class FoundationServiceProvider extends Aggreg... | 2 |
Python | Python | add new and fix existing pricing tests, | 389fff015fc8f0cb36261048689bed76d8089ffd | <ide><path>test/test_pricing.py
<ide> def test_get_pricing_success(self):
<ide>
<ide> def test_get_pricing_invalid_file_path(self):
<ide> try:
<del> get_pricing(driver_type='compute', driver_name='bar',
<del> pricing_file_path='inexistent.json')
<del> except Excepti... | 1 |
Javascript | Javascript | improve code in test-https-strict | fd115862f413899996130c00a6109cd5448d760e | <ide><path>test/parallel/test-https-strict.js
<ide> function read(fname) {
<ide> }
<ide>
<ide> // key1 is signed by ca1.
<del>var key1 = read('agent1-key.pem');
<del>var cert1 = read('agent1-cert.pem');
<add>const key1 = read('agent1-key.pem');
<add>const cert1 = read('agent1-cert.pem');
<ide>
<ide> // key2 has a sel... | 1 |
Python | Python | support sentinel with ssl" " | 50ae4331cec1e2d61f536b406b0ebfefe7f1a495 | <ide><path>celery/backends/redis.py
<ide> class RedisBackend(BaseKeyValueStoreBackend, AsyncBackendMixin):
<ide>
<ide> #: :pypi:`redis` client module.
<ide> redis = redis
<add> connection_class_ssl = redis.SSLConnection if redis else None
<ide>
<ide> #: Maximum number of connections in the pool.
<ide> ... | 2 |
Text | Text | remove meaningless 4 in use a retina image guide | d6b8c5fcee04741618ce69a8049c0676b60f8fed | <ide><path>guide/english/certifications/responsive-web-design/responsive-web-design-principles/use-a-retina-image-for-higher-resolution-displays/index.md
<ide> Following the instructions:
<ide>
<ide> Set the width and height of the img tag to half of their original values. In this case, both the original height and th... | 1 |
Python | Python | prevent empty `queryset`s to raises assertionerror | 6f66798ad3242c742ab0c5edcc038a9c7b469c2e | <ide><path>rest_framework/permissions.py
<ide> def has_permission(self, request, view):
<ide> if queryset is None and getattr(view, '_ignore_model_permissions', False):
<ide> return True
<ide>
<del> assert queryset, (
<add> assert queryset is not None, (
<ide> 'Cannot appl... | 2 |
Ruby | Ruby | improve test for leaky scope chain | 4df806f95f8c64c8a1406aebf5f82807ff76c611 | <ide><path>activerecord/test/cases/reflection_test.rb
<ide> def test_scope_chain_of_polymorphic_association_does_not_leak_into_other_hmt_ass
<ide> drink = department.chefs.create!(employable: DrinkDesigner.create!)
<ide> Recipe.create!(chef_id: drink.id, hotel_id: hotel.id)
<ide>
<add> expected_sql = captur... | 1 |
Text | Text | update doc about assets digest class [ci skip] | 8ee7d5e1fcea69713ab7d1389fbdf3944bf8a4c7 | <ide><path>guides/source/configuring.md
<ide> pipeline is enabled. It is set to `true` by default.
<ide>
<ide> * `config.assets.manifest` defines the full path to be used for the asset precompiler's manifest file. Defaults to a file named `manifest-<random>.json` in the `config.assets.prefix` directory within the publ... | 1 |
PHP | PHP | fix fatal error handling | 275a6184a2b64684380151d938bb8f5478fb086f | <ide><path>lib/Cake/Core/App.php
<ide> public static function shutdown() {
<ide> if (static::$_objectCacheChange) {
<ide> Cache::write('object_map', static::$_objects, '_cake_core_');
<ide> }
<del> static::_checkFatalError();
<del> }
<del>
<del>/**
<del> * Check if a fatal error happened and trigger the configu... | 2 |
Javascript | Javascript | increase test timeout | beadd8e14fd9e60b7abeda0edece28fdeafb1c40 | <ide><path>test/TestCases.test.js
<ide> describe("TestCases", function() {
<ide> }).forEach(function(testName) {
<ide> var suite = describe(testName, function() {});
<ide> it(testName + " should compile", function(done) {
<del> this.timeout(10000);
<ide> var testDirectory = path.join(cases... | 1 |
Text | Text | fix punctuation [ci skip] | 6f9d7f346b218d559372797aff3accf5141db711 | <ide><path>guides/source/asset_pipeline.md
<ide> generates something like this:
<ide> rel="stylesheet" />
<ide> ```
<ide>
<del>Note: with the Asset Pipeline the :cache and :concat options aren't used
<add>NOTE: with the Asset Pipeline the `:cache` and `:concat` options aren't used
<ide> anymore, delete these options f... | 1 |
Text | Text | improve arabic translation for /react/props | a70164b08164a8630ac28dc509ccefac4205e770 | <ide><path>guide/arabic/react/props/index.md
<ide> ---
<ide> title: Props
<del>localeTitle: الدعائم
<add>localeTitle: الخصائص
<ide> ---
<del>### ما هي الدعائم؟
<add>### ما هي الخصائص (props)؟
<ide>
<del>الدعائم (اختصار الخصائص) هي التاريخ الذي تم تمريره إلى المكون. هم غير قابل للتغيير (للقراءة فقط).
<ide>\ No newline ... | 1 |
PHP | PHP | fix strict errors and missing imports in sqlite | 538c9988706f4628cd8a71039ef71aa15ce249ff | <ide><path>lib/Cake/Model/Datasource/Database/Sqlite.php
<ide> <?php
<ide> /**
<del> * SQLite layer for DBO
<del> *
<del> * PHP 5
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> *
<id... | 1 |
Text | Text | use details tags to clean up mailhog section | be2bb093d4505b3bd2bafdb38114474424bc37fe | <ide><path>docs/how-to-catch-outgoing-emails-locally.md
<ide> > **Note:** This is an **optional** step and is required only when working with email workflows
<ide>
<add>- [Introduction](#introduction)
<add>- [Installing MailHog](#installing-mailhog)
<add>- [Using MailHog](#using-mailhog)
<add>- [Useful Links](#useful-... | 1 |
Javascript | Javascript | invoke callbacks with undefined context | 2249234fee2b4f0ce204859728135b9767538383 | <ide><path>lib/fs.js
<ide> function makeCallback(cb) {
<ide> }
<ide>
<ide> return function() {
<del> return cb.apply(null, arguments);
<add> return cb.apply(undefined, arguments);
<ide> };
<ide> }
<ide>
<ide><path>test/parallel/test-fs-mkdtemp.js
<ide> assert(common.fileExists(utf8));
<ide> function handl... | 3 |
Python | Python | fix parametric testing for python 2.4 | 47221fe49a26140a57c6af6569afbaf055db15c8 | <ide><path>numpy/testing/parametric.py
<ide> def run(self, result=None):
<ide>
<ide> if result is None: result = self.defaultTestResult()
<ide>
<add> try:
<add> _testMethodName = getattr(self,"_testMethodName")
<add> except:
<add> _testMethodName = getattr(self,"_TestCase__... | 1 |
Python | Python | add svg to the 'make server' known types list | 03a39b899a84c0dfc8fac338b4d87529f478df01 | <ide><path>test/test.py
<ide> def prompt(question):
<ide> '.html': 'text/html',
<ide> '.js': 'application/javascript',
<ide> '.json': 'application/json',
<add> '.svg': 'image/svg+xml',
<ide> '.pdf': 'application/pdf',
<ide> '.xhtml': 'application/xhtml+xml',
<ide> '.ico': 'image/x-icon', | 1 |
Javascript | Javascript | fix regex to include .jsx | 29575b99b78eb0f2afa94d04941fddd4fb779f7d | <ide><path>examples/counter/webpack.config.js
<ide> module.exports = {
<ide> },
<ide> module: {
<ide> loaders: [{
<del> test: /\.js?$/,
<add> test: /\.jsx?$/,
<ide> loaders: ['react-hot', 'babel'],
<ide> exclude: /node_modules/
<ide> }] | 1 |
Javascript | Javascript | emit flush events on react native for reactperf | 49a1542c9f82b2934bd96374b222bcd86ab9d044 | <ide><path>src/renderers/native/ReactNativeMount.js
<ide> var ReactNativeMount = {
<ide> // Mute future events from the top level wrapper.
<ide> // It is an implementation detail that devtools should not know about.
<ide> instance._debugID = 0;
<add>
<add> if (__DEV__) {
<add> ReactInstrum... | 1 |
Java | Java | remove jetbrains annotations inserted by ide | e214d69350d374a769e59c867f2c50488caf5980 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ModelInitializer.java
<ide> import java.util.Optional;
<ide> import java.util.stream.Collectors;
<ide>
<del>import org.jetbrains.annotations.NotNull;
<ide> import reactor.core.publisher.Mono;
<ide>
<ide> import org.sprin... | 2 |
Python | Python | fix lemma ordering in test | 102f7979338b948744b6af06689f928deb72f27c | <ide><path>spacy/tests/regression/test_issue781.py
<ide>
<ide> # Note: "chromosomes" worked previous the bug fix
<ide> @pytest.mark.models('en')
<del>@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocalize", "colocaliz"])])
<add>@pytest.mark.p... | 1 |
Python | Python | improve clarity of in1d docstring | 6a3c80fb11d60569328e751bab7b664ed6a7967e | <ide><path>numpy/lib/arraysetops.py
<ide> def in1d(ar1, ar2, assume_unique=False, invert=False, kind=None):
<ide> to (but is faster than) ``np.invert(in1d(a, b))``.
<ide> kind : {None, 'sort', 'table'}, optional
<ide> The algorithm to use. This will not affect the final result,
<del> but will... | 1 |
Javascript | Javascript | use fixture files | 259e939518f7ba04215c97af50bda06b8d0fe6d6 | <ide><path>node-tests/blueprints/mixin-test-test.js
<ide> const modifyPackages = blueprintHelpers.modifyPackages;
<ide> const chai = require('ember-cli-blueprint-test-helpers/chai');
<ide> const expect = chai.expect;
<ide>
<add>const fixture = require('../helpers/fixture');
<add>
<ide> describe('Blueprint: mixin-test'... | 4 |
Mixed | Ruby | remove deprecated arguments from `#verify!` | 9c6ee1bed0292fc32c23dc1c68951ae64fc510be | <ide><path>activerecord/CHANGELOG.md
<add>* Remove deprecated arguments from `#verify!`.
<add>
<add> *Rafael Mendonça França*
<add>
<ide> * Remove deprecated argument `name` from `#indexes`.
<ide>
<ide> *Rafael Mendonça França*
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.r... | 3 |
Javascript | Javascript | add support for $route.reload() | 9fd3dfe49d283c136e29bf60c0da6d4fe2aaed3d | <ide><path>src/services.js
<ide> angularServiceInject('$route', function(location) {
<ide> */
<ide> otherwise: function(params) {
<ide> $route.when(null, params);
<add> },
<add>
<add> /**
<add> * @workInProgress
<add> * @ngdoc method
<add> * @name angular... | 2 |
Python | Python | handle empty tasklist. closes #873 | e7be679471f4f79ccd0caf556d0335db84877f0e | <ide><path>celery/app/builtins.py
<ide> def run(self, tasks, result, group_id, partial_args):
<ide> return result
<ide>
<ide> def prepare(self, options, tasks, args, **kwargs):
<add> AsyncResult = self.AsyncResult
<ide> options['group_id'] = group_id = \
<ide> ... | 1 |
Mixed | Ruby | update assert_redirected_to docs [ci skip] | 21575ddc32dedd358b938c6c66d0c8393a341434 | <ide><path>actionpack/lib/action_dispatch/testing/assertions/response.rb
<ide> def assert_response(type, message = nil)
<ide> end
<ide> end
<ide>
<del> # Asserts that the redirection options passed in match those of the redirect called in the latest action.
<del> # This match can be partial, su... | 2 |
Java | Java | use custom config read in reactortcpclient | a372b683cde47651fcec6ef0cec9004d79c4975e | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java
<ide>
<ide> package org.springframework.messaging.simp.stomp;
<ide>
<add>import java.io.IOException;
<ide> import java.util.Collection;
<ide> import java.util.Map;
<ide> import java.util.concurrent.C... | 2 |
Python | Python | move displacy tests to own file | c3df4d1108cfec0f5b612bb426bf7a0a9220960f | <ide><path>spacy/tests/test_displacy.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>from spacy import displacy
<add>from spacy.tokens import Span
<add>
<add>from .util import get_doc
<add>
<add>
<add>def test_displacy_parse_ents(en_vocab):
<add> """Test that named ... | 2 |
Text | Text | fix names in contributing | 14961cf8dff745b3f2067df3187543fcae97ee43 | <ide><path>CONTRIBUTING.md
<ide> chance of keeping on top of things.
<ide> ## Submitting Changes
<ide>
<ide> * Push your changes to a topic branch in your fork of the repository.
<del>* Submit a pull request to the repository in the cakephp organization, with the
<add>* Submit a pull request to the repository in the C... | 1 |
Javascript | Javascript | get router history working with flux | 80d36cc3cd13a24665af3203b3253b81cf37ec8e | <ide><path>client/index.js
<ide> import { hydrate } from 'thundercats';
<ide> import { render$ } from 'thundercats-react';
<ide>
<ide> import { app$ } from '../common/app';
<add>import synchroniseHistory from './synchronise-history';
<ide>
<ide> const debug = debugFactory('fcc:client');
<ide> const DOMContianer = doc... | 5 |
Ruby | Ruby | ignore $home/.curlrc when invoking curl | f501e7f00b7816aae703463815f5cef0e38e0086 | <ide><path>Library/Homebrew/global.rb
<ide>
<ide> HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}; Mac OS X #{MACOS_FULL_VERSION})"
<ide>
<del>HOMEBREW_CURL_ARGS = '-f#LA'
<add>HOMEBREW_CURL_ARGS = '-qf#LA'
<ide>
<ide> RECOMMENDED_LLVM = 2326
<ide> RECOMMENDED_GCC_40 = (M... | 1 |
Javascript | Javascript | fix scope issue in dom 2 event handlers | e0aa10a664aabbc9ab900a07ea55cb892a7b8d3f | <ide><path>src/event/event.js
<ide> jQuery.event = {
<ide> // around, causing it to be cloned in the process
<ide> if ( jQuery.browser.msie && element.setInterval != undefined )
<ide> element = window;
<del>
<add>
<ide> // if data is passed, bind to handler
<ide> if( data != undefined ) {
<ide> ... | 1 |
Javascript | Javascript | fix initialization with non routable statemanager | 640f00cacabddcbc6881ed4770fa500534ecbf70 | <ide><path>packages/ember-application/lib/system/application.js
<ide> Ember.Application = Ember.Namespace.extend(
<ide>
<ide> this.ready();
<ide>
<del> if (stateManager) {
<add> if (stateManager && stateManager instanceof Ember.Router) {
<ide> this.setupStateManager(stateManager);
<ide> }
<ide> ... | 2 |
Javascript | Javascript | remove `router.router` deprecation | 4842f036a330a39c57147898ca074c8a66946783 | <ide><path>packages/ember-routing/lib/system/router.js
<ide> function updatePaths(router) {
<ide> }
<ide>
<ide> EmberRouter.reopenClass({
<del> router: null,
<del>
<ide> /**
<ide> The `Router.map` function allows you to define mappings from URLs to routes
<ide> in your application. These mappings are define... | 2 |
Ruby | Ruby | provide a request and response to all controllers | 51c7ac142d31095d4c699f44cc44ddea627da1eb | <ide><path>actionpack/lib/action_controller/metal.rb
<ide> def self.controller_name
<ide> @controller_name ||= name.demodulize.sub(/Controller$/, '').underscore
<ide> end
<ide>
<add> def self.make_response!(request)
<add> ActionDispatch::Response.new.tap do |res|
<add> res.request = request
<a... | 10 |
Python | Python | fix progbar dynamic display | 7fc5466f95e2f9e19c8ab7602286f642a136091b | <ide><path>keras/utils/generic_utils.py
<ide> def __init__(self, target, width=30, verbose=1, interval=0.05):
<ide> self.interval = interval
<ide> self.total_width = 0
<ide> self.seen_so_far = 0
<del> self.verbose = verbose
<del> self.is_jupyter = 'ipykernel' in sys.modules
<add> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.