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 | fix error with more case-sensitive databases | 3c48552f81f486b8fd7bd9d3dabf9788f9b26018 | <ide><path>lib/Cake/Model/Behavior/TranslateBehavior.php
<ide> public function beforeFind($model, $query) {
<ide> );
<ide> $conditionFields = $this->_checkConditions($model, $query);
<ide> foreach ($conditionFields as $field) {
<del> $query = $this->_addJoin($model, $query, $field, $locale);
<add> $query... | 1 |
Python | Python | prepare 1.0.6 release | 892d9fae846b2e15e73de075e7290a8bfcfeb145 | <ide><path>keras/__init__.py
<ide> from . import optimizers
<ide> from . import regularizers
<ide>
<del>__version__ = '1.0.5'
<add>__version__ = '1.0.6'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='1.0.5',
<add> version='1.0.6',
<ide> description='Deep Learning for Python'... | 2 |
Text | Text | add missing directory slashes [ci skip] | 67e6deea1ccb0ff6264ff0796264ec90c190e35a | <ide><path>guides/source/getting_started.md
<ide> of the files and folders that Rails created by default:
<ide>
<ide> | File/Folder | Purpose |
<ide> | ----------- | ------- |
<del>|app|Contains the controllers, models, views, helpers, mailers and assets for your application. You'll focus on this folder for the remain... | 1 |
Go | Go | implement docker kill with standalone client lib | c57e62d00e209288e4f2734d32a3184b4abf4248 | <ide><path>api/client/kill.go
<ide> func (cli *DockerCli) CmdKill(args ...string) error {
<ide>
<ide> var errNames []string
<ide> for _, name := range cmd.Args() {
<del> if _, _, err := readBody(cli.call("POST", fmt.Sprintf("/containers/%s/kill?signal=%s", name, *signal), nil, nil)); err != nil {
<add> if err := c... | 3 |
Text | Text | add v4.6.0-beta.1 to changelog | 5a77a4312accd672f29b48b73db2b78745335ae7 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.6.0-beta.1 (June 13, 2022)
<add>
<add>No new external changes.
<add>
<ide> ### v4.5.0 (June 13, 2022)
<ide>
<ide> - [#20052](https://github.com/emberjs/ember.js/pull/20052) / [#20055](https://github.com/emberjs/ember.js/pull/20055) [FEATURE] Add the de... | 1 |
Ruby | Ruby | replace drop sql statement to drop_table method | cb8b4167641484a9f7fe5757c872216e945bb1fb | <ide><path>activerecord/test/cases/associations/required_test.rb
<ide> class Child < ActiveRecord::Base
<ide> end
<ide>
<ide> teardown do
<del> @connection.execute("DROP TABLE parents") if @connection.table_exists? 'parents'
<del> @connection.execute("DROP TABLE children") if @connection.table_exists? 'child... | 3 |
Javascript | Javascript | add angular-route.js to karma docs suite | 6b12432729848d3b34689f62a6bcd1766fd29720 | <ide><path>karma-docs.conf.js
<ide> files = [
<ide> 'build/angular-resource.js',
<ide> 'build/angular-mobile.js',
<ide> 'build/angular-sanitize.js',
<add> 'build/angular-route.js',
<ide>
<ide> 'build/docs/components/lib/lunr.js/lunr.js',
<ide> 'build/docs/components/lib/google-code-prettify/src/prettify.js'... | 1 |
Text | Text | fix typo in building.md | ed5e5395c730a27b4e86ff6a4efbd36044cf93f5 | <ide><path>BUILDING.md
<ide> to execute JavaScript tests independently of the C++ test suite:
<ide> $ make coverage-run-js
<ide> ```
<ide>
<del>If you are updating tests and want to collect coverrage for a single test file
<add>If you are updating tests and want to collect coverage for a single test file
<ide> (e.g. `... | 1 |
PHP | PHP | fix cs errors | 2a73fcc271a9564315bae793a29df865d785bb37 | <ide><path>src/Mailer/Mailer.php
<ide> abstract class Mailer implements EventListenerInterface
<ide> *
<ide> * @var string
<ide> */
<del> static public $name;
<add> public static $name;
<ide>
<ide> /**
<ide> * Email instance.
<ide><path>tests/TestCase/Cache/Engine/ApcuEngineTest.php
<ide>... | 3 |
Javascript | Javascript | name anonymous function in tls.js | 07c514ce29ffb1875b62ad5cbf056b33b7fdc9e5 | <ide><path>lib/tls.js
<ide> function convertProtocols(protocols) {
<ide> return buff;
<ide> }
<ide>
<del>exports.convertALPNProtocols = function(protocols, out) {
<add>exports.convertALPNProtocols = function convertALPNProtocols(protocols, out) {
<ide> // If protocols is Array - translate it into buffer
<ide> if... | 1 |
PHP | PHP | unify other log types as well | 8141dd2d5d2fe3792c2ca3df258d1a7a0da2465e | <ide><path>lib/Cake/Console/Shell.php
<ide> protected function _useLogger($enable = true) {
<ide> return;
<ide> }
<ide> CakeLog::config('stdout', array(
<del> 'engine' => 'ConsoleLog',
<add> 'engine' => 'Console',
<ide> 'types' => array('notice', 'info'),
<ide> 'stream' => $this->stdout,
<ide> ));
<i... | 4 |
PHP | PHP | create "auth" helper | 46203676c748ac3cdb4849e75e711ca9cb1ca118 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function asset($path, $secure = null)
<ide> }
<ide> }
<ide>
<add>if ( ! function_exists('auth'))
<add>{
<add> /**
<add> * Get the available auth instance.
<add> *
<add> * @return \Illuminate\Contracts\Auth\Guard
<add> */
<add> function auth()
<add> {
<add> r... | 1 |
Python | Python | fix initialization of index_array | 595d67ad7d919b44f3c4cabcf68c756c35b14c9c | <ide><path>keras/preprocessing/image.py
<ide> def reset(self):
<ide> self.batch_index = 0
<ide>
<ide> def _flow_index(self, N, batch_size=32, shuffle=False, seed=None):
<add> # ensure self.batch_index is 0
<add> self.reset()
<add>
<ide> while 1:
<del> index_array = np.arang... | 1 |
Java | Java | add support for ping and pong websocket messages | 1f897329f9b8617a84fab10fee5f3ad9269160b3 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/BinaryMessage.java
<ide> public final class BinaryMessage extends WebSocketMessage<ByteBuffer> {
<ide>
<ide> /**
<ide> * Create a new {@link BinaryMessage} instance.
<del> * @param payload a non-null payload
<add> * @param payload the non-nu... | 10 |
Go | Go | improve error output for `docker stats ...` | 32de162fc9a18f7f2d702ce488e73b5eca0199ce | <ide><path>cli/command/container/stats.go
<ide> func runStats(dockerCli *command.DockerCli, opts *statsOptions) error {
<ide> var errs []string
<ide> cStats.mu.Lock()
<ide> for _, c := range cStats.cs {
<del> cErr := c.GetError()
<del> if cErr != nil {
<del> errs = append(errs, fmt.Sprintf("%s: %v", c.Name... | 1 |
Ruby | Ruby | add ability to reference casks from brew reinstall | d1004c81430d6b893ff487a32b9c4fe70131a943 | <ide><path>Library/Homebrew/cmd/reinstall.rb
<ide> require "reinstall"
<ide> require "cli/parser"
<ide> require "cleanup"
<add>require "cask/all"
<ide>
<ide> module Homebrew
<ide> module_function
<ide> def reinstall
<ide>
<ide> Install.perform_preinstall_checks
<ide>
<del> args.resolved_formulae.each do |f|... | 1 |
Text | Text | update deployment documentation. | 26ddf32f53f24dd4a56b10ee2b668aebe17cb6b1 | <ide><path>docs/deployment.md
<ide> ---
<del>description: Deploy your Next.js app to production with Vercel and other hosting options.
<add>description: Learn how to deploy your Next.js app to production, either managed or self-hosted.
<ide> ---
<ide>
<ide> # Deployment
<ide>
<del>## Vercel (Recommended)
<add>Congrat... | 1 |
Go | Go | prevent panic on network attach | 651e694508563e6fb3e8f5d7037641cc136b2c44 | <ide><path>daemon/container_operations.go
<ide> func (daemon *Daemon) buildSandboxOptions(container *container.Container) ([]lib
<ide>
<ide> func (daemon *Daemon) updateNetworkSettings(container *container.Container, n libnetwork.Network, endpointConfig *networktypes.EndpointSettings) error {
<ide> if container.Netwo... | 1 |
Python | Python | fix typo in docstring | 7f09d45efb7d0d0e8f43b9c2975caa6be0fda00d | <ide><path>keras/engine/topology.py
<ide> def Input(shape=None, batch_shape=None,
<ide> attributes that allow us to build a Keras model
<ide> just by knowing the inputs and outputs of the model.
<ide>
<del> For instance, if a, b and c and Keras tensors,
<add> For instance, if a, b and c are Keras tensors... | 1 |
Text | Text | fix typos in n-api, tls and worker_threads | 0c6ac2deb3f3e11e9d36740107564286a5cbe6a6 | <ide><path>doc/api/n-api.md
<ide> the native addon will also need to have a C/C++ toolchain installed.
<ide>
<ide> For Linux developers, the necessary C/C++ toolchain packages are readily
<ide> available. [GCC][] is widely used in the Node.js community to build and
<del>test across a variety of plarforms. For many dev... | 3 |
Javascript | Javascript | improve sample app | 03cb5aca3f5b8594287608265d4bde7104f07b87 | <ide><path>template/App.js
<ide> import {
<ide> ReloadInstructions,
<ide> } from 'react-native/Libraries/NewAppScreen';
<ide>
<del>/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
<del> * LTI update could not be added via codemod */
<del>const Section = ({children, title}): Node => {
<add... | 1 |
Javascript | Javascript | pass jslint, 2 missing semicolons | d28922bc03ea03dd7f02bbc4abc8061ea4c7305b | <ide><path>src/attributes.js
<ide> jQuery.extend({
<ide> name = jQuery.attrFix[ name ] || name;
<ide>
<ide> if ( jQuery.support.getSetAttribute ) {
<del> elem.removeAttribute( name )
<add> elem.removeAttribute( name );
<ide> } else {
<ide> // set property to null if getSetAttribute not supported (IE6-7)... | 1 |
Mixed | Java | add support for shadowcolor on android (api >= 28) | cfa42605989eee5a9de42bdb1259fb7f4d9451fb | <ide><path>Libraries/StyleSheet/StyleSheetTypes.js
<ide> type ____TransformStyle_Internal = $ReadOnly<{|
<ide> * Because they are dynamically generated, they may cause performance regressions. Static
<ide> * shadow image asset may be a better way to go for optimal performance.
<ide> *
<del> * These properties are iO... | 8 |
Text | Text | add links to newer faq entries | 23976f491c1dd1d60530eaff17133b6ee05e2b17 | <ide><path>docs/FAQ.md
<ide> ## Table of Contents
<ide>
<ide> - **General**
<add> - [When should I learn Redux?](/docs/faq/General.md#general-when-to-learn)
<ide> - [When should I use Redux?](/docs/faq/General.md#general-when-to-use)
<ide> - [Can Redux only be used with React?](/docs/faq/General.md#general-only-r... | 1 |
Text | Text | remove extra space on threadpool usage | 50329ae22d5bad64ae01902e00fca43b2aff6379 | <ide><path>doc/api/fs.md
<ide> try {
<ide>
<ide> ### Threadpool usage
<ide>
<del>All callback and promise-based file system APIs ( with the exception of
<add>All callback and promise-based file system APIs (with the exception of
<ide> `fs.FSWatcher()`) use libuv's threadpool. This can have surprising and negative
<id... | 1 |
Text | Text | improve buf.fill() documentation | 4545cc17b9b95d20d98e7f4fd851d8a987ca9a9c | <ide><path>doc/api/buffer.md
<ide> changes:
<ide> description: The `encoding` parameter is supported now.
<ide> -->
<ide>
<del>* `value` {string|Buffer|integer} The value to fill `buf` with.
<del>* `offset` {integer} Number of bytes to skip before starting to fill `buf`. **Default:** `0`.
<del>* `end` {integer} Wh... | 1 |
Python | Python | check trigger_rule syntax | 6ed96d6a362aa7d3bec6df19a101279b06cdbfc7 | <ide><path>airflow/models.py
<ide> def __init__(
<ide> logging.warning(
<ide> "start_date for {} isn't datetime.datetime".format(self))
<ide> self.end_date = end_date
<add> # could add "not callable(attr) "
<add> all_triggers = [getattr(TriggerRule, attr) \
<add> ... | 1 |
Ruby | Ruby | allow whitelisting of versioned kibana | 4b2eb86bbf5bb0ae76619e67be1bc99e8b68ee40 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_text
<ide> problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\""
<ide> end
<ide>
<del> if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name != "kibana"
<add> if text =~ /system "npm",... | 1 |
Python | Python | fix documentation for adamweightdecayconfig | d062cab59e376efc18d25d838cfdb385d1a5cd73 | <ide><path>official/modeling/optimization/configs/optimizer_config.py
<ide> class AdamWeightDecayConfig(BaseOptimizerConfig):
<ide> weight_decay_rate: float. Weight decay rate. Default to 0.
<ide> include_in_weight_decay: list[str], or None. List of weight names to include
<ide> in weight decay.
<del> ... | 1 |
PHP | PHP | add test case | e33653a8d7f5910782577ae6bc7518e172938a4c | <ide><path>lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php
<ide> public function testReadEmpty() {
<ide> $_COOKIE['CakeTestCookie'] = array(
<ide> 'JSON' => '{"name":"value"}',
<ide> 'Empty' => '',
<del> 'String' => '{"somewhat:"broken"}'
<add> 'String' => '{"somewhat:"broken"}',
<add> 'Ar... | 1 |
Javascript | Javascript | capture onlyhandlers in jquery.event.istrigger | 3f05afbd8d9bbc75d30b68e720324d1ed984a315 | <ide><path>src/event.js
<ide> jQuery.event = {
<ide> event :
<ide> new jQuery.Event( type, typeof event === "object" && event );
<ide>
<del> event.isTrigger = true;
<add> // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
<add> event.isTrigger = onlyHandlers ? 2 : 3;
<ide> event.names... | 2 |
Ruby | Ruby | add missing # [ci skip] | 26e89c7f95f8a99c3174dc2d1f43aa05397dc719 | <ide><path>actionview/lib/action_view/helpers/tag_helper.rb
<ide> def method_missing(called, *args, **options, &block)
<ide> # # => <input type="text" aria-label="Search">
<ide> #
<ide> # <button <%= tag.attributes id: "call-to-action", disabled: false, aria: { expanded: false } %> class="primary"... | 1 |
Ruby | Ruby | remove obsolete comment about download_strategy | 62d25f9c8bb8f0471394bc6dad5d82abb163e1cb | <ide><path>Library/Homebrew/formula.rb
<ide> def build; self.class.build; end
<ide>
<ide> def opt_prefix; HOMEBREW_PREFIX/:opt/name end
<ide>
<del> # Use the @active_spec to detect the download strategy.
<del> # Can be overriden to force a custom download strategy
<ide> def download_strategy
<ide> @active_s... | 1 |
Text | Text | correct a typo in readme | 7627b8b6d9ef6e57dbd20a55b946bd1991c1223e | <ide><path>README.md
<ide> Following are some commands that can be used there:
<ide> * `Ctrl + Alt + M` - automerge as much as possible
<ide> * `b` - jump to next merge conflict
<ide> * `s` - change the order of the conflicted lines
<del>* `u` - undo an merge
<add>* `u` - undo a merge
<ide> * `left mouse button` - mark... | 1 |
Javascript | Javascript | remove extra returns tag | c2c60ab49af22381e77641d61151563785e97a97 | <ide><path>docs/collect.js
<ide> var TAG = {
<ide> 'function': valueTag,
<ide> description: markdownTag,
<ide> TODO: markdownTag,
<del> returns: markdownTag,
<ide> paramDescription: markdownTag,
<ide> exampleDescription: markdownTag,
<ide> element: valueTag, | 1 |
Go | Go | use a regular "defer" to log container event | 952902efbcea04a619c4d8c763eecf7fbfeecd85 | <ide><path>daemon/stop.go
<ide> func (daemon *Daemon) ContainerStop(name string, timeout *int) error {
<ide> }
<ide>
<ide> // containerStop sends a stop signal, waits, sends a kill signal.
<del>func (daemon *Daemon) containerStop(ctr *container.Container, seconds *int) error {
<add>func (daemon *Daemon) containerStop(... | 1 |
Python | Python | add problem 31 solution | 683474c64b4ad4c423aafcb967ac3897046a46bf | <ide><path>Project Euler/Problem 31/sol1.py
<add># -*- coding: utf-8 -*-
<add>from __future__ import print_function
<add>try:
<add> raw_input # Python 2
<add>except NameError:
<add> raw_input = input # Python 3
<add>'''
<add>Coin sums
<add>Problem 31
<add>In England the currency is made up of pound, £, ... | 1 |
Java | Java | register runtime hints for activeprofilesresolvers | a68d4ae25ca3225c1c236718330964fe116dddf6 | <ide><path>spring-test/src/main/java/org/springframework/test/context/aot/hint/StandardTestRuntimeHints.java
<ide> import java.util.List;
<ide>
<ide> import org.springframework.aot.hint.RuntimeHints;
<add>import org.springframework.core.annotation.MergedAnnotations;
<add>import org.springframework.test.context.ActiveP... | 6 |
Text | Text | add documentation link in sequential model. | 0b2c044d48a335e97ffef4b6c76031fa12627ec9 | <ide><path>docs/templates/getting-started/sequential-model-guide.md
<ide> model.compile(optimizer='rmsprop',
<ide>
<ide> ## Training
<ide>
<del>Keras models are trained on Numpy arrays of input data and labels. For training a model, you will typically use the `fit` function. [Read its documentation here](/models/sequ... | 1 |
Text | Text | add varenc/ffmpeg to list of interesting taps | e295570f00536f65375b74ef732a28b9c76d3997 | <ide><path>docs/Interesting-Taps-and-Forks.md
<ide> Homebrew has the capability to add (and remove) multiple taps to your local inst
<ide> Your taps are Git repositories located at `$(brew --repository)/Library/Taps`.
<ide>
<ide> ## Unsupported interesting taps
<add>* [varenc/ffmpeg](https://github.com/varenc/homebr... | 1 |
Javascript | Javascript | allow shared reused dgram sockets | c7be08cec18b0591381126e149cac96a05125966 | <ide><path>lib/cluster.js
<ide> Worker.prototype.isConnected = function isConnected() {
<ide>
<ide> // Master/worker specific methods are defined in the *Init() functions.
<ide>
<del>function SharedHandle(key, address, port, addressType, backlog, fd) {
<add>function SharedHandle(key, address, port, addressType, backl... | 4 |
Python | Python | update the importing logic for cpuinfo and psutil. | 03781c74b9decb69e9270edccfac26c92263ab70 | <ide><path>official/utils/logging/logger.py
<ide> import numbers
<ide> import os
<ide>
<del># pylint: disable=g-bad-import-order
<del># Note: cpuinfo and psutil are not installed in the TensorFlow OSS tree.
<del># They are installable via pip.
<del>import cpuinfo
<del>import psutil
<del># pylint: enable=g-bad-import-o... | 1 |
Javascript | Javascript | measure callback timeout relative to current time | 71c8759cebfadd09cf58748eb1963fe23ec11e4f | <ide><path>packages/react-reconciler/src/ReactFiberScheduler.js
<ide> let interruptedBy: Fiber | null = null;
<ide> // In other words, because expiration times determine how updates are batched,
<ide> // we want all updates of like priority that occur within the same event to
<ide> // receive the same expiration time. ... | 3 |
Javascript | Javascript | remove socket interface from buildbundle command | bc81cc4073812812276981cd91747243d9ae89af | <ide><path>local-cli/bundle/buildBundle.js
<ide> const log = require('../util/log').out('bundle');
<ide> const outputBundle = require('./output/bundle');
<ide> const Promise = require('promise');
<del>const ReactPackager = require('../../packager/react-packager');
<ide> const saveAssets = require('./saveAssets');
<add>... | 1 |
Go | Go | modify several fun notes in fsnotify.go | ff2c898652de37f70cd2774a208e61b112d06e1b | <ide><path>pkg/filenotify/fsnotify.go
<ide> package filenotify
<ide>
<ide> import "gopkg.in/fsnotify.v1"
<ide>
<del>// fsNotify wraps the fsnotify package to satisfy the FileNotifer interface
<add>// fsNotifyWatcher wraps the fsnotify package to satisfy the FileNotifer interface
<ide> type fsNotifyWatcher struct {
<i... | 1 |
Python | Python | fix typo in flask shell help | 5bfe236fb531045497396bc85ee5026c6c9c68eb | <ide><path>src/flask/cli.py
<ide> def run_command(
<ide> def shell_command():
<ide> """Run an interactive Python shell in the context of a given
<ide> Flask application. The application will populate the default
<del> namespace of this shell according to it's configuration.
<add> namespace of this shell ... | 1 |
Javascript | Javascript | fix regression of virtualizedlist jumpy header | e4fd9babe03d82fcf39ba6a46376f746a8a3e960 | <ide><path>Libraries/Lists/VirtualizedList.js
<ide> class VirtualizedList extends React.PureComponent<Props, State> {
<ide> if (stickyIndicesFromProps.has(ii + stickyOffset)) {
<ide> const initBlock = this._getFrameMetricsApprox(lastInitialIndex);
<ide> const stickyBlock = this._... | 1 |
Text | Text | fix script name for dlrm model | 66264b2353aeeca3d4b340908a9590571495d5a6 | <ide><path>official/recommendation/ranking/README.md
<ide> Training on GPUs are similar to TPU training. Only distribution strategy needs
<ide> to be updated and number of GPUs provided (for 4 GPUs):
<ide>
<ide> ```shell
<del>python3 official/recommendation/ranking/main.py --mode=train_and_eval \
<add>python3 official... | 1 |
Python | Python | improve celery command to use base.command | b8402e30ab325f5d99becc1c5de3b3e5266b9637 | <ide><path>celery/__main__.py
<add>from __future__ import absolute_import
<add>
<add>from celery import current_app
<add>
<add>current_app.start()
<ide><path>celery/bin/base.py
<ide> def execute_from_commandline(self, argv=None):
<ide> prog_name = os.path.basename(argv[0])
<ide> return self.handle_argv(... | 3 |
PHP | PHP | fix doc blocks | 4a160d8d219b8da18b211809cc0d6ae7fb1c2aa6 | <ide><path>src/Illuminate/Auth/Reminders/DatabaseReminderRepository.php
<ide> public function __construct(Connection $connection, $table, $hashKey, $expires =
<ide> /**
<ide> * Create a new reminder record and token.
<ide> *
<del> * @param \Illuminate\Auth\RemindableInterface $user
<add> * @param \Illuminate\... | 32 |
Javascript | Javascript | fix a failing test and count ids from one | 9cebc2663888573b4b993a4a9096f7fac8c6a5a3 | <ide><path>src/isomorphic/devtools/__tests__/ReactNativeOperationHistoryDevtool-test.js
<ide> describe('ReactNativeOperationHistoryDevtool', () => {
<ide> }]);
<ide> });
<ide>
<del> it('gets recorded for composite roots that return null', () => {
<add> it('gets ignored for composite roots that return n... | 2 |
Javascript | Javascript | add geolocation api jest mock | 6a1e0516e9f9276723479d8393c9e036ed511f17 | <ide><path>jest/setup.js
<ide> const mockNativeModules = {
<ide> addListener: jest.fn(),
<ide> removeListeners: jest.fn(),
<ide> },
<add> LocationObserver: {
<add> getCurrentPosition: jest.fn(),
<add> startObserving: jest.fn(),
<add> stopObserving: jest.fn(),
<add> },
<ide> ModalFullscreenViewMan... | 1 |
Ruby | Ruby | prevent deprecation warning in the tests | 8b6870cfae8d50a2ffd4f024d33d51aadaa6a6f7 | <ide><path>railties/test/secret_key_generation_test.rb
<ide> def setup
<ide> end
<ide>
<ide> def test_secret_key_generation
<del> assert @generator.generate_secret.length >= SECRET_KEY_MIN_LENGTH
<add> assert_deprecated /ActiveSupport::SecureRandom\.hex\(64\)/ do
<add> assert @generator.generate_secret.... | 1 |
Text | Text | fix 404 links in module.md | 3b40893815c2e85350f0ea651ac124cb377051e0 | <ide><path>doc/api/module.md
<ide> # Modules: `module` API
<ide>
<del><!--introduced_in=v0.3.7-->
<add><!--introduced_in=v12.20.0-->
<add><!-- YAML
<add>added: v0.3.7
<add>-->
<ide>
<ide> ## The `Module` object
<ide> | 1 |
Ruby | Ruby | keep onsubmit around for form_remote_for | 06a731e365011715759f46a09cb726b9f0350d00 | <ide><path>actionpack/lib/action_view/helpers/prototype_helper.rb
<ide> def form_remote_tag(options = {})
<ide> options[:form] = true
<ide>
<ide> options[:html] ||= {}
<del> options[:html][:onsubmit] = "#{remote_function(options)}; return false;"
<add> options[:html][:onsubmit] =
<add> ... | 1 |
Javascript | Javascript | cover path.basename when path and ext are the same | 824f16c8610b31ce06e4b6ff6927eb0df2da1953 | <ide><path>test/parallel/test-path-basename.js
<ide> assert.strictEqual(path.basename('/aaa/'), 'aaa');
<ide> assert.strictEqual(path.basename('/aaa/b'), 'b');
<ide> assert.strictEqual(path.basename('/a/b'), 'b');
<ide> assert.strictEqual(path.basename('//a'), 'a');
<add>assert.strictEqual(path.basename('a', 'a'), '');... | 1 |
Java | Java | polish uribuilderfactory and implementation | 4db0d999af9a6d5ca9ee09df1b8c08bcaf9cf5dd | <ide><path>spring-web/src/main/java/org/springframework/web/client/RestTemplate.java
<ide> else if (this.uriTemplateHandler instanceof org.springframework.web.util.Abstrac
<ide> }
<ide>
<ide> /**
<del> * Configure the {@link UriTemplateHandler} to use to expand URI templates.
<del> * By default the {@link DefaultU... | 4 |
Text | Text | fix a minor typo | 8df0b12d821d5a57051e9a92bc8687ac893deb3f | <ide><path>docs/sources/userguide/dockervolumes.md
<ide> page_keywords: Examples, Usage, volume, docker, documentation, user guide, data,
<ide>
<ide> # Managing Data in Containers
<ide>
<del>So far we've been introduced some [basic Docker
<add>So far we've been introduced to some [basic Docker
<ide> concepts](/usergu... | 1 |
Text | Text | add mutliclass field to default zero shot example | fbcddb85442c41cd1d2d60c40171fc8cc22ee9bb | <ide><path>model_cards/facebook/bart-large-mnli/README.md
<ide> pipeline_tag: zero-shot-classification
<ide> widget:
<ide> - text: "Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app."
<ide> labels: "mobile, website, billing, account access"
<add> multiclass... | 1 |
Python | Python | adjust number of warmup loops | 5be198eca885fd967426ad5551c8374f1c3e889e | <ide><path>research/tensorrt/tensorrt.py
<ide> from official.resnet import imagenet_preprocessing # pylint: disable=g-bad-import-order
<ide>
<ide> _GPU_MEM_FRACTION = 0.50
<del>_WARMUP_NUM_LOOPS = 50
<add>_WARMUP_NUM_LOOPS = 5
<ide> _LOG_FILE = "log.txt"
<ide> _LABELS_FILE = "labellist.json"
<ide> _GRAPH_FILE = "froz... | 1 |
Go | Go | fix volumes-from mount references | 3d029c3bf335bc2867d1efc803096d2912b81799 | <ide><path>daemon/volumes.go
<ide> func (daemon *Daemon) registerMountPoints(container *Container, hostConfig *runc
<ide> }
<ide>
<ide> for _, m := range c.MountPoints {
<del> cp := m
<del> cp.RW = m.RW && mode != "ro"
<add> cp := &mountPoint{
<add> Name: m.Name,
<add> Source: m.Source,
<ad... | 2 |
Ruby | Ruby | simplify arg parameterization | b9efc74f9e63e76f121204a96073d2f5582f66e6 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def optimize_routes_generation?(t)
<ide> end
<ide>
<ide> def parameterize_args(args)
<del> [].tap do |parameterized_args|
<del> @required_parts.zip(args) do |part, arg|
<del> parame... | 1 |
Ruby | Ruby | add annotation to haml and slim template | 8f61df0bcd0e84f26c6c41b98eeb2f7bb8d5ca4b | <ide><path>railties/lib/rails/source_annotation_extractor.rb
<ide> def find_in(dir)
<ide> results.update(extract_annotations_from(item, /#\s*(#{tag}):?\s*(.*)$/))
<ide> elsif item =~ /\.erb$/
<ide> results.update(extract_annotations_from(item, /<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/))
<add> elsif ... | 2 |
Ruby | Ruby | pass the join type to the join_constraints method | bae5e02cf33311318be9c7272852bbaef976bd7e | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def instantiate(result_set, aliases)
<ide>
<ide> def make_joins(node)
<ide> node.children.flat_map { |child|
<del> child.join_constraints(node, child.tables, child.reflection.chain)
<add> chain = child.refle... | 2 |
Text | Text | use code markup/markdown in headers | f6b67010506ec83ab9e60b2876f168e88864653a | <ide><path>doc/api/crypto.md
<ide> try {
<ide> }
<ide> ```
<ide>
<del>## Class: Certificate
<add>## Class: `Certificate`
<ide> <!-- YAML
<ide> added: v0.11.8
<ide> -->
<ide> The `crypto` module provides the `Certificate` class for working with SPKAC
<ide> data. The most common usage is handling output generated by the... | 1 |
Python | Python | remove old unused tests and conftest files | f8803808ce5604dbde4b6f0c4b0f1f0e1e199859 | <ide><path>setup.py
<ide> 'spacy.munge',
<ide> 'spacy.tests',
<ide> 'spacy.tests.matcher',
<del> 'spacy.tests.morphology',
<ide> 'spacy.tests.munge',
<ide> 'spacy.tests.parser',
<ide> 'spacy.tests.serialize',
<ide><path>spacy/tests/morphology/test_morphology_pickle.py
<del>import pytest
<del>... | 4 |
Javascript | Javascript | add deprecation warnings to reactnative.addons | 0b534d1c3da9e3520bfd9b85bdd669db4d8c3b9f | <ide><path>Libraries/react-native/react-native.js
<ide> */
<ide> 'use strict';
<ide>
<add>var warning = require('fbjs/lib/warning');
<add>
<add>if (__DEV__) {
<add> var warningDedupe = {};
<add> var addonWarn = function addonWarn(prevName, newPackageName) {
<add> warning(
<add> warningDedupe[prevName],
<add... | 1 |
Javascript | Javascript | add test for ignored normal modules | eae28fa56b54b7bcaf38ae77eb6f0c4e117b70d0 | <ide><path>test/configCases/ignore/only-resource/ignored-module.js
<add>module.exports = "ignored";
<ide><path>test/configCases/ignore/only-resource/normal-module.js
<add>module.exports = "normal";
<ide><path>test/configCases/ignore/only-resource/test.js
<add>/* globals it */
<add>"use strict";
<add>
<add>it("should ig... | 12 |
Javascript | Javascript | add additional test | 32cfbd6d671dc2827562e39c5d3cd7c7565550d1 | <ide><path>test/unit/manipulation.js
<ide> test( "Index for function argument should be received (#13094)", 2, function() {
<ide> jQuery("<div/><div/>").before(function( index ) {
<ide> equal( index, i++, "Index should be correct" );
<ide> });
<add>
<ide> }); | 1 |
Python | Python | fix fine_tune when optimizer is none | 1c5c256e5882d58b53050eb8f1ba1f3741c3c955 | <ide><path>spacy/_ml.py
<ide> def fine_tune_bwd(d_output, sgd=None):
<ide> model.d_mix[1] += flat_vecs.dot(flat_grad.T).sum()
<ide>
<ide> bp_vecs([d_o * model.mix[1] for d_o in d_output], sgd=sgd)
<del> sgd(model._mem.weights, model._mem.gradient, key=model.id)
<add> if sg... | 1 |
Ruby | Ruby | remove unused to_date_tag. closes [danger] | d7f84f61a28ff308b0403ec9940dadc6e2894b41 | <ide><path>actionpack/lib/action_view/helpers/form_helper.rb
<ide> class InstanceTag #:nodoc:
<ide> DEFAULT_FIELD_OPTIONS = { "size" => 30 }.freeze unless const_defined?(:DEFAULT_FIELD_OPTIONS)
<ide> DEFAULT_RADIO_OPTIONS = { }.freeze unless const_defined?(:DEFAULT_RADIO_OPTIONS)
<ide> DEFAULT... | 1 |
Javascript | Javascript | add missing jsdoc comment | 350894ae9e87dc76468e655fd067d488f46fae89 | <ide><path>lib/dependencies/HarmonyImportSideEffectDependency.js
<ide> makeSerializable(
<ide> );
<ide>
<ide> HarmonyImportSideEffectDependency.Template = class HarmonyImportSideEffectDependencyTemplate extends HarmonyImportDependency.Template {
<add> /**
<add> * @param {Dependency} dependency the dependency for whic... | 1 |
Ruby | Ruby | fix typo in api document formhelper#fields | 523f296557231e3ab77f36b5a7ce9fe11f070596 | <ide><path>actionview/lib/action_view/helpers/form_helper.rb
<ide> def fields_for(record_name, record_object = nil, options = {}, &block)
<ide> # <%= fields :comment do |fields| %>
<ide> # <%= fields.text_field :body %>
<ide> # <% end %>
<del> # # => <input type="text" name="comment[bod... | 1 |
Python | Python | run pyflakes and pep8 on numpy/ma/tests/* | b733a10a9cc806f4772728015ec1bd9e63322858 | <ide><path>numpy/ma/tests/test_core.py
<ide> __author__ = "Pierre GF Gerard-Marchant"
<ide>
<ide> import warnings
<del>import sys
<ide> import pickle
<del>from functools import reduce
<ide> import operator
<del>
<del>from nose.tools import assert_raises
<add>from functools import reduce
<ide>
<ide> import numpy as np... | 6 |
Javascript | Javascript | define constants with const | 86eda173b16b6ece9712e066661a0ac5db6795e8 | <ide><path>lib/fs.js
<ide> var FSReqWrap = binding.FSReqWrap;
<ide> var Readable = Stream.Readable;
<ide> var Writable = Stream.Writable;
<ide>
<del>var kMinPoolSpace = 128;
<del>var kMaxLength = require('smalloc').kMaxLength;
<del>
<del>var O_APPEND = constants.O_APPEND || 0;
<del>var O_CREAT = constants.O_CREAT || 0... | 1 |
Javascript | Javascript | use attribute for media, srcset and sizes | 942d358acea51cb93c172f01a2ab8094bc661808 | <ide><path>src/browser/ui/dom/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> loop: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
<ide> max: null,
<ide> maxLength: MUST_USE_ATTRIBUTE,
<del> media: null,
<add> media: MUST_USE_ATTRIBUTE,
<ide> mediaGroup: null,
<ide> method: null,
<i... | 1 |
Ruby | Ruby | extract installer setup to prelude method | 4c0db19538d69cc2d00f8455b94c85d75c9a4203 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def perform_preinstall_checks
<ide>
<ide> def install_formula f
<ide> fi = FormulaInstaller.new(f)
<add> fi.prelude
<ide> fi.install
<ide> fi.caveats
<ide> fi.finish
<ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> def upgrade_formula f
<ide> in... | 3 |
Ruby | Ruby | test the correct object | 1396b05e5a36859a9730e7a4a56abba02c41c0d6 | <ide><path>actionpack/test/controller/parameters/parameters_permit_test.rb
<ide> def walk_permitted(params)
<ide> params = ActionController::Parameters.new(crab: "Senjougahara Hitagi")
<ide>
<ide> assert params.to_h.is_a? ActiveSupport::HashWithIndifferentAccess
<del> assert_not @params.to_h.is_a? Act... | 1 |
Text | Text | add changelog entry for | 4c1c2e650155fd17ceeb41580650da67b684fb34 | <ide><path>activerecord/CHANGELOG.md
<add>* Load fixtures from linked folders.
<add>
<add> *Kassio Borges*
<add>
<ide> * Create a directory for sqlite3 file if not present on the system.
<ide>
<ide> *Richard Schneeman* | 1 |
Java | Java | notify viewmanagers when a view is deleted | 7b82df287d36e39073d29e3ae3adbe82cf424055 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java
<ide> public void removeViewAt(final int tag, final int parentTag, final int index) {
<ide> }
<ide>
<ide> throw new IllegalStateException(
<del> "Tried to delete view ["
<add> "Tried to remove vi... | 1 |
Ruby | Ruby | support index.length for mysql 8.0.0-dmr | 32fc0331227ab9b14c875837ea66be8ee70ab96b | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
<ide> def indexes(table_name, name = nil) #:nodoc:
<ide> end
<ide>
<ide> indexes.last.columns << row[:Column_name]
<del> indexes.last.lengths.merge!(row[:Column_name] => row[:Sub_part]) if row[:Su... | 1 |
Javascript | Javascript | add bailout effecttag for react devtools | a37012a6b5fb5a1c0c19c962737189aeaebe3684 | <ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js
<ide> var {
<ide> Fragment,
<ide> } = ReactTypeOfWork;
<ide> var {NoWork, OffscreenPriority} = require('ReactPriorityLevel');
<del>var {Placement, ContentReset, Err, Ref} = require('ReactTypeOfSideEffect');
<add>var {
<add> PerformedWork,
<add> Placement,... | 3 |
Mixed | Ruby | add support to libvips in the image analyzer | 82fdf45fe5dd74a6dfd962715dd611e03571f896 | <ide><path>activestorage/CHANGELOG.md
<add>* Use libvips instead of ImageMagick to analyze images when `active_storage.variant_processor = vips`
<add>
<add> *Breno Gazzola*
<add>
<ide> * Add metadata value for presence of video channel in video blobs
<ide>
<ide> The `metadata` attribute of video blobs has... | 11 |
Javascript | Javascript | add cross method to vector2 | ceef48eedc496698a2f92106bd01070983c13112 | <ide><path>src/math/Vector2.js
<ide> Object.assign( Vector2.prototype, {
<ide>
<ide> },
<ide>
<add> cross: function ( v ) {
<add>
<add> return this.x * v.y - this.y * v.x;
<add>
<add> },
<add>
<ide> lengthSq: function () {
<ide>
<ide> return this.x * this.x + this.y * this.y; | 1 |
Javascript | Javascript | add test for pdfdocumentproxy_getpageindex | c547f17ee5eb086fa759472a441c1e97a8801f52 | <ide><path>test/unit/api_spec.js
<ide> describe('api', function() {
<ide> expect(true).toEqual(true);
<ide> });
<ide> });
<add> it('gets page index', function() {
<add> // reference to second page
<add> var ref = {num: 17, gen: 0};
<add> var promise = doc.getPageIndex(ref);
<add> ... | 1 |
Javascript | Javascript | remove duplicate fixture components | 52a1ee492aa87f794320cfa4eeb921deddf7d7b1 | <ide><path>fixtures/src/components/RangeInputs.js
<del>const React = window.React;
<del>
<del>const RangeInputs = React.createClass({
<del> getInitialState() {
<del> return { value: 0.5 };
<del> },
<del> onChange(event) {
<del> this.setState({ value: event.target.value });
<del> },
<del> render() {
<del> ... | 2 |
Python | Python | fix mnist sklearn wrapper example | 48e1e8458e772758420efba93508de9c03cdf915 | <ide><path>examples/mnist_sklearn_wrapper.py
<ide> def make_model(dense_layer_sizes, filters, kernel_size, pool_size):
<ide> model.add(Flatten())
<ide> for layer_size in dense_layer_sizes:
<ide> model.add(Dense(layer_size))
<del> model.add(Activation('relu'))
<add> model.add(Activation('relu')... | 1 |
Java | Java | discover controllers based on type @requestmapping | f61f4a960e1b28e96abe8912a137720fcd0690f5 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java
<ide> public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMappi
<ide> private boolean useSuffixPatternMatch = true;
<ide>
<ide> private boolean useTrailingSlashMatch =... | 2 |
Ruby | Ruby | fix sorbet errors | 4c1b2630dcf99793e8ecfed60c441dd080418401 | <ide><path>Library/Homebrew/cache_store.rb
<ide> def self.use(type)
<ide> return_value
<ide> end
<ide>
<add> # Creates a CacheStoreDatabase.
<add> #
<add> # @param [Symbol] type
<add> # @return [nil]
<add> def initialize(type)
<add> @type = type
<add> @dirty = false
<add> end
<add>
<ide> # Sets a ... | 2 |
Python | Python | add radix2 fft | a41a14f9d89b665178f08535f128ba14652ce449 | <ide><path>maths/radix2_fft.py
<add>"""
<add>Fast Polynomial Multiplication using radix-2 fast Fourier Transform.
<add>"""
<add>
<add>import mpmath # for roots of unity
<add>import numpy as np
<add>
<add>
<add>class FFT:
<add> """
<add> Fast Polynomial Multiplication using radix-2 fast Fourier Transform.
<add>
<... | 1 |
Go | Go | remove unnescessary conversion (unconvert) | 3a16c7246a0b3e2cc7896f8ed4fb732dbd88a1ad | <ide><path>pkg/signal/signal_test.go
<ide> func TestValidSignalForPlatform(t *testing.T) {
<ide> assert.Check(t, is.Equal(false, isValidSignal))
<ide>
<ide> for _, sigN := range SignalMap {
<del> isValidSignal = ValidSignalForPlatform(syscall.Signal(sigN))
<add> isValidSignal = ValidSignalForPlatform(sigN)
<ide> ... | 1 |
Javascript | Javascript | move common tls connect setup into fixtures | 99b0c2e7a7b299e127234334e5bd23cf600902d9 | <ide><path>test/fixtures/tls-connect.js
<add>// One shot call to connect a TLS client and server based on options to
<add>// tls.createServer() and tls.connect(), so assertions can be made on both ends
<add>// of the connection.
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const fs = require(... | 4 |
Text | Text | add link to master docs | 4374d3bc81cf47866bd3f5c240307915931084cf | <ide><path>README.md
<ide> Want to run Docker from a master build? You can download
<ide> master builds at [master.dockerproject.com](https://master.dockerproject.com).
<ide> They are updated with each commit merged into the master branch.
<ide>
<add>Don't know how to use that super cool new feature in the master bui... | 1 |
Text | Text | update license year to 2016 | 5a2c8ff9622b2359011f1aa297c3d28c04ef103f | <ide><path>LICENSE.md
<del>Copyright (c) 2015 GitHub Inc.
<add>Copyright (c) 2016 GitHub Inc.
<ide>
<ide> Permission is hereby granted, free of charge, to any person obtaining
<ide> a copy of this software and associated documentation files (the | 1 |
Python | Python | change copyright scipy to numpy | eb231979b90cfe7f434bd598aefe4196df74b32e | <ide><path>doc/source/conf.py
<ide> class PyTypeObject(ctypes.Structure):
<ide>
<ide> # General substitutions.
<ide> project = 'NumPy'
<del>copyright = '2008-2021, The SciPy community'
<add>copyright = '2008-2021, The NumPy community'
<ide>
<ide> # The default replacements for |version| and |release|, also used in va... | 1 |
Ruby | Ruby | fix bad format [ci skip] | 0631b2631601b30d8fedaefb7388da8b42c83977 | <ide><path>activemodel/lib/active_model/model.rb
<ide> module ActiveModel
<ide>
<ide> # == Active Model Basic Model
<ide> #
<del> # Includes the required interface for an object to interact with +ActionPack+,
<del> # using different +ActiveModel+ modules. It includes model name introspections,
<add> # Includes ... | 1 |
Go | Go | simplify function signature | 445620f231ccd2a99e5ebb8fc004dcb254cc2c4b | <ide><path>daemon/graphdriver/driver.go
<ide> func getBuiltinDriver(name, home string, options []string, uidMaps, gidMaps []id
<ide> }
<ide>
<ide> // New creates the driver and initializes it at the specified root.
<del>func New(root string, name string, options []string, uidMaps, gidMaps []idtools.IDMap, pg pluginget... | 1 |
Ruby | Ruby | make all references to engines lowercase in docs | 2373eedc88661a11c1ac58d8e98a9cb5b6c7dba1 | <ide><path>railties/lib/rails/engine.rb
<ide> module Rails
<ide> # Rails::Engine allows you to wrap a specific Rails application and share it across
<ide> # different applications. Since Rails 3.0, every <tt>Rails::Application</tt> is nothing
<del> # more than an <tt>Engine</tt>, allowing you to share it very easi... | 1 |
Text | Text | remove reference to globalize gem | 46b8d343d3a2f1b647c8543d486a3bdf6636ad04 | <ide><path>guides/source/i18n.md
<ide> The I18n API described in this guide is primarily intended for translating inter
<ide>
<ide> Several gems can help with this:
<ide>
<del>* [Globalize](https://github.com/globalize/globalize): Store translations on separate translation tables, one for each translated model
<ide> ... | 1 |
Python | Python | expand mapped tasks at dagrun.veriy_integrity | 91832a42d8124b040073481fd93c54e9e64c2609 | <ide><path>airflow/models/dagrun.py
<ide> import warnings
<ide> from collections import defaultdict
<ide> from datetime import datetime
<del>from typing import TYPE_CHECKING, Any, Dict, Iterable, List, NamedTuple, Optional, Tuple, Union
<add>from typing import (
<add> TYPE_CHECKING,
<add> Any,
<add> Dict,
<add... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.