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 | tell developers to submit odeprecated prs | 17c24d040bc2a488b9bd70546cf0ef4f6d81d3bc | <ide><path>Library/Homebrew/utils.rb
<ide> def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
<ide>
<ide> if ARGV.homebrew_developer? || disable ||
<ide> Homebrew.raise_deprecation_exceptions?
<del> raise MethodDeprecatedError, message
<add> developer_message = message + "Or,... | 1 |
Javascript | Javascript | fix hmr on windows | c61100d0ceb4b71c86f01f35d7464d2d8a02b342 | <ide><path>babel-preset/configs/hmr.js
<ide> module.exports = function(options, filename) {
<ide> var transform = filename
<ide> ? './' + path.relative(path.dirname(filename), transformPath) // packager can't handle absolute paths
<ide> : hmrTransform;
<add>
<add> // Fix the module path to use '/' on Win... | 2 |
Python | Python | allow trailing explanations in autosummary items | 940a7d3b4e6398a742873347a2f3c605ceffe481 | <ide><path>doc/sphinxext/autosummary_generate.py
<ide> def get_documented_in_lines(lines, module=None, filename=None):
<ide> autodoc_re = re.compile(".. auto(function|method|attribute|class|exception|module)::\s*([A-Za-z0-9_.]+)\s*$")
<ide> autosummary_re = re.compile(r'^\.\.\s+autosummary::\s*')
<ide> modu... | 1 |
Javascript | Javascript | fix browser error logging in `test/test.js` | 5309133a9d9942234fbb4c4df5b7dc710666ff89 | <ide><path>test/test.js
<ide> function startBrowsers(initSessionCallback, makeStartUrl = null) {
<ide> }
<ide> })
<ide> .catch(function (ex) {
<del> console.log(`Error while starting ${browserName}: ${ex}`);
<add> console.log(`Error while starting ${browserName}: ${ex.message}`);
<ide>... | 1 |
Java | Java | consider bridge methods in spel properties | fce7adc400d4b519da40d361a1b1f62fc58e185a | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectivePropertyAccessor.java
<ide> import java.lang.reflect.Member;
<ide> import java.lang.reflect.Method;
<ide> import java.lang.reflect.Modifier;
<add>import java.util.Arrays;
<add>import java.util.Comparator;
<ide> import java.... | 2 |
Java | Java | initialize jndi to fix failing environment test | 2667956a30960e6683e794d8bcf9860319af3ad8 | <ide><path>spring-web/src/test/java/org/springframework/web/context/support/StandardServletEnvironmentTests.java
<ide>
<ide> package org.springframework.web.context.support;
<ide>
<del>import static org.hamcrest.CoreMatchers.equalTo;
<del>import static org.hamcrest.CoreMatchers.is;
<del>import static org.junit.Assert... | 1 |
Python | Python | unify processname logging in python 2 and 3 | 200c1ddb1e911d7b33c3dbeb4922e3581524c7a5 | <ide><path>celery/app/log.py
<ide> )
<ide> from celery.utils.term import colored
<ide>
<del>PY3 = sys.version_info[0] == 3
<del>
<ide> MP_LOG = os.environ.get('MP_LOG', False)
<ide>
<ide>
<ide> def setup_logging_subsystem(self, loglevel=None, logfile=None,
<ide> format = format or self.format
<ide> c... | 2 |
Mixed | Ruby | add has_one through disable_joins | f7d7a22d018c26181c9eb4254f50a77a7ece17e6 | <ide><path>activerecord/CHANGELOG.md
<add>* Add option to disable joins for `has_one` associations.
<add>
<add> In a multiple database application, associations can't join across
<add> databases. When set, this option instructs Rails to generate 2 or
<add> more queries rather than generating joins for `has_o... | 7 |
Python | Python | remove dead code | c2bb0f9a1d5e3d58b7bc35142167a0d76e0e590b | <ide><path>numpy/lib/tests/test_io.py
<ide> def test_named_arrays(self):
<ide>
<ide>
<ide> class TestSaveTxt(TestCase):
<del> #@np.testing.dec.knownfailureif(sys.platform=='win32', "Fail on Win32")
<ide> def test_array(self):
<ide> a =np.array([[1, 2], [3, 4]], float)
<ide> fmt = "%.18e" | 1 |
Python | Python | ignore f401 flake8 warning (x326 / 594) | 654e051e2a602b822e6804a6199bb7d0e841dfdc | <ide><path>transformers/__init__.py
<add># flake8: noqa
<add># There's no way to ignore "F401 '...' imported but unused" warnings in this
<add># module, but to preserve other warnings. So, don't check this module at all.
<add>
<ide> __version__ = "2.3.0"
<ide>
<ide> # Work around to update TensorFlow's absl.logging th... | 3 |
Ruby | Ruby | remove non-existent download strategies | 29182ad0682430f34f65947a38da58dd712efd46 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_download_strategy
<ide>
<ide> return unless using
<ide>
<del> if using == :ssl3 || \
<del> (Object.const_defined?("CurlSSL3DownloadStrategy") && using == CurlSSL3DownloadStrategy)
<del> problem "The SSL3 download strategy is deprec... | 2 |
PHP | PHP | add tests for `ids` option in marshaller | 10e81465d3aae06d1c39ac2ce22e3b33f02b8251 | <ide><path>tests/TestCase/ORM/MarshallerTest.php
<ide> public function testOneBelongsToManyJoinData()
<ide> );
<ide> }
<ide>
<add> /**
<add> * Test that the ids option restricts to only accepting ids for belongs to many associations.
<add> *
<add> * @return void
<add> */
<add> public ... | 1 |
Text | Text | use parenthesis instead of em dash | 29bb2bb57d2a993e4e79172fe6b954f8047eee81 | <ide><path>doc/api/crypto.md
<ide> try {
<ide>
<ide> When using the lexical ESM `import` keyword, the error can only be
<ide> caught if a handler for `process.on('uncaughtException')` is registered
<del>_before_ any attempt to load the module is made -- using, for instance,
<del>a preload module.
<add>_before_ any att... | 1 |
Ruby | Ruby | pass repository path into the updater | 8d12684efe43e20b62d4f20836c673051107246e | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def update
<ide> unlink_tap_formula(tapped_formulae)
<ide>
<ide> report = Report.new
<del> master_updater = Updater.new
<add> master_updater = Updater.new(HOMEBREW_REPOSITORY)
<ide> begin
<ide> master_updater.pull!
<ide> ensure
<ide> def updat... | 2 |
PHP | PHP | apply fixes from styleci | 6149c624aefceef18829dec971249b6948891a64 | <ide><path>src/Illuminate/Support/Testing/Fakes/MailFake.php
<ide> public function send($view, array $data = [], $callback = null)
<ide>
<ide> $view->mailer($this->currentMailer);
<ide>
<del>
<ide> if ($view instanceof ShouldQueue) {
<ide> return $this->queue($view, $data);
<ide> } | 1 |
Python | Python | remove features class | 8e0f0b48cfb677f6df6bb827452080b39015248e | <ide><path>libcloud/base.py
<ide> import hashlib
<ide> from pipes import quote as pquote
<ide>
<del>class Features(object):
<del> AUTH_SSH_KEY = 1
<del> AUTH_PASSWORD = 2
<del>
<ide> class Node(object):
<ide> """
<ide> A Base Node class to derive from. | 1 |
Python | Python | fix test_connection implementation | 2f70daf5ac36100ff0bbd4ac66ce921a2bc6dea0 | <ide><path>airflow/providers/databricks/hooks/databricks.py
<ide>
<ide> RUN_LIFE_CYCLE_STATES = ['PENDING', 'RUNNING', 'TERMINATING', 'TERMINATED', 'SKIPPED', 'INTERNAL_ERROR']
<ide>
<del>LIST_ZONES_ENDPOINT = ('GET', 'api/2.0/clusters/list-zones')
<add>SPARK_VERSIONS_ENDPOINT = ('GET', 'api/2.0/clusters/spark-versio... | 2 |
Ruby | Ruby | improve consistency of *_version methods | fb653c00d8152da765b56c0bb1ae7bba5bf7002d | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def latest_version(
<ide> version.to_s.include?(rejection)
<ide> end
<ide> end
<del>
<ide> next if match_version_map.blank?
<ide>
<ide> if debug
<ide> def resource_version(
<ide> urls ||= checkable_urls(resourc... | 1 |
Text | Text | fix incorrect package name on oracle linux | d9f4e5c13ccb5c76547937399078784e4e7ed023 | <ide><path>docs/installation/oracle.md
<ide> btrfs storage engine on both Oracle Linux 6 and 7.
<ide>
<ide> 4. Install the Docker package.
<ide>
<del> $ sudo yum install docker
<add> $ sudo yum install docker-engine
<ide>
<ide> 5. Start the Docker daemon.
<ide>
<ide> To enable btrfs support on Oracle ... | 1 |
PHP | PHP | use templatepath() instead of viewpath() | efa41b11ff319a72747a01ae746b3fe9998c9d92 | <ide><path>src/Controller/Component/AuthComponent.php
<ide> protected function _unauthenticated(Controller $controller)
<ide> }
<ide>
<ide> if (!empty($this->_config['ajaxLogin'])) {
<del> $controller->viewBuilder()->viewPath('Element');
<add> $controller->viewBuilder()->templateP... | 13 |
Ruby | Ruby | use add_to_env instead of an initializer | 39928c8db23ce555360f866f21ccedfc49bc95d3 | <ide><path>railties/test/application/asset_debugging_test.rb
<ide> class ::PostsController < ActionController::Base ; end
<ide> end
<ide>
<ide> test "assets aren't concatened when compile is true is on and debug_assets params is true" do
<del> app_file "config/initializers/compile.rb", "Rails.application.... | 1 |
Text | Text | improve fs api descriptions | 35511c8ba11afb122c2b0ecfa7e8d7b70f295f93 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> * `callback` {Function}
<ide> * `err` {Error}
<ide>
<del>Asynchronous chmod(2). No arguments other than a possible exception are given
<del>to the completion callback.
<add>Asynchronously changes the permissions of a file. No arguments other than a
<add>possible exceptio... | 1 |
PHP | PHP | remove type as a separarte option | d83c3050a847740325c52e2a1fbbaffa25bc39b3 | <ide><path>src/View/Widget/Button.php
<ide> public function render(array $data) {
<ide> ];
<ide> return $this->_templates->format('button', [
<ide> 'text' => $data['escape'] ? h($data['text']) : $data['text'],
<del> 'type' => $data['type'],
<del> 'attrs' => $this->_templates->formatAttributes($data, ['type',... | 2 |
Text | Text | add missing punctuation in web streams doc | 3ac7f86c2bbd50ebcebb323c3b545f35b1350ebc | <ide><path>doc/api/webstreams.md
<ide> streaming data. It is similar to the Node.js [Streams][] API but emerged later
<ide> and has become the "standard" API for streaming data across many JavaScript
<ide> environments.
<ide>
<del>There are three primary types of objects
<add>There are three primary types of objects:
... | 1 |
Javascript | Javascript | add jest mock for 'pushnotificationmanager' | 31a0b8788f5f1fcb15a002746a345ae059e58b45 | <ide><path>jest/setup.js
<ide> const mockNativeModules = {
<ide> addListener: jest.fn(),
<ide> removeListeners: jest.fn(),
<ide> },
<add> PushNotificationManager: {
<add> presentLocalNotification: jest.fn(),
<add> scheduleLocalNotification: jest.fn(),
<add> cancelAllLocalNotifications: jest.fn(),
<a... | 1 |
Javascript | Javascript | fix typo in bridge.js | 46926993fc435e9ba7dd03f791ded05e32897b0d | <ide><path>packages/react-devtools-shared/src/bridge.js
<ide> type FrontendEvents = {|
<ide> // but the new frontend still dispatches them (in case older backends are listening to them instead).
<ide> //
<ide> // Note that this approach does no support the combination of a newer backend with an older frontend.
<d... | 1 |
Text | Text | remove legacy mysql from guides to match | 8c629bf463b47643712570d4511a68b9a3da1476 | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> $ bundle exec rake test:sqlite3
<ide> You can now run the tests as you did for `sqlite3`. The tasks are respectively:
<ide>
<ide> ```bash
<del>test:mysql
<ide> test:mysql2
<ide> test:postgresql
<ide> ```
<ide><path>guides/source/development_dependencies_i... | 2 |
PHP | PHP | remove use of options key in paginatorhelper | f8663154eef4f0aaef208a4e9ae2fb63439a899e | <ide><path>Cake/View/Helper/PaginatorHelper.php
<ide> *
<ide> * PaginationHelper encloses all methods needed when working with pagination.
<ide> *
<del> * @package Cake.View.Helper
<ide> * @property HtmlHelper $Html
<ide> * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html
<ide> */
<ide> ... | 1 |
PHP | PHP | try regexp as not all locales are available | 89b2eddf0b54a88a5c48e13dd3b714d387b1ff5e | <ide><path>lib/Cake/Test/Case/Utility/CakeNumberTest.php
<ide> public function testReadableSizeLocalized() {
<ide> $restore = setlocale(LC_ALL, 0);
<ide> setlocale(LC_ALL, 'de_DE');
<ide> $result = $this->Number->toReadableSize(1321205);
<del> $this->assertEquals('1,26 MB', $result);
<add> $this->assertRegExp('... | 1 |
PHP | PHP | change auth to use short array syntax | 9f7af57c281cc767dbf3407e56cbe917c9c3498a | <ide><path>src/Illuminate/Auth/DatabaseUserProvider.php
<ide> public function updateRememberToken(UserContract $user, $token)
<ide> {
<ide> $this->conn->table($this->table)
<ide> ->where('id', $user->getAuthIdentifier())
<del> ->update(array('remember_token' => ... | 5 |
Python | Python | add network plugin | 3366b421017805d767b306801c5ecb37026c1582 | <ide><path>glances/core/glances_core.py
<ide> print('PsUtil 0.5.1 or higher is needed. Glances cannot start.')
<ide> sys.exit(1)
<ide>
<del>try:
<del> # psutil.virtual_memory() only available from psutil >= 0.6
<del> psutil.virtual_memory()
<del>except Exception:
<del> psutil_mem_vm = False
<del>else:... | 7 |
Javascript | Javascript | add support for light probes | ba2ed44da63e1629a8b70cac22ff90c1a75655a8 | <ide><path>src/Three.js
<ide> export { DirectionalLight } from './lights/DirectionalLight.js';
<ide> export { AmbientLight } from './lights/AmbientLight.js';
<ide> export { LightShadow } from './lights/LightShadow.js';
<ide> export { Light } from './lights/Light.js';
<add>export { LightProbe } from './lights/LightProbe... | 6 |
Javascript | Javascript | adjust jpeg quality when generating placeholder | ab450aaa1e0a741cd1dd8cef0ff14dba3ce64027 | <ide><path>packages/next/build/webpack/loaders/next-image-loader.js
<ide> import loaderUtils from 'next/dist/compiled/loader-utils'
<ide> import sizeOf from 'image-size'
<ide> import { processBuffer } from '../../../next-server/server/lib/squoosh/main'
<ide>
<del>const PLACEHOLDER_SIZE = 6
<add>const PLACEHOLDER_SIZE ... | 2 |
Ruby | Ruby | apply suggestions from code review | 889b30b32e6b0d8d6bfccbd28a557c66121fa7a6 | <ide><path>Library/Homebrew/tap.rb
<ide> def install(quiet: false, clone_target: nil, force_auto_update: nil, custom_remo
<ide> remote = Homebrew::EnvConfig.core_git_remote
<ide> requested_remote = clone_target || default_remote
<ide>
<del> # The remote will changed again on `brew update` since remotes for ... | 1 |
Python | Python | remove the `np.typing._arrayorscalar` type-alias | a90cbc7476902811f94044cbfedaeb6bbcd17413 | <ide><path>numpy/typing/__init__.py
<ide> class _8Bit(_16Bit): ... # type: ignore[misc]
<ide> _RecursiveSequence,
<ide> _SupportsArray,
<ide> _ArrayND,
<del> _ArrayOrScalar,
<ide> _ArrayLikeInt,
<ide> _ArrayLikeBool_co,
<ide> _ArrayLikeUInt_co,
<ide><path>numpy/typing/_array_like.py
<ide> de... | 2 |
Text | Text | add example for unset! directive | 9e20cefd4bd91af83787457f3bd849713c0e8918 | <ide><path>docs/advanced/keymaps.md
<ide> the current keystroke sequence and continue searching from its parent. If you
<ide> want to remove a binding from a keymap you don't control, such as keymaps in
<ide> Atom core or in packages, use the `unset!` directive.
<ide>
<add>```coffee
<add># remove the 'a' keybinding in... | 1 |
PHP | PHP | fix missing newline | ac195be7dfb56247cf14cdb3b6d6214ed0aae402 | <ide><path>src/Error/ExceptionRenderer.php
<ide> protected function _customMethod($method, $exception)
<ide>
<ide> return $result;
<ide> }
<add>
<ide> /**
<ide> * Get method name
<ide> * | 1 |
Ruby | Ruby | change table to prevent copying indexes on sqlite2 | 2e6d1bf43e162026307141806e04b4d62e40a2f8 | <ide><path>activerecord/test/cases/copy_table_test_sqlite.rb
<ide> class << @connection
<ide> end
<ide> end
<ide>
<del> def test_copy_table(from = 'companies', to = 'companies2', options = {})
<add> def test_copy_table(from = 'customers', to = 'customers2', options = {})
<ide> assert_nothing_raised {copy_t... | 1 |
Python | Python | remove unneeded steps_per_epoch | bc285462ad8ec9b8bc00bd6e09f9bcd9ae3d84a2 | <ide><path>examples/cifar10_cnn.py
<ide> from keras.models import Sequential
<ide> from keras.layers import Dense, Dropout, Activation, Flatten
<ide> from keras.layers import Conv2D, MaxPooling2D
<del>import numpy as np
<ide> import os
<ide>
<ide> batch_size = 32
<ide> # Fit the model on the batches generated by d... | 2 |
Text | Text | expand the responsible disclosure | 9b15d47566dbb93314c7ac19446f74f906be6f80 | <ide><path>docs/_sidebar.md
<ide> - **Getting Started**
<ide> - [Introduction](index.md 'Contribute to the freeCodeCamp.org Community')
<ide> - [Frequently Asked Questions](FAQ.md)
<add> - [Reporting a Vulnerability](security.md)
<ide> - **Translation Contribution**
<ide> - [Work on translating resources](how-to... | 3 |
Text | Text | add missing closing bracket | d88f484e895e62b7583c7ff8d7959ba00bec968d | <ide><path>docs/advanced-features/security-headers.md
<ide> async headers() {
<ide> source: '/(.*)',
<ide> headers: securityHeaders
<ide> }
<add> ]
<ide> }
<ide> ```
<ide> | 1 |
PHP | PHP | allow plain boolean into when and skip | 1d1a96e405fec58fd287940f005bd8e40d4e546b | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> public function withoutOverlapping()
<ide> /**
<ide> * Register a callback to further filter the schedule.
<ide> *
<del> * @param \Closure $callback
<add> * @param \Closure|boolean $callback
<ide> * @return $this
<ide> */
<... | 2 |
Javascript | Javascript | remove unnecessary warning for invalid node | df0532b0c38fc3579a9993ea58abd5ed33cd16a6 | <ide><path>src/renderers/shared/shared/__tests__/ReactStatelessComponent-test.js
<ide> describe('ReactStatelessComponent', () => {
<ide> );
<ide> });
<ide>
<del> it('should warn when stateless component returns array', () => {
<del> spyOn(console, 'error');
<add> it('should throw when stateless component re... | 2 |
Ruby | Ruby | suppress warnings from git wrapper script | cf5ecfc06d0e280eff20667437770d3a21fb6dd5 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def find_relative_paths *relative_paths
<ide> def inject_file_list(list, str)
<ide> list.inject(str) { |s, f| s << " #{f}\n" }
<ide> end
<add>
<add> # Git will always be on PATH because of the wrapper script in
<add> # Library/Contributions/cmd, so we check i... | 1 |
PHP | PHP | fix method name | 40277d71cc062697ab4697b2b296cf87186a84d1 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function whereHas($relation, Closure $callback, $operator = '>=', $count
<ide> */
<ide> public function whereDoesntHave($relation, Closure $callback)
<ide> {
<del> return $this->hasNot($relation, 'and', $callback);
<add> return $this->doesntHave... | 1 |
Text | Text | remove unnecessary comments | fe95d5bca2d2b5f6e97ddd5ba2ac383bbb373ce5 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-objects.md
<ide> assert(/=\s*myStorage\.car\.inside\[\s*("|')glove box\1\s*\]/g.test(code));
<ide> ## --seed-contents--
<ide>
<ide> ```js
<del>// Setup
<ide> var myStorage = {
<ide> "car": {
<ide> ... | 1 |
Javascript | Javascript | save 43 bytes | 5e64281a11301bb95f657e828c5010a9b24d9bff | <ide><path>src/manipulation.js
<ide> jQuery.fn.extend({
<ide> // keepData is for internal use only--do not document
<ide> remove: function( selector, keepData ) {
<ide> var elem,
<del> l = this.length,
<del> i = 0;
<add> i = 0,
<add> l = this.length;
<ide>
<ide> for ( ; i < l; i++ ) {
<ide> elem = thi... | 1 |
Javascript | Javascript | add test for util.inspect | 3b50bded08c2cbcc652b79346121b4e39de231fc | <ide><path>test/parallel/test-util-inspect.js
<ide> util.inspect({ hasOwnProperty: null });
<ide> util.inspect(subject, { customInspectOptions: true, seen: null });
<ide> }
<ide>
<add>{
<add> const subject = { [util.inspect.custom]: common.mustCall((depth) => {
<add> assert.strictEqual(depth, null);
<add> }) };... | 1 |
Javascript | Javascript | add "mustcall" to test-fs-readfile-unlink | 413256d5e8fe01955b8666fea7f1fb29d072fa55 | <ide><path>test/parallel/test-fs-readfile-unlink.js
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide>
<ide> // Test that unlink succeeds immediately after readFile completes.
<ide>
<ide> tmpdir.refresh();
<ide>
<ide> ... | 1 |
Javascript | Javascript | pass meta instead of looking up twice | 85ef51674431f3a04dfe806522a9c711276cf645 | <ide><path>packages/ember-metal/lib/watching.js
<ide> function isKeyName(path) {
<ide> //
<ide>
<ide> var DEP_SKIP = { __emberproto__: true }; // skip some keys and toString
<del>function iterDeps(method, obj, depKey, seen) {
<add>function iterDeps(method, obj, depKey, seen, meta) {
<ide>
<ide> var guid = guidFor(o... | 1 |
Text | Text | fix typo if -> it | a06d6ec927b2aac9120d9a616b4933c3f5daa019 | <ide><path>threejs/lessons/threejs-cameras.md
<ide> and a frustum are all names of different kinds of solids.
<ide> <div><div data-diagram="shapeFrustum"></div><div>frustum</div></div>
<ide> </div>
<ide>
<del>I only point that out because I didn't know if for years. Some book or page would mention
<add>I only point ... | 1 |
Javascript | Javascript | fix parse errors on older android webviews | f0f6da304c11d0bafcdb962f8ba69cfb719bc243 | <ide><path>src/ngResource/resource.js
<ide> angular.module('ngResource', ['ng']).
<ide> return $q.reject(response);
<ide> });
<ide>
<del> promise.finally(function() {
<add> promise['finally'](function() {
<ide> value.$resolved = true;
<ide> if... | 1 |
Ruby | Ruby | remove useless methods | 44919e1cf08bbc181a5f416be9ba8b0933c0e6a6 | <ide><path>activerecord/lib/active_record/counter_cache.rb
<ide> def decrement_counter(counter_name, id)
<ide> end
<ide> end
<ide>
<del> protected
<del>
<del> def actually_destroyed?
<del> @_actually_destroyed
<del> end
<del>
<del> def clear_destroy_state
<del> @_actually_dest... | 1 |
Go | Go | enforce model for the json image format | 3e8d1dfb69e74414b3466fee3195432f17445bbc | <ide><path>graph/image.go
<ide> import (
<ide> )
<ide>
<ide> type Image struct {
<del> Id string
<del> Parent string
<del> Comment string
<del> Created time.Time
<add> Id string `json:"id"`
<add> Parent string `json:"parent,omitempty"`
<add> Comment string `json:"comment,omitempty"`
<add> Created ... | 1 |
Text | Text | add gengjiawen to collaborators | b0f75818f39ed4e6bd80eb7c4010c1daf5823ef7 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **George Adams** <george.adams@uk.ibm.com> (he/him)
<ide> * [geek](https://github.com/geek) -
<ide> **Wyatt Preul** <wpreul@gmail.com>
<add>* [gengjiawen](https://github.com/gengjiawen) -
<add>**Jiawen Geng** &... | 1 |
Python | Python | remove unused import | 6e4374e08e9cb2deb0266d3c4af61c3a6ee57deb | <ide><path>numpy/core/memmap.py
<ide>
<ide> import mmap
<ide> from numeric import uint8, ndarray, dtype
<del>from numerictypes import nbytes
<ide>
<ide> dtypedescr = dtype
<ide> valid_filemodes = ["r", "c", "r+", "w+"] | 1 |
Javascript | Javascript | fix a small bug in getblackcode | 4b8274348ba86c85cc3ca1879619e3bce6a4a183 | <ide><path>pdf.js
<ide> var CCITTFaxStream = (function() {
<ide> };
<ide>
<ide> constructor.prototype.getBlackCode = function() {
<del> var code, p, n;
<add> var code, p;
<ide> if (this.eoblock) {
<ide> code = this.lookBits(13);
<ide> if (code == EOF)
<ide> var CCITTFaxStream = (function() {
... | 1 |
PHP | PHP | fix bindings on unions by added a new binding type | 89c5f0b6b9de31895709153af2ed98ab3f38c923 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> class Builder
<ide> 'where' => [],
<ide> 'having' => [],
<ide> 'order' => [],
<add> 'union' => [],
<ide> ];
<ide>
<ide> /**
<ide> public function union($query, $all = false)
<ide>
<ide> $this->unions[] = compa... | 2 |
Text | Text | add shuffle parameter to corpus api docs | 72fece712f2706c3338365fa6eed179b6b7f8848 | <ide><path>website/docs/api/corpus.md
<ide> train/test skew.
<ide> | `max_length` | Maximum document length. Longer documents will be split into sentences, if sentence boundaries are available. Defaults to `0` for no limit. ~~int~~ |
<ide> | `limit` | Limit corpus to a subset of examples, e.g. for debugging.... | 1 |
Ruby | Ruby | introduce a timer class for reaping connections | cde7692d4e3e0e67e480cc6172f6e2bacaceeb5e | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> module ConnectionAdapters
<ide> # * +wait_timeout+: number of seconds to block and wait for a connection
<ide> # before giving up and raising a timeout error (default 5 seconds).
<ide> class ConnectionPool
<add... | 2 |
Ruby | Ruby | rewrite metal tests | 39215860912e4a29def2973b684d0830fc8b9904 | <ide><path>railties/test/application/metal_test.rb
<add>require 'isolation/abstract_unit'
<add>
<add>module ApplicationTests
<add> class MetalTest < Test::Unit::TestCase
<add> include ActiveSupport::Testing::Isolation
<add>
<add> def setup
<add> build_app
<add> boot_rails
<add>
<add> require 'rack... | 8 |
Ruby | Ruby | add opencv (even although old) | 435e29385773030324c181b3b16d9cf438ef0634 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> TAP_MIGRATIONS = {
<ide> 'octave' => 'homebrew/science',
<add> 'opencv' => 'homebrew/science',
<ide> 'grads' => 'homebrew/binary',
<ide> 'denyhosts' => 'homebrew/boneyard',
<ide> 'ipopt' => 'homebrew/science', | 1 |
Python | Python | add tests for deployment | f8232df601eff4634a2256f47386f87aa99d0002 | <ide><path>test/compute/test_deployment.py
<add># -*- coding: utf-8 -*-
<add># Licensed to the Apache Software Foundation (ASF) under one or more§
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># The ASF licens... | 1 |
Text | Text | add changelog entry for | 035e2976d0d85106fe6f613373fab18497498671 | <ide><path>actionview/CHANGELOG.md
<add>* Always escape the result of `link_to_unless` method.
<add>
<add> Before:
<add>
<add> link_to_unless(true, '<b>Showing</b>', 'github.com')
<add> # => "<b>Showing</b>"
<add>
<add> After:
<add>
<add> link_to_unless(true, '<b>Showing</b>', 'github.com')... | 1 |
Javascript | Javascript | check validity of segments | f871d25eb48dca224bb3796aa9cb5d714292662f | <ide><path>Libraries/Utilities/asyncRequire.js
<ide>
<ide> 'use strict';
<ide>
<add>const dynamicRequire: number => mixed = (require: $FlowFixMe);
<add>
<ide> /**
<ide> * The bundler must register the dependency properly when generating a call to
<ide> * `asyncRequire`, that allows us to call `require` dynamically ... | 1 |
Javascript | Javascript | use graphql filter for map | fcef62d5de1049b3303a85d74d31280022bd32ca | <ide><path>client/gatsby-node.js
<ide> exports.createPages = function createPages({ graphql, actions, reporter }) {
<ide> {
<ide> allChallengeNode(
<ide> sort: { fields: [superOrder, order, challengeOrder] }
<add> filter: { isHidden: { eq: false } }
<ide> ) {
<ide> ... | 1 |
Javascript | Javascript | add benchmark for whatwg url properties | b7fadf0fa48dee89284e0510ad4de6343636495c | <ide><path>benchmark/url/whatwg-url-properties.js
<add>'use strict';
<add>
<add>var common = require('../common.js');
<add>var URL = require('url').URL;
<add>
<add>var bench = common.createBenchmark(main, {
<add> url: [
<add> 'http://example.com/',
<add> 'https://encrypted.google.com/search?q=url&q=site:npmjs.or... | 1 |
PHP | PHP | add truthy() and falsey() to validation | 620aa6fa361e5154a7d125b0c35afa443f8091fa | <ide><path>src/Validation/Validation.php
<ide> public static function localizedTime($check, $type = 'datetime', $format = null)
<ide> }
<ide>
<ide> /**
<del> * Boolean validation, determines if value passed is a boolean integer or true/false.
<add> * Validates if passed value is boolean-like.
<ide> ... | 2 |
Text | Text | update translation to b95ad29 | 87fb9caca7d223d1c4ef588f23622189052056b4 | <ide><path>docs/docs/08-working-with-the-browser.ko-KR.md
<ide> React는 DOM을 직접 다루지 않기 때문에 굉장히 빠릅니다. React
<ide> 더 효율적이고 쉬우므로 대개의 경우 React의 "가짜 브라우저"를 이용해 작업을 하게 될 것입니다. 하지만 간혹 jQuery 플러그인 같은 서드파티 라이브러리를 다루다 보면 기저(underlying)의 API에 접근할 필요가 있을지도 모릅니다. React는 기저의 DOM API를 직접 다루는 회피방법을 제공합니다.
<ide>
<ide>
<del>## Refs와 ge... | 7 |
Javascript | Javascript | fix broken tests for element dsl | 9260f4867a6d1aaa51585a3efac9d315b74eae53 | <ide><path>test/scenario/DSLSpec.js
<ide> describe("DSL", function() {
<ide> expect(future.fulfilled).toBeTruthy();
<ide> }
<ide> it('should find elements on the page and provide jquery api', function() {
<del> var future = element('.reports-detail').find();
<add> var future = element('.reports-... | 1 |
Javascript | Javascript | fix corruption in writefile and writefilesync | c9207f7fc24d6ab879561632ba3c08fee07a9cc4 | <ide><path>lib/fs.js
<ide> function writeAll(fd, buffer, offset, length, position, callback) {
<ide> } else {
<ide> offset += written;
<ide> length -= written;
<del> position += written;
<add> if (position !== null) {
<add> position += written;
<add> }
<ide> w... | 1 |
Javascript | Javascript | change param to parameter | bbb81bb5bc2d0fdc27eec536c7ea04049355d90c | <ide><path>packages/ember-htmlbars/lib/helpers/each.js
<ide> import decodeEachKey from 'ember-htmlbars/utils/decode-each-key';
<ide> of the base Handlebars `{{#each}}` helper.
<ide>
<ide> The default behavior of `{{#each}}` is to yield its inner block once for every
<del> item in an array passing the item as the ... | 1 |
Javascript | Javascript | refactor the code in test-http-keep-alive | 1e98ea3f5e69a488edd9be76242ebb6b04033910 | <ide><path>test/parallel/test-http-keep-alive.js
<ide> 'use strict';
<del>require('../common');
<del>var assert = require('assert');
<del>var http = require('http');
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const http = require('http');
<ide>
<del>var body = 'hello world\n'... | 1 |
Javascript | Javascript | add more consistency | 7d969a05de6a45543bc31a3b982828865bc57cdb | <ide><path>local-cli/__mocks__/fs.js
<ide> fs.readdir.mockImplementation((filepath, callback) => {
<ide> });
<ide>
<ide> fs.readFile.mockImplementation(function(filepath, encoding, callback) {
<add> filepath = path.normalize(filepath);
<ide> callback = asyncCallback(callback);
<ide> if (arguments.length === 2) {
... | 2 |
Python | Python | add missing tokenizer exceptions | 48177c4f922b03938c0fa8a7e7becb50e706eee9 | <ide><path>spacy/lang/da/__init__.py
<ide> class Defaults(Language.Defaults):
<ide> lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
<ide> lex_attr_getters[LANG] = lambda text: 'da'
<ide>
<del> tokenizer_exceptions = update_exc(BASE_EXCEPTIONS)
<add> tokenizer_exceptions = upda... | 1 |
Ruby | Ruby | add install method | e7497e33c0b02c0290721be7075b0c0473459d65 | <ide><path>Library/Homebrew/formula.rb
<ide> def test_fixtures(file)
<ide>
<ide> protected
<ide>
<add> def install
<add> end
<add>
<ide> # Pretty titles the command and buffers stdout/stderr
<ide> # Throws if there's an error
<ide> def system cmd, *args | 1 |
PHP | PHP | fix use of deprecated methods | a3bec4690a56ebcc83e6430f4e37d94f6093baa4 | <ide><path>src/ORM/Query.php
<ide> protected function _transformQuery()
<ide> }
<ide>
<ide> if (empty($this->_parts['from'])) {
<del> $this->from([$this->_repository->getAlias() => $this->_repository->table()]);
<add> $this->from([$this->_repository->getAlias() => $this->_reposito... | 2 |
Javascript | Javascript | fix typo in comment (satsify → satisfy) | 9d17b562ba427adb1bced98f4231406ec573c422 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> function commitRootImpl(root, renderPriorityLevel) {
<ide>
<ide> // Check if there are any effects in the whole tree.
<ide> // TODO: This is left over from the effect list implementation, where we had
<del> // to check for the existence of `... | 2 |
Ruby | Ruby | add test to check for dependent casks | fcb1aa8aef1fa09714166a60b887226d7a189d1f | <ide><path>Library/Homebrew/test/keg_spec.rb
<ide> def unreliable_dependencies(deps)
<ide> dependencies [{ "full_name" => "foo", "version" => "1.1" }] # different version
<ide> expect(described_class.find_some_installed_dependents([keg])).to eq([[keg], ["bar"]])
<ide> end
<add>
<add> def stub_cask_na... | 1 |
Text | Text | add comma in readme to increase clarity | fc6507dd4ee3c77983cd39f3ac8121ec8f5f9ac4 | <ide><path>README.md
<ide> the title of man pages).
<ide>
<ide> ## Download
<ide>
<del>Binaries, installers and source tarballs are available at
<add>Binaries, installers, and source tarballs are available at
<ide> <https://iojs.org>.
<ide>
<ide> **Releases** are available at <https://iojs.org/dist/>, listed under | 1 |
PHP | PHP | add link to cookie rfc for reference | 1c6610cc7a23250882cdb71b4d07220eb87f9ff7 | <ide><path>src/Http/Cookie/Cookie.php
<ide> public function getName()
<ide> * @param string $name Name of the cookie
<ide> * @return void
<ide> * @throws \InvalidArgumentException
<add> * @link https://tools.ietf.org/html/rfc2616#section-2.2 Rules for naming cookies.
<ide> */
<ide> protected... | 1 |
PHP | PHP | add test assertions and refactor shared code | 2e12b89f64b9e35cd1b3f2f4198aa4a095146642 | <ide><path>src/Error/BaseErrorHandler.php
<ide> protected function _logError($level, $data)
<ide> 'start' => 1,
<ide> 'format' => 'log'
<ide> ]);
<del>
<add>
<ide> $request = Router::getRequest();
<ide> if ($request) {
<del> ... | 2 |
Java | Java | fix javadoc checkstyle issues | e0480f75ac4e0367a053eabd3a07c3fa34eccf61 | <ide><path>spring-aop/src/main/java/org/springframework/aop/MethodBeforeAdvice.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use ... | 300 |
Ruby | Ruby | use bind values for join columns | 4bc2ae0da1dd812aee759f6d13ad428354cd0e13 | <ide><path>activerecord/lib/active_record/associations/association_scope.rb
<ide> def scope
<ide>
<ide> private
<ide>
<add> def column_for(table_name, column_name)
<add> columns = alias_tracker.connection.schema_cache.columns_hash[table_name]
<add> columns[column_name]
<add> end
<add>
<a... | 6 |
Javascript | Javascript | relax challenge validation for multiple seeds | b25089d7c8ff0ec5d55881116165badee3405576 | <ide><path>curriculum/test/test-challenges.js
<ide> function populateTestsForLang({ lang, challenges, meta }) {
<ide> return;
<ide> }
<ide>
<del> if (files.length > 1) {
<del> it('Check tests.', () => {
<del> throw new Error('Seed file should be only the one.');
<... | 1 |
Javascript | Javascript | add scrolling attribute for <iframe> | 8a69b5bc984184c9b7f3b25a4936a6df4f339a6f | <ide><path>src/browser/ui/dom/DefaultDOMPropertyConfig.js
<ide> var DefaultDOMPropertyConfig = {
<ide> sandbox: null,
<ide> scope: null,
<ide> scrollLeft: MUST_USE_PROPERTY,
<add> scrolling: null,
<ide> scrollTop: MUST_USE_PROPERTY,
<ide> seamless: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
<ide> ... | 1 |
Text | Text | replace undocumented encoding aliases | 93d113510d0353d66d72bfd67e338e9ad6031523 | <ide><path>doc/api/errors.md
<ide> Example
<ide> const Socket = require('net').Socket;
<ide> const instance = new Socket();
<ide>
<del>instance.setEncoding('utf-8');
<add>instance.setEncoding('utf8');
<ide> ```
<ide>
<ide> <a id="ERR_TLS_CERT_ALTNAME_INVALID"></a>
<ide><path>doc/api/fs.md
<ide> If the file previously... | 2 |
Text | Text | remove unnecessary stability specifiers | 5ab24edb025f8433d6f971d1cf8f9c51023a4f63 | <ide><path>doc/api/dns.md
<ide> earlier ones time out or result in some other error.
<ide>
<ide> ## DNS Promises API
<ide>
<del>> Stability: 2 - Stable
<del>
<ide> The `dns.promises` API provides an alternative set of asynchronous DNS methods
<ide> that return `Promise` objects rather than using callbacks. The API is... | 3 |
Javascript | Javascript | move noop functions to `angular.noop` | 4883e957971f1c551a0f560427bba0224f291449 | <ide><path>src/ng/animate.js
<ide> function prepareAnimateOptions(options) {
<ide> }
<ide>
<ide> var $$CoreAnimateJsProvider = function() {
<del> this.$get = function() {};
<add> this.$get = noop;
<ide> };
<ide>
<ide> // this is prefixed with Core since it conflicts with
<ide><path>src/ng/compile.js
<ide> function ... | 3 |
Javascript | Javascript | add test description to fs.readfile tests | dd2200ecf831cae5f57b69e3ee8a934efbe20af8 | <ide><path>test/parallel/test-fs-readfile-empty.js
<ide>
<ide> 'use strict';
<ide> require('../common');
<add>
<add>// Trivial test of fs.readFile on an empty file.
<add>
<ide> const assert = require('assert');
<ide> const fs = require('fs');
<ide> const fixtures = require('../common/fixtures');
<ide><path>test/parall... | 5 |
Python | Python | add failing test for | 94e5d05caa285180356fa36e946433b5c93745b1 | <ide><path>tests/test_serializer.py
<ide> def test_default_not_used_when_in_object(self):
<ide> serializer = self.Serializer(instance)
<ide> assert serializer.data == {'has_default': 'def', 'has_default_callable': 'ghi', 'no_default': 'abc'}
<ide>
<add> def test_default_for_source_source(self):
<add... | 1 |
Java | Java | fix typo in reflectionutilstests | c84dd55863c4d872fef4f4334fd94051d266490a | <ide><path>spring-core/src/test/java/org/springframework/util/ReflectionUtilsTests.java
<ide> void m95() { } void m96() { } void m97() { } void m98() { } void m99() { }
<ide> }
<ide>
<ide> @Test
<del> void getDecalredMethodsReturnsCopy() {
<add> void getDeclaredMethodsReturnsCopy() {
<ide> Method[] m1 = Reflection... | 1 |
Ruby | Ruby | use existing tmpdir in evented_file_update_test | f1084f2d0eaf8405284b2da19e8ac2c2eb7063ad | <ide><path>activesupport/test/evented_file_update_checker_test.rb
<ide> def touch(files)
<ide> end
<ide>
<ide> test "updated should become true when nonexistent directory is added later" do
<del> Dir.mktmpdir do |dir|
<del> watched_dir = File.join(dir, "app")
<del> unwatched_dir = File.join(dir, "node... | 1 |
Javascript | Javascript | fix sparse array inspection | 6bba368ccf43cd7bd4c003007237b55c0a16511d | <ide><path>lib/util.js
<ide> function formatNamespaceObject(ctx, value, recurseTimes, keys) {
<ide> function formatSpecialArray(ctx, value, recurseTimes, keys, maxLength, valLen) {
<ide> const output = [];
<ide> const keyLen = keys.length;
<del> let visibleLength = 0;
<ide> let i = 0;
<del> if (keyLen !== 0 && ... | 2 |
Text | Text | add missing stuff | 50110866c20605420770ae1915f6143802a854bb | <ide><path>README.md
<ide> If you’re coming from Flux, there is a single important difference you need to
<ide>
<ide> This architecture might seem like an overkill for a counter app, but the beauty of this pattern is how well it scales to large and complex apps. It also enables very powerful developer tools, because i... | 1 |
Python | Python | initialize the default rank set on trainerstate | 1cd2e21d1b540cb5203a07b31ee3e954425ee7a9 | <ide><path>src/transformers/trainer.py
<ide> def __init__(
<ide> else:
<ide> self.label_smoother = None
<ide>
<del> self.state = TrainerState()
<add> self.state = TrainerState(
<add> is_local_process_zero=self.is_local_process_zero(),
<add> is_world_process_zero=... | 1 |
Python | Python | add support for creating security group | 1e5c631bd60eaeaa4314286669c25ba409d95c70 | <ide><path>example_aliyun_ecs.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<add>import sys
<add>
<ide> from libcloud.compute.types import Provider
<ide> from libcloud.compute.providers import get_driver
<ide> from libcloud.compute.base impo... | 2 |
Ruby | Ruby | use global cache again | 50aa91940daa7c8f070d48155d3f07692f47f41a | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> # --email: Generate an email subject file.
<ide> # --no-bottle: Run brew install without --build-bottle
<ide> # --HEAD: Run brew install with --HEAD
<del># --local: Output logs and cache downloads under ./{logs,cache}
<add># --local: ... | 1 |
Python | Python | apply unpack_input decorator to vit model | 841620684b75ce63918e8e9dfecdd3b46394bbc1 | <ide><path>src/transformers/models/vit/modeling_tf_vit.py
<ide> TFPreTrainedModel,
<ide> TFSequenceClassificationLoss,
<ide> get_initializer,
<del> input_processing,
<ide> keras_serializable,
<add> unpack_inputs,
<ide> )
<ide> from ...tf_utils import shape_list
<ide> from ...utils import logging
<... | 1 |
Java | Java | implement fabricviewstatemanager for reactedittext | 065fbe3be53e156fe4f2dbf47791be53b340096f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java
<ide> import com.facebook.infer.annotation.Assertions;
<ide> import com.facebook.react.bridge.JavaOnlyMap;
<ide> import com.facebook.react.bridge.ReactContext;
<del>import com.facebook.react.uimanager.StateWrapper;
<add>import c... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.