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 |
|---|---|---|---|---|---|
Java | Java | add public variant getdeclaredmethods method | 8ef609a1b74ad359ae764c4d4052365ac5483fcf | <ide><path>spring-core/src/main/java/org/springframework/util/ReflectionUtils.java
<ide> public static Method findMethod(Class<?> clazz, String name, @Nullable Class<?>.
<ide> Assert.notNull(name, "Method name must not be null");
<ide> Class<?> searchType = clazz;
<ide> while (searchType != null) {
<del> Method... | 2 |
PHP | PHP | add button widget & test case | dd4f2264fe2ee2de35592a263c898bdc2303321c | <ide><path>src/View/Input/Button.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, please see t... | 2 |
Python | Python | prepare 2.0.7 release | 14a12e94c8edb683ae0c85d7d2db54724e902a6f | <ide><path>keras/__init__.py
<ide> # Importable from root because it's technically not a layer
<ide> from .layers import Input
<ide>
<del>__version__ = '2.0.6'
<add>__version__ = '2.0.7'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='2.0.6',
<add> version='2.0.7',
<ide> desc... | 2 |
Javascript | Javascript | add tests for the new createstore() enhancer arg | 147842cf9d80902287a41f7129bfadfea8afb112 | <ide><path>test/createStore.spec.js
<ide> describe('createStore', () => {
<ide> expect(methods).toContain('replaceReducer')
<ide> })
<ide>
<del> it('requires a reducer function', () => {
<add> it('throws if reducer is not a function', () => {
<ide> expect(() =>
<ide> createStore()
<ide> ).toThrow... | 1 |
Python | Python | clarify interface of in_train_phase | 2e45022c955acc8197c57c67e7ce93be31bb4405 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def switch(condition, then_expression, else_expression):
<ide> return x
<ide>
<ide>
<del>def in_train_phase(x, expression):
<del> '''Inserts an expression to be only applied at training time.
<del> Note that `expression` should have the *same shape* as `x... | 2 |
PHP | PHP | fix incorrect class name in test | 33031ea1319318b0497bfafc5f69d167dea5e64a | <ide><path>tests/TestCase/Routing/RouterTest.php
<ide> public function testReverseToArrayQuery()
<ide> public function testReverseToArrayRequestQuery()
<ide> {
<ide> Router::connect('/:lang/:controller/:action/*', [], ['lang' => '[a-z]{3}']);
<del> $request = new Request('/eng/posts/view/1');
<ad... | 1 |
PHP | PHP | remove code duplication | 2801c5478d6e6953b50dab76e6fbc402887e11e7 | <ide><path>src/Core/PluginCollection.php
<ide> public function get(string $name): PluginInterface
<ide> return $this->plugins[$name];
<ide> }
<ide>
<del> $config = ['name' => $name];
<del> $className = str_replace('/', '\\', $name) . '\\' . 'Plugin';
<del> if (class_exists($cla... | 3 |
Text | Text | add shields io npm version badge | f5aac04b790ee097f825b070874f0bdf6fdbce4f | <ide><path>readme.md
<ide> <img width="112" alt="screen shot 2016-10-25 at 2 37 27 pm" src="https://cloud.githubusercontent.com/assets/13041/19686250/971bf7f8-9ac0-11e6-975c-188defd82df1.png">
<ide>
<add>[](https://www.npmjs.com/package/next)
<ide> [![Build Status]... | 1 |
PHP | PHP | reduce the api surface of classloader | 92d470db15529bf420472481b0af0195e9b4e545 | <ide><path>lib/Cake/Core/ClassLoader.php
<ide> <?php
<ide> /**
<del> * ClassLoader class
<del> *
<ide> * PHP 5
<ide> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> *
<ide> * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> * @link... | 1 |
Python | Python | fix softlayer test on 2.7 | 3cecb1950a2ecc7a7eccd1d4c26cb4ca48e6ccdd | <ide><path>test/compute/test_softlayer.py
<ide> def request(self, host, handler, request_body, verbose=0):
<ide> mock.request('POST', "%s/%s" % (handler, method))
<ide> resp = mock.getresponse()
<ide>
<del> return self._parse_response(resp.body, None)
<add> if sys.version[0] == '2' and sy... | 1 |
Ruby | Ruby | extract details to methods to clarify command | f6310a3f163d565cfc014143212e5ee2f0f2ae79 | <ide><path>railties/lib/rails/commands/routes/routes_command.rb
<ide> def perform(*)
<ide> require_application_and_environment!
<ide> require "action_dispatch/routing/inspector"
<ide>
<del> all_routes = Rails.application.routes.routes
<del> inspector = ActionDispatch::Routing::RoutesInspe... | 1 |
Ruby | Ruby | use canonical name with tap arg | 30a8d8e470ea75e5796b7df9591a676a1a6fa429 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def merge
<ide> puts output
<ide>
<ide> if ARGV.include? '--write'
<del> f = Formulary.factory(formula_name)
<add> tap = ARGV.value('tap')
<add> canonical_formula_name = if tap
<add> "#{tap}/#{formula_name}"
<add> else
<ad... | 1 |
Python | Python | add test file | f096db4f9b14cec4f2aacf31f431b883eaceda0c | <ide><path>libcloud/test/common/test_openstack_identity.py
<ide> from mock import Mock
<ide>
<ide> from libcloud.utils.py3 import httplib
<add>from libcloud.utils.py3 import assertRaisesRegex
<ide> from libcloud.common.openstack import OpenStackBaseConnection
<ide> from libcloud.common.openstack_identity import AUTH_T... | 1 |
Python | Python | add readonly endpoints for dagruns | b6f4837fb12fc96b2bf0570d3380fb5d66ea2100 | <ide><path>airflow/api_connexion/endpoints/dag_run_endpoint.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide>
<del># TODO(mik-laj): We have to implement it.
<del># Do you want to help? Please look at: https://github.com/apache/airflow/issues/8129
<add>from sqlalche... | 7 |
Javascript | Javascript | add benchmarks for `buffer.from()` | 289d862c6f1baeef3c361aa9fb358b72afacd6e3 | <ide><path>benchmark/buffers/buffer-from.js
<add>'use strict';
<add>
<add>const common = require('../common.js');
<add>const assert = require('assert');
<add>const bench = common.createBenchmark(main, {
<add> source: [
<add> 'array',
<add> 'arraybuffer',
<add> 'arraybuffer-middle',
<add> 'buffer',
<add> ... | 1 |
Go | Go | fix container restart race condition | fc2f5758cf22fe5d3d46be7e4642abc0735e2c8d | <ide><path>container.go
<ide> func (container *Container) monitor() {
<ide> exitCode = container.cmd.ProcessState.Sys().(syscall.WaitStatus).ExitStatus()
<ide> }
<ide>
<del> // Report status back
<del> container.State.setStopped(exitCode)
<del>
<ide> if container.runtime != nil && container.runtime.srv != nil {
<i... | 1 |
Python | Python | fix breadcrumb view names | 02b6836ee88498861521dfff743467b0456ad109 | <ide><path>rest_framework/utils/breadcrumbs.py
<ide> def get_breadcrumbs(url):
<ide> tuple of (name, url).
<ide> """
<ide>
<add> from rest_framework.settings import api_settings
<ide> from rest_framework.views import APIView
<ide>
<add> view_name_func = api_settings.VIEW_NAME_FUNCTION
<add>
<ide> ... | 1 |
Go | Go | improve detach unit tests | e97364ecd73fac7abfbd82cc7e3ebaa6cda3c935 | <ide><path>commands_test.go
<ide> func TestRunDetach(t *testing.T) {
<ide> <-ch
<ide> })
<ide>
<del> setTimeout(t, "Waiting for container to die timedout", 5*time.Second, func() {
<add> time.Sleep(500 * time.Millisecond)
<add> if !container.State.Running {
<add> t.Fatal("The detached container should be still runn... | 2 |
Go | Go | fix unregister stats on when rm running container | b3e8ab3021d2021202e14b912e7fdbfede4c7c20 | <ide><path>daemon/delete.go
<ide> func (daemon *Daemon) ContainerRm(name string, config *ContainerRmConfig) error
<ide>
<ide> // Destroy unregisters a container from the daemon and cleanly removes its contents from the filesystem.
<ide> func (daemon *Daemon) rm(container *Container, forceRemove bool) (err error) {
<de... | 3 |
Ruby | Ruby | use file.binread to pull in the schema cache | 3b378a7840c8c2a46935c73dc56d94d4b6fcee9e | <ide><path>activerecord/lib/active_record/railtie.rb
<ide> class Railtie < Rails::Railtie
<ide> if app.config.use_schema_cache_dump
<ide> filename = File.join(app.config.paths["db"].first, "schema_cache.dump")
<ide> if File.file?(filename)
<del> cache = Marshal.load(open(filename,... | 2 |
Javascript | Javascript | fix textchange event enqueueing | 792b69ba111f4b976fa298a902a1f049f127d954 | <ide><path>src/eventPlugins/TextChangeEventPlugin.js
<ide> var handlePropertyChange = function(nativeEvent) {
<ide> // events and have it go through ReactEventTopLevelCallback. Since it
<ide> // doesn't, we manually listen for the propertychange event and so we
<ide> // have to enqueue and process the... | 1 |
Javascript | Javascript | fix infinite recursion in browsers with iterators | 8cf226e44241aeafe147f6256a1351b46ac3cf91 | <ide><path>src/classic/element/ReactElementValidator.js
<ide> function validateChildKeys(node, parentType) {
<ide> validateChildKeys(child, parentType);
<ide> }
<ide> }
<del> } else if (ReactElement.isValidElement(node)) {
<add> } else if (
<add> typeof node === 'string' || typeof node === 'num... | 2 |
PHP | PHP | apply style fixes | d9ad6863ebdc3b4c1edafad3e4046e0822b0bf46 | <ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php
<ide> public function validateDistinct($attribute, $value, $parameters)
<ide> $data = $this->getDistinctValues($attribute);
<ide>
<ide> if (in_array('ignore_case', $parameters)) {
<del> return empty(preg_grep('/^' . preg_q... | 1 |
Javascript | Javascript | add write method to time tooltips | 204ff4619a9dd055c88579af28770ea046461529 | <ide><path>src/js/control-bar/progress-control/time-tooltip.js
<ide> class TimeTooltip extends Component {
<ide> }
<ide>
<ide> this.el_.style.right = `-${pullTooltipBy}px`;
<add> this.write(content);
<add> }
<add>
<add> /**
<add> * Write the time to the tooltip DOM element.
<add> *
<add> * @param {S... | 1 |
Python | Python | add test and logic for attribute access calls | cd6ec4094730156f27c69b327916e19f6c1c4b2f | <ide><path>scripts/flaskext_migrate.py
<ide> def fix_standard_imports(red):
<ide> try:
<ide> if (node.value[0].value[0].value == 'flask' and
<ide> node.value[0].value[1].value == 'ext'):
<del> package = node.value[0].value[2]
<add> package = node.value[0]... | 2 |
Ruby | Ruby | fix cache_helper comment erb | 421865e4fd69841889ba1eb51af2e0bef98a8cb0 | <ide><path>actionview/lib/action_view/helpers/cache_helper.rb
<ide> def cache(name = {}, options = nil, &block)
<ide>
<ide> # Cache fragments of a view if +condition+ is true
<ide> #
<del> # <%= cache_if admin?, project do %>
<add> # <% cache_if admin?, project do %>
<ide> # <b>All ... | 1 |
Python | Python | use list to be safe | f4675ecfdfb0ca40a7a34e1edfc348fdb771786b | <ide><path>airflow/jobs.py
<ide> def _execute(self):
<ide> executor.heartbeat()
<ide>
<ide> # Reacting to events
<del> for key, state in executor.get_event_buffer().items():
<add> for key, state in list(executor.get_event_buffer().items()):
<ide> dag_id, ta... | 1 |
Javascript | Javascript | use arrow fns for lexical `this` in agent | 1f045f491a6a8d6ac193474f3856e2bdbd6847be | <ide><path>lib/_http_agent.js
<ide> function Agent(options) {
<ide>
<ide> EventEmitter.call(this);
<ide>
<del> var self = this;
<add> this.defaultPort = 80;
<add> this.protocol = 'http:';
<ide>
<del> self.defaultPort = 80;
<del> self.protocol = 'http:';
<del>
<del> self.options = util._extend({}, options);
<... | 1 |
Text | Text | add a changelog entry for [ci skip] | 2bc88d4f74a36e8014534c4b574140a8a3fc624d | <ide><path>actionview/CHANGELOG.md
<add>* The `video_tag` helper accepts a number as `:size`
<add>
<add> The `:size` option of the `video_tag` helper now can be specified
<add> with a stringified number. The `width` and `height` attributes of
<add> the generated tag will be the same.
<add>
<add> *Kuldeep ... | 1 |
Ruby | Ruby | add documentation for respond_to's any method | 5ec91ef5ecfce409f1b90e631bdedb4bcef8de5f | <ide><path>actionpack/lib/action_controller/base/mime_responds.rb
<ide> module InstanceMethods
<ide> # Note that you can define your own XML parameter parser which would allow you to describe multiple entities
<ide> # in a single request (i.e., by wrapping them all in a single root node), but if you just go... | 1 |
Ruby | Ruby | remove feature flags | e41f0bf8c8365c150935f03f3ecd14b44187b2ef | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def check_install_sanity
<ide> EOS
<ide> end
<ide>
<del> if ENV["HOMEBREW_CHECK_RECURSIVE_VERSION_DEPENDENCIES"]
<del> version_hash = {}
<del> version_conflicts = Set.new
<del> recursive_formulae.each do |f|
<del> name = f.name
<... | 1 |
PHP | PHP | add test for leading dot cookies | bd317d91f01b0d6501a4bcf819d37c1c1b1c120e | <ide><path>tests/TestCase/Http/Cookie/CookieCollectionTest.php
<ide> public function testAddToRequest()
<ide> $this->assertSame(['blog' => 'b'], $request->getCookieParams());
<ide> }
<ide>
<add> /**
<add> * Test adding cookies ignores leading dot
<add> *
<add> * @return void
<add> */
<ad... | 1 |
Javascript | Javascript | use map to track indexes | aa899aa6d0434d4183a9a5ed86f99faf29298b11 | <ide><path>lib/internal/cluster/child.js
<ide> const Worker = require('internal/cluster/worker');
<ide> const { internal, sendHelper } = require('internal/cluster/utils');
<ide> const cluster = new EventEmitter();
<ide> const handles = {};
<del>const indexes = {};
<add>const indexes = new Map();
<ide> const noop = () =... | 1 |
Javascript | Javascript | ignore blob urls when updating source cache | 9cb1ba5ae94f7e9ad3467b8507ecd0ded96bc6d0 | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> src = srcObj.src;
<ide> type = srcObj.type;
<ide> }
<add>
<add> // if we are a blob url, don't update the source cache
<add> // blob urls can arise when playback is done via Media Source Extension (MSE)
<add> // such as m3... | 1 |
PHP | PHP | refactor the config class | e39ab9a0f97cbbf5e9d8cd494ce19276f6e6e75e | <ide><path>system/config.php
<ide> public static function get($key, $default = null)
<ide> {
<ide> list($module, $file, $key) = static::parse($key);
<ide>
<del> if ( ! static::load($module, $file)) return is_callable($default) ? call_user_func($default) : $default;
<add> if ( ! static::load($module, $file))
<add>... | 1 |
Python | Python | add support for "cpuplatform" field in gce driver | 5cbd7888f505a527b3e48765680801066c6c2b08 | <ide><path>libcloud/compute/drivers/gce.py
<ide> def _to_node(self, node, use_disk_cache=False):
<ide> extra['zone'] = self.ex_get_zone(node['zone'])
<ide> extra['image'] = node.get('image')
<ide> extra['machineType'] = node.get('machineType')
<add> extra['cpuPlatform'] = node.get('cpuPla... | 1 |
Mixed | Python | add new initializations to the docs | e1df04c1376a20dbe1a2f15f20d2d34a9462454a | <ide><path>docs/sources/initializations.md
<ide> model.add(Dense(64, 64, init='uniform'))
<ide> - __lecun_uniform__: Uniform initialization scaled by the square root of the number of inputs (LeCun 98).
<ide> - __normal__
<ide> - __orthogonal__: Use with square 2D layers (`shape[0] == shape[1]`).
<del>- __zero__
<ide>\ ... | 2 |
Ruby | Ruby | add regression test for | 406374de095f167bc742aa518a6818cacd344ffe | <ide><path>activerecord/test/cases/autosave_association_test.rb
<ide> def save(**)
<ide> def test_should_not_load_the_associated_model
<ide> assert_queries(1) { @ship.name = "The Vile Insanity"; @ship.save! }
<ide> end
<add>
<add> def test_should_save_with_non_nullable_foreign_keys
<add> parent = Post.new t... | 1 |
Ruby | Ruby | fix doctor on 10.5 | 733e280e61bc74258993fd19dedd8c0c3d1fd5be | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_user_path
<ide> end
<ide>
<ide> # Don't complain about sbin not being in the path if it doesn't exist
<del> if (HOMEBREW_PREFIX+'sbin').children.count > 0
<add> if (HOMEBREW_PREFIX+'sbin').children.length > 0
<ide> unless seen_prefix_sbin
<ide> ... | 1 |
Javascript | Javascript | fix sloppy factoring in `performsyncworkonroot` | bd7f4a013be3ef272a01874532bee71ad861e617 | <ide><path>packages/react-reconciler/src/ReactFiberLane.new.js
<ide> export function markRootExpired(root: FiberRoot, expiredLanes: Lanes) {
<ide> root.pendingLanes |= SyncLane;
<ide> }
<ide>
<del>export function areLanesExpired(root: FiberRoot, lanes: Lanes) {
<del> const SyncLaneIndex = 0;
<del> const entangleme... | 4 |
Python | Python | fix misleading docstrings | b64e5919715f8dee546fbfc5049f8ec1574c2567 | <ide><path>keras/layers/recurrent.py
<ide> class SimpleRNN(Recurrent):
<ide> units: Positive integer, dimensionality of the output space.
<ide> activation: Activation function to use
<ide> (see [activations](../activations.md)).
<del> If you don't specify anything, no activation i... | 1 |
Text | Text | update broken links | 0eda4d5988d5c37965f4119c4a3d302ff8a97d93 | <ide><path>packages/next/README.md
<ide> module.exports = (phase, { defaultConfig }) => {
<ide> }
<ide> ```
<ide>
<del>`phase` is the current context in which the configuration is loaded. You can see all phases here: [constants](/packages/next-server/lib/constants.ts)
<add>`phase` is the current context in which the c... | 1 |
Text | Text | replace forum link on contribute page | f4fe5a183b7ff5309cea87de9948a14d94ab46fd | <ide><path>docs/_coverpage.md
<ide>
<ide> ## Here are some quick and fun ways you can help the community.
<ide>
<del>- <span class='cover-icon'><i class="fas fa-question-circle"></i></span> [Help by answering coding questions](https://forum.freecodecamp.org/c/help?max_posts=1) on our community forum.
<add>- <span cla... | 1 |
Javascript | Javascript | fix accidental quadratic | a1d96714401aaeae2bf4a5244cad2ef57fed7d29 | <ide><path>src/menu-sort-helpers.js
<ide> function sortTopologically (originalOrder, edgesById) {
<ide> sorted.push(id)
<ide> }
<ide>
<del> while (true) {
<del> const unmarkedId = originalOrder.find(id => !marked.has(id))
<del> if (unmarkedId == null) {
<del> break
<del> }
<del> visit(unmarkedI... | 1 |
Python | Python | add tests for fast tokenizers | 2818e505694ee4b5b02a9c7b51faf4dd137728d4 | <ide><path>tests/test_tokenization_bert.py
<ide> VOCAB_FILES_NAMES,
<ide> BasicTokenizer,
<ide> BertTokenizer,
<add> BertTokenizerFast,
<ide> WordpieceTokenizer,
<ide> _is_control,
<ide> _is_punctuation,
<ide> class BertTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
<ide>
<ide> ... | 3 |
Javascript | Javascript | add tests for searchparams dev warning | 08859275ae8295ee29214f7c26138b3fee76bbcb | <ide><path>test/integration/dynamic-routing/pages/d/[id].js
<add>import { useRouter } from 'next/router'
<add>
<add>const Page = () => {
<add> const router = useRouter()
<add> const { query } = router
<add> return <p id="asdf">This is {query.id}</p>
<add>}
<add>
<add>export default Page
<ide><path>test/integration/d... | 3 |
Javascript | Javascript | improve way of adding exported tests to test tree | 01cfe5b67a3c5df3920d7404d5dbe0a424190792 | <ide><path>test/ConfigTestCases.test.js
<ide> const vm = require("vm");
<ide> const mkdirp = require("mkdirp");
<ide> const rimraf = require("rimraf");
<ide> const checkArrayExpectation = require("./checkArrayExpectation");
<add>const createLazyTestEnv = require("./helpers/createLazyTestEnv");
<ide> const FakeDocument ... | 5 |
Javascript | Javascript | fix a bug in d3.interpolatestring | dd5b21a3638b4058c647ecd843a343781b77b261 | <ide><path>d3.js
<ide> d3.interpolateString = function(a, b) {
<ide> n, // q.length
<ide> o;
<ide>
<add> // Reset our regular expression!
<add> d3_interpolate_number.lastIndex = 0;
<add>
<ide> // Find all numbers in b.
<ide> for (i = 0; m = d3_interpolate_number.exec(b); ++i) {
<ide> if (m.index)... | 3 |
Ruby | Ruby | remove an is_a check | fded4d0385171877bc6e60a2f265a2095be652da | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<ide> def determine_cc
<ide> # an alternate compiler, altering the value of environment variables.
<ide> # If no valid compiler is found, raises an exception.
<ide> def validate_cc!(formula)
<del> if formula.fails_with? compiler
<add> # FIXME
<add> # The c... | 2 |
Text | Text | encourage installation of sass as a devdep | ed1eedaa9723026ae4b1e5368526660c18ff8c8d | <ide><path>docs/basic-features/built-in-css-support.md
<ide> You can use component-level Sass via CSS Modules and the `.module.scss` or `.mod
<ide> Before you can use Next.js' built-in Sass support, be sure to install [`sass`](https://github.com/sass/sass):
<ide>
<ide> ```bash
<del>npm install sass
<add>npm install --... | 1 |
Javascript | Javascript | fix minor typos | fdb7011cfec9ffb5bfdeb00d8dfb1a0225d12bdf | <ide><path>examples/jsm/utils/BufferGeometryUtils.js
<ide> function interleaveAttributes( attributes ) {
<ide> let arrayLength = 0;
<ide> let stride = 0;
<ide>
<del> // calculate the the length and type of the interleavedBuffer
<add> // calculate the length and type of the interleavedBuffer
<ide> for ( let i = 0, l... | 1 |
Ruby | Ruby | improve args passing | b57b83feeccbfd1435e018a5a79328a2313078e8 | <ide><path>Library/Homebrew/dev-cmd/ruby.rb
<ide> def ruby_args
<ide> Run a Ruby instance with Homebrew's libraries loaded, e.g.
<ide> `brew ruby -e "puts :gcc.f.deps"` or `brew ruby script.rb`.
<ide> EOS
<del> switch "-r",
<del> description: "Load a library using `require`."
<del... | 1 |
Java | Java | update javadoc for throttlewithtimeout | 2a3ade2d6162dc328a340ce247ccdf569284ffa8 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public static Observable<Long> interval(long interval, TimeUnit unit, Scheduler
<ide> }
<ide>
<ide> /**
<del> * Throttles the {@link Observable} by dropping values which are followed by newer values before the timer has expired.
<add> * ... | 1 |
Text | Text | add info and fix command description [ci-skip] | a3ffa9b9088cf0dd3daa964a1f365dd10119fcf6 | <ide><path>guides/source/command_line.md
<ide> $ rails new commandsapp
<ide> run bundle install
<ide> ```
<ide>
<del>Rails will set you up with what seems like a huge amount of stuff for such a tiny command! You've got the entire Rails directory structure now with all the code you need to run our simple appli... | 1 |
Go | Go | ignore nodata errors when delete thin device | 7c6ef28042c20fdad23cd461ab49b9cfa0c757df | <ide><path>integration/container/stop_test.go
<add>package container
<add>
<add>import (
<add> "context"
<add> "fmt"
<add> "strings"
<add> "testing"
<add> "time"
<add>
<add> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/api/types/container"
<add> "github.com/docker/docker/api/types/network"
<add>... | 1 |
Javascript | Javascript | fix strict js wanings | e72216649abdf0c24cd625d35f82967e1b8438ee | <ide><path>fonts.js
<ide> var Type2CFF = (function type2CFF() {
<ide> if (unicode <= 0x1f || (unicode >= 127 && unicode <= 255))
<ide> unicode += kCmapGlyphOffset;
<ide>
<del> var width = isNum(mapping.width) ? mapping.width : defaultWidth;
<add> var width = (mapping.hasOwnProperty('wid... | 2 |
PHP | PHP | use label widget in multi-checkbox widget | 0fdb8b7c17b7af22f45ee159680bc82be415c8dc | <ide><path>src/View/Input/MultiCheckbox.php
<ide> class MultiCheckbox {
<ide> */
<ide> protected $_templates;
<ide>
<add>/**
<add> * Label widget instance.
<add> *
<add> * @var Cake\View\Input\Label
<add> */
<add> protected $_label;
<add>
<ide> /**
<ide> * Render multi-checkbox widget.
<ide> *
<add> * This class u... | 2 |
Python | Python | add modes to batchnormalization, fix bn issues | 54691f9be052e5564ca0e5c6a503e641ea3142e1 | <ide><path>keras/layers/normalization.py
<ide> from ..utils.theano_utils import shared_zeros
<ide> from .. import initializations
<ide>
<add>import theano.tensor as T
<add>
<ide> class BatchNormalization(Layer):
<ide> '''
<ide> Reference:
<ide> Batch Normalization: Accelerating Deep Network Tr... | 1 |
Ruby | Ruby | use greedy_* method parameters | 8dc060c88b360c26571b2549af46a108fc7a9078 | <ide><path>Library/Homebrew/cask/cmd/upgrade.rb
<ide> def self.upgrade_casks(
<ide>
<ide> outdated_casks = if casks.empty?
<ide> Caskroom.casks(config: Config.from_args(args)).select do |cask|
<del> cask.outdated?(greedy: greedy, greedy_latest: args.greedy_latest?,
<del> ... | 2 |
Javascript | Javascript | fix the absolute path used in nodestuffplugin | 7eb35558440ad1ee04cad536dfdf7078924b275d | <ide><path>lib/NodeStuffPlugin.js
<ide> NodeStuffPlugin.prototype.apply = function(compiler) {
<ide> return new BasicEvaluatedExpression().setBoolean(false).setRange(expr.range);
<ide> });
<ide> compiler.parser.plugin("expression module", function() {
<del> return ModuleParserHelpers.addParsedVariable(this, "modul... | 1 |
Go | Go | add support for uptodate filter, for internal use | 91c86c7e26c40ff3e422adcdd88d1649dd9dbc9b | <ide><path>daemon/cluster/filters.go
<ide> func newListTasksFilters(filter filters.Args, transformFunc func(filters.Args) e
<ide> "service": true,
<ide> "node": true,
<ide> "desired-state": true,
<add> // UpToDate is not meant to be exposed to users. It's for
<add> // internal use in checking cre... | 1 |
Python | Python | fix error handling | 66586a6807fb26bb001cd008d86dae5056d7c25f | <ide><path>libcloud/compute/drivers/vsphere.py
<ide> def create_node(self, **kwargs):
<ide> # disk_spec.device.controllerKey = controller.key
<ide> # devices.append(disk_spec)
<ide>
<del> if size.disk:
<del> for dev in template.config.hardware.device:
<del> if isinstanc... | 1 |
Text | Text | add paragraph on consistency | ee78531d6338a9ae9ddf15b8dad4002f9f822573 | <ide><path>guide/english/agile/velocity/index.md
<ide> title: Velocity
<ide> ---
<ide> ## Velocity
<ide>
<del>On a Scrum team, you determine the velocity at the end of each iteration. It is simply the sum of Story Points completed within the timebox.
<add>On a Scrum team, you determine the velocity at the end of each ... | 1 |
Mixed | Go | add docs for reading dockerfile from stdin | e838679cd7954775cbe7ff72ef2da02dbe791fcb | <ide><path>docs/reference/commandline/build.md
<ide> $ docker build -f Dockerfile.debug .
<ide> This will use a file called `Dockerfile.debug` for the build instructions
<ide> instead of `Dockerfile`.
<ide>
<add>```bash
<add>$ curl example.com/remote/Dockerfile | docker build -f - .
<add>```
<add>
<add>The above comma... | 2 |
Javascript | Javascript | add tests for hotupdatechunktemplate | 9681a3b15f6c565c1b47ec1a85dd84c26f4f58d2 | <ide><path>test/HotUpdateChunkTemplate.test.js
<add>var should = require("should");
<add>var sinon = require("sinon");
<add>var HotUpdateChunkTemplate = require("../lib/HotUpdateChunkTemplate");
<add>
<add>describe("HotUpdateChunkTemplate", function() {
<add> var env;
<add>
<add> beforeEach(function() {
<add> env = {
... | 1 |
Javascript | Javascript | add more test cases for dynamic reexports | 625b3832c77e2f29237f28144bff0b678ccdf20c | <ide><path>test/cases/side-effects/dynamic-reexports/checked-export/dynamic.js
<add>Object(exports).value = 123;
<add>Object(exports).value2 = 42;
<ide><path>test/cases/side-effects/dynamic-reexports/checked-export/index.js
<add>export { value, value2 } from "./module";
<ide><path>test/cases/side-effects/dynamic-reexpo... | 7 |
Javascript | Javascript | add types to various plugins | d881bb4c8fcfe40324382fc11fb727d18f4323ba | <ide><path>lib/APIPlugin.js
<ide> const {
<ide> toConstantDependencyWithWebpackRequire,
<ide> evaluateToString
<ide> } = require("./JavascriptParserHelpers");
<add>const NullFactory = require("./NullFactory");
<ide> const ConstDependency = require("./dependencies/ConstDependency");
<ide>
<del>const NullFactory = req... | 21 |
Ruby | Ruby | fix audit error when homepage is missing | 46736c5e8101e8f4568303eacab6a0cfaaad9298 | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def url_match_homepage?
<ide> else
<ide> host_uri.host
<ide> end
<add>
<add> return false if homepage.blank?
<add>
<ide> home = homepage.downcase
<ide> if (split_host = host.split(".")).length >= 3
<ide> host = split_host[-2..]... | 1 |
Go | Go | remove watchmiss for swarm mode | dd47466a4d722dae8e30d1c1536e12acfd159e7b | <ide><path>libnetwork/drivers/overlay/ov_network.go
<ide> import (
<ide> "strings"
<ide> "sync"
<ide> "syscall"
<del> "time"
<ide>
<ide> "github.com/docker/docker/pkg/reexec"
<ide> "github.com/docker/libnetwork/datastore"
<ide> func (n *network) initSandbox(restore bool) error {
<ide> n.driver.initSandboxPeerDB... | 1 |
Ruby | Ruby | raise error when file does not contain a cask | 5a45315349c440241c7a5669a33d2707682d8f82 | <ide><path>Library/Homebrew/cask/lib/hbc/cask.rb
<ide> def self.each
<ide> return to_enum unless block_given?
<ide>
<ide> Tap.flat_map(&:cask_files).each do |f|
<del> yield CaskLoader::FromTapPathLoader.new(f).load
<add> begin
<add> yield CaskLoader::FromTapPathLoader.new(f).load
<ad... | 3 |
Text | Text | add info about required unix tools | 3e7da1d7a24d766d3ea36cc8cb8bb4e478176c68 | <ide><path>benchmark/README.md
<ide> benchmarker to be used by providing it as an argument, e. g.:
<ide>
<ide> `node benchmark/http/simple.js benchmarker=autocannon`
<ide>
<add>Basic Unix tools are required for some benchmarks.
<add>[Git for Windows][git-for-windows] includes Git Bash and the necessary tools,
<add>wh... | 1 |
Python | Python | handle redis connection errors in result consumer | 6ccdc7b9f8e02d21275e923dccc7ccb9185e6153 | <ide><path>celery/backends/redis.py
<ide> from __future__ import absolute_import, unicode_literals
<ide>
<ide> import time
<add>from contextlib import contextmanager
<ide> from functools import partial
<ide> from ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED
<ide>
<ide>
<ide> E_LOST = 'Connection to Redis lost:... | 2 |
Go | Go | add support for container id files (a la pidfile) | 64e74cefb746caa7f2a581149bbd523dd1ac9215 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdRun(args ...string) error {
<ide> for _, warning := range runResult.Warnings {
<ide> fmt.Fprintf(cli.err, "WARNING: %s\n", warning)
<ide> }
<add> if len(hostConfig.ContainerIDFile) > 0 {
<add> if _, err := ioutil.ReadFile(hostConfig.ContainerIDFile); err == nil... | 2 |
Text | Text | add 2.6.0-beta.4 to changelog.md | 15e31d665ecc21786cbf0f5599562d7a4f6536be | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.6.0-beta.4 (May 09, 2016)
<add>
<add>- [#13442](https://github.com/emberjs/ember.js/pull/13442) [BUGFIX] Revert `Ember.Handlebars.SafeString` deprecation.
<add>- [#13449](https://github.com/emberjs/ember.js/pull/13449) [BUGFIX] Ensure that `Ember.get(nul... | 1 |
Ruby | Ruby | disallow external tap dependencies in core | 6c9c3c607c0585e5361e272e976f3895f87263a4 | <ide><path>Library/Homebrew/formula_auditor.rb
<ide> def audit_deps
<ide>
<ide> next unless @core_tap
<ide>
<add> unless dep_f.tap.core_tap?
<add> problem <<~EOS
<add> Dependency '#{dep.name}' is not in homebrew/core. Formulae in homebrew/core
<add> should not h... | 1 |
Text | Text | make some corrections to the translation | cba8bcdd046cfe4fe179b2f040a619dbc84ac213 | <ide><path>guide/russian/working-in-tech/imposter-syndrome/index.md
<ide> ---
<ide> title: Imposter Syndrome
<del>localeTitle: Иммунный синдром
<add>localeTitle: Синдром самозванца
<ide> ---
<del>## Иммунный синдром
<add>## Синдром самозванца
<ide>
<del>Синдром Импостера - это чувство _мошенничества_ или _не достаточн... | 1 |
Python | Python | remove python 3.7 checks from the array api code | 9978cc5a1861533abf7c6ed7b0f4e1d732171094 | <ide><path>numpy/_pytesttester.py
<ide> def __call__(self, label='fast', verbose=1, extra_argv=None,
<ide> # so fetch module for suppression here.
<ide> from numpy.distutils import cpuinfo
<ide>
<del> if sys.version_info >= (3, 8):
<del> # Ignore the warning from impor... | 2 |
Python | Python | fix several typos | a2d11d4724d3cf4a0b18a7fe8448723d92e1c716 | <ide><path>examples/lstm_seq2seq.py
<ide> # Summary of the algorithm
<ide>
<ide> - We start with input sequences from a domain (e.g. English sentences)
<del> and correspding target sequences from another domain
<add> and corresponding target sequences from another domain
<ide> (e.g. French sentences).
<ide> ... | 5 |
PHP | PHP | apply fixes from styleci | 9c4cf333158e9b00e58888686b65c55774de8fdc | <ide><path>src/Illuminate/View/Factory.php
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> use InvalidArgumentException;
<del>use Illuminate\Support\Collection;
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Contracts\Support\Arrayable;
<ide> use Illuminate\View\Engines... | 1 |
Text | Text | add tip about --gpu-id to training quickstart | 7198be0f4bfd4ea6d63a18d01326d77827751841 | <ide><path>website/docs/usage/training.md
<ide> spaCy's binary `.spacy` format. You can either include the data paths in the
<ide> $ python -m spacy train config.cfg --output ./output --paths.train ./train.spacy --paths.dev ./dev.spacy
<ide> ```
<ide>
<add>> #### Tip: Enable your GPU
<add>>
<add>> Use the `--gpu-id` o... | 1 |
Python | Python | make create_tokenizer work with japanese | 84041a2bb517841d725781bdd72b1daf4f8e603d | <ide><path>spacy/ja/__init__.py
<ide>
<ide> from os import path
<ide>
<del>from ..language import Language
<add>from ..language import Language, BaseDefaults
<add>from ..tokenizer import Tokenizer
<ide> from ..attrs import LANG
<ide> from ..tokens import Doc
<ide>
<ide> from .language_data import *
<ide>
<del>
<del... | 1 |
Text | Text | specify possible need for c++ compiler | 4886e028bfcb32c6cdfdf210802f862c1fca971f | <ide><path>README.md
<ide> The process to build `react.js` is built entirely on top of node.js, using many
<ide> #### Prerequisites
<ide>
<ide> * You have `node` installed at v4.0.0+ and `npm` at v2.0.0+.
<add>* You have `gcc` installed or are comfortable installing a compiler if needed. Some of our `npm` dependencies... | 1 |
Python | Python | improve environment variables in gcs system test | 9d9ef1addc44bb1553cf392f598366fd241c05c4 | <ide><path>tests/providers/google/cloud/operators/test_gcs_system_helper.py
<ide> # under the License.
<ide> import os
<ide>
<add>from airflow.providers.google.cloud.example_dags.example_gcs import (
<add> BUCKET_1,
<add> BUCKET_2,
<add> PATH_TO_SAVED_FILE,
<add> PATH_TO_TRANSFORM_SCRIPT,
<add> PATH_TO_... | 1 |
Mixed | Ruby | apply default scope when joining associations | 55193e449a377c448e43d8fec42899ea1ff93b27 | <ide><path>activerecord/CHANGELOG.md
<add>* Apply default scope when joining associations. For example:
<add>
<add> class Post < ActiveRecord::Base
<add> default_scope -> { where published: true }
<add> end
<add>
<add> class Comment
<add> belongs_to :post
<add> end
<add>
... | 3 |
Text | Text | add ref to option to enable n-api | 7d9dfdaea3aff33535167f528115115543430f2f | <ide><path>doc/api/n-api.md
<ide> For example:
<ide> #include <node_api.h>
<ide> ```
<ide>
<add>As the feature is experimental it must be enabled with the
<add>following command line
<add>[option](https://nodejs.org/dist/latest-v8.x/docs/api/cli.html#cli_napi_modules):
<add>
<add>```bash
<add>--napi-modules
<add>```
<... | 1 |
PHP | PHP | move the authorize middleware into auth | a2c879a8e89fc2f0de989dfd5d0dac32b3a3db38 | <add><path>src/Illuminate/Auth/Middleware/Authorize.php
<del><path>src/Illuminate/Foundation/Http/Middleware/Authorize.php
<ide> <?php
<ide>
<del>namespace Illuminate\Foundation\Http\Middleware;
<add>namespace Illuminate\Auth\Middleware;
<ide>
<ide> use Closure;
<ide> use Illuminate\Contracts\Auth\Access\Gate;
<del>u... | 2 |
Ruby | Ruby | remove dead code | f51439329ba86ae6bbb9c513b03ec4f3eb23ef43 | <ide><path>Library/Homebrew/formula_versions.rb
<ide> def entry_name
<ide> @entry_name ||= f.path.relative_path_from(repository).to_s
<ide> end
<ide>
<del> def each
<del> versions = Set.new
<del> rev_list do |rev|
<del> version = version_at_revision(rev)
<del> next if version.nil?
<del> yie... | 1 |
Text | Text | add missing api entries on performance | c071bd581ae30585f5326ac0ce1cb0d80007664e | <ide><path>doc/api/perf_hooks.md
<ide> added: v8.5.0
<ide> If `name` is not provided, removes all `PerformanceMark` objects from the
<ide> Performance Timeline. If `name` is provided, removes only the named mark.
<ide>
<add>### `performance.clearMeasures([name])`
<add>
<add><!-- YAML
<add>added: v16.7.0
<add>-->
<add>... | 1 |
Ruby | Ruby | fix caveats when loading from the api | 15cf890ed747babbcc32a1ac9283ea2f56e3a019 | <ide><path>Library/Homebrew/formulary.rb
<ide> def install
<ide>
<ide> @caveats_string = json_formula["caveats"]
<ide> def caveats
<del> @caveats_string
<add> self.class.instance_variable_get(:@caveats_string)
<ide> end
<ide> end
<ide>
<ide><path>Library/Homebrew/test/formulary_spe... | 2 |
Java | Java | add messaging.simp.user package | 307bf4bede299bdc95a99f68ae51fd076d5cdca9 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java
<ide> public SimpMessagingTemplate(MessageChannel messageChannel) {
<ide> /**
<ide> * Configure the prefix to use for destinations targeting a specific user.
<ide> * <p>The default value is "/user/".
<del> * @s... | 23 |
Text | Text | add v3.28.0-beta.2 to changelog.md | 455fdb2d8d3f3f7941169468c48fe19985aedc32 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.28.0-beta.2 (May 27, 2021)
<add>
<add>- [#19511](https://github.com/emberjs/ember.js/pull/19511) / [#19548](https://github.com/emberjs/ember.js/pull/19548) [BUGFIX] Makes the (hash) helper lazy
<add>- [#19530](https://github.com/emberjs/ember.js/pull/19... | 1 |
PHP | PHP | add test for | 886d51e1fda637e78e1f5f23f16a66bafa3040c8 | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testContainWithClosure(): void
<ide> * Integration test that uses the contain signature that is the same as the
<ide> * matching signature
<ide> */
<del> public function testContainSecondSignature(): void
<add> public function testCo... | 1 |
Text | Text | update changelog for 15.3.1 | 9af8be654bebe800c49871f2c7ad33b673113a3b | <ide><path>CHANGELOG.md
<add>## 15.3.1 (August 19, 2016)
<add>
<add>### React
<add>
<add>- Improve performance of development builds in various ways. ([@gaearon](https://github.com/gaearon) in [#7461](https://github.com/facebook/react/pull/7461), [#7463](https://github.com/facebook/react/pull/7463), [#7483](https://git... | 1 |
Ruby | Ruby | list the major frameworks you can remove together | 7956d4014b8f0862721cf274c600ef81dcc0a484 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def self.add_shared_options_for(name)
<ide> class_option :skip_active_record, type: :boolean, aliases: '-O', default: false,
<ide> desc: 'Skip Active Record files'
<ide>
<add> class_option :skip_action_c... | 1 |
Javascript | Javascript | register default container on fallback registry | 93ef88ff323bed9103a25df93cd35f8acf54e986 | <ide><path>packages/container/lib/registry.js
<ide> Registry.prototype = {
<ide> container: function(options) {
<ide> var container = new Container(this, options);
<ide>
<del> // Allow deprecated access to the first child container's `lookup` and
<del> // `lookupFactory` methods to avoid breaking compatibi... | 1 |
Text | Text | fix plugins links | c2cf349bcd3a32a01da6db83700613fc9c10e12a | <ide><path>docs/extend/index.md
<ide> weight = 6
<ide>
<ide> Currently, you can extend Docker by adding a plugin. This section contains the following topics:
<ide>
<del>* [Understand Docker plugins](plugins.md)
<del>* [Write a volume plugin](plugins_volumes.md)
<del>* [Docker plugin API](plugin_api.md)
<del>
<del>
<... | 4 |
Text | Text | update jsfiddle with working cdn | bf1b3f8f1c8cf265c9e47e5d45ef17b2f8c5b502 | <ide><path>README.md
<ide> function animate() {
<ide> }
<ide> ```
<ide>
<del>If everything went well you should see [this](https://jsfiddle.net/f2Lommf5/).
<add>If everything went well you should see [this](https://jsfiddle.net/3hkq1L4s/).
<ide>
<ide> ### Change log ###
<ide> | 1 |
Python | Python | update head pruning | e4b46d86ce0cbcbc9011375add7f3713eb5ef967 | <ide><path>examples/bertology.py
<ide> def compute_heads_importance(args, model, eval_dataloader, compute_entropy=True,
<ide> # Normalize
<ide> attn_entropy /= tot_tokens
<ide> head_importance /= tot_tokens
<del> if args.normalize_importance:
<add> # Layerwise importance normalization
<add> if not ... | 1 |
Text | Text | fix typo in linkinglibraries.md | 22845b56f099f74cff26b7659c0938c914f06954 | <ide><path>docs/LinkingLibraries.md
<ide> received.
<ide>
<ide> For that we need to know the library's headers. To achieve that you have to go
<ide> to your project's file, select `Build Settings` and search for `Header Search
<del>Paths`. There you should include the path to you library (if it has relevant
<add>Paths... | 1 |
Javascript | Javascript | fix viewport issue in with-react-native-web | c461d46efd16d99db73a0841b2ab4651d8371f0f | <ide><path>examples/with-react-native-web/pages/_document.js
<ide> export default class MyDocument extends Document {
<ide> <html style={{ height: '100%', width: '100%' }}>
<ide> <Head>
<ide> <title>react-native-web</title>
<add> <meta name='viewport' content='width=device-width, initia... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.