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 |
|---|---|---|---|---|---|
Javascript | Javascript | remove unused var | 4b254a07df8069e36803a8001234539c604916c2 | <ide><path>src/js/component.js
<ide> vjs.Component = vjs.CoreObject.extend({
<ide> touchmove = true;
<ide> }));
<ide> this.on('touchend', vjs.bind(this, function(event) {
<del> if (!touchmove && !didSomething) {
<add> if (!touchmove) {
<ide> this.player_.reportUserActivity();
<ide> ... | 1 |
Ruby | Ruby | add more examples to #titleize | ea16e0f716d150af98dbd612a8c730dad5bb2924 | <ide><path>activesupport/lib/active_support/inflector/methods.rb
<ide> def humanize(lower_case_and_underscored_word)
<ide> # +titleize+ is also aliased as as +titlecase+.
<ide> #
<ide> # Examples:
<del> # "man from the boondocks".titleize # => "Man From The Boondocks"
<del> # "x-men: the last stan... | 1 |
PHP | PHP | add docblock for runtimeexception | adec8f3b55a7d03305fb8a36b6865206f9a81a8b | <ide><path>src/Illuminate/Foundation/Console/ViewClearCommand.php
<ide> public function __construct(Filesystem $files)
<ide> * Execute the console command.
<ide> *
<ide> * @return void
<add> *
<add> * @throws \RuntimeException
<ide> */
<ide> public function handle()
<ide> { | 1 |
PHP | PHP | stringify column name in data array | cddaaa45c838d6c4173ecbac3e2a51d50296fb78 | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> public function testInsertQuoteColumns()
<ide> $query->insert([123])
<ide> ->into('articles')
<ide> ->values([
<del> 123 => 'mark',
<add> '123' => 'mark',
<ide> ]);
<ide> $result = $q... | 1 |
Text | Text | replace 303 status code with see_other | c487372c4b1c37dc7a796d8a00ed214dc63b4282 | <ide><path>guides/source/getting_started.md
<ide> class CommentsController < ApplicationController
<ide> @article = Article.find(params[:article_id])
<ide> @comment = @article.comments.find(params[:id])
<ide> @comment.destroy
<del> redirect_to article_path(@article), status: 303
<add> redirect_to arti... | 1 |
Ruby | Ruby | add a blockuntrustedips middleware | 9a9caf646d020e33ccdeac0f9b114acec019b599 | <ide><path>actionpack/lib/action_dispatch.rb
<ide> module ActionDispatch
<ide> end
<ide>
<ide> autoload_under 'middleware' do
<add> autoload :BlockUntrustedIps
<ide> autoload :Callbacks
<ide> autoload :Cascade
<ide> autoload :Cookies
<ide><path>actionpack/lib/action_dispatch/middleware/block_untrust... | 2 |
Javascript | Javascript | move ember.inspect to ember-metal | 2632209ad66c52adbc0f85f6b189382ee53ca83c | <ide><path>packages/ember-metal/lib/utils.js
<ide> Ember.typeOf = function(item) {
<ide>
<ide> return ret;
<ide> };
<add>
<add>/**
<add> Convenience method to inspect an object. This method will attempt to
<add> convert the object into a useful string description.
<add>
<add> It is a pretty simple implementation.... | 3 |
Text | Text | update the contributing.md | 2bb6b13685af42655479e6fa71cbb729bbf5faf4 | <ide><path>CONTRIBUTING.md
<ide> and will thank you for it!
<ide> Check that [our issue database](https://github.com/docker/docker/issues)
<ide> doesn't already include that problem or suggestion before submitting an issue.
<ide> If you find a match, add a quick "+1" or "I have this problem too." Doing this
<del>helps ... | 1 |
Javascript | Javascript | add a collada exporter link to the docs | 7c0f31b6bce1b5a4e951bd5a0b7d46d0650c7bac | <ide><path>docs/list.js
<ide> var list = {
<ide>
<ide> "Exporters": {
<ide> "GLTFExporter": "examples/exporters/GLTFExporter",
<del> "PLYExporter": "examples/exporters/PLYExporter"
<add> "PLYExporter": "examples/exporters/PLYExporter",
<add> "ColladaExporter": "examples/exporters/ColladaExporter"
<ide>... | 1 |
Java | Java | fix observable javadoc | 54c281a3d106da4f3bcf2f59271b1c9034683a60 | <ide><path>src/main/java/io/reactivex/Observable.java
<ide> public static <T> Observable<T> fromCallable(Callable<? extends T> supplier) {
<ide> * <p>
<ide> * <em>Important note:</em> This ObservableSource is blocking; you cannot dispose it.
<ide> * <p>
<del> * Unlike 1.x, cancelling the Observable w... | 1 |
Ruby | Ruby | add a class for splitting up rake commands | 7f698da8878b141c5324b2419d73570f507ef08f | <ide><path>railties/lib/rails/test_unit/sub_test_task.rb
<ide>
<ide> module Rails
<ide> class TestTask < Rake::TestTask # :nodoc: all
<add> class TestInfo
<add> def initialize(tasks)
<add> @tasks = tasks
<add> end
<add>
<add> def files
<add> @tasks.find_all { |t| File.file?(t) && !Fil... | 2 |
Python | Python | add urlretrieve docstring | 68bde67d0a73825f9de15bb2a1eef01aaf405fa0 | <ide><path>keras/utils/data_utils.py
<ide> from ..utils.generic_utils import Progbar
<ide>
<ide>
<del># Under Python 2, 'urlretrieve' relies on FancyURLopener from legacy
<del># urllib module, known to have issues with proxy management
<ide> if sys.version_info[0] == 2:
<ide> def urlretrieve(url, filename, report... | 1 |
PHP | PHP | fix duplicate items in habtm associations | 2097d5a968e57ea72bbe1710b667e20130374402 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> protected function _mergeAssociation(&$data, &$merge, $association, $type, $self
<ide> }
<ide> } else {
<ide> foreach ($merge as $i => $row) {
<add> $insert = array();
<ide> if (count($row) === 1) {
<del> if (empty($data[$association]) ||... | 1 |
Ruby | Ruby | remove unnecessary flatten! method call | 586c346059f263aa72242a61f863396c56181c8f | <ide><path>actionpack/lib/action_dispatch/journey/router.rb
<ide> def find_routes req
<ide>
<ide> def get_routes_as_head(routes)
<ide> precedence = (routes.map(&:precedence).max || 0) + 1
<del> routes = routes.select { |r|
<add> routes.select { |r|
<ide> r.verb === "GET"... | 1 |
Mixed | Java | add ability to disable scroll on android viewpager | 5a93877673105ca13c9e587796432881e26a0de7 | <ide><path>Libraries/Components/ViewPager/ViewPagerAndroid.android.js
<ide> var ViewPagerAndroid = React.createClass({
<ide> 'none', // default
<ide> 'on-drag',
<ide> ]),
<add>
<add> /**
<add> * When false, the content does not scroll.
<add> * The default value is true.
<add> */
<add> scr... | 3 |
Javascript | Javascript | fix dom fixture for 16.0.0 | 4a26b90cfa4a4f2b70dfa704b9706bb1c5fa26b4 | <ide><path>fixtures/dom/src/react-loader.js
<ide> export default function loadReact() {
<ide> let version = query.version || 'local';
<ide>
<ide> if (version !== 'local') {
<del> REACT_PATH = 'https://unpkg.com/react@' + version + '/dist/react.js';
<del> DOM_PATH = 'https://unpkg.com/react-dom@' + version + ... | 1 |
Javascript | Javascript | fix display of checkpoints | 9a18344dad0d210b17c8a746e44c2fb0149784b8 | <ide><path>server/boot/user.js
<ide> module.exports = function(app) {
<ide> });
<ide>
<ide> const waypoints = profileUser.completedChallenges.filter(function(obj) {
<del> return (obj.name || '').match(/^Waypoint/i);
<add> return (obj.name || '').match(/^Waypoint|^Checkpoint/i);
<ide> ... | 1 |
Javascript | Javascript | replace deprecated method | 8876514cdba5961094c6bfcf25829253a9b9f831 | <ide><path>lib/Compilation.js
<ide> const ChunkTemplate = require("./ChunkTemplate");
<ide> const HotUpdateChunkTemplate = require("./HotUpdateChunkTemplate");
<ide> const ModuleTemplate = require("./ModuleTemplate");
<ide> const RuntimeTemplate = require("./RuntimeTemplate");
<del>const Dependency = require("./Depende... | 1 |
Go | Go | update the help with push/pull | e4f9a0dca0a3eb9fd762ef502d40a089ed16acd4 | <ide><path>commands.go
<ide> func (srv *Server) Help() string {
<ide> {"logs", "Fetch the logs of a container"},
<ide> {"port", "Lookup the public-facing port which is NAT-ed to PRIVATE_PORT"},
<ide> {"ps", "List containers"},
<add> {"pull", "Pull an image or a repository to the docker registry server"},
<add> ... | 1 |
PHP | PHP | apply fixes from styleci | 030e9a886bfea56f90dc911471f55b5b4c36e3ce | <ide><path>tests/Cache/CacheRepositoryTest.php
<ide> public function testRememberMethodCallsPutAndReturnsDefault()
<ide> return 'qux';
<ide> });
<ide> $this->assertSame('qux', $result);
<del>
<add>
<ide> /*
<ide> * Use a callable...
<ide> */ | 1 |
Text | Text | reflect changes introduced in d2ffcd9 in docs | 0099b5e68cc76080f01e9150d3a3b86e0cb2b741 | <ide><path>docs/sources/userguide/dockerlinks.md
<ide> earlier. The `--link` flag takes the form:
<ide> Where `name` is the name of the container we're linking to and `alias` is an
<ide> alias for the link name. You'll see how that alias gets used shortly.
<ide>
<del>Next, look at your linked containers using `docker ... | 1 |
Javascript | Javascript | remove module.exports from client bundles | d6c7050816ca364aa42cf82a4b583c2fa7086f9a | <ide><path>build/webpack.js
<ide> export default async function getBaseWebpackConfig (dir: string, {dev = false, i
<ide> }
<ide> return '[name]'
<ide> },
<del> libraryTarget: 'commonjs2',
<add> libraryTarget: isServer ? 'commonjs2' : 'jsonp',
<ide> hotUpdateChunkFilename: 'static/w... | 2 |
Go | Go | fix panic in parsing /etc/os-release | 7b102dc11486539bc661a4d858e2de3ce3f46493 | <ide><path>pkg/parsers/operatingsystem/operatingsystem_linux.go
<ide> package operatingsystem
<ide>
<ide> import (
<add> "bufio"
<ide> "bytes"
<del> "errors"
<add> "fmt"
<ide> "io/ioutil"
<add> "os"
<add> "strings"
<add>
<add> "github.com/mattn/go-shellwords"
<ide> )
<ide>
<ide> var (
<ide> var (
<ide>
<ide> // Ge... | 2 |
Ruby | Ruby | modify assert_template to use instrumentation | 947f86c699b33bd44703b3554db58e4cfca37c86 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> require 'action_view/test_case'
<ide>
<ide> module ActionController
<add> module TemplateAssertions
<add> extend ActiveSupport::Concern
<add>
<add> included do
<add> setup :setup_subscriptions
<add> teardown :teardown_subscriptions
<add> ... | 5 |
Ruby | Ruby | allow wildcard entries for launchctl | 33d3a5d7284c30f326d0f9006415d2a47ff6acf9 | <ide><path>Library/Homebrew/cask/artifact/abstract_uninstall.rb
<ide> def uninstall_early_script(directives, **options)
<ide> # :launchctl must come before :quit/:signal for cases where app would instantly re-launch
<ide> def uninstall_launchctl(*services, command: nil, **_)
<ide> booleans = [false,... | 1 |
Javascript | Javascript | fix a bug when setting extent | f176785b83d90df27580cb425e91e4bc686a1867 | <ide><path>d3.js
<ide> d3.svg.brush = function() {
<ide> .attr("width", 6)
<ide> .attr("height", 6)
<ide> .style("visibility", "hidden")
<del> .style("pointer-events", brush.empty() ? "none" : "all")
<ide> .style("cursor", function(d) { return d3_svg_brushCursor[d]; });
... | 3 |
Javascript | Javascript | replace indexof, assert.equal, add mustcall() | 8cd2306cc3e3ea379c569ecb90f0af2afa6345e3 | <ide><path>test/parallel/test-fs-symlink.js
<ide> if (common.isWindows) {
<ide> // On Windows, creating symlinks requires admin privileges.
<ide> // We'll only try to run symlink test if we have enough privileges.
<ide> exec('whoami /priv', function(err, o) {
<del> if (err || o.indexOf('SeCreateSymbolicLinkPri... | 1 |
Text | Text | fix broken url in docs | 8851481e5b6ae47b266c863292b064cfa3b71a80 | <ide><path>docs/recipes/MigratingToRedux.md
<ide> We don't want to lock you in!
<ide>
<ide> Your process will look like this:
<ide>
<del>- Create a function called `createFluxStore(reducer)` that creates a Flux store compatible with your existing app from a reducer function. Internally it might look similar to [`crea... | 2 |
Python | Python | remove unused argument | c4857bc7dbb150b28163cad6418cf0f52d6d19e7 | <ide><path>spacy/util.py
<ide> def get_lang_class(name):
<ide> return LANGUAGES[lang]
<ide>
<ide>
<del>def load_lang_class(lang, depth='.'):
<add>def load_lang_class(lang):
<ide> module = importlib.import_module('.lang.%s' % lang, 'spacy')
<ide> return getattr(module, module.__all__[0])
<ide> | 1 |
Ruby | Ruby | remove redundant begin block | 464d625324accb8486aefa0b4a4b46477462dd08 | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_inclusion_of_listen_related_configuration_by_default
<ide> def test_inclusion_of_listen_related_configuration_on_other_rubies
<ide> ruby_engine = Object.send(:remove_const, :RUBY_ENGINE)
<ide> Object.const_set(:RUBY_ENGINE, "MyRuby")
<de... | 1 |
Text | Text | add dlrm entry | 7b6c1bcb3b043b8cd03714e1e8c818ed15087d51 | <ide><path>community/README.md
<ide> This repository provides a curated list of the GitHub repositories with machine
<ide> |-------|-------|----------|------------|
<ide> | [Wide & Deep](https://github.com/IntelAI/models/tree/master/benchmarks/recommendation/tensorflow/wide_deep_large_ds) | [Wide & Deep Learning for Re... | 1 |
Ruby | Ruby | remove unused block arguments | dbfab58457c4a2c958718b8f67491965d879c69a | <ide><path>actionpack/lib/action_controller/metal/etag_with_template_digest.rb
<ide> module EtagWithTemplateDigest
<ide> class_attribute :etag_with_template_digest
<ide> self.etag_with_template_digest = true
<ide>
<del> ActiveSupport.on_load :action_view, yield: true do |action_view_base|
<add> A... | 2 |
Javascript | Javascript | add test for nested avoided boundaries | 8af90c8972ab4cfc5fdbca8c576c202ce9cadab8 | <ide><path>packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.internal.js
<ide> describe('ReactSuspenseWithNoopRenderer', () => {
<ide> );
<ide> });
<ide>
<del> it('shows the parent boundary if the inner boundary should be avoided', async () => {
<add> it('shows the parent fallback if t... | 1 |
Javascript | Javascript | use common.port in simple/test-regress-gh-1697 | 05b3f88064a3dc85f892d0ff07dbca4f90437809 | <ide><path>test/simple/test-regress-GH-1697.js
<ide> if (process.argv[2] === 'server') {
<ide> });
<ide> });
<ide>
<del> server.listen(1234, '127.0.0.1', function() {
<add> server.listen(common.PORT, '127.0.0.1', function() {
<ide> console.log('Server running.');
<ide> });
<ide>
<ide> if (process.argv[2... | 1 |
Python | Python | adjust loss difference | ea46e3fa9c0fce752bdf6e73c9e0f10a8d04ae37 | <ide><path>tests/test_modeling_tf_mt5.py
<ide> def test_small_integration_test(self):
<ide> mtf_score = -tf.math.reduce_sum(loss).numpy()
<ide>
<ide> EXPECTED_SCORE = -84.9127
<del> self.assertTrue(abs(mtf_score - EXPECTED_SCORE) < 1e-4)
<add> self.assertTrue(abs(mtf_score - EXPECTED_SCOR... | 1 |
Javascript | Javascript | replace tt tag with code tag | 69f4d0ff70530e2ad7fb93fe11d66ed96c5ac97b | <ide><path>src/ng/directive/ngSwitch.js
<ide> *
<ide> * @scope
<ide> * @priority 1200
<del> * @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.
<add> * @param {*} ngSwitch|on expression to match against <code>ng-switch-when</code>.
<ide> * On child elements add:
<ide> *
<ide> * * `ngSwit... | 1 |
PHP | PHP | add emulation for public properties | bd4665720e464949ef2d48e7975e55827a37987d | <ide><path>src/Network/Request.php
<ide> use Cake\Core\Configure;
<ide> use Cake\Network\Exception\MethodNotAllowedException;
<ide> use Cake\Utility\Hash;
<add>use InvalidArgumentException;
<ide>
<ide> /**
<ide> * A class that helps wrap Request information and particulars about a single request.
<ide> public functio... | 2 |
Javascript | Javascript | fix alertios docs | 404f7d9dbfbf6e1552f4502b35d067a4c54ecd15 | <ide><path>Libraries/Utilities/AlertIOS.js
<ide> var DEFAULT_BUTTON = {
<ide> * {text: 'Foo', onPress: () => console.log('Foo Pressed!')},
<ide> * {text: 'Bar', onPress: () => console.log('Bar Pressed!')},
<ide> * ]
<del> * )}
<add> * )
<ide> * ```
<ide> */
<ide> | 1 |
Go | Go | fix tmp cleanup in tests | 4180579313e84ea7e3d85214521a815e95459a90 | <ide><path>daemon/graphdriver/aufs/aufs_test.go
<ide> import (
<ide> "crypto/sha256"
<ide> "encoding/hex"
<ide> "fmt"
<del> "github.com/docker/docker/daemon/graphdriver"
<del> "github.com/docker/docker/pkg/archive"
<ide> "io/ioutil"
<ide> "os"
<ide> "path"
<ide> "testing"
<add>
<add> "github.com/docker/docker/da... | 1 |
Python | Python | improve train cli sentrec scoring | d2f3a44b42bfff9773fdf3abaccdcc0e78d295f7 | <ide><path>spacy/cli/train.py
<ide> def _score_for_model(meta):
<ide> mean_acc.append((acc["ents_p"] + acc["ents_r"] + acc["ents_f"]) / 3)
<ide> if "textcat" in pipes:
<ide> mean_acc.append(acc["textcat_score"])
<add> if "sentrec" in pipes:
<add> mean_acc.append((acc["sent_p"] + acc["sent_... | 1 |
Java | Java | use consistent block style | 866e9d702e1db09a61fd814ae5cbb5c9b593723f | <ide><path>spring-aop/src/main/java/org/springframework/aop/interceptor/ExposeInvocationInterceptor.java
<ide> public String toString() {
<ide> */
<ide> public static MethodInvocation currentInvocation() throws IllegalStateException {
<ide> MethodInvocation mi = invocation.get();
<del> if (mi == null)
<add> if (... | 14 |
Ruby | Ruby | convert stringinreplaceextension test to spec | 1ff6846218367fc73736039d668b319acebd8cae | <ide><path>Library/Homebrew/test/inreplace_spec.rb
<add>require "extend/string"
<add>require "tempfile"
<add>require "utils/inreplace"
<add>
<add>describe StringInreplaceExtension do
<add> subject { string.extend(described_class) }
<add>
<add> describe "#change_make_var!" do
<add> context "flag" do
<add> cont... | 2 |
Text | Text | fix typos in shadows article | d69010e1b87a1ec24b50aec3a1ae2b5fac8c0567 | <ide><path>threejs/lessons/threejs-shadows.md
<ide> Description: Shadows in Three.js
<ide> This article is part of a series of articles about three.js. The
<ide> first article is [three.js fundamentals](threejs-fundamentals.html). If
<ide> you haven't read that yet and you're new to three.js you might want to
<del>cons... | 1 |
PHP | PHP | add docs to translation marshalling tests | c8bf49a21e078e6ef4fed318e371f8202ac7a674 | <ide><path>tests/TestCase/ORM/MarshallerTest.php
<ide> public function testAssociationNoChanges()
<ide> $this->assertTrue($entity->user->isNew());
<ide> }
<ide>
<add> /**
<add> * Test that primary key meta data is being read from the table
<add> * and not the schema reflection when handling belo... | 1 |
Text | Text | fix find and replace typo in dockerimages | a4b2de674c7030e70f671d5d6dcedb0c7ca5b0cd | <ide><path>docs/userguide/dockerimages.md
<ide> If you don't specify a variant, for example you just use `ubuntu`, then Docker
<ide> will default to using the `ubuntu:latest` image.
<ide>
<ide> > **Tip:**
<del>> You recommend you always use a specific tagged image, for example
<del>> `ubuntu:12.04`. That way you alway... | 1 |
Ruby | Ruby | remove "circular require considered harmful" error | b79e4223f7b9ddcda1d64ceb8807f91de16e100f | <ide><path>railties/lib/rails/generators.rb
<ide> activesupport_path = File.expand_path('../../../../activesupport/lib', __FILE__)
<ide> $:.unshift(activesupport_path) if File.directory?(activesupport_path) && !$:.include?(activesupport_path)
<ide>
<add>require 'thor/group'
<add>
<ide> require 'active_support'
<ide> r... | 2 |
PHP | PHP | add absolute parameter to signed routes | a0b4d25c1b795cd81cacda1a1407ecc191151c4c | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> public function formatScheme($secure = null)
<ide> * @param string $name
<ide> * @param array $parameters
<ide> * @param \DateTimeInterface|int $expiration
<add> * @param bool $absolute
<ide> * @return string
<ide> */
<del> ... | 1 |
Javascript | Javascript | move error checking and display | 5c97a30a6e4101d7ee19d128a05b7d35ede2f3be | <ide><path>src/renderers/webgl/WebGLProgram.js
<ide> import { NoToneMapping, AddOperation, MixOperation, MultiplyOperation, Equirecta
<ide>
<ide> var programIdCount = 0;
<ide>
<add>function addLineNumbers( string ) {
<add>
<add> var lines = string.split( '\n' );
<add>
<add> for ( var i = 0; i < lines.length; i ++ ) {... | 2 |
Ruby | Ruby | remove unneeded scripts prior to installation | c062429dddebf52f1cf218b190d00a3a34d2f7d1 | <ide><path>Library/Homebrew/language/node.rb
<ide> def self.pack_for_installation
<ide> # fed to `npm install` only symlinks are created linking back to that
<ide> # directory, consequently breaking that assumption. We require a tarball
<ide> # because npm install creates a "real" installation when fe... | 1 |
Go | Go | remove integration/utils setraw funcs | 63331abbcadee3528f3e03f96cff1ca6a506cc9e | <ide><path>daemon/container.go
<ide> import (
<ide> "syscall"
<ide> "time"
<ide>
<del> "github.com/docker/libcontainer"
<ide> "github.com/docker/libcontainer/configs"
<ide> "github.com/docker/libcontainer/devices"
<ide> "github.com/docker/libcontainer/label"
<ide> func (container *Container) Exposes(p nat.Port) b... | 2 |
Python | Python | move selfattentionmask to keras_nlp | 28f70bc455ad61f333814883b2f34d7cf0e066c2 | <ide><path>official/nlp/keras_nlp/layers/__init__.py
<ide> # ==============================================================================
<ide> """Keras-NLP layers package definition."""
<ide> from official.nlp.keras_nlp.layers.position_embedding import PositionEmbedding
<add>from official.nlp.keras_nlp.layers.self_a... | 2 |
Text | Text | update directory path and update bashrc file | 652cf785dffb8b7a8cbee6f8ccf48f782a19ac7c | <ide><path>research/object_detection/g3doc/installation.md
<ide> cp -r pycocotools <path_to_tensorflow>/models/research/
<ide> The Tensorflow Object Detection API uses Protobufs to configure model and
<ide> training parameters. Before the framework can be used, the Protobuf libraries
<ide> must be compiled. This should... | 1 |
Python | Python | add an explanation about padding in conv1d | 78be823518e3b1aedc0e07949b4cb97a593fa3d3 | <ide><path>keras/layers/convolutional.py
<ide> class Conv1D(_Conv):
<ide> Specifying any stride value != 1 is incompatible with specifying
<ide> any `dilation_rate` value != 1.
<ide> padding: One of `"valid"`, `"causal"` or `"same"` (case-insensitive).
<add> `"valid"` means "n... | 1 |
Go | Go | fix deadlock on cancelling healthcheck | 89b123473774248fc3a0356dd3ce5b116cc69b29 | <ide><path>container/health.go
<ide> func (s *Health) OpenMonitorChannel() chan struct{} {
<ide> func (s *Health) CloseMonitorChannel() {
<ide> if s.stop != nil {
<ide> logrus.Debug("CloseMonitorChannel: waiting for probe to stop")
<del> // This channel does not buffer. Once the write succeeds, the monitor
<del> /... | 3 |
Javascript | Javascript | replace symbol.iterator by symboliterator | c101251a95cc82142bee4637f8db6cc360a06d82 | <ide><path>lib/internal/streams/buffer_list.js
<ide> 'use strict';
<ide>
<ide> const {
<del> Symbol,
<add> SymbolIterator,
<ide> } = primordials;
<ide>
<ide> const { Buffer } = require('buffer');
<ide> module.exports = class BufferList {
<ide> return this.head.data;
<ide> }
<ide>
<del> *[Symbol.iterator]() ... | 3 |
Ruby | Ruby | remove duplicate method definition | 159a1210444e30f165bd546506f5d3fabc5c779f | <ide><path>railties/lib/rails/generators.rb
<ide> def api_only!
<ide> end
<ide> end
<ide>
<del> # Remove the color from output.
<del> def no_color!
<del> Thor::Base.shell = Thor::Shell::Basic
<del> end
<del>
<ide> # Returns an array of generator namespaces that are hidden.
<id... | 1 |
Text | Text | remove note about resize | 33021ba2b05bf27a569016914ec0095758ec2a4c | <ide><path>doc/api/tty.md
<ide> process.stdout.on('resize', () => {
<ide> });
<ide> ```
<ide>
<del>*Note*: On Windows resize events will be emitted only if stdin is unpaused
<del>(by a call to `resume()` or by adding a data listener) and in raw mode. It can
<del>also be triggered if a terminal control sequence that mo... | 1 |
Go | Go | reset identitymapping if empty | 0bdcc60c4c8f0587af610c1cbf08e7fa6dac750e | <ide><path>builder/builder-next/builder.go
<ide> type Builder struct {
<ide> func New(opt Opt) (*Builder, error) {
<ide> reqHandler := newReqBodyHandler(tracing.DefaultTransport)
<ide>
<add> if opt.IdentityMapping != nil && opt.IdentityMapping.Empty() {
<add> opt.IdentityMapping = nil
<add> }
<add>
<ide> c, err := ... | 1 |
Text | Text | add v3.13.0-beta.4 to changelog | 92dcebf8ccea4f2ff53d4138b5a8b3c935e9b503 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.13.0-beta.4 (August 26, 2019)
<add>
<add>- [#18278](https://github.com/emberjs/ember.js/pull/18278) [BUGFIX] Bump ember-router-generator from v1.2.3 to v2.0.0 to support parsing `app/router.js` with native class.
<add>- [#18291](https://github.com/ember... | 1 |
Javascript | Javascript | update jasmine 2 pr with changes from master | 5c509b150d8c793558ef043e887eb1f163261025 | <ide><path>src/addons/transitions/__tests__/ReactTransitionGroup-test.js
<ide> describe('ReactTransitionGroup', function() {
<ide>
<ide> ReactDOM.render(<Component />, container);
<ide>
<del> expect(console.error.argsForCall.length).toBe(2);
<del> expect(console.error.argsForCall[0][0]).toBe(
<add> expec... | 4 |
Javascript | Javascript | exclude _app.js since it’s not a normal page | 0f2c8f5eb1af62963a057b4c53aac52f5096dc16 | <ide><path>server/export.js
<ide> export default async function (dir, options, configuration) {
<ide> const defaultPathMap = {}
<ide>
<ide> for (const page of pages) {
<del> if (page === '/_document') {
<add> // _document and _app are not real pages.
<add> if (page === '/_document' || page === '/_app') {
... | 1 |
Javascript | Javascript | add test for placeholder text positioning | b35708b8cf9878ecda29051ff7bbefd91b5a64f1 | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide> verifyCursorPosition(component, element.querySelector('.cursor'), 0, 4)
<ide> })
<ide>
<del> it('positions cursors correctly when the lines container has a margin and/or is padded', async () => {
<del> c... | 1 |
Python | Python | pass params to encode | b1dbdf22ef3b4f1246402a9188d6b4117a5babdc | <ide><path>src/transformers/generation_flax_utils.py
<ide> def _run_loop_in_debug(cond_fn, body_fn, init_state):
<ide> state = body_fn(state)
<ide> return state
<ide>
<del> def _prepare_encoder_decoder_kwargs_for_generation(self, input_ids, model_kwargs):
<add> def _prepare_encoder_decoder_kw... | 1 |
Javascript | Javascript | fix failing router tests using old api | ddb09515a0abf34d35c432b4a178d708ca5f470a | <ide><path>packages/ember/tests/routing/basic_test.js
<ide> test("The Homepage with explicit template name in renderTemplate", function() {
<ide>
<ide> test('render does not replace templateName if user provided', function() {
<ide> Router.map(function(match) {
<del> match("/").to("home");
<add> this.route("ho... | 1 |
Javascript | Javascript | fix separate objects | f26d0adfc6c433f28525edacd958597a1e49184b | <ide><path>examples/js/loaders/LDrawLoader.js
<ide> THREE.LDrawLoader = ( function () {
<ide>
<ide> var parentParseScope = scope.getParentParseScope();
<ide>
<add> // Set current matrix
<add> if ( subobject ) {
<add>
<add> parseScope.currentMatrix.multiplyMatrices( parentParseScope.currentMatrix, subobj... | 1 |
PHP | PHP | add stub helper | 0a324ec9ded25947ca5022dccc6be670b8a758b6 | <ide><path>tests/TestCase/View/HelperRegistryTest.php
<ide> namespace Cake\Test\TestCase\View;
<ide>
<ide> use Cake\Core\App;
<add>use Cake\Core\Configure;
<ide> use Cake\Core\Plugin;
<ide> use Cake\TestSuite\TestCase;
<ide> use Cake\View\Helper;
<ide> public function testLoadPluginHelper() {
<ide> * @return void
<id... | 2 |
Python | Python | remove a confusing docstring line | d4286f864af9b53337186a71b2fca14e75e79b74 | <ide><path>numpy/core/numeric.py
<ide> def zeros_like(a, dtype=None, order='K', subok=True):
<ide> """
<ide> Return an array of zeros with the same shape and type as a given array.
<ide>
<del> With default parameters, is equivalent to ``a.copy().fill(0)``.
<del>
<ide> Parameters
<ide> ----------
<id... | 1 |
Go | Go | remove commoncontainer - just container | 55f8828eec1ff6c70628a0b6f22bea175ce36159 | <ide><path>container/container.go
<ide> var (
<ide> errInvalidNetwork = fmt.Errorf("invalid network settings while building port map info")
<ide> )
<ide>
<del>// CommonContainer holds the fields for a container which are
<del>// applicable across all platforms supported by the daemon.
<del>type CommonContainer struc... | 10 |
Ruby | Ruby | make check for stray developer dir more specific | 3473bbc010e9b169181dc180406c97cb2176ecb8 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_latest_xcode
<ide> end
<ide>
<ide> def check_for_stray_developer_directory
<del> if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library"
<add> # if the uninstaller script isn't there, it's a good guess neither are
<add> # any troublesome le... | 1 |
Ruby | Ruby | add xcode 7.0.1 | be8d348a6d98425ed8b3feecec7ce58ce95e948c | <ide><path>Library/Homebrew/os/mac.rb
<ide> def preferred_arch
<ide> "6.3.1" => { :clang => "6.1", :clang_build => 602 },
<ide> "6.3.2" => { :clang => "6.1", :clang_build => 602 },
<ide> "6.4" => { :clang => "6.1", :clang_build => 602 },
<del> "7.0" => { :clang => "7.0", :clang_build => 700 }... | 1 |
Python | Python | remove unused imports and unreachable code | d785aa39f99720950cd7f9acfe1133494cb5ff58 | <ide><path>numpy/compat/py3k.py
<ide> import os
<ide> from pathlib import Path
<ide> import io
<del>
<del>import abc
<del>from abc import ABC as abc_ABC
<del>
<ide> try:
<ide> import pickle5 as pickle
<ide> except ImportError:
<ide><path>numpy/core/multiarray.py
<ide> """
<ide>
<ide> import functools
<del>import w... | 7 |
Ruby | Ruby | add require to failing multi_db test | 723ccf8fec776bee226f9befb9d0a0c191999fdf | <ide><path>railties/test/application/rake/multi_dbs_test.rb
<ide> def generate_models_for_animals
<ide> end
<ide>
<ide> test "db:schema:load:name sets the connection back to its original state" do
<add> require "#{app_path}/config/environment"
<ide> Dir.chdir(app_path) do
<ide> dum... | 1 |
PHP | PHP | support responsable objects | c0c89fd73cebf9ed56e6c5e69ad35106df03d9db | <ide><path>src/Illuminate/Contracts/Support/Responsable.php
<add><?php
<add>
<add>namespace Illuminate\Contracts\Support;
<add>
<add>interface Responsable
<add>{
<add> /**
<add> * Create an HTTP response that represents the object.
<add> *
<add> * @return \Illuminate\Http\Response
<add> */
<add> p... | 4 |
Python | Python | remove useless logging line | 5efe6f34fd4a00f388d2979a708c90884f2e09ac | <ide><path>airflow/models/dagrun.py
<ide> def _filter_tis_and_exclude_removed(dag: "DAG", tis: List[TI]) -> Iterable[TI]:
<ide> try:
<ide> ti.task = dag.get_task(ti.task_id)
<ide> except TaskNotFound:
<del> self.log.error("Failed to get task for ti ... | 1 |
PHP | PHP | fix failing test | cbdf6b80eb14901bcd156ba946663a29834e8dee | <ide><path>tests/TestCase/Cache/Engine/MemcachedEngineTest.php
<ide> public function testParseServerStringUnix()
<ide> {
<ide> $Memcached = new TestMemcachedEngine();
<ide> $result = $Memcached->parseServerString('unix:///path/to/memcachedd.sock');
<del> $this->assertEquals(['unix:///path/to/... | 1 |
Ruby | Ruby | clarify partial filename constraints. closes | cf965cda5c755b51292e7c959def80ea54ea41f8 | <ide><path>actionpack/lib/action_controller/base.rb
<ide> def session_enabled?
<ide> # # each win partial.
<ide> # render :partial => "win", :collection => @wins, :spacer_template => "win_divider"
<ide> #
<add> # Note that the partial filename must also be a valid Ruby variable name,
<add> ... | 1 |
Ruby | Ruby | convert dependencies to formulas for name matching | 73ff7395839dee412f70c010f739210a8fd2a63a | <ide><path>Library/Homebrew/cmd/uses.rb
<ide> def uses
<ide> uses = formulae.select do |f|
<ide> used_formulae.all? do |ff|
<ide> if recursive
<del> f.recursive_dependencies.any? { |dep| dep.name == ff.name } ||
<add> f.recursive_dependencies.any? { |dep| dep.to_formula.name == ff.na... | 1 |
PHP | PHP | fix csrf validation failure | 522ed2f1fb49b00001c1ef8815a6feda790d61dd | <ide><path>src/Controller/Component/CsrfComponent.php
<ide> protected function _validateToken(Request $request)
<ide> $post = $request->data($this->_config['field']);
<ide> $header = $request->header('X-CSRF-Token');
<ide>
<add> if (empty($cookie)) {
<add> throw new ForbiddenException... | 2 |
PHP | PHP | delete a space between ! and empty | 05bcc4fe58ff96aaa5175ebc5338844488fdc740 | <ide><path>lib/Cake/Network/Email/SmtpTransport.php
<ide> protected function _sendData() {
<ide> $lines = $this->_cakeEmail->message();
<ide> $messages = array();
<ide> foreach ($lines as $line) {
<del> if ((! empty($line)) && ($line[0] === '.')) {
<add> if ((!empty($line)) && ($line[0] === '.')) {
<ide> ... | 1 |
Python | Python | update exception handling | 3863b49ec5e1b11f364be01192940544431dd4d8 | <ide><path>libcloud/common/base.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<add>import sys
<ide> import ssl
<ide> import time
<ide>
<ide> def request(self,
<ide> else:
<ide> self.connection.request(method=meth... | 2 |
Javascript | Javascript | apply safeareaview in header | 4f0b9e25545006fa22e745fdc8d0e6761b0e6d4e | <ide><path>Libraries/YellowBox/UI/YellowBoxInspectorHeader.js
<ide>
<ide> const Platform = require('Platform');
<ide> const React = require('React');
<add>const SafeAreaView = require('SafeAreaView');
<ide> const StyleSheet = require('StyleSheet');
<ide> const Text = require('Text');
<ide> const UTFSequence = require(... | 1 |
Javascript | Javascript | fix lint on travis | 892f0a59fe63c46cb3d998ac7165296a864f65d8 | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> cmd: 'node_modules/.bin/eslint',
<ide> args: ['src']
<ide> }, function(err, result, code) {
<add> if (code === 0) {
<add> grunt.log.ok('Lint passed (but may contain warnings)');
<add> } else {
<add> grunt.log.... | 1 |
Ruby | Ruby | add missing test for response destructuring | cbd10e27d1fa6e07d39dbb6fb42ce3420c5959db | <ide><path>actionpack/test/dispatch/response_test.rb
<ide> def test_response_body_encoding
<ide> assert_not @response.respond_to?(:method_missing)
<ide> assert @response.respond_to?(:method_missing, true)
<ide> end
<add>
<add> test "can be destructured into status, headers and an enumerable body" do
<add> ... | 1 |
Javascript | Javascript | fix an mtk device bug | c21d2e9839697c2ec532256d58acc9ddd5d8745b | <ide><path>src/renderers/webgl/WebGLUniforms.js
<ide> function WebGLUniforms( gl, program, renderer ) {
<ide>
<ide> var n = gl.getProgramParameter( program, gl.ACTIVE_UNIFORMS );
<ide>
<del> for ( var i = 0; i !== n; ++ i ) {
<add> for ( var i = 0; i < n; ++ i ) {
<ide>
<ide> var info = gl.getActiveUniform( progr... | 1 |
PHP | PHP | add missing pkpass mimetype | 2f02d0c755fd35130924d2f2d460c4f63095e194 | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> class CakeResponse {
<ide> 'vcf' => 'text/x-vcard',
<ide> 'vtt' => 'text/vtt',
<ide> 'mkv' => 'video/x-matroska',
<add> 'pkpass' => 'application/vnd.apple.pkpass'
<ide> );
<ide>
<ide> /** | 1 |
PHP | PHP | add allowdynamicproperties attribute to command | 47bce90a3066d694c93994b200e38951384d2119 | <ide><path>src/Command/Command.php
<ide> * Includes traits that integrate logging
<ide> * and ORM models to console commands.
<ide> */
<add>#[\AllowDynamicProperties]
<ide> class Command extends BaseCommand
<ide> {
<ide> use LocatorAwareTrait; | 1 |
Python | Python | implement toggle of process list display | ad5bfecbf92d63982df9d8e6d5a32bf90abec599 | <ide><path>glances/glances.py
<ide> def __catchKey(self):
<ide> elif self.pressedkey == ord('n') and network_tag:
<ide> # 'n' > Show/hide network stats
<ide> self.network_tag = not self.network_tag
<add> elif self.pressedkey == ord('z'):
<add> # 'z' > Show/Hide process ... | 1 |
Text | Text | add input and output for code examples | 1d0c7f3f8be8b6e4ca08b51ff7241240dee169b8 | <ide><path>client/src/pages/guide/english/python/python-f-strings/index.md
<ide> The use of f-string allows the programmer to dynamically insert a variable into
<ide>
<ide> To perform these dynamic behaviours within an f-string we wrap them inside curly brackets within the string, and prepend a lower case f to the beg... | 1 |
Text | Text | fix links in 2.4 release | 5490fc2700e4ca459583a3a00f253c1d85a7a189 | <ide><path>docs/topics/2.4-announcement.md
<ide> The next planned release will be 3.0, featuring an improved and simplified seria
<ide> Once again, many thanks to all the generous [backers and sponsors][kickstarter-sponsors] who've helped make this possible!
<ide>
<ide> [lts-releases]: https://docs.djangoproject.com/e... | 1 |
Text | Text | fix missing closing brace and bracket for promise | 2287d73b4fb23cbde6d2f55b9d64921c0962794e | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md
<ide> const myPromise = new Promise((resolve, reject) => {
<ide> } else {
<ide> reject("Promise was rejected");
<ide> }
<add>});
<ide> ```
<ide>
<ide> The example abov... | 1 |
Ruby | Ruby | update the postgresql adapter documentation | 0b6af35ef0647cf346bc7e274fc49da64f790ab0 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def self.extract_value_from_default(default)
<ide> # <encoding></tt> call on the connection.
<ide> # * <tt>:min_messages</tt> - An optional client min messages that is used in a
<ide> # <tt>SET client_min_messages ... | 1 |
Ruby | Ruby | allow debugging patching failures | d2d7516cc04ec31f105eda64f87b79db316bcb2f | <ide><path>Library/Homebrew/debrew.rb
<ide> def install
<ide> Debrew.debrew { super }
<ide> end
<ide>
<add> def patch
<add> Debrew.debrew { super }
<add> end
<add>
<ide> def test
<ide> Debrew.debrew { super }
<ide> end
<ide><path>Library/Homebrew/patch.rb
<ide> def apply
<ide> re... | 2 |
Ruby | Ruby | use exact format for last_revision_* | 461bb20b7cd72ec8fc23b9b6b6d75ef6cb534624 | <ide><path>Library/Homebrew/utils/git.rb
<ide> def last_revision_commit_of_file(repo, file, before_commit: nil)
<ide>
<ide> out, = Open3.capture3(
<ide> HOMEBREW_SHIMS_PATH/"scm/git", "-C", repo,
<del> "log", "--oneline", "--max-count=1", *args, "--", file
<add> "log", "--format=%h", "--abbrev=7", ... | 1 |
Javascript | Javascript | move top_before_blur to bubble phase | 3c1a7ac87c5b4903aa0de02d11bd9ec2590ad598 | <ide><path>packages/react-dom/src/client/ReactDOMHostConfig.js
<ide> export function insertInContainerBefore(
<ide> }
<ide> }
<ide>
<del>function createEvent(type: TopLevelType): Event {
<add>function createEvent(type: TopLevelType, bubbles: boolean): Event {
<ide> const event = document.createEvent('Event');
<del... | 2 |
Text | Text | add links for repl.replserver | 363570c07d8453c4e66e8cac326ecd1cc8d9fb51 | <ide><path>doc/api/repl.md
<ide> const repl = require('repl');
<ide>
<ide> ## Design and Features
<ide>
<del>The `repl` module exports the `repl.REPLServer` class. While running, instances
<del>of `repl.REPLServer` will accept individual lines of user input, evaluate those
<del>according to a user-defined evaluation ... | 1 |
Text | Text | add strict versioning to adnode | 6f65591ec9cfca64c242cba12aaf149afb305b47 | <ide><path>curriculum/challenges/english/06-quality-assurance/advanced-node-and-express/authentication-strategies.md
<ide> dashedName: authentication-strategies
<ide>
<ide> A strategy is a way of authenticating a user. You can use a strategy for allowing users to authenticate based on locally saved information (if you... | 7 |
Javascript | Javascript | use dynamic port in test-cluster-bind-twice | 30a045858a8de9c41c19a73da186727780c2df18 | <ide><path>test/parallel/test-cluster-bind-twice.js
<ide> if (!id) {
<ide>
<ide>
<ide> a.on('message', common.mustCall((m) => {
<del> if (typeof m === 'object') return;
<del> assert.strictEqual(m, 'READY');
<del> b.send('START');
<add> assert.strictEqual(m.msg, 'READY');
<add> b.send({msg: 'START', p... | 1 |
Python | Python | add exception details to response | 5d3e7b737c834595735cbeb81077739dd950f396 | <ide><path>flask/wrappers.py
<ide> def on_json_loading_failed(self, e):
<ide>
<ide> .. versionadded:: 0.8
<ide> """
<del> raise BadRequest()
<add> raise BadRequest(e)
<ide>
<ide> def _load_form_data(self):
<ide> RequestBase._load_form_data(self) | 1 |
Ruby | Ruby | keep subprocess code inside begin block | 913c12fd43909469829023d6d7d3de92e9503406 | <ide><path>Library/Homebrew/utils/fork.rb
<ide> def self.safe_fork(&block)
<ide> read, write = IO.pipe
<ide>
<ide> pid = fork do
<del> ENV["HOMEBREW_ERROR_PIPE"] = server.path
<del>
<ide> begin
<add> ENV["HOMEBREW_ERROR_PIPE"] = server.path
<ide> server.close
<... | 1 |
Text | Text | fix typos in responsive design article | 4b441cc01d7ca92d99a304ce4a30470ec6048e51 | <ide><path>threejs/lessons/threejs-responsive.md
<ide> to the page displaying well on different sized displays from
<ide> desktops to tablets to phones.
<ide>
<ide> For three.js there are even more situations to consider. For
<del>example a 3D editor with controls on the left, right, top, or
<add>example, a 3D editor ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.