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 |
|---|---|---|---|---|---|
Text | Text | add v3.18.0-beta.2 to changelog | e208961a3303df6749bb571579e9f73d48a9c2bf | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.18.0-beta.2 (March 16, 2020)
<add>
<add>- [#18807](https://github.com/emberjs/ember.js/pull/18807) [BUGFIX] Do not error (RE: `elementId` changing) if `elementId` is not changed
<add>- [#18811](https://github.com/emberjs/ember.js/pull/18811) [BUGFIX] Up... | 1 |
Javascript | Javascript | fix arguments order in `assert.strictequal` | a6fdbaf263767e9b7a8db6053ebea0ae44f6f1dc | <ide><path>test/parallel/test-fs-write-buffer.js
<ide> tmpdir.refresh();
<ide> const cb = common.mustCall((err, written) => {
<ide> assert.ifError(err);
<ide>
<del> assert.strictEqual(expected.length, written);
<add> assert.strictEqual(written, expected.length);
<ide> fs.closeSync(fd);
<ide> ... | 1 |
Python | Python | prepare new pypi release | 0fb0c22f3998c7c92f47837b8cd54009a3a19f75 | <ide><path>keras/__init__.py
<ide> from . import optimizers
<ide> from . import regularizers
<ide>
<del>__version__ = '2.0.2'
<add>__version__ = '2.0.3'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='2.0.2',
<add> version='2.0.3',
<ide> description='Deep Learning for Python'... | 2 |
Go | Go | use lazy unmount for local volume driver unmount | acbfe6bc56b9357d40a452f6b3901cb2c2d40404 | <ide><path>pkg/mount/flags_freebsd.go
<ide> const (
<ide> RELATIME = 0
<ide> REMOUNT = 0
<ide> STRICTATIME = 0
<add> mntDetach = 0
<ide> )
<ide><path>pkg/mount/flags_linux.go
<ide> const (
<ide> // it possible for the kernel to default to relatime or noatime but still
<ide> // allow userspace to override ... | 4 |
Javascript | Javascript | flow type animated.view | 85ac9cf6c7e33f6b5b97df7b2560c1da67976e56 | <ide><path>Libraries/Animated/src/Animated.js
<ide> 'use strict';
<ide>
<ide> import Platform from '../../Utilities/Platform';
<add>const View = require('../../Components/View/View');
<add>const React = require('react');
<add>import type {AnimatedComponentType} from './createAnimatedComponent';
<ide>
<ide> const Anim... | 4 |
PHP | PHP | intend $app->booted closure code | 38f435e2aec6d03fd37c30f17a8bf126847fec3d | <ide><path>src/Illuminate/Foundation/start.php
<ide> $app->booted(function() use ($app, $env)
<ide> {
<ide>
<del>/*
<del>|--------------------------------------------------------------------------
<del>| Load The Application Start Script
<del>|--------------------------------------------------------------------------
... | 1 |
PHP | PHP | check types when looking for 'return' | 3378533082408b5a0a87cb23d5fb3de3eff79fd2 | <ide><path>src/Routing/RequestActionTrait.php
<ide> public function requestAction($url, array $extra = [])
<ide> if (empty($url)) {
<ide> return false;
<ide> }
<del> if (($index = array_search('return', $extra)) !== false) {
<add> $isReturn = array_search('return', $extra, true... | 1 |
Ruby | Ruby | remove yaml proc param parser test | c302741d8f9c34acdeae773184b30c2ae9b58e73 | <ide><path>actionpack/test/controller/webservice_test.rb
<ide> def test_post_xml_using_a_disallowed_type_attribute
<ide> $stderr = STDERR
<ide> end
<ide>
<del> def test_register_and_use_yaml
<del> with_test_route_set do
<del> with_params_parsers Mime::YAML => Proc.new { |d| YAML.load(d) } do
<del> ... | 1 |
Javascript | Javascript | fix exceptions under some circumstances | 456c7f62c5b437aef7d23af5af9c05c30531a594 | <ide><path>src/service/xhr.bulk.js
<ide> angularServiceInject('$xhr.bulk', function($xhr, $error, $log){
<ide> }
<ide> }
<ide> bulkXHR.urls = {};
<del> bulkXHR.flush = function(success, error) {
<add> bulkXHR.flush = function(success, errorback) {
<add> assertArgFn(success = success || noop, 0);
<add> a... | 1 |
Python | Python | remove unicode declarations and tidy up | 40bb918a4c8507f5c54a722e0388eda1da1e2b7a | <ide><path>spacy/lang/es/punctuation.py
<del># coding: utf8
<del>from __future__ import unicode_literals
<del>
<ide> from ..char_classes import LIST_PUNCT, LIST_ELLIPSES, LIST_QUOTES
<ide> from ..char_classes import LIST_ICONS, CURRENCY, LIST_UNITS, PUNCT
<ide> from ..char_classes import CONCAT_QUOTES, ALPHA_LOWER, ALP... | 35 |
Python | Python | improve callback functionality | 8d3b8ff62795733ba8adcedfe454728a6f2a1181 | <ide><path>keras/callbacks.py
<ide>
<ide> from collections import deque
<ide> from .utils.generic_utils import Progbar
<add>from keras import backend as K
<ide>
<ide>
<ide> class CallbackList(object):
<ide> class EarlyStopping(Callback):
<ide> patience: number of epochs with no improvement
<ide> ... | 1 |
Python | Python | add example section in the -h tag | 7905909341f945e31de6e0e38bedc70eee241d9c | <ide><path>glances/core/glances_main.py
<ide> class GlancesMain(object):
<ide> username = "glances"
<ide> password = ""
<ide>
<add> # Exemple of use
<add> example_of_use = "\
<add>Examples of use:\n\
<add>\n\
<add>Monitor local machine (standalone mode):\n\
<add> $ glances\n\
<add>\n\
<add>Monitor local... | 1 |
Text | Text | fix duplicate command in uninstall instructions | 160a6430a91de00c065fe5900e7fd96a46f87a45 | <ide><path>docs/installation/linux/fedora.md
<ide> You can uninstall the Docker software with `dnf`.
<ide>
<ide> 1. List the package you have installed.
<ide>
<del> $ dnf list installed | grep docker dnf list installed | grep docker
<add> $ dnf list installed | grep docker
<ide> docker-engine.x86_64 1.7.1-0.1... | 1 |
Text | Text | remove misplaced period on "configuring" guide | 9977efd455002365604591e623ee19e34bf86e1f | <ide><path>guides/source/configuring.md
<ide> There are a number of settings available on `config.action_mailer`:
<ide> config.action_mailer.show_previews = false
<ide> ```
<ide>
<del>* `config.action_mailer.deliver_later_queue_name`. specifies the queue name for mailers. By default this is `mailers`.
<add>* `... | 1 |
Text | Text | update curl usage in collaborator_guide | b464d467a25bed458cf800ff5117af1c1df8841a | <ide><path>COLLABORATOR_GUIDE.md
<ide> $ git merge --ff-only origin/v1.x
<ide> Apply external patches
<ide>
<ide> ```text
<del>$ curl https://github.com/iojs/io.js/pull/xxx.patch | git am --whitespace=fix
<add>$ curl -L https://github.com/iojs/io.js/pull/xxx.patch | git am --whitespace=fix
<ide> ```
<ide>
<ide> Check... | 1 |
Mixed | Go | add container labels to service create/update | 4031d70d1be2f02e1c9d6f7738f2a816be7eeef2 | <ide><path>api/client/service/create.go
<ide> func newCreateCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> addServiceFlags(cmd, opts)
<ide>
<ide> flags.VarP(&opts.labels, flagLabel, "l", "Service labels")
<add> flags.Var(&opts.containerLabels, flagContainerLabel, "Container labels")
<ide> flags.VarP(&o... | 5 |
PHP | PHP | fix formatmessage docblock | af4c7782b7b16e07ed5a7a2a86c689bebad2740a | <ide><path>src/Illuminate/Log/Writer.php
<ide> protected function fireLogEvent($level, $message, array $context = array())
<ide> /**
<ide> * Format the parameters for the logger.
<ide> *
<del> * @param mixed $parameters
<add> * @param mixed $message
<ide> * @return void
<ide> */
<ide> protected function... | 1 |
Javascript | Javascript | simplify `didfocus` logic in `texteditorcomponent` | cfde3f21067757a67fd6d94ea97321845c522bf6 | <ide><path>src/text-editor-component.js
<ide> module.exports = class TextEditorComponent {
<ide> // Called by TextEditorElement so that focus events can be handled before
<ide> // the element is attached to the DOM.
<ide> didFocus() {
<del> // This element can be focused from a parent custom element's
<del> ... | 1 |
Javascript | Javascript | increase laziness in initializejavascriptappengine | 606fc1148709357c3da9fb5bc45abaa251205378 | <ide><path>Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js
<ide> /* eslint strict: 0 */
<ide> /* globals window: true */
<ide>
<del>require('regenerator-runtime/runtime');
<del>
<ide> if (global.GLOBAL === undefined) {
<ide> global.GLOBAL = global;
<ide> }
<ide> if (global.window === un... | 1 |
PHP | PHP | return empty string for session read failure | 8b6f49d33842ab4e9a73bff658bac2bbba9de09d | <ide><path>src/Http/Session/CacheSession.php
<ide> public function read($id)
<ide> $value = Cache::read($id, $this->_options['config']);
<ide>
<ide> if ($value === null) {
<del> return false;
<add> return '';
<ide> }
<ide>
<ide> return $value;
<ide><path>src/Http/... | 3 |
Go | Go | increase code coverage for set_matrix | b76166c1104a80ef05613a02804314f24e779a07 | <ide><path>libnetwork/common/setmatrix_test.go
<ide> package common
<ide> import (
<ide> "context"
<ide> "strconv"
<add> "strings"
<ide> "testing"
<ide> "time"
<ide>
<ide> func TestSetSerialInsertDelete(t *testing.T) {
<ide> if !b || i != 4 {
<ide> t.Fatalf("error in cardinality count %t %d", b, i)
<ide> }
<ad... | 1 |
Python | Python | fix broken test in v2 | bae940dcf0c50087029c624c7d47e396ceb34dc2 | <ide><path>official/resnet/keras/keras_common.py
<ide> def __call__(self, step):
<ide>
<ide> def _get_learning_rate(self, step):
<ide> """Compute learning rate at given step."""
<del> with tf.name_scope(self.name, 'PiecewiseConstantDecayWithWarmup', [
<del> self.rescaled_lr, self.step_boundaries, self.... | 1 |
Python | Python | improve cloud memorystore for redis example | 727c739afb565d4d394a8faedc969334cb8e738e | <ide><path>airflow/providers/google/cloud/example_dags/example_cloud_memorystore.py
<ide> get_instance >> set_acl_permission >> export_instance
<ide> export_instance >> import_instance
<ide> export_instance >> delete_instance
<del> import_instance >> delete_instance_2
<del> create_instance_2 >> failov... | 1 |
Python | Python | rewrite the algorithm from scratch | 870eebf349f78047461eb639d60921096179facb | <ide><path>maths/factorial_python.py
<del>"""Python program to find the factorial of a number provided by the user."""
<add>def factorial(input_number: int) -> int:
<add> """
<add> Non-recursive algorithm of finding factorial of the
<add> input number.
<add> >>> factorial(1)
<add> 1
<add>... | 1 |
PHP | PHP | remove aclshelltest case | b43c1cd93658a95590730b51804476f0642e73e3 | <ide><path>tests/TestCase/Console/Command/AclShellTest.php
<del><?php
<del>/**
<del> * AclShell Test file
<del> *
<del> * CakePHP : Rapid Development Framework (http://cakephp.org)
<del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> *
<del> * Licensed under The MIT License
<del> * Fo... | 1 |
Javascript | Javascript | assume the python env points to python.exe | 3ead596a5dd3607f397a2c08e5f74bc0a07d07e5 | <ide><path>script/utils/verify-requirements.js
<ide> function verifyNode() {
<ide> }
<ide>
<ide> function verifyPython27(cb) {
<del> if (process.platform !== 'win32') {
<add> if (false && process.platform !== 'win32') {
<ide> cb();
<ide> }
<ide> else {
<ide> if (!pythonExecutable) {
<ide> var syste... | 1 |
Python | Python | remove optional loss masking (now automatic) | 7115efc37b84682d5c723d1939b81297af2b3f1c | <ide><path>keras/models.py
<ide> class Sequential(Model, containers.Sequential):
<ide> - set_weights
<ide> '''
<ide>
<del> def compile(self, optimizer, loss, class_mode="categorical", theano_mode=None,
<del> mask_cost=False):
<add> def compile(self, optimizer, loss, class_mode="cat... | 2 |
Python | Python | remove riak from the list of extensions | 29c63d2f0446384aace5e48c6f949b6e24c1a184 | <ide><path>setup.py
<ide> 'pymemcache',
<ide> 'pyro',
<ide> 'redis',
<del> 'riak',
<ide> 's3',
<ide> 'slmq',
<ide> 'solar', | 1 |
Go | Go | use filepath.walkdir instead of filepath.walk | f595434abcff960b251ee0a011c7be04762c9e69 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) constructDeviceIDMap() {
<ide> }
<ide> }
<ide>
<del>func (devices *DeviceSet) deviceFileWalkFunction(path string, finfo os.FileInfo) error {
<add>func (devices *DeviceSet) deviceFileWalkFunction(path string, name string) error {
<ide... | 1 |
Python | Python | add additional information in the url_rule docs | 0a1090890f8425a69e5b004aceb04fd7527b8e35 | <ide><path>flask/wrappers.py
<ide> class Request(RequestBase, JSONMixin):
<ide> #: The internal URL rule that matched the request. This can be
<ide> #: useful to inspect which methods are allowed for the URL from
<ide> #: a before/after handler (``request.url_rule.methods``) etc.
<add> #: Though if the ... | 1 |
Javascript | Javascript | add additional test | a3ddcc5fcea200ed43188438c4a500005fc7b68f | <ide><path>test/unit/manipulation.js
<ide> test( "Index for function argument should be received (#13094)", 2, function() {
<ide> });
<ide>
<ide> });
<add>
<add>test( "Make sure jQuery.fn.remove can work on elements in documentFragment", 1, function() {
<add> var fragment = document.createDocumentFragment(),
<add>... | 1 |
Python | Python | remove english exceptions with mismatched features | 727ce6d1f59f688fa46fe8ae3c37e30cf106e291 | <ide><path>spacy/lang/en/tokenizer_exceptions.py
<ide>
<ide> _exc[orth + "m"] = [
<ide> {ORTH: orth, NORM: pron},
<del> {ORTH: "m", "tenspect": 1, "number": 1},
<add> {ORTH: "m"},
<ide> ]
<ide>
<ide> _exc[orth + "'ma"] = [
<ide>
<ide> # W-words, relative pron... | 2 |
Go | Go | normalize comment formatting | f4f56b1197934858b15d7b0548b2821a8e1322e2 | <ide><path>daemon/container.go
<ide> func (daemon *Daemon) newContainer(name string, operatingSystem string, config *
<ide> base.Created = time.Now().UTC()
<ide> base.Managed = managed
<ide> base.Path = entrypoint
<del> base.Args = args //FIXME: de-duplicate from config
<add> base.Args = args // FIXME: de-duplicate ... | 7 |
Javascript | Javascript | clean server.js and runserver.js | 11f102373d74669d57fd048c4288beca7f47059e | <ide><path>local-cli/server/runServer.js
<ide> const statusPageMiddleware = require('./middleware/statusPageMiddleware.js');
<ide> const systraceProfileMiddleware = require('./middleware/systraceProfileMiddleware.js');
<ide> const webSocketProxy = require('./util/webSocketProxy.js');
<ide>
<del>/* $FlowFixMe(site=reac... | 1 |
Ruby | Ruby | add collectionproxy#uniq documentation | 55c05276c71548f158cb9ae28fe2a154de9f8349 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide> #
<ide> # Pet.find(4, 5, 6) # => ActiveRecord::RecordNotFound: Couldn't find all Pets with IDs (4, 5, 6)
<ide>
<add> ##
<add> # :method: uniq
<add> #
<add> # :call-s... | 1 |
Javascript | Javascript | update code style | 0e4318bf54279ffba5ce0103b31c58c6a43f2719 | <ide><path>editor/js/Sidebar.Settings.js
<ide> Sidebar.Settings = function ( editor ) {
<ide>
<ide> container.add( themeRow );
<ide>
<add> // scene camera position
<add>
<ide> var sceneCameraRow = new UI.Row();
<del> container.add(sceneCameraRow);
<add> container.add( sceneCameraRow );
<ide>
<del> var sceneCameraS... | 2 |
Ruby | Ruby | pull the flash methods in to their own module | add46482a540b33184f3011c5c307f4b8e90c9cc | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def logger
<ide> get_header("action_dispatch.logger".freeze)
<ide> end
<ide>
<add> def commit_flash
<add> end
<add>
<ide> private
<ide> def check_method(name)
<ide> HTTP_METHOD_LOOKUP[name] || raise(ActionController::Unkn... | 2 |
Java | Java | fix checkstyle warning | 57d006b3ffd3c02729ebb3122b7f9e195eccf47c | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
<ide> public abstract class DataBufferUtils {
<ide>
<ide> /**
<ide> * Workaround to disable use of pooled buffers:
<del> * https://github.com/reactor/reactor-core/issues/1634
<add> * https://github.com/reactor/reactor-cor... | 1 |
PHP | PHP | add some additional postgres specific types | b5d7264eacb384de1a3a93d18405a350a1babc9b | <ide><path>lib/Cake/Database/Dialect/PostgresDialectTrait.php
<ide> public function convertColumn($column) {
<ide> if ($col === 'smallint') {
<ide> return ['integer', 5];
<ide> }
<add> if ($col === 'inet') {
<add> return ['string', 39];
<add> }
<add> if ($col === 'uuid') {
<add> return ['string', 36];
<ad... | 2 |
Javascript | Javascript | remove unneeded member isimportemitted | a3df74b2a173c9cf89671d119710cb3648410920 | <ide><path>lib/dependencies/HarmonyAcceptImportDependency.js
<ide> const HarmonyImportDependency = require("./HarmonyImportDependency");
<ide> class HarmonyAcceptImportDependency extends HarmonyImportDependency {
<ide> constructor(request, originModule, parserScope) {
<ide> super(request, originModule, NaN, parserSc... | 1 |
PHP | PHP | use name variable | 796ed1ed7ce5622c2ff9437d2cecf096201d7efb | <ide><path>src/Illuminate/Log/LogManager.php
<ide> protected function formatter()
<ide> */
<ide> protected function parseChannel(array $config)
<ide> {
<del> if (! isset($config['channel'])) {
<add> if (! isset($config['name'])) {
<ide> return $this->app->bound('env') ? $this->app... | 1 |
Javascript | Javascript | apply changes suggested by linter | d790c4bbc28fdbc3dece028ec6c85b4e64d25fd3 | <ide><path>src/path-watcher.js
<ide> class NSFWNativeWatcher extends NativeWatcher {
<ide> typeof event.oldFile === 'undefined' ? '' : event.oldFile
<ide> );
<ide> payload.path = path.join(
<del> event.directory,
<add> event.directory,
<ide> ... | 1 |
Ruby | Ruby | fix failing tests related to rake notes | 137f3be81b1e10240284cff5f71cd9d9fb30ac14 | <ide><path>railties/test/application/rake/notes_test.rb
<ide> def teardown
<ide> assert_match(/note in test directory/, output)
<ide> assert_no_match(/note in some_other directory/, output)
<ide>
<del> assert_equal 5, lines.size
<add> assert_equal 6, lines.size
<ide>
<ide> ... | 1 |
Text | Text | clarify relation between a file and a module | f45eb1698ef920ccfd0aa5e861c68fd3e04e1e09 | <ide><path>doc/api/modules.md
<ide>
<ide> <!--name=module-->
<ide>
<del>Node.js has a simple module loading system. In Node.js, files and modules are
<del>in one-to-one correspondence. As an example, `foo.js` loads the module
<del>`circle.js` in the same directory.
<add>Node.js has a simple module loading system. ... | 1 |
Text | Text | add messages for facebook github bot | dea2199af2b64487ec20b58313003c8d9a065b79 | <ide><path>bots/NewIssueGreeting.md
<add>Hey <person>, thanks for reporting this issue!
<add>
<add>We've started using a new website called **[Product Pains](https://productpains.com/product/react-native/?tab=top)** to help the community **prioritize issues**.
<add>
<add>We have limited bandwidth, it's therefore import... | 3 |
Javascript | Javascript | add finally block for clearing reactupdates state | 7d3db0e5ed2964b89874246d0efc72d75af58ede | <ide><path>src/core/ReactUpdates.js
<ide> function batchedUpdates(callback) {
<ide> );
<ide> isBatchingUpdates = true;
<ide>
<del> callback();
<del> // TODO: Sort components by depth such that parent components update first
<del> for (var i = 0; i < dirtyComponents.length; i++) {
<del> // If a component is u... | 1 |
Ruby | Ruby | fix flaky test | c241dccbc8d4eca71a6130208ef09ec8e89a42c9 | <ide><path>Library/Homebrew/test/resource_spec.rb
<ide> end
<ide>
<ide> specify "#verify_download_integrity_mismatch" do
<del> fn = double(file?: true)
<add> fn = double(file?: true, basename: "foo")
<ide> checksum = subject.sha256(TEST_SHA256)
<ide>
<ide> expect(fn).to receive(:verify_checksum).wit... | 1 |
Python | Python | add more integration tests for groups | 53e032d28c504a0beda4a497c22f41bce5090594 | <ide><path>t/integration/test_canvas.py
<ide> def test_nested_chain_group_lone(self, manager):
<ide> res = sig.delay()
<ide> assert res.get(timeout=TIMEOUT) == [42, 42]
<ide>
<add> def test_nested_chain_group_mid(self, manager):
<add> """
<add> Test that a mid-point group in a chain co... | 1 |
Ruby | Ruby | add message to `assert` in `assert_enqueued_with` | 39bef5823ff611c8e3a066ab398e2dd763888f9a | <ide><path>activejob/lib/active_job/test_helper.rb
<ide> def assert_enqueued_with(args = {}, &_block)
<ide> matching_job = enqueued_jobs.any? do |job|
<ide> args.all? { |key, value| value == job[key] }
<ide> end
<del> assert matching_job
<add> assert matching_job, "No enqueued jo... | 2 |
Ruby | Ruby | fix failing test using custom file watcher | c3668c39502405607f33faff18b450623809dbba | <ide><path>railties/test/application/loading_test.rb
<ide> def self.counter; 2; end
<ide> config.file_watcher = Class.new do
<ide> def initialize(*); end
<ide> def updated?; false; end
<add> def execute; end
<add> def execute_if_updated; false; end
<ide> end
<ide> RUBY
<ide... | 1 |
Javascript | Javascript | add test for outlet inside nested render helper | 545a3518af18424cf4e1b4d3d197685315e74258 | <ide><path>packages/ember/tests/routing/basic_test.js
<ide> QUnit.test("Can disconnect from the render helper's children", function() {
<ide> Ember.run(router, 'send', 'disconnect');
<ide> equal(Ember.$('#qunit-fixture .foo .index').text(), '');
<ide> });
<add>
<add>QUnit.test("Can render({into:...}) nested render ... | 1 |
Ruby | Ruby | fix os version logic for uses_from_macos | f6ef26a127fdcc2687004ffef198f519fd160cfd | <ide><path>Library/Homebrew/extend/os/mac/software_spec.rb
<ide> def uses_from_macos(deps, **args)
<ide> def add_mac_dependency?(args)
<ide> args.each { |key, version| args[key] = OS::Mac::Version.from_symbol(version) }
<ide>
<del> return false if args[:after] && OS::Mac.version < args[:after]
<add> return... | 2 |
Python | Python | reduce max_length to 64 in static_batch cases | 39638d6686ff69a427799a7db0d77d9ad8c72192 | <ide><path>official/transformer/v2/transformer_benchmark.py
<ide> def benchmark_1_gpu_static_batch(self):
<ide> FLAGS.batch_size = 4096
<ide> FLAGS.train_steps = 100000
<ide> FLAGS.steps_between_evals = 5000
<del> # TODO(guptapriya): Add max_length
<ide> FLAGS.static_batch = True
<add> FLAGS.max_l... | 1 |
Ruby | Ruby | add safe html support to arrays of translations | 42c353705abf133b76dd989bb477af449db8f9fb | <ide><path>actionview/lib/action_view/helpers/translation_helper.rb
<ide> def translate(key, options = {})
<ide> end
<ide> end
<ide> translation = I18n.translate(scope_key_by_partial(key), html_safe_options.merge(raise: i18n_raise))
<del>
<del> translation.respond_to?(:html_safe... | 2 |
Ruby | Ruby | fix x11 env setup | 115501d42f0f65f7b801851a0b20b45c6ef7eba5 | <ide><path>Library/Homebrew/requirements.rb
<ide> class X11Dependency < Requirement
<ide>
<ide> fatal true
<ide>
<del> env { x11 }
<add> env { ENV.x11 }
<ide>
<ide> def initialize(name="x11", *tags)
<ide> tags.flatten! | 1 |
Python | Python | unlocalize line numbers and ids in debug 500 view | 6c12cd15e990b0ff5a5e85328f0a092f4bfe8080 | <ide><path>django/views/debug.py
<ide> def format_path_status(self, path):
<ide> return "File exists"
<ide>
<ide> def get_traceback_data(self):
<del> "Return a Context instance containing traceback information."
<add> """Return a dictionary containing traceback information."""
<ide>
<ide> ... | 4 |
Javascript | Javascript | use simplfied validator | b24ab473d51d7bd9b781b0ef52c940089087a799 | <ide><path>test/parallel/test-validators.js
<ide> const invalidArgValueError = {
<ide> }, invalidArgTypeError);
<ide> });
<ide>
<del> validateArray([1], 'foo', { minLength: 1 });
<add> validateArray([1], 'foo', 1);
<ide> assert.throws(() => {
<del> validateArray([], 'foo', { minLength: 1 });
<add> ... | 1 |
Go | Go | reorganize plugin package into sub packages | 27a55fba28ff9c085385254cb69ecc8ea6891aa9 | <ide><path>plugin/backend.go
<ide> import (
<ide> "github.com/docker/docker/pkg/archive"
<ide> "github.com/docker/docker/pkg/stringid"
<ide> "github.com/docker/docker/plugin/distribution"
<add> "github.com/docker/docker/plugin/v2"
<ide> "github.com/docker/docker/reference"
<ide> "github.com/docker/engine-api/types... | 10 |
Text | Text | simplify http2 wording and formatting | a081b43919644adcae0491948cd994946f132be7 | <ide><path>doc/api/http2.md
<ide> is emitted immediately after queuing the last chunk of payload data to be sent.
<ide> The `http2stream.sendTrailers()` method can then be called to send trailing
<ide> headers to the peer.
<ide>
<del>It is important to note that when `options.waitForTrailers` is set, the
<del>`Http2St... | 1 |
Java | Java | bind template polish | e6b6743c444923e762ab672c5583349eba5766b0 | <ide><path>org.springframework.context/src/main/java/org/springframework/model/binder/support/BindTemplate.java
<ide> * @author Keith Donald
<ide> * @since 3.0
<ide> * @see #setRequiredFields(String[])
<del> * @see #bind(Map)
<add> * @see #bind(Map, FieldBinder)
<ide> */
<ide> public class BindTemplate {
<ide> | 1 |
Javascript | Javascript | fix simple typo | bed08c9c6661d6da5ed6337f194402ea02a8d14c | <ide><path>src/Angular.js
<ide> function shallowCopy(src, dst) {
<ide> *
<ide> * * Both objects or values pass `===` comparison.
<ide> * * Both objects or values are of the same type and all of their properties pass `===` comparison.
<del> * * Both values are NaN. (In JavasScript, NaN == NaN => false. But we conside... | 1 |
Ruby | Ruby | improve duplicable documentation [ci skip] | d1630c38b30de37e8936e103a137e9c5d3381f21 | <ide><path>activesupport/lib/active_support/core_ext/object/duplicable.rb
<ide> class Object
<ide> # Can you safely dup this object?
<ide> #
<del> # False for +nil+, +false+, +true+, symbol, number objects;
<add> # False for +nil+, +false+, +true+, symbol, number, method objects;
<ide> # true otherwise.
<ide> ... | 1 |
Python | Python | fix missing string import | 02a822342f565f8401463a446afae3054f2820e7 | <ide><path>numpy/distutils/misc_util.py
<ide> import copy
<ide> import glob
<ide> import atexit
<add>import string
<ide> import tempfile
<ide>
<ide> try:
<ide> def get_build_architecture():
<ide>
<ide> Possible results are "Intel", "Itanium", or "AMD64".
<ide> """
<del>
<ide> p... | 1 |
Javascript | Javascript | fix a leaking global | 5b740c488f0e4251a3e534cab79da8b05df7a195 | <ide><path>lib/fs.js
<ide> fs.unwatchFile = function (filename) {
<ide> // Realpath
<ide>
<ide> var path = require('path');
<del>var normalize = path.normalize
<del> normalizeArray = path.normalizeArray;
<add>var normalize = path.normalize;
<add>var normalizeArray = path.normalizeArray;
<ide>
<ide> fs.realpathSync... | 1 |
Javascript | Javascript | fix matcher tests to be dev-only | 854c9539058834038b67a87a7146a1ec2a2ceeb6 | <ide><path>scripts/jest/matchers/__tests__/toWarnDev-test.js
<ide> describe('toWarnDev', () => {
<ide> it('does not fail if a warning contains a stack', () => {
<ide> expect(() => {
<del> console.error('Hello\n in div');
<add> if (__DEV__) {
<add> console.error('Hello\n in div');
<add> ... | 1 |
Python | Python | improve mysqltohiveoperator tests | 9c19f0db7dd39103ac9bc884995d286ba8530c10 | <ide><path>tests/providers/apache/hive/transfers/test_mysql_to_hive.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide>
<del>import unittest
<add>import textwrap
<ide> from collections import OrderedDict
<ide> from contextlib import closing
<del>from os import path
<ide>... | 1 |
Javascript | Javascript | add copy function | cf70dd04a7b3f6c16d6a16b927d898ec8da10246 | <ide><path>examples/js/cameras/CombinedCamera.js
<ide> THREE.CombinedCamera.prototype.toOrthographic = function () {
<ide>
<ide> };
<ide>
<add>THREE.CombinedCamera.prototype.copy = function ( source ) {
<ide>
<add> THREE.Camera.prototype.copy.call( this, source );
<add>
<add> this.fov = source.fov;
<add> this.far = ... | 1 |
Go | Go | replace generaterandomid with generatenoncryptoid | 6bca8ec3c9ccc169c53b3d7060fe5c8ba8670aac | <ide><path>api/client/ps/custom_test.go
<ide> import (
<ide> )
<ide>
<ide> func TestContainerContextID(t *testing.T) {
<del> containerId := stringid.GenerateRandomID()
<add> containerId := stringid.GenerateNonCryptoID()
<ide> unix := time.Now().Unix()
<ide>
<ide> var ctx containerContext
<ide><path>daemon/create_un... | 11 |
Python | Python | fix glue processor failing on tf datasets | cefd51c50cc08be8146c1151544495968ce8f2ad | <ide><path>src/transformers/data/processors/glue.py
<ide> def glue_convert_examples_to_features(
<ide>
<ide> features = []
<ide> for (ex_index, example) in enumerate(examples):
<del> if ex_index % 10000 == 0:
<del> logger.info("Writing example %d/%d" % (ex_index, len(examples)))
<add> ... | 1 |
PHP | PHP | fix wrong @return docblock in updateexistingpivot | dd6433fad46a5076ac8080ca42cd1a1ed1930613 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> protected function attachNew(array $records, array $current, $touch = true)
<ide> * @param mixed $id
<ide> * @param array $attributes
<ide> * @param bool $touch
<del> * @return void
<add> * @return int
<ide> ... | 1 |
Go | Go | remove use of deprecated os.seek_end | 0cc7ad0a7df75f166485978c1dcab597f3169177 | <ide><path>distribution/pull_v2.go
<ide> func (ld *v2LayerDescriptor) Download(ctx context.Context, progressOutput progre
<ide> return nil, 0, xfer.DoNotRetry{Err: err}
<ide> }
<ide> } else {
<del> offset, err = ld.tmpFile.Seek(0, os.SEEK_END)
<add> offset, err = ld.tmpFile.Seek(0, io.SeekEnd)
<ide> if err !=... | 1 |
Python | Python | add classifiers to setup.py | 530bde4aab663091e219ce3c389c8735a04a3e64 | <ide><path>setup.py
<ide> def run(self):
<ide> package_dir = {'libcloud' : 'libcloud', 'libcloud.drivers': 'libcloud/drivers' },
<ide> license = 'Apache License (2.0)',
<ide> url = 'http://incubator.apache.org/libcloud/',
<del> cmdclass = { 'test': TestCommand }
<add> cmdclass = { 'test': Te... | 1 |
Python | Python | change default license from mit to cc | 83a999ea83e7298ce9b999d91087dc8556f57956 | <ide><path>spacy/cli/package.py
<ide> def generate_meta():
<ide> ('author', 'Author', False),
<ide> ('email', 'Author email', False),
<ide> ('url', 'Author website', False),
<del> ('license', 'License', 'MIT')]
<add> ('license', 'License', 'C... | 1 |
Python | Python | remove some dev log message | ff12ae387b7c9a7c5a930ca531dfb60803762a56 | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> # Not available
<ide> pass
<ide>
<del> logger.info(self.stats)
<del>
<ide> return self.stats
<ide>
<ide> def get_docker_cpu_old(self, container_id): | 1 |
Python | Python | fix tests to work on all supported configurations | e362344fbdc7c48d978cb87963b04953113a4348 | <ide><path>djangorestframework/tests/mixins.py
<ide> class GroupResource(ModelResource):
<ide> mixin = ReadModelMixin()
<ide> mixin.resource = GroupResource
<ide>
<del> with self.assertRaises(ErrorResponse):
<del> response = mixin.get(request, 12345)
<add> self.assertRaises(Err... | 2 |
Mixed | Javascript | improve readable names | 590af1edfe58e88b142effdec3a3993f7f1bf4a4 | <ide><path>examples/module-federation/README.md
<ide> ```javascript
<ide> const path = require("path");
<ide> const { ModuleFederationPlugin } = require("../../").container;
<del>const devDeps = require("../../package.json").devDependencies;
<ide> const rules = [
<ide> {
<ide> test: /\.js$/,
<ide> const stats = {
<i... | 6 |
Ruby | Ruby | move uninstall logic to new file | 30a35614484f422c78a6328bcae2504b8ec35fb2 | <ide><path>Library/Homebrew/cmd/uninstall.rb
<ide> require "cli/parser"
<ide> require "cask/cmd"
<ide> require "cask/cask_loader"
<add>require "uninstall"
<ide>
<ide> module Homebrew
<add> extend Uninstall
<add>
<ide> module_function
<ide>
<ide> def uninstall_args
<ide> def uninstall
<ide> kegs_by_rack = a... | 2 |
Javascript | Javascript | remove debug code | 9de93ad036e544591c2747285c953d502dd33c36 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide> state.scissor( _currentScissor );
<ide> state.setScissorTest( _currentScissorTest );
<ide>
<del> !window.xx && state.viewport( _currentViewport );
<add> state.viewport( _currentViewport );
<ide>
<ide> if ( isCube ) {
... | 1 |
Python | Python | fix error with global step in run_lm_finetuning.py | 27c1b656cca75efa0cc414d3bf4e6aacf24829de | <ide><path>examples/run_lm_finetuning.py
<ide> def train(args, train_dataset, model, tokenizer):
<ide> steps_trained_in_current_epoch = 0
<ide> # Check if continuing training from a checkpoint
<ide> if os.path.exists(args.model_name_or_path):
<del> # set global_step to gobal_step of last saved checkp... | 1 |
Python | Python | update the `poly1d.__getitem__` and `__eq__` tests | 0c34ff80a8db74c2a80c06525a4020d4c96daba3 | <ide><path>numpy/lib/tests/test_polynomial.py
<ide> assert_array_almost_equal, assert_raises, assert_allclose
<ide> )
<ide>
<add>import pytest
<add>
<add># `poly1d` has some support for `bool_` and `timedelta64`,
<add># but it is limited and they are therefore excluded here
<add>TYPE_CODES = np.typecodes["AllI... | 1 |
Text | Text | remove link prediction from style_guide.md | c524576a6fed0ac112ac162d220e7d86f218aaec | <ide><path>doc/STYLE_GUIDE.md
<ide> fragment of a clause.
<ide> * Place end-of-sentence punctuation inside wrapping elements — periods go
<ide> inside parentheses and quotes, not after.
<del>* Documents must start with a level-one heading. An example document will be
<del> linked here eventually.
<add>* Document... | 1 |
Python | Python | fix mypy errors in airflow/kubernetes | d5f10b2ce0d49e5603500aa231665c05e214183a | <ide><path>airflow/kubernetes/kubernetes_helper_functions.py
<ide> def annotations_to_key(annotations: Dict[str, str]) -> Optional[TaskInstanceKey]
<ide> dag_id = annotations['dag_id']
<ide> task_id = annotations['task_id']
<ide> try_number = int(annotations['try_number'])
<del> run_id = annotations.get(... | 3 |
Python | Python | fix documented form of parametric softplus | b498218d0b16ed1ca619b77332b6fccac32fc175 | <ide><path>keras/layers/advanced_activations.py
<ide> def get_config(self):
<ide>
<ide> class ParametricSoftplus(MaskedLayer):
<ide> '''
<del> Parametric Softplus of the form: alpha * (1 + exp(beta * X))
<add> Parametric Softplus of the form: alpha * log(1 + exp(beta * X))
<ide>
<ide> Refere... | 1 |
Go | Go | remove dead code | 8ec7f0d7ac583c57fe00661624b3618a728264c2 | <ide><path>libnetwork/system.go
<del>package libnetwork
<del>
<del>import (
<del> "fmt"
<del> "runtime"
<del> "syscall"
<del>)
<del>
<del>// Via http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7b21fddd087678a70ad64afc0f632e0f1071b092
<del>//
<del>// We need different setns values for the diffe... | 1 |
Java | Java | use assertthat from hamcrest instead of junit 4 | deecab63114699abfe43e55489300ce0515d2188 | <ide><path>spring-aspects/src/test/java/org/springframework/scheduling/aspectj/AnnotationAsyncExecutionAspectTests.java
<ide> import org.springframework.util.concurrent.ListenableFuture;
<ide>
<ide> import static org.hamcrest.CoreMatchers.startsWith;
<add>import static org.hamcrest.MatcherAssert.assertThat;
<ide> impo... | 14 |
Python | Python | move triggerdagrun conf check to execute | 2462d57eccd8353b9a9d32a91d75c027e137fd7c | <ide><path>airflow/operators/trigger_dagrun.py
<ide> def __init__(
<ide>
<ide> self.execution_date = execution_date
<ide>
<del> try:
<del> json.dumps(self.conf)
<del> except TypeError:
<del> raise AirflowException("conf parameter should be JSON Serializable")
<del>
<ide> ... | 2 |
Ruby | Ruby | assert query counts in cache relation test | e289c8d7759716c88b398e7bb54d1babc9006688 | <ide><path>actionview/test/activerecord/relation_cache_test.rb
<ide> def setup
<ide> end
<ide>
<ide> def test_cache_relation_other
<del> cache(Project.all) { concat("Hello World") }
<add> assert_queries(1) do
<add> cache(Project.all) { concat("Hello World") }
<add> end
<ide> assert_equal "Hello W... | 1 |
Ruby | Ruby | simplify code a bit | c88b67f3a8f7e90ad974eaf82d00fd88827a1e4c | <ide><path>Library/Homebrew/diagnostic.rb
<ide> module Homebrew
<ide> module Diagnostic
<ide> def self.missing_deps(ff, hide = nil)
<add> hide ||= []
<add>
<ide> missing = {}
<ide> ff.each do |f|
<ide> missing_deps = f.recursive_dependencies do |dependent, dep|
<ide> def self.missing_deps... | 1 |
Text | Text | add v3.28.0-beta.1 to changelog | f77c8b0b6c03a927012250d96f448c2ec0ce31da | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.28.0-beta.1 (May 3, 2021)
<add>
<add>- [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
<add>
<ide> ### v3.27.0 (May 3, 2021)
<ide>
<ide> - [#19309](https://github.com/emberjs/ember... | 1 |
Python | Python | add unit tests and docstrings | c20eb5ffa0e0877f38cd2b3a77c8b4e7bbca3ff8 | <ide><path>official/resnet/cifar10_main.py
<ide> def input_fn(is_training, data_dir, batch_size, num_epochs=1,
<ide> class Cifar10Model(resnet.Model):
<ide>
<ide> def __init__(self, resnet_size, data_format=None, num_classes=_NUM_CLASSES):
<del> """These are the parameters that work for CIFAR-10 data."""
<add> ... | 4 |
Javascript | Javascript | fix merge with symbol font fix | 7cad586e6315b4a88078de43d1278f0ed4805808 | <ide><path>src/fonts.js
<ide> var Font = (function FontClosure() {
<ide> // Moving all symbolic font glyphs into 0xF000 - 0xF0FF range.
<ide> if (this.isSymbolicFont) {
<ide> for (var i = 0, ii = glyphs.length; i < ii; i++) {
<add> var cid = i + 1;
<ide> var code = glyph... | 1 |
Javascript | Javascript | remove debugging messages in http client | af40ae6b8f9fd7b1e76f33beaf8df418bcd5f027 | <ide><path>src/http.js
<ide> node.http.createClient = function (port, host) {
<ide> return;
<ide> }
<ide>
<del> node.debug("HTTP CLIENT onDisconnect. readyState = " + client.readyState);
<add> //node.debug("HTTP CLIENT onDisconnect. readyState = " + client.readyState);
<ide>
<ide> // If there... | 1 |
Text | Text | remove unused code in call tracker example | 74c2d65f39b1cc96257727d51d6a84386908a149 | <ide><path>doc/api/assert.md
<ide> const tracker = new assert.CallTracker();
<ide>
<ide> function func() {}
<ide>
<del>function foo() {}
<del>
<ide> // Returns a function that wraps func() that must be called exact times
<ide> // before tracker.verify().
<ide> const callsfunc = tracker.calls(func, 2);
<ide> const tra... | 1 |
PHP | PHP | add test for translator replacements back | 31cfc3b924b7d67cb7869ed566e39d15133770e7 | <ide><path>tests/Translation/TranslationTranslatorTest.php
<ide> public function testGetMethodProperlyLoadsAndRetrievesItemWithLongestReplacement
<ide> {
<ide> $t = $this->getMock('Illuminate\Translation\Translator', null, array($this->getLoader(), 'en'));
<ide> $t->getLoader()->shouldReceive('load')->once()->with... | 1 |
Python | Python | add regression test for | a32b033b8c30fa038ce8845333c1560059475f39 | <ide><path>spacy/tests/regression/test_issue4002.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>from spacy.matcher import PhraseMatcher
<add>from spacy.tokens import Doc
<add>
<add>
<add>@pytest.mark.xfail
<add>def test_issue4002(en_vocab):
<add> """Test that the Ph... | 1 |
Python | Python | add simple tests for sqliteoperator | 3a98032b2509e9ddf7ff7b1c41019c1d5430f1b3 | <ide><path>tests/providers/sqlite/operators/__init__.py
<add>#
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright ownership. The ASF licenses this f... | 3 |
Javascript | Javascript | add ember namespaces | ba51f13c92ad66aab422a57e03d7499e47bcda29 | <ide><path>packages/sproutcore-metal/lib/core.js
<ide> SC = {};
<ide>
<ide> // aliases needed to keep minifiers from removing the global context
<ide> if ('undefined' !== typeof window) {
<del> window.SC = window.SproutCore = SproutCore = SC;
<add> window.Em = window.Ember = window.SC = window.SproutCore = Em = Embe... | 1 |
Text | Text | add comma to fix syntax in example | 592d49d19d44611f35b5dfa0657d53419a240250 | <ide><path>curriculum/challenges/english/05-back-end-development-and-apis/back-end-development-and-apis-projects/exercise-tracker.md
<ide> Exercise:
<ide>
<ide> ```js
<ide> {
<del> username: "fcc_test"
<add> username: "fcc_test",
<ide> description: "test",
<ide> duration: 60,
<ide> date: "Mon Jan 01 1990", | 1 |
Python | Python | add test for | fd9e259414cef76855002af5a6bc22bb3fea9a37 | <ide><path>spacy/tests/regression/test_issue1660.py
<add>from __future__ import unicode_literals
<add>import pytest
<add>from ...util import load_model
<add>
<add>@pytest.mark.models("en_core_web_md")
<add>@pytest.mark.models("es_core_news_md")
<add>def test_models_with_different_vectors():
<add> nlp = load_model('e... | 1 |
Ruby | Ruby | spam people with commit rights on test failures | 2f923133248eb3a11671f47695bb9c5f36ee6aef | <ide><path>ci/cruise_config.rb
<ide> Project.configure do |project|
<ide> project.build_command = 'ruby ci/ci_build.rb'
<del> project.email_notifier.emails = ['thewoolleyman@gmail.com']
<del># project.email_notifier.emails = ['thewoolleyman@gmail.com','michael@koziarski.com', 'david@loudthinking.com', 'jeremy@bitsweat... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.