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 | add example to menu | f3689f2321c42eeddb67ab1ee85fa2ab5050ad8a | <ide><path>examples/files.js
<ide> var files = {
<ide> "webgl_interactive_raycasting_points",
<ide> "webgl_interactive_voxelpainter",
<ide> "webgl_kinect",
<add> "webgl_layers",
<ide> "webgl_lensflares",
<ide> "webgl_lights_hemisphere",
<ide> "webgl_lights_physical", | 1 |
Text | Text | add panva to collaborators | db79783bad754fb659328e53ecd7ab50c8055bf1 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Ali Ijaz Sheikh** <ofrobots@google.com> (he/him)
<ide> * [oyyd](https://github.com/oyyd) -
<ide> **Ouyang Yadong** <oyydoibh@gmail.com> (he/him)
<add>* [panva](https://github.com/panva) -
<add>**Filip Skokan*... | 1 |
Python | Python | make trace_task_ret and fast_trace_task public | 3af6d9d5e3f52556a63e8091ee777890672256f4 | <ide><path>celery/app/trace.py
<ide> def _signal_internal_error(task, uuid, args, kwargs, request, exc):
<ide> del tb
<ide>
<ide>
<del>def _trace_task_ret(name, uuid, request, body, content_type,
<del> content_encoding, loads=loads_message, app=None,
<del> **extra_request... | 3 |
Go | Go | add pkg/chrootarchive and use it on the daemon | 0357b26c1b5ecc3a4d0d1b2e7cf63ea8e5f70eba | <ide><path>builder/internals.go
<ide> import (
<ide> "github.com/docker/docker/daemon"
<ide> imagepkg "github.com/docker/docker/image"
<ide> "github.com/docker/docker/pkg/archive"
<add> "github.com/docker/docker/pkg/chrootarchive"
<ide> "github.com/docker/docker/pkg/log"
<ide> "github.com/docker/docker/pkg/parsers... | 11 |
PHP | PHP | fix method override | 3d533f03e6b10dd5809333341548b9890a79a3a5 | <ide><path>laravel/core.php
<ide>
<ide> use Symfony\Component\HttpFoundation\LaravelRequest as RequestFoundation;
<ide>
<add>RequestFoundation::enableHttpMethodParameterOverride();
<add>
<ide> Request::$foundation = RequestFoundation::createFromGlobals();
<ide>
<add>
<add>
<ide> /*
<ide> |---------------------------... | 1 |
Go | Go | increase healthcheck timeout | 8c9362857f352548b94bc39c675d558b4da0d3b3 | <ide><path>integration-cli/docker_cli_service_health_test.go
<ide> func (s *DockerSwarmSuite) TestServiceHealthRun(c *check.C) {
<ide> result := cli.BuildCmd(c, imageName, cli.Daemon(d),
<ide> build.WithDockerfile(`FROM busybox
<ide> RUN touch /status
<del> HEALTHCHECK --interval=1s --timeout=1s --retries=1\
<add... | 1 |
Ruby | Ruby | remove obsolete tests | e5eaa6696c7580682365063501d62ae27108f566 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_mirror_support
<ide> f.downloader.instance_variable_get(:@url)
<ide> end
<ide>
<del> def test_formula_specs
<del> f = SpecTestBall.new
<add> def test_formula_spec_integration
<add> f = Class.new(Formula) do
<add> homepage 'http://exam... | 4 |
PHP | PHP | use valid error codes | e7132e7079e9e4c55e8eed0a45c217720f41f2d9 | <ide><path>src/Console/CommandRunner.php
<ide> public function run(array $argv, ConsoleIo $io = null)
<ide> if ($result === null || $result === true) {
<ide> return Command::CODE_SUCCESS;
<ide> }
<del> if (is_int($result) && $result > 0 && $result < 256) {
<add> if (is_int($res... | 1 |
Javascript | Javascript | compute flat normals when detail is zero | 5c521f8da5e7972f7cc22729ffaa80efae2b70a3 | <ide><path>src/geometries/PolyhedronGeometry.js
<ide> function PolyhedronBufferGeometry( vertices, indices, radius, detail ) {
<ide>
<ide> if ( detail === 0 ) {
<ide>
<del> BufferGeometry.prototype.computeVertexNormals.call( this ); // flat normals
<add> this.computeVertexNormals(); // flat normals
<ide>
<ide> }... | 1 |
Text | Text | add a link to the slack community | 9adc337d44dfcb9607c9cb863dc7fed92198ff07 | <ide><path>README.md
<ide> function (state, action) {
<ide>
<ide> [Read more](https://github.com/sebmarkbage/ecmascript-rest-spread) about the spread properties ES7 proposal.
<ide>
<add>## Discussion
<add>
<add>Join the **#redux** channel of the [Reactiflux](http://reactiflux.com/) Slack community
<add>
<ide> ## Insp... | 1 |
Text | Text | add video tutorials links | 5d1a778583cd43b8f7c355f30295fe452043d944 | <ide><path>guide/english/cloud-development/azure/index.md
<ide> Link of all current Azure services - https://azure.microsoft.com/en-us/services/
<ide> * <a href='https://azure.microsoft.com/en-us/' target='_blank' rel='nofollow'>Microsoft Azure</a>
<ide> * <a href='https://docs.microsoft.com/en-us/learn/' target='_blan... | 1 |
Ruby | Ruby | apply suggestions from code review | 9256a01afeb94611f3fa7024f96f6558cd235f4f | <ide><path>Library/Homebrew/cask/artifact/moved.rb
<ide> def move(adopt: false, force: false, verbose: false, command: nil, **options)
<ide> ohai "Adopting existing #{self.class.english_name} at '#{target}'"
<ide> same = command.run(
<ide> "/usr/bin/diff",
<del> args: ... | 1 |
Javascript | Javascript | fix constructor fix | 60d83cc52de32a3bbeb838b0febc94bc4f9a4063 | <ide><path>examples/js/loaders/PDBLoader.js
<ide> THREE.PDBLoader = function ( manager ) {
<ide>
<ide> THREE.PDBLoader.prototype = {
<ide>
<del> constructor: THREE.OBJLoader,
<add> constructor: THREE.PDBLoader,
<ide>
<ide> load: function ( url, onLoad ) {
<ide> | 1 |
Ruby | Ruby | optimize the hstore parser | 9ef7f406e6b2ed6cdc237c281bc5b3ad36c67e2a | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/hstore.rb
<ide> def type
<ide>
<ide> def deserialize(value)
<ide> if value.is_a?(::String)
<del> ::Hash[value.scan(HstorePair).map { |k, v|
<del> v = v.upcase == "NULL" ? nil : v.gsub(/\A"(.*)... | 2 |
Ruby | Ruby | convert fetch test to spec | e637eb414e880559695a71b3fc1efbc7104ee64e | <add><path>Library/Homebrew/cask/spec/cask/cli/fetch_spec.rb
<del><path>Library/Homebrew/cask/test/cask/cli/fetch_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> describe Hbc::CLI::Fetch do
<ide> let(:local_transmission) {
<ide> shutup do
<ide> Hbc::CLI::Fetch.run("local-transmiss... | 1 |
Python | Python | resolve dir for better output [ci skip] | 43c92ec8c99dfbc873ab62f63e33e93d167649d6 | <ide><path>spacy/cli/init_pipeline.py
<ide> def init_vectors_cli(
<ide> msg.good(
<ide> "Saved nlp object with vectors to output directory. You can now use the "
<ide> "path to it in your config as the 'vectors' setting in [initialize.vocab].",
<del> output_dir,
<add> output_dir.resolv... | 1 |
Text | Text | add 1.7.8 release notes | e629fe4a789954084c886a2e770f70c79e8b8bd0 | <ide><path>CHANGELOG.md
<add><a name="1.7.8"></a>
<add># 1.7.8 enthusiastic-oblation (2019-03-11)
<add>
<add>
<add>## Bug Fixes
<add>- **required:** correctly validate required on non-input element surrounded by ngIf
<add> ([a4c7bd](https://github.com/angular/angular.js/commit/a4c7bdccd76c39c30e33f6215da9a00cc8acde2c)... | 1 |
Javascript | Javascript | fix typo in `eslint-plugin-next` code comments | 3405fb9453a2cee05086f76dcaf4b912749ce539 | <ide><path>packages/eslint-plugin-next/lib/utils/url.js
<ide> function parseUrlForPages(urlprefix, directory) {
<ide> }
<ide>
<ide> /**
<del> * Takes a url and does the following things.
<del> * - replace `index.html` with `/`
<del> * - Makes sure all URLs are have a trainiling `/`
<add> * Takes a URL and does the f... | 1 |
Mixed | Ruby | use type column first in multi-column indexes | 9cdd0a1fdf8308985231242d378e3a1c29c4ab00 | <ide><path>activerecord/CHANGELOG.md
<add>* Use type column first in multi-column indexes created with `add-reference`
<add>
<add> *Derek Prior*
<add>
<ide> * `AR::UnknownAttributeError` now includes the class name of a record.
<ide>
<ide> User.new(name: "Yuki Nishijima", project_attributes: {name: "kam... | 5 |
Ruby | Ruby | add test for `config.active_storage.routes_prefix` | 70b5a7594e91d7e3f3ee60642102b7a2323c2e0c | <ide><path>railties/test/application/configuration_test.rb
<ide> class ::DummySerializer < ActiveJob::Serializers::ObjectSerializer; end
<ide> assert_equal [ "password", "credit_card_number" ].to_set, ActiveRecord::Base.filter_attributes
<ide> end
<ide>
<add> test "ActiveStorage.routes_prefix can be confi... | 1 |
Text | Text | restore missing emojis and fix broken links | 73277d8ba87e57dec187fafa05d12cfb482b9ffb | <ide><path>guide/english/c/file-handling/index.md
<ide> title: File Handling
<ide> ## File Handling
<ide>
<ide> ### Introduction
<del>If you've written the C `helloworld` program before, you've already done file INPUT/OUTPUT(Genrally reffered as IO) in C! Congratulations! :tada:
<add>If you've written the C `hellowor... | 6 |
Javascript | Javascript | remove reactcomponenttreehook from internals | 607148673b3156d051d1fed17cd49e83698dce54 | <ide><path>packages/react/src/ReactSharedInternals.js
<ide> const ReactSharedInternals = {
<ide> };
<ide>
<ide> if (__DEV__) {
<del> Object.assign(ReactSharedInternals, {
<del> // These should not be included in production.
<del> ReactDebugCurrentFrame,
<del> // Shim for React DOM 16.0.0 which still destruct... | 2 |
Java | Java | remove warnings in some rn android classes | a679f592cd1803e8f3b847c858bb7117a1e1b1f2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java
<ide> import com.facebook.react.uimanager.util.ReactFindViewUtil;
<ide> import java.util.ArrayList;
<ide> import java.util.HashMap;
<add>import java.util.List;
<ide> import java.util.Map;
<ide> import javax.annotation.Nonnull;
<ide>... | 4 |
Java | Java | remove path variables from pathwithinmapping | ec03e8830ed0edb3cffbda1395c491127c0353b6 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractUrlHandlerMapping.java
<ide> /*
<del> * Copyright 2002-2021 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");... | 2 |
Text | Text | adjust args of bundler.require in guides [ci skip] | 50a286db529aa1d3fd050101950678854be87b61 | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> file (in `config/application.rb`):
<ide> ```ruby
<ide> # Require the gems listed in Gemfile, including any gems
<ide> # you've limited to :test, :development, or :production.
<del>Bundler.require(:default, Rails.env)
<add>Bundler.require(*Rails.groups)
<ide> ```... | 1 |
Ruby | Ruby | add tests for runner#test_files method | 3cc783b6bf20da27079038e7c52ce214f1042df3 | <ide><path>railties/lib/rails/test_unit/runner.rb
<ide> def show_backtrace?
<ide> @options[:backtrace]
<ide> end
<ide>
<del> private
<del> def run_tests
<del> test_files.to_a.each do |file|
<del> require File.expand_path file
<del> end
<del> end
<del>
<ide> def test_files
<ide> ... | 2 |
Javascript | Javascript | remove uglify options in preparation of webpack 4 | 18676e08703a8d6c39049fe15996f3ede23323ae | <ide><path>server/build/webpack.js
<ide> export default async function getBaseWebpackConfig (dir, {dev = false, isServer
<ide> ...nodePathList // Support for NODE_PATH environment variable
<ide> ],
<ide> alias: {
<del> next: nextDir,
<del> // React already does something similar to thi... | 1 |
PHP | PHP | fix small typo | e4c0dee6ee62beab596644d801443f786935d8dc | <ide><path>lib/Cake/Model/Model.php
<ide> public function __construct($id = false, $table = null, $ds = null) {
<ide>
<ide> /**
<ide> * Returns a list of all events that will fire in the model during it's lifecycle.
<del> * You can override this function to add you own listener callbacks
<add> * You can override this... | 1 |
PHP | PHP | add support for custom labels | 7c2e902316968b56279fdbc423d69a15641c6c12 | <ide><path>Cake/View/Input/Radio.php
<ide> public function render($data) {
<ide> $radio['disabled'] = true;
<ide> }
<ide>
<del> $labelAttrs = ['for' => $radio['id'], 'escape' => $escape];
<del> $label = $this->_templates->format('label', [
<del> 'text' => $escape ? h($radio['text']) : $radio['text'],
<de... | 2 |
PHP | PHP | fix "slow redirect" | 09ec31fa509dedbca7627d32e45ef0a966f07ea2 | <ide><path>src/Illuminate/Routing/Router.php
<ide> use Illuminate\Container\Container;
<ide> use Symfony\Component\HttpKernel\HttpKernelInterface;
<ide> use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
<add>use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
<ide> use Symfony\Component\Http... | 1 |
Java | Java | fix cache decoration | 119dfd9cf9215b2800d2d178913917103761fefd | <ide><path>spring-context-support/src/main/java/org/springframework/cache/ehcache/EhCacheCacheManager.java
<ide> *
<ide> * @author Costin Leau
<ide> * @author Juergen Hoeller
<add> * @author Stephane Nicoll
<ide> * @since 3.1
<ide> */
<ide> public class EhCacheCacheManager extends AbstractTransactionSupportingCach... | 6 |
Python | Python | add a run_classifier.py in albert folder | 5f296bbef998e75721818d6b336264ae10f4a77d | <ide><path>official/nlp/albert/run_classifier.py
<add># Copyright 2019 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy of the License at
<add>#
... | 2 |
Javascript | Javascript | avoid boolean type check | 20841c7c6604378d94d11d9373aa1cfd9f399798 | <ide><path>src/lib/create/from-anything.js
<ide> function configFromInput(config) {
<ide> export function createLocalOrUTC (input, format, locale, strict, isUTC) {
<ide> var c = {};
<ide>
<del> if (typeof(locale) === 'boolean') {
<add> if (locale === true || locale === false) {
<ide> strict = locale;... | 1 |
Javascript | Javascript | remove view.proptypes rn deprecation workaround | c043c1e7d9ee4aa224454530d91152cbb9764125 | <ide><path>src/isomorphic/classic/element/ReactElementValidator.js
<ide> function validatePropTypes(element) {
<ide> return;
<ide> }
<ide> var name = componentClass.displayName || componentClass.name;
<del>
<del> // ReactNative `View.propTypes` have been deprecated in favor of `ViewPropTypes`.
<del> // In the... | 1 |
Javascript | Javascript | ignore replayed events | fe406bf717444def6e7a6cb10b8e9120d9679450 | <ide><path>src/plugins/plugin.legend.js
<ide> export default {
<ide>
<ide>
<ide> afterEvent(chart, args) {
<del> chart.legend.handleEvent(args.event);
<add> if (!args.replay) {
<add> chart.legend.handleEvent(args.event);
<add> }
<ide> },
<ide>
<ide> defaults: { | 1 |
PHP | PHP | fix comment style | ef8ee59f93da71798412271a7c0cb8f45a1a3c9d | <ide><path>tests/Routing/RoutingUrlGeneratorTest.php
<ide> public function testForceRootUrl()
<ide> $url->forceRootUrl('https://www.bar.com');
<ide> $this->assertEquals('http://www.bar.com/foo/bar', $url->to('foo/bar'));
<ide>
<del> /**
<del> * Ensure trailing / is trimmed from root URL as UrlGenerator already ... | 1 |
Ruby | Ruby | modernize flash tests | 93cba1207a22b0dc0e2a87769fb5b9fbc907bce7 | <ide><path>actionpack/test/controller/flash_test.rb
<ide> def rescue_action(e)
<ide> end
<ide>
<ide> def setup
<del> initialize_request_and_response
<add> @request = ActionController::TestRequest.new
<add> @response = ActionController::TestResponse.new
<add> @controller = TestController.new
<ide> ... | 1 |
PHP | PHP | use compact instead of defining arrays | 4f9dbfa54c534920fe1a3214d4cd7d3d72adfdf5 | <ide><path>src/View/Helper/BreadcrumbsHelper.php
<ide> public function add($title, $url = null, array $options = [])
<ide> */
<ide> public function prepend($title, $url = null, array $options = [])
<ide> {
<del> array_unshift($this->crumbs, ['title' => $title, 'url' => $url, 'options' => $options]);... | 1 |
Ruby | Ruby | add benchmark helper that works in erb | 904e544cc8f5846de7c31827bb5556c6a238c0de | <ide><path>actionpack/lib/action_view/helpers.rb
<del>require 'active_support/benchmarkable'
<del>
<ide> module ActionView #:nodoc:
<ide> module Helpers #:nodoc:
<ide> extend ActiveSupport::Autoload
<ide>
<ide> autoload :ActiveModelHelper
<ide> autoload :AssetTagHelper
<ide> autoload :AtomFeedHelper
... | 3 |
Text | Text | improve reacttestutils.simulate documentation | 97e219e78592bba72c7fbc4ba0716cbc3fa1cd3e | <ide><path>docs/docs/10.4-test-utils.md
<ide> Simulate.{eventName}(DOMElement element, object eventData)
<ide>
<ide> Simulate an event dispatch on a DOM node with optional `eventData` event data. **This is possibly the single most useful utility in `ReactTestUtils`.**
<ide>
<del>Example usage:
<add>**Clicking an elem... | 1 |
Mixed | Ruby | add option for per-form csrf tokens | 3e98819e20bc113343d4d4c0df614865ad5a9d3a | <ide><path>actionpack/CHANGELOG.md
<add>* Add option for per-form CSRF tokens.
<add>
<add> *Ben Toews*
<add>
<ide> * Add tests and documentation for `ActionController::Renderers::use_renderers`.
<ide>
<ide> *Benjamin Fleischer*
<ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb
... | 9 |
Ruby | Ruby | use prepared statements for primary key queries | a9e8554b46a29573094eec139b16778e29e5c37a | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def pk_and_sequence_for(table) #:nodoc:
<ide>
<ide> # Returns just a table's primary key
<ide> def primary_key(table)
<del> pk_and_sequence = pk_and_sequence_for(table)
<del> pk_and_sequence && pk_and_se... | 1 |
Javascript | Javascript | trigger fallback bar after user clicks in pdf | 6e9d158a98b695e0cf1411490585b25fbb099c0b | <ide><path>web/app.js
<ide> const PDFViewerApplication = {
<ide> externalServices: DefaultExternalServices,
<ide> _boundEvents: {},
<ide> contentDispositionFilename: null,
<add> _hasInteracted: false,
<add> _delayedFallbackFeatureIds: [],
<ide>
<ide> // Called once when the document is loaded.
<ide> async ... | 1 |
Javascript | Javascript | use ember.assert instead of throw | b6c1c2fffa2e535da8e1eb7babaa6119ff58b731 | <ide><path>packages/ember-metal/lib/mixin.js
<ide> function mergeMixins(mixins, m, descs, values, base) {
<ide> for(idx=0;idx<len;idx++) {
<ide>
<ide> mixin = mixins[idx];
<del> if (!mixin) throw new Error('Null value found in Ember.mixin()');
<add> Ember.assert('Null value found in Ember.mixin()', !!mixin... | 1 |
Java | Java | fix mountitem logging | a0403c0626c4048082a2e89c6e16abf5e3c4b5be | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java
<ide> public String toString() {
<ide> } else if (type == INSTRUCTION_UPDATE_LAYOUT) {
<ide> s.append(
<ide> String.format(
<del> "UPDATE LAYOUT [%d]:... | 1 |
Python | Python | document the verbose parameter in earlystopping | 2c8864dd5363d464a2b9c6ad0a37c5eed13b7534 | <ide><path>keras/callbacks.py
<ide> class EarlyStopping(Callback):
<ide> improvement.
<ide> patience: Number of epochs with no improvement
<ide> after which training will be stopped.
<del> verbose: verbosity mode.
<add> verbose: int. 0: quiet, 1: message when the training is stopped
<add> ... | 1 |
Ruby | Ruby | update generators to use new defaults | 8fabcb2eca03150b1c0c3dbc88dd13123f76894f | <ide><path>railties/lib/generators/rails/mailer/templates/mailer.rb
<ide> class <%= class_name %> < ActionMailer::Base
<del> self.defaults = { :from => "from@example.com" }
<add> self.defaults :from => "from@example.com"
<ide> <% for action in actions -%>
<ide>
<ide> # Subject can be set in your I18n file at confi... | 2 |
Javascript | Javascript | improve value validation utils | c405e9b23c6c6dc78f5d2b0747a75ceb61eaf4d9 | <ide><path>lib/internal/validators.js
<ide> 'use strict';
<ide>
<ide> const {
<add> ArrayIsArray,
<ide> NumberIsInteger,
<ide> NumberMAX_SAFE_INTEGER,
<ide> NumberMIN_SAFE_INTEGER,
<ide> function validateNumber(value, name) {
<ide> throw new ERR_INVALID_ARG_TYPE(name, 'number', value);
<ide> }
<ide>
<add>f... | 2 |
Text | Text | add gists provided by mary | 35cbcc2fc1334b14a6aa9a1adf432c0ee80fd108 | <ide><path>docs/reference/run.md
<ide> parent = "mn_reference"
<ide> </style>
<ide> # Docker run reference
<ide>
<del>**Docker runs processes in isolated containers**. When an operator
<del>executes `docker run`, she starts a process with its own file system,
<del>its own networking, and its own isolated process tree.... | 1 |
PHP | PHP | use fullpath for validator facade | 63256100705a4020796fa5faa9cf780506d440e7 | <ide><path>app/Http/Controllers/Auth/RegisterController.php
<ide> namespace App\Http\Controllers\Auth;
<ide>
<ide> use App\User;
<del>use Validator;
<ide> use App\Http\Controllers\Controller;
<add>use Illuminate\Support\Facades\Validator;
<ide> use Illuminate\Foundation\Auth\RegistersUsers;
<ide>
<ide> class Register... | 1 |
PHP | PHP | fix issue with duplicate class inclusions | ccefe02de9d4cc462cdfc8a74158862d347afbac | <ide><path>lib/Cake/Core/App.php
<ide> public static function load($className) {
<ide> }
<ide> }
<ide>
<del> //To help apps migrate to 2.0 old style file names are allowed
<add> // To help apps migrate to 2.0 old style file names are allowed
<add> // if the trailing segment is one of the types that changed, al... | 1 |
Javascript | Javascript | fix broken link | c87cc34c015753904e96c35143c37f4d2fc63054 | <ide><path>packages/ember-application/lib/system/application.js
<ide> var get = Ember.get, set = Ember.set,
<ide>
<ide> To learn more about the advantages of event delegation and the Ember view
<ide> layer, and a list of the event listeners that are setup by default, visit the
<del> [Ember View Layer guide](http:... | 1 |
Text | Text | add baseserializer heading | c0150e619ca02a69d87c335a70c47644e9b2e509 | <ide><path>docs/topics/3.0-announcement.md
<ide> See the [Version 3.0 GitHub issue](https://github.com/tomchristie/django-rest-fr
<ide>
<ide> **TODO**: Drop`.object`, use `.validated_data` or get the instance with `.save()`.
<ide>
<add>#### The `BaseSerializer` class.
<add>
<add>**TODO**
<add>
<ide> #### Always use `... | 1 |
Ruby | Ruby | add test case | 4fbb1e9f5bf1f22ad3aa913764b8ecb0c6e06c7d | <ide><path>actionpack/test/controller/renderer_test.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "abstract_unit"
<add>require "test_component"
<ide>
<ide> class RendererTest < ActiveSupport::TestCase
<ide> test "action controller base has a renderer" do
<ide> class RendererTest < ActiveSupport::TestCa... | 2 |
Javascript | Javascript | set ng-app for editing with plunker | 99e85fc9b5b71a1bf3e54126b9c080b3c355c336 | <ide><path>docs/src/templates/js/docs.js
<ide> docsApp.serviceFactory.openPlunkr = function(templateMerge, formPostData, angula
<ide> return function(content) {
<ide> var allFiles = [].concat(content.js, content.css, content.html);
<ide> var indexHtmlContent = '<!doctype html>\n' +
<del> '<html ng-app>... | 1 |
Ruby | Ruby | fix unstated usage of action dispatch | a0e8eca30bc1f3cf7519bea37456cbfc98b56047 | <ide><path>railties/lib/rails/configuration.rb
<ide> module Rails
<ide> module Configuration
<ide> module Shared
<ide> def middleware
<del> @@default_middleware_stack ||= ActionDispatch::MiddlewareStack.new.tap do |middleware|
<del> middleware.use('::ActionDispatch::Static', lambda { Rails.p... | 1 |
PHP | PHP | log errors before rendering | 5b21974325d2a974baf778e9ce3aa9da561b17bf | <ide><path>src/Error/Middleware/ErrorHandlerMiddleware.php
<ide> public function handleException(Throwable $exception, ServerRequestInterface $re
<ide> $renderer = $errorHandler->getRenderer($exception, $request);
<ide>
<ide> try {
<del> $response = $renderer->render();
<ide> $er... | 1 |
Ruby | Ruby | add tests for json merging | d768b6649a8682431a49397ae79c192bcdc1e219 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_formula(f, args:)
<ide> end
<ide> end
<ide>
<del> def merge(args:)
<del> bottles_hash = args.named.reduce({}) do |hash, json_file|
<del> hash.deep_merge(JSON.parse(IO.read(json_file))) do |key, first, second|
<add> def parse_json_files(file... | 2 |
Ruby | Ruby | read extra args for 'rails new' from ~/.railsrc | 7039def6e116b12ccab8142cec7f7feabc264220 | <ide><path>railties/lib/rails/commands/application.rb
<ide> ARGV[0] = "--help"
<ide> else
<ide> ARGV.shift
<add> railsrc = File.join(File.expand_path("~"), ".railsrc")
<add> if File.exist?(railsrc)
<add> extra_args_string = File.open(railsrc).read
<add> extra_args = extra_args_string.split(/\n+/).map {|l| l... | 1 |
Mixed | Text | improve documentation on custom serializers | 71721dc1c9b769d3c06317122dc88cad4a346580 | <ide><path>activejob/README.md
<ide> MyJob.set(wait: 1.week).perform_later(record) # Enqueue a job to be performed 1
<ide>
<ide> That's it!
<ide>
<del>## Supported types for arguments
<ide>
<del>ActiveJob supports the following types of arguments by default:
<del>
<del> - Standard types (`NilClass`, `String`, `Inte... | 4 |
Text | Text | add file analysis to the active storage guide | ff1f8b02d6ad789a9de22a1c48712fb44b87d6bd | <ide><path>guides/source/active_storage_overview.md
<ide> message.video.open do |file|
<ide> end
<ide> ```
<ide>
<add>Analyzing Files
<add>---------------
<add>
<add>Active Storage [analyzes](https://api.rubyonrails.org/classes/ActiveStorage/Blob/Analyzable.html#method-i-analyze) files once they've been uploaded by qu... | 1 |
Python | Python | update description of orderingfilter | 617745eca027dc17c37718a67f82700caef5be3a | <ide><path>rest_framework/filters.py
<ide> class OrderingFilter(BaseFilterBackend):
<ide> def get_ordering(self, request):
<ide> """
<ide> Ordering is set by a comma delimited ?ordering=... query parameter.
<add>
<add> The `ordering` query parameter can be overridden by setting
<add> ... | 1 |
Javascript | Javascript | fix failing async tests in node 10 | b753f76a74644dd19e7a29f8aa4e8c759190f9ef | <ide><path>packages/react-dom/src/__tests__/ReactServerRenderingHydration-test.js
<ide> describe('ReactDOMServerHydration', () => {
<ide> });
<ide>
<ide> it('should be able to use lazy components after hydrating', async () => {
<del> async function fakeImport(result) {
<del> return {default: result};
<del>... | 3 |
Javascript | Javascript | remove donation prevention | d7c4fd7fea433087a9104515079fda961c6d65c3 | <ide><path>client/src/client-only-routes/ShowCertification.js
<ide> import {
<ide> showCert,
<ide> userFetchStateSelector,
<ide> usernameSelector,
<del> isDonatingSelector,
<del> isDonationRequestedSelector,
<del> preventDonationRequests
<add> isDonatingSelector
<ide> } from '../redux';
<ide> import validCert... | 3 |
Python | Python | update parent package and version | 8fb574900a6680f8342487e32979829efa33a11a | <ide><path>spacy/about.py
<ide> # fmt: off
<del>__title__ = "spacy"
<del>__version__ = "3.0.0.dev14"
<add>__title__ = "spacy_nightly"
<add>__version__ = "3.0.0a0"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.github... | 1 |
Python | Python | remove global variable with api auth backend | 7b23d4d01f35b693848fb3b2c482db66d91b658b | <ide><path>airflow/api/__init__.py
<ide> log = logging.getLogger(__name__)
<ide>
<ide>
<del>class ApiAuth: # pylint: disable=too-few-public-methods
<del> """Class to keep module of Authentication API """
<del> def __init__(self):
<del> self.api_auth = None
<del>
<del>
<del>API_AUTH = ApiAuth()
<del>
<d... | 7 |
Go | Go | remove https prefix from registry | 57d751c3770194ff867ebace36eb1be7d72d2fe9 | <ide><path>registry/registry.go
<ide> func (r *Registry) GetRemoteTags(registries []string, repository string, token [
<ide> repository = "library/" + repository
<ide> }
<ide> for _, host := range registries {
<del> endpoint := fmt.Sprintf("https://%s/v1/repositories/%s/tags", host, repository)
<add> endpoint := ... | 2 |
PHP | PHP | fix misordered assertequals arguments | 093a6f8628d15914ebc0c3af8d0fc1dabe9373f6 | <ide><path>tests/Auth/AuthAccessGateTest.php
<ide> public function testResponseReturnsResponseWhenAbilityDenied()
<ide> $this->assertSame('Not allowed to view as it is not published.', $response->message());
<ide> $this->assertFalse($response->allowed());
<ide> $this->assertTrue($response->denie... | 16 |
Go | Go | update native driver to set rootfs | 532c29ef7deea38bed68506b785f067796a1836b | <ide><path>daemon/execdriver/native/create.go
<ide> func (d *driver) createContainer(c *execdriver.Command) (*libcontainer.Config, e
<ide> container.Cgroups.Name = c.ID
<ide> container.Cgroups.AllowedDevices = c.AllowedDevices
<ide> container.MountConfig.DeviceNodes = c.AutoCreatedDevices
<add> container.RootFs = c.... | 2 |
Javascript | Javascript | fix xhtml regression. close gh-1375 | 2d4c0d5f375bcf59a5a0cd19c4562bd57f03fb1d | <ide><path>src/manipulation/support.js
<ide> define([
<ide> div = fragment.appendChild( document.createElement( "div" ) );
<ide>
<ide> // #11217 - WebKit loses check when the name is after the checked attribute
<del> div.innerHTML = "<input type='radio' checked name='t'/>";
<add> div.innerHTML = "<input type='radio... | 1 |
Ruby | Ruby | convert accessibility test to spec | af8b91746c8ee67cc5c050fdd4182089171dd0ab | <ide><path>Library/Homebrew/cask/spec/cask/accessibility_spec.rb
<add>require "spec_helper"
<add>
<add># TODO: this test should be named after the corresponding class, once
<add># that class is abstracted from installer.rb.
<add>describe "Accessibility Access" do
<add> let(:cask) { Hbc::CaskLoader.load_from_file... | 2 |
PHP | PHP | add cursor mode to db and paginator (no conflict) | f358e0dcb4e8ac37bf19f4a707f45413068d7693 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> protected function ungroupedPaginate($paginator, $perPage, $columns)
<ide> return $paginator->make($this->get($columns)->all(), $total, $perPage);
<ide> }
<ide>
<add> /**
<add> * Get a paginator in cursor mode for the "select" statement.
<add> *
<add> ... | 6 |
Javascript | Javascript | append js_require_ to require profile names | 87253ca722a47534b8fd33d38ae1dbe96e2c5dbe | <ide><path>packager/react-packager/src/Resolver/polyfills/require.js
<ide> // require cycles inside the factory from causing an infinite require loop.
<ide> mod.isInitialized = true;
<ide>
<del> __DEV__ && BridgeProfiling().profile(id);
<add> __DEV__ && BridgeProfiling().profile('JS_require_' + i... | 1 |
Javascript | Javascript | fix model<->option interaction when using track by | 6a03ca274314352052c3082163367a146bb11c2d | <ide><path>src/ng/directive/ngOptions.js
<ide> var ngOptionsDirective = ['$compile', '$parse', function($compile, $parse) {
<ide> selectValueMap: selectValueMap,
<ide> getOptionFromViewValue: function(value) {
<ide> return selectValueMap[getTrackByValue(value, getLocals(value))];
<add> ... | 2 |
Ruby | Ruby | add support for extracting lha archives | 8fe0b5681056fe2540aba05721bfc6cde363e8d8 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def lzippath
<ide> "#{HOMEBREW_PREFIX}/opt/lzip/bin/lzip"
<ide> end
<ide>
<add> def lhapath
<add> "#{HOMEBREW_PREFIX}/opt/lha/bin/lha"
<add> end
<add>
<ide> def cvspath
<ide> @cvspath ||= %W[
<ide> /usr/bin/cvs
<ide> def stage
<ide> when... | 2 |
Javascript | Javascript | fix race conditions in test-http-upgrade-client2 | 40f675b64b99f0c0392599bd692c5a580500bfd2 | <ide><path>test/simple/test-http-upgrade-client2.js
<ide> server.on('upgrade', function(req, socket, head) {
<ide> socket.end();
<ide> });
<ide> });
<del>server.listen(8000);
<ide>
<del>var client = http.createClient(8000);
<ide>
<del>function upgradeRequest(fn) {
<del> var request = client.requ... | 1 |
Ruby | Ruby | reduce potential modifications to frozen string | a998c364f4394b30ca45f7e100c51652d26389d6 | <ide><path>Library/Homebrew/requirement.rb
<ide> def mktemp(&block)
<ide>
<ide> def infer_name
<ide> klass = self.class.name || self.class.to_s
<del> klass.sub!(/(Dependency|Requirement)$/, "")
<del> klass.sub!(/^(\w+::)*/, "")
<add> klass = klass.sub(/(Dependency|Requirement)$/, "")
<add> klass = kl... | 1 |
Javascript | Javascript | change var to let/const | b1a13b12f22148467e5c6f71b660505387c3f456 | <ide><path>lib/_stream_writable.js
<ide> function WritableState(options, stream, isDuplex) {
<ide> }
<ide>
<ide> WritableState.prototype.getBuffer = function getBuffer() {
<del> var current = this.bufferedRequest;
<add> let current = this.bufferedRequest;
<ide> const out = [];
<ide> while (current) {
<ide> o... | 1 |
Text | Text | use single quotes, remove extra whitespace | 0ceb5115ace29ffffac4e37f8f59c75fef23deb0 | <ide><path>docs/docs/optimizing-performance.md
<ide> If you're using Create React App, both `Object.assign` and the object spread syn
<ide> Immutability makes tracking changes cheap. A change will always result in a new object so we only need to check if the reference to the object has changed. For example, in this reg... | 1 |
Java | Java | fix typo in javadoc for testcontextbootstrapper | 0cd21aa55f79d6b36890172f0cf28b880c0f1f34 | <ide><path>spring-test/src/main/java/org/springframework/test/context/TestContextBootstrapper.java
<ide> public interface TestContextBootstrapper {
<ide> * <li>If a {@code ContextLoader} class has been explicitly declared via
<ide> * {@link ContextConfiguration#loader}, use it.</li>
<ide> * <li>Otherwise, concret... | 1 |
Text | Text | add targos as a collaborator | 6f306e0ed286612c279aee94713316608ff203e5 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Rich Trott** <rtrott@gmail.com> ([@Trott](https://github.com/Trott))
<ide> * **Сковорода Никита Андреевич** <chalkerx@gmail.com> ([@ChALkeR](https://github.com/ChALkeR))
<ide> * **Sakthipriyan Vairamani** <the... | 1 |
Mixed | Ruby | add migration versioning via migration subclasses | 6940dc860c4b25bff2eded370f2af4316de15a30 | <ide><path>activerecord/CHANGELOG.md
<add>* Version the API presented to migration classes, so we can change parameter
<add> defaults without breaking existing migrations, or forcing them to be
<add> rewritten through a deprecation cycle.
<add>
<add> *Matthew Draper*, *Ravil Bayramgalin*
<add>
<ide> * Use ... | 5 |
PHP | PHP | use strict assertion | 41383c82858ee70be13689de56daa32547e3ebad | <ide><path>tests/TestCase/Cache/Engine/RedisEngineTest.php
<ide> public function testIncrementAfterWrite()
<ide> $this->assertTrue($result);
<ide>
<ide> $result = Cache::read('test_increment', 'redis');
<del> $this->assertEquals(1, $result);
<add> $this->assertSame(1, $result);
<ide>
<id... | 1 |
Python | Python | remove xrange that slipped into test_numeric.py | f2bec652c1a3137db0e0904312fcb9fe773350ec | <ide><path>numpy/core/tests/test_numeric.py
<ide> def load_data(self, n, eindex):
<ide> """Utility method for the issue 2592 tests.
<ide>
<ide> Raise an exception at the desired index in the iterator."""
<del> for e in xrange(n):
<add> for e in range(n):
<ide> if e == eindex:
... | 1 |
PHP | PHP | use correct brackets | 600e8a9b00cb0bbda141c8b2c6e1b1c9e6ebf2ee | <ide><path>src/Network/Request.php
<ide> class Request implements \ArrayAccess {
<ide> */
<ide> public static function createFromGlobals() {
<ide> list($base, $webroot) = static::_base();
<del> $sessionConfig = (array)Configure::read('Session') + array('defaults' => 'php');
<add> $sessionConfig = (array)Configure... | 1 |
Python | Python | use self.assertequal instead of assert | 7c79f4fc65ecd2a19969b61fa495084364f30790 | <ide><path>libcloud/test/test_utils.py
<ide> class TestPublicKeyUtils(unittest.TestCase):
<ide>
<ide> def test_pubkey_openssh_fingerprint(self):
<ide> fp = get_pubkey_openssh_fingerprint(self.PUBKEY)
<del> assert fp == '35:22:13:5b:82:e2:5d:e1:90:8c:73:74:9f:ef:3b:d8'
<add> self.assertEqual(f... | 1 |
Python | Python | revise imports from collections.abc module | 1bc1fd6bc2ec9c68997736cec1ce5dd4a625ea2f | <ide><path>doc/summarize.py
<ide>
<ide> """
<ide> import os, glob, re, sys, inspect, optparse
<del>try:
<del> # Accessing collections abstract classes from collections
<del> # has been deprecated since Python 3.3
<del> import collections.abc as collections_abc
<del>except ImportError:
<del> import collecti... | 7 |
Ruby | Ruby | ask the request if we should show exceptions | 6716ad555a687b1e825fa71ba076e641f4dc097a | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def request_method=(request_method) #:nodoc:
<ide> end
<ide> end
<ide>
<add> def show_exceptions? # :nodoc:
<add> # We're treating `nil` as "unset", and we want the default setting to be
<add> # `true`. This logic should be extract... | 3 |
PHP | PHP | simplify conditional | 07ab16fdfe4db427b4518ceda5693dbd3911b663 | <ide><path>src/Illuminate/Foundation/Console/ModelMakeCommand.php
<ide> class ModelMakeCommand extends GeneratorCommand
<ide> */
<ide> public function fire()
<ide> {
<del> if (parent::fire() !== false) {
<del> if ($this->option('migration')) {
<del> $table = Str::plural(Str... | 1 |
Ruby | Ruby | use fetch --retry | 281494c2556febe95fe64357577cd713846fcbf4 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def formula formula
<ide> test "brew install apple-gcc42"
<ide> end
<ide>
<del> test "brew fetch #{dependencies}" unless dependencies.empty?
<add> test "brew fetch --retry #{dependencies}" unless dependencies.empty?
<ide> formula_fetch_opt... | 1 |
Javascript | Javascript | add debug button to example | 891b364c1b61faaa43880bcaa86e002dbe48cf49 | <ide><path>src/ng/log.js
<ide> <button ng-click="$log.warn(message)">warn</button>
<ide> <button ng-click="$log.info(message)">info</button>
<ide> <button ng-click="$log.error(message)">error</button>
<add> <button ng-click="$log.debug(message)">debug</button>
<ide> </div>
<ide... | 1 |
Ruby | Ruby | reuse existing validate_index_length! method | 8f7ab136437038c6ed078cb7585d300f92710e17 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def index_name_exists?(table_name, index_name, default)
<ide> # [<tt>:type</tt>]
<ide> # The reference column type. Defaults to +:integer+.
<ide> # [<tt>:index</tt>]
<del> # Add an appropriate in... | 1 |
Go | Go | improve error if auto-selecting ip-range failed | 03b2393a80ccb2b8e148ee7e4261f4084f98199a | <ide><path>libnetwork/netutils/utils_linux.go
<ide> func ElectInterfaceAddresses(name string) ([]*net.IPNet, []*net.IPNet, error) {
<ide> }
<ide>
<ide> if link == nil || len(v4Nets) == 0 {
<del> // Choose from predefined local scope networks
<add> // Choose from predefined local scope networks
<ide> v4Net, err ... | 1 |
Javascript | Javascript | improve inline comments | 27d4a4f0cad3abdff4a1df9c7314b4adb7eeb2c9 | <ide><path>src/ng/directive/ngRepeat.js
<ide> var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
<ide> //watch props
<ide> $scope.$watchCollection(rhs, function ngRepeatAction(collection) {
<ide> var index, length,
<del> previousNode = $element[0], // ... | 1 |
Javascript | Javascript | simplify schlick signature | 528ada08ea8abfbe4f81ab1ecb08f63396d8c113 | <ide><path>src/renderers/shaders/ShaderChunk/bsdfs.glsl.js
<ide> export default /* glsl */`
<ide> // via 'environmentBRDF' from "Physically Based Shading on Mobile"
<ide> // https://www.unrealengine.com/blog/physically-based-shading-on-mobile - environmentBRDF for GGX on mobile
<ide> vec2 integrateSpecularBRDF( const i... | 3 |
Java | Java | move requestpath to parent server package | 6855a85c41a51aeb151c8c1103e30a6a6745197b | <ide><path>spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java
<ide> import org.springframework.http.HttpMethod;
<ide> import org.springframework.http.HttpRange;
<ide> import org.springframework.http.MediaType;
<del>import org.springframework.http.server.reactive.PathC... | 37 |
PHP | PHP | add subquery support for "from" and "table" | 6c1e014943a508afb2c10869c3175f7783a004e1 | <ide><path>src/Illuminate/Database/Capsule/Manager.php
<ide> public static function connection($connection = null)
<ide> /**
<ide> * Get a fluent query builder instance.
<ide> *
<del> * @param string $table
<add> * @param \Closure|\Illuminate\Database\Query\Builder|string $table
<add> * @p... | 5 |
Ruby | Ruby | add nclt sdk apache include directory to superenv | af06c75d72fe9c3c9f928b1480a5444746d93bd7 | <ide><path>Library/Homebrew/superenv.rb
<ide> def determine_cmake_include_path
<ide> paths = []
<ide> paths << "#{MacSystem.x11_prefix}/include/freetype2" if x11?
<ide> paths << "#{sdk}/usr/include/libxml2" unless deps.include? 'libxml2'
<del> # TODO prolly shouldn't always do this?
<del> paths << "#{... | 1 |
Text | Text | add readme with instructions on using benchpress | bfd311174d8a841c6896120af873c7db116afd6d | <ide><path>benchmarks/README.md
<add>Instructions for using benchpress (how to create benchmarks, how to run, how to configure) can be
<add>found at: https://github.com/angular/benchpress/blob/master/README.md.
<add>
<add>In this project, there is a configured grunt task for building the benchmarks, and placing them in... | 1 |
Ruby | Ruby | eliminate mutation of dependency objects | 1981e78eb2fe7231c999edf86c862597320ec5fe | <ide><path>Library/Homebrew/dependency.rb
<ide> class Dependency
<ide> include Dependable
<ide>
<del> attr_reader :name, :tags
<del> attr_accessor :env_proc, :option_name
<add> attr_reader :name, :tags, :env_proc, :option_name
<ide>
<del> def initialize(name, tags=[])
<del> @name = @option_name = name
<add> ... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.