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 |
|---|---|---|---|---|---|
Ruby | Ruby | add fetch to cookiejar | 789df3be3eaad5861647f22b02d362fd36a40657 | <ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb
<ide> def [](name)
<ide> @cookies[name.to_s]
<ide> end
<ide>
<add> def fetch(name, *args, &block)
<add> @cookies.fetch(name.to_s, *args, &block)
<add> end
<add>
<ide> def key?(name)
<ide> @cookies.key?(name.to_s)
<ide> end
<ide><path>actionpack/test/dispatch/cookies_test.rb
<ide> def setup
<ide> @request.host = "www.nextangle.com"
<ide> end
<ide>
<add> def test_fetch
<add> x = Object.new
<add> assert_not request.cookie_jar.key?('zzzzzz')
<add> assert_equal x, request.cookie_jar.fetch('zzzzzz', x)
<add> assert_not request.cookie_jar.key?('zzzzzz')
<add> end
<add>
<add> def test_fetch_exists
<add> x = Object.new
<add> request.cookie_jar['foo'] = 'bar'
<add> assert_equal 'bar', request.cookie_jar.fetch('foo', x)
<add> end
<add>
<add> def test_fetch_block
<add> x = Object.new
<add> assert_not request.cookie_jar.key?('zzzzzz')
<add> assert_equal x, request.cookie_jar.fetch('zzzzzz') { x }
<add> end
<add>
<add> def test_key_is_to_s
<add> request.cookie_jar['foo'] = 'bar'
<add> assert_equal 'bar', request.cookie_jar.fetch(:foo)
<add> end
<add>
<add> def test_fetch_type_error
<add> assert_raises(KeyError) do
<add> request.cookie_jar.fetch(:omglolwut)
<add> end
<add> end
<add>
<ide> def test_each
<ide> request.cookie_jar['foo'] = :bar
<ide> list = [] | 2 |
Text | Text | update index.md comments | ca0d64ee3e629b16de632404447f8f85ca1177b9 | <ide><path>guide/spanish/csharp/linq/index.md
<ide> ---
<ide> title: LINQ
<ide> localeTitle: LINQ
<del>---
<ide># LINQ (Language Integrated Query)
<del>
<del>LINQ (Language Integrated Query) es un modelo y metodología de programación de Microsoft que esencialmente agrega capacidades de consulta formales a los lenguajes de programación basados en Microsoft .NET. LINQ ofrece una sintaxis compacta, expresiva e inteligible para manipular datos. El valor real de LINQ proviene de su capacidad para aplicar la misma consulta a una base de datos SQL, un DataSet, una lista, un diccionario, etc.
<del>
<del>## Ejemplo
<del>
<del>LINQ se puede utilizar para filtrar, transformar, buscar datos y muchas más tareas complejas. Digamos que tenemos la siguiente lista de objetos:
<del>
<del>```csharp
<del>var fruits = new List<Fruit>() {
<del> new Fruit() { Id = 1, Name = "Orange", Color = "Orange", Quantity: 3 },
<del> new Fruit() { Id = 2, Name = "Strawberry", Color = "Red", Quantity: 12 },
<del> new Fruit() { Id = 3, Name = "Grape", Color = "Purple", Quantity: 25 },
<del> new Fruit() { Id = 4, Name = "Pineapple", Color = "Yellow", Quantity: 1 },
<del> new Fruit() { Id = 5, Name = "Apple", Color = "Red", Quantity: 5 },
<del> new Fruit() { Id = 6, Name = "Mango", Color = "Yellow", Quantity: 2 }
<del> }
<del>```
<del>
<del>Entonces podemos hacer cosas como:
<del>
<del>```csharp
<del>// Get the name of the first fruit
<del> var firstName = fruits.Select(f => f.Name).First(); // Orange
<del>
<del> // Count how many fruits are red
<del> var qntRed = fruits.Where(Color == "Red").Count(); // 2
<del>
<del> // Create a list of yellow fruits
<del> var yellowFruits = fruits.Where(f => f.Color == "Yellow").ToList(); // { Pineapple, Mango }
<del>
<del> // Orders list by quantity from most to less
<del> var orderedFruits = fruits.OrderByDescending(f => f.Quantity).ToList(); // {Grape, Strawberry, Orange, Apple, Mango, Pineapple}
<del>
<del> // Sum the quantity of fruits
<del> var quantity = fruits.Sum(f => f.Quantity); // 53
<del>
<del> // Check if there are any green fruits
<del> var hasGreen = fruits.Any(f => f.Color == "Green"); // false
<del>
<del> // Group fruits by color into a dictionary
<del> var fruitsByColor = fruits.GroupBy(g => g.Color).ToDictionary(k => k.Key, v => v.ToList()); // Dictionary of list of fruits by color
<del>
<del> // linq operations can be concatenated and are not performed as long as data is needed
<del> var logs = new List<Log>;
<del>
<del> if (filterBySeverity)
<del> logs = logs.Where(p => p.Severity == severity);
<del> //IQueryable
<del>
<del> if (filterByUser)
<del> logs = logs.Where(p => p.User == user);
<del> //IQueryable
<del>
<del> result = logs.ToList();
<del> //List<log>
<del>
<del>```
<ide>\ No newline at end of file
<add>---
<add># LINQ (Language Integrated Query)
<add>
<add>LINQ (Language Integrated Query) es un modelo y metodología de programación de Microsoft que esencialmente agrega capacidades de consulta formales a los lenguajes de programación basados en Microsoft .NET. LINQ ofrece una sintaxis compacta, expresiva e inteligible para manipular datos. El valor real de LINQ proviene de su capacidad para aplicar la misma consulta a una base de datos SQL, un DataSet, una lista, un diccionario, etc.
<add>
<add>## Ejemplo
<add>
<add>LINQ se puede utilizar para filtrar, transformar, buscar datos y muchas más tareas complejas. Digamos que tenemos la siguiente lista de objetos:
<add>
<add>```csharp
<add>var fruits = new List<Fruit>() {
<add> new Fruit() { Id = 1, Name = "Orange", Color = "Orange", Quantity: 3 },
<add> new Fruit() { Id = 2, Name = "Strawberry", Color = "Red", Quantity: 12 },
<add> new Fruit() { Id = 3, Name = "Grape", Color = "Purple", Quantity: 25 },
<add> new Fruit() { Id = 4, Name = "Pineapple", Color = "Yellow", Quantity: 1 },
<add> new Fruit() { Id = 5, Name = "Apple", Color = "Red", Quantity: 5 },
<add> new Fruit() { Id = 6, Name = "Mango", Color = "Yellow", Quantity: 2 }
<add> }
<add>```
<add>
<add>Entonces podemos hacer cosas como:
<add>
<add>```csharp
<add>// Obtener el nombre de la primer fruta
<add> var firstName = fruits.Select(f => f.Name).First(); // Orange
<add>
<add> // Conteo de las frutas rojas
<add> var qntRed = fruits.Where(Color == "Red").Count(); // 2
<add>
<add> // Lista de las frutas amarillas
<add> var yellowFruits = fruits.Where(f => f.Color == "Yellow").ToList(); // { Pineapple, Mango }
<add>
<add> // Ordenar la lista de mayor a menor cantidad
<add> var orderedFruits = fruits.OrderByDescending(f => f.Quantity).ToList(); // {Grape, Strawberry, Orange, Apple, Mango, Pineapple}
<add>
<add> // Suma de las cantidades de las frutas
<add> var quantity = fruits.Sum(f => f.Quantity); // 53
<add>
<add> // Consultar si hay frutas verdes
<add> var hasGreen = fruits.Any(f => f.Color == "Green"); // false
<add>
<add> // Agrupar frutas por color en un diccionario
<add> var fruitsByColor = fruits.GroupBy(g => g.Color).ToDictionary(k => k.Key, v => v.ToList()); // Dictionary of list of fruits by color
<add>
<add> // Las operaciones linq pueden ser concatenadas y no se realizan hasta que la informacion es requerida
<add> var logs = new List<Log>;
<add>
<add> if (filterBySeverity)
<add> logs = logs.Where(p => p.Severity == severity);
<add> //IQueryable
<add>
<add> if (filterByUser)
<add> logs = logs.Where(p => p.User == user);
<add> //IQueryable
<add>
<add> result = logs.ToList();
<add> //List<log>
<add>
<add>``` | 1 |
Python | Python | expose fromiter's docstring | 7dc0cb19610c4ce559b32617eace1091cddd8ea4 | <ide><path>numpy/add_newdocs.py
<ide>
<ide> """)
<ide>
<del>add_newdoc('numpy.core.multiarray','fromstring',
<add>add_newdoc('numpy.core.multiarray','fromiter',
<ide> """fromiter(iterable, dtype, count=-1)
<ide>
<ide> Return a new 1d array initialized from iterable. If count is | 1 |
Javascript | Javascript | add debug log for err_unescaped_characters | bbbf97b6dae63697371082475dc8651a6a220336 | <ide><path>lib/_http_client.js
<ide> function ClientRequest(input, options, cb) {
<ide>
<ide> if (options.path) {
<ide> const path = String(options.path);
<del> if (RegExpPrototypeExec(INVALID_PATH_REGEX, path) !== null)
<add> if (RegExpPrototypeExec(INVALID_PATH_REGEX, path) !== null) {
<add> debug('Path contains unescaped characters: "%s"', path);
<ide> throw new ERR_UNESCAPED_CHARACTERS('Request path');
<add> }
<ide> }
<ide>
<ide> if (protocol !== expectedProtocol) { | 1 |
Javascript | Javascript | write buffers when chunked to embrace writev | df8a4f8f07cf274c6c9fae50e175879d6a1dc139 | <ide><path>lib/_http_outgoing.js
<ide> OutgoingMessage.prototype.write = function(chunk, encoding) {
<ide> } else {
<ide> // buffer, or a non-toString-friendly encoding
<ide> len = chunk.length;
<del> this._send(len.toString(16) + CRLF);
<del> this._send(chunk, encoding);
<del> ret = this._send(CRLF);
<add>
<add> if (this.connection)
<add> this.connection.cork();
<add> this._send(len.toString(16));
<add> this._send(crlf_buf);
<add> this._send(chunk);
<add> ret = this._send(crlf_buf);
<add> if (this.connection)
<add> this.connection.uncork();
<ide> }
<ide> } else {
<ide> ret = this._send(chunk, encoding); | 1 |
Python | Python | fix author search in announce.py | fcdb1fcd8cd26c112442db02996e074cc355e88f | <ide><path>tools/announce.py
<ide> """
<ide>
<ide> def get_authors(revision_range):
<del> pat = u'.*\\t(.*)\\n'
<add> pat = u'^.*\\t(.*)$'
<ide> lst_release, cur_release = [r.strip() for r in revision_range.split('..')]
<ide>
<ide> # authors, in current release and previous to current release.
<del> cur = set(re.findall(pat, this_repo.git.shortlog('-s', revision_range)))
<del> pre = set(re.findall(pat, this_repo.git.shortlog('-s', lst_release)))
<add> cur = set(re.findall(pat, this_repo.git.shortlog('-s', revision_range),
<add> re.M))
<add> pre = set(re.findall(pat, this_repo.git.shortlog('-s', lst_release),
<add> re.M))
<ide>
<ide> # Homu is the author of auto merges, clean him out.
<ide> cur.discard('Homu')
<ide> def get_pull_requests(repo, revision_range):
<ide> # From regular merges
<ide> merges = this_repo.git.log(
<ide> '--oneline', '--merges', revision_range)
<del> issues = re.findall(u"Merge pull request \#(\d*)", merges)
<add> issues = re.findall(u"Merge pull request \\#(\\d*)", merges)
<ide> prnums.extend(int(s) for s in issues)
<ide>
<ide> # From Homu merges (Auto merges)
<del> issues = re. findall(u"Auto merge of \#(\d*)", merges)
<add> issues = re. findall(u"Auto merge of \\#(\\d*)", merges)
<ide> prnums.extend(int(s) for s in issues)
<ide>
<ide> # From fast forward squash-merges
<ide> commits = this_repo.git.log(
<ide> '--oneline', '--no-merges', '--first-parent', revision_range)
<del> issues = re.findall(u'.*\(\#(\d+)\)\n', commits)
<add> issues = re.findall(u'^.*\\(\\#(\\d+)\\)$', commits, re.M)
<ide> prnums.extend(int(s) for s in issues)
<ide>
<ide> # get PR data from github repo
<ide> def main(token, revision_range):
<ide> heading = u"Contributors to {0}".format(cur_release)
<ide> print()
<ide> print(heading)
<del> print(u"-"*len(heading))
<add> print(u"="*len(heading))
<ide> print(author_msg % len(authors))
<ide>
<ide> for s in authors:
<ide> def main(token, revision_range):
<ide> heading = u"Pull requests merged for {0}".format(cur_release)
<ide> print()
<ide> print(heading)
<del> print(u"-"*len(heading))
<add> print(u"="*len(heading))
<ide> print(pull_request_msg % len(pull_requests))
<ide>
<ide> for pull in pull_requests:
<ide> pull_msg = u"- `#{0} <{1}>`__: {2}"
<del> title = re.sub(u"\s+", u" ", pull.title.strip())
<add> title = re.sub(u"\\s+", u" ", pull.title.strip())
<ide> if len(title) > 60:
<del> remainder = re.sub(u"\s.*$", u"...", title[60:])
<add> remainder = re.sub(u"\\s.*$", u"...", title[60:])
<ide> if len(remainder) > 20:
<ide> remainder = title[:80] + u"..."
<ide> else: | 1 |
Go | Go | add remount for bind mounts in ro | 8d19b2caa01535202c2fa82913ad99ec2594032a | <ide><path>container.go
<ide> func (container *Container) Start() (err error) {
<ide>
<ide> for r, v := range container.Volumes {
<ide> mountAs := "ro"
<del> if container.VolumesRW[v] {
<add> if container.VolumesRW[r] {
<ide> mountAs = "rw"
<ide> }
<ide>
<ide><path>mount/mount_test.go
<ide> func TestMounted(t *testing.T) {
<ide> }
<ide> f.Close()
<ide>
<del> if err := Mount(sourcePath, targetPath, "none", "bind,ro"); err != nil {
<add> if err := Mount(sourcePath, targetPath, "none", "bind,rw"); err != nil {
<ide> t.Fatal(err)
<ide> }
<ide> defer func() {
<ide> func TestMounted(t *testing.T) {
<ide> if !mounted {
<ide> t.Fatalf("Expected %s to be mounted", targetPath)
<ide> }
<add> if _, err := os.Stat(targetPath); err != nil {
<add> t.Fatal(err)
<add> }
<add>}
<add>
<add>func TestMountReadonly(t *testing.T) {
<add> tmp := path.Join(os.TempDir(), "mount-tests")
<add> if err := os.MkdirAll(tmp, 0777); err != nil {
<add> t.Fatal(err)
<add> }
<add> defer os.RemoveAll(tmp)
<add>
<add> var (
<add> sourcePath = path.Join(tmp, "sourcefile.txt")
<add> targetPath = path.Join(tmp, "targetfile.txt")
<add> )
<add>
<add> f, err := os.Create(sourcePath)
<add> if err != nil {
<add> t.Fatal(err)
<add> }
<add> f.WriteString("hello")
<add> f.Close()
<add>
<add> f, err = os.Create(targetPath)
<add> if err != nil {
<add> t.Fatal(err)
<add> }
<add> f.Close()
<add>
<add> if err := Mount(sourcePath, targetPath, "none", "bind,ro"); err != nil {
<add> t.Fatal(err)
<add> }
<add> defer func() {
<add> if err := Unmount(targetPath); err != nil {
<add> t.Fatal(err)
<add> }
<add> }()
<add>
<add> f, err = os.OpenFile(targetPath, os.O_RDWR, 0777)
<add> if err == nil {
<add> t.Fatal("Should not be able to open a ro file as rw")
<add> }
<ide> }
<ide><path>mount/mounter_linux.go
<ide> import (
<ide> )
<ide>
<ide> func mount(device, target, mType string, flag uintptr, data string) error {
<del> return syscall.Mount(device, target, mType, flag, data)
<add> if err := syscall.Mount(device, target, mType, flag, data); err != nil {
<add> return err
<add> }
<add>
<add> // If we have a bind mount or remount, remount...
<add> if flag&syscall.MS_BIND == syscall.MS_BIND && flag&syscall.MS_RDONLY == syscall.MS_RDONLY {
<add> return syscall.Mount(device, target, mType, flag|syscall.MS_REMOUNT, data)
<add> }
<add> return nil
<ide> }
<ide>
<ide> func unmount(target string, flag int) error { | 3 |
Python | Python | remove unnecessary imports | 16e4679834e1bf3e805703b197d377e35504fa09 | <ide><path>tutorials/image/cifar10/cifar10_eval.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<del>import argparse
<ide> from datetime import datetime
<ide> import math
<ide> import time
<ide><path>tutorials/image/cifar10/cifar10_multi_gpu_train.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<del>import argparse
<ide> from datetime import datetime
<ide> import os.path
<ide> import re
<ide><path>tutorials/image/cifar10/cifar10_train.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<del>import argparse
<ide> from datetime import datetime
<ide> import time
<ide> | 3 |
Ruby | Ruby | remove bad test | 47aae82d33a0dc76e5f759658480b4fa4fe0bd04 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_head_ignores_revisions
<ide> assert_equal PkgVersion.parse('HEAD'), f.pkg_version
<ide> end
<ide>
<del> def test_raises_when_non_formula_constant_exists
<del> const = :SomeConst
<del> Object.const_set(const, Module.new)
<del> begin
<del> assert_raises(FormulaUnavailableError) { Formulary.factory("some_const") }
<del> ensure
<del> Object.send(:remove_const, const)
<del> end
<del> end
<del>
<ide> def test_legacy_options
<ide> f = formula do
<ide> url "foo-1.0" | 1 |
Java | Java | remove log when turbomodule cannot be created | 8a8c15f9fa96ee98f366c341f3223c4bc370e237 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/TurboModuleManager.java
<ide> import androidx.annotation.GuardedBy;
<ide> import androidx.annotation.NonNull;
<ide> import androidx.annotation.Nullable;
<del>import com.facebook.common.logging.FLog;
<ide> import com.facebook.infer.annotation.Assertions;
<ide> import com.facebook.jni.HybridData;
<ide> import com.facebook.proguard.annotations.DoNotStrip;
<ide> import com.facebook.react.bridge.CxxModuleWrapper;
<ide> import com.facebook.react.bridge.JSIModule;
<ide> import com.facebook.react.bridge.JavaScriptContextHolder;
<ide> import com.facebook.react.bridge.NativeModule;
<del>import com.facebook.react.common.ReactConstants;
<ide> import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder;
<ide> import com.facebook.react.turbomodule.core.interfaces.TurboModule;
<ide> import com.facebook.react.turbomodule.core.interfaces.TurboModuleRegistry;
<ide> private TurboModule getModule(
<ide> * Therefore, we should initialize on the TurboModule now.
<ide> */
<ide> ((NativeModule) turboModule).initialize();
<del> } else {
<del> FLog.e(
<del> ReactConstants.TAG,
<del> "TurboModuleManager.getModule: TurboModule " + moduleName + " not found in delegate");
<ide> }
<ide>
<ide> TurboModulePerfLogger.moduleCreateSetUpEnd(moduleName, moduleHolder.getModuleId()); | 1 |
PHP | PHP | add component tests | 1639f12de6dcea56681ea4fbcf4e72820f345a78 | <ide><path>tests/View/ViewComponentTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\View;
<add>
<add>use Illuminate\View\Component;
<add>use PHPUnit\Framework\TestCase;
<add>
<add>class ViewFactoryTest extends TestCase
<add>{
<add> public function testAttributeRetrieval()
<add> {
<add> $component = new TestViewComponent;
<add> $component->withAttributes(['class' => 'font-bold', 'name' => 'test']);
<add>
<add> $this->assertEquals('class="mt-4 font-bold" name="test"', (string) $component->attributes(['class' => 'mt-4']));
<add> }
<add>}
<add>
<add>class TestViewComponent extends Component
<add>{
<add> public function view()
<add> {
<add> return 'test';
<add> }
<add>} | 1 |
Text | Text | explain backport labels | f743054ef4542d00a67b8173e3514387be06ca6b | <ide><path>doc/guides/backporting-to-release-lines.md
<ide> require that commits mature in the Current release for at least 2 weeks before
<ide> they can be landed in an LTS staging branch. Only after "maturation" will those
<ide> commits be cherry-picked or backported.
<ide>
<add>## How to label backport issues and PRs?
<add>
<add>For the following labels, the `N` in `vN.x` refers to the major release number.
<add>
<add>| Label | Description |
<add>| ----------------------- | ------------------------------------------------------------------------------------------------- |
<add>| backport-blocked-vN.x | PRs that should land on the vN.x-staging branch but are blocked by another PR's pending backport. |
<add>| backport-open-vN.x | Indicate that the PR has an open backport. |
<add>| backport-requested-vN.x | PRs awaiting manual backport to the vN.x-staging branch. |
<add>| backported-to-vN.x | PRs backported to the vN.x-staging branch. |
<add>| baking-for-lts | PRs that need to wait before landing in a LTS release. |
<add>| lts-watch-vN.x | PRs that may need to be released in vN.x. |
<add>| vN.x | Issues that can be reproduced on vN.x or PRs targeting the vN.x-staging branch. |
<add>
<ide> ## How to submit a backport pull request
<ide>
<ide> For the following steps, let's assume that a backport is needed for the v10.x | 1 |
Ruby | Ruby | improve taggings api by introducing a null object | 8af78700d244c9e2e6403ce704326ef45ecbe288 | <ide><path>actionpack/lib/action_controller/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide>
<ide> ActiveSupport.on_load(:active_record) do
<ide> ActiveRecord::QueryLogs.taggings.merge!(
<del> controller: -> { context[:controller]&.controller_name },
<del> action: -> { context[:controller]&.action_name },
<del> namespaced_controller: -> { context[:controller]&.class&.name }
<add> controller: -> { context[:controller].controller_name },
<add> action: -> { context[:controller].action_name },
<add> namespaced_controller: -> { context[:controller].class.name }
<ide> )
<ide> end
<ide> end
<ide><path>activejob/lib/active_job/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide> if app.config.active_record.query_log_tags_enabled && app.config.active_job.log_query_tags_around_perform != false
<ide> app.config.active_record.query_log_tags << :job
<ide>
<del> ActiveSupport.on_load(:active_job) do
<del> include ActiveJob::QueryTags
<del> end
<add> ActiveSupport.on_load(:active_job) do
<add> include ActiveJob::QueryTags
<add> end
<ide>
<del> ActiveSupport.on_load(:active_record) do
<del> ActiveRecord::QueryLogs.taggings[:job] = -> { context[:job]&.class&.name }
<add> ActiveSupport.on_load(:active_record) do
<add> ActiveRecord::QueryLogs.taggings[:job] = -> { context[:job].class.name }
<ide> end
<ide> end
<ide> end
<ide><path>activerecord/lib/active_record/query_logs.rb
<ide> module QueryLogs
<ide> mattr_accessor :cache_query_log_tags, instance_accessor: false, default: false
<ide> thread_mattr_accessor :cached_comment, instance_accessor: false
<ide>
<add> class NullObject # :nodoc:
<add> def method_missing(method, *args, &block)
<add> NullObject.new
<add> end
<add>
<add> def nil?
<add> true
<add> end
<add>
<add> private
<add> def respond_to_missing?(method, include_private = false)
<add> true
<add> end
<add> end
<add>
<ide> class << self
<ide> # Updates the context used to construct tags in the SQL comment.
<ide> # Resets the cached comment if <tt>cache_query_log_tags</tt> is +true+.
<ide> def set_context(**options)
<ide> update_context(**options)
<ide> yield if block_given?
<ide> ensure
<del> update_context(**options.transform_values! { nil })
<add> update_context(**options.transform_values! { NullObject.new })
<ide> end
<ide>
<ide> # Temporarily tag any query executed within `&block`. Can be nested.
<ide> def inline_comment
<ide>
<ide> # Return the set of active inline tags from +with_tag+.
<ide> def inline_tags
<del> context[:inline_tags] ||= []
<add> if context[:inline_tags].nil?
<add> context[:inline_tags] = []
<add> else
<add> context[:inline_tags]
<add> end
<ide> end
<ide>
<ide> def context
<del> Thread.current[:active_record_query_log_tags_context] ||= {}
<add> Thread.current[:active_record_query_log_tags_context] ||= Hash.new { NullObject.new }
<ide> end
<ide>
<ide> def escape_sql_comment(content)
<ide> def escape_sql_comment(content)
<ide> def tag_content
<ide> tags.flat_map { |i| [*i] }.filter_map do |tag|
<ide> key, value_input = tag
<add>
<ide> val = case value_input
<ide> when nil then tag_value(key) if taggings.has_key? key
<ide> when Proc then instance_exec(&value_input)
<ide> else value_input
<ide> end
<add>
<ide> "#{key}:#{val}" unless val.nil?
<ide> end.join(",")
<ide> end | 3 |
Python | Python | fix issue from previous merge | 92aececa37a158d9075010a80b159882240309dc | <ide><path>glances/plugins/glances_help.py
<ide> def generate_view_data(self):
<ide> self.view_data['psutil_version'] = _(" with PSutil {0}").format(psutil_version)
<ide>
<ide> try:
<del> self.view_data['configuration_file'] = '{0}: {1}'.format(_("Configuration file"), self.config.loaded_config_file())
<add> self.view_data['configuration_file'] = '{0}: {1}'.format(_("Configuration file"), self.config.get_loaded_config_file())
<ide> except AttributeError:
<ide> pass
<ide> | 1 |
Java | Java | remove unused imports | f254680f291334ced941d539ceab7c90f5954371 | <ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/AbstractEncoder.java
<ide> import java.util.List;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.Encoder;
<ide> import org.springframework.util.MimeType;
<ide>
<ide> /**
<ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/ResourceDecoder.java
<ide> import reactor.core.publisher.Mono;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.AbstractDecoder;
<ide> import org.springframework.core.io.ByteArrayResource;
<ide> import org.springframework.core.io.InputStreamResource;
<ide> import org.springframework.core.io.Resource;
<ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/ResourceEncoder.java
<ide> import reactor.core.publisher.Flux;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.AbstractSingleValueEncoder;
<ide> import org.springframework.core.io.Resource;
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.core.io.buffer.DataBufferFactory;
<ide><path>spring-web-reactive/src/main/java/org/springframework/http/server/reactive/AbstractResponseBodySubscriber.java
<ide> import org.apache.commons.logging.LogFactory;
<ide> import org.reactivestreams.Subscriber;
<ide> import org.reactivestreams.Subscription;
<del>import reactor.core.util.BackpressureUtils;
<ide>
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.core.io.buffer.FlushingDataBuffer;
<ide><path>spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/HttpServerSupport.java
<ide>
<ide> package org.springframework.http.server.reactive.boot;
<ide>
<del>
<del>import org.springframework.beans.factory.InitializingBean;
<ide> import org.springframework.http.server.reactive.HttpHandler;
<ide> import org.springframework.util.SocketUtils;
<ide>
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/MediaTypeExpression.java
<ide> package org.springframework.web.reactive.result.condition;
<ide>
<ide> import org.springframework.http.MediaType;
<del>import org.springframework.web.bind.annotation.RequestMapping;
<ide>
<ide> /**
<ide> * A contract for media type expressions (e.g. "text/plain", "!text/plain") as
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/NameValueExpression.java
<ide>
<ide> package org.springframework.web.reactive.result.condition;
<ide>
<del>import org.springframework.web.bind.annotation.RequestMapping;
<del>
<ide> /**
<ide> * A contract for {@code "name!=value"} style expression used to specify request
<ide> * parameters and request header conditions in {@code @RequestMapping}.
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/RequestCondition.java
<ide>
<ide> package org.springframework.web.reactive.result.condition;
<ide>
<del>import javax.servlet.http.HttpServletRequest;
<del>
<ide> import org.springframework.web.server.ServerWebExchange;
<ide>
<ide> /**
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/view/View.java
<ide> package org.springframework.web.reactive.result.view;
<ide>
<ide> import java.util.List;
<del>import java.util.Optional;
<ide>
<del>import reactor.core.publisher.Flux;
<ide> import reactor.core.publisher.Mono;
<ide>
<del>import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.http.MediaType;
<ide> import org.springframework.web.reactive.HandlerResult;
<ide> import org.springframework.web.server.ServerWebExchange;
<ide><path>spring-web-reactive/src/test/java/org/springframework/core/codec/ByteBufferDecoderTests.java
<ide> import reactor.core.test.TestSubscriber;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.ByteBufferDecoder;
<ide> import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.http.MediaType;
<ide><path>spring-web-reactive/src/test/java/org/springframework/core/codec/ByteBufferEncoderTests.java
<ide> import reactor.core.test.TestSubscriber;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.ByteBufferEncoder;
<ide> import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.http.MediaType;
<ide><path>spring-web-reactive/src/test/java/org/springframework/core/codec/ResourceDecoderTests.java
<ide> import reactor.core.test.TestSubscriber;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.ResourceDecoder;
<ide> import org.springframework.core.io.ByteArrayResource;
<ide> import org.springframework.core.io.InputStreamResource;
<ide> import org.springframework.core.io.Resource;
<ide><path>spring-web-reactive/src/test/java/org/springframework/core/codec/ResourceEncoderTests.java
<ide> import reactor.core.test.TestSubscriber;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.ResourceEncoder;
<ide> import org.springframework.core.io.ByteArrayResource;
<ide> import org.springframework.core.io.InputStreamResource;
<ide> import org.springframework.core.io.Resource;
<ide><path>spring-web-reactive/src/test/java/org/springframework/core/codec/StringDecoderTests.java
<ide> import reactor.core.test.TestSubscriber;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.StringDecoder;
<ide> import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.http.MediaType;
<ide><path>spring-web-reactive/src/test/java/org/springframework/core/codec/StringEncoderTests.java
<ide> import reactor.core.test.TestSubscriber;
<ide>
<ide> import org.springframework.core.ResolvableType;
<del>import org.springframework.core.codec.StringEncoder;
<ide> import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
<ide> import org.springframework.core.io.buffer.support.DataBufferUtils;
<ide> import org.springframework.http.MediaType;
<ide><path>spring-web-reactive/src/test/java/org/springframework/core/convert/support/MonoToCompletableFutureConverterTests.java
<ide> import org.reactivestreams.Publisher;
<ide> import reactor.core.publisher.Flux;
<ide> import reactor.core.publisher.Mono;
<del>import rx.Observable;
<del>import rx.Single;
<ide>
<ide> import static org.junit.Assert.assertFalse;
<ide> import static org.junit.Assert.assertTrue;
<ide><path>spring-web-reactive/src/test/java/org/springframework/http/codec/json/JacksonJsonEncoderTests.java
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.http.MediaType;
<ide> import org.springframework.http.codec.Pojo;
<del>import org.springframework.http.codec.json.JacksonJsonEncoder;
<ide>
<ide> import static org.junit.Assert.assertFalse;
<ide> import static org.junit.Assert.assertTrue;
<ide><path>spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlEventDecoderTests.java
<ide> import reactor.core.test.TestSubscriber;
<ide>
<ide> import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
<del>import org.springframework.http.codec.xml.XmlEventDecoder;
<ide>
<ide> import static org.junit.Assert.assertEquals;
<ide> import static org.junit.Assert.assertTrue;
<ide><path>spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ChannelSendOperatorTests.java
<ide> import java.util.List;
<ide> import java.util.concurrent.Executors;
<ide> import java.util.concurrent.TimeUnit;
<del>import java.util.concurrent.atomic.AtomicInteger;
<ide>
<ide> import org.junit.Before;
<ide> import org.junit.Test;
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/result/WebHandlerIntegrationTests.java
<ide> import reactor.core.publisher.Flux;
<ide> import reactor.core.publisher.Mono;
<ide>
<del>import org.springframework.beans.MutablePropertyValues;
<ide> import org.springframework.context.annotation.AnnotationConfigApplicationContext;
<ide> import org.springframework.context.annotation.Bean;
<ide> import org.springframework.context.annotation.Configuration;
<del>import org.springframework.context.support.StaticApplicationContext;
<ide> import org.springframework.core.convert.support.DefaultConversionService;
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.core.io.buffer.DefaultDataBufferFactory;
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerViewTests.java
<ide> import org.springframework.http.server.reactive.MockServerHttpResponse;
<ide> import org.springframework.ui.ExtendedModelMap;
<ide> import org.springframework.ui.ModelMap;
<del>import org.springframework.web.method.HandlerMethod;
<ide> import org.springframework.web.reactive.HandlerResult;
<ide> import org.springframework.web.server.ServerWebExchange;
<ide> import org.springframework.web.server.adapter.DefaultServerWebExchange; | 21 |
Ruby | Ruby | use string#scrub when available to tidy bytes | ab195841ddc7302ca6e6fc4a5962bc5ab3b8c09b | <ide><path>activesupport/lib/active_support/multibyte/unicode.rb
<ide> def compose(codepoints)
<ide> codepoints
<ide> end
<ide>
<del> # Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent
<del> # resulting in a valid UTF-8 string.
<del> #
<del> # Passing +true+ will forcibly tidy all bytes, assuming that the string's
<del> # encoding is entirely CP1252 or ISO-8859-1.
<del> def tidy_bytes(string, force = false)
<del> return string if string.empty?
<del>
<del> if force
<del> return string.encode(Encoding::UTF_8, Encoding::Windows_1252, invalid: :replace, undef: :replace)
<add> # Ruby >= 2.1 has String#scrub, which is faster than the workaround used for < 2.1.
<add> if RUBY_VERSION >= '2.1'
<add> # Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent
<add> # resulting in a valid UTF-8 string.
<add> #
<add> # Passing +true+ will forcibly tidy all bytes, assuming that the string's
<add> # encoding is entirely CP1252 or ISO-8859-1.
<add> def tidy_bytes(string, force = false)
<add> return string if string.empty?
<add> return recode_windows1252_chars(string) if force
<add> string.scrub { |bad| recode_windows1252_chars(bad) }
<ide> end
<add> else
<add> def tidy_bytes(string, force = false)
<add> return string if string.empty?
<add> return recode_windows1252_chars(string) if force
<add>
<add> # We can't transcode to the same format, so we choose a nearly-identical encoding.
<add> # We're going to 'transcode' bytes from UTF-8 when possible, then fall back to
<add> # CP1252 when we get errors. The final string will be 'converted' back to UTF-8
<add> # before returning.
<add> reader = Encoding::Converter.new(Encoding::UTF_8, Encoding::UTF_8_MAC)
<add>
<add> source = string.dup
<add> out = ''.force_encoding(Encoding::UTF_8_MAC)
<add>
<add> loop do
<add> reader.primitive_convert(source, out)
<add> _, _, _, error_bytes, _ = reader.primitive_errinfo
<add> break if error_bytes.nil?
<add> out << error_bytes.encode(Encoding::UTF_8_MAC, Encoding::Windows_1252, invalid: :replace, undef: :replace)
<add> end
<ide>
<del> # We can't transcode to the same format, so we choose a nearly-identical encoding.
<del> # We're going to 'transcode' bytes from UTF-8 when possible, then fall back to
<del> # CP1252 when we get errors. The final string will be 'converted' back to UTF-8
<del> # before returning.
<del> reader = Encoding::Converter.new(Encoding::UTF_8, Encoding::UTF_8_MAC)
<del>
<del> source = string.dup
<del> out = ''.force_encoding(Encoding::UTF_8_MAC)
<add> reader.finish
<ide>
<del> loop do
<del> reader.primitive_convert(source, out)
<del> _, _, _, error_bytes, _ = reader.primitive_errinfo
<del> break if error_bytes.nil?
<del> out << error_bytes.encode(Encoding::UTF_8_MAC, Encoding::Windows_1252, invalid: :replace, undef: :replace)
<add> out.encode!(Encoding::UTF_8)
<ide> end
<del>
<del> reader.finish
<del>
<del> out.encode!(Encoding::UTF_8)
<ide> end
<ide>
<ide> # Returns the KC normalization of the string by default. NFKC is
<ide> def apply_mapping(string, mapping) #:nodoc:
<ide> end.pack('U*')
<ide> end
<ide>
<del> def tidy_byte(byte)
<del> if byte < 160
<del> [database.cp1252[byte] || byte].pack("U").unpack("C*")
<del> elsif byte < 192
<del> [194, byte]
<del> else
<del> [195, byte - 64]
<del> end
<add> def recode_windows1252_chars(string)
<add> string.encode(Encoding::UTF_8, Encoding::Windows_1252, invalid: :replace, undef: :replace)
<ide> end
<ide>
<ide> def database | 1 |
PHP | PHP | fix response code | 23721ac05acfd1dbb169d67b71ec63ea6318258e | <ide><path>src/Illuminate/Foundation/Auth/ThrottlesLogins.php
<ide> protected function sendLockoutResponse(Request $request)
<ide>
<ide> throw ValidationException::withMessages([
<ide> $this->username() => [Lang::get('auth.throttle', ['seconds' => $seconds])],
<del> ])->status(423);
<add> ])->status(429);
<ide> }
<ide>
<ide> /** | 1 |
Ruby | Ruby | remove some old/unneeded checks | c3a46bc57046a11e3f95dffc11ac57842c887f38 | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> def development_tools_checks
<ide> check_xcode_license_approved
<ide> check_xcode_up_to_date
<ide> check_clt_up_to_date
<del> check_for_other_package_managers
<ide> ].freeze
<ide> end
<ide>
<ide> def check_if_xcode_needs_clt_installed
<ide> EOS
<ide> end
<ide>
<del> def check_for_other_package_managers
<del> ponk = MacOS.macports_or_fink
<del> return if ponk.empty?
<del>
<del> <<~EOS
<del> You have MacPorts or Fink installed:
<del> #{ponk.join(", ")}
<del>
<del> This can cause trouble. You don't have to uninstall them, but you may want to
<del> temporarily move them out of the way, e.g.
<del>
<del> sudo mv /opt/local ~/macports
<del> EOS
<del> end
<del>
<ide> def check_ruby_version
<ide> ruby_version = "2.3.7"
<ide> return if RUBY_VERSION == ruby_version
<ide> def check_xcode_select_path
<ide> EOS
<ide> end
<ide>
<del> def check_for_bad_curl
<del> return unless MacOS.version <= "10.8"
<del> return if Formula["curl"].installed?
<del>
<del> <<~EOS
<del> The system curl on 10.8 and below is often incapable of supporting
<del> modern secure connections & will fail on fetching formulae.
<del>
<del> We recommend you:
<del> brew install curl
<del> EOS
<del> end
<del>
<ide> def check_xcode_license_approved
<ide> # If the user installs Xcode-only, they have to approve the
<ide> # license or no "xc*" tool will work.
<ide> def check_xquartz_up_to_date
<ide> EOS
<ide> end
<ide>
<del> def check_for_beta_xquartz
<del> return unless MacOS::XQuartz.version.to_s.include?("beta")
<del>
<del> <<~EOS
<del> The following beta release of XQuartz is installed: #{MacOS::XQuartz.version}
<del>
<del> XQuartz beta releases include address sanitization, and do not work with
<del> all software; notably, wine will not work with beta releases of XQuartz.
<del> We recommend only installing stable releases of XQuartz.
<del> EOS
<del> end
<del>
<ide> def check_filesystem_case_sensitive
<ide> dirs_to_check = [
<ide> HOMEBREW_PREFIX,
<ide><path>Library/Homebrew/test/os/mac/diagnostic_spec.rb
<ide> require "diagnostic"
<ide>
<ide> describe Homebrew::Diagnostic::Checks do
<del> specify "#check_for_other_package_managers" do
<del> allow(MacOS).to receive(:macports_or_fink).and_return(["fink"])
<del> expect(subject.check_for_other_package_managers)
<del> .to match("You have MacPorts or Fink installed:")
<del> end
<del>
<ide> specify "#check_for_unsupported_macos" do
<ide> ENV.delete("HOMEBREW_DEVELOPER")
<ide> allow(OS::Mac).to receive(:prerelease?).and_return(true)
<ide> .to match("We do not provide support for this pre-release version.")
<ide> end
<ide>
<del> specify "#check_for_beta_xquartz" do
<del> allow(MacOS::XQuartz).to receive(:version).and_return("2.7.10_beta2")
<del>
<del> expect(subject.check_for_beta_xquartz)
<del> .to match("The following beta release of XQuartz is installed: 2.7.10_beta2")
<del> end
<del>
<ide> specify "#check_if_xcode_needs_clt_installed" do
<ide> allow(MacOS).to receive(:version).and_return(OS::Mac::Version.new("10.11"))
<ide> allow(MacOS::Xcode).to receive(:installed?).and_return(true) | 2 |
Go | Go | show the right image name/id in job log | 663d9130118548c648c4463bae088fd983099e08 | <ide><path>daemon/container.go
<ide> func (container *Container) LogEvent(action string) {
<ide> d.EventsService.Log(
<ide> action,
<ide> container.ID,
<del> d.Repositories().ImageName(container.ImageID),
<add> container.Config.Image,
<ide> )
<ide> }
<ide> | 1 |
Text | Text | update documentation for displacy style kwargs | 709d6d91148350a72b8ae2d8e0f077df61aa2c98 | <ide><path>website/docs/api/top-level.md
<ide> browser. Will run a simple web server.
<ide> | Name | Description |
<ide> | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
<ide> | `docs` | Document(s) or span(s) to visualize. ~~Union[Iterable[Union[Doc, Span]], Doc, Span]~~ |
<del>| `style` | Visualization style, `"dep"` or `"ent"`. Defaults to `"dep"`. ~~str~~ |
<add>| `style` | Visualization style, `"dep"`, `"ent"` or `"span"` <Tag variant="new">3.3</Tag>. Defaults to `"dep"`. ~~str~~ |
<ide> | `page` | Render markup as full HTML page. Defaults to `True`. ~~bool~~ |
<ide> | `minify` | Minify HTML markup. Defaults to `False`. ~~bool~~ |
<ide> | `options` | [Visualizer-specific options](#displacy_options), e.g. colors. ~~Dict[str, Any]~~ |
<ide> Render a dependency parse tree or named entity visualization.
<ide> | Name | Description |
<ide> | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
<ide> | `docs` | Document(s) or span(s) to visualize. ~~Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict]~~ |
<del>| `style` | Visualization style, `"dep"` or `"ent"`. Defaults to `"dep"`. ~~str~~ |
<add>| `style` | Visualization style,`"dep"`, `"ent"` or `"span"` <Tag variant="new">3.3</Tag>. Defaults to `"dep"`. ~~str~~ |
<ide> | `page` | Render markup as full HTML page. Defaults to `True`. ~~bool~~ |
<ide> | `minify` | Minify HTML markup. Defaults to `False`. ~~bool~~ |
<ide> | `options` | [Visualizer-specific options](#displacy_options), e.g. colors. ~~Dict[str, Any]~~ | | 1 |
Go | Go | suppress false positive on hardcoded creds (gosec) | b88f4e26046994a15af9bcc28d3a0a91492908b9 | <ide><path>daemon/logger/awslogs/cloudwatchlogs.go
<ide> const (
<ide> tagKey = "tag"
<ide> datetimeFormatKey = "awslogs-datetime-format"
<ide> multilinePatternKey = "awslogs-multiline-pattern"
<del> credentialsEndpointKey = "awslogs-credentials-endpoint"
<add> credentialsEndpointKey = "awslogs-credentials-endpoint" //nolint:gosec // G101: Potential hardcoded credentials
<ide> forceFlushIntervalKey = "awslogs-force-flush-interval-seconds"
<ide> maxBufferedEventsKey = "awslogs-max-buffered-events"
<ide> logFormatKey = "awslogs-format"
<ide> const (
<ide> invalidSequenceTokenCode = "InvalidSequenceTokenException"
<ide> resourceNotFoundCode = "ResourceNotFoundException"
<ide>
<del> credentialsEndpoint = "http://169.254.170.2"
<add> credentialsEndpoint = "http://169.254.170.2" //nolint:gosec // G101: Potential hardcoded credentials
<ide>
<ide> userAgentHeader = "User-Agent"
<ide> | 1 |
Python | Python | use conditional xfail | 586cdc982615a84df8cd730102dfb2cdbfce4849 | <ide><path>numpy/core/tests/test_umath.py
<ide> )
<ide>
<ide> def get_glibc_version():
<del> ver = 0.0
<add> ver = '0.0'
<ide> try:
<del> ver = float(os.confstr('CS_GNU_LIBC_VERSION').rsplit(' ')[1])
<add> ver = os.confstr('CS_GNU_LIBC_VERSION').rsplit(' ')[1]
<ide> except Exception as inst:
<ide> print(inst)
<ide>
<ide> return ver
<ide>
<add>glibcver = get_glibc_version()
<add>glibc_newerthan_2_17 = pytest.mark.xfail(
<add> glibcver != '0.0' and glibcver < '2.17',
<add> reason="Older glibc versions may not raise appropriate FP exceptions")
<add>
<ide> def on_powerpc():
<ide> """ True if we are running on a Power PC platform."""
<ide> return platform.processor() == 'powerpc' or \
<ide> def test_exp_values(self):
<ide> yf = np.array(y, dtype=dt)
<ide> assert_equal(np.exp(yf), xf)
<ide>
<del> # Older version of glibc may not raise the correct FP exceptions
<del> # See: https://github.com/numpy/numpy/issues/19192
<del> if (get_glibc_version() >= 2.17):
<del> with np.errstate(over='raise'):
<del> assert_raises(FloatingPointError, np.exp, np.float32(100.))
<del> assert_raises(FloatingPointError, np.exp, np.float32(1E19))
<del> assert_raises(FloatingPointError, np.exp, np.float64(800.))
<del> assert_raises(FloatingPointError, np.exp, np.float64(1E19))
<del>
<del> with np.errstate(under='raise'):
<del> assert_raises(FloatingPointError, np.exp, np.float32(-1000.))
<del> assert_raises(FloatingPointError, np.exp, np.float32(-1E19))
<del> assert_raises(FloatingPointError, np.exp, np.float64(-1000.))
<del> assert_raises(FloatingPointError, np.exp, np.float64(-1E19))
<add> # Older version of glibc may not raise the correct FP exceptions
<add> # See: https://github.com/numpy/numpy/issues/19192
<add> @glibc_newerthan_2_17
<add> def test_exp_exceptions(self):
<add> with np.errstate(over='raise'):
<add> assert_raises(FloatingPointError, np.exp, np.float32(100.))
<add> assert_raises(FloatingPointError, np.exp, np.float32(1E19))
<add> assert_raises(FloatingPointError, np.exp, np.float64(800.))
<add> assert_raises(FloatingPointError, np.exp, np.float64(1E19))
<add>
<add> with np.errstate(under='raise'):
<add> assert_raises(FloatingPointError, np.exp, np.float32(-1000.))
<add> assert_raises(FloatingPointError, np.exp, np.float32(-1E19))
<add> assert_raises(FloatingPointError, np.exp, np.float64(-1000.))
<add> assert_raises(FloatingPointError, np.exp, np.float64(-1E19))
<ide>
<ide> def test_log_values(self):
<ide> with np.errstate(all='ignore'): | 1 |
Go | Go | remove unused field kernelversion | 7e4d00840392a80c0946291848c4caa18a5ec108 | <ide><path>runtime.go
<ide> type Runtime struct {
<ide> repositories *TagStore
<ide> idIndex *utils.TruncIndex
<ide> capabilities *Capabilities
<del> kernelVersion *utils.KernelVersionInfo
<ide> autoRestart bool
<ide> volumes *Graph
<ide> srv *Server
<ide> func NewRuntime(flGraphPath string, autoRestart bool, dns []string) (*Runtime, e
<ide> if k, err := utils.GetKernelVersion(); err != nil {
<ide> log.Printf("WARNING: %s\n", err)
<ide> } else {
<del> runtime.kernelVersion = k
<ide> if utils.CompareKernelVersion(k, &utils.KernelVersionInfo{Kernel: 3, Major: 8, Minor: 0}) < 0 {
<ide> log.Printf("WARNING: You are running linux kernel version %s, which might be unstable running docker. Please upgrade your kernel to 3.8.0.", k.String())
<ide> } | 1 |
Text | Text | fix wikipedia link | 7ca3764eae79f6a49802ebdf5ef6d1a668c73ae6 | <ide><path>docs/IntegrationWithExistingApps.md
<ide> $ sudo gem install cocoapods
<ide>
<ide> <block class="objc" />
<ide>
<del>Assume the [app for integration](https://github.com/JoelMarcey/iOS-2048) is a [2048](https://en.wikipedia.org/wiki/2048_(video_game) game. Here is what the main menu of the native application looks like without React Native.
<add>Assume the [app for integration](https://github.com/JoelMarcey/iOS-2048) is a [2048](https://en.wikipedia.org/wiki/2048_(video_game)) game. Here is what the main menu of the native application looks like without React Native.
<ide>
<ide> <block class="swift" />
<ide> | 1 |
Python | Python | remove unused assignment in create_node test | 202a1f988b2aaa94538572a20ba52ff7ed799891 | <ide><path>test/test_linode.py
<ide> def test_destroy_node(self):
<ide>
<ide> def test_create_node(self):
<ide> # Will exception on failure
<del> node = self.driver.create_node(name="Test",
<del> location=self.driver.list_locations()[0],
<del> size=self.driver.list_sizes()[0],
<del> image=self.driver.list_images()[6],
<del> auth=NodeAuthPassword("test123"))
<add> self.driver.create_node(name="Test",
<add> location=self.driver.list_locations()[0],
<add> size=self.driver.list_sizes()[0],
<add> image=self.driver.list_images()[6],
<add> auth=NodeAuthPassword("test123"))
<ide>
<ide> def test_list_sizes(self):
<ide> sizes = self.driver.list_sizes() | 1 |
Java | Java | add simple url mapping and handling | bc7a5acd509f1d66039bac742a71d9b1b8474127 | <ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/DispatcherHandler.java
<ide> import java.util.List;
<ide>
<ide> import org.reactivestreams.Publisher;
<del>import reactor.core.reactivestreams.PublisherFactory;
<del>import reactor.core.reactivestreams.SubscriberWithContext;
<ide> import reactor.rx.Streams;
<ide>
<ide> import org.springframework.beans.factory.BeanFactoryUtils;
<ide> import org.springframework.context.ApplicationContext;
<ide> import org.springframework.http.HttpStatus;
<del>import org.springframework.reactive.web.http.ServerHttpHandler;
<add>import org.springframework.reactive.web.http.HttpHandler;
<ide> import org.springframework.reactive.web.http.ServerHttpRequest;
<ide> import org.springframework.reactive.web.http.ServerHttpResponse;
<ide>
<ide> /**
<ide> * @author Rossen Stoyanchev
<ide> */
<del>public class DispatcherHandler implements ServerHttpHandler {
<add>public class DispatcherHandler implements HttpHandler {
<ide>
<ide> private List<HandlerMapping> handlerMappings;
<ide>
<ide> public Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse resp
<ide> if (handler == null) {
<ide> // No exception handling mechanism yet
<ide> response.setStatusCode(HttpStatus.NOT_FOUND);
<del> return PublisherFactory.forEach(SubscriberWithContext::onComplete);
<add> return Streams.empty();
<ide> }
<ide>
<ide> HandlerAdapter handlerAdapter = getHandlerAdapter(handler);
<ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/handler/HttpHandlerAdapter.java
<add>/*
<add> * Copyright 2002-2015 the original author or authors.
<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> *
<add> * http://www.apache.org/licenses/LICENSE-2.0
<add> *
<add> * Unless required by applicable law or agreed to in writing, software
<add> * distributed under the License is distributed on an "AS IS" BASIS,
<add> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<add> * See the License for the specific language governing permissions and
<add> * limitations under the License.
<add> */
<add>package org.springframework.reactive.web.dispatch.handler;
<add>
<add>import org.reactivestreams.Publisher;
<add>import reactor.rx.Streams;
<add>
<add>import org.springframework.reactive.web.dispatch.HandlerAdapter;
<add>import org.springframework.reactive.web.dispatch.HandlerResult;
<add>import org.springframework.reactive.web.http.HttpHandler;
<add>import org.springframework.reactive.web.http.ServerHttpRequest;
<add>import org.springframework.reactive.web.http.ServerHttpResponse;
<add>
<add>
<add>/**
<add> * Support use of {@link HttpHandler} with
<add> * {@link org.springframework.reactive.web.dispatch.DispatcherHandler
<add> * DispatcherHandler} (which implements the same contract).
<add> * The use of {@code DispatcherHandler} this way enables routing requests to
<add> * one of many {@code HttpHandler} instances depending on the configured
<add> * handler mappings.
<add> *
<add> * @author Rossen Stoyanchev
<add> */
<add>public class HttpHandlerAdapter implements HandlerAdapter {
<add>
<add>
<add> @Override
<add> public boolean supports(Object handler) {
<add> return HttpHandler.class.isAssignableFrom(handler.getClass());
<add> }
<add>
<add> @Override
<add> public Publisher<HandlerResult> handle(ServerHttpRequest request, ServerHttpResponse response, Object handler) {
<add> HttpHandler httpHandler = (HttpHandler) handler;
<add> Publisher<Void> publisher = httpHandler.handle(request, response);
<add> return Streams.wrap(publisher).map(aVoid -> null);
<add> }
<add>
<add>}
<ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/dispatch/handler/SimpleUrlHandlerMapping.java
<add>/*
<add> * Copyright 2002-2015 the original author or authors.
<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> *
<add> * http://www.apache.org/licenses/LICENSE-2.0
<add> *
<add> * Unless required by applicable law or agreed to in writing, software
<add> * distributed under the License is distributed on an "AS IS" BASIS,
<add> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<add> * See the License for the specific language governing permissions and
<add> * limitations under the License.
<add> */
<add>package org.springframework.reactive.web.dispatch.handler;
<add>
<add>import java.util.HashMap;
<add>import java.util.Map;
<add>
<add>import org.springframework.reactive.web.dispatch.HandlerMapping;
<add>import org.springframework.reactive.web.http.ServerHttpRequest;
<add>
<add>
<add>/**
<add> * @author Rossen Stoyanchev
<add> */
<add>public class SimpleUrlHandlerMapping implements HandlerMapping {
<add>
<add> private final Map<String, Object> handlerMap = new HashMap<>();
<add>
<add>
<add> public void setHandlers(Map<String, Object> handlers) {
<add> this.handlerMap.clear();
<add> if (handlers != null) {
<add> this.handlerMap.putAll(handlers);
<add> }
<add> }
<add>
<add>
<add> @Override
<add> public Object getHandler(ServerHttpRequest request) {
<add> return this.handlerMap.get(request.getURI().getPath());
<add> }
<add>
<add>}
<add><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/http/HttpHandler.java
<del><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/http/ServerHttpHandler.java
<ide>
<ide> import org.reactivestreams.Publisher;
<ide>
<del>import org.springframework.reactive.web.http.ServerHttpRequest;
<del>import org.springframework.reactive.web.http.ServerHttpResponse;
<ide>
<ide> /**
<ide> * @author Arjen Poutsma
<ide> * @author Rossen Stoyanchev
<ide> */
<del>public interface ServerHttpHandler {
<add>public interface HttpHandler {
<ide>
<ide> Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse response);
<ide>
<ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/http/HttpMessage.java
<ide> */
<ide> package org.springframework.reactive.web.http;
<ide>
<del>import java.net.URI;
<del>
<ide> import org.springframework.http.HttpHeaders;
<del>import org.springframework.http.HttpMethod;
<ide>
<ide> /**
<ide> * @author Rossen Stoyanchev
<ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/http/rxnetty/RequestHandlerAdapter.java
<ide> import rx.Observable;
<ide> import rx.RxReactiveStreams;
<ide>
<del>import org.springframework.reactive.web.http.ServerHttpHandler;
<add>import org.springframework.reactive.web.http.HttpHandler;
<ide> import org.springframework.util.Assert;
<ide>
<ide> /**
<ide> * @author Rossen Stoyanchev
<ide> */
<ide> public class RequestHandlerAdapter implements RequestHandler<ByteBuf, ByteBuf> {
<ide>
<del> private final ServerHttpHandler httpHandler;
<add> private final HttpHandler httpHandler;
<ide>
<ide>
<del> public RequestHandlerAdapter(ServerHttpHandler httpHandler) {
<add> public RequestHandlerAdapter(HttpHandler httpHandler) {
<ide> Assert.notNull(httpHandler, "'httpHandler' is required.");
<ide> this.httpHandler = httpHandler;
<ide> }
<ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/http/servlet/HttpHandlerServlet.java
<ide> import org.reactivestreams.Subscriber;
<ide> import org.reactivestreams.Subscription;
<ide>
<del>import org.springframework.reactive.web.http.ServerHttpHandler;
<add>import org.springframework.reactive.web.http.HttpHandler;
<ide>
<ide> /**
<ide> * @author Arjen Poutsma
<ide> public class HttpHandlerServlet extends HttpServlet {
<ide> private static Log logger = LogFactory.getLog(HttpHandlerServlet.class);
<ide>
<ide>
<del> private ServerHttpHandler handler;
<add> private HttpHandler handler;
<ide>
<ide>
<del> public void setHandler(ServerHttpHandler handler) {
<add> public void setHandler(HttpHandler handler) {
<ide> this.handler = handler;
<ide> }
<ide>
<ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/http/servlet/RequestBodyPublisher.java
<ide> public RequestBodyPublisher(AsyncContextSynchronizer synchronizer, int bufferSiz
<ide> @Override
<ide> public void subscribe(Subscriber<? super byte[]> s) {
<ide> this.subscriber = s;
<del>
<ide> this.subscriber.onSubscribe(new RequestBodySubscription());
<ide> }
<ide>
<ide> else if (read > 0) {
<ide> public void onAllDataRead() throws IOException {
<ide> logger.debug("All data read");
<ide> this.synchronizer.readComplete();
<del> this.subscriber.onComplete();
<add> if (this.subscriber != null) {
<add> this.subscriber.onComplete();
<add> }
<ide> }
<ide>
<ide> @Override
<ide> public void onError(Throwable t) {
<ide> logger.error("RequestBodyPublisher Error", t);
<del> this.subscriber.onError(t);
<add> if (this.subscriber != null) {
<add> this.subscriber.onError(t);
<add> }
<ide> }
<ide>
<ide> private class RequestBodySubscription implements Subscription {
<ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/http/servlet/ServletServerHttpRequest.java
<ide> import java.nio.charset.Charset;
<ide> import java.util.Enumeration;
<ide> import java.util.Map;
<del>
<ide> import javax.servlet.http.HttpServletRequest;
<ide>
<ide> import org.reactivestreams.Publisher;
<ide><path>spring-web-reactive/src/test/java/org/springframework/reactive/web/dispatch/SimpleUrlHandlerMappingIntegrationTests.java
<add>/*
<add> * Copyright 2002-2015 the original author or authors.
<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> *
<add> * http://www.apache.org/licenses/LICENSE-2.0
<add> *
<add> * Unless required by applicable law or agreed to in writing, software
<add> * distributed under the License is distributed on an "AS IS" BASIS,
<add> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<add> * See the License for the specific language governing permissions and
<add> * limitations under the License.
<add> */
<add>package org.springframework.reactive.web.dispatch;
<add>
<add>import java.net.URI;
<add>import java.nio.charset.Charset;
<add>import java.util.HashMap;
<add>import java.util.Map;
<add>
<add>import org.junit.Test;
<add>import org.reactivestreams.Publisher;
<add>import reactor.rx.Streams;
<add>
<add>import org.springframework.http.RequestEntity;
<add>import org.springframework.http.ResponseEntity;
<add>import org.springframework.reactive.web.dispatch.handler.HttpHandlerAdapter;
<add>import org.springframework.reactive.web.dispatch.handler.SimpleUrlHandlerMapping;
<add>import org.springframework.reactive.web.http.AbstractHttpHandlerIntegrationTests;
<add>import org.springframework.reactive.web.http.HttpHandler;
<add>import org.springframework.reactive.web.http.ServerHttpRequest;
<add>import org.springframework.reactive.web.http.ServerHttpResponse;
<add>import org.springframework.web.client.RestTemplate;
<add>import org.springframework.web.context.support.StaticWebApplicationContext;
<add>
<add>import static org.junit.Assert.assertArrayEquals;
<add>
<add>
<add>/**
<add> * @author Rossen Stoyanchev
<add> */
<add>public class SimpleUrlHandlerMappingIntegrationTests extends AbstractHttpHandlerIntegrationTests {
<add>
<add> private static final Charset CHARSET = Charset.forName("UTF-8");
<add>
<add>
<add> @Override
<add> protected HttpHandler createHttpHandler() {
<add>
<add> StaticWebApplicationContext wac = new StaticWebApplicationContext();
<add> wac.registerSingleton("hm", TestHandlerMapping.class);
<add> wac.registerSingleton("ha", HttpHandlerAdapter.class);
<add> wac.refresh();
<add>
<add> DispatcherHandler dispatcherHandler = new DispatcherHandler();
<add> dispatcherHandler.initStrategies(wac);
<add> return dispatcherHandler;
<add> }
<add>
<add> @Test
<add> public void testFoo() throws Exception {
<add>
<add> RestTemplate restTemplate = new RestTemplate();
<add>
<add> URI url = new URI("http://localhost:" + port + "/foo");
<add> RequestEntity<Void> request = RequestEntity.get(url).build();
<add> ResponseEntity<byte[]> response = restTemplate.exchange(request, byte[].class);
<add>
<add> assertArrayEquals("foo".getBytes(CHARSET), response.getBody());
<add> }
<add>
<add> @Test
<add> public void testBar() throws Exception {
<add>
<add> RestTemplate restTemplate = new RestTemplate();
<add>
<add> URI url = new URI("http://localhost:" + port + "/bar");
<add> RequestEntity<Void> request = RequestEntity.get(url).build();
<add> ResponseEntity<byte[]> response = restTemplate.exchange(request, byte[].class);
<add>
<add> assertArrayEquals("bar".getBytes(CHARSET), response.getBody());
<add> }
<add>
<add>
<add> private static class TestHandlerMapping extends SimpleUrlHandlerMapping {
<add>
<add> public TestHandlerMapping() {
<add> Map<String, Object> map = new HashMap<>();
<add> map.put("/foo", new FooHandler());
<add> map.put("/bar", new BarHandler());
<add> setHandlers(map);
<add> }
<add> }
<add>
<add> private static class FooHandler implements HttpHandler {
<add>
<add> @Override
<add> public Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse response) {
<add> return response.writeWith(Streams.just("foo".getBytes(CHARSET)));
<add> }
<add> }
<add>
<add> private static class BarHandler implements HttpHandler {
<add>
<add> @Override
<add> public Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse response) {
<add> return response.writeWith(Streams.just("bar".getBytes(CHARSET)));
<add> }
<add> }
<add>
<add>}
<ide><path>spring-web-reactive/src/test/java/org/springframework/reactive/web/http/AbstractHttpHandlerIntegrationTests.java
<add>/*
<add> * Copyright 2002-2015 the original author or authors.
<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> *
<add> * http://www.apache.org/licenses/LICENSE-2.0
<add> *
<add> * Unless required by applicable law or agreed to in writing, software
<add> * distributed under the License is distributed on an "AS IS" BASIS,
<add> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<add> * See the License for the specific language governing permissions and
<add> * limitations under the License.
<add> */
<add>
<add>package org.springframework.reactive.web.http;
<add>
<add>import org.junit.After;
<add>import org.junit.Before;
<add>import org.junit.runner.RunWith;
<add>import org.junit.runners.Parameterized;
<add>
<add>import org.springframework.util.SocketUtils;
<add>
<add>
<add>@RunWith(Parameterized.class)
<add>public abstract class AbstractHttpHandlerIntegrationTests {
<add>
<add> protected static int port = SocketUtils.findAvailableTcpPort();
<add>
<add> @Parameterized.Parameter(0)
<add> public HttpServer server;
<add>
<add>
<add> @Parameterized.Parameters(name = "server [{0}]")
<add> public static Object[][] arguments() {
<add> return new Object[][] {
<add> {new JettyHttpServer()},
<add> {new TomcatHttpServer()},
<add> {new RxNettyHttpServer()}
<add> };
<add> }
<add>
<add>
<add> @Before
<add> public void setup() throws Exception {
<add> this.server.setPort(port);
<add> this.server.setHandler(createHttpHandler());
<add> this.server.afterPropertiesSet();
<add> this.server.start();
<add> }
<add>
<add> protected abstract HttpHandler createHttpHandler();
<add>
<add> @After
<add> public void tearDown() throws Exception {
<add> this.server.stop();
<add> }
<add>
<add>}
<ide><path>spring-web-reactive/src/test/java/org/springframework/reactive/web/http/EchoHandler.java
<ide>
<ide> import org.reactivestreams.Publisher;
<ide>
<del>import org.springframework.reactive.web.http.ServerHttpHandler;
<del>import org.springframework.reactive.web.http.ServerHttpRequest;
<del>import org.springframework.reactive.web.http.ServerHttpResponse;
<del>
<ide> /**
<ide> * @author Arjen Poutsma
<ide> */
<del>public class EchoHandler implements ServerHttpHandler {
<add>public class EchoHandler implements HttpHandler {
<ide>
<ide> @Override
<ide> public Publisher<Void> handle(ServerHttpRequest request, ServerHttpResponse response) {
<ide><path>spring-web-reactive/src/test/java/org/springframework/reactive/web/http/EchoHandlerIntegrationTests.java
<ide> import java.net.URI;
<ide> import java.util.Random;
<ide>
<del>import org.junit.After;
<del>import org.junit.Before;
<ide> import org.junit.Test;
<del>import org.junit.runner.RunWith;
<del>import org.junit.runners.Parameterized;
<ide>
<ide> import org.springframework.http.RequestEntity;
<ide> import org.springframework.http.ResponseEntity;
<del>import org.springframework.util.SocketUtils;
<ide> import org.springframework.web.client.RestTemplate;
<ide>
<ide> import static org.junit.Assert.assertArrayEquals;
<ide> import static org.junit.Assert.assertEquals;
<ide>
<ide>
<del>@RunWith(Parameterized.class)
<del>public class EchoHandlerIntegrationTests {
<add>public class EchoHandlerIntegrationTests extends AbstractHttpHandlerIntegrationTests {
<ide>
<ide> private static final int REQUEST_SIZE = 4096 * 3;
<ide>
<del> private static int port = SocketUtils.findAvailableTcpPort();
<del>
<del>
<del> @Parameterized.Parameter(0)
<del> public HttpServer server;
<del>
<ide> private Random rnd = new Random();
<ide>
<ide>
<del> @Parameterized.Parameters(name = "server [{0}]")
<del> public static Object[][] arguments() {
<del> return new Object[][] {
<del> {new JettyHttpServer()},
<del> {new TomcatHttpServer()},
<del> {new RxNettyHttpServer()}
<del> };
<del> }
<del>
<del>
<del> @Before
<del> public void setup() throws Exception {
<del> this.server.setPort(port);
<del> this.server.setHandler(new EchoHandler());
<del> this.server.afterPropertiesSet();
<del> this.server.start();
<del> }
<del>
<del> @After
<del> public void tearDown() throws Exception {
<del> this.server.stop();
<add> @Override
<add> protected EchoHandler createHttpHandler() {
<add> return new EchoHandler();
<ide> }
<ide>
<ide>
<ide><path>spring-web-reactive/src/test/java/org/springframework/reactive/web/http/HttpServer.java
<ide> public interface HttpServer extends InitializingBean, Lifecycle {
<ide>
<ide> void setPort(int port);
<ide>
<del> void setHandler(ServerHttpHandler handler);
<add> void setHandler(HttpHandler handler);
<ide>
<ide> }
<ide><path>spring-web-reactive/src/test/java/org/springframework/reactive/web/http/HttpServerSupport.java
<ide> public class HttpServerSupport {
<ide>
<ide> private int port = -1;
<ide>
<del> private ServerHttpHandler httpHandler;
<add> private HttpHandler httpHandler;
<ide>
<ide>
<ide> public void setPort(int port) {
<ide> public int getPort() {
<ide> return this.port;
<ide> }
<ide>
<del> public void setHandler(ServerHttpHandler handler) {
<add> public void setHandler(HttpHandler handler) {
<ide> this.httpHandler = handler;
<ide> }
<ide>
<del> public ServerHttpHandler getHttpHandler() {
<add> public HttpHandler getHttpHandler() {
<ide> return this.httpHandler;
<ide> }
<ide>
<ide><path>spring-web-reactive/src/test/java/org/springframework/reactive/web/http/JettyHttpServer.java
<ide>
<ide> import org.springframework.beans.factory.InitializingBean;
<ide> import org.springframework.reactive.web.http.servlet.HttpHandlerServlet;
<add>import org.springframework.util.Assert;
<ide> import org.springframework.util.SocketUtils;
<ide>
<ide> /**
<ide> public void afterPropertiesSet() throws Exception {
<ide>
<ide> this.jettyServer = new Server();
<ide>
<add> Assert.notNull(getHttpHandler());
<ide> HttpHandlerServlet servlet = new HttpHandlerServlet();
<del> servlet.setHandler(new EchoHandler());
<add> servlet.setHandler(getHttpHandler());
<ide> ServletHolder servletHolder = new ServletHolder(servlet);
<ide>
<ide> ServletContextHandler contextHandler = new ServletContextHandler(this.jettyServer, "", false, false); | 16 |
PHP | PHP | add test for cache increment | c5166e83d1b1f9ce1b9ea04093b329388ed3404a | <ide><path>tests/Cache/CacheArrayStoreTest.php
<ide> public function testValuesCanBeIncremented()
<ide> $result = $store->increment('foo');
<ide> $this->assertEquals(2, $result);
<ide> $this->assertEquals(2, $store->get('foo'));
<add>
<add> $result = $store->increment('foo', 2);
<add> $this->assertEquals(4, $result);
<add> $this->assertEquals(4, $store->get('foo'));
<add> }
<add>
<add> public function testValuesGetCastedByIncrementOrDecrement()
<add> {
<add> $store = new ArrayStore;
<add> $store->put('foo', '1', 10);
<add> $result = $store->increment('foo');
<add> $this->assertEquals(2, $result);
<add> $this->assertEquals(2, $store->get('foo'));
<add>
<add> $store->put('bar', '1', 10);
<add> $result = $store->decrement('bar');
<add> $this->assertEquals(0, $result);
<add> $this->assertEquals(0, $store->get('bar'));
<add> }
<add>
<add> public function testIncrementNonNumericValues()
<add> {
<add> $store = new ArrayStore;
<add> $store->put('foo', 'I am string', 10);
<add> $result = $store->increment('foo');
<add> $this->assertEquals(1, $result);
<add> $this->assertEquals(1, $store->get('foo'));
<ide> }
<ide>
<ide> public function testNonExistingKeysCanBeIncremented()
<ide> public function testNonExistingKeysCanBeIncremented()
<ide> $result = $store->increment('foo');
<ide> $this->assertEquals(1, $result);
<ide> $this->assertEquals(1, $store->get('foo'));
<add>
<add> // Will be there forever
<add> Carbon::setTestNow(Carbon::now()->addYears(10));
<add> $this->assertEquals(1, $store->get('foo'));
<ide> }
<ide>
<ide> public function testExpiredKeysAreIncrementedLikeNonExistingKeys()
<ide> public function testValuesCanBeDecremented()
<ide> $result = $store->decrement('foo');
<ide> $this->assertEquals(0, $result);
<ide> $this->assertEquals(0, $store->get('foo'));
<add>
<add> $result = $store->decrement('foo', 2);
<add> $this->assertEquals(-2, $result);
<add> $this->assertEquals(-2, $store->get('foo'));
<ide> }
<ide>
<ide> public function testItemsCanBeRemoved()
<ide><path>tests/Cache/CacheFileStoreTest.php
<ide>
<ide> namespace Illuminate\Tests\Cache;
<ide>
<add>use Exception;
<ide> use Illuminate\Cache\FileStore;
<ide> use Illuminate\Contracts\Filesystem\FileNotFoundException;
<ide> use Illuminate\Filesystem\Filesystem;
<ide> public function testForeversAreNotRemovedOnIncrement()
<ide> $this->assertSame('Hello World', $store->get('foo'));
<ide> }
<ide>
<add> public function testIncrementExpiredKeys()
<add> {
<add> $filePath = $this->getCachePath('foo');
<add> $files = $this->mockFilesystem();
<add> $now = Carbon::now()->getTimestamp();
<add> $initialValue = ($now - 10).serialize(77);
<add> $valueAfterIncrement = '9999999999'.serialize(3);
<add> $store = new FileStore($files, __DIR__);
<add>
<add> $files->expects($this->once())->method('get')->with($this->equalTo($filePath), $this->equalTo(true))->willReturn($initialValue);
<add> $files->expects($this->once())->method('put')->with($this->equalTo($filePath), $this->equalTo($valueAfterIncrement));
<add>
<add> $result = $store->increment('foo', 3);
<add> }
<add>
<ide> public function testIncrementCanAtomicallyJump()
<ide> {
<add> $filePath = $this->getCachePath('foo');
<ide> $files = $this->mockFilesystem();
<ide> $initialValue = '9999999999'.serialize(1);
<ide> $valueAfterIncrement = '9999999999'.serialize(4);
<ide> $store = new FileStore($files, __DIR__);
<del> $files->expects($this->once())->method('get')->willReturn($initialValue);
<del> $hash = sha1('foo');
<del> $cache_dir = substr($hash, 0, 2).'/'.substr($hash, 2, 2);
<del> $files->expects($this->once())->method('put')->with($this->equalTo(__DIR__.'/'.$cache_dir.'/'.$hash), $this->equalTo($valueAfterIncrement));
<del> $store->increment('foo', 3);
<add>
<add> $files->expects($this->once())->method('get')->with($this->equalTo($filePath), $this->equalTo(true))->willReturn($initialValue);
<add> $files->expects($this->once())->method('put')->with($this->equalTo($filePath), $this->equalTo($valueAfterIncrement));
<add>
<add> $result = $store->increment('foo', 3);
<add> $this->assertEquals(4, $result);
<add> }
<add>
<add> public function testDecrementCanAtomicallyJump()
<add> {
<add> $filePath = $this->getCachePath('foo');
<add>
<add> $files = $this->mockFilesystem();
<add> $initialValue = '9999999999'.serialize(2);
<add> $valueAfterIncrement = '9999999999'.serialize(0);
<add> $store = new FileStore($files, __DIR__);
<add>
<add> $files->expects($this->once())->method('get')->with($this->equalTo($filePath), $this->equalTo(true))->willReturn($initialValue);
<add> $files->expects($this->once())->method('put')->with($this->equalTo($filePath), $this->equalTo($valueAfterIncrement));
<add>
<add> $result = $store->decrement('foo', 2);
<add> $this->assertEquals(0, $result);
<add> }
<add>
<add> public function testIncrementNonNumericValues()
<add> {
<add> $filePath = $this->getCachePath('foo');
<add>
<add> $files = $this->mockFilesystem();
<add> $initialValue = '1999999909'.serialize('foo');
<add> $valueAfterIncrement = '1999999909'.serialize(1);
<add> $store = new FileStore($files, __DIR__);
<add> $files->expects($this->once())->method('get')->with($this->equalTo($filePath), $this->equalTo(true))->willReturn($initialValue);
<add> $files->expects($this->once())->method('put')->with($this->equalTo($filePath), $this->equalTo($valueAfterIncrement));
<add> $result = $store->increment('foo');
<add>
<add> $this->assertEquals(1, $result);
<add> }
<add>
<add> public function testIncrementNonExistentKeys()
<add> {
<add> $filePath = $this->getCachePath('foo');
<add>
<add> $files = $this->mockFilesystem();
<add> $valueAfterIncrement = '9999999999'.serialize(1);
<add> $store = new FileStore($files, __DIR__);
<add> // simulates a missing item in file store by the exception
<add> $files->expects($this->once())->method('get')->with($this->equalTo($filePath), $this->equalTo(true))->willThrowException(new Exception);
<add> $files->expects($this->once())->method('put')->with($this->equalTo($filePath), $this->equalTo($valueAfterIncrement));
<add> $result = $store->increment('foo');
<add> $this->assertIsInt($result);
<add> $this->assertEquals(1, $result);
<ide> }
<ide>
<ide> public function testIncrementDoesNotExtendCacheLife()
<ide> protected function mockFilesystem()
<ide> {
<ide> return $this->createMock(Filesystem::class);
<ide> }
<add>
<add> protected function getCachePath($key)
<add> {
<add> $hash = sha1($key);
<add> $cache_dir = substr($hash, 0, 2).'/'.substr($hash, 2, 2);
<add>
<add> return __DIR__.'/'.$cache_dir.'/'.$hash;
<add> }
<ide> } | 2 |
Java | Java | update exception handling | 166ca7a5a3254c6d63551ad286a9e55375276e85 | <ide><path>spring-websocket/src/main/java/org/springframework/sockjs/AbstractSockJsSession.java
<ide> protected void updateLastActiveTime() {
<ide> this.timeLastActive = System.currentTimeMillis();
<ide> }
<ide>
<del> public void delegateConnectionEstablished() {
<add> public void delegateConnectionEstablished() throws Exception {
<ide> this.state = State.OPEN;
<ide> this.handler.afterConnectionEstablished(this);
<ide> }
<ide> public void delegateConnectionEstablished() {
<ide> * Close due to error arising from SockJS transport handling.
<ide> */
<ide> protected void tryCloseWithSockJsTransportError(Throwable ex, CloseStatus closeStatus) {
<del> delegateError(ex);
<add> logger.error("Closing due to transport error for " + this, ex);
<ide> try {
<del> logger.error("Closing due to transport error for " + this, ex);
<del> close(closeStatus);
<add> delegateError(ex);
<ide> }
<del> catch (Throwable t) {
<del> // ignore
<add> catch (Throwable delegateEx) {
<add> logger.error("Unhandled error for " + this, delegateEx);
<add> try {
<add> close(closeStatus);
<add> }
<add> catch (Throwable closeEx) {
<add> logger.error("Unhandled error for " + this, closeEx);
<add> }
<ide> }
<ide> }
<ide>
<del> public void delegateMessages(String[] messages) {
<add> public void delegateMessages(String[] messages) throws Exception {
<ide> for (String message : messages) {
<ide> this.handler.handleMessage(this, new TextMessage(message));
<ide> }
<ide> }
<ide>
<del> public void delegateError(Throwable ex) {
<add> public void delegateError(Throwable ex) throws Exception {
<ide> this.handler.handleTransportError(this, ex);
<ide> }
<ide>
<ide> public void delegateError(Throwable ex) {
<ide> * {@link TextMessageHandler}. This is in contrast to {@link #close()} that pro-actively
<ide> * closes the connection.
<ide> */
<del> public final void delegateConnectionClosed(CloseStatus status) {
<add> public final void delegateConnectionClosed(CloseStatus status) throws Exception {
<ide> if (!isClosed()) {
<ide> if (logger.isDebugEnabled()) {
<ide> logger.debug(this + " was closed, " + status);
<ide> public final void close(CloseStatus status) throws IOException {
<ide> }
<ide> finally {
<ide> this.state = State.CLOSED;
<del> this.handler.afterConnectionClosed(this, status);
<add> try {
<add> this.handler.afterConnectionClosed(this, status);
<add> }
<add> catch (Throwable t) {
<add> logger.error("Unhandled error for " + this, t);
<add> }
<ide> }
<ide> }
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/sockjs/server/AbstractServerSockJsSession.java
<ide> protected void writeFrame(SockJsFrame frame) throws IOException {
<ide> catch (Throwable ex) {
<ide> logger.warn("Terminating connection due to failure to send message: " + ex.getMessage());
<ide> close();
<del> throw new NestedSockJsRuntimeException("Failed to write " + frame, ex);
<add> throw new SockJsRuntimeException("Failed to write " + frame, ex);
<ide> }
<ide> }
<ide>
<add><path>spring-websocket/src/main/java/org/springframework/sockjs/server/SockJsRuntimeException.java
<del><path>spring-websocket/src/main/java/org/springframework/sockjs/server/NestedSockJsRuntimeException.java
<ide> * @since 4.0
<ide> */
<ide> @SuppressWarnings("serial")
<del>public class NestedSockJsRuntimeException extends NestedRuntimeException {
<add>public class SockJsRuntimeException extends NestedRuntimeException {
<ide>
<del> public NestedSockJsRuntimeException(String msg) {
<add> public SockJsRuntimeException(String msg) {
<ide> super(msg);
<ide> }
<ide>
<del> public NestedSockJsRuntimeException(String msg, Throwable cause) {
<add> public SockJsRuntimeException(String msg, Throwable cause) {
<ide> super(msg, cause);
<ide> }
<ide>
<ide><path>spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpReceivingTransportHandler.java
<ide> import org.springframework.http.server.ServerHttpRequest;
<ide> import org.springframework.http.server.ServerHttpResponse;
<ide> import org.springframework.sockjs.AbstractSockJsSession;
<add>import org.springframework.sockjs.server.SockJsRuntimeException;
<ide> import org.springframework.sockjs.server.TransportErrorException;
<ide> import org.springframework.sockjs.server.TransportHandler;
<ide> import org.springframework.websocket.WebSocketHandler;
<add>import org.springframework.websocket.support.ExceptionWebSocketHandlerDecorator;
<ide>
<ide> import com.fasterxml.jackson.databind.JsonMappingException;
<ide> import com.fasterxml.jackson.databind.ObjectMapper;
<ide> protected void handleRequestInternal(ServerHttpRequest request, ServerHttpRespon
<ide> logger.trace("Received messages: " + Arrays.asList(messages));
<ide> }
<ide>
<del> session.delegateMessages(messages);
<add> try {
<add> session.delegateMessages(messages);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(session, t, logger);
<add> throw new SockJsRuntimeException("Unhandled WebSocketHandler error in " + this, t);
<add> }
<ide>
<ide> response.setStatusCode(getResponseStatus());
<ide> response.getHeaders().setContentType(new MediaType("text", "plain", Charset.forName("UTF-8")));
<ide><path>spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpServerSockJsSession.java
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.websocket.CloseStatus;
<ide> import org.springframework.websocket.WebSocketHandler;
<add>import org.springframework.websocket.support.ExceptionWebSocketHandlerDecorator;
<ide>
<ide> /**
<ide> * An abstract base class for use with HTTP-based transports.
<ide> public synchronized void setInitialRequest(ServerHttpRequest request, ServerHttp
<ide> tryCloseWithSockJsTransportError(t, null);
<ide> throw new TransportErrorException("Failed open SockJS session", t, getId());
<ide> }
<del> delegateConnectionEstablished();
<add> try {
<add> delegateConnectionEstablished();
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this, t, logger);
<add> }
<ide> }
<ide>
<ide> protected void writePrelude() throws IOException {
<ide><path>spring-websocket/src/main/java/org/springframework/sockjs/server/transport/SockJsWebSocketHandler.java
<ide>
<ide>
<ide> /**
<del> * A wrapper around a {@link WebSocketHandler} instance that parses as well as adds SockJS
<del> * messages frames as well as sends SockJS heartbeat messages.
<add> * A wrapper around a {@link WebSocketHandler} instance that parses and adds SockJS
<add> * messages frames and also sends SockJS heartbeat messages.
<add> *
<add> * <p>
<add> * Implementations of the {@link WebSocketHandler} interface in this class allow
<add> * exceptions from the wrapped {@link WebSocketHandler} to propagate. However, any
<add> * exceptions resulting from SockJS message handling (e.g. while sending SockJS frames or
<add> * heartbeat messages) are caught and treated as transport errors, i.e. routed to the
<add> * {@link WebSocketHandler#handleTransportError(WebSocketSession, Throwable)
<add> * handleTransportError} method of the wrapped handler and the session closed.
<ide> *
<ide> * @author Rossen Stoyanchev
<ide> * @since 4.0
<ide> protected SockJsConfiguration getSockJsConfig() {
<ide> }
<ide>
<ide> @Override
<del> public void afterConnectionEstablished(WebSocketSession wsSession) {
<add> public void afterConnectionEstablished(WebSocketSession wsSession) throws Exception {
<ide> Assert.isTrue(this.sessionCount.compareAndSet(0, 1), "Unexpected connection");
<ide> this.sockJsSession = new WebSocketServerSockJsSession(getSockJsSessionId(wsSession), getSockJsConfig());
<ide> this.sockJsSession.initWebSocketSession(wsSession);
<ide> }
<ide>
<ide> @Override
<del> public void handleTextMessage(WebSocketSession wsSession, TextMessage message) {
<add> public void handleTextMessage(WebSocketSession wsSession, TextMessage message) throws Exception {
<ide> this.sockJsSession.handleMessage(message, wsSession);
<ide> }
<ide>
<ide> @Override
<del> public void afterConnectionClosed(WebSocketSession wsSession, CloseStatus status) {
<add> public void afterConnectionClosed(WebSocketSession wsSession, CloseStatus status) throws Exception {
<ide> this.sockJsSession.delegateConnectionClosed(status);
<ide> }
<ide>
<ide> @Override
<del> public void handleTransportError(WebSocketSession webSocketSession, Throwable exception) {
<add> public void handleTransportError(WebSocketSession webSocketSession, Throwable exception) throws Exception {
<ide> this.sockJsSession.delegateError(exception);
<ide> }
<ide>
<ide> public WebSocketServerSockJsSession(String sessionId, SockJsConfiguration config
<ide> super(sessionId, config, SockJsWebSocketHandler.this.webSocketHandler);
<ide> }
<ide>
<del> public void initWebSocketSession(WebSocketSession wsSession) {
<add> public void initWebSocketSession(WebSocketSession wsSession) throws Exception {
<ide> this.wsSession = wsSession;
<ide> try {
<ide> TextMessage message = new TextMessage(SockJsFrame.openFrame().getContent());
<ide> public boolean isActive() {
<ide> return this.wsSession.isOpen();
<ide> }
<ide>
<del> public void handleMessage(TextMessage message, WebSocketSession wsSession) {
<add> public void handleMessage(TextMessage message, WebSocketSession wsSession) throws Exception {
<ide> String payload = message.getPayload();
<ide> if (StringUtils.isEmpty(payload)) {
<ide> logger.trace("Ignoring empty message");
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/PartialMessageHandler.java
<del>/*
<del> * Copyright 2002-2013 the original author or authors.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compliance with the License.
<del> * You may obtain a copy of the License at
<del> *
<del> * http://www.apache.org/licenses/LICENSE-2.0
<del> *
<del> * Unless required by applicable law or agreed to in writing, software
<del> * distributed under the License is distributed on an "AS IS" BASIS,
<del> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<del> * See the License for the specific language governing permissions and
<del> * limitations under the License.
<del> */
<del>
<del>package org.springframework.websocket;
<del>
<del>/**
<del> * A "marker" interface for {@link BinaryMessageHandler} types that wish to handle partial
<del> * messages.
<del> *
<del> * @author Rossen Stoyanchev
<del> * @since 4.0
<del> */
<del>public interface PartialMessageHandler {
<del>
<del>}
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/WebSocketHandler.java
<ide> package org.springframework.websocket;
<ide>
<ide> /**
<del> * A handler for WebSocket sessions.
<add> * A handler for WebSocket messages and lifecycle events.
<add> *
<add> * <p> Implementations of this interface are encouraged to handle exceptions locally where
<add> * it makes sense or alternatively let the exception bubble up in which case the exception
<add> * is logged and the session closed with {@link CloseStatus#SERVER_ERROR SERVER_ERROR(101)} by default.
<add> * The exception handling strategy is provided by
<add> * {@link org.springframework.websocket.support.ExceptionWebSocketHandlerDecorator ExceptionWebSocketHandlerDecorator},
<add> * which can be customized or replaced by decorating the {@link WebSocketHandler} with a
<add> * different decorator.
<ide> *
<ide> * @param <T> The type of message being handled {@link TextMessage}, {@link BinaryMessage}
<ide> * (or {@link WebSocketMessage} for both).
<ide> public interface WebSocketHandler {
<ide>
<ide> /**
<del> * A new WebSocket connection has been opened and is ready to be used.
<add> * Invoked after WebSocket negotiation has succeeded and the WebSocket connection is
<add> * opened and ready for use.
<add> *
<add> * @throws Exception this method can handle or propagate exceptions; see class-level
<add> * Javadoc for details.
<ide> */
<del> void afterConnectionEstablished(WebSocketSession session);
<add> void afterConnectionEstablished(WebSocketSession session) throws Exception;
<ide>
<ide> /**
<del> * Handle an incoming WebSocket message.
<add> * Invoked when a new WebSocket message arrives.
<add> *
<add> * @throws Exception this method can handle or propagate exceptions; see class-level
<add> * Javadoc for details.
<ide> */
<del> void handleMessage(WebSocketSession session, WebSocketMessage<?> message);
<add> void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception;
<ide>
<ide> /**
<ide> * Handle an error from the underlying WebSocket message transport.
<add> *
<add> * @throws Exception this method can handle or propagate exceptions; see class-level
<add> * Javadoc for details.
<ide> */
<del> void handleTransportError(WebSocketSession session, Throwable exception);
<add> void handleTransportError(WebSocketSession session, Throwable exception) throws Exception;
<ide>
<ide> /**
<del> * A WebSocket connection has been closed.
<add> * Invoked after the WebSocket connection has been closed by either side, or after a
<add> * transport error has occurred. Although the session may technically still be open,
<add> * depending on the underlying implementation, sending messages at this point is
<add> * discouraged and most likely will not succeed.
<add> *
<add> * @throws Exception this method can handle or propagate exceptions; see class-level
<add> * Javadoc for details.
<ide> */
<del> void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus);
<add> void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception;
<ide>
<ide> /**
<ide> * Whether this WebSocketHandler wishes to receive messages broken up in parts.
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/adapter/JettyWebSocketListenerAdapter.java
<ide>
<ide> package org.springframework.websocket.adapter;
<ide>
<add>import org.apache.commons.logging.Log;
<add>import org.apache.commons.logging.LogFactory;
<ide> import org.eclipse.jetty.websocket.api.Session;
<ide> import org.eclipse.jetty.websocket.api.WebSocketListener;
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.websocket.TextMessage;
<ide> import org.springframework.websocket.WebSocketHandler;
<ide> import org.springframework.websocket.WebSocketSession;
<add>import org.springframework.websocket.support.ExceptionWebSocketHandlerDecorator;
<ide>
<ide> /**
<ide> * Adapts Spring's {@link WebSocketHandler} to Jetty's {@link WebSocketListener}.
<ide> */
<ide> public class JettyWebSocketListenerAdapter implements WebSocketListener {
<ide>
<add> private static final Log logger = LogFactory.getLog(JettyWebSocketListenerAdapter.class);
<add>
<ide> private final WebSocketHandler webSocketHandler;
<ide>
<ide> private WebSocketSession wsSession;
<ide> public JettyWebSocketListenerAdapter(WebSocketHandler webSocketHandler) {
<ide> @Override
<ide> public void onWebSocketConnect(Session session) {
<ide> this.wsSession = new JettyWebSocketSessionAdapter(session);
<del> this.webSocketHandler.afterConnectionEstablished(this.wsSession);
<del> }
<del>
<del> @Override
<del> public void onWebSocketClose(int statusCode, String reason) {
<del> CloseStatus closeStatus = new CloseStatus(statusCode, reason);
<del> this.webSocketHandler.afterConnectionClosed(this.wsSession, closeStatus);
<add> try {
<add> this.webSocketHandler.afterConnectionEstablished(this.wsSession);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, t, logger);
<add> }
<ide> }
<ide>
<ide> @Override
<ide> public void onWebSocketText(String payload) {
<ide> TextMessage message = new TextMessage(payload);
<del> this.webSocketHandler.handleMessage(this.wsSession, message);
<add> try {
<add> this.webSocketHandler.handleMessage(this.wsSession, message);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, t, logger);
<add> }
<ide> }
<ide>
<ide> @Override
<ide> public void onWebSocketBinary(byte[] payload, int offset, int len) {
<ide> BinaryMessage message = new BinaryMessage(payload, offset, len);
<del> this.webSocketHandler.handleMessage(this.wsSession, message);
<add> try {
<add> this.webSocketHandler.handleMessage(this.wsSession, message);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, t, logger);
<add> }
<add> }
<add>
<add> @Override
<add> public void onWebSocketClose(int statusCode, String reason) {
<add> CloseStatus closeStatus = new CloseStatus(statusCode, reason);
<add> try {
<add> this.webSocketHandler.afterConnectionClosed(this.wsSession, closeStatus);
<add> }
<add> catch (Throwable t) {
<add> logger.error("Unhandled error for " + this.wsSession, t);
<add> }
<ide> }
<ide>
<ide> @Override
<ide> public void onWebSocketError(Throwable cause) {
<del> this.webSocketHandler.handleTransportError(this.wsSession, cause);
<add> try {
<add> this.webSocketHandler.handleTransportError(this.wsSession, cause);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, t, logger);
<add> }
<ide> }
<ide>
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/adapter/StandardEndpointAdapter.java
<ide> import javax.websocket.EndpointConfig;
<ide> import javax.websocket.MessageHandler;
<ide>
<add>import org.apache.commons.logging.Log;
<add>import org.apache.commons.logging.LogFactory;
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.websocket.BinaryMessage;
<ide> import org.springframework.websocket.CloseStatus;
<ide> import org.springframework.websocket.TextMessage;
<ide> import org.springframework.websocket.WebSocketHandler;
<ide> import org.springframework.websocket.WebSocketSession;
<add>import org.springframework.websocket.support.ExceptionWebSocketHandlerDecorator;
<ide>
<ide>
<ide> /**
<ide> */
<ide> public class StandardEndpointAdapter extends Endpoint {
<ide>
<add> private static final Log logger = LogFactory.getLog(StandardEndpointAdapter.class);
<add>
<ide> private final WebSocketHandler handler;
<ide>
<ide> private WebSocketSession wsSession;
<ide> public StandardEndpointAdapter(WebSocketHandler webSocketHandler) {
<ide> public void onOpen(final javax.websocket.Session session, EndpointConfig config) {
<ide>
<ide> this.wsSession = new StandardWebSocketSessionAdapter(session);
<del> this.handler.afterConnectionEstablished(this.wsSession);
<add> try {
<add> this.handler.afterConnectionEstablished(this.wsSession);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, t, logger);
<add> return;
<add> }
<ide>
<ide> session.addMessageHandler(new MessageHandler.Whole<String>() {
<ide> @Override
<ide> public void onMessage(ByteBuffer messagePart, boolean isLast) {
<ide>
<ide> private void handleTextMessage(javax.websocket.Session session, String payload) {
<ide> TextMessage textMessage = new TextMessage(payload);
<del> this.handler.handleMessage(this.wsSession, textMessage);
<add> try {
<add> this.handler.handleMessage(this.wsSession, textMessage);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, t, logger);
<add> }
<ide> }
<ide>
<ide> private void handleBinaryMessage(javax.websocket.Session session, ByteBuffer payload, boolean isLast) {
<ide> BinaryMessage binaryMessage = new BinaryMessage(payload, isLast);
<del> this.handler.handleMessage(this.wsSession, binaryMessage);
<add> try {
<add> this.handler.handleMessage(this.wsSession, binaryMessage);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, t, logger);
<add> }
<ide> }
<ide>
<ide> @Override
<ide> public void onClose(javax.websocket.Session session, CloseReason reason) {
<ide> CloseStatus closeStatus = new CloseStatus(reason.getCloseCode().getCode(), reason.getReasonPhrase());
<del> this.handler.afterConnectionClosed(this.wsSession, closeStatus);
<add> try {
<add> this.handler.afterConnectionClosed(this.wsSession, closeStatus);
<add> }
<add> catch (Throwable t) {
<add> logger.error("Unhandled error for " + this.wsSession, t);
<add> }
<ide> }
<ide>
<ide> @Override
<ide> public void onError(javax.websocket.Session session, Throwable exception) {
<del> this.handler.handleTransportError(this.wsSession, exception);
<add> try {
<add> this.handler.handleTransportError(this.wsSession, exception);
<add> }
<add> catch (Throwable t) {
<add> ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, t, logger);
<add> }
<ide> }
<ide>
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/adapter/WebSocketHandlerAdapter.java
<ide> public class WebSocketHandlerAdapter implements WebSocketHandler {
<ide>
<ide> @Override
<del> public void afterConnectionEstablished(WebSocketSession session) {
<add> public void afterConnectionEstablished(WebSocketSession session) throws Exception {
<ide> }
<ide>
<ide> @Override
<del> public final void handleMessage(WebSocketSession session, WebSocketMessage<?> message) {
<add> public final void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
<ide> if (message instanceof TextMessage) {
<ide> handleTextMessage(session, (TextMessage) message);
<ide> }
<ide> else if (message instanceof BinaryMessage) {
<ide> }
<ide> }
<ide>
<del> protected void handleTextMessage(WebSocketSession session, TextMessage message) {
<add> protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception {
<ide> }
<ide>
<del> protected void handleBinaryMessage(WebSocketSession session, BinaryMessage message) {
<add> protected void handleBinaryMessage(WebSocketSession session, BinaryMessage message) throws Exception {
<ide> }
<ide>
<ide> @Override
<del> public void handleTransportError(WebSocketSession session, Throwable exception) {
<add> public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception {
<ide> }
<ide>
<ide> @Override
<del> public void afterConnectionClosed(WebSocketSession session, CloseStatus status) {
<add> public void afterConnectionClosed(WebSocketSession session, CloseStatus status) throws Exception {
<ide> }
<ide>
<ide> @Override
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/client/WebSocketConnectFailureException.java
<ide> @SuppressWarnings("serial")
<ide> public class WebSocketConnectFailureException extends NestedRuntimeException {
<ide>
<add>
<ide> public WebSocketConnectFailureException(String msg, Throwable cause) {
<ide> super(msg, cause);
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/DefaultHandshakeHandler.java
<ide> public String[] getSupportedProtocols() {
<ide>
<ide> @Override
<ide> public final boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response,
<del> WebSocketHandler webSocketHandler) throws IOException {
<add> WebSocketHandler webSocketHandler) throws IOException, HandshakeFailureException {
<ide>
<ide> logger.debug("Starting handshake for " + request.getURI());
<ide>
<ide> protected String selectProtocol(List<String> requestedProtocols) {
<ide> return null;
<ide> }
<ide>
<del> private String getWebSocketKeyHash(String key) {
<add> private String getWebSocketKeyHash(String key) throws HandshakeFailureException {
<ide> try {
<del> MessageDigest digest = MessageDigest.getInstance("SHA1");
<del> byte[] bytes = digest.digest((key + GUID).getBytes(Charset.forName("ISO-8859-1")));
<del> return DatatypeConverter.printBase64Binary(bytes);
<add> MessageDigest digest = MessageDigest.getInstance("SHA1");
<add> byte[] bytes = digest.digest((key + GUID).getBytes(Charset.forName("ISO-8859-1")));
<add> return DatatypeConverter.printBase64Binary(bytes);
<ide> }
<ide> catch (NoSuchAlgorithmException ex) {
<del> throw new IllegalStateException("Failed to generate value for Sec-WebSocket-Key header", ex);
<add> throw new HandshakeFailureException("Failed to generate value for Sec-WebSocket-Key header", ex);
<ide> }
<ide> }
<ide>
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/HandshakeFailureException.java
<add>/*
<add> * Copyright 2002-2013 the original author or authors.
<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> *
<add> * http://www.apache.org/licenses/LICENSE-2.0
<add> *
<add> * Unless required by applicable law or agreed to in writing, software
<add> * distributed under the License is distributed on an "AS IS" BASIS,
<add> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<add> * See the License for the specific language governing permissions and
<add> * limitations under the License.
<add> */
<add>
<add>package org.springframework.websocket.server;
<add>
<add>import org.springframework.core.NestedRuntimeException;
<add>
<add>
<add>/**
<add> * Thrown when handshake processing failed to complete due to an internal, unrecoverable
<add> * error. This implies a server error (HTTP status code 500) as opposed to a failure in
<add> * the handshake negotiation.
<add> *
<add> * <p>
<add> * By contrast, when handshake negotiation fails, the response status code will be 200 and
<add> * the response headers and body will have been updated to reflect the cause for the
<add> * failure. A {@link HandshakeHandler} implementation will have protected methods to
<add> * customize updates to the response in those cases.
<add> *
<add> * @author Rossen Stoyanchev
<add> * @since 4.0
<add> */
<add>@SuppressWarnings("serial")
<add>public class HandshakeFailureException extends NestedRuntimeException {
<add>
<add>
<add> public HandshakeFailureException(String msg, Throwable cause) {
<add> super(msg, cause);
<add> }
<add>
<add> public HandshakeFailureException(String msg) {
<add> super(msg);
<add> }
<add>
<add>}
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/HandshakeHandler.java
<ide> public interface HandshakeHandler {
<ide>
<ide>
<add> /**
<add> *
<add> * @param request
<add> * @param response
<add> * @param webSocketHandler
<add> * @return
<add> *
<add> * @throws IOException thrown when accessing or setting the response
<add> *
<add> * @throws HandshakeFailureException thrown when handshake processing failed to
<add> * complete due to an internal, unrecoverable error, i.e. a server error as
<add> * opposed to a failure to successfully negotiate the requirements of the
<add> * handshake request.
<add> */
<ide> boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler)
<del> throws IOException;
<add> throws IOException, HandshakeFailureException;
<ide>
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/RequestUpgradeStrategy.java
<ide> public interface RequestUpgradeStrategy {
<ide> String[] getSupportedVersions();
<ide>
<ide> /**
<del> * Perform runtime specific steps to complete the upgrade.
<del> * Invoked only if the handshake is successful.
<add> * Perform runtime specific steps to complete the upgrade. Invoked after successful
<add> * negotiation of the handshake request.
<ide> *
<ide> * @param webSocketHandler the handler for WebSocket messages
<add> *
<add> * @throws HandshakeFailureException thrown when handshake processing failed to
<add> * complete due to an internal, unrecoverable error, i.e. a server error as
<add> * opposed to a failure to successfully negotiate the requirements of the
<add> * handshake request.
<ide> */
<ide> void upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol,
<del> WebSocketHandler webSocketHandler) throws IOException;
<add> WebSocketHandler webSocketHandler) throws IOException, HandshakeFailureException;
<ide>
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/support/GlassfishRequestUpgradeStrategy.java
<ide> import org.springframework.util.ClassUtils;
<ide> import org.springframework.util.ReflectionUtils;
<ide> import org.springframework.util.StringUtils;
<add>import org.springframework.websocket.server.HandshakeFailureException;
<ide> import org.springframework.websocket.server.endpoint.EndpointRegistration;
<ide>
<ide> /**
<ide> public String[] getSupportedVersions() {
<ide>
<ide> @Override
<ide> public void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response,
<del> String selectedProtocol, Endpoint endpoint) throws IOException {
<add> String selectedProtocol, Endpoint endpoint) throws IOException, HandshakeFailureException {
<ide>
<ide> Assert.isTrue(request instanceof ServletServerHttpRequest);
<ide> HttpServletRequest servletRequest = ((ServletServerHttpRequest) request).getServletRequest();
<ide> public void upgradeInternal(ServerHttpRequest request, ServerHttpResponse respon
<ide> engine.register(tyrusEndpoint);
<ide> }
<ide> catch (DeploymentException ex) {
<del> throw new IllegalStateException("Failed to deploy endpoint in Glassfish", ex);
<add> throw new HandshakeFailureException("Failed to deploy endpoint in Glassfish", ex);
<ide> }
<ide>
<ide> try {
<ide> if (!performUpgrade(servletRequest, servletResponse, request.getHeaders(), tyrusEndpoint)) {
<del> throw new IllegalStateException("Failed to upgrade HttpServletRequest");
<add> throw new HandshakeFailureException("Failed to upgrade HttpServletRequest");
<ide> }
<ide> }
<ide> finally {
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/support/JettyRequestUpgradeStrategy.java
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.websocket.WebSocketHandler;
<ide> import org.springframework.websocket.adapter.JettyWebSocketListenerAdapter;
<add>import org.springframework.websocket.server.HandshakeFailureException;
<ide> import org.springframework.websocket.server.RequestUpgradeStrategy;
<ide>
<ide> /**
<ide> private void upgrade(HttpServletRequest request, HttpServletResponse response,
<ide>
<ide> if (!this.factory.acceptWebSocket(request, response)) {
<ide> // should never happen
<del> throw new IllegalStateException("WebSocket request not accepted by Jetty");
<add> throw new HandshakeFailureException("WebSocket request not accepted by Jetty");
<ide> }
<ide> }
<ide>
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/support/TomcatRequestUpgradeStrategy.java
<ide> import org.springframework.http.server.ServletServerHttpRequest;
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.util.ReflectionUtils;
<add>import org.springframework.websocket.server.HandshakeFailureException;
<ide> import org.springframework.websocket.server.endpoint.EndpointRegistration;
<ide>
<ide> /**
<ide> public void upgradeInternal(ServerHttpRequest request, ServerHttpResponse respon
<ide> method.invoke(webSocketRequest);
<ide> }
<ide> catch (Exception ex) {
<del> throw new IllegalStateException("Failed to upgrade HttpServletRequest", ex);
<add> throw new HandshakeFailureException("Failed to upgrade HttpServletRequest", ex);
<ide> }
<ide>
<ide> // TODO: use ServletContext attribute when Tomcat is updated
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/server/support/WebSocketHttpRequestHandler.java
<ide> import org.springframework.http.server.ServletServerHttpResponse;
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.web.HttpRequestHandler;
<del>import org.springframework.web.util.NestedServletException;
<ide> import org.springframework.websocket.WebSocketHandler;
<ide> import org.springframework.websocket.server.DefaultHandshakeHandler;
<ide> import org.springframework.websocket.server.HandshakeHandler;
<ide> public void handleRequest(HttpServletRequest request, HttpServletResponse respon
<ide>
<ide> try {
<ide> this.handshakeHandler.doHandshake(httpRequest, httpResponse, this.webSocketHandler);
<del> }
<del> catch (Exception e) {
<del> // TODO
<del> throw new NestedServletException("HandshakeHandler failure", e);
<del> }
<del> finally {
<ide> httpResponse.flush();
<ide> }
<add> catch (IOException ex) {
<add> throw ex;
<add> }
<ide> }
<ide>
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/support/ExceptionWebSocketHandlerDecorator.java
<ide> public void afterConnectionEstablished(WebSocketSession session) {
<ide> getDelegate().afterConnectionEstablished(session);
<ide> }
<ide> catch (Throwable ex) {
<del> tryCloseWithError(session, ex);
<add> tryCloseWithError(session, ex, logger);
<ide> }
<ide> }
<ide>
<del> private void tryCloseWithError(WebSocketSession session, Throwable exception) {
<add> public static void tryCloseWithError(WebSocketSession session, Throwable exception, Log logger) {
<ide> logger.error("Closing due to exception for " + session, exception);
<ide> if (session.isOpen()) {
<ide> try {
<ide> public void handleMessage(WebSocketSession session, WebSocketMessage<?> message)
<ide> getDelegate().handleMessage(session, message);
<ide> }
<ide> catch (Throwable ex) {
<del> tryCloseWithError(session,ex);
<add> tryCloseWithError(session, ex, logger);
<ide> }
<ide> }
<ide>
<ide> public void handleTransportError(WebSocketSession session, Throwable exception)
<ide> getDelegate().handleTransportError(session, exception);
<ide> }
<ide> catch (Throwable ex) {
<del> tryCloseWithError(session, ex);
<add> tryCloseWithError(session, ex, logger);
<ide> }
<ide> }
<ide>
<ide> public void afterConnectionClosed(WebSocketSession session, CloseStatus closeSta
<ide> try {
<ide> getDelegate().afterConnectionClosed(session, closeStatus);
<ide> }
<del> catch (Throwable ex) {
<del> logger.error("Unhandled error for " + this, ex);
<add> catch (Throwable t) {
<add> logger.error("Unhandled error for " + this, t);
<ide> }
<ide> }
<ide>
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/support/LoggingWebSocketHandlerDecorator.java
<ide> public LoggingWebSocketHandlerDecorator(WebSocketHandler delegate) {
<ide>
<ide>
<ide> @Override
<del> public void afterConnectionEstablished(WebSocketSession session) {
<add> public void afterConnectionEstablished(WebSocketSession session) throws Exception {
<ide> if (logger.isDebugEnabled()) {
<ide> logger.debug("Connection established, " + session + ", uri=" + session.getURI());
<ide> }
<ide> super.afterConnectionEstablished(session);
<ide> }
<ide>
<ide> @Override
<del> public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) {
<add> public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
<ide> if (logger.isTraceEnabled()) {
<ide> logger.trace("Received " + message + ", " + session);
<ide> }
<ide> super.handleMessage(session, message);
<ide> }
<ide>
<ide> @Override
<del> public void handleTransportError(WebSocketSession session, Throwable exception) {
<add> public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception {
<ide> if (logger.isDebugEnabled()) {
<ide> logger.debug("Transport error for " + session, exception);
<ide> }
<ide> super.handleTransportError(session, exception);
<ide> }
<ide>
<ide> @Override
<del> public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) {
<add> public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception {
<ide> if (logger.isDebugEnabled()) {
<ide> logger.debug("Connection closed for " + session + ", " + closeStatus);
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/support/PerConnectionWebSocketHandlerProxy.java
<ide> public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
<ide> }
<ide>
<ide> @Override
<del> public void afterConnectionEstablished(WebSocketSession session) {
<add> public void afterConnectionEstablished(WebSocketSession session) throws Exception {
<ide> WebSocketHandler handler = this.provider.getHandler();
<ide> this.handlers.put(session, handler);
<ide> handler.afterConnectionEstablished(session);
<ide> }
<ide>
<ide> @Override
<del> public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) {
<add> public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
<ide> getHandler(session).handleMessage(session, message);
<ide> }
<ide>
<ide> private WebSocketHandler getHandler(WebSocketSession session) {
<ide> }
<ide>
<ide> @Override
<del> public void handleTransportError(WebSocketSession session, Throwable exception) {
<add> public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception {
<ide> getHandler(session).handleTransportError(session, exception);
<ide> }
<ide>
<ide> @Override
<del> public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) {
<add> public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception {
<ide> try {
<ide> getHandler(session).afterConnectionClosed(session, closeStatus);
<ide> }
<ide><path>spring-websocket/src/main/java/org/springframework/websocket/support/WebSocketHandlerDecorator.java
<ide> protected WebSocketHandler getDelegate() {
<ide> }
<ide>
<ide> @Override
<del> public void afterConnectionEstablished(WebSocketSession session) {
<add> public void afterConnectionEstablished(WebSocketSession session) throws Exception {
<ide> this.delegate.afterConnectionEstablished(session);
<ide> }
<ide>
<ide> @Override
<del> public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) {
<add> public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
<ide> this.delegate.handleMessage(session, message);
<ide> }
<ide>
<ide> @Override
<del> public void handleTransportError(WebSocketSession session, Throwable exception) {
<add> public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception {
<ide> this.delegate.handleTransportError(session, exception);
<ide> }
<ide>
<ide> @Override
<del> public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) {
<add> public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception {
<ide> this.delegate.afterConnectionClosed(session, closeStatus);
<ide> }
<ide> | 24 |
PHP | PHP | fix incorrect expiry of sessions | c96e364cbb6ec8dd72dd220836a07ed104d2d50a | <ide><path>lib/Cake/Model/Datasource/Session/DatabaseSession.php
<ide> public function destroy($id) {
<ide> public function gc($expires = null) {
<ide> if (!$expires) {
<ide> $expires = time();
<add> } else {
<add> $expires = time() - $expires;
<ide> }
<ide> return $this->_model->deleteAll(array($this->_model->alias . ".expires <" => $expires), false, false);
<ide> } | 1 |
Text | Text | fix onreadable reentry after unshift called | a72a331536bfe50cce5f6f78bd99bfab5bd7e156 | <ide><path>doc/api/stream.md
<ide> function parseHeader(stream, callback) {
<ide> header += split.shift();
<ide> const remaining = split.join('\n\n');
<ide> const buf = Buffer.from(remaining, 'utf8');
<del> if (buf.length)
<del> stream.unshift(buf);
<ide> stream.removeListener('error', callback);
<add> // set the readable listener before unshifting
<ide> stream.removeListener('readable', onReadable);
<add> if (buf.length)
<add> stream.unshift(buf);
<ide> // now the body of the message can be read from the stream.
<ide> callback(null, header, stream);
<ide> } else { | 1 |
Javascript | Javascript | improve stability of profilingplugin test | fd0cb346cd0195ecf13654ad4d478e24160ccf11 | <ide><path>test/ProfilingPlugin.test.js
<ide> const webpack = require("../");
<ide> const rimraf = require("rimraf");
<ide>
<ide> describe("Profiling Plugin", function () {
<del> jest.setTimeout(30000);
<add> jest.setTimeout(120000);
<ide>
<ide> it("should handle output path with folder creation", done => {
<ide> const outputPath = path.join(__dirname, "js/profilingPath");
<ide> const finalPath = path.join(outputPath, "events.json");
<ide> rimraf(outputPath, () => {
<add> const startTime = process.hrtime();
<ide> const compiler = webpack({
<ide> context: __dirname,
<ide> entry: "./fixtures/a.js",
<ide> describe("Profiling Plugin", function () {
<ide> });
<ide> compiler.run(err => {
<ide> if (err) return done(err);
<add> const testDuration = process.hrtime(startTime);
<ide> if (!fs.existsSync(outputPath))
<ide> return done(new Error("Folder should be created."));
<ide> const data = require(finalPath);
<ide> const maxTs = data.reduce((max, entry) => Math.max(max, entry.ts), 0);
<ide> const minTs = data[0].ts;
<ide> const duration = maxTs - minTs;
<del> expect(duration).toBeLessThan(10000 * 1000);
<add> expect(duration).toBeLessThan(
<add> testDuration[0] * 1000000 + testDuration[1] / 1000
<add> );
<ide> const cpuProfile = data.find(entry => entry.name === "CpuProfile");
<ide> expect(cpuProfile).toBeTypeOf("object");
<ide> const profile = cpuProfile.args.data.cpuProfile; | 1 |
Text | Text | add argument information for socket.destroy() | 92adbe4793489b3207a615cdc442681a054302b0 | <ide><path>doc/api/net.md
<ide> If `true` - [`socket.connect(options[, connectListener])`][`socket.connect(optio
<ide> haven't yet finished. Will be set to `false` before emitting `connect` event
<ide> and/or calling [`socket.connect(options[, connectListener])`][`socket.connect(options, connectListener)`]'s callback.
<ide>
<del>### socket.destroy()
<add>### socket.destroy([exception])
<ide> <!-- YAML
<ide> added: v0.1.90
<ide> -->
<ide>
<ide> Ensures that no more I/O activity happens on this socket. Only necessary in
<ide> case of errors (parse error or so).
<ide>
<add>If `exception` is specified, an [`'error'`][] event will be emitted and any
<add>listeners for that event will receive `exception` as an argument.
<add>
<ide> ### socket.destroyed
<ide>
<ide> A Boolean value that indicates if the connection is destroyed or not. Once a | 1 |
Python | Python | move bert_models.py into the bert folder | 4a086ad57f375dded482c9969bf5c8984c1db2e9 | <add><path>official/nlp/bert/bert_models.py
<del><path>official/nlp/bert_models.py
<ide> from official.nlp.modeling.networks import bert_span_labeler
<ide>
<ide>
<del>def gather_indexes(sequence_tensor, positions):
<del> """Gathers the vectors at the specific positions.
<del>
<del> Args:
<del> sequence_tensor: Sequence output of `BertModel` layer of shape
<del> (`batch_size`, `seq_length`, num_hidden) where num_hidden is number of
<del> hidden units of `BertModel` layer.
<del> positions: Positions ids of tokens in sequence to mask for pretraining of
<del> with dimension (batch_size, max_predictions_per_seq) where
<del> `max_predictions_per_seq` is maximum number of tokens to mask out and
<del> predict per each sequence.
<del>
<del> Returns:
<del> Masked out sequence tensor of shape (batch_size * max_predictions_per_seq,
<del> num_hidden).
<del> """
<del> sequence_shape = tf_utils.get_shape_list(
<del> sequence_tensor, name='sequence_output_tensor')
<del> batch_size = sequence_shape[0]
<del> seq_length = sequence_shape[1]
<del> width = sequence_shape[2]
<del>
<del> flat_offsets = tf.keras.backend.reshape(
<del> tf.range(0, batch_size, dtype=tf.int32) * seq_length, [-1, 1])
<del> flat_positions = tf.keras.backend.reshape(positions + flat_offsets, [-1])
<del> flat_sequence_tensor = tf.keras.backend.reshape(
<del> sequence_tensor, [batch_size * seq_length, width])
<del> output_tensor = tf.gather(flat_sequence_tensor, flat_positions)
<del>
<del> return output_tensor
<del>
<del>
<ide> class BertPretrainLossAndMetricLayer(tf.keras.layers.Layer):
<ide> """Returns layer that computes custom loss and metrics for pretraining."""
<ide>
<ide><path>official/nlp/bert/export_tfhub.py
<ide> from typing import Optional, Text
<ide>
<ide> from official.nlp import bert_modeling
<del>from official.nlp import bert_models
<add>from official.nlp.bert import bert_models
<ide>
<ide> FLAGS = flags.FLAGS
<ide>
<ide><path>official/nlp/bert/run_classifier.py
<ide> # pylint: disable=g-import-not-at-top,redefined-outer-name,reimported
<ide> from official.modeling import model_training_utils
<ide> from official.nlp import bert_modeling as modeling
<del>from official.nlp import bert_models
<ide> from official.nlp import optimization
<add>from official.nlp.bert import bert_models
<ide> from official.nlp.bert import common_flags
<ide> from official.nlp.bert import input_pipeline
<ide> from official.nlp.bert import model_saving_utils
<ide><path>official/nlp/bert/run_pretraining.py
<ide> # pylint: disable=unused-import,g-import-not-at-top,redefined-outer-name,reimported
<ide> from official.modeling import model_training_utils
<ide> from official.nlp import bert_modeling as modeling
<del>from official.nlp import bert_models
<ide> from official.nlp import optimization
<add>from official.nlp.bert import bert_models
<ide> from official.nlp.bert import common_flags
<ide> from official.nlp.bert import input_pipeline
<ide> from official.nlp.bert import model_saving_utils
<ide><path>official/nlp/bert/run_squad.py
<ide> # pylint: disable=unused-import,g-import-not-at-top,redefined-outer-name,reimported
<ide> from official.modeling import model_training_utils
<ide> from official.nlp import bert_modeling as modeling
<del>from official.nlp import bert_models
<ide> from official.nlp import optimization
<add>from official.nlp.bert import bert_models
<ide> from official.nlp.bert import common_flags
<ide> from official.nlp.bert import input_pipeline
<ide> from official.nlp.bert import model_saving_utils | 5 |
Go | Go | add support for configuring tls | 50098e5c7b17b553efc36feeca11367d5034f16d | <ide><path>libnetwork/config/config.go
<ide> import (
<ide> "github.com/BurntSushi/toml"
<ide> log "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/pkg/discovery"
<add> "github.com/docker/docker/pkg/tlsconfig"
<ide> "github.com/docker/libkv/store"
<ide> "github.com/docker/libnetwork/datastore"
<ide> "github.com/docker/libnetwork/netlabel"
<ide> func OptionKVProviderURL(url string) Option {
<ide> }
<ide> }
<ide>
<add>// OptionKVOpts function returns an option setter for kvstore options
<add>func OptionKVOpts(opts map[string]string) Option {
<add> return func(c *Config) {
<add> if opts["kv.cacertfile"] != "" && opts["kv.certfile"] != "" && opts["kv.keyfile"] != "" {
<add> log.Info("Option Initializing KV with TLS")
<add> tlsConfig, err := tlsconfig.Client(tlsconfig.Options{
<add> CAFile: opts["kv.cacertfile"],
<add> CertFile: opts["kv.certfile"],
<add> KeyFile: opts["kv.keyfile"],
<add> })
<add> if err != nil {
<add> log.Errorf("Unable to set up TLS: %s", err)
<add> return
<add> }
<add> if _, ok := c.Scopes[datastore.GlobalScope]; !ok {
<add> c.Scopes[datastore.GlobalScope] = &datastore.ScopeCfg{}
<add> }
<add> if c.Scopes[datastore.GlobalScope].Client.Config == nil {
<add> c.Scopes[datastore.GlobalScope].Client.Config = &store.Config{TLS: tlsConfig}
<add> } else {
<add> c.Scopes[datastore.GlobalScope].Client.Config.TLS = tlsConfig
<add> }
<add> // Workaround libkv/etcd bug for https
<add> c.Scopes[datastore.GlobalScope].Client.Config.ClientTLS = &store.ClientTLSConfig{
<add> CACertFile: opts["kv.cacertfile"],
<add> CertFile: opts["kv.certfile"],
<add> KeyFile: opts["kv.keyfile"],
<add> }
<add> } else {
<add> log.Info("Option Initializing KV without TLS")
<add> }
<add> }
<add>}
<add>
<ide> // OptionDiscoveryWatcher function returns an option setter for discovery watcher
<ide> func OptionDiscoveryWatcher(watcher discovery.Watcher) Option {
<ide> return func(c *Config) {
<ide><path>libnetwork/config/config_test.go
<ide> package config
<ide>
<ide> import (
<add> "io/ioutil"
<add> "os"
<ide> "strings"
<ide> "testing"
<ide>
<add> "github.com/docker/libnetwork/datastore"
<ide> "github.com/docker/libnetwork/netlabel"
<ide> _ "github.com/docker/libnetwork/testutils"
<ide> )
<ide> func TestValidName(t *testing.T) {
<ide> t.Fatal("Name validation succeeds for a case when it is expected to fail")
<ide> }
<ide> }
<add>
<add>func TestTLSConfiguration(t *testing.T) {
<add> cert := `-----BEGIN CERTIFICATE-----
<add>MIIDCDCCAfKgAwIBAgIICifG7YeiQOEwCwYJKoZIhvcNAQELMBIxEDAOBgNVBAMT
<add>B1Rlc3QgQ0EwHhcNMTUxMDAxMjMwMDAwWhcNMjAwOTI5MjMwMDAwWjASMRAwDgYD
<add>VQQDEwdUZXN0IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1wRC
<add>O+flnLTK5ImjTurNRHwSejuqGbc4CAvpB0hS+z0QlSs4+zE9h80aC4hz+6caRpds
<add>+J908Q+RvAittMHbpc7VjbZP72G6fiXk7yPPl6C10HhRSoSi3nY+B7F2E8cuz14q
<add>V2e+ejhWhSrBb/keyXpcyjoW1BOAAJ2TIclRRkICSCZrpXUyXxAvzXfpFXo1RhSb
<add>UywN11pfiCQzDUN7sPww9UzFHuAHZHoyfTr27XnJYVUerVYrCPq8vqfn//01qz55
<add>Xs0hvzGdlTFXhuabFtQnKFH5SNwo/fcznhB7rePOwHojxOpXTBepUCIJLbtNnWFT
<add>V44t9gh5IqIWtoBReQIDAQABo2YwZDAOBgNVHQ8BAf8EBAMCAAYwEgYDVR0TAQH/
<add>BAgwBgEB/wIBAjAdBgNVHQ4EFgQUZKUI8IIjIww7X/6hvwggQK4bD24wHwYDVR0j
<add>BBgwFoAUZKUI8IIjIww7X/6hvwggQK4bD24wCwYJKoZIhvcNAQELA4IBAQDES2cz
<add>7sCQfDCxCIWH7X8kpi/JWExzUyQEJ0rBzN1m3/x8ySRxtXyGekimBqQwQdFqlwMI
<add>xzAQKkh3ue8tNSzRbwqMSyH14N1KrSxYS9e9szJHfUasoTpQGPmDmGIoRJuq1h6M
<add>ej5x1SCJ7GWCR6xEXKUIE9OftXm9TdFzWa7Ja3OHz/mXteii8VXDuZ5ACq6EE5bY
<add>8sP4gcICfJ5fTrpTlk9FIqEWWQrCGa5wk95PGEj+GJpNogjXQ97wVoo/Y3p1brEn
<add>t5zjN9PAq4H1fuCMdNNA+p1DHNwd+ELTxcMAnb2ajwHvV6lKPXutrTFc4umJToBX
<add>FpTxDmJHEV4bzUzh
<add>-----END CERTIFICATE-----
<add>`
<add> key := `-----BEGIN RSA PRIVATE KEY-----
<add>MIIEpQIBAAKCAQEA1wRCO+flnLTK5ImjTurNRHwSejuqGbc4CAvpB0hS+z0QlSs4
<add>+zE9h80aC4hz+6caRpds+J908Q+RvAittMHbpc7VjbZP72G6fiXk7yPPl6C10HhR
<add>SoSi3nY+B7F2E8cuz14qV2e+ejhWhSrBb/keyXpcyjoW1BOAAJ2TIclRRkICSCZr
<add>pXUyXxAvzXfpFXo1RhSbUywN11pfiCQzDUN7sPww9UzFHuAHZHoyfTr27XnJYVUe
<add>rVYrCPq8vqfn//01qz55Xs0hvzGdlTFXhuabFtQnKFH5SNwo/fcznhB7rePOwHoj
<add>xOpXTBepUCIJLbtNnWFTV44t9gh5IqIWtoBReQIDAQABAoIBAHSWipORGp/uKFXj
<add>i/mut776x8ofsAxhnLBARQr93ID+i49W8H7EJGkOfaDjTICYC1dbpGrri61qk8sx
<add>qX7p3v/5NzKwOIfEpirgwVIqSNYe/ncbxnhxkx6tXtUtFKmEx40JskvSpSYAhmmO
<add>1XSx0E/PWaEN/nLgX/f1eWJIlxlQkk3QeqL+FGbCXI48DEtlJ9+MzMu4pAwZTpj5
<add>5qtXo5JJ0jRGfJVPAOznRsYqv864AhMdMIWguzk6EGnbaCWwPcfcn+h9a5LMdony
<add>MDHfBS7bb5tkF3+AfnVY3IBMVx7YlsD9eAyajlgiKu4zLbwTRHjXgShy+4Oussz0
<add>ugNGnkECgYEA/hi+McrZC8C4gg6XqK8+9joD8tnyDZDz88BQB7CZqABUSwvjDqlP
<add>L8hcwo/lzvjBNYGkqaFPUICGWKjeCtd8pPS2DCVXxDQX4aHF1vUur0uYNncJiV3N
<add>XQz4Iemsa6wnKf6M67b5vMXICw7dw0HZCdIHD1hnhdtDz0uVpeevLZ8CgYEA2KCT
<add>Y43lorjrbCgMqtlefkr3GJA9dey+hTzCiWEOOqn9RqGoEGUday0sKhiLofOgmN2B
<add>LEukpKIey8s+Q/cb6lReajDVPDsMweX8i7hz3Wa4Ugp4Xa5BpHqu8qIAE2JUZ7bU
<add>t88aQAYE58pUF+/Lq1QzAQdrjjzQBx6SrBxieecCgYEAvukoPZEC8mmiN1VvbTX+
<add>QFHmlZha3QaDxChB+QUe7bMRojEUL/fVnzkTOLuVFqSfxevaI/km9n0ac5KtAchV
<add>xjp2bTnBb5EUQFqjopYktWA+xO07JRJtMfSEmjZPbbay1kKC7rdTfBm961EIHaRj
<add>xZUf6M+rOE8964oGrdgdLlECgYEA046GQmx6fh7/82FtdZDRQp9tj3SWQUtSiQZc
<add>qhO59Lq8mjUXz+MgBuJXxkiwXRpzlbaFB0Bca1fUoYw8o915SrDYf/Zu2OKGQ/qa
<add>V81sgiVmDuEgycR7YOlbX6OsVUHrUlpwhY3hgfMe6UtkMvhBvHF/WhroBEIJm1pV
<add>PXZ/CbMCgYEApNWVktFBjOaYfY6SNn4iSts1jgsQbbpglg3kT7PLKjCAhI6lNsbk
<add>dyT7ut01PL6RaW4SeQWtrJIVQaM6vF3pprMKqlc5XihOGAmVqH7rQx9rtQB5TicL
<add>BFrwkQE4HQtQBV60hYQUzzlSk44VFDz+jxIEtacRHaomDRh2FtOTz+I=
<add>-----END RSA PRIVATE KEY-----
<add>`
<add> certFile, err := ioutil.TempFile("", "cert")
<add> if err != nil {
<add> t.Fatalf("Failed to setup temp file: %s", err)
<add> }
<add> defer os.Remove(certFile.Name())
<add> certFile.Write([]byte(cert))
<add> certFile.Close()
<add> keyFile, err := ioutil.TempFile("", "key")
<add> if err != nil {
<add> t.Fatalf("Failed to setup temp file: %s", err)
<add> }
<add> defer os.Remove(keyFile.Name())
<add> keyFile.Write([]byte(key))
<add> keyFile.Close()
<add>
<add> c := &Config{Scopes: map[string]*datastore.ScopeCfg{}}
<add> l := map[string]string{
<add> "kv.cacertfile": certFile.Name(),
<add> "kv.certfile": certFile.Name(),
<add> "kv.keyfile": keyFile.Name(),
<add> }
<add> f := OptionKVOpts(l)
<add> f(c)
<add> if _, ok := c.Scopes[datastore.GlobalScope]; !ok {
<add> t.Fatal("GlobalScope not established")
<add> }
<add>
<add> if c.Scopes[datastore.GlobalScope].Client.Config.TLS == nil {
<add> t.Fatal("TLS is nil")
<add> }
<add> if c.Scopes[datastore.GlobalScope].Client.Config.TLS.RootCAs == nil {
<add> t.Fatal("TLS.RootCAs is nil")
<add> }
<add> if len(c.Scopes[datastore.GlobalScope].Client.Config.TLS.Certificates) != 1 {
<add> t.Fatal("TLS.Certificates is not length 1")
<add> }
<add>} | 2 |
Ruby | Ruby | strip more unicode crap from xml | 7ed97b14fd0ea9dd92e561c75dee43a9a6d5c571 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def run
<ide> failure = testcase.add_element 'failure' if step.failed?
<ide> if step.has_output?
<ide> # Remove invalid XML CData characters from step output.
<del> output = REXML::CData.new step.output.delete("\000\f\e")
<add> output = REXML::CData.new step.output.delete("\000\b\e\f")
<ide> if step.passed?
<ide> system_out = testcase.add_element 'system-out'
<ide> system_out.text = output | 1 |
Python | Python | add type annotations for segformer classes | 62b05b6917b554da14d940386981c9a767e0071c | <ide><path>src/transformers/models/segformer/modeling_segformer.py
<ide>
<ide> import collections
<ide> import math
<add>from typing import Optional, Tuple, Union
<ide>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> def __init__(self, config):
<ide>
<ide> def forward(
<ide> self,
<del> pixel_values,
<del> output_attentions=False,
<del> output_hidden_states=False,
<del> return_dict=True,
<del> ):
<add> pixel_values: torch.FloatTensor,
<add> output_attentions: Optional[bool] = False,
<add> output_hidden_states: Optional[bool] = False,
<add> return_dict: Optional[bool] = True,
<add> ) -> Union[Tuple, BaseModelOutput]:
<ide> all_hidden_states = () if output_hidden_states else None
<ide> all_self_attentions = () if output_attentions else None
<ide>
<ide> class PreTrainedModel
<ide> modality="vision",
<ide> expected_output=_EXPECTED_OUTPUT_SHAPE,
<ide> )
<del> def forward(self, pixel_values, output_attentions=None, output_hidden_states=None, return_dict=None):
<add> def forward(
<add> self,
<add> pixel_values: torch.FloatTensor,
<add> output_attentions: Optional[bool] = None,
<add> output_hidden_states: Optional[bool] = None,
<add> return_dict: Optional[bool] = None,
<add> ) -> Union[Tuple, BaseModelOutput]:
<ide> output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
<ide> output_hidden_states = (
<ide> output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
<ide> def __init__(self, config):
<ide> )
<ide> def forward(
<ide> self,
<del> pixel_values=None,
<del> labels=None,
<del> output_attentions=None,
<del> output_hidden_states=None,
<del> return_dict=None,
<del> ):
<add> pixel_values: Optional[torch.FloatTensor] = None,
<add> labels: Optional[torch.LongTensor] = None,
<add> output_attentions: Optional[bool] = None,
<add> output_hidden_states: Optional[bool] = None,
<add> return_dict: Optional[bool] = None,
<add> ) -> Union[Tuple, SequenceClassifierOutput]:
<ide> r"""
<ide> labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*):
<ide> Labels for computing the image classification/regression loss. Indices should be in `[0, ...,
<ide> def __init__(self, config):
<ide> @replace_return_docstrings(output_type=SemanticSegmentationModelOutput, config_class=_CONFIG_FOR_DOC)
<ide> def forward(
<ide> self,
<del> pixel_values,
<del> labels=None,
<del> output_attentions=None,
<del> output_hidden_states=None,
<del> return_dict=None,
<del> ):
<add> pixel_values: torch.FloatTensor,
<add> labels: Optional[torch.LongTensor] = None,
<add> output_attentions: Optional[bool] = None,
<add> output_hidden_states: Optional[bool] = None,
<add> return_dict: Optional[bool] = None,
<add> ) -> Union[Tuple, SemanticSegmentationModelOutput]:
<ide> r"""
<ide> labels (`torch.LongTensor` of shape `(batch_size, height, width)`, *optional*):
<ide> Ground truth semantic segmentation maps for computing the loss. Indices should be in `[0, ..., | 1 |
PHP | PHP | fix inflector for species singular | 533885de798c46b7ea1b7b0401157dd01364fd76 | <ide><path>src/Utility/Inflector.php
<ide> class Inflector
<ide> '/(x|ch|ss|sh)es$/i' => '\1',
<ide> '/(m)ovies$/i' => '\1\2ovie',
<ide> '/(s)eries$/i' => '\1\2eries',
<add> '/(s)pecies$/i' => '\1\2pecies',
<ide> '/([^aeiouy]|qu)ies$/i' => '\1y',
<ide> '/(tive)s$/i' => '\1',
<ide> '/(hive)s$/i' => '\1',
<ide><path>tests/TestCase/Utility/InflectorTest.php
<ide> public function singularizeProvider(): array
<ide> ['', ''],
<ide> ['cache', 'caches'],
<ide> ['lens', 'lenses'],
<add> ['species', 'species'],
<add> ['animal_species', 'animal_species'],
<ide> ];
<ide> }
<ide> | 2 |
Text | Text | fix minor docs error | 143f438e6e7a4c8205af59ba6e9f52cb450f1cce | <ide><path>docs/sources/index.md
<ide> regular, unsigned image.
<ide> *Other improvements & changes*
<ide>
<ide> We've added a new security options flag that lets you set SELinux and AppArmor
<del>labels and profiles. This means you'll longer have to use `docker run
<del>--privileged on kernels that support SE Linux or AppArmor.
<add>labels and profiles. This means you'll no longer have to use `docker run
<add>--privileged` on kernels that support SE Linux or AppArmor.
<ide> | 1 |
PHP | PHP | remove use of deprecated constants | 525efcb8087ca46c24d9bdba2a1043d676ca2bc6 | <ide><path>lib/Cake/Test/Case/View/Helper/JsHelperTest.php
<ide> public function testWriteBufferAndXhr() {
<ide> * @return void
<ide> */
<ide> public function testWriteScriptsInFile() {
<del> $this->skipIf(!is_writable(JS), 'webroot/js is not Writable, script caching test has been skipped.');
<add> $this->skipIf(!is_writable(WWW_ROOT . 'js'), 'webroot/js is not Writable, script caching test has been skipped.');
<ide>
<ide> Configure::write('Cache.disable', false);
<ide> $this->Js->request->webroot = '/';
<ide><path>lib/Cake/View/Helper/JsHelper.php
<ide> public function writeBuffer($options = array()) {
<ide>
<ide> if ($options['cache'] && $options['inline']) {
<ide> $filename = md5($script);
<del> if (file_exists(JS . $filename . '.js')
<del> || cache(str_replace(WWW_ROOT, '', JS) . $filename . '.js', $script, '+999 days', 'public')
<add> $path = WWW_ROOT . Configure::read('App.jsBaseUrl');
<add> if (file_exists($path . $filename . '.js')
<add> || cache(str_replace(WWW_ROOT, '', $path) . $filename . '.js', $script, '+999 days', 'public')
<ide> ) {
<ide> return $this->Html->script($filename);
<ide> } | 2 |
Javascript | Javascript | fix arguments order in `assert.strictequal` | f351c5dd080582278e75a930e556bda674b0338f | <ide><path>test/parallel/test-repl-envvars.js
<ide> function run(test) {
<ide> REPL.createInternalRepl(env, opts, function(err, repl) {
<ide> assert.ifError(err);
<ide>
<del> assert.strictEqual(expected.terminal, repl.terminal,
<add> assert.strictEqual(repl.terminal, expected.terminal,
<ide> `Expected ${inspect(expected)} with ${inspect(env)}`);
<del> assert.strictEqual(expected.useColors, repl.useColors,
<add> assert.strictEqual(repl.useColors, expected.useColors,
<ide> `Expected ${inspect(expected)} with ${inspect(env)}`);
<ide> repl.close();
<ide> }); | 1 |
PHP | PHP | add integration test for marshaller | ba1c347d9a7740bf17490d4745a0ff4142eac0f3 | <ide><path>tests/TestCase/ORM/MarshallerTest.php
<ide> public function testOneWithDatetimeField() {
<ide> $this->assertEquals($data['created'], $result->created->getTimestamp());
<ide> }
<ide>
<add>/**
<add> * Ensure that marshalling casts reasonably.
<add> *
<add> * @return void
<add> */
<add> public function testOneOnlyCastMatchingData() {
<add> $data = [
<add> 'title' => 'My title',
<add> 'body' => 'My content',
<add> 'author_id' => 'derp',
<add> 'created' => 'fale'
<add> ];
<add> $this->articles->entityClass(__NAMESPACE__ . '\OpenEntity');
<add> $marshall = new Marshaller($this->articles);
<add> $result = $marshall->one($data, []);
<add>
<add> $this->assertSame($data['title'], $result->title);
<add> $this->assertSame($data['author_id'], $result->author_id, 'No cast on bad data.');
<add> $this->assertSame($data['created'], $result->created, 'No cast on bad data.');
<add> }
<add>
<ide> /**
<ide> * Test one() follows mass-assignment rules.
<ide> * | 1 |
Ruby | Ruby | add test case from ticket | caf546b675ce4771e5ad3349af41c74265b70feb | <ide><path>actionpack/test/controller/routing_test.rb
<ide> def test_named_routes_are_never_relative_to_modules
<ide> url = set.generate({:use_route => :family_connection, :controller => "connection"}, {:controller => 'connection/manage'})
<ide> assert_equal "/connection", url
<ide> end
<add>
<add> def test_action_left_off_when_id_is_recalled
<add> set.draw do |map|
<add> map.connect ':controller/:action/:id'
<add> end
<add> assert_equal '/post', set.generate(
<add> {:controller => 'post', :action => 'index'},
<add> {:controller => 'post', :action => 'show', :id => '10'}
<add> )
<add> end
<add>
<ide> end
<ide>
<ide> class RoutingTest < Test::Unit::TestCase
<ide> def test_normalize_windows_paths
<ide> paths = ActionController::Routing.normalize_paths(load_paths)
<ide> assert_equal %w(vendor\\rails\\railties\\builtin\\rails_info vendor\\rails\\actionpack\\lib app\\controllers app\\helpers app\\models lib .), paths
<ide> end
<add>
<ide> end
<ide>\ No newline at end of file | 1 |
Javascript | Javascript | increase timeout for tests | f4d43024c3028ad2b7147a0356db8cb9f22034a3 | <ide><path>test/ConfigTestCases.test.js
<ide> describe("ConfigTestCases", function() {
<ide> category.tests.forEach(function(testName) {
<ide> var suite = describe(testName, function() {});
<ide> it(testName + " should compile", function(done) {
<del> this.timeout(10000);
<add> this.timeout(30000);
<ide> var testDirectory = path.join(casesPath, category.name, testName);
<ide> var outputDirectory = path.join(__dirname, "js", "config", category.name, testName);
<ide> var options = require(path.join(testDirectory, "webpack.config.js")); | 1 |
Python | Python | fix timezone warnings if use_tz=true | 3f7113f1d976a9bd668afd8114269e8c594dd842 | <ide><path>django/db/migrations/recorder.py
<del>import datetime
<ide> from django.db import models
<ide> from django.db.models.loading import BaseAppCache
<add>from django.utils.timezone import now
<ide>
<ide>
<ide> class MigrationRecorder(object):
<ide> class MigrationRecorder(object):
<ide> class Migration(models.Model):
<ide> app = models.CharField(max_length=255)
<ide> name = models.CharField(max_length=255)
<del> applied = models.DateTimeField(default=datetime.datetime.utcnow)
<add> applied = models.DateTimeField(default=now)
<ide> class Meta:
<ide> app_cache = BaseAppCache()
<ide> app_label = "migrations" | 1 |
Text | Text | add instructions for pre-bundled js in embeddedapp | 3a6e4305ca9c32e5f0d9002306551bb47ac6d4aa | <ide><path>docs/EmbeddedApp.md
<ide> Ready for the most interesting part? Now we shall create the `RCTRootView`, wher
<ide> In `ReactView.m`, we need to first initiate `RCTRootView` with the URI of your `index.ios.bundle`. `index.ios.bundle` will be created by packager and served by React Native server, which will be discussed later on.
<ide>
<ide> ```
<del>NSString *urlString = @"http://localhost:8081/index.ios.bundle";
<del>NSURL *jsCodeLocation = [NSURL URLWithString:urlString];
<add>NSURL *jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
<add>// For production use, this `NSURL` could instead point to a pre-bundled file on disk:
<add>//
<add>// NSURL *jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
<add>//
<add>// To generate that file, run the curl command and add the output to your main Xcode build target:
<add>//
<add>// curl http://localhost:8081/index.ios.bundle -o main.jsbundle
<ide> RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
<ide> moduleName: @"SimpleApp"
<ide> launchOptions:nil]; | 1 |
Java | Java | introduce cloning mechanism for react shadow node | ad06403c3e693b804193ed029893a4853e8bd8ba | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java
<ide> */
<ide> boolean isYogaLeafNode();
<ide>
<add> /**
<add> * @return a mutable copy of the {@link ReactShadowNode}
<add> */
<add> T mutableCopy();
<add>
<ide> String getViewClass();
<ide>
<ide> boolean hasUpdates();
<ide>
<ide> T getRootNode();
<ide>
<add> @Deprecated() //Replaced by setRootTag method.
<ide> void setRootNode(T rootNode);
<ide>
<add> void setRootTag(int rootTag);
<add>
<ide> void setViewClassName(String viewClassName);
<ide>
<ide> @Nullable
<ide>
<ide> T removeNativeChildAt(int i);
<ide>
<add> void removeAllChildren();
<add>
<ide> void removeAllNativeChildren();
<ide>
<ide> int getNativeChildCount();
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java
<ide> */
<ide> package com.facebook.react.uimanager;
<ide>
<add>import static java.lang.System.arraycopy;
<add>
<ide> import com.facebook.infer.annotation.Assertions;
<ide> import com.facebook.react.uimanager.annotations.ReactPropertyHolder;
<ide> import com.facebook.yoga.YogaAlign;
<ide> @ReactPropertyHolder
<ide> public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl> {
<ide>
<add> private static final YogaConfig sYogaConfig;
<add> static {
<add> sYogaConfig = new YogaConfig();
<add> sYogaConfig.setPointScaleFactor(0f);
<add> sYogaConfig.setUseLegacyStretchBehaviour(true);
<add> }
<add>
<ide> private int mReactTag;
<ide> private @Nullable String mViewClassName;
<ide> private @Nullable ReactShadowNodeImpl mRootNode;
<add> private int mRootTag;
<ide> private @Nullable ThemedReactContext mThemedContext;
<ide> private boolean mShouldNotifyOnLayout;
<ide> private boolean mNodeUpdated = true;
<ide> public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
<ide> private final float[] mPadding = new float[Spacing.ALL + 1];
<ide> private final boolean[] mPaddingIsPercent = new boolean[Spacing.ALL + 1];
<ide> private final YogaNode mYogaNode;
<del> private static YogaConfig sYogaConfig;
<ide>
<ide> public ReactShadowNodeImpl() {
<ide> if (!isVirtual()) {
<ide> YogaNode node = YogaNodePool.get().acquire();
<del> if (sYogaConfig == null) {
<del> sYogaConfig = new YogaConfig();
<del> sYogaConfig.setPointScaleFactor(0f);
<del> sYogaConfig.setUseLegacyStretchBehaviour(true);
<del> }
<del> if (node == null) {
<del> node = new YogaNode(sYogaConfig);
<del> }
<del> mYogaNode = node;
<add> mYogaNode = node == null ? new YogaNode(sYogaConfig) : node;
<ide> Arrays.fill(mPadding, YogaConstants.UNDEFINED);
<ide> } else {
<ide> mYogaNode = null;
<ide> }
<ide> }
<ide>
<add> public ReactShadowNodeImpl(ReactShadowNodeImpl original) {
<add> try {
<add> mReactTag = original.mReactTag;
<add> mRootTag = original.mRootTag;
<add> mViewClassName = original.mViewClassName;
<add> mRootNode = original.mRootNode;
<add> mThemedContext = original.mThemedContext;
<add> mShouldNotifyOnLayout = original.mShouldNotifyOnLayout;
<add> mNodeUpdated = original.mNodeUpdated;
<add> mChildren = original.mChildren == null ? null : new ArrayList<>(original.mChildren);
<add> mParent = original.mParent;
<add> mIsLayoutOnly = original.mIsLayoutOnly;
<add> mTotalNativeChildren = original.mTotalNativeChildren;
<add> mNativeParent = original.mNativeParent;
<add> mNativeChildren = original.mNativeChildren == null ? null : new ArrayList<>(original.mNativeChildren);
<add> mNativeParent = original.mNativeParent;
<add> mScreenX = original.mScreenX;
<add> mScreenY = original.mScreenY;
<add> mScreenWidth = original.mScreenWidth;
<add> mScreenHeight = original.mScreenHeight;
<add> arraycopy(original.mPadding, 0, mPadding, 0, original.mPadding.length);
<add> arraycopy(original.mPaddingIsPercent, 0, mPaddingIsPercent, 0, original.mPaddingIsPercent.length);
<add> mYogaNode = original.mYogaNode.clone();
<add> } catch (CloneNotSupportedException e) {
<add> // it should never happen
<add> throw new IllegalArgumentException();
<add> }
<add> }
<add>
<add> public ReactShadowNodeImpl mutableCopy() {
<add> return new ReactShadowNodeImpl(this);
<add> }
<add>
<ide> /**
<ide> * Nodes that return {@code true} will be treated as "virtual" nodes. That is, nodes that are not
<ide> * mapped into native views (e.g. nested text node). By default this method returns {@code false}.
<ide> public final void setRootNode(ReactShadowNodeImpl rootNode) {
<ide> mRootNode = rootNode;
<ide> }
<ide>
<add> @Override
<add> public void setRootTag(int rootTag) {
<add> mRootTag = rootTag;
<add> }
<add>
<ide> @Override
<ide> public final void setViewClassName(String viewClassName) {
<ide> mViewClassName = viewClassName;
<ide> public final ReactShadowNodeImpl removeNativeChildAt(int i) {
<ide> return removed;
<ide> }
<ide>
<add> @Override
<add> public final void removeAllChildren() {
<add> removeAllNativeChildren();
<add> mChildren.clear();
<add> }
<add>
<ide> @Override
<ide> public final void removeAllNativeChildren() {
<ide> if (mNativeChildren != null) {
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/YogaNodePool.java
<ide> public static ClearableSynchronizedPool<YogaNode> get() {
<ide>
<ide> synchronized (sInitLock) {
<ide> if (sPool == null) {
<del> sPool = new ClearableSynchronizedPool<YogaNode>(1024);
<add> sPool = new ClearableSynchronizedPool<>(1024);
<ide> }
<ide> return sPool;
<ide> } | 3 |
Python | Python | fix a potential variable misuse bug | 4d0b23eccc23718e420dfd29b2023ecf90300036 | <ide><path>numpy/distutils/misc_util.py
<ide> def colour_text(s, fg=None, bg=None, bold=False):
<ide> fgcode = 30 + _colour_codes.get(fg.lower(), 0)
<ide> seq.append(str(fgcode))
<ide> if bg:
<del> bgcode = 40 + _colour_codes.get(fg.lower(), 7)
<add> bgcode = 40 + _colour_codes.get(bg.lower(), 7)
<ide> seq.append(str(bgcode))
<ide> if seq:
<ide> return '\x1b[%sm%s\x1b[0m' % (';'.join(seq), s) | 1 |
Text | Text | create model card for tblard/allocine | ccd26c2862efc41d4ffb86c0bcc4f0296a79e250 | <ide><path>model_cards/tblard/tf-allocine/README.md
<add>---
<add>language: french
<add>---
<add>
<add># tf-allociné
<add>
<add>A french sentiment analysis model, based on [CamemBERT](https://camembert-model.fr/), and finetuned on a large-scale dataset scraped from [Allociné.fr](http://www.allocine.fr/) user reviews.
<add>
<add>## Results
<add>
<add>| Validation Accuracy | Validation F1-Score | Test Accuracy | Test F1-Score |
<add>|--------------------:| -------------------:| -------------:|--------------:|
<add>| 97.39 | 97.36 | 97.44 | 97.34 |
<add>
<add>The dataset and the evaluation code are available on [this repo](https://github.com/TheophileBlard/french-sentiment-analysis-with-bert).
<add>
<add>## Usage
<add>
<add>```python
<add>from transformers import AutoTokenizer, TFAutoModelForSequenceClassification
<add>from transformers import pipeline
<add>
<add>tokenizer = AutoTokenizer.from_pretrained("tblard/tf-allocine")
<add>model = TFAutoModelForSequenceClassification.from_pretrained("tblard/tf-allocine")
<add>
<add>nlp = pipeline('sentiment-analysis', model=model, tokenizer=tokenizer)
<add>
<add>print(nlp("Alad'2 est clairement le meilleur film de l'année 2018.")) # POSITIVE
<add>print(nlp("Juste whoaaahouuu !")) # POSITIVE
<add>print(nlp("NUL...A...CHIER ! FIN DE TRANSMISSION.")) # NEGATIVE
<add>print(nlp("Je m'attendais à mieux de la part de Franck Dubosc !")) # NEGATIVE
<add>```
<add>
<add>## Author
<add>
<add>Théophile Blard – :email: theophile.blard@gmail.com
<add>
<add>If you use this work (code, model or dataset), please cite as:
<add>
<add>> Théophile Blard, French sentiment analysis with BERT, (2020), GitHub repository, <https://github.com/TheophileBlard/french-sentiment-analysis-with-bert> | 1 |
Javascript | Javascript | reduce the abort timeout for simple focus testing | 928c580a1a5fb328604ee94e33f440a326754ae1 | <ide><path>test/data/testrunner.js
<ide> var oldCacheLength = 0,
<ide>
<ide> // Max time for stop() and asyncTest() until it aborts test
<ide> // and start()'s the next test.
<del>QUnit.config.testTimeout = 12e4; // 2 minutes
<add>QUnit.config.testTimeout = 60e3; // 1 minute
<ide>
<ide> // Enforce an "expect" argument or expect() call in all test bodies.
<ide> QUnit.config.requireExpects = true;
<ide><path>test/unit/event.js
<ide> QUnit.test( "preventDefault() on focusin does not throw exception", function( as
<ide> done();
<ide> done = null;
<ide> } );
<del>
<del> // This test can be unreliable in CI... try two methods to prompt a focusin event
<del> // and set an abort timeout
<ide> input.trigger( "focus" );
<del> try {
<del> input[ 0 ].focus();
<del> } catch ( e ) {}
<add>
<add> // DOM focus is unreliable in TestSwarm CI; set an abort timeout
<ide> setTimeout( function() {
<ide> if ( !done ) {
<ide> return;
<ide> }
<ide> assert.ok( true, "Did not intercept focusin" );
<ide> done();
<ide> done = null;
<del> }, QUnit.config.testTimeout / 2 || 1000 );
<add> }, QUnit.config.testTimeout / 4 || 1000 );
<ide> } );
<ide>
<ide> QUnit.test( "Donor event interference", function( assert ) { | 2 |
PHP | PHP | filter public properties | fa36872d817112c72d96ad5d5f45c901d262fe5f | <ide><path>src/Illuminate/Broadcasting/BroadcastEvent.php
<ide>
<ide> use Pusher;
<ide> use ReflectionClass;
<add>use ReflectionProperty;
<ide> use Illuminate\Contracts\Queue\Job;
<ide> use Illuminate\Contracts\Support\Arrayable;
<ide> use Illuminate\Contracts\Broadcasting\Broadcaster;
<ide> protected function getPayloadFromEvent($event)
<ide>
<ide> $payload = [];
<ide>
<del> foreach ((new ReflectionClass($event))->getProperties() as $property) {
<del> if ($property->isPublic()) {
<del> $payload[$property->getName()] = $this->formatProperty($property->getValue($event));
<del> }
<add> foreach ((new ReflectionClass($event))->getProperties(ReflectionProperty::IS_PUBLIC) as $property) {
<add> $payload[$property->getName()] = $this->formatProperty($property->getValue($event));
<ide> }
<ide>
<ide> return $payload; | 1 |
PHP | PHP | update doc block | 9ed095dc2d0c254e6558b514ea285b767407034b | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function save(array $options = [])
<ide> }
<ide>
<ide> /**
<del> * Save the model to the database using transaction.
<add> * Save the model to the database within a transaction.
<ide> *
<ide> * @param array $options
<ide> * @return bool | 1 |
Python | Python | fix indentation weirdness in gpt-2 example | 14b1f719f4c9860a3df8663e7e4ecac25182034a | <ide><path>examples/run_gpt2.py
<ide> def run_model():
<ide> print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
<ide> print(text)
<ide> print("=" * 80)
<del> if args.unconditional:
<del> generated = 0
<del> for _ in range(args.nsamples // args.batch_size):
<del> out = sample_sequence(
<del> model=model, length=args.length,
<del> context=None,
<del> start_token=enc.encoder['<|endoftext|>'],
<del> batch_size=args.batch_size,
<del> temperature=args.temperature, top_k=args.top_k, device=device
<del> )
<del> out = out[:,1:].tolist()
<del> for i in range(args.batch_size):
<del> generated += 1
<del> text = enc.decode(out[i])
<del> print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
<del> print(text)
<del> print("=" * 80)
<del> if args.unconditional:
<del> break
<add> else:
<add> generated = 0
<add> for _ in range(args.nsamples // args.batch_size):
<add> out = sample_sequence(
<add> model=model, length=args.length,
<add> context=None,
<add> start_token=enc.encoder['<|endoftext|>'],
<add> batch_size=args.batch_size,
<add> temperature=args.temperature, top_k=args.top_k, device=device
<add> )
<add> out = out[:,1:].tolist()
<add> for i in range(args.batch_size):
<add> generated += 1
<add> text = enc.decode(out[i])
<add> print("=" * 40 + " SAMPLE " + str(generated) + " " + "=" * 40)
<add> print(text)
<add> print("=" * 80)
<ide>
<ide> if __name__ == '__main__':
<ide> run_model() | 1 |
Text | Text | fix dead links in readme for rn-tester | 1c21a112a81bd58356fefee7556f425ab47446c2 | <ide><path>ReactAndroid/README.md
<ide> # Building React Native for Android
<ide>
<del>See the [docs on the website](https://reactnative.dev/docs/building-from-source.html#android).
<add>See the [docs on the wiki](https://github.com/facebook/react-native/wiki/Building-from-source#prerequisites).
<ide>
<ide> # Running tests
<ide>
<ide><path>packages/rn-tester/README.md
<ide> Both macOS and Xcode are required.
<ide>
<ide> ### Running on Android
<ide>
<del>You'll need to have all the [prerequisites](https://github.com/facebook/react-native/tree/master/ReactAndroid#prerequisites) (SDK, NDK) for Building React Native installed.
<add>You'll need to have all the [prerequisites](https://github.com/facebook/react-native/wiki/Building-from-source#prerequisites) (SDK, NDK) for Building React Native installed.
<ide>
<ide> Start an Android emulator.
<ide> | 2 |
PHP | PHP | add support for closures to file cache driver | 715bed748d7a9781a735b609ce9f6ff227709220 | <ide><path>system/cache/driver/file.php
<ide> public function get($key, $default = null)
<ide>
<ide> if ( ! file_exists(APP_PATH.'storage/cache/'.$key))
<ide> {
<del> return $default;
<add> return is_callable($default) ? call_user_func($default) : $default;
<ide> }
<ide>
<ide> $cache = file_get_contents(APP_PATH.'storage/cache/'.$key);
<ide>
<del> // --------------------------------------------------
<del> // Has the cache expired? The UNIX expiration time
<del> // is stored at the beginning of the file.
<del> // --------------------------------------------------
<add> // Has the cache expired? The UNIX expiration time is stored at the beginning of the file.
<ide> if (time() >= substr($cache, 0, 10))
<ide> {
<ide> $this->forget($key);
<ide>
<del> return $default;
<add> return is_callable($default) ? call_user_func($default) : $default;
<ide> }
<ide>
<ide> return $this->items[$key] = unserialize(substr($cache, 10)); | 1 |
Text | Text | move stefanmb to collaborator emeriti list | be6b1a2b3a5e01491b829ac9a5ed7602807af2de | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Steven R Loomis** <srloomis@us.ibm.com>
<ide> * [starkwang](https://github.com/starkwang) -
<ide> **Weijia Wang** <starkwang@126.com>
<del>* [stefanmb](https://github.com/stefanmb) -
<del>**Stefan Budeanu** <stefan@budeanu.com>
<ide> * [targos](https://github.com/targos) -
<ide> **Michaël Zasso** <targos@protonmail.com> (he/him)
<ide> * [thefourtheye](https://github.com/thefourtheye) -
<ide> For information about the governance of the Node.js project, see
<ide> **Robert Kowalski** <rok@kowalski.gd>
<ide> * [romankl](https://github.com/romankl) -
<ide> **Roman Klauke** <romaaan.git@gmail.com>
<add>* [stefanmb](https://github.com/stefanmb) -
<add>**Stefan Budeanu** <stefan@budeanu.com>
<ide> * [tellnes](https://github.com/tellnes) -
<ide> **Christian Tellnes** <christian@tellnes.no>
<ide> * [tunniclm](https://github.com/tunniclm) - | 1 |
Javascript | Javascript | remove unneeded variable | 1bea469db0bdedd99fcc7257aa41f794c3fa4093 | <ide><path>src/backend/renderer.js
<ide> export function attach(
<ide> let pendingOperationsQueue: Array<Uint32Array> | null = [];
<ide> let pendingStringTable: Map<string, number> = new Map();
<ide> let pendingStringTableLength = 0;
<del> let pendingStringTableCounter = 0;
<ide>
<ide> function pushOperation(op: number): void {
<ide> if (__DEV__) {
<ide> export function attach(
<ide> pendingSimulatedUnmountedIDs.length = 0;
<ide> pendingStringTable.clear();
<ide> pendingStringTableLength = 0;
<del> pendingStringTableCounter = 0;
<ide> }
<ide>
<ide> function getStringID(str: string | null): number {
<ide> export function attach(
<ide> if (existingID !== undefined) {
<ide> return existingID;
<ide> }
<del> let id = ++pendingStringTableCounter;
<add> const id = pendingStringTable.size + 1;
<ide> pendingStringTable.set(str, id);
<ide> // The string table total length needs to account
<ide> // both for the string length, and for the array item | 1 |
Ruby | Ruby | use block instead passing as argument | 9aaa3111b0b795acdb9b7035bbaa50565c7284aa | <ide><path>railties/test/application/loading_test.rb
<ide> class Post < ActiveRecord::Base
<ide> test "models without table do not panic on scope definitions when loaded" do
<ide> app_file "app/models/user.rb", <<-MODEL
<ide> class User < ActiveRecord::Base
<del> default_scope where(published: true)
<add> default_scope { where(published: true) }
<ide> end
<ide> MODEL
<ide> | 1 |
Javascript | Javascript | use faster variant for rss in test-vm-memleak.js | 2ceb44120b0744793081b62ede7026365b1fb2f2 | <ide><path>test/pummel/test-vm-memleak.js
<ide> const interval = setInterval(function() {
<ide> } catch {
<ide> }
<ide>
<del> const rss = process.memoryUsage().rss;
<add> const rss = process.memoryUsage.rss();
<ide> assert.ok(rss < 64 * 1024 * 1024,
<ide> `memory usage: ${Math.round(rss / (1024 * 1024))}Mb`);
<ide> | 1 |
PHP | PHP | add deprecated tag | 61cdeeec513afa46423a1aa21978945abeae777d | <ide><path>src/Form/Form.php
<ide> protected function _buildSchema(Schema $schema)
<ide> *
<ide> * @param \Cake\Validation\Validator|null $validator The validator to set, or null.
<ide> * @return \Cake\Validation\Validator the validator instance.
<add> * @deprecated 3.6.0 Use Form::getValidator()/setValidator() instead.
<ide> */
<ide> public function validator(Validator $validator = null)
<ide> {
<ide> public function validator(Validator $validator = null)
<ide> *
<ide> * @param \Cake\Validation\Validator $validator The validator to customize.
<ide> * @return \Cake\Validation\Validator The validator to use.
<add> * @deprecated 3.6.0 Use Form::getValidator()/setValidator() and buildValidator() instead.
<ide> */
<ide> protected function _buildValidator(Validator $validator)
<ide> { | 1 |
Text | Text | update examples template | 872755aee5c141efbdabd4fe2a565079c6c53e17 | <ide><path>examples/agressive-merging/README.md
<ide> module.exports = {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 06f18f1663d1b6555aff
<del>Version: webpack 2.1.0-beta.22
<del>Time: 169ms
<add>Hash: 06a73dcf91032a0ba5a5
<add>Version: webpack 2.1.0-beta.25
<add>Time: 147ms
<ide> Asset Size Chunks Chunk Names
<del> 0.chunk.js 5.76 kB 0 [emitted]
<add> 0.chunk.js 5.75 kB 0 [emitted]
<ide> 1.chunk.js 397 bytes 1 [emitted]
<ide> pageB.bundle.js 5.98 kB 2 [emitted] pageB
<ide> pageA.bundle.js 5.95 kB 3 [emitted] pageA
<ide> pageC.bundle.js 5.75 kB 4 [emitted] pageC
<ide> Entrypoint pageA = pageA.bundle.js
<ide> Entrypoint pageB = pageB.bundle.js
<ide> Entrypoint pageC = pageC.bundle.js
<del>chunk {0} 0.chunk.js 5.55 kB {3} {2} [rendered]
<add>chunk {0} 0.chunk.js 5.54 kB {3} {2} [rendered]
<ide> > aggressive-merge [3] ./pageA.js 1:0-3:2
<ide> > aggressive-merge [4] ./pageB.js 1:0-3:2
<del> [2] ./common.js 5.55 kB {0} [built]
<add> [2] ./common.js 5.54 kB {0} [built]
<ide> amd require ./common [3] ./pageA.js 1:0-3:2
<ide> amd require ./common [4] ./pageB.js 1:0-3:2
<ide> chunk {1} 1.chunk.js 42 bytes {4} [rendered]
<ide> chunk {1} 1.chunk.js 42 bytes {4} [rendered]
<ide> [1] ./b.js 21 bytes {1} {2} [built]
<ide> cjs require ./b [4] ./pageB.js 2:8-22
<ide> cjs require ./b [5] ./pageC.js 2:17-31
<del>chunk {2} pageB.bundle.js (pageB) 92 bytes [entry] [rendered]
<add>chunk {2} pageB.bundle.js (pageB) 90 bytes [entry] [rendered]
<ide> > pageB [4] ./pageB.js
<ide> [1] ./b.js 21 bytes {1} {2} [built]
<ide> cjs require ./b [4] ./pageB.js 2:8-22
<ide> cjs require ./b [5] ./pageC.js 2:17-31
<del> [4] ./pageB.js 71 bytes {2} [built]
<del>chunk {3} pageA.bundle.js (pageA) 92 bytes [entry] [rendered]
<add> [4] ./pageB.js 69 bytes {2} [built]
<add>chunk {3} pageA.bundle.js (pageA) 90 bytes [entry] [rendered]
<ide> > pageA [3] ./pageA.js
<ide> [0] ./a.js 21 bytes {1} {3} [built]
<ide> cjs require ./a [3] ./pageA.js 2:8-22
<ide> amd require ./a [5] ./pageC.js 1:0-3:2
<del> [3] ./pageA.js 71 bytes {3} [built]
<del>chunk {4} pageC.bundle.js (pageC) 70 bytes [entry] [rendered]
<add> [3] ./pageA.js 69 bytes {3} [built]
<add>chunk {4} pageC.bundle.js (pageC) 68 bytes [entry] [rendered]
<ide> > pageC [5] ./pageC.js
<del> [5] ./pageC.js 70 bytes {4} [built]
<add> [5] ./pageC.js 68 bytes {4} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 06f18f1663d1b6555aff
<del>Version: webpack 2.1.0-beta.22
<del>Time: 469ms
<add>Hash: 06a73dcf91032a0ba5a5
<add>Version: webpack 2.1.0-beta.25
<add>Time: 417ms
<ide> Asset Size Chunks Chunk Names
<ide> 0.chunk.js 75 bytes 0 [emitted]
<ide> 1.chunk.js 78 bytes 1 [emitted]
<ide> pageC.bundle.js 1.43 kB 4 [emitted] pageC
<ide> Entrypoint pageA = pageA.bundle.js
<ide> Entrypoint pageB = pageB.bundle.js
<ide> Entrypoint pageC = pageC.bundle.js
<del>chunk {0} 0.chunk.js 5.55 kB {3} {2} [rendered]
<add>chunk {0} 0.chunk.js 5.54 kB {3} {2} [rendered]
<ide> > aggressive-merge [3] ./pageA.js 1:0-3:2
<ide> > aggressive-merge [4] ./pageB.js 1:0-3:2
<del> [2] ./common.js 5.55 kB {0} [built]
<add> [2] ./common.js 5.54 kB {0} [built]
<ide> amd require ./common [3] ./pageA.js 1:0-3:2
<ide> amd require ./common [4] ./pageB.js 1:0-3:2
<ide> chunk {1} 1.chunk.js 42 bytes {4} [rendered]
<ide> chunk {1} 1.chunk.js 42 bytes {4} [rendered]
<ide> [1] ./b.js 21 bytes {1} {2} [built]
<ide> cjs require ./b [4] ./pageB.js 2:8-22
<ide> cjs require ./b [5] ./pageC.js 2:17-31
<del>chunk {2} pageB.bundle.js (pageB) 92 bytes [entry] [rendered]
<add>chunk {2} pageB.bundle.js (pageB) 90 bytes [entry] [rendered]
<ide> > pageB [4] ./pageB.js
<ide> [1] ./b.js 21 bytes {1} {2} [built]
<ide> cjs require ./b [4] ./pageB.js 2:8-22
<ide> cjs require ./b [5] ./pageC.js 2:17-31
<del> [4] ./pageB.js 71 bytes {2} [built]
<del>chunk {3} pageA.bundle.js (pageA) 92 bytes [entry] [rendered]
<add> [4] ./pageB.js 69 bytes {2} [built]
<add>chunk {3} pageA.bundle.js (pageA) 90 bytes [entry] [rendered]
<ide> > pageA [3] ./pageA.js
<ide> [0] ./a.js 21 bytes {1} {3} [built]
<ide> cjs require ./a [3] ./pageA.js 2:8-22
<ide> amd require ./a [5] ./pageC.js 1:0-3:2
<del> [3] ./pageA.js 71 bytes {3} [built]
<del>chunk {4} pageC.bundle.js (pageC) 70 bytes [entry] [rendered]
<add> [3] ./pageA.js 69 bytes {3} [built]
<add>chunk {4} pageC.bundle.js (pageC) 68 bytes [entry] [rendered]
<ide> > pageC [5] ./pageC.js
<del> [5] ./pageC.js 70 bytes {4} [built]
<add> [5] ./pageC.js 68 bytes {4} [built]
<ide> ```
<ide><path>examples/chunkhash/README.md
<ide> module.exports = {
<ide>
<ide> <!-- inlined minimized file "manifest.[chunkhash].js" -->
<ide> <script>
<del>!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,i,f,l=0,s=[];l<t.length;l++)i=t[l],o[i]&&s.push(o[i][0]),o[i]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);for(n&&n(t,a,c);s.length;)s.shift()();if(c)for(l=0;l<c.length;l++)f=r(r.s=c[l]);return f};var t={},o={4:0};r.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(c);var r=o[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return Promise.resolve();if(o[e])return o[e][2];var t=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,a.src=r.p+""+{0:"d8d9958181fae97ba27d",1:"36e4c03aa77bd58b0abc",2:"1437a149014dcc6cefbb",3:"388c9e54384a6129e3bd"}[e]+".js";var c=setTimeout(n,12e4);a.onerror=a.onload=n,t.appendChild(a);var u=new Promise(function(r,n){o[e]=[r,n]});return o[e][2]=u},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,r,n){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="js/",r.oe=function(e){throw console.error(e),e}}([]);
<add>!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,i,f,l=0,s=[];l<t.length;l++)i=t[l],o[i]&&s.push(o[i][0]),o[i]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);for(n&&n(t,a,c);s.length;)s.shift()();if(c)for(l=0;l<c.length;l++)f=r(r.s=c[l]);return f};var t={},o={4:0};r.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(c);var r=o[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return Promise.resolve();if(o[e])return o[e][2];var t=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,a.src=r.p+""+{0:"ecd2b16a48d8b92daf31",1:"3ab6307df46b05a2e3c3",2:"af804db11849c698ecbd",3:"9b0423f36b542b42b6a3"}[e]+".js";var c=setTimeout(n,12e4);a.onerror=a.onload=n,t.appendChild(a);var u=new Promise(function(r,n){o[e]=[r,n]});return o[e][2]=u},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,r,n){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="js/",r.oe=function(e){throw console.error(e),e}}([]);
<ide> </script>
<ide>
<ide> <!-- optional when using the CommonChunkPlugin for vendor modules -->
<ide> __webpack_require__.e/* System.import */(0).then(__webpack_require__.bind(null,
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: a04360b4818d1203b9bf
<del>Version: webpack 2.1.0-beta.22
<del>Time: 150ms
<add>Hash: 02d122739ca3698772e8
<add>Version: webpack 2.1.0-beta.25
<add>Time: 121ms
<ide> Asset Size Chunks Chunk Names
<del>d8d9958181fae97ba27d.js 237 bytes 0, 4 [emitted]
<del>36e4c03aa77bd58b0abc.js 243 bytes 1, 4 [emitted]
<del> common.chunkhash.js 638 bytes 2, 4 [emitted] common
<del> main.chunkhash.js 577 bytes 3, 4 [emitted] main
<add>ecd2b16a48d8b92daf31.js 236 bytes 0, 4 [emitted]
<add>3ab6307df46b05a2e3c3.js 242 bytes 1, 4 [emitted]
<add> common.chunkhash.js 636 bytes 2, 4 [emitted] common
<add> main.chunkhash.js 573 bytes 3, 4 [emitted] main
<ide> manifest.chunkhash.js 5.45 kB 4 [emitted] manifest
<del>Entrypoint common = manifest.chunkhash.js common.chunkhash.js
<ide> Entrypoint main = manifest.chunkhash.js common.chunkhash.js main.chunkhash.js
<del>chunk {0} d8d9958181fae97ba27d.js 29 bytes {3} [rendered]
<add>Entrypoint common = manifest.chunkhash.js common.chunkhash.js
<add>chunk {0} ecd2b16a48d8b92daf31.js 28 bytes {3} [rendered]
<ide> > [3] ./example.js 4:0-25
<del> [2] ./async2.js 29 bytes {0} [built]
<add> [2] ./async2.js 28 bytes {0} [built]
<ide> System.import ./async2 [3] ./example.js 4:0-25
<del>chunk {1} 36e4c03aa77bd58b0abc.js 29 bytes {3} [rendered]
<add>chunk {1} 3ab6307df46b05a2e3c3.js 28 bytes {3} [rendered]
<ide> > [3] ./example.js 3:0-25
<del> [1] ./async1.js 29 bytes {1} [built]
<add> [1] ./async1.js 28 bytes {1} [built]
<ide> System.import ./async1 [3] ./example.js 3:0-25
<del>chunk {2} common.chunkhash.js (common) 97 bytes {4} [initial] [rendered]
<add>chunk {2} common.chunkhash.js (common) 95 bytes {4} [initial] [rendered]
<ide> > common [4] multi common
<del> [0] ./vendor.js 69 bytes {2} [built]
<add> [0] ./vendor.js 67 bytes {2} [built]
<add> [exports: default]
<ide> harmony import ./vendor [3] ./example.js 1:0-30
<ide> single entry ./vendor [4] multi common
<ide> [4] multi common 28 bytes {2} [built]
<del>chunk {3} main.chunkhash.js (main) 104 bytes {2} [initial] [rendered]
<add>chunk {3} main.chunkhash.js (main) 100 bytes {2} [initial] [rendered]
<ide> > main [3] ./example.js
<del> [3] ./example.js 104 bytes {3} [built]
<add> [3] ./example.js 100 bytes {3} [built]
<ide> chunk {4} manifest.chunkhash.js (manifest) 0 bytes [entry] [rendered]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: a04360b4818d1203b9bf
<del>Version: webpack 2.1.0-beta.22
<del>Time: 319ms
<add>Hash: 02d122739ca3698772e8
<add>Version: webpack 2.1.0-beta.25
<add>Time: 278ms
<ide> Asset Size Chunks Chunk Names
<del>d8d9958181fae97ba27d.js 40 bytes 0, 4 [emitted]
<del>36e4c03aa77bd58b0abc.js 39 bytes 1, 4 [emitted]
<del> common.chunkhash.js 108 bytes 2, 4 [emitted] common
<add>ecd2b16a48d8b92daf31.js 40 bytes 0, 4 [emitted]
<add>3ab6307df46b05a2e3c3.js 39 bytes 1, 4 [emitted]
<add> common.chunkhash.js 105 bytes 2, 4 [emitted] common
<ide> main.chunkhash.js 119 bytes 3, 4 [emitted] main
<ide> manifest.chunkhash.js 1.43 kB 4 [emitted] manifest
<del>Entrypoint common = manifest.chunkhash.js common.chunkhash.js
<ide> Entrypoint main = manifest.chunkhash.js common.chunkhash.js main.chunkhash.js
<del>chunk {0} d8d9958181fae97ba27d.js 29 bytes {3} [rendered]
<add>Entrypoint common = manifest.chunkhash.js common.chunkhash.js
<add>chunk {0} ecd2b16a48d8b92daf31.js 28 bytes {3} [rendered]
<ide> > [3] ./example.js 4:0-25
<del> [2] ./async2.js 29 bytes {0} [built]
<add> [2] ./async2.js 28 bytes {0} [built]
<ide> System.import ./async2 [3] ./example.js 4:0-25
<del>chunk {1} 36e4c03aa77bd58b0abc.js 29 bytes {3} [rendered]
<add>chunk {1} 3ab6307df46b05a2e3c3.js 28 bytes {3} [rendered]
<ide> > [3] ./example.js 3:0-25
<del> [1] ./async1.js 29 bytes {1} [built]
<add> [1] ./async1.js 28 bytes {1} [built]
<ide> System.import ./async1 [3] ./example.js 3:0-25
<del>chunk {2} common.chunkhash.js (common) 97 bytes {4} [initial] [rendered]
<add>chunk {2} common.chunkhash.js (common) 95 bytes {4} [initial] [rendered]
<ide> > common [4] multi common
<del> [0] ./vendor.js 69 bytes {2} [built]
<add> [0] ./vendor.js 67 bytes {2} [built]
<add> [exports: default]
<ide> harmony import ./vendor [3] ./example.js 1:0-30
<ide> single entry ./vendor [4] multi common
<ide> [4] multi common 28 bytes {2} [built]
<del>chunk {3} main.chunkhash.js (main) 104 bytes {2} [initial] [rendered]
<add>chunk {3} main.chunkhash.js (main) 100 bytes {2} [initial] [rendered]
<ide> > main [3] ./example.js
<del> [3] ./example.js 104 bytes {3} [built]
<add> [3] ./example.js 100 bytes {3} [built]
<ide> chunk {4} manifest.chunkhash.js (manifest) 0 bytes [entry] [rendered]
<ide> ```
<ide>\ No newline at end of file
<ide><path>examples/code-splitted-css-bundle/README.md
<ide> body {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: ea390704da12f166e22c
<del>Version: webpack 2.1.0-beta.22
<del>Time: 1209ms
<add>Hash: e81a3bd9b061e4a4628f
<add>Version: webpack 2.1.0-beta.25
<add>Time: 794ms
<ide> Asset Size Chunks Chunk Names
<ide> ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
<del> 0.js 1.04 kB 0 [emitted]
<del> output.js 7.64 kB 1 [emitted] main
<del> style.css 71 bytes 1 [emitted] main
<add> 0.output.js 1.03 kB 0 [emitted]
<add> output.js 7.65 kB 1 [emitted] main
<add> style.css 68 bytes 1 [emitted] main
<ide> Entrypoint main = output.js style.css
<del>chunk {0} 0.js 337 bytes {1} [rendered]
<add>chunk {0} 0.output.js 330 bytes {1} [rendered]
<ide> > [2] ./example.js 2:0-20
<del> [1] ./chunk.js 26 bytes {0} [built]
<add> [1] ./chunk.js 25 bytes {0} [built]
<ide> amd require ./chunk [2] ./example.js 2:0-20
<del> [4] ./style2.css 229 bytes {0} [built]
<add> [4] ./style2.css 223 bytes {0} [built]
<ide> cjs require ./style2.css [1] ./chunk.js 1:0-23
<ide> [5] ./image2.png 82 bytes {0} [built]
<del> cjs require ./image2.png [4] ./style2.css 6:58-81
<add> cjs require ./image2.png [4] ./style2.css 6:56-79
<ide> chunk {1} output.js, style.css (main) 1.59 kB [entry] [rendered]
<ide> > main [2] ./example.js
<ide> [0] ./style.css 41 bytes {1} [built]
<ide> cjs require ./style.css [2] ./example.js 1:0-22
<del> [2] ./example.js 48 bytes {1} [built]
<add> [2] ./example.js 46 bytes {1} [built]
<ide> [3] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {1} [built]
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [4] ./style2.css 1:27-85
<ide> Child extract-text-webpack-plugin:
<ide> Entrypoint undefined = extract-text-webpack-plugin-output-filename
<del> chunk {0} extract-text-webpack-plugin-output-filename 1.82 kB [entry] [rendered]
<add> chunk {0} extract-text-webpack-plugin-output-filename 1.81 kB [entry] [rendered]
<ide> > [2] (webpack)/~/css-loader!./style.css
<ide> [0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
<ide> [1] ./image.png 82 bytes {0} [built]
<del> cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
<del> [2] (webpack)/~/css-loader!./style.css 228 bytes {0} [built]
<add> cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:56-78
<add> [2] (webpack)/~/css-loader!./style.css 222 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: b1ed2cdf881c1aaafd05
<del>Version: webpack 2.1.0-beta.22
<del>Time: 1580ms
<add>Hash: 791614886036b3a69264
<add>Version: webpack 2.1.0-beta.25
<add>Time: 1183ms
<ide> Asset Size Chunks Chunk Names
<ide> ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
<del> 0.js 201 bytes 0 [emitted]
<add> 0.output.js 201 bytes 0 [emitted]
<ide> output.js 1.86 kB 1 [emitted] main
<ide> style.css 61 bytes 1 [emitted] main
<ide> Entrypoint main = output.js style.css
<del>chunk {0} 0.js 320 bytes {1} [rendered]
<add>chunk {0} 0.output.js 319 bytes {1} [rendered]
<ide> > [2] ./example.js 2:0-20
<del> [1] ./chunk.js 26 bytes {0} [built]
<add> [1] ./chunk.js 25 bytes {0} [built]
<ide> amd require ./chunk [2] ./example.js 2:0-20
<ide> [4] ./style2.css 212 bytes {0} [built]
<ide> cjs require ./style2.css [1] ./chunk.js 1:0-23
<ide> chunk {1} output.js, style.css (main) 1.59 kB [entry] [rendered]
<ide> > main [2] ./example.js
<ide> [0] ./style.css 41 bytes {1} [built]
<ide> cjs require ./style.css [2] ./example.js 1:0-22
<del> [2] ./example.js 48 bytes {1} [built]
<add> [2] ./example.js 46 bytes {1} [built]
<ide> [3] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {1} [built]
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [4] ./style2.css 1:27-85
<ide> Child extract-text-webpack-plugin:
<ide><path>examples/code-splitted-require.context-amd/README.md
<ide> getTemplate("b", function(b) {
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> getTemplate("b", function(b) {
<ide> /******/ ]);
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([0],[
<ide> module.exports = function() {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: ab644f7e6c7bccd65473
<del>Version: webpack 2.1.0-beta.22
<del>Time: 173ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 1.83 kB 0 [emitted]
<del>output.js 5.93 kB 1 [emitted] main
<add>Hash: 3a8c6c952f4b69614cc3
<add>Version: webpack 2.1.0-beta.25
<add>Time: 132ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 1.83 kB 0 [emitted]
<add> output.js 5.93 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 463 bytes {1} [rendered]
<add>chunk {0} 0.output.js 457 bytes {1} [rendered]
<ide> > [1] ./example.js 2:1-4:3
<ide> [0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
<ide> amd require context ../require.context/templates [1] ./example.js 2:1-4:3
<del> [2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
<add> [2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a [0] ../require.context/templates ^\.\/.*$
<ide> context element ./a.js [0] ../require.context/templates ^\.\/.*$
<del> [3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
<add> [3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b [0] ../require.context/templates ^\.\/.*$
<ide> context element ./b.js [0] ../require.context/templates ^\.\/.*$
<del> [4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
<add> [4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c [0] ../require.context/templates ^\.\/.*$
<ide> context element ./c.js [0] ../require.context/templates ^\.\/.*$
<del>chunk {1} output.js (main) 261 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 251 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<del> [1] ./example.js 261 bytes {1} [built]
<add> [1] ./example.js 251 bytes {1} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: ab644f7e6c7bccd65473
<del>Version: webpack 2.1.0-beta.22
<del>Time: 363ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 544 bytes 0 [emitted]
<del>output.js 1.51 kB 1 [emitted] main
<add>Hash: 3a8c6c952f4b69614cc3
<add>Version: webpack 2.1.0-beta.25
<add>Time: 297ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 544 bytes 0 [emitted]
<add> output.js 1.51 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 463 bytes {1} [rendered]
<add>chunk {0} 0.output.js 457 bytes {1} [rendered]
<ide> > [1] ./example.js 2:1-4:3
<ide> [0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
<ide> amd require context ../require.context/templates [1] ./example.js 2:1-4:3
<del> [2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
<del> context element ./a.js [0] ../require.context/templates ^\.\/.*$
<add> [2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a [0] ../require.context/templates ^\.\/.*$
<del> [3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
<add> context element ./a.js [0] ../require.context/templates ^\.\/.*$
<add> [3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b [0] ../require.context/templates ^\.\/.*$
<ide> context element ./b.js [0] ../require.context/templates ^\.\/.*$
<del> [4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
<add> [4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c [0] ../require.context/templates ^\.\/.*$
<ide> context element ./c.js [0] ../require.context/templates ^\.\/.*$
<del>chunk {1} output.js (main) 261 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 251 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<del> [1] ./example.js 261 bytes {1} [built]
<add> [1] ./example.js 251 bytes {1} [built]
<ide> ```
<ide><path>examples/code-splitted-require.context-amd/template.md
<ide> {{js/output.js}}
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<del>{{js/0.js}}
<add>{{js/0.output.js}}
<ide> ```
<ide>
<ide> # Info
<ide><path>examples/code-splitted-require.context/README.md
<ide> getTemplate("b", function(b) {
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> getTemplate("b", function(b) {
<ide> /******/ ]);
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([0],[
<ide> module.exports = function() {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 58b87ddaf3b95ac3e974
<del>Version: webpack 2.1.0-beta.22
<del>Time: 165ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 1.83 kB 0 [emitted]
<del>output.js 5.86 kB 1 [emitted] main
<add>Hash: 7ed28e2af847957ed18b
<add>Version: webpack 2.1.0-beta.25
<add>Time: 152ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 1.83 kB 0 [emitted]
<add> output.js 5.86 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 463 bytes {1} [rendered]
<add>chunk {0} 0.output.js 457 bytes {1} [rendered]
<ide> > [1] ./example.js 2:1-4:3
<ide> [0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
<ide> cjs require context ../require.context/templates [1] ./example.js 3:11-64
<del> [2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
<add> [2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a [0] ../require.context/templates ^\.\/.*$
<ide> context element ./a.js [0] ../require.context/templates ^\.\/.*$
<del> [3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
<add> [3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b [0] ../require.context/templates ^\.\/.*$
<ide> context element ./b.js [0] ../require.context/templates ^\.\/.*$
<del> [4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
<add> [4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c [0] ../require.context/templates ^\.\/.*$
<ide> context element ./c.js [0] ../require.context/templates ^\.\/.*$
<del>chunk {1} output.js (main) 276 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 266 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<del> [1] ./example.js 276 bytes {1} [built]
<add> [1] ./example.js 266 bytes {1} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 58b87ddaf3b95ac3e974
<del>Version: webpack 2.1.0-beta.22
<del>Time: 352ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 544 bytes 0 [emitted]
<del>output.js 1.48 kB 1 [emitted] main
<add>Hash: 7ed28e2af847957ed18b
<add>Version: webpack 2.1.0-beta.25
<add>Time: 292ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 544 bytes 0 [emitted]
<add> output.js 1.48 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 463 bytes {1} [rendered]
<add>chunk {0} 0.output.js 457 bytes {1} [rendered]
<ide> > [1] ./example.js 2:1-4:3
<ide> [0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
<ide> cjs require context ../require.context/templates [1] ./example.js 3:11-64
<del> [2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
<add> [2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a [0] ../require.context/templates ^\.\/.*$
<ide> context element ./a.js [0] ../require.context/templates ^\.\/.*$
<del> [3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
<add> [3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b [0] ../require.context/templates ^\.\/.*$
<ide> context element ./b.js [0] ../require.context/templates ^\.\/.*$
<del> [4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
<add> [4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c [0] ../require.context/templates ^\.\/.*$
<ide> context element ./c.js [0] ../require.context/templates ^\.\/.*$
<del>chunk {1} output.js (main) 276 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 266 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<del> [1] ./example.js 276 bytes {1} [built]
<add> [1] ./example.js 266 bytes {1} [built]
<ide> ```
<ide><path>examples/code-splitted-require.context/template.md
<ide> {{js/output.js}}
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<del>{{js/0.js}}
<add>{{js/0.output.js}}
<ide> ```
<ide>
<ide> # Info
<ide><path>examples/code-splitting-bundle-loader/README.md
<ide> module.exports = "It works";
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> __webpack_require__(/*! bundle!./file.js */ 0)(function(fileJsExports) {
<ide> /******/ ]);
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([0],{
<ide> module.exports = "It works";
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: d428fbce66ba11bdfd1c
<del>Version: webpack 2.1.0-beta.22
<del>Time: 177ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 228 bytes 0 [emitted]
<del>output.js 6.23 kB 1 [emitted] main
<add>Hash: 4934f608e3c1f4ceb008
<add>Version: webpack 2.1.0-beta.25
<add>Time: 145ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 228 bytes 0 [emitted]
<add> output.js 6.24 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 28 bytes {1} [rendered]
<add>chunk {0} 0.output.js 28 bytes {1} [rendered]
<ide> > [0] (webpack)/~/bundle-loader!./file.js 7:0-14:2
<ide> [2] ./file.js 28 bytes {0} [built]
<ide> cjs require !!./file.js [0] (webpack)/~/bundle-loader!./file.js 8:8-30
<del>chunk {1} output.js (main) 369 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 367 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<ide> [0] (webpack)/~/bundle-loader!./file.js 281 bytes {1} [built]
<ide> cjs require bundle!./file.js [1] ./example.js 1:0-27
<del> [1] ./example.js 88 bytes {1} [built]
<add> [1] ./example.js 86 bytes {1} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: d428fbce66ba11bdfd1c
<del>Version: webpack 2.1.0-beta.22
<del>Time: 352ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 58 bytes 0 [emitted]
<del>output.js 1.54 kB 1 [emitted] main
<add>Hash: 4934f608e3c1f4ceb008
<add>Version: webpack 2.1.0-beta.25
<add>Time: 304ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 58 bytes 0 [emitted]
<add> output.js 1.54 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 28 bytes {1} [rendered]
<add>chunk {0} 0.output.js 28 bytes {1} [rendered]
<ide> > [0] (webpack)/~/bundle-loader!./file.js 7:0-14:2
<ide> [2] ./file.js 28 bytes {0} [built]
<ide> cjs require !!./file.js [0] (webpack)/~/bundle-loader!./file.js 8:8-30
<del>chunk {1} output.js (main) 369 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 367 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<ide> [0] (webpack)/~/bundle-loader!./file.js 281 bytes {1} [built]
<ide> cjs require bundle!./file.js [1] ./example.js 1:0-27
<del> [1] ./example.js 88 bytes {1} [built]
<add> [1] ./example.js 86 bytes {1} [built]
<ide> ```
<ide><path>examples/code-splitting-bundle-loader/template.md
<ide> The bundle loader is used to create a wrapper module for `file.js` that loads th
<ide> {{js/output.js}}
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<del>{{js/0.js}}
<add>{{js/0.output.js}}
<ide> ```
<ide>
<ide> # Info
<ide><path>examples/code-splitting-harmony/README.md
<ide> Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: c450242747f06432d4fa
<del>Version: webpack 2.1.0-beta.22
<del>Time: 206ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 216 bytes 0 [emitted]
<del> 1.js 216 bytes 1 [emitted]
<del> 2.js 208 bytes 2 [emitted]
<del>output.js 6.95 kB 3 [emitted] main
<add>Hash: 4b129c7737355e51d1bd
<add>Version: webpack 2.1.0-beta.25
<add>Time: 151ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 216 bytes 0 [emitted]
<add>1.output.js 216 bytes 1 [emitted]
<add>2.output.js 208 bytes 2 [emitted]
<add> output.js 6.94 kB 3 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 13 bytes {3} [rendered]
<add>chunk {0} 0.output.js 13 bytes {3} [rendered]
<ide> [3] ./~/c/2.js 13 bytes {0} [optional] [built]
<ide> context element ./2 [1] ./~/c async ^\.\/.*$
<ide> context element ./2.js [1] ./~/c async ^\.\/.*$
<del>chunk {1} 1.js 13 bytes {3} [rendered]
<add>chunk {1} 1.output.js 13 bytes {3} [rendered]
<ide> [2] ./~/c/1.js 13 bytes {1} [optional] [built]
<ide> context element ./1 [1] ./~/c async ^\.\/.*$
<ide> context element ./1.js [1] ./~/c async ^\.\/.*$
<del>chunk {2} 2.js 11 bytes {3} [rendered]
<add>chunk {2} 2.output.js 11 bytes {3} [rendered]
<ide> > [5] ./example.js 3:0-18
<ide> [4] ./~/b.js 11 bytes {2} [built]
<ide> System.import b [5] ./example.js 3:0-18
<del>chunk {3} output.js (main) 440 bytes [entry] [rendered]
<add>chunk {3} output.js (main) 427 bytes [entry] [rendered]
<ide> > main [5] ./example.js
<ide> [0] ./~/a.js 11 bytes {3} [built]
<ide> [no exports used]
<ide> harmony import a [5] ./example.js 1:0-18
<ide> [1] ./~/c async ^\.\/.*$ 160 bytes {3} [built]
<ide> System.import context c [5] ./example.js 8:8-34
<del> [5] ./example.js 269 bytes {3} [built]
<add> [5] ./example.js 256 bytes {3} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: c450242747f06432d4fa
<del>Version: webpack 2.1.0-beta.22
<del>Time: 406ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 38 bytes 0 [emitted]
<del> 1.js 38 bytes 1 [emitted]
<del> 2.js 38 bytes 2 [emitted]
<del>output.js 1.82 kB 3 [emitted] main
<add>Hash: 4b129c7737355e51d1bd
<add>Version: webpack 2.1.0-beta.25
<add>Time: 321ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 38 bytes 0 [emitted]
<add>1.output.js 38 bytes 1 [emitted]
<add>2.output.js 38 bytes 2 [emitted]
<add> output.js 1.83 kB 3 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 13 bytes {3} [rendered]
<add>chunk {0} 0.output.js 13 bytes {3} [rendered]
<ide> [3] ./~/c/2.js 13 bytes {0} [optional] [built]
<ide> context element ./2 [1] ./~/c async ^\.\/.*$
<ide> context element ./2.js [1] ./~/c async ^\.\/.*$
<del>chunk {1} 1.js 13 bytes {3} [rendered]
<add>chunk {1} 1.output.js 13 bytes {3} [rendered]
<ide> [2] ./~/c/1.js 13 bytes {1} [optional] [built]
<ide> context element ./1 [1] ./~/c async ^\.\/.*$
<ide> context element ./1.js [1] ./~/c async ^\.\/.*$
<del>chunk {2} 2.js 11 bytes {3} [rendered]
<add>chunk {2} 2.output.js 11 bytes {3} [rendered]
<ide> > [5] ./example.js 3:0-18
<ide> [4] ./~/b.js 11 bytes {2} [built]
<ide> System.import b [5] ./example.js 3:0-18
<del>chunk {3} output.js (main) 440 bytes [entry] [rendered]
<add>chunk {3} output.js (main) 427 bytes [entry] [rendered]
<ide> > main [5] ./example.js
<ide> [0] ./~/a.js 11 bytes {3} [built]
<ide> [no exports used]
<ide> harmony import a [5] ./example.js 1:0-18
<ide> [1] ./~/c async ^\.\/.*$ 160 bytes {3} [built]
<ide> System.import context c [5] ./example.js 8:8-34
<del> [5] ./example.js 269 bytes {3} [built]
<add> [5] ./example.js 256 bytes {3} [built]
<ide> ```
<ide><path>examples/code-splitting/README.md
<ide> require.ensure(["c"], function(require) {
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> __webpack_require__.e/* nsure */(0).catch(function(err) { __webpack_require__.oe
<ide> /******/ ]);
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([0],[
<ide> webpackJsonp([0],[,,function(n,c){},function(n,c){}]);
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 2dea52960a4aca822def
<del>Version: webpack 2.1.0-beta.22
<del>Time: 217ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 407 bytes 0 [emitted]
<del>output.js 6.16 kB 1 [emitted] main
<add>Hash: 577f55cf480fb59add7d
<add>Version: webpack 2.1.0-beta.25
<add>Time: 150ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 407 bytes 0 [emitted]
<add> output.js 6.16 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 22 bytes {1} [rendered]
<add>chunk {0} 0.output.js 22 bytes {1} [rendered]
<ide> > [4] ./example.js 3:0-6:2
<ide> [2] ./~/c.js 11 bytes {0} [built]
<ide> require.ensure item c [4] ./example.js 3:0-6:2
<ide> [3] ./~/d.js 11 bytes {0} [built]
<ide> cjs require d [4] ./example.js 5:12-24
<del>chunk {1} output.js (main) 166 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 161 bytes [entry] [rendered]
<ide> > main [4] ./example.js
<ide> [0] ./~/b.js 11 bytes {1} [built]
<ide> cjs require b [4] ./example.js 2:8-20
<ide> cjs require b [4] ./example.js 4:4-16
<ide> [1] ./~/a.js 11 bytes {1} [built]
<ide> cjs require a [4] ./example.js 1:8-20
<del> [4] ./example.js 144 bytes {1} [built]
<add> [4] ./example.js 139 bytes {1} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 2dea52960a4aca822def
<del>Version: webpack 2.1.0-beta.22
<del>Time: 377ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 54 bytes 0 [emitted]
<del>output.js 1.44 kB 1 [emitted] main
<add>Hash: 577f55cf480fb59add7d
<add>Version: webpack 2.1.0-beta.25
<add>Time: 292ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 54 bytes 0 [emitted]
<add> output.js 1.44 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 22 bytes {1} [rendered]
<add>chunk {0} 0.output.js 22 bytes {1} [rendered]
<ide> > [4] ./example.js 3:0-6:2
<ide> [2] ./~/c.js 11 bytes {0} [built]
<ide> require.ensure item c [4] ./example.js 3:0-6:2
<ide> [3] ./~/d.js 11 bytes {0} [built]
<ide> cjs require d [4] ./example.js 5:12-24
<del>chunk {1} output.js (main) 166 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 161 bytes [entry] [rendered]
<ide> > main [4] ./example.js
<ide> [0] ./~/b.js 11 bytes {1} [built]
<ide> cjs require b [4] ./example.js 2:8-20
<ide> cjs require b [4] ./example.js 4:4-16
<ide> [1] ./~/a.js 11 bytes {1} [built]
<ide> cjs require a [4] ./example.js 1:8-20
<del> [4] ./example.js 144 bytes {1} [built]
<add> [4] ./example.js 139 bytes {1} [built]
<ide> ```
<ide><path>examples/code-splitting/template.md
<ide> You can see that chunks are loaded via JSONP. The additional chunks are pretty s
<ide> {{js/output.js}}
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<del>{{js/0.js}}
<add>{{js/0.output.js}}
<ide> ```
<ide>
<ide> Minimized
<ide>
<ide> ``` javascript
<del>{{min:js/0.js}}
<add>{{min:js/0.output.js}}
<ide> ```
<ide>
<ide> # Info
<ide><path>examples/coffee-script/README.md
<ide> console.log(__webpack_require__(/*! ./cup1 */ 1));
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 1758089a2f80875f5e4b
<del>Version: webpack 2.1.0-beta.22
<del>Time: 287ms
<add>Hash: 0718a799b127b2e3e2e1
<add>Version: webpack 2.1.0-beta.25
<add>Time: 245ms
<ide> Asset Size Chunks Chunk Names
<ide> output.js 3.25 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<ide> chunk {0} output.js (main) 206 bytes [entry] [rendered]
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 1758089a2f80875f5e4b
<del>Version: webpack 2.1.0-beta.22
<del>Time: 416ms
<add>Hash: 0718a799b127b2e3e2e1
<add>Version: webpack 2.1.0-beta.25
<add>Time: 344ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 666 bytes 0 [emitted] main
<add>output.js 663 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<ide> chunk {0} output.js (main) 206 bytes [entry] [rendered]
<ide> > main [2] ./example.js
<ide><path>examples/common-chunk-and-vendor-chunk/README.md
<ide> module.exports = "pageC";
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 336f9b61c42318293a2b
<del>Version: webpack 2.1.0-beta.22
<del>Time: 180ms
<add>Hash: 811ddf3b9dbcf66e3362
<add>Version: webpack 2.1.0-beta.25
<add>Time: 140ms
<ide> Asset Size Chunks Chunk Names
<ide> common.js 453 bytes 0 [emitted] common
<del> pageA.js 589 bytes 1 [emitted] pageA
<del> pageC.js 371 bytes 2 [emitted] pageC
<del> pageB.js 371 bytes 3 [emitted] pageB
<add> pageA.js 586 bytes 1 [emitted] pageA
<add> pageC.js 368 bytes 2 [emitted] pageC
<add> pageB.js 368 bytes 3 [emitted] pageB
<ide> vendor.js 6.2 kB 4 [emitted] vendor
<add>Entrypoint vendor = vendor.js
<ide> Entrypoint pageA = vendor.js common.js pageA.js
<ide> Entrypoint pageB = vendor.js common.js pageB.js
<ide> Entrypoint pageC = vendor.js common.js pageC.js
<del>Entrypoint vendor = vendor.js
<ide> chunk {0} common.js (common) 56 bytes {4} [initial] [rendered]
<ide> [0] ./utility2.js 28 bytes {0} [built]
<ide> cjs require ./utility2 [5] ./pageA.js 2:15-36
<ide> chunk {0} common.js (common) 56 bytes {4} [initial] [rendered]
<ide> [1] ./utility3.js 28 bytes {0} [built]
<ide> cjs require ./utility3 [6] ./pageB.js 2:15-36
<ide> cjs require ./utility3 [7] ./pageC.js 2:15-36
<del>chunk {1} pageA.js (pageA) 133 bytes {0} [initial] [rendered]
<add>chunk {1} pageA.js (pageA) 130 bytes {0} [initial] [rendered]
<ide> > pageA [5] ./pageA.js
<ide> [2] ./utility1.js 28 bytes {1} [built]
<ide> cjs require ./utility1 [5] ./pageA.js 1:15-36
<del> [5] ./pageA.js 105 bytes {1} [built]
<del>chunk {2} pageC.js (pageC) 105 bytes {0} [initial] [rendered]
<add> [5] ./pageA.js 102 bytes {1} [built]
<add>chunk {2} pageC.js (pageC) 102 bytes {0} [initial] [rendered]
<ide> > pageC [7] ./pageC.js
<del> [7] ./pageC.js 105 bytes {2} [built]
<del>chunk {3} pageB.js (pageB) 105 bytes {0} [initial] [rendered]
<add> [7] ./pageC.js 102 bytes {2} [built]
<add>chunk {3} pageB.js (pageB) 102 bytes {0} [initial] [rendered]
<ide> > pageB [6] ./pageB.js
<del> [6] ./pageB.js 105 bytes {3} [built]
<add> [6] ./pageB.js 102 bytes {3} [built]
<ide> chunk {4} vendor.js (vendor) 94 bytes [entry] [rendered]
<ide> > vendor [8] multi vendor
<ide> [3] ./vendor1.js 27 bytes {4} [built]
<ide> chunk {4} vendor.js (vendor) 94 bytes [entry] [rendered]
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 336f9b61c42318293a2b
<del>Version: webpack 2.1.0-beta.22
<del>Time: 362ms
<add>Hash: 811ddf3b9dbcf66e3362
<add>Version: webpack 2.1.0-beta.25
<add>Time: 295ms
<ide> Asset Size Chunks Chunk Names
<ide> common.js 92 bytes 0 [emitted] common
<ide> pageA.js 109 bytes 1 [emitted] pageA
<ide> pageC.js 71 bytes 2 [emitted] pageC
<ide> pageB.js 71 bytes 3 [emitted] pageB
<del>vendor.js 1.46 kB 4 [emitted] vendor
<add>vendor.js 1.45 kB 4 [emitted] vendor
<add>Entrypoint vendor = vendor.js
<ide> Entrypoint pageA = vendor.js common.js pageA.js
<ide> Entrypoint pageB = vendor.js common.js pageB.js
<ide> Entrypoint pageC = vendor.js common.js pageC.js
<del>Entrypoint vendor = vendor.js
<ide> chunk {0} common.js (common) 56 bytes {4} [initial] [rendered]
<ide> [0] ./utility2.js 28 bytes {0} [built]
<ide> cjs require ./utility2 [5] ./pageA.js 2:15-36
<ide> chunk {0} common.js (common) 56 bytes {4} [initial] [rendered]
<ide> [1] ./utility3.js 28 bytes {0} [built]
<ide> cjs require ./utility3 [6] ./pageB.js 2:15-36
<ide> cjs require ./utility3 [7] ./pageC.js 2:15-36
<del>chunk {1} pageA.js (pageA) 133 bytes {0} [initial] [rendered]
<add>chunk {1} pageA.js (pageA) 130 bytes {0} [initial] [rendered]
<ide> > pageA [5] ./pageA.js
<ide> [2] ./utility1.js 28 bytes {1} [built]
<ide> cjs require ./utility1 [5] ./pageA.js 1:15-36
<del> [5] ./pageA.js 105 bytes {1} [built]
<del>chunk {2} pageC.js (pageC) 105 bytes {0} [initial] [rendered]
<add> [5] ./pageA.js 102 bytes {1} [built]
<add>chunk {2} pageC.js (pageC) 102 bytes {0} [initial] [rendered]
<ide> > pageC [7] ./pageC.js
<del> [7] ./pageC.js 105 bytes {2} [built]
<del>chunk {3} pageB.js (pageB) 105 bytes {0} [initial] [rendered]
<add> [7] ./pageC.js 102 bytes {2} [built]
<add>chunk {3} pageB.js (pageB) 102 bytes {0} [initial] [rendered]
<ide> > pageB [6] ./pageB.js
<del> [6] ./pageB.js 105 bytes {3} [built]
<add> [6] ./pageB.js 102 bytes {3} [built]
<ide> chunk {4} vendor.js (vendor) 94 bytes [entry] [rendered]
<ide> > vendor [8] multi vendor
<ide> [3] ./vendor1.js 27 bytes {4} [built]
<ide><path>examples/commonjs/README.md
<ide> inc(a); // 2
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 8bf88f6ef9c3a5b77918
<del>Version: webpack 2.1.0-beta.22
<del>Time: 150ms
<add>Hash: 347d551e233e017e5be5
<add>Version: webpack 2.1.0-beta.25
<add>Time: 114ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 3.34 kB 0 [emitted] main
<add>output.js 3.33 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 329 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 318 bytes [entry] [rendered]
<ide> > main [2] ./example.js
<del> [0] ./increment.js 98 bytes {0} [built]
<add> [0] ./increment.js 95 bytes {0} [built]
<ide> cjs require ./increment [2] ./example.js 1:10-32
<del> [1] ./math.js 162 bytes {0} [built]
<add> [1] ./math.js 156 bytes {0} [built]
<ide> cjs require ./math [0] ./increment.js 1:10-27
<del> [2] ./example.js 69 bytes {0} [built]
<add> [2] ./example.js 67 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 8bf88f6ef9c3a5b77918
<del>Version: webpack 2.1.0-beta.22
<del>Time: 259ms
<add>Hash: 347d551e233e017e5be5
<add>Version: webpack 2.1.0-beta.25
<add>Time: 219ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 706 bytes 0 [emitted] main
<add>output.js 703 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 329 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 318 bytes [entry] [rendered]
<ide> > main [2] ./example.js
<del> [0] ./increment.js 98 bytes {0} [built]
<add> [0] ./increment.js 95 bytes {0} [built]
<ide> cjs require ./increment [2] ./example.js 1:10-32
<del> [1] ./math.js 162 bytes {0} [built]
<add> [1] ./math.js 156 bytes {0} [built]
<ide> cjs require ./math [0] ./increment.js 1:10-27
<del> [2] ./example.js 69 bytes {0} [built]
<add> [2] ./example.js 67 bytes {0} [built]
<ide> ```
<ide>\ No newline at end of file
<ide><path>examples/css-bundle/README.md
<ide> body {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: a79c0dba55bcedbab63c
<del>Version: webpack 2.1.0-beta.22
<del>Time: 1205ms
<add>Hash: db83b66cc5606ff7b225
<add>Version: webpack 2.1.0-beta.25
<add>Time: 762ms
<ide> Asset Size Chunks Chunk Names
<ide> ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
<ide> output.js 2.85 kB 0 [emitted] main
<del> style.css 69 bytes 0 [emitted] main
<add> style.css 67 bytes 0 [emitted] main
<ide> Entrypoint main = output.js style.css
<ide> chunk {0} output.js, style.css (main) 64 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<ide> Child extract-text-webpack-plugin:
<ide> [0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
<ide> [1] ./image.png 82 bytes {0} [built]
<del> cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
<del> [2] (webpack)/~/css-loader!./style.css 224 bytes {0} [built]
<add> cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:56-78
<add> [2] (webpack)/~/css-loader!./style.css 220 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: e2def6a993090f0024e0
<del>Version: webpack 2.1.0-beta.22
<del>Time: 1392ms
<add>Hash: db83b66cc5606ff7b225
<add>Version: webpack 2.1.0-beta.25
<add>Time: 1038ms
<ide> Asset Size Chunks Chunk Names
<ide> ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
<del> output.js 530 bytes 0 [emitted] main
<add> output.js 527 bytes 0 [emitted] main
<ide> style.css 61 bytes 0 [emitted] main
<ide> Entrypoint main = output.js style.css
<ide> chunk {0} output.js, style.css (main) 64 bytes [entry] [rendered]
<ide><path>examples/dedupe/README.md
<ide> module.exports = {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 4dc8b7461ebd65981538
<del>Version: webpack 2.1.0-beta.22
<del>Time: 174ms
<add>Hash: 4ef665e7da89c97bd89f
<add>Version: webpack 2.1.0-beta.25
<add>Time: 139ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 5.06 kB 0 [emitted] main
<add>output.js 5.05 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 528 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 513 bytes [entry] [rendered]
<ide> > main [7] ./example.js
<ide> [0] ./z.js 34 bytes {0} [built]
<ide> cjs require ../z [1] ./a/index.js 4:4-19
<ide> cjs require ../z [2] ./b/index.js 4:4-19
<del> [1] ./a/index.js 84 bytes {0} [built]
<add> [1] ./a/index.js 80 bytes {0} [built]
<ide> cjs require ./a [7] ./example.js 1:8-22
<del> [2] ./b/index.js 84 bytes {0} [built]
<add> [2] ./b/index.js 80 bytes {0} [built]
<ide> cjs require ./b [7] ./example.js 2:8-22
<ide> [3] ./a/x.js 34 bytes {0} [built]
<ide> cjs require ./x [1] ./a/index.js 2:4-18
<ide> chunk {0} output.js (main) 528 bytes [entry] [rendered]
<ide> cjs require ./x [2] ./b/index.js 2:4-18
<ide> [6] ./b/y.js 49 bytes {0} [built]
<ide> cjs require ./y [2] ./b/index.js 3:4-18
<del> [7] ./example.js 76 bytes {0} [built]
<del> [8] template of 1 referencing 0 84 bytes {0} [not cacheable] [built]
<add> [7] ./example.js 73 bytes {0} [built]
<add> [8] template of 1 referencing 0 80 bytes {0} [not cacheable] [built]
<ide> [no exports used]
<ide> template 0 [1] ./a/index.js
<ide> template 0 [2] ./b/index.js
<ide> chunk {0} output.js (main) 528 bytes [entry] [rendered]
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 4dc8b7461ebd65981538
<del>Version: webpack 2.1.0-beta.22
<del>Time: 333ms
<add>Hash: 4ef665e7da89c97bd89f
<add>Version: webpack 2.1.0-beta.25
<add>Time: 258ms
<ide> Asset Size Chunks Chunk Names
<ide> output.js 1.08 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 528 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 513 bytes [entry] [rendered]
<ide> > main [7] ./example.js
<ide> [0] ./z.js 34 bytes {0} [built]
<ide> cjs require ../z [1] ./a/index.js 4:4-19
<ide> cjs require ../z [2] ./b/index.js 4:4-19
<del> [1] ./a/index.js 84 bytes {0} [built]
<add> [1] ./a/index.js 80 bytes {0} [built]
<ide> cjs require ./a [7] ./example.js 1:8-22
<del> [2] ./b/index.js 84 bytes {0} [built]
<add> [2] ./b/index.js 80 bytes {0} [built]
<ide> cjs require ./b [7] ./example.js 2:8-22
<ide> [3] ./a/x.js 34 bytes {0} [built]
<ide> cjs require ./x [1] ./a/index.js 2:4-18
<ide> chunk {0} output.js (main) 528 bytes [entry] [rendered]
<ide> cjs require ./x [2] ./b/index.js 2:4-18
<ide> [6] ./b/y.js 49 bytes {0} [built]
<ide> cjs require ./y [2] ./b/index.js 3:4-18
<del> [7] ./example.js 76 bytes {0} [built]
<del> [8] template of 1 referencing 0 84 bytes {0} [not cacheable] [built]
<add> [7] ./example.js 73 bytes {0} [built]
<add> [8] template of 1 referencing 0 80 bytes {0} [not cacheable] [built]
<ide> [no exports used]
<ide> template 0 [1] ./a/index.js
<ide> template 0 [2] ./b/index.js
<ide><path>examples/dll-user/README.md
<ide> console.log(__webpack_require__(/*! module */ 7));
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: c912c9e1b4764365c16e
<del>Version: webpack 2.1.0-beta.22
<del>Time: 76ms
<del> Asset Size Chunks Chunk Names
<del>output.js 6 kB 0 [emitted] main
<add>Hash: d81e078ea638f600f312
<add>Version: webpack 2.1.0-beta.25
<add>Time: 120ms
<add> Asset Size Chunks Chunk Names
<add>output.js 5.99 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 549 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 541 bytes [entry] [rendered]
<ide> > main [8] ./example.js
<del> [8] ./example.js 213 bytes {0} [built]
<add> [8] ./example.js 205 bytes {0} [built]
<ide> + 8 hidden modules
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: c912c9e1b4764365c16e
<del>Version: webpack 2.1.0-beta.22
<del>Time: 145ms
<add>Hash: d81e078ea638f600f312
<add>Version: webpack 2.1.0-beta.25
<add>Time: 221ms
<ide> Asset Size Chunks Chunk Names
<ide> output.js 927 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 549 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 541 bytes [entry] [rendered]
<ide> > main [8] ./example.js
<del> [8] ./example.js 213 bytes {0} [built]
<add> [8] ./example.js 205 bytes {0} [built]
<ide> + 8 hidden modules
<ide> ```
<ide>\ No newline at end of file
<ide><path>examples/dll/README.md
<ide> module.exports = __webpack_require__;
<ide>
<ide> ```
<ide> Hash: 282e8826843b2bb4eeb1
<del>Version: webpack 2.1.0-beta.22
<del>Time: 76ms
<add>Version: webpack 2.1.0-beta.25
<add>Time: 114ms
<ide> Asset Size Chunks Chunk Names
<ide> MyDll.beta.js 3.26 kB 0 [emitted] beta
<ide> MyDll.alpha.js 3.29 kB 1 [emitted] alpha
<ide> chunk {1} MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
<ide>
<ide> ```
<ide> Hash: 282e8826843b2bb4eeb1
<del>Version: webpack 2.1.0-beta.22
<del>Time: 144ms
<add>Version: webpack 2.1.0-beta.25
<add>Time: 241ms
<ide> Asset Size Chunks Chunk Names
<ide> MyDll.beta.js 643 bytes 0 [emitted] beta
<ide> MyDll.alpha.js 647 bytes 1 [emitted] alpha
<ide><path>examples/explicit-vendor-chunk/README.md
<ide> module.exports = "pageA";
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 32199746b38d6e93b44b2dfd6525b32dabf48b1e
<del>Version: webpack 2.1.0-beta.22
<add>Hash: 32199746b38d6e93b44b914336663f48ecd8f351
<add>Version: webpack 2.1.0-beta.25
<ide> Child vendor:
<ide> Hash: 32199746b38d6e93b44b
<del> Version: webpack 2.1.0-beta.22
<del> Time: 141ms
<add> Version: webpack 2.1.0-beta.25
<add> Time: 102ms
<ide> Asset Size Chunks Chunk Names
<ide> vendor.js 3.07 kB 0 [emitted] main
<ide> Entrypoint main = vendor.js
<ide> Child vendor:
<ide> single entry ./vendor2 [2] dll main
<ide> [2] dll main 12 bytes {0} [built]
<ide> Child app:
<del> Hash: 2dfd6525b32dabf48b1e
<del> Version: webpack 2.1.0-beta.22
<del> Time: 56ms
<add> Hash: 914336663f48ecd8f351
<add> Version: webpack 2.1.0-beta.25
<add> Time: 40ms
<ide> Asset Size Chunks Chunk Names
<ide> pageB.js 3.41 kB 0 [emitted] pageB
<ide> pageA.js 3.4 kB 1 [emitted] pageA
<ide> pageC.js 2.59 kB 2 [emitted] pageC
<ide> Entrypoint pageA = pageA.js
<ide> Entrypoint pageB = pageB.js
<ide> Entrypoint pageC = pageC.js
<del> chunk {0} pageB.js (pageB) 145 bytes [entry] [rendered]
<add> chunk {0} pageB.js (pageB) 144 bytes [entry] [rendered]
<ide> > pageB [4] ./pageB.js
<del> [4] ./pageB.js 61 bytes {0} [built]
<add> [4] ./pageB.js 60 bytes {0} [built]
<ide> + 2 hidden modules
<del> chunk {1} pageA.js (pageA) 144 bytes [entry] [rendered]
<add> chunk {1} pageA.js (pageA) 143 bytes [entry] [rendered]
<ide> > pageA [3] ./pageA.js
<del> [3] ./pageA.js 60 bytes {1} [built]
<add> [3] ./pageA.js 59 bytes {1} [built]
<ide> + 2 hidden modules
<ide> chunk {2} pageC.js (pageC) 25 bytes [entry] [rendered]
<ide> > pageC [5] ./pageC.js
<ide> Child app:
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 32199746b38d6e93b44b2dfd6525b32dabf48b1e
<del>Version: webpack 2.1.0-beta.22
<add>Hash: 32199746b38d6e93b44b914336663f48ecd8f351
<add>Version: webpack 2.1.0-beta.25
<ide> Child vendor:
<ide> Hash: 32199746b38d6e93b44b
<del> Version: webpack 2.1.0-beta.22
<del> Time: 231ms
<add> Version: webpack 2.1.0-beta.25
<add> Time: 190ms
<ide> Asset Size Chunks Chunk Names
<del> vendor.js 621 bytes 0 [emitted] main
<add> vendor.js 618 bytes 0 [emitted] main
<ide> Entrypoint main = vendor.js
<ide> chunk {0} vendor.js (main) 65 bytes [entry] [rendered]
<ide> > main [2] dll main
<ide> Child vendor:
<ide> single entry ./vendor2 [2] dll main
<ide> [2] dll main 12 bytes {0} [built]
<ide> Child app:
<del> Hash: 2dfd6525b32dabf48b1e
<del> Version: webpack 2.1.0-beta.22
<del> Time: 143ms
<add> Hash: 914336663f48ecd8f351
<add> Version: webpack 2.1.0-beta.25
<add> Time: 110ms
<ide> Asset Size Chunks Chunk Names
<del> pageB.js 635 bytes 0 [emitted] pageB
<del> pageA.js 634 bytes 1 [emitted] pageA
<del> pageC.js 527 bytes 2 [emitted] pageC
<add> pageB.js 632 bytes 0 [emitted] pageB
<add> pageA.js 631 bytes 1 [emitted] pageA
<add> pageC.js 524 bytes 2 [emitted] pageC
<ide> Entrypoint pageA = pageA.js
<ide> Entrypoint pageB = pageB.js
<ide> Entrypoint pageC = pageC.js
<del> chunk {0} pageB.js (pageB) 145 bytes [entry] [rendered]
<add> chunk {0} pageB.js (pageB) 144 bytes [entry] [rendered]
<ide> > pageB [4] ./pageB.js
<del> [4] ./pageB.js 61 bytes {0} [built]
<add> [4] ./pageB.js 60 bytes {0} [built]
<ide> + 2 hidden modules
<del> chunk {1} pageA.js (pageA) 144 bytes [entry] [rendered]
<add> chunk {1} pageA.js (pageA) 143 bytes [entry] [rendered]
<ide> > pageA [3] ./pageA.js
<del> [3] ./pageA.js 60 bytes {1} [built]
<add> [3] ./pageA.js 59 bytes {1} [built]
<ide> + 2 hidden modules
<ide> chunk {2} pageC.js (pageC) 25 bytes [entry] [rendered]
<ide> > pageC [5] ./pageC.js
<ide><path>examples/externals/README.md
<ide> exports.exampleValue = subtract(add(42, 2), 2);
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 29ce7a9675e2bb040e93
<del>Version: webpack 2.1.0-beta.22
<del>Time: 119ms
<add>Hash: 9f84bc757816705143ff
<add>Version: webpack 2.1.0-beta.25
<add>Time: 102ms
<ide> Asset Size Chunks Chunk Names
<ide> output.js 4.08 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 197 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 194 bytes [entry] [rendered]
<ide> > main [2] ./example.js
<del> [2] ./example.js 113 bytes {0} [built]
<add> [2] ./example.js 110 bytes {0} [built]
<ide> + 2 hidden modules
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 29ce7a9675e2bb040e93
<del>Version: webpack 2.1.0-beta.22
<del>Time: 250ms
<add>Hash: 9f84bc757816705143ff
<add>Version: webpack 2.1.0-beta.25
<add>Time: 215ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 997 bytes 0 [emitted] main
<add>output.js 994 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 197 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 194 bytes [entry] [rendered]
<ide> > main [2] ./example.js
<del> [2] ./example.js 113 bytes {0} [built]
<add> [2] ./example.js 110 bytes {0} [built]
<ide> + 2 hidden modules
<ide> ```
<ide>\ No newline at end of file
<ide><path>examples/extra-async-chunk-advanced/README.md
<ide> module.exports = {
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> Promise.all/* nsure */([__webpack_require__.e(1), __webpack_require__.e(2)]).cat
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: c00f5cd0b99286794cfa
<del>Version: webpack 2.1.0-beta.22
<del>Time: 206ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 218 bytes 0 [emitted] async2
<del> 1.js 209 bytes 1 [emitted] async1
<del> 2.js 212 bytes 2 [emitted]
<del> 3.js 212 bytes 3 [emitted]
<del> 4.js 212 bytes 4 [emitted]
<del> 5.js 212 bytes 5 [emitted]
<del> 6.js 212 bytes 6 [emitted]
<del>output.js 6.84 kB 7 [emitted] main
<add>Hash: 09bb2a8779c90d5320d0
<add>Version: webpack 2.1.0-beta.25
<add>Time: 150ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 218 bytes 0 [emitted] async2
<add>1.output.js 209 bytes 1 [emitted] async1
<add>2.output.js 212 bytes 2 [emitted]
<add>3.output.js 212 bytes 3 [emitted]
<add>4.output.js 212 bytes 4 [emitted]
<add>5.output.js 212 bytes 5 [emitted]
<add>6.output.js 212 bytes 6 [emitted]
<add> output.js 6.83 kB 7 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js (async2) 21 bytes {7} {2} [rendered]
<add>chunk {0} 0.output.js (async2) 21 bytes {7} {2} [rendered]
<ide> > async commons duplicate [7] ./example.js 1:0-52
<ide> > async commons duplicate [7] ./example.js 3:0-6:2
<ide> > async commons duplicate [7] ./example.js 10:1-12:3
<ide> chunk {0} 0.js (async2) 21 bytes {7} {2} [rendered]
<ide> cjs require ./b [7] ./example.js 4:1-15
<ide> require.ensure item ./b [7] ./example.js 10:1-12:3
<ide> require.ensure item ./b [7] ./example.js 13:1-15:3
<del>chunk {1} 1.js (async1) 21 bytes {7} [rendered]
<add>chunk {1} 1.output.js (async1) 21 bytes {7} [rendered]
<ide> > async commons [7] ./example.js 1:0-52
<ide> > async commons [7] ./example.js 3:0-6:2
<ide> > async commons [7] ./example.js 8:0-16:2
<ide> chunk {1} 1.js (async1) 21 bytes {7} [rendered]
<ide> require.ensure item ./a [7] ./example.js 3:0-6:2
<ide> require.ensure item ./a [7] ./example.js 8:0-16:2
<ide> cjs require ./a [7] ./example.js 9:1-15
<del>chunk {2} 2.js 21 bytes {7} [rendered]
<add>chunk {2} 2.output.js 21 bytes {7} [rendered]
<ide> > [7] ./example.js 8:0-16:2
<ide> [4] ./e.js 21 bytes {2} [built]
<ide> require.ensure item ./e [7] ./example.js 8:0-16:2
<del>chunk {3} 3.js 21 bytes {7} [rendered]
<add>chunk {3} 3.output.js 21 bytes {7} [rendered]
<ide> > [7] ./example.js 3:0-6:2
<ide> [3] ./d.js 21 bytes {3} [built]
<ide> cjs require ./d [7] ./example.js 5:1-15
<del>chunk {4} 4.js 21 bytes {7} [rendered]
<add>chunk {4} 4.output.js 21 bytes {7} [rendered]
<ide> > [7] ./example.js 1:0-52
<ide> [2] ./c.js 21 bytes {4} [built]
<ide> amd require ./c [7] ./example.js 1:0-52
<del>chunk {5} 5.js 21 bytes {2} [rendered]
<add>chunk {5} 5.output.js 21 bytes {2} [rendered]
<ide> > [7] ./example.js 13:1-15:3
<ide> [6] ./g.js 21 bytes {5} [built]
<ide> cjs require ./g [7] ./example.js 14:2-16
<del>chunk {6} 6.js 21 bytes {2} [rendered]
<add>chunk {6} 6.output.js 21 bytes {2} [rendered]
<ide> > [7] ./example.js 10:1-12:3
<ide> [5] ./f.js 21 bytes {6} [built]
<ide> cjs require ./f [7] ./example.js 11:2-16
<del>chunk {7} output.js (main) 362 bytes [entry] [rendered]
<add>chunk {7} output.js (main) 346 bytes [entry] [rendered]
<ide> > main [7] ./example.js
<del> [7] ./example.js 362 bytes {7} [built]
<add> [7] ./example.js 346 bytes {7} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: c00f5cd0b99286794cfa
<del>Version: webpack 2.1.0-beta.22
<del>Time: 401ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 50 bytes 0 [emitted] async2
<del> 1.js 49 bytes 1 [emitted] async1
<del> 2.js 51 bytes 2 [emitted]
<del> 3.js 51 bytes 3 [emitted]
<del> 4.js 51 bytes 4 [emitted]
<del> 5.js 51 bytes 5 [emitted]
<del> 6.js 51 bytes 6 [emitted]
<del>output.js 1.85 kB 7 [emitted] main
<add>Hash: 09bb2a8779c90d5320d0
<add>Version: webpack 2.1.0-beta.25
<add>Time: 324ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 50 bytes 0 [emitted] async2
<add>1.output.js 49 bytes 1 [emitted] async1
<add>2.output.js 51 bytes 2 [emitted]
<add>3.output.js 51 bytes 3 [emitted]
<add>4.output.js 51 bytes 4 [emitted]
<add>5.output.js 51 bytes 5 [emitted]
<add>6.output.js 51 bytes 6 [emitted]
<add> output.js 1.84 kB 7 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js (async2) 21 bytes {7} {2} [rendered]
<add>chunk {0} 0.output.js (async2) 21 bytes {7} {2} [rendered]
<ide> > async commons duplicate [7] ./example.js 1:0-52
<ide> > async commons duplicate [7] ./example.js 3:0-6:2
<ide> > async commons duplicate [7] ./example.js 10:1-12:3
<ide> chunk {0} 0.js (async2) 21 bytes {7} {2} [rendered]
<ide> cjs require ./b [7] ./example.js 4:1-15
<ide> require.ensure item ./b [7] ./example.js 10:1-12:3
<ide> require.ensure item ./b [7] ./example.js 13:1-15:3
<del>chunk {1} 1.js (async1) 21 bytes {7} [rendered]
<add>chunk {1} 1.output.js (async1) 21 bytes {7} [rendered]
<ide> > async commons [7] ./example.js 1:0-52
<ide> > async commons [7] ./example.js 3:0-6:2
<ide> > async commons [7] ./example.js 8:0-16:2
<ide> chunk {1} 1.js (async1) 21 bytes {7} [rendered]
<ide> require.ensure item ./a [7] ./example.js 3:0-6:2
<ide> require.ensure item ./a [7] ./example.js 8:0-16:2
<ide> cjs require ./a [7] ./example.js 9:1-15
<del>chunk {2} 2.js 21 bytes {7} [rendered]
<add>chunk {2} 2.output.js 21 bytes {7} [rendered]
<ide> > [7] ./example.js 8:0-16:2
<ide> [4] ./e.js 21 bytes {2} [built]
<ide> require.ensure item ./e [7] ./example.js 8:0-16:2
<del>chunk {3} 3.js 21 bytes {7} [rendered]
<add>chunk {3} 3.output.js 21 bytes {7} [rendered]
<ide> > [7] ./example.js 3:0-6:2
<ide> [3] ./d.js 21 bytes {3} [built]
<ide> cjs require ./d [7] ./example.js 5:1-15
<del>chunk {4} 4.js 21 bytes {7} [rendered]
<add>chunk {4} 4.output.js 21 bytes {7} [rendered]
<ide> > [7] ./example.js 1:0-52
<ide> [2] ./c.js 21 bytes {4} [built]
<ide> amd require ./c [7] ./example.js 1:0-52
<del>chunk {5} 5.js 21 bytes {2} [rendered]
<add>chunk {5} 5.output.js 21 bytes {2} [rendered]
<ide> > [7] ./example.js 13:1-15:3
<ide> [6] ./g.js 21 bytes {5} [built]
<ide> cjs require ./g [7] ./example.js 14:2-16
<del>chunk {6} 6.js 21 bytes {2} [rendered]
<add>chunk {6} 6.output.js 21 bytes {2} [rendered]
<ide> > [7] ./example.js 10:1-12:3
<ide> [5] ./f.js 21 bytes {6} [built]
<ide> cjs require ./f [7] ./example.js 11:2-16
<del>chunk {7} output.js (main) 362 bytes [entry] [rendered]
<add>chunk {7} output.js (main) 346 bytes [entry] [rendered]
<ide> > main [7] ./example.js
<del> [7] ./example.js 362 bytes {7} [built]
<add> [7] ./example.js 346 bytes {7} [built]
<ide> ```
<ide><path>examples/extra-async-chunk/README.md
<ide> module.exports = {
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> Promise.all/* nsure */([__webpack_require__.e(0), __webpack_require__.e(1)]).cat
<ide> /******/ });
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([0],[
<ide> module.exports = "b";
<ide> ]);
<ide> ```
<ide>
<del># js/1.js
<add># js/1.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([1],{
<ide> module.exports = "d";
<ide> });
<ide> ```
<ide>
<del># js/2.js
<add># js/2.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([2],{
<ide> module.exports = "c";
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: d233f2ccd0d9940207fe
<del>Version: webpack 2.1.0-beta.22
<del>Time: 203ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 397 bytes 0 [emitted]
<del> 1.js 212 bytes 1 [emitted]
<del> 2.js 212 bytes 2 [emitted]
<del>output.js 6.13 kB 3 [emitted] main
<add>Hash: 2697c2e890ef9a735355
<add>Version: webpack 2.1.0-beta.25
<add>Time: 125ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 397 bytes 0 [emitted]
<add>1.output.js 212 bytes 1 [emitted]
<add>2.output.js 212 bytes 2 [emitted]
<add> output.js 6.13 kB 3 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 42 bytes {3} [rendered]
<add>chunk {0} 0.output.js 42 bytes {3} [rendered]
<ide> > async commons [4] ./example.js 2:0-52
<ide> > async commons [4] ./example.js 5:0-8:2
<ide> [0] ./a.js 21 bytes {0} [built]
<ide> chunk {0} 0.js 42 bytes {3} [rendered]
<ide> [1] ./b.js 21 bytes {0} [built]
<ide> amd require ./b [4] ./example.js 2:0-52
<ide> cjs require ./b [4] ./example.js 6:1-15
<del>chunk {1} 1.js 21 bytes {3} [rendered]
<add>chunk {1} 1.output.js 21 bytes {3} [rendered]
<ide> > [4] ./example.js 5:0-8:2
<ide> [3] ./d.js 21 bytes {1} [built]
<ide> cjs require ./d [4] ./example.js 7:1-15
<del>chunk {2} 2.js 21 bytes {3} [rendered]
<add>chunk {2} 2.output.js 21 bytes {3} [rendered]
<ide> > [4] ./example.js 2:0-52
<ide> [2] ./c.js 21 bytes {2} [built]
<ide> amd require ./c [4] ./example.js 2:0-52
<del>chunk {3} output.js (main) 194 bytes [entry] [rendered]
<add>chunk {3} output.js (main) 186 bytes [entry] [rendered]
<ide> > main [4] ./example.js
<del> [4] ./example.js 194 bytes {3} [built]
<add> [4] ./example.js 186 bytes {3} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: d233f2ccd0d9940207fe
<del>Version: webpack 2.1.0-beta.22
<del>Time: 336ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 78 bytes 0 [emitted]
<del> 1.js 51 bytes 1 [emitted]
<del> 2.js 51 bytes 2 [emitted]
<del>output.js 1.55 kB 3 [emitted] main
<add>Hash: 2697c2e890ef9a735355
<add>Version: webpack 2.1.0-beta.25
<add>Time: 279ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 78 bytes 0 [emitted]
<add>1.output.js 51 bytes 1 [emitted]
<add>2.output.js 51 bytes 2 [emitted]
<add> output.js 1.54 kB 3 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 42 bytes {3} [rendered]
<add>chunk {0} 0.output.js 42 bytes {3} [rendered]
<ide> > async commons [4] ./example.js 2:0-52
<ide> > async commons [4] ./example.js 5:0-8:2
<ide> [0] ./a.js 21 bytes {0} [built]
<ide> chunk {0} 0.js 42 bytes {3} [rendered]
<ide> [1] ./b.js 21 bytes {0} [built]
<ide> amd require ./b [4] ./example.js 2:0-52
<ide> cjs require ./b [4] ./example.js 6:1-15
<del>chunk {1} 1.js 21 bytes {3} [rendered]
<add>chunk {1} 1.output.js 21 bytes {3} [rendered]
<ide> > [4] ./example.js 5:0-8:2
<ide> [3] ./d.js 21 bytes {1} [built]
<ide> cjs require ./d [4] ./example.js 7:1-15
<del>chunk {2} 2.js 21 bytes {3} [rendered]
<add>chunk {2} 2.output.js 21 bytes {3} [rendered]
<ide> > [4] ./example.js 2:0-52
<ide> [2] ./c.js 21 bytes {2} [built]
<ide> amd require ./c [4] ./example.js 2:0-52
<del>chunk {3} output.js (main) 194 bytes [entry] [rendered]
<add>chunk {3} output.js (main) 186 bytes [entry] [rendered]
<ide> > main [4] ./example.js
<del> [4] ./example.js 194 bytes {3} [built]
<add> [4] ./example.js 186 bytes {3} [built]
<ide> ```
<ide><path>examples/extra-async-chunk/template.md
<ide> Pretty useful for a router in a SPA.
<ide> {{js/output.js}}
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<del>{{js/0.js}}
<add>{{js/0.output.js}}
<ide> ```
<ide>
<del># js/1.js
<add># js/1.output.js
<ide>
<ide> ``` javascript
<del>{{js/1.js}}
<add>{{js/1.output.js}}
<ide> ```
<ide>
<del># js/2.js
<add># js/2.output.js
<ide>
<ide> ``` javascript
<del>{{js/2.js}}
<add>{{js/2.output.js}}
<ide> ```
<ide>
<ide> # Info
<ide><path>examples/harmony-interop/README.md
<ide> __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__reexport_commonjs__["readFile
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 3f17961fede26a0f4dee
<del>Version: webpack 2.1.0-beta.22
<del>Time: 157ms
<add>Hash: 9fcf8b5e9ebb2df45bb7
<add>Version: webpack 2.1.0-beta.25
<add>Time: 118ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 5.88 kB 0 [emitted] main
<add>output.js 5.84 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 1.2 kB [entry] [rendered]
<add>chunk {0} output.js (main) 1.16 kB [entry] [rendered]
<ide> > main [4] ./example.js
<del> [0] ./fs.js 265 bytes {0} [built]
<add> [0] ./fs.js 258 bytes {0} [built]
<ide> [only some exports used: default, readFile]
<ide> harmony import ./fs [2] ./reexport-commonjs.js 2:0-21
<ide> harmony import ./fs [4] ./example.js 4:0-22
<ide> harmony import ./fs [4] ./example.js 5:0-32
<ide> harmony import ./fs [4] ./example.js 6:0-28
<del> [1] ./example2.js 159 bytes {0} [built]
<add> [1] ./example2.js 152 bytes {0} [built]
<ide> [no exports used]
<ide> harmony import ./example2 [4] ./example.js 16:0-20
<del> [2] ./reexport-commonjs.js 308 bytes {0} [built]
<add> [2] ./reexport-commonjs.js 301 bytes {0} [built]
<ide> [only some exports used: readFile]
<ide> harmony import ./reexport-commonjs [4] ./example.js 12:0-60
<del> [3] ./harmony.js 77 bytes {0} [built]
<add> [3] ./harmony.js 74 bytes {0} [built]
<add> [exports: default, named]
<ide> cjs require ./harmony [1] ./example2.js 4:13-33
<del> [4] ./example.js 389 bytes {0} [built]
<add> [4] ./example.js 373 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 3f17961fede26a0f4dee
<del>Version: webpack 2.1.0-beta.22
<del>Time: 303ms
<add>Hash: 9fcf8b5e9ebb2df45bb7
<add>Version: webpack 2.1.0-beta.25
<add>Time: 241ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 957 bytes 0 [emitted] main
<add>output.js 948 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 1.2 kB [entry] [rendered]
<add>chunk {0} output.js (main) 1.16 kB [entry] [rendered]
<ide> > main [4] ./example.js
<del> [0] ./fs.js 265 bytes {0} [built]
<add> [0] ./fs.js 258 bytes {0} [built]
<ide> [only some exports used: default, readFile]
<ide> harmony import ./fs [2] ./reexport-commonjs.js 2:0-21
<ide> harmony import ./fs [4] ./example.js 4:0-22
<ide> harmony import ./fs [4] ./example.js 5:0-32
<ide> harmony import ./fs [4] ./example.js 6:0-28
<del> [1] ./example2.js 159 bytes {0} [built]
<add> [1] ./example2.js 152 bytes {0} [built]
<ide> [no exports used]
<ide> harmony import ./example2 [4] ./example.js 16:0-20
<del> [2] ./reexport-commonjs.js 308 bytes {0} [built]
<add> [2] ./reexport-commonjs.js 301 bytes {0} [built]
<ide> [only some exports used: readFile]
<ide> harmony import ./reexport-commonjs [4] ./example.js 12:0-60
<del> [3] ./harmony.js 77 bytes {0} [built]
<add> [3] ./harmony.js 74 bytes {0} [built]
<add> [exports: default, named]
<ide> cjs require ./harmony [1] ./example2.js 4:13-33
<del> [4] ./example.js 389 bytes {0} [built]
<add> [4] ./example.js 373 bytes {0} [built]
<ide> ```
<ide>\ No newline at end of file
<ide><path>examples/harmony-unused/README.md
<ide> __WEBPACK_IMPORTED_MODULE_1__library__["a" /* reexportedMultiply */](1, 2);
<ide> # js/output.js
<ide>
<ide> ``` javascript
<del>!function(t){function n(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,n),u.l=!0,u.exports}var r={};return n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,n,r){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var r=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="js/",n(n.s=3)}([function(t,n,r){"use strict";function e(){for(var t=0,n=0,r=arguments,e=r.length;e>n;)t+=r[n++];return t}function u(){for(var t=1,n=0,r=arguments,e=r.length;e>n;)t*=r[n++];return t}n.a=e,n.b=u},function(t,n,r){"use strict";var e=(r(2),r(0));r.d(n,"a",function(){return e.b})},function(t,n,r){"use strict"},function(t,n,r){"use strict";var e=r(0),u=r(1);r.i(e.a)(1,2),u.a(1,2)}]);
<add>!function(t){function n(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,n),u.l=!0,u.exports}var r={};return n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,n,r){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="js/",n(n.s=3)}([function(t,n,r){"use strict";function e(){for(var t=0,n=0,r=arguments,e=r.length;n<e;)t+=r[n++];return t}function u(){for(var t=1,n=0,r=arguments,e=r.length;n<e;)t*=r[n++];return t}n.a=e,n.b=u},function(t,n,r){"use strict";var e=(r(2),r(0));r.d(n,"a",function(){return e.b})},function(t,n,r){"use strict"},function(t,n,r){"use strict";var e=r(0),u=r(1);r.i(e.a)(1,2),u.a(1,2)}]);
<ide> ```
<ide>
<ide> # Info
<ide>
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 2fa72a9149cd68fd16ab
<del>Version: webpack 2.1.0-beta.22
<del>Time: 179ms
<del> Asset Size Chunks Chunk Names
<del>output.js 4.83 kB 0 [emitted] main
<add>Hash: a5187553da983450faff
<add>Version: webpack 2.1.0-beta.25
<add>Time: 130ms
<add> Asset Size Chunks Chunk Names
<add>output.js 4.8 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 726 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 698 bytes [entry] [rendered]
<ide> > main [3] ./example.js
<del> [0] ./math.js 366 bytes {0} [built]
<add> [0] ./math.js 347 bytes {0} [built]
<add> [exports: add, multiply, list]
<ide> [only some exports used: add, multiply]
<ide> harmony import ./math [1] ./library.js 2:0-78
<ide> harmony import ./math [3] ./example.js 1:0-29
<del> [1] ./library.js 112 bytes {0} [built]
<add> [1] ./library.js 111 bytes {0} [built]
<add> [exports: a, b, c, reexportedAdd, reexportedMultiply]
<ide> [only some exports used: reexportedMultiply]
<ide> harmony import ./library [3] ./example.js 2:0-37
<del> [2] ./abc.js 129 bytes {0} [built]
<add> [2] ./abc.js 126 bytes {0} [built]
<add> [exports: a, b, c]
<ide> [no exports used]
<ide> harmony import ./abc [1] ./library.js 1:0-32
<del> [3] ./example.js 119 bytes {0} [built]
<add> [3] ./example.js 114 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 2fa72a9149cd68fd16ab
<del>Version: webpack 2.1.0-beta.22
<del>Time: 300ms
<add>Hash: a5187553da983450faff
<add>Version: webpack 2.1.0-beta.25
<add>Time: 241ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 869 bytes 0 [emitted] main
<add>output.js 866 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 726 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 698 bytes [entry] [rendered]
<ide> > main [3] ./example.js
<del> [0] ./math.js 366 bytes {0} [built]
<add> [0] ./math.js 347 bytes {0} [built]
<add> [exports: add, multiply, list]
<ide> [only some exports used: add, multiply]
<ide> harmony import ./math [1] ./library.js 2:0-78
<ide> harmony import ./math [3] ./example.js 1:0-29
<del> [1] ./library.js 112 bytes {0} [built]
<add> [1] ./library.js 111 bytes {0} [built]
<add> [exports: a, b, c, reexportedAdd, reexportedMultiply]
<ide> [only some exports used: reexportedMultiply]
<ide> harmony import ./library [3] ./example.js 2:0-37
<del> [2] ./abc.js 129 bytes {0} [built]
<add> [2] ./abc.js 126 bytes {0} [built]
<add> [exports: a, b, c]
<ide> [no exports used]
<ide> harmony import ./abc [1] ./library.js 1:0-32
<del> [3] ./example.js 119 bytes {0} [built]
<add> [3] ./example.js 114 bytes {0} [built]
<ide> ```
<ide><path>examples/harmony/README.md
<ide> export function increment(val) {
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> __webpack_require__.e/* System.import */(0).then(__webpack_require__.bind(null,
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: b0a43c6029aaacb5e196
<del>Version: webpack 2.1.0-beta.22
<del>Time: 150ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 387 bytes 0 [emitted]
<del>output.js 6.8 kB 1 [emitted] main
<add>Hash: e89d3b015e63670afc30
<add>Version: webpack 2.1.0-beta.25
<add>Time: 178ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 386 bytes 0 [emitted]
<add> output.js 6.78 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 25 bytes {1} [rendered]
<add>chunk {0} 0.output.js 24 bytes {1} [rendered]
<ide> > [3] ./example.js 6:0-31
<del> [1] ./async-loaded.js 25 bytes {0} [built]
<add> [1] ./async-loaded.js 24 bytes {0} [built]
<add> [exports: answer]
<ide> System.import ./async-loaded [3] ./example.js 6:0-31
<del>chunk {1} output.js (main) 426 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 407 bytes [entry] [rendered]
<ide> > main [3] ./example.js
<del> [0] ./increment.js 94 bytes {1} [built]
<add> [0] ./increment.js 90 bytes {1} [built]
<add> [exports: increment]
<ide> [only some exports used: increment]
<ide> harmony import ./increment [3] ./example.js 1:0-47
<del> [2] ./math.js 142 bytes {1} [built]
<add> [2] ./math.js 135 bytes {1} [built]
<add> [exports: add]
<ide> [only some exports used: add]
<ide> harmony import ./math [0] ./increment.js 1:0-29
<del> [3] ./example.js 190 bytes {1} [built]
<add> [3] ./example.js 182 bytes {1} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: b0a43c6029aaacb5e196
<del>Version: webpack 2.1.0-beta.22
<del>Time: 330ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 97 bytes 0 [emitted]
<del>output.js 1.6 kB 1 [emitted] main
<add>Hash: e89d3b015e63670afc30
<add>Version: webpack 2.1.0-beta.25
<add>Time: 264ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 97 bytes 0 [emitted]
<add> output.js 1.61 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 25 bytes {1} [rendered]
<add>chunk {0} 0.output.js 24 bytes {1} [rendered]
<ide> > [3] ./example.js 6:0-31
<del> [1] ./async-loaded.js 25 bytes {0} [built]
<add> [1] ./async-loaded.js 24 bytes {0} [built]
<add> [exports: answer]
<ide> System.import ./async-loaded [3] ./example.js 6:0-31
<del>chunk {1} output.js (main) 426 bytes [entry] [rendered]
<add>chunk {1} output.js (main) 407 bytes [entry] [rendered]
<ide> > main [3] ./example.js
<del> [0] ./increment.js 94 bytes {1} [built]
<add> [0] ./increment.js 90 bytes {1} [built]
<add> [exports: increment]
<ide> [only some exports used: increment]
<ide> harmony import ./increment [3] ./example.js 1:0-47
<del> [2] ./math.js 142 bytes {1} [built]
<add> [2] ./math.js 135 bytes {1} [built]
<add> [exports: add]
<ide> [only some exports used: add]
<ide> harmony import ./math [0] ./increment.js 1:0-29
<del> [3] ./example.js 190 bytes {1} [built]
<add> [3] ./example.js 182 bytes {1} [built]
<ide> ```
<ide>\ No newline at end of file
<ide><path>examples/http2-aggressive-splitting/README.md
<ide> module.exports = {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 5184413f3a374e7b5936
<del>Version: webpack 2.1.0-beta.22
<del>Time: 2195ms
<add>Hash: d585873c75fc6a13acdd
<add>Version: webpack 2.1.0-beta.25
<add>Time: 1714ms
<ide> Asset Size Chunks Chunk Names
<del>3068d4ff9b2dfb5c271a.js 52.9 kB 7 [emitted]
<del>1063f7bead1953d50075.js 57.7 kB 0 [emitted]
<del>fe372bb5ee58ecbb3049.js 55.3 kB 2 [emitted]
<del>ba0a52412704eb5fca77.js 54.6 kB 3 [emitted]
<del>3e6efa14517e3078592b.js 34.4 kB 4 [emitted]
<del>310186c03028a0b418f9.js 53.5 kB 5 [emitted]
<del>1040df4c2eee288dc9fc.js 36.2 kB 6 [emitted]
<del>b161c72948813fe0486f.js 56 kB 1 [emitted]
<del>2223fbc79b19b9c04ab0.js 52.8 kB 8 [emitted]
<del>e43acdd06dbd3b718702.js 51.2 kB 9 [emitted]
<del>60106e3f2b149c66854f.js 51 kB 10 [emitted]
<del>90e7ca83098a54640244.js 49.7 kB 11 [emitted]
<del>26c97ecb935008096f9b.js 58.6 kB 12 [emitted]
<del>31e30b54bea15a36c45b.js 34.3 kB 13 [emitted]
<del>26934d90a868e3c64b52.js 27.9 kB 14 [emitted]
<del>Entrypoint main = 26c97ecb935008096f9b.js 26934d90a868e3c64b52.js 31e30b54bea15a36c45b.js
<del>chunk {0} 1063f7bead1953d50075.js 49.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [26] (webpack)/~/react-dom/index.js 63 bytes {0} [built]
<del> [33] (webpack)/~/fbjs/lib/ExecutionEnvironment.js 1.06 kB {0} [built]
<del> [51] (webpack)/~/fbjs/lib/shallowEqual.js 1.66 kB {0} [built]
<del> [52] (webpack)/~/process/browser.js 2.06 kB {0} [built]
<del> [54] (webpack)/~/react/lib/DOMNamespaces.js 538 bytes {0} [built]
<del> [69] (webpack)/~/fbjs/lib/EventListener.js 2.67 kB {0} [built]
<del> [70] (webpack)/~/fbjs/lib/focusNode.js 704 bytes {0} [built]
<del> [71] (webpack)/~/fbjs/lib/getActiveElement.js 895 bytes {0} [built]
<del> [72] (webpack)/~/react/lib/CSSProperty.js 3.69 kB {0} [built]
<del> [73] (webpack)/~/react/lib/CallbackQueue.js 2.73 kB {0} [built]
<del> [93] (webpack)/~/fbjs/lib/camelize.js 708 bytes {0} [built]
<del> [94] (webpack)/~/fbjs/lib/camelizeStyleName.js 1 kB {0} [built]
<del> [95] (webpack)/~/fbjs/lib/containsNode.js 1.05 kB {0} [built]
<del> [96] (webpack)/~/fbjs/lib/createArrayFromMixed.js 4.11 kB {0} [built]
<del> [97] (webpack)/~/fbjs/lib/createNodesFromMarkup.js 2.66 kB {0} [built]
<del> [98] (webpack)/~/fbjs/lib/getMarkupWrap.js 3.04 kB {0} [built]
<del> [99] (webpack)/~/fbjs/lib/getUnboundedScrollPosition.js 1.05 kB {0} [built]
<del> [100] (webpack)/~/fbjs/lib/hyphenate.js 800 bytes {0} [built]
<del> [101] (webpack)/~/fbjs/lib/hyphenateStyleName.js 974 bytes {0} [built]
<del> [102] (webpack)/~/fbjs/lib/isNode.js 693 bytes {0} [built]
<del> [103] (webpack)/~/fbjs/lib/isTextNode.js 605 bytes {0} [built]
<del> [104] (webpack)/~/fbjs/lib/memoizeStringOnly.js 698 bytes {0} [built]
<del> [105] (webpack)/~/react/lib/AutoFocusUtils.js 633 bytes {0} [built]
<del> [106] (webpack)/~/react/lib/BeforeInputEventPlugin.js 13.9 kB {0} [built]
<del> [110] (webpack)/~/react/lib/DefaultEventPluginOrder.js 1.26 kB {0} [built]
<del> [117] (webpack)/~/react/lib/ReactDOMButton.js 634 bytes {0} [built]
<del>chunk {1} b161c72948813fe0486f.js 49.9 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [34] (webpack)/~/react/lib/ReactInstrumentation.js 559 bytes {1} [built]
<del> [43] (webpack)/~/react/lib/ReactInstanceMap.js 1.26 kB {1} [built]
<del> [60] (webpack)/~/react/lib/ReactErrorUtils.js 2.26 kB {1} [built]
<del> [79] (webpack)/~/react/lib/ReactFeatureFlags.js 665 bytes {1} [built]
<del> [80] (webpack)/~/react/lib/ReactHostComponent.js 2.42 kB {1} [built]
<del> [81] (webpack)/~/react/lib/ReactInputSelection.js 4.31 kB {1} [built]
<del> [83] (webpack)/~/react/lib/ReactMultiChildUpdateTypes.js 864 bytes {1} [built]
<del> [84] (webpack)/~/react/lib/ReactNodeTypes.js 1.06 kB {1} [built]
<del> [85] (webpack)/~/react/lib/ViewportMetrics.js 641 bytes {1} [built]
<del> [126] (webpack)/~/react/lib/ReactDOMSelection.js 6.81 kB {1} [built]
<del> [127] (webpack)/~/react/lib/ReactDOMTextComponent.js 6.14 kB {1} [built]
<del> [128] (webpack)/~/react/lib/ReactDOMTextarea.js 6.36 kB {1} [built]
<del> [129] (webpack)/~/react/lib/ReactDOMTreeTraversal.js 3.74 kB {1} [built]
<del> [132] (webpack)/~/react/lib/ReactEventEmitterMixin.js 1 kB {1} [built]
<del> [133] (webpack)/~/react/lib/ReactEventListener.js 5.38 kB {1} [built]
<del> [134] (webpack)/~/react/lib/ReactInjection.js 1.31 kB {1} [built]
<del> [135] (webpack)/~/react/lib/ReactMarkupChecksum.js 1.51 kB {1} [built]
<del> [137] (webpack)/~/react/lib/ReactOwner.js 3.6 kB {1} [built]
<del>chunk {2} fe372bb5ee58ecbb3049.js 49.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [37] (webpack)/~/react/lib/SyntheticEvent.js 8.73 kB {2} [built]
<del> [44] (webpack)/~/react/lib/SyntheticUIEvent.js 1.61 kB {2} [built]
<del> [48] (webpack)/~/react/lib/SyntheticMouseEvent.js 2.18 kB {2} [built]
<del> [86] (webpack)/~/react/lib/accumulateInto.js 1.73 kB {2} [built]
<del> [87] (webpack)/~/react/lib/forEachAccumulated.js 893 bytes {2} [built]
<del> [88] (webpack)/~/react/lib/getHostComponentFromComposite.js 789 bytes {2} [built]
<del> [144] (webpack)/~/react/lib/SimpleEventPlugin.js 18.9 kB {2} [built]
<del> [149] (webpack)/~/react/lib/SyntheticFocusEvent.js 1.1 kB {2} [built]
<del> [150] (webpack)/~/react/lib/SyntheticInputEvent.js 1.13 kB {2} [built]
<del> [151] (webpack)/~/react/lib/SyntheticKeyboardEvent.js 2.75 kB {2} [built]
<del> [152] (webpack)/~/react/lib/SyntheticTouchEvent.js 1.32 kB {2} [built]
<del> [153] (webpack)/~/react/lib/SyntheticTransitionEvent.js 1.27 kB {2} [built]
<del> [154] (webpack)/~/react/lib/SyntheticWheelEvent.js 1.98 kB {2} [built]
<del> [155] (webpack)/~/react/lib/adler32.js 1.22 kB {2} [built]
<del> [156] (webpack)/~/react/lib/checkReactTypeSpec.js 4.25 kB {2} [built]
<del>chunk {3} ba0a52412704eb5fca77.js 49.7 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [32] (webpack)/~/react/lib/ReactDOMComponentTree.js 6.2 kB {3} [built]
<del> [47] (webpack)/~/react/lib/ReactBrowserEventEmitter.js 12.5 kB {3} [built]
<del> [58] (webpack)/~/react/lib/ReactComponentEnvironment.js 1.72 kB {3} [built]
<del> [59] (webpack)/~/react/lib/ReactComponentTreeDevtool.js 7.12 kB {3} [built]
<del> [75] (webpack)/~/react/lib/ReactComponentBrowserEnvironment.js 1.24 kB {3} [built]
<del> [114] (webpack)/~/react/lib/ReactChildReconciler.js 6.05 kB {3} [built]
<del> [116] (webpack)/~/react/lib/ReactDOM.js 4.67 kB {3} [built]
<del> [119] (webpack)/~/react/lib/ReactDOMContainerInfo.js 1.01 kB {3} [built]
<del> [120] (webpack)/~/react/lib/ReactDOMEmptyComponent.js 1.95 kB {3} [built]
<del> [122] (webpack)/~/react/lib/ReactDOMIDOperations.js 996 bytes {3} [built]
<del> [124] (webpack)/~/react/lib/ReactDOMInstrumentation.js 571 bytes {3} [built]
<del> [125] (webpack)/~/react/lib/ReactDOMOption.js 3.73 kB {3} [built]
<del> [130] (webpack)/~/react/lib/ReactDefaultBatchingStrategy.js 1.92 kB {3} [built]
<del>chunk {4} 3e6efa14517e3078592b.js 30.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [45] (webpack)/~/react/lib/Transaction.js 9.61 kB {4} [built]
<del> [49] (webpack)/~/react/lib/escapeTextContentForBrowser.js 3.48 kB {4} [built]
<del> [63] (webpack)/~/react/lib/getEventCharCode.js 1.54 kB {4} [built]
<del> [64] (webpack)/~/react/lib/getEventModifierState.js 1.27 kB {4} [built]
<del> [65] (webpack)/~/react/lib/getEventTarget.js 1.04 kB {4} [built]
<del> [89] (webpack)/~/react/lib/getTextContentAccessor.js 997 bytes {4} [built]
<del> [157] (webpack)/~/react/lib/dangerousStyleValue.js 3.06 kB {4} [built]
<del> [158] (webpack)/~/react/lib/findDOMNode.js 2.49 kB {4} [built]
<del> [159] (webpack)/~/react/lib/flattenChildren.js 2.78 kB {4} [built]
<del> [160] (webpack)/~/react/lib/getEventKey.js 2.9 kB {4} [built]
<del> [161] (webpack)/~/react/lib/getNodeForCharacterOffset.js 1.66 kB {4} [built]
<del>chunk {5} 310186c03028a0b418f9.js 50 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [35] (webpack)/~/react/lib/ReactUpdates.js 9.6 kB {5} [built]
<del> [40] (webpack)/~/react/lib/ReactReconciler.js 6.96 kB {5} [built]
<del> [61] (webpack)/~/react/lib/ReactUpdateQueue.js 9.03 kB {5} [built]
<del> [62] (webpack)/~/react/lib/createMicrosoftUnsafeLocalFunction.js 864 bytes {5} [built]
<del> [141] (webpack)/~/react/lib/ReactServerUpdateQueue.js 4.95 kB {5} [built]
<del> [142] (webpack)/~/react/lib/SVGDOMPropertyConfig.js 7.36 kB {5} [built]
<del> [143] (webpack)/~/react/lib/SelectEventPlugin.js 6.49 kB {5} [built]
<del> [145] (webpack)/~/react/lib/SyntheticAnimationEvent.js 1.25 kB {5} [built]
<del> [146] (webpack)/~/react/lib/SyntheticClipboardEvent.js 1.21 kB {5} [built]
<del> [147] (webpack)/~/react/lib/SyntheticCompositionEvent.js 1.14 kB {5} [built]
<del> [148] (webpack)/~/react/lib/SyntheticDragEvent.js 1.11 kB {5} [built]
<del>chunk {6} 1040df4c2eee288dc9fc.js 32.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [50] (webpack)/~/react/lib/setInnerHTML.js 3.91 kB {6} [built]
<del> [66] (webpack)/~/react/lib/isEventSupported.js 1.97 kB {6} [built]
<del> [67] (webpack)/~/react/lib/shouldUpdateReactComponent.js 1.45 kB {6} [built]
<del> [68] (webpack)/~/react/lib/validateDOMNesting.js 13.1 kB {6} [built]
<del> [90] (webpack)/~/react/lib/instantiateReactComponent.js 5.68 kB {6} [built]
<del> [91] (webpack)/~/react/lib/isTextInputElement.js 1.08 kB {6} [built]
<del> [92] (webpack)/~/react/lib/setTextContent.js 1.4 kB {6} [built]
<del> [162] (webpack)/~/react/lib/getVendorPrefixedEventName.js 2.92 kB {6} [built]
<del> [163] (webpack)/~/react/lib/quoteAttributeValueForBrowser.js 749 bytes {6} [built]
<del> [164] (webpack)/~/react/lib/renderSubtreeIntoContainer.js 466 bytes {6} [built]
<del>chunk {7} 3068d4ff9b2dfb5c271a.js 49.7 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [38] (webpack)/~/react/lib/DOMLazyTree.js 3.75 kB {7} [built]
<del> [39] (webpack)/~/react/lib/DOMProperty.js 8.13 kB {7} [built]
<del> [46] (webpack)/~/react/lib/DisabledInputUtils.js 1.16 kB {7} [built]
<del> [53] (webpack)/~/react/lib/DOMChildrenOperations.js 7.3 kB {7} [built]
<del> [74] (webpack)/~/react/lib/DOMPropertyOperations.js 7.85 kB {7} [built]
<del> [76] (webpack)/~/react/lib/ReactDOMComponentFlags.js 471 bytes {7} [built]
<del> [107] (webpack)/~/react/lib/CSSPropertyOperations.js 6.85 kB {7} [built]
<del> [108] (webpack)/~/react/lib/ChangeEventPlugin.js 11.5 kB {7} [built]
<del> [109] (webpack)/~/react/lib/Danger.js 2.27 kB {7} [built]
<del> [121] (webpack)/~/react/lib/ReactDOMFeatureFlags.js 460 bytes {7} [built]
<del>chunk {8} 2223fbc79b19b9c04ab0.js 50 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [36] (webpack)/~/react/lib/EventConstants.js 2.17 kB {8} [built]
<del> [41] (webpack)/~/react/lib/EventPluginHub.js 8.23 kB {8} [built]
<del> [42] (webpack)/~/react/lib/EventPropagators.js 5.32 kB {8} [built]
<del> [55] (webpack)/~/react/lib/EventPluginRegistry.js 9.48 kB {8} [built]
<del> [56] (webpack)/~/react/lib/EventPluginUtils.js 8.17 kB {8} [built]
<del> [57] (webpack)/~/react/lib/LinkedValueUtils.js 5.28 kB {8} [built]
<del> [111] (webpack)/~/react/lib/EnterLeaveEventPlugin.js 3.46 kB {8} [built]
<del> [112] (webpack)/~/react/lib/FallbackCompositionState.js 2.47 kB {8} [built]
<del> [113] (webpack)/~/react/lib/HTMLDOMPropertyConfig.js 5.38 kB {8} [built]
<del>chunk {9} e43acdd06dbd3b718702.js 49.6 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [82] (webpack)/~/react/lib/ReactMount.js 24.6 kB {9} [built]
<del> [136] (webpack)/~/react/lib/ReactMultiChild.js 14.8 kB {9} [built]
<del> [138] (webpack)/~/react/lib/ReactReconcileTransaction.js 5.31 kB {9} [built]
<del> [139] (webpack)/~/react/lib/ReactRef.js 2.47 kB {9} [built]
<del> [140] (webpack)/~/react/lib/ReactServerRenderingTransaction.js 2.35 kB {9} [built]
<del>chunk {10} 60106e3f2b149c66854f.js 49.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [77] (webpack)/~/react/lib/ReactDOMSelect.js 6.9 kB {10} [built]
<del> [118] (webpack)/~/react/lib/ReactDOMComponent.js 39.5 kB {10} [built]
<del> [131] (webpack)/~/react/lib/ReactDefaultInjection.js 3.4 kB {10} [built]
<del>chunk {11} 90e7ca83098a54640244.js 49.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [78] (webpack)/~/react/lib/ReactEmptyComponent.js 743 bytes {11} [built]
<del> [115] (webpack)/~/react/lib/ReactCompositeComponent.js 37.5 kB {11} [built]
<del> [123] (webpack)/~/react/lib/ReactDOMInput.js 11.5 kB {11} [built]
<del>chunk {12} 26c97ecb935008096f9b.js 49.7 kB [entry] [rendered] [recorded]
<del> > aggressive-splitted main [31] ./example.js
<del> [0] (webpack)/~/fbjs/lib/warning.js 1.75 kB {12} [built]
<add>1f4709ab95bd7ea9c3e0.js 32.9 kB 7 [emitted]
<add>23210448cb21fea3eeb2.js 57.2 kB 0 [emitted]
<add>4e18f0d2e308513b1417.js 55.7 kB 2 [emitted]
<add>b666bfb4baf02f3293a0.js 42.1 kB 3 [emitted]
<add>b30ba15ed694bb94bdb2.js 54.4 kB 4 [emitted]
<add>16c333f8d4014b9a685c.js 52.6 kB 5 [emitted]
<add>041fe45e13f7a2a07bab.js 53 kB 6 [emitted]
<add>016a66632ae5537cd481.js 56.2 kB 1 [emitted]
<add>b10a81c1d9710eac5d86.js 52.5 kB 8 [emitted]
<add>8cbc6e8d682eb80603a5.js 51.5 kB 9 [emitted]
<add>06afeb557cc6ef65a8f0.js 50.7 kB 10 [emitted]
<add>ab283bc97ca37bbe1a90.js 50.4 kB 11 [emitted]
<add>6f64f3546f2ce353e672.js 60.5 kB 12 [emitted]
<add>c36d1ab7e821a58adba2.js 26.1 kB 13 [emitted]
<add>41edf76e7fc7929762c2.js 34.9 kB 14 [emitted]
<add>Entrypoint main = 6f64f3546f2ce353e672.js c36d1ab7e821a58adba2.js 41edf76e7fc7929762c2.js
<add>chunk {0} 23210448cb21fea3eeb2.js 50 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [25] (webpack)/~/react-dom/index.js 63 bytes {0} [built]
<add> [32] (webpack)/~/fbjs/lib/ExecutionEnvironment.js 1.06 kB {0} [built]
<add> [50] (webpack)/~/fbjs/lib/shallowEqual.js 1.74 kB {0} [built]
<add> [51] (webpack)/~/process/browser.js 5.3 kB {0} [built]
<add> [53] (webpack)/~/react/lib/DOMNamespaces.js 538 bytes {0} [built]
<add> [68] (webpack)/~/fbjs/lib/EventListener.js 2.67 kB {0} [built]
<add> [69] (webpack)/~/fbjs/lib/focusNode.js 704 bytes {0} [built]
<add> [70] (webpack)/~/fbjs/lib/getActiveElement.js 895 bytes {0} [built]
<add> [71] (webpack)/~/react/lib/CSSProperty.js 3.69 kB {0} [built]
<add> [91] (webpack)/~/fbjs/lib/camelize.js 708 bytes {0} [built]
<add> [92] (webpack)/~/fbjs/lib/camelizeStyleName.js 1 kB {0} [built]
<add> [93] (webpack)/~/fbjs/lib/containsNode.js 1.05 kB {0} [built]
<add> [94] (webpack)/~/fbjs/lib/createArrayFromMixed.js 4.11 kB {0} [built]
<add> [95] (webpack)/~/fbjs/lib/createNodesFromMarkup.js 2.66 kB {0} [built]
<add> [96] (webpack)/~/fbjs/lib/getMarkupWrap.js 3.04 kB {0} [built]
<add> [97] (webpack)/~/fbjs/lib/getUnboundedScrollPosition.js 1.05 kB {0} [built]
<add> [98] (webpack)/~/fbjs/lib/hyphenate.js 800 bytes {0} [built]
<add> [99] (webpack)/~/fbjs/lib/hyphenateStyleName.js 974 bytes {0} [built]
<add> [100] (webpack)/~/fbjs/lib/isNode.js 693 bytes {0} [built]
<add> [101] (webpack)/~/fbjs/lib/isTextNode.js 605 bytes {0} [built]
<add> [102] (webpack)/~/fbjs/lib/memoizeStringOnly.js 698 bytes {0} [built]
<add> [103] (webpack)/~/react/lib/AutoFocusUtils.js 633 bytes {0} [built]
<add> [104] (webpack)/~/react/lib/BeforeInputEventPlugin.js 14 kB {0} [built]
<add> [108] (webpack)/~/react/lib/DefaultEventPluginOrder.js 1.26 kB {0} [built]
<add>chunk {1} 016a66632ae5537cd481.js 49.6 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [42] (webpack)/~/react/lib/ReactInstanceMap.js 1.26 kB {1} [built]
<add> [59] (webpack)/~/react/lib/ReactErrorUtils.js 2.26 kB {1} [built]
<add> [76] (webpack)/~/react/lib/ReactEmptyComponent.js 743 bytes {1} [built]
<add> [77] (webpack)/~/react/lib/ReactFeatureFlags.js 665 bytes {1} [built]
<add> [78] (webpack)/~/react/lib/ReactHostComponent.js 2.42 kB {1} [built]
<add> [79] (webpack)/~/react/lib/ReactInputSelection.js 4.31 kB {1} [built]
<add> [81] (webpack)/~/react/lib/ReactMultiChildUpdateTypes.js 864 bytes {1} [built]
<add> [82] (webpack)/~/react/lib/ReactNodeTypes.js 1.06 kB {1} [built]
<add> [83] (webpack)/~/react/lib/ViewportMetrics.js 641 bytes {1} [built]
<add> [124] (webpack)/~/react/lib/ReactDOMSelection.js 6.81 kB {1} [built]
<add> [125] (webpack)/~/react/lib/ReactDOMTextComponent.js 5.86 kB {1} [built]
<add> [126] (webpack)/~/react/lib/ReactDOMTextarea.js 6.36 kB {1} [built]
<add> [127] (webpack)/~/react/lib/ReactDOMTreeTraversal.js 3.74 kB {1} [built]
<add> [129] (webpack)/~/react/lib/ReactDefaultInjection.js 3.4 kB {1} [built]
<add> [130] (webpack)/~/react/lib/ReactEventEmitterMixin.js 1 kB {1} [built]
<add> [131] (webpack)/~/react/lib/ReactEventListener.js 5.38 kB {1} [built]
<add> [132] (webpack)/~/react/lib/ReactInjection.js 1.31 kB {1} [built]
<add> [133] (webpack)/~/react/lib/ReactMarkupChecksum.js 1.51 kB {1} [built]
<add>chunk {2} 4e18f0d2e308513b1417.js 49.7 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [36] (webpack)/~/react/lib/SyntheticEvent.js 9.21 kB {2} [built]
<add> [43] (webpack)/~/react/lib/SyntheticUIEvent.js 1.61 kB {2} [built]
<add> [47] (webpack)/~/react/lib/SyntheticMouseEvent.js 2.18 kB {2} [built]
<add> [61] (webpack)/~/react/lib/createMicrosoftUnsafeLocalFunction.js 864 bytes {2} [built]
<add> [84] (webpack)/~/react/lib/accumulateInto.js 1.73 kB {2} [built]
<add> [85] (webpack)/~/react/lib/forEachAccumulated.js 893 bytes {2} [built]
<add> [142] (webpack)/~/react/lib/SimpleEventPlugin.js 18.9 kB {2} [built]
<add> [144] (webpack)/~/react/lib/SyntheticClipboardEvent.js 1.21 kB {2} [built]
<add> [145] (webpack)/~/react/lib/SyntheticCompositionEvent.js 1.14 kB {2} [built]
<add> [146] (webpack)/~/react/lib/SyntheticDragEvent.js 1.11 kB {2} [built]
<add> [147] (webpack)/~/react/lib/SyntheticFocusEvent.js 1.1 kB {2} [built]
<add> [148] (webpack)/~/react/lib/SyntheticInputEvent.js 1.13 kB {2} [built]
<add> [149] (webpack)/~/react/lib/SyntheticKeyboardEvent.js 2.75 kB {2} [built]
<add> [150] (webpack)/~/react/lib/SyntheticTouchEvent.js 1.32 kB {2} [built]
<add> [151] (webpack)/~/react/lib/SyntheticTransitionEvent.js 1.27 kB {2} [built]
<add> [152] (webpack)/~/react/lib/SyntheticWheelEvent.js 1.98 kB {2} [built]
<add> [153] (webpack)/~/react/lib/adler32.js 1.22 kB {2} [built]
<add>chunk {3} b666bfb4baf02f3293a0.js 37.4 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [49] (webpack)/~/react/lib/setInnerHTML.js 3.89 kB {3} [built]
<add> [63] (webpack)/~/react/lib/getEventModifierState.js 1.27 kB {3} [built]
<add> [64] (webpack)/~/react/lib/getEventTarget.js 1.04 kB {3} [built]
<add> [65] (webpack)/~/react/lib/isEventSupported.js 1.97 kB {3} [built]
<add> [66] (webpack)/~/react/lib/shouldUpdateReactComponent.js 1.45 kB {3} [built]
<add> [67] (webpack)/~/react/lib/validateDOMNesting.js 13.7 kB {3} [built]
<add> [87] (webpack)/~/react/lib/getTextContentAccessor.js 997 bytes {3} [built]
<add> [88] (webpack)/~/react/lib/instantiateReactComponent.js 4.81 kB {3} [built]
<add> [89] (webpack)/~/react/lib/isTextInputElement.js 1.08 kB {3} [built]
<add> [90] (webpack)/~/react/lib/setTextContent.js 1.4 kB {3} [built]
<add> [159] (webpack)/~/react/lib/getNodeForCharacterOffset.js 1.66 kB {3} [built]
<add> [160] (webpack)/~/react/lib/getVendorPrefixedEventName.js 2.92 kB {3} [built]
<add> [161] (webpack)/~/react/lib/quoteAttributeValueForBrowser.js 749 bytes {3} [built]
<add> [162] (webpack)/~/react/lib/renderSubtreeIntoContainer.js 466 bytes {3} [built]
<add>chunk {4} b30ba15ed694bb94bdb2.js 49.9 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [35] (webpack)/~/react/lib/EventConstants.js 2.17 kB {4} [built]
<add> [40] (webpack)/~/react/lib/EventPluginHub.js 8.32 kB {4} [built]
<add> [41] (webpack)/~/react/lib/EventPropagators.js 5.32 kB {4} [built]
<add> [45] (webpack)/~/react/lib/DisabledInputUtils.js 1.16 kB {4} [built]
<add> [54] (webpack)/~/react/lib/EventPluginRegistry.js 9.48 kB {4} [built]
<add> [55] (webpack)/~/react/lib/EventPluginUtils.js 8.17 kB {4} [built]
<add> [57] (webpack)/~/react/lib/ReactComponentEnvironment.js 1.34 kB {4} [built]
<add> [74] (webpack)/~/react/lib/ReactDOMComponentFlags.js 471 bytes {4} [built]
<add> [109] (webpack)/~/react/lib/EnterLeaveEventPlugin.js 3.46 kB {4} [built]
<add> [110] (webpack)/~/react/lib/FallbackCompositionState.js 2.47 kB {4} [built]
<add> [111] (webpack)/~/react/lib/HTMLDOMPropertyConfig.js 5.49 kB {4} [built]
<add> [113] (webpack)/~/react/lib/ReactComponentBrowserEnvironment.js 958 bytes {4} [built]
<add> [116] (webpack)/~/react/lib/ReactDOMButton.js 634 bytes {4} [built]
<add> [120] (webpack)/~/react/lib/ReactDOMFeatureFlags.js 460 bytes {4} [built]
<add>chunk {5} 16c333f8d4014b9a685c.js 49.8 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [34] (webpack)/~/react/lib/ReactUpdates.js 9.6 kB {5} [built]
<add> [39] (webpack)/~/react/lib/ReactReconciler.js 6.25 kB {5} [built]
<add> [60] (webpack)/~/react/lib/ReactUpdateQueue.js 9.03 kB {5} [built]
<add> [137] (webpack)/~/react/lib/ReactRef.js 2.47 kB {5} [built]
<add> [138] (webpack)/~/react/lib/ReactServerRenderingTransaction.js 2.35 kB {5} [built]
<add> [139] (webpack)/~/react/lib/ReactServerUpdateQueue.js 4.95 kB {5} [built]
<add> [140] (webpack)/~/react/lib/SVGDOMPropertyConfig.js 7.36 kB {5} [built]
<add> [141] (webpack)/~/react/lib/SelectEventPlugin.js 6.51 kB {5} [built]
<add> [143] (webpack)/~/react/lib/SyntheticAnimationEvent.js 1.25 kB {5} [built]
<add>chunk {6} 041fe45e13f7a2a07bab.js 49.6 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [31] (webpack)/~/react/lib/ReactDOMComponentTree.js 6.2 kB {6} [built]
<add> [46] (webpack)/~/react/lib/ReactBrowserEventEmitter.js 12.9 kB {6} [built]
<add> [56] (webpack)/~/react/lib/LinkedValueUtils.js 5.28 kB {6} [built]
<add> [58] (webpack)/~/react/lib/ReactComponentTreeHook.js 10.1 kB {6} [built]
<add> [112] (webpack)/~/react/lib/ReactChildReconciler.js 6.13 kB {6} [built]
<add> [115] (webpack)/~/react/lib/ReactDOM.js 5.08 kB {6} [built]
<add> [118] (webpack)/~/react/lib/ReactDOMContainerInfo.js 1.01 kB {6} [built]
<add> [119] (webpack)/~/react/lib/ReactDOMEmptyComponent.js 1.94 kB {6} [built]
<add> [121] (webpack)/~/react/lib/ReactDOMIDOperations.js 996 bytes {6} [built]
<add>chunk {7} 1f4709ab95bd7ea9c3e0.js 30.1 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [44] (webpack)/~/react/lib/Transaction.js 9.61 kB {7} [built]
<add> [48] (webpack)/~/react/lib/escapeTextContentForBrowser.js 3.48 kB {7} [built]
<add> [62] (webpack)/~/react/lib/getEventCharCode.js 1.54 kB {7} [built]
<add> [154] (webpack)/~/react/lib/checkReactTypeSpec.js 4.23 kB {7} [built]
<add> [155] (webpack)/~/react/lib/dangerousStyleValue.js 3.06 kB {7} [built]
<add> [156] (webpack)/~/react/lib/findDOMNode.js 2.49 kB {7} [built]
<add> [157] (webpack)/~/react/lib/flattenChildren.js 2.79 kB {7} [built]
<add> [158] (webpack)/~/react/lib/getEventKey.js 2.9 kB {7} [built]
<add>chunk {8} b10a81c1d9710eac5d86.js 49.9 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [37] (webpack)/~/react/lib/DOMLazyTree.js 3.75 kB {8} [built]
<add> [38] (webpack)/~/react/lib/DOMProperty.js 8.13 kB {8} [built]
<add> [52] (webpack)/~/react/lib/DOMChildrenOperations.js 7.3 kB {8} [built]
<add> [72] (webpack)/~/react/lib/CallbackQueue.js 2.73 kB {8} [built]
<add> [73] (webpack)/~/react/lib/DOMPropertyOperations.js 7.41 kB {8} [built]
<add> [105] (webpack)/~/react/lib/CSSPropertyOperations.js 6.85 kB {8} [built]
<add> [106] (webpack)/~/react/lib/ChangeEventPlugin.js 11.5 kB {8} [built]
<add> [107] (webpack)/~/react/lib/Danger.js 2.27 kB {8} [built]
<add>chunk {9} 8cbc6e8d682eb80603a5.js 49.9 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [80] (webpack)/~/react/lib/ReactMount.js 25.5 kB {9} [built]
<add> [86] (webpack)/~/react/lib/getHostComponentFromComposite.js 789 bytes {9} [built]
<add> [134] (webpack)/~/react/lib/ReactMultiChild.js 14.8 kB {9} [built]
<add> [135] (webpack)/~/react/lib/ReactOwner.js 3.6 kB {9} [built]
<add> [136] (webpack)/~/react/lib/ReactReconcileTransaction.js 5.31 kB {9} [built]
<add>chunk {10} 06afeb557cc6ef65a8f0.js 50 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [33] (webpack)/~/react/lib/ReactInstrumentation.js 559 bytes {10} [built]
<add> [114] (webpack)/~/react/lib/ReactCompositeComponent.js 35.4 kB {10} [built]
<add> [122] (webpack)/~/react/lib/ReactDOMInput.js 12.1 kB {10} [built]
<add> [128] (webpack)/~/react/lib/ReactDefaultBatchingStrategy.js 1.92 kB {10} [built]
<add>chunk {11} ab283bc97ca37bbe1a90.js 49.6 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [75] (webpack)/~/react/lib/ReactDOMSelect.js 6.94 kB {11} [built]
<add> [117] (webpack)/~/react/lib/ReactDOMComponent.js 38.9 kB {11} [built]
<add> [123] (webpack)/~/react/lib/ReactDOMOption.js 3.73 kB {11} [built]
<add>chunk {12} 6f64f3546f2ce353e672.js 50 kB [entry] [rendered] [recorded]
<add> > aggressive-splitted main [30] ./example.js
<add> [0] (webpack)/~/fbjs/lib/warning.js 2.1 kB {12} [built]
<add> [1] (webpack)/~/react/lib/ReactElement.js 11.7 kB {12} [built]
<ide> [2] (webpack)/~/fbjs/lib/invariant.js 1.49 kB {12} [built]
<add> [4] (webpack)/~/object-assign/index.js 1.99 kB {12} [built]
<ide> [5] (webpack)/~/fbjs/lib/emptyFunction.js 1.08 kB {12} [built]
<ide> [6] (webpack)/~/fbjs/lib/emptyObject.js 458 bytes {12} [built]
<add> [7] (webpack)/~/react/lib/ReactComponent.js 4.64 kB {12} [built]
<add> [8] (webpack)/~/react/lib/ReactNoopUpdateQueue.js 3.4 kB {12} [built]
<add> [9] (webpack)/~/react/lib/ReactCurrentOwner.js 657 bytes {12} [built]
<ide> [10] (webpack)/~/fbjs/lib/keyMirror.js 1.25 kB {12} [built]
<del> [14] (webpack)/~/react/react.js 56 bytes {12} [built]
<add> [11] (webpack)/~/react/lib/ReactPropTypeLocationNames.js 614 bytes {12} [built]
<ide> [15] (webpack)/~/fbjs/lib/keyOf.js 1.1 kB {12} [built]
<ide> [16] (webpack)/~/react/lib/PooledClass.js 3.59 kB {12} [built]
<ide> [17] (webpack)/~/react/lib/KeyEscapeUtils.js 1.33 kB {12} [built]
<ide> [21] (webpack)/~/react/lib/ReactChildren.js 6.22 kB {12} [built]
<del> [22] (webpack)/~/react/lib/ReactClass.js 27.2 kB {12} [built]
<del> [25] (webpack)/~/fbjs/lib/mapObject.js 1.44 kB {12} [built]
<del> [27] (webpack)/~/react/lib/React.js 2.72 kB {12} [built]
<del>chunk {13} 31e30b54bea15a36c45b.js 30.3 kB [initial] [rendered]
<del> > aggressive-splitted main [31] ./example.js
<add> [26] (webpack)/~/react/lib/React.js 2.72 kB {12} [built]
<add> [27] (webpack)/~/react/lib/ReactDOMFactories.js 5.56 kB {12} [built]
<add>chunk {13} c36d1ab7e821a58adba2.js 22.8 kB [initial] [rendered]
<add> > aggressive-splitted main [30] ./example.js
<ide> [3] (webpack)/~/react/lib/reactProdInvariant.js 1.27 kB {13} [built]
<del> [4] (webpack)/~/react/~/object-assign/index.js 1.99 kB {13} [built]
<ide> [12] (webpack)/~/react/lib/canDefineProperty.js 632 bytes {13} [built]
<ide> [13] (webpack)/~/react/lib/getIteratorFn.js 1.15 kB {13} [built]
<add> [14] (webpack)/~/react/react.js 56 bytes {13} [built]
<add> [18] (webpack)/~/react/lib/ReactPropTypeLocations.js 552 bytes {13} [built]
<ide> [19] (webpack)/~/react/lib/ReactPropTypesSecret.js 478 bytes {13} [built]
<del> [20] (webpack)/~/react/lib/traverseAllChildren.js 6.74 kB {13} [built]
<del> [23] (webpack)/~/react/lib/ReactPropTypes.js 14.9 kB {13} [built]
<add> [23] (webpack)/~/react/lib/ReactPropTypes.js 15.6 kB {13} [built]
<ide> [24] (webpack)/~/react/lib/ReactVersion.js 382 bytes {13} [built]
<del> [29] (webpack)/~/react/lib/ReactPureComponent.js 1.36 kB {13} [built]
<del> [30] (webpack)/~/react/lib/onlyChild.js 1.36 kB {13} [built]
<del> [31] ./example.js 44 bytes {13} [built]
<del>chunk {14} 26934d90a868e3c64b52.js 25.7 kB [initial] [rendered]
<del> > aggressive-splitted main [31] ./example.js
<del> [1] (webpack)/~/react/lib/ReactElement.js 12.5 kB {14} [built]
<del> [7] (webpack)/~/react/lib/ReactComponent.js 4.64 kB {14} [built]
<del> [8] (webpack)/~/react/lib/ReactNoopUpdateQueue.js 3.4 kB {14} [built]
<del> [9] (webpack)/~/react/lib/ReactCurrentOwner.js 657 bytes {14} [built]
<del> [11] (webpack)/~/react/lib/ReactPropTypeLocationNames.js 614 bytes {14} [built]
<del> [18] (webpack)/~/react/lib/ReactPropTypeLocations.js 552 bytes {14} [built]
<del> [28] (webpack)/~/react/lib/ReactDOMFactories.js 3.34 kB {14} [built]
<add> [28] (webpack)/~/react/lib/ReactPureComponent.js 1.36 kB {13} [built]
<add> [29] (webpack)/~/react/lib/onlyChild.js 1.37 kB {13} [built]
<add>chunk {14} 41edf76e7fc7929762c2.js 34 kB [initial] [rendered]
<add> > aggressive-splitted main [30] ./example.js
<add> [20] (webpack)/~/react/lib/traverseAllChildren.js 6.74 kB {14} [built]
<add> [22] (webpack)/~/react/lib/ReactClass.js 27.2 kB {14} [built]
<add> [30] ./example.js 42 bytes {14} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 5184413f3a374e7b5936
<del>Version: webpack 2.1.0-beta.22
<del>Time: 5468ms
<add>Hash: d585873c75fc6a13acdd
<add>Version: webpack 2.1.0-beta.25
<add>Time: 4632ms
<ide> Asset Size Chunks Chunk Names
<del>3068d4ff9b2dfb5c271a.js 9.88 kB 7 [emitted]
<del>1063f7bead1953d50075.js 11.8 kB 0 [emitted]
<del>fe372bb5ee58ecbb3049.js 15.1 kB 2 [emitted]
<del>ba0a52412704eb5fca77.js 12.3 kB 3 [emitted]
<del>3e6efa14517e3078592b.js 4.61 kB 4 [emitted]
<del>310186c03028a0b418f9.js 13.2 kB 5 [emitted]
<del>1040df4c2eee288dc9fc.js 4.52 kB 6 [emitted]
<del>b161c72948813fe0486f.js 10.9 kB 1 [emitted]
<del>2223fbc79b19b9c04ab0.js 12.8 kB 8 [emitted]
<del>e43acdd06dbd3b718702.js 8.53 kB 9 [emitted]
<del>60106e3f2b149c66854f.js 12.7 kB 10 [emitted]
<del>90e7ca83098a54640244.js 9.79 kB 11 [emitted]
<del>26c97ecb935008096f9b.js 9.7 kB 12 [emitted]
<del>31e30b54bea15a36c45b.js 7.37 kB 13 [emitted]
<del>26934d90a868e3c64b52.js 4.53 kB 14 [emitted]
<del>Entrypoint main = 26c97ecb935008096f9b.js 26934d90a868e3c64b52.js 31e30b54bea15a36c45b.js
<del>chunk {0} 1063f7bead1953d50075.js 49.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [26] (webpack)/~/react-dom/index.js 63 bytes {0} [built]
<del> [33] (webpack)/~/fbjs/lib/ExecutionEnvironment.js 1.06 kB {0} [built]
<del> [51] (webpack)/~/fbjs/lib/shallowEqual.js 1.66 kB {0} [built]
<del> [52] (webpack)/~/process/browser.js 2.06 kB {0} [built]
<del> [54] (webpack)/~/react/lib/DOMNamespaces.js 538 bytes {0} [built]
<del> [69] (webpack)/~/fbjs/lib/EventListener.js 2.67 kB {0} [built]
<del> [70] (webpack)/~/fbjs/lib/focusNode.js 704 bytes {0} [built]
<del> [71] (webpack)/~/fbjs/lib/getActiveElement.js 895 bytes {0} [built]
<del> [72] (webpack)/~/react/lib/CSSProperty.js 3.69 kB {0} [built]
<del> [73] (webpack)/~/react/lib/CallbackQueue.js 2.73 kB {0} [built]
<del> [93] (webpack)/~/fbjs/lib/camelize.js 708 bytes {0} [built]
<del> [94] (webpack)/~/fbjs/lib/camelizeStyleName.js 1 kB {0} [built]
<del> [95] (webpack)/~/fbjs/lib/containsNode.js 1.05 kB {0} [built]
<del> [96] (webpack)/~/fbjs/lib/createArrayFromMixed.js 4.11 kB {0} [built]
<del> [97] (webpack)/~/fbjs/lib/createNodesFromMarkup.js 2.66 kB {0} [built]
<del> [98] (webpack)/~/fbjs/lib/getMarkupWrap.js 3.04 kB {0} [built]
<del> [99] (webpack)/~/fbjs/lib/getUnboundedScrollPosition.js 1.05 kB {0} [built]
<del> [100] (webpack)/~/fbjs/lib/hyphenate.js 800 bytes {0} [built]
<del> [101] (webpack)/~/fbjs/lib/hyphenateStyleName.js 974 bytes {0} [built]
<del> [102] (webpack)/~/fbjs/lib/isNode.js 693 bytes {0} [built]
<del> [103] (webpack)/~/fbjs/lib/isTextNode.js 605 bytes {0} [built]
<del> [104] (webpack)/~/fbjs/lib/memoizeStringOnly.js 698 bytes {0} [built]
<del> [105] (webpack)/~/react/lib/AutoFocusUtils.js 633 bytes {0} [built]
<del> [106] (webpack)/~/react/lib/BeforeInputEventPlugin.js 13.9 kB {0} [built]
<del> [110] (webpack)/~/react/lib/DefaultEventPluginOrder.js 1.26 kB {0} [built]
<del> [117] (webpack)/~/react/lib/ReactDOMButton.js 634 bytes {0} [built]
<del>chunk {1} b161c72948813fe0486f.js 49.9 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [34] (webpack)/~/react/lib/ReactInstrumentation.js 559 bytes {1} [built]
<del> [43] (webpack)/~/react/lib/ReactInstanceMap.js 1.26 kB {1} [built]
<del> [60] (webpack)/~/react/lib/ReactErrorUtils.js 2.26 kB {1} [built]
<del> [79] (webpack)/~/react/lib/ReactFeatureFlags.js 665 bytes {1} [built]
<del> [80] (webpack)/~/react/lib/ReactHostComponent.js 2.42 kB {1} [built]
<del> [81] (webpack)/~/react/lib/ReactInputSelection.js 4.31 kB {1} [built]
<del> [83] (webpack)/~/react/lib/ReactMultiChildUpdateTypes.js 864 bytes {1} [built]
<del> [84] (webpack)/~/react/lib/ReactNodeTypes.js 1.06 kB {1} [built]
<del> [85] (webpack)/~/react/lib/ViewportMetrics.js 641 bytes {1} [built]
<del> [126] (webpack)/~/react/lib/ReactDOMSelection.js 6.81 kB {1} [built]
<del> [127] (webpack)/~/react/lib/ReactDOMTextComponent.js 6.14 kB {1} [built]
<del> [128] (webpack)/~/react/lib/ReactDOMTextarea.js 6.36 kB {1} [built]
<del> [129] (webpack)/~/react/lib/ReactDOMTreeTraversal.js 3.74 kB {1} [built]
<del> [132] (webpack)/~/react/lib/ReactEventEmitterMixin.js 1 kB {1} [built]
<del> [133] (webpack)/~/react/lib/ReactEventListener.js 5.38 kB {1} [built]
<del> [134] (webpack)/~/react/lib/ReactInjection.js 1.31 kB {1} [built]
<del> [135] (webpack)/~/react/lib/ReactMarkupChecksum.js 1.51 kB {1} [built]
<del> [137] (webpack)/~/react/lib/ReactOwner.js 3.6 kB {1} [built]
<del>chunk {2} fe372bb5ee58ecbb3049.js 49.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [37] (webpack)/~/react/lib/SyntheticEvent.js 8.73 kB {2} [built]
<del> [44] (webpack)/~/react/lib/SyntheticUIEvent.js 1.61 kB {2} [built]
<del> [48] (webpack)/~/react/lib/SyntheticMouseEvent.js 2.18 kB {2} [built]
<del> [86] (webpack)/~/react/lib/accumulateInto.js 1.73 kB {2} [built]
<del> [87] (webpack)/~/react/lib/forEachAccumulated.js 893 bytes {2} [built]
<del> [88] (webpack)/~/react/lib/getHostComponentFromComposite.js 789 bytes {2} [built]
<del> [144] (webpack)/~/react/lib/SimpleEventPlugin.js 18.9 kB {2} [built]
<del> [149] (webpack)/~/react/lib/SyntheticFocusEvent.js 1.1 kB {2} [built]
<del> [150] (webpack)/~/react/lib/SyntheticInputEvent.js 1.13 kB {2} [built]
<del> [151] (webpack)/~/react/lib/SyntheticKeyboardEvent.js 2.75 kB {2} [built]
<del> [152] (webpack)/~/react/lib/SyntheticTouchEvent.js 1.32 kB {2} [built]
<del> [153] (webpack)/~/react/lib/SyntheticTransitionEvent.js 1.27 kB {2} [built]
<del> [154] (webpack)/~/react/lib/SyntheticWheelEvent.js 1.98 kB {2} [built]
<del> [155] (webpack)/~/react/lib/adler32.js 1.22 kB {2} [built]
<del> [156] (webpack)/~/react/lib/checkReactTypeSpec.js 4.25 kB {2} [built]
<del>chunk {3} ba0a52412704eb5fca77.js 49.7 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [32] (webpack)/~/react/lib/ReactDOMComponentTree.js 6.2 kB {3} [built]
<del> [47] (webpack)/~/react/lib/ReactBrowserEventEmitter.js 12.5 kB {3} [built]
<del> [58] (webpack)/~/react/lib/ReactComponentEnvironment.js 1.72 kB {3} [built]
<del> [59] (webpack)/~/react/lib/ReactComponentTreeDevtool.js 7.12 kB {3} [built]
<del> [75] (webpack)/~/react/lib/ReactComponentBrowserEnvironment.js 1.24 kB {3} [built]
<del> [114] (webpack)/~/react/lib/ReactChildReconciler.js 6.05 kB {3} [built]
<del> [116] (webpack)/~/react/lib/ReactDOM.js 4.67 kB {3} [built]
<del> [119] (webpack)/~/react/lib/ReactDOMContainerInfo.js 1.01 kB {3} [built]
<del> [120] (webpack)/~/react/lib/ReactDOMEmptyComponent.js 1.95 kB {3} [built]
<del> [122] (webpack)/~/react/lib/ReactDOMIDOperations.js 996 bytes {3} [built]
<del> [124] (webpack)/~/react/lib/ReactDOMInstrumentation.js 571 bytes {3} [built]
<del> [125] (webpack)/~/react/lib/ReactDOMOption.js 3.73 kB {3} [built]
<del> [130] (webpack)/~/react/lib/ReactDefaultBatchingStrategy.js 1.92 kB {3} [built]
<del>chunk {4} 3e6efa14517e3078592b.js 30.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [45] (webpack)/~/react/lib/Transaction.js 9.61 kB {4} [built]
<del> [49] (webpack)/~/react/lib/escapeTextContentForBrowser.js 3.48 kB {4} [built]
<del> [63] (webpack)/~/react/lib/getEventCharCode.js 1.54 kB {4} [built]
<del> [64] (webpack)/~/react/lib/getEventModifierState.js 1.27 kB {4} [built]
<del> [65] (webpack)/~/react/lib/getEventTarget.js 1.04 kB {4} [built]
<del> [89] (webpack)/~/react/lib/getTextContentAccessor.js 997 bytes {4} [built]
<del> [157] (webpack)/~/react/lib/dangerousStyleValue.js 3.06 kB {4} [built]
<del> [158] (webpack)/~/react/lib/findDOMNode.js 2.49 kB {4} [built]
<del> [159] (webpack)/~/react/lib/flattenChildren.js 2.78 kB {4} [built]
<del> [160] (webpack)/~/react/lib/getEventKey.js 2.9 kB {4} [built]
<del> [161] (webpack)/~/react/lib/getNodeForCharacterOffset.js 1.66 kB {4} [built]
<del>chunk {5} 310186c03028a0b418f9.js 50 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [35] (webpack)/~/react/lib/ReactUpdates.js 9.6 kB {5} [built]
<del> [40] (webpack)/~/react/lib/ReactReconciler.js 6.96 kB {5} [built]
<del> [61] (webpack)/~/react/lib/ReactUpdateQueue.js 9.03 kB {5} [built]
<del> [62] (webpack)/~/react/lib/createMicrosoftUnsafeLocalFunction.js 864 bytes {5} [built]
<del> [141] (webpack)/~/react/lib/ReactServerUpdateQueue.js 4.95 kB {5} [built]
<del> [142] (webpack)/~/react/lib/SVGDOMPropertyConfig.js 7.36 kB {5} [built]
<del> [143] (webpack)/~/react/lib/SelectEventPlugin.js 6.49 kB {5} [built]
<del> [145] (webpack)/~/react/lib/SyntheticAnimationEvent.js 1.25 kB {5} [built]
<del> [146] (webpack)/~/react/lib/SyntheticClipboardEvent.js 1.21 kB {5} [built]
<del> [147] (webpack)/~/react/lib/SyntheticCompositionEvent.js 1.14 kB {5} [built]
<del> [148] (webpack)/~/react/lib/SyntheticDragEvent.js 1.11 kB {5} [built]
<del>chunk {6} 1040df4c2eee288dc9fc.js 32.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [50] (webpack)/~/react/lib/setInnerHTML.js 3.91 kB {6} [built]
<del> [66] (webpack)/~/react/lib/isEventSupported.js 1.97 kB {6} [built]
<del> [67] (webpack)/~/react/lib/shouldUpdateReactComponent.js 1.45 kB {6} [built]
<del> [68] (webpack)/~/react/lib/validateDOMNesting.js 13.1 kB {6} [built]
<del> [90] (webpack)/~/react/lib/instantiateReactComponent.js 5.68 kB {6} [built]
<del> [91] (webpack)/~/react/lib/isTextInputElement.js 1.08 kB {6} [built]
<del> [92] (webpack)/~/react/lib/setTextContent.js 1.4 kB {6} [built]
<del> [162] (webpack)/~/react/lib/getVendorPrefixedEventName.js 2.92 kB {6} [built]
<del> [163] (webpack)/~/react/lib/quoteAttributeValueForBrowser.js 749 bytes {6} [built]
<del> [164] (webpack)/~/react/lib/renderSubtreeIntoContainer.js 466 bytes {6} [built]
<del>chunk {7} 3068d4ff9b2dfb5c271a.js 49.7 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [38] (webpack)/~/react/lib/DOMLazyTree.js 3.75 kB {7} [built]
<del> [39] (webpack)/~/react/lib/DOMProperty.js 8.13 kB {7} [built]
<del> [46] (webpack)/~/react/lib/DisabledInputUtils.js 1.16 kB {7} [built]
<del> [53] (webpack)/~/react/lib/DOMChildrenOperations.js 7.3 kB {7} [built]
<del> [74] (webpack)/~/react/lib/DOMPropertyOperations.js 7.85 kB {7} [built]
<del> [76] (webpack)/~/react/lib/ReactDOMComponentFlags.js 471 bytes {7} [built]
<del> [107] (webpack)/~/react/lib/CSSPropertyOperations.js 6.85 kB {7} [built]
<del> [108] (webpack)/~/react/lib/ChangeEventPlugin.js 11.5 kB {7} [built]
<del> [109] (webpack)/~/react/lib/Danger.js 2.27 kB {7} [built]
<del> [121] (webpack)/~/react/lib/ReactDOMFeatureFlags.js 460 bytes {7} [built]
<del>chunk {8} 2223fbc79b19b9c04ab0.js 50 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [36] (webpack)/~/react/lib/EventConstants.js 2.17 kB {8} [built]
<del> [41] (webpack)/~/react/lib/EventPluginHub.js 8.23 kB {8} [built]
<del> [42] (webpack)/~/react/lib/EventPropagators.js 5.32 kB {8} [built]
<del> [55] (webpack)/~/react/lib/EventPluginRegistry.js 9.48 kB {8} [built]
<del> [56] (webpack)/~/react/lib/EventPluginUtils.js 8.17 kB {8} [built]
<del> [57] (webpack)/~/react/lib/LinkedValueUtils.js 5.28 kB {8} [built]
<del> [111] (webpack)/~/react/lib/EnterLeaveEventPlugin.js 3.46 kB {8} [built]
<del> [112] (webpack)/~/react/lib/FallbackCompositionState.js 2.47 kB {8} [built]
<del> [113] (webpack)/~/react/lib/HTMLDOMPropertyConfig.js 5.38 kB {8} [built]
<del>chunk {9} e43acdd06dbd3b718702.js 49.6 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [82] (webpack)/~/react/lib/ReactMount.js 24.6 kB {9} [built]
<del> [136] (webpack)/~/react/lib/ReactMultiChild.js 14.8 kB {9} [built]
<del> [138] (webpack)/~/react/lib/ReactReconcileTransaction.js 5.31 kB {9} [built]
<del> [139] (webpack)/~/react/lib/ReactRef.js 2.47 kB {9} [built]
<del> [140] (webpack)/~/react/lib/ReactServerRenderingTransaction.js 2.35 kB {9} [built]
<del>chunk {10} 60106e3f2b149c66854f.js 49.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [77] (webpack)/~/react/lib/ReactDOMSelect.js 6.9 kB {10} [built]
<del> [118] (webpack)/~/react/lib/ReactDOMComponent.js 39.5 kB {10} [built]
<del> [131] (webpack)/~/react/lib/ReactDefaultInjection.js 3.4 kB {10} [built]
<del>chunk {11} 90e7ca83098a54640244.js 49.8 kB {13} {12} {14} [rendered] [recorded]
<del> > aggressive-splitted [31] ./example.js 2:0-22
<del> [78] (webpack)/~/react/lib/ReactEmptyComponent.js 743 bytes {11} [built]
<del> [115] (webpack)/~/react/lib/ReactCompositeComponent.js 37.5 kB {11} [built]
<del> [123] (webpack)/~/react/lib/ReactDOMInput.js 11.5 kB {11} [built]
<del>chunk {12} 26c97ecb935008096f9b.js 49.7 kB [entry] [rendered] [recorded]
<del> > aggressive-splitted main [31] ./example.js
<del> [0] (webpack)/~/fbjs/lib/warning.js 1.75 kB {12} [built]
<add>1f4709ab95bd7ea9c3e0.js 4.05 kB 7 [emitted]
<add>23210448cb21fea3eeb2.js 11.7 kB 0 [emitted]
<add>4e18f0d2e308513b1417.js 15.3 kB 2 [emitted]
<add>b666bfb4baf02f3293a0.js 5.45 kB 3 [emitted]
<add>b30ba15ed694bb94bdb2.js 12.3 kB 4 [emitted]
<add>16c333f8d4014b9a685c.js 13.6 kB 5 [emitted]
<add>041fe45e13f7a2a07bab.js 12.9 kB 6 [emitted]
<add>016a66632ae5537cd481.js 11.5 kB 1 [emitted]
<add>b10a81c1d9710eac5d86.js 10.1 kB 8 [emitted]
<add>8cbc6e8d682eb80603a5.js 8.04 kB 9 [emitted]
<add>06afeb557cc6ef65a8f0.js 10.4 kB 10 [emitted]
<add>ab283bc97ca37bbe1a90.js 12.7 kB 11 [emitted]
<add>6f64f3546f2ce353e672.js 11.6 kB 12 [emitted]
<add>c36d1ab7e821a58adba2.js 5.47 kB 13 [emitted]
<add>41edf76e7fc7929762c2.js 4.69 kB 14 [emitted]
<add>Entrypoint main = 6f64f3546f2ce353e672.js c36d1ab7e821a58adba2.js 41edf76e7fc7929762c2.js
<add>chunk {0} 23210448cb21fea3eeb2.js 50 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [25] (webpack)/~/react-dom/index.js 63 bytes {0} [built]
<add> [32] (webpack)/~/fbjs/lib/ExecutionEnvironment.js 1.06 kB {0} [built]
<add> [50] (webpack)/~/fbjs/lib/shallowEqual.js 1.74 kB {0} [built]
<add> [51] (webpack)/~/process/browser.js 5.3 kB {0} [built]
<add> [53] (webpack)/~/react/lib/DOMNamespaces.js 538 bytes {0} [built]
<add> [68] (webpack)/~/fbjs/lib/EventListener.js 2.67 kB {0} [built]
<add> [69] (webpack)/~/fbjs/lib/focusNode.js 704 bytes {0} [built]
<add> [70] (webpack)/~/fbjs/lib/getActiveElement.js 895 bytes {0} [built]
<add> [71] (webpack)/~/react/lib/CSSProperty.js 3.69 kB {0} [built]
<add> [91] (webpack)/~/fbjs/lib/camelize.js 708 bytes {0} [built]
<add> [92] (webpack)/~/fbjs/lib/camelizeStyleName.js 1 kB {0} [built]
<add> [93] (webpack)/~/fbjs/lib/containsNode.js 1.05 kB {0} [built]
<add> [94] (webpack)/~/fbjs/lib/createArrayFromMixed.js 4.11 kB {0} [built]
<add> [95] (webpack)/~/fbjs/lib/createNodesFromMarkup.js 2.66 kB {0} [built]
<add> [96] (webpack)/~/fbjs/lib/getMarkupWrap.js 3.04 kB {0} [built]
<add> [97] (webpack)/~/fbjs/lib/getUnboundedScrollPosition.js 1.05 kB {0} [built]
<add> [98] (webpack)/~/fbjs/lib/hyphenate.js 800 bytes {0} [built]
<add> [99] (webpack)/~/fbjs/lib/hyphenateStyleName.js 974 bytes {0} [built]
<add> [100] (webpack)/~/fbjs/lib/isNode.js 693 bytes {0} [built]
<add> [101] (webpack)/~/fbjs/lib/isTextNode.js 605 bytes {0} [built]
<add> [102] (webpack)/~/fbjs/lib/memoizeStringOnly.js 698 bytes {0} [built]
<add> [103] (webpack)/~/react/lib/AutoFocusUtils.js 633 bytes {0} [built]
<add> [104] (webpack)/~/react/lib/BeforeInputEventPlugin.js 14 kB {0} [built]
<add> [108] (webpack)/~/react/lib/DefaultEventPluginOrder.js 1.26 kB {0} [built]
<add>chunk {1} 016a66632ae5537cd481.js 49.6 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [42] (webpack)/~/react/lib/ReactInstanceMap.js 1.26 kB {1} [built]
<add> [59] (webpack)/~/react/lib/ReactErrorUtils.js 2.26 kB {1} [built]
<add> [76] (webpack)/~/react/lib/ReactEmptyComponent.js 743 bytes {1} [built]
<add> [77] (webpack)/~/react/lib/ReactFeatureFlags.js 665 bytes {1} [built]
<add> [78] (webpack)/~/react/lib/ReactHostComponent.js 2.42 kB {1} [built]
<add> [79] (webpack)/~/react/lib/ReactInputSelection.js 4.31 kB {1} [built]
<add> [81] (webpack)/~/react/lib/ReactMultiChildUpdateTypes.js 864 bytes {1} [built]
<add> [82] (webpack)/~/react/lib/ReactNodeTypes.js 1.06 kB {1} [built]
<add> [83] (webpack)/~/react/lib/ViewportMetrics.js 641 bytes {1} [built]
<add> [124] (webpack)/~/react/lib/ReactDOMSelection.js 6.81 kB {1} [built]
<add> [125] (webpack)/~/react/lib/ReactDOMTextComponent.js 5.86 kB {1} [built]
<add> [126] (webpack)/~/react/lib/ReactDOMTextarea.js 6.36 kB {1} [built]
<add> [127] (webpack)/~/react/lib/ReactDOMTreeTraversal.js 3.74 kB {1} [built]
<add> [129] (webpack)/~/react/lib/ReactDefaultInjection.js 3.4 kB {1} [built]
<add> [130] (webpack)/~/react/lib/ReactEventEmitterMixin.js 1 kB {1} [built]
<add> [131] (webpack)/~/react/lib/ReactEventListener.js 5.38 kB {1} [built]
<add> [132] (webpack)/~/react/lib/ReactInjection.js 1.31 kB {1} [built]
<add> [133] (webpack)/~/react/lib/ReactMarkupChecksum.js 1.51 kB {1} [built]
<add>chunk {2} 4e18f0d2e308513b1417.js 49.7 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [36] (webpack)/~/react/lib/SyntheticEvent.js 9.21 kB {2} [built]
<add> [43] (webpack)/~/react/lib/SyntheticUIEvent.js 1.61 kB {2} [built]
<add> [47] (webpack)/~/react/lib/SyntheticMouseEvent.js 2.18 kB {2} [built]
<add> [61] (webpack)/~/react/lib/createMicrosoftUnsafeLocalFunction.js 864 bytes {2} [built]
<add> [84] (webpack)/~/react/lib/accumulateInto.js 1.73 kB {2} [built]
<add> [85] (webpack)/~/react/lib/forEachAccumulated.js 893 bytes {2} [built]
<add> [142] (webpack)/~/react/lib/SimpleEventPlugin.js 18.9 kB {2} [built]
<add> [144] (webpack)/~/react/lib/SyntheticClipboardEvent.js 1.21 kB {2} [built]
<add> [145] (webpack)/~/react/lib/SyntheticCompositionEvent.js 1.14 kB {2} [built]
<add> [146] (webpack)/~/react/lib/SyntheticDragEvent.js 1.11 kB {2} [built]
<add> [147] (webpack)/~/react/lib/SyntheticFocusEvent.js 1.1 kB {2} [built]
<add> [148] (webpack)/~/react/lib/SyntheticInputEvent.js 1.13 kB {2} [built]
<add> [149] (webpack)/~/react/lib/SyntheticKeyboardEvent.js 2.75 kB {2} [built]
<add> [150] (webpack)/~/react/lib/SyntheticTouchEvent.js 1.32 kB {2} [built]
<add> [151] (webpack)/~/react/lib/SyntheticTransitionEvent.js 1.27 kB {2} [built]
<add> [152] (webpack)/~/react/lib/SyntheticWheelEvent.js 1.98 kB {2} [built]
<add> [153] (webpack)/~/react/lib/adler32.js 1.22 kB {2} [built]
<add>chunk {3} b666bfb4baf02f3293a0.js 37.4 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [49] (webpack)/~/react/lib/setInnerHTML.js 3.89 kB {3} [built]
<add> [63] (webpack)/~/react/lib/getEventModifierState.js 1.27 kB {3} [built]
<add> [64] (webpack)/~/react/lib/getEventTarget.js 1.04 kB {3} [built]
<add> [65] (webpack)/~/react/lib/isEventSupported.js 1.97 kB {3} [built]
<add> [66] (webpack)/~/react/lib/shouldUpdateReactComponent.js 1.45 kB {3} [built]
<add> [67] (webpack)/~/react/lib/validateDOMNesting.js 13.7 kB {3} [built]
<add> [87] (webpack)/~/react/lib/getTextContentAccessor.js 997 bytes {3} [built]
<add> [88] (webpack)/~/react/lib/instantiateReactComponent.js 4.81 kB {3} [built]
<add> [89] (webpack)/~/react/lib/isTextInputElement.js 1.08 kB {3} [built]
<add> [90] (webpack)/~/react/lib/setTextContent.js 1.4 kB {3} [built]
<add> [159] (webpack)/~/react/lib/getNodeForCharacterOffset.js 1.66 kB {3} [built]
<add> [160] (webpack)/~/react/lib/getVendorPrefixedEventName.js 2.92 kB {3} [built]
<add> [161] (webpack)/~/react/lib/quoteAttributeValueForBrowser.js 749 bytes {3} [built]
<add> [162] (webpack)/~/react/lib/renderSubtreeIntoContainer.js 466 bytes {3} [built]
<add>chunk {4} b30ba15ed694bb94bdb2.js 49.9 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [35] (webpack)/~/react/lib/EventConstants.js 2.17 kB {4} [built]
<add> [40] (webpack)/~/react/lib/EventPluginHub.js 8.32 kB {4} [built]
<add> [41] (webpack)/~/react/lib/EventPropagators.js 5.32 kB {4} [built]
<add> [45] (webpack)/~/react/lib/DisabledInputUtils.js 1.16 kB {4} [built]
<add> [54] (webpack)/~/react/lib/EventPluginRegistry.js 9.48 kB {4} [built]
<add> [55] (webpack)/~/react/lib/EventPluginUtils.js 8.17 kB {4} [built]
<add> [57] (webpack)/~/react/lib/ReactComponentEnvironment.js 1.34 kB {4} [built]
<add> [74] (webpack)/~/react/lib/ReactDOMComponentFlags.js 471 bytes {4} [built]
<add> [109] (webpack)/~/react/lib/EnterLeaveEventPlugin.js 3.46 kB {4} [built]
<add> [110] (webpack)/~/react/lib/FallbackCompositionState.js 2.47 kB {4} [built]
<add> [111] (webpack)/~/react/lib/HTMLDOMPropertyConfig.js 5.49 kB {4} [built]
<add> [113] (webpack)/~/react/lib/ReactComponentBrowserEnvironment.js 958 bytes {4} [built]
<add> [116] (webpack)/~/react/lib/ReactDOMButton.js 634 bytes {4} [built]
<add> [120] (webpack)/~/react/lib/ReactDOMFeatureFlags.js 460 bytes {4} [built]
<add>chunk {5} 16c333f8d4014b9a685c.js 49.8 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [34] (webpack)/~/react/lib/ReactUpdates.js 9.6 kB {5} [built]
<add> [39] (webpack)/~/react/lib/ReactReconciler.js 6.25 kB {5} [built]
<add> [60] (webpack)/~/react/lib/ReactUpdateQueue.js 9.03 kB {5} [built]
<add> [137] (webpack)/~/react/lib/ReactRef.js 2.47 kB {5} [built]
<add> [138] (webpack)/~/react/lib/ReactServerRenderingTransaction.js 2.35 kB {5} [built]
<add> [139] (webpack)/~/react/lib/ReactServerUpdateQueue.js 4.95 kB {5} [built]
<add> [140] (webpack)/~/react/lib/SVGDOMPropertyConfig.js 7.36 kB {5} [built]
<add> [141] (webpack)/~/react/lib/SelectEventPlugin.js 6.51 kB {5} [built]
<add> [143] (webpack)/~/react/lib/SyntheticAnimationEvent.js 1.25 kB {5} [built]
<add>chunk {6} 041fe45e13f7a2a07bab.js 49.6 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [31] (webpack)/~/react/lib/ReactDOMComponentTree.js 6.2 kB {6} [built]
<add> [46] (webpack)/~/react/lib/ReactBrowserEventEmitter.js 12.9 kB {6} [built]
<add> [56] (webpack)/~/react/lib/LinkedValueUtils.js 5.28 kB {6} [built]
<add> [58] (webpack)/~/react/lib/ReactComponentTreeHook.js 10.1 kB {6} [built]
<add> [112] (webpack)/~/react/lib/ReactChildReconciler.js 6.13 kB {6} [built]
<add> [115] (webpack)/~/react/lib/ReactDOM.js 5.08 kB {6} [built]
<add> [118] (webpack)/~/react/lib/ReactDOMContainerInfo.js 1.01 kB {6} [built]
<add> [119] (webpack)/~/react/lib/ReactDOMEmptyComponent.js 1.94 kB {6} [built]
<add> [121] (webpack)/~/react/lib/ReactDOMIDOperations.js 996 bytes {6} [built]
<add>chunk {7} 1f4709ab95bd7ea9c3e0.js 30.1 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [44] (webpack)/~/react/lib/Transaction.js 9.61 kB {7} [built]
<add> [48] (webpack)/~/react/lib/escapeTextContentForBrowser.js 3.48 kB {7} [built]
<add> [62] (webpack)/~/react/lib/getEventCharCode.js 1.54 kB {7} [built]
<add> [154] (webpack)/~/react/lib/checkReactTypeSpec.js 4.23 kB {7} [built]
<add> [155] (webpack)/~/react/lib/dangerousStyleValue.js 3.06 kB {7} [built]
<add> [156] (webpack)/~/react/lib/findDOMNode.js 2.49 kB {7} [built]
<add> [157] (webpack)/~/react/lib/flattenChildren.js 2.79 kB {7} [built]
<add> [158] (webpack)/~/react/lib/getEventKey.js 2.9 kB {7} [built]
<add>chunk {8} b10a81c1d9710eac5d86.js 49.9 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [37] (webpack)/~/react/lib/DOMLazyTree.js 3.75 kB {8} [built]
<add> [38] (webpack)/~/react/lib/DOMProperty.js 8.13 kB {8} [built]
<add> [52] (webpack)/~/react/lib/DOMChildrenOperations.js 7.3 kB {8} [built]
<add> [72] (webpack)/~/react/lib/CallbackQueue.js 2.73 kB {8} [built]
<add> [73] (webpack)/~/react/lib/DOMPropertyOperations.js 7.41 kB {8} [built]
<add> [105] (webpack)/~/react/lib/CSSPropertyOperations.js 6.85 kB {8} [built]
<add> [106] (webpack)/~/react/lib/ChangeEventPlugin.js 11.5 kB {8} [built]
<add> [107] (webpack)/~/react/lib/Danger.js 2.27 kB {8} [built]
<add>chunk {9} 8cbc6e8d682eb80603a5.js 49.9 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [80] (webpack)/~/react/lib/ReactMount.js 25.5 kB {9} [built]
<add> [86] (webpack)/~/react/lib/getHostComponentFromComposite.js 789 bytes {9} [built]
<add> [134] (webpack)/~/react/lib/ReactMultiChild.js 14.8 kB {9} [built]
<add> [135] (webpack)/~/react/lib/ReactOwner.js 3.6 kB {9} [built]
<add> [136] (webpack)/~/react/lib/ReactReconcileTransaction.js 5.31 kB {9} [built]
<add>chunk {10} 06afeb557cc6ef65a8f0.js 50 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [33] (webpack)/~/react/lib/ReactInstrumentation.js 559 bytes {10} [built]
<add> [114] (webpack)/~/react/lib/ReactCompositeComponent.js 35.4 kB {10} [built]
<add> [122] (webpack)/~/react/lib/ReactDOMInput.js 12.1 kB {10} [built]
<add> [128] (webpack)/~/react/lib/ReactDefaultBatchingStrategy.js 1.92 kB {10} [built]
<add>chunk {11} ab283bc97ca37bbe1a90.js 49.6 kB {14} {12} {13} [rendered] [recorded]
<add> > aggressive-splitted [30] ./example.js 2:0-22
<add> [75] (webpack)/~/react/lib/ReactDOMSelect.js 6.94 kB {11} [built]
<add> [117] (webpack)/~/react/lib/ReactDOMComponent.js 38.9 kB {11} [built]
<add> [123] (webpack)/~/react/lib/ReactDOMOption.js 3.73 kB {11} [built]
<add>chunk {12} 6f64f3546f2ce353e672.js 50 kB [entry] [rendered] [recorded]
<add> > aggressive-splitted main [30] ./example.js
<add> [0] (webpack)/~/fbjs/lib/warning.js 2.1 kB {12} [built]
<add> [1] (webpack)/~/react/lib/ReactElement.js 11.7 kB {12} [built]
<ide> [2] (webpack)/~/fbjs/lib/invariant.js 1.49 kB {12} [built]
<add> [4] (webpack)/~/object-assign/index.js 1.99 kB {12} [built]
<ide> [5] (webpack)/~/fbjs/lib/emptyFunction.js 1.08 kB {12} [built]
<ide> [6] (webpack)/~/fbjs/lib/emptyObject.js 458 bytes {12} [built]
<add> [7] (webpack)/~/react/lib/ReactComponent.js 4.64 kB {12} [built]
<add> [8] (webpack)/~/react/lib/ReactNoopUpdateQueue.js 3.4 kB {12} [built]
<add> [9] (webpack)/~/react/lib/ReactCurrentOwner.js 657 bytes {12} [built]
<ide> [10] (webpack)/~/fbjs/lib/keyMirror.js 1.25 kB {12} [built]
<del> [14] (webpack)/~/react/react.js 56 bytes {12} [built]
<add> [11] (webpack)/~/react/lib/ReactPropTypeLocationNames.js 614 bytes {12} [built]
<ide> [15] (webpack)/~/fbjs/lib/keyOf.js 1.1 kB {12} [built]
<ide> [16] (webpack)/~/react/lib/PooledClass.js 3.59 kB {12} [built]
<ide> [17] (webpack)/~/react/lib/KeyEscapeUtils.js 1.33 kB {12} [built]
<ide> [21] (webpack)/~/react/lib/ReactChildren.js 6.22 kB {12} [built]
<del> [22] (webpack)/~/react/lib/ReactClass.js 27.2 kB {12} [built]
<del> [25] (webpack)/~/fbjs/lib/mapObject.js 1.44 kB {12} [built]
<del> [27] (webpack)/~/react/lib/React.js 2.72 kB {12} [built]
<del>chunk {13} 31e30b54bea15a36c45b.js 30.3 kB [initial] [rendered]
<del> > aggressive-splitted main [31] ./example.js
<add> [26] (webpack)/~/react/lib/React.js 2.72 kB {12} [built]
<add> [27] (webpack)/~/react/lib/ReactDOMFactories.js 5.56 kB {12} [built]
<add>chunk {13} c36d1ab7e821a58adba2.js 22.8 kB [initial] [rendered]
<add> > aggressive-splitted main [30] ./example.js
<ide> [3] (webpack)/~/react/lib/reactProdInvariant.js 1.27 kB {13} [built]
<del> [4] (webpack)/~/react/~/object-assign/index.js 1.99 kB {13} [built]
<ide> [12] (webpack)/~/react/lib/canDefineProperty.js 632 bytes {13} [built]
<ide> [13] (webpack)/~/react/lib/getIteratorFn.js 1.15 kB {13} [built]
<add> [14] (webpack)/~/react/react.js 56 bytes {13} [built]
<add> [18] (webpack)/~/react/lib/ReactPropTypeLocations.js 552 bytes {13} [built]
<ide> [19] (webpack)/~/react/lib/ReactPropTypesSecret.js 478 bytes {13} [built]
<del> [20] (webpack)/~/react/lib/traverseAllChildren.js 6.74 kB {13} [built]
<del> [23] (webpack)/~/react/lib/ReactPropTypes.js 14.9 kB {13} [built]
<add> [23] (webpack)/~/react/lib/ReactPropTypes.js 15.6 kB {13} [built]
<ide> [24] (webpack)/~/react/lib/ReactVersion.js 382 bytes {13} [built]
<del> [29] (webpack)/~/react/lib/ReactPureComponent.js 1.36 kB {13} [built]
<del> [30] (webpack)/~/react/lib/onlyChild.js 1.36 kB {13} [built]
<del> [31] ./example.js 44 bytes {13} [built]
<del>chunk {14} 26934d90a868e3c64b52.js 25.7 kB [initial] [rendered]
<del> > aggressive-splitted main [31] ./example.js
<del> [1] (webpack)/~/react/lib/ReactElement.js 12.5 kB {14} [built]
<del> [7] (webpack)/~/react/lib/ReactComponent.js 4.64 kB {14} [built]
<del> [8] (webpack)/~/react/lib/ReactNoopUpdateQueue.js 3.4 kB {14} [built]
<del> [9] (webpack)/~/react/lib/ReactCurrentOwner.js 657 bytes {14} [built]
<del> [11] (webpack)/~/react/lib/ReactPropTypeLocationNames.js 614 bytes {14} [built]
<del> [18] (webpack)/~/react/lib/ReactPropTypeLocations.js 552 bytes {14} [built]
<del> [28] (webpack)/~/react/lib/ReactDOMFactories.js 3.34 kB {14} [built]
<add> [28] (webpack)/~/react/lib/ReactPureComponent.js 1.36 kB {13} [built]
<add> [29] (webpack)/~/react/lib/onlyChild.js 1.37 kB {13} [built]
<add>chunk {14} 41edf76e7fc7929762c2.js 34 kB [initial] [rendered]
<add> > aggressive-splitted main [30] ./example.js
<add> [20] (webpack)/~/react/lib/traverseAllChildren.js 6.74 kB {14} [built]
<add> [22] (webpack)/~/react/lib/ReactClass.js 27.2 kB {14} [built]
<add> [30] ./example.js 42 bytes {14} [built]
<ide> ```
<ide>
<ide> ## Records
<ide> chunk {14} 26934d90a868e3c64b52.js 25.7 kB [initial] [rendered]
<ide> {
<ide> "modules": {
<ide> "byIdentifier": {
<del> "..\\..\\node_modules\\fbjs\\lib\\warning.js": 0,
<del> "..\\..\\node_modules\\react\\lib\\ReactElement.js": 1,
<del> "..\\..\\node_modules\\fbjs\\lib\\invariant.js": 2,
<del> "..\\..\\node_modules\\react\\lib\\reactProdInvariant.js": 3,
<del> "..\\..\\node_modules\\react\\node_modules\\object-assign\\index.js": 4,
<del> "..\\..\\node_modules\\fbjs\\lib\\emptyFunction.js": 5,
<del> "..\\..\\node_modules\\fbjs\\lib\\emptyObject.js": 6,
<del> "..\\..\\node_modules\\react\\lib\\ReactComponent.js": 7,
<del> "..\\..\\node_modules\\react\\lib\\ReactNoopUpdateQueue.js": 8,
<del> "..\\..\\node_modules\\react\\lib\\ReactCurrentOwner.js": 9,
<del> "..\\..\\node_modules\\fbjs\\lib\\keyMirror.js": 10,
<del> "..\\..\\node_modules\\react\\lib\\ReactPropTypeLocationNames.js": 11,
<del> "..\\..\\node_modules\\react\\lib\\canDefineProperty.js": 12,
<del> "..\\..\\node_modules\\react\\lib\\getIteratorFn.js": 13,
<del> "..\\..\\node_modules\\react\\react.js": 14,
<del> "..\\..\\node_modules\\fbjs\\lib\\keyOf.js": 15,
<del> "..\\..\\node_modules\\react\\lib\\PooledClass.js": 16,
<del> "..\\..\\node_modules\\react\\lib\\KeyEscapeUtils.js": 17,
<del> "..\\..\\node_modules\\react\\lib\\ReactPropTypeLocations.js": 18,
<del> "..\\..\\node_modules\\react\\lib\\ReactPropTypesSecret.js": 19,
<del> "..\\..\\node_modules\\react\\lib\\traverseAllChildren.js": 20,
<del> "..\\..\\node_modules\\react\\lib\\ReactChildren.js": 21,
<del> "..\\..\\node_modules\\react\\lib\\ReactClass.js": 22,
<del> "..\\..\\node_modules\\react\\lib\\ReactPropTypes.js": 23,
<del> "..\\..\\node_modules\\react\\lib\\ReactVersion.js": 24,
<del> "..\\..\\node_modules\\fbjs\\lib\\mapObject.js": 25,
<del> "..\\..\\node_modules\\react-dom\\index.js": 26,
<del> "..\\..\\node_modules\\react\\lib\\React.js": 27,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMFactories.js": 28,
<del> "..\\..\\node_modules\\react\\lib\\ReactPureComponent.js": 29,
<del> "..\\..\\node_modules\\react\\lib\\onlyChild.js": 30,
<del> "example.js": 31,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMComponentTree.js": 32,
<del> "..\\..\\node_modules\\fbjs\\lib\\ExecutionEnvironment.js": 33,
<del> "..\\..\\node_modules\\react\\lib\\ReactInstrumentation.js": 34,
<del> "..\\..\\node_modules\\react\\lib\\ReactUpdates.js": 35,
<del> "..\\..\\node_modules\\react\\lib\\EventConstants.js": 36,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticEvent.js": 37,
<del> "..\\..\\node_modules\\react\\lib\\DOMLazyTree.js": 38,
<del> "..\\..\\node_modules\\react\\lib\\DOMProperty.js": 39,
<del> "..\\..\\node_modules\\react\\lib\\ReactReconciler.js": 40,
<del> "..\\..\\node_modules\\react\\lib\\EventPluginHub.js": 41,
<del> "..\\..\\node_modules\\react\\lib\\EventPropagators.js": 42,
<del> "..\\..\\node_modules\\react\\lib\\ReactInstanceMap.js": 43,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticUIEvent.js": 44,
<del> "..\\..\\node_modules\\react\\lib\\Transaction.js": 45,
<del> "..\\..\\node_modules\\react\\lib\\DisabledInputUtils.js": 46,
<del> "..\\..\\node_modules\\react\\lib\\ReactBrowserEventEmitter.js": 47,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticMouseEvent.js": 48,
<del> "..\\..\\node_modules\\react\\lib\\escapeTextContentForBrowser.js": 49,
<del> "..\\..\\node_modules\\react\\lib\\setInnerHTML.js": 50,
<del> "..\\..\\node_modules\\fbjs\\lib\\shallowEqual.js": 51,
<del> "..\\..\\node_modules\\process\\browser.js": 52,
<del> "..\\..\\node_modules\\react\\lib\\DOMChildrenOperations.js": 53,
<del> "..\\..\\node_modules\\react\\lib\\DOMNamespaces.js": 54,
<del> "..\\..\\node_modules\\react\\lib\\EventPluginRegistry.js": 55,
<del> "..\\..\\node_modules\\react\\lib\\EventPluginUtils.js": 56,
<del> "..\\..\\node_modules\\react\\lib\\LinkedValueUtils.js": 57,
<del> "..\\..\\node_modules\\react\\lib\\ReactComponentEnvironment.js": 58,
<del> "..\\..\\node_modules\\react\\lib\\ReactComponentTreeDevtool.js": 59,
<del> "..\\..\\node_modules\\react\\lib\\ReactErrorUtils.js": 60,
<del> "..\\..\\node_modules\\react\\lib\\ReactUpdateQueue.js": 61,
<del> "..\\..\\node_modules\\react\\lib\\createMicrosoftUnsafeLocalFunction.js": 62,
<del> "..\\..\\node_modules\\react\\lib\\getEventCharCode.js": 63,
<del> "..\\..\\node_modules\\react\\lib\\getEventModifierState.js": 64,
<del> "..\\..\\node_modules\\react\\lib\\getEventTarget.js": 65,
<del> "..\\..\\node_modules\\react\\lib\\isEventSupported.js": 66,
<del> "..\\..\\node_modules\\react\\lib\\shouldUpdateReactComponent.js": 67,
<del> "..\\..\\node_modules\\react\\lib\\validateDOMNesting.js": 68,
<del> "..\\..\\node_modules\\fbjs\\lib\\EventListener.js": 69,
<del> "..\\..\\node_modules\\fbjs\\lib\\focusNode.js": 70,
<del> "..\\..\\node_modules\\fbjs\\lib\\getActiveElement.js": 71,
<del> "..\\..\\node_modules\\react\\lib\\CSSProperty.js": 72,
<del> "..\\..\\node_modules\\react\\lib\\CallbackQueue.js": 73,
<del> "..\\..\\node_modules\\react\\lib\\DOMPropertyOperations.js": 74,
<del> "..\\..\\node_modules\\react\\lib\\ReactComponentBrowserEnvironment.js": 75,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMComponentFlags.js": 76,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMSelect.js": 77,
<del> "..\\..\\node_modules\\react\\lib\\ReactEmptyComponent.js": 78,
<del> "..\\..\\node_modules\\react\\lib\\ReactFeatureFlags.js": 79,
<del> "..\\..\\node_modules\\react\\lib\\ReactHostComponent.js": 80,
<del> "..\\..\\node_modules\\react\\lib\\ReactInputSelection.js": 81,
<del> "..\\..\\node_modules\\react\\lib\\ReactMount.js": 82,
<del> "..\\..\\node_modules\\react\\lib\\ReactMultiChildUpdateTypes.js": 83,
<del> "..\\..\\node_modules\\react\\lib\\ReactNodeTypes.js": 84,
<del> "..\\..\\node_modules\\react\\lib\\ViewportMetrics.js": 85,
<del> "..\\..\\node_modules\\react\\lib\\accumulateInto.js": 86,
<del> "..\\..\\node_modules\\react\\lib\\forEachAccumulated.js": 87,
<del> "..\\..\\node_modules\\react\\lib\\getHostComponentFromComposite.js": 88,
<del> "..\\..\\node_modules\\react\\lib\\getTextContentAccessor.js": 89,
<del> "..\\..\\node_modules\\react\\lib\\instantiateReactComponent.js": 90,
<del> "..\\..\\node_modules\\react\\lib\\isTextInputElement.js": 91,
<del> "..\\..\\node_modules\\react\\lib\\setTextContent.js": 92,
<del> "..\\..\\node_modules\\fbjs\\lib\\camelize.js": 93,
<del> "..\\..\\node_modules\\fbjs\\lib\\camelizeStyleName.js": 94,
<del> "..\\..\\node_modules\\fbjs\\lib\\containsNode.js": 95,
<del> "..\\..\\node_modules\\fbjs\\lib\\createArrayFromMixed.js": 96,
<del> "..\\..\\node_modules\\fbjs\\lib\\createNodesFromMarkup.js": 97,
<del> "..\\..\\node_modules\\fbjs\\lib\\getMarkupWrap.js": 98,
<del> "..\\..\\node_modules\\fbjs\\lib\\getUnboundedScrollPosition.js": 99,
<del> "..\\..\\node_modules\\fbjs\\lib\\hyphenate.js": 100,
<del> "..\\..\\node_modules\\fbjs\\lib\\hyphenateStyleName.js": 101,
<del> "..\\..\\node_modules\\fbjs\\lib\\isNode.js": 102,
<del> "..\\..\\node_modules\\fbjs\\lib\\isTextNode.js": 103,
<del> "..\\..\\node_modules\\fbjs\\lib\\memoizeStringOnly.js": 104,
<del> "..\\..\\node_modules\\react\\lib\\AutoFocusUtils.js": 105,
<del> "..\\..\\node_modules\\react\\lib\\BeforeInputEventPlugin.js": 106,
<del> "..\\..\\node_modules\\react\\lib\\CSSPropertyOperations.js": 107,
<del> "..\\..\\node_modules\\react\\lib\\ChangeEventPlugin.js": 108,
<del> "..\\..\\node_modules\\react\\lib\\Danger.js": 109,
<del> "..\\..\\node_modules\\react\\lib\\DefaultEventPluginOrder.js": 110,
<del> "..\\..\\node_modules\\react\\lib\\EnterLeaveEventPlugin.js": 111,
<del> "..\\..\\node_modules\\react\\lib\\FallbackCompositionState.js": 112,
<del> "..\\..\\node_modules\\react\\lib\\HTMLDOMPropertyConfig.js": 113,
<del> "..\\..\\node_modules\\react\\lib\\ReactChildReconciler.js": 114,
<del> "..\\..\\node_modules\\react\\lib\\ReactCompositeComponent.js": 115,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOM.js": 116,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMButton.js": 117,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMComponent.js": 118,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMContainerInfo.js": 119,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMEmptyComponent.js": 120,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMFeatureFlags.js": 121,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMIDOperations.js": 122,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMInput.js": 123,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMInstrumentation.js": 124,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMOption.js": 125,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMSelection.js": 126,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMTextComponent.js": 127,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMTextarea.js": 128,
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMTreeTraversal.js": 129,
<del> "..\\..\\node_modules\\react\\lib\\ReactDefaultBatchingStrategy.js": 130,
<del> "..\\..\\node_modules\\react\\lib\\ReactDefaultInjection.js": 131,
<del> "..\\..\\node_modules\\react\\lib\\ReactEventEmitterMixin.js": 132,
<del> "..\\..\\node_modules\\react\\lib\\ReactEventListener.js": 133,
<del> "..\\..\\node_modules\\react\\lib\\ReactInjection.js": 134,
<del> "..\\..\\node_modules\\react\\lib\\ReactMarkupChecksum.js": 135,
<del> "..\\..\\node_modules\\react\\lib\\ReactMultiChild.js": 136,
<del> "..\\..\\node_modules\\react\\lib\\ReactOwner.js": 137,
<del> "..\\..\\node_modules\\react\\lib\\ReactReconcileTransaction.js": 138,
<del> "..\\..\\node_modules\\react\\lib\\ReactRef.js": 139,
<del> "..\\..\\node_modules\\react\\lib\\ReactServerRenderingTransaction.js": 140,
<del> "..\\..\\node_modules\\react\\lib\\ReactServerUpdateQueue.js": 141,
<del> "..\\..\\node_modules\\react\\lib\\SVGDOMPropertyConfig.js": 142,
<del> "..\\..\\node_modules\\react\\lib\\SelectEventPlugin.js": 143,
<del> "..\\..\\node_modules\\react\\lib\\SimpleEventPlugin.js": 144,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticAnimationEvent.js": 145,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticClipboardEvent.js": 146,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticCompositionEvent.js": 147,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticDragEvent.js": 148,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticFocusEvent.js": 149,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticInputEvent.js": 150,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticKeyboardEvent.js": 151,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticTouchEvent.js": 152,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticTransitionEvent.js": 153,
<del> "..\\..\\node_modules\\react\\lib\\SyntheticWheelEvent.js": 154,
<del> "..\\..\\node_modules\\react\\lib\\adler32.js": 155,
<del> "..\\..\\node_modules\\react\\lib\\checkReactTypeSpec.js": 156,
<del> "..\\..\\node_modules\\react\\lib\\dangerousStyleValue.js": 157,
<del> "..\\..\\node_modules\\react\\lib\\findDOMNode.js": 158,
<del> "..\\..\\node_modules\\react\\lib\\flattenChildren.js": 159,
<del> "..\\..\\node_modules\\react\\lib\\getEventKey.js": 160,
<del> "..\\..\\node_modules\\react\\lib\\getNodeForCharacterOffset.js": 161,
<del> "..\\..\\node_modules\\react\\lib\\getVendorPrefixedEventName.js": 162,
<del> "..\\..\\node_modules\\react\\lib\\quoteAttributeValueForBrowser.js": 163,
<del> "..\\..\\node_modules\\react\\lib\\renderSubtreeIntoContainer.js": 164
<add> "../../node_modules/fbjs/lib/warning.js": 0,
<add> "../../node_modules/react/lib/ReactElement.js": 1,
<add> "../../node_modules/fbjs/lib/invariant.js": 2,
<add> "../../node_modules/react/lib/reactProdInvariant.js": 3,
<add> "../../node_modules/object-assign/index.js": 4,
<add> "../../node_modules/fbjs/lib/emptyFunction.js": 5,
<add> "../../node_modules/fbjs/lib/emptyObject.js": 6,
<add> "../../node_modules/react/lib/ReactComponent.js": 7,
<add> "../../node_modules/react/lib/ReactNoopUpdateQueue.js": 8,
<add> "../../node_modules/react/lib/ReactCurrentOwner.js": 9,
<add> "../../node_modules/fbjs/lib/keyMirror.js": 10,
<add> "../../node_modules/react/lib/ReactPropTypeLocationNames.js": 11,
<add> "../../node_modules/react/lib/canDefineProperty.js": 12,
<add> "../../node_modules/react/lib/getIteratorFn.js": 13,
<add> "../../node_modules/react/react.js": 14,
<add> "../../node_modules/fbjs/lib/keyOf.js": 15,
<add> "../../node_modules/react/lib/PooledClass.js": 16,
<add> "../../node_modules/react/lib/KeyEscapeUtils.js": 17,
<add> "../../node_modules/react/lib/ReactPropTypeLocations.js": 18,
<add> "../../node_modules/react/lib/ReactPropTypesSecret.js": 19,
<add> "../../node_modules/react/lib/traverseAllChildren.js": 20,
<add> "../../node_modules/react/lib/ReactChildren.js": 21,
<add> "../../node_modules/react/lib/ReactClass.js": 22,
<add> "../../node_modules/react/lib/ReactPropTypes.js": 23,
<add> "../../node_modules/react/lib/ReactVersion.js": 24,
<add> "../../node_modules/react-dom/index.js": 25,
<add> "../../node_modules/react/lib/React.js": 26,
<add> "../../node_modules/react/lib/ReactDOMFactories.js": 27,
<add> "../../node_modules/react/lib/ReactPureComponent.js": 28,
<add> "../../node_modules/react/lib/onlyChild.js": 29,
<add> "example.js": 30,
<add> "../../node_modules/react/lib/ReactDOMComponentTree.js": 31,
<add> "../../node_modules/fbjs/lib/ExecutionEnvironment.js": 32,
<add> "../../node_modules/react/lib/ReactInstrumentation.js": 33,
<add> "../../node_modules/react/lib/ReactUpdates.js": 34,
<add> "../../node_modules/react/lib/EventConstants.js": 35,
<add> "../../node_modules/react/lib/SyntheticEvent.js": 36,
<add> "../../node_modules/react/lib/DOMLazyTree.js": 37,
<add> "../../node_modules/react/lib/DOMProperty.js": 38,
<add> "../../node_modules/react/lib/ReactReconciler.js": 39,
<add> "../../node_modules/react/lib/EventPluginHub.js": 40,
<add> "../../node_modules/react/lib/EventPropagators.js": 41,
<add> "../../node_modules/react/lib/ReactInstanceMap.js": 42,
<add> "../../node_modules/react/lib/SyntheticUIEvent.js": 43,
<add> "../../node_modules/react/lib/Transaction.js": 44,
<add> "../../node_modules/react/lib/DisabledInputUtils.js": 45,
<add> "../../node_modules/react/lib/ReactBrowserEventEmitter.js": 46,
<add> "../../node_modules/react/lib/SyntheticMouseEvent.js": 47,
<add> "../../node_modules/react/lib/escapeTextContentForBrowser.js": 48,
<add> "../../node_modules/react/lib/setInnerHTML.js": 49,
<add> "../../node_modules/fbjs/lib/shallowEqual.js": 50,
<add> "../../node_modules/process/browser.js": 51,
<add> "../../node_modules/react/lib/DOMChildrenOperations.js": 52,
<add> "../../node_modules/react/lib/DOMNamespaces.js": 53,
<add> "../../node_modules/react/lib/EventPluginRegistry.js": 54,
<add> "../../node_modules/react/lib/EventPluginUtils.js": 55,
<add> "../../node_modules/react/lib/LinkedValueUtils.js": 56,
<add> "../../node_modules/react/lib/ReactComponentEnvironment.js": 57,
<add> "../../node_modules/react/lib/ReactComponentTreeHook.js": 58,
<add> "../../node_modules/react/lib/ReactErrorUtils.js": 59,
<add> "../../node_modules/react/lib/ReactUpdateQueue.js": 60,
<add> "../../node_modules/react/lib/createMicrosoftUnsafeLocalFunction.js": 61,
<add> "../../node_modules/react/lib/getEventCharCode.js": 62,
<add> "../../node_modules/react/lib/getEventModifierState.js": 63,
<add> "../../node_modules/react/lib/getEventTarget.js": 64,
<add> "../../node_modules/react/lib/isEventSupported.js": 65,
<add> "../../node_modules/react/lib/shouldUpdateReactComponent.js": 66,
<add> "../../node_modules/react/lib/validateDOMNesting.js": 67,
<add> "../../node_modules/fbjs/lib/EventListener.js": 68,
<add> "../../node_modules/fbjs/lib/focusNode.js": 69,
<add> "../../node_modules/fbjs/lib/getActiveElement.js": 70,
<add> "../../node_modules/react/lib/CSSProperty.js": 71,
<add> "../../node_modules/react/lib/CallbackQueue.js": 72,
<add> "../../node_modules/react/lib/DOMPropertyOperations.js": 73,
<add> "../../node_modules/react/lib/ReactDOMComponentFlags.js": 74,
<add> "../../node_modules/react/lib/ReactDOMSelect.js": 75,
<add> "../../node_modules/react/lib/ReactEmptyComponent.js": 76,
<add> "../../node_modules/react/lib/ReactFeatureFlags.js": 77,
<add> "../../node_modules/react/lib/ReactHostComponent.js": 78,
<add> "../../node_modules/react/lib/ReactInputSelection.js": 79,
<add> "../../node_modules/react/lib/ReactMount.js": 80,
<add> "../../node_modules/react/lib/ReactMultiChildUpdateTypes.js": 81,
<add> "../../node_modules/react/lib/ReactNodeTypes.js": 82,
<add> "../../node_modules/react/lib/ViewportMetrics.js": 83,
<add> "../../node_modules/react/lib/accumulateInto.js": 84,
<add> "../../node_modules/react/lib/forEachAccumulated.js": 85,
<add> "../../node_modules/react/lib/getHostComponentFromComposite.js": 86,
<add> "../../node_modules/react/lib/getTextContentAccessor.js": 87,
<add> "../../node_modules/react/lib/instantiateReactComponent.js": 88,
<add> "../../node_modules/react/lib/isTextInputElement.js": 89,
<add> "../../node_modules/react/lib/setTextContent.js": 90,
<add> "../../node_modules/fbjs/lib/camelize.js": 91,
<add> "../../node_modules/fbjs/lib/camelizeStyleName.js": 92,
<add> "../../node_modules/fbjs/lib/containsNode.js": 93,
<add> "../../node_modules/fbjs/lib/createArrayFromMixed.js": 94,
<add> "../../node_modules/fbjs/lib/createNodesFromMarkup.js": 95,
<add> "../../node_modules/fbjs/lib/getMarkupWrap.js": 96,
<add> "../../node_modules/fbjs/lib/getUnboundedScrollPosition.js": 97,
<add> "../../node_modules/fbjs/lib/hyphenate.js": 98,
<add> "../../node_modules/fbjs/lib/hyphenateStyleName.js": 99,
<add> "../../node_modules/fbjs/lib/isNode.js": 100,
<add> "../../node_modules/fbjs/lib/isTextNode.js": 101,
<add> "../../node_modules/fbjs/lib/memoizeStringOnly.js": 102,
<add> "../../node_modules/react/lib/AutoFocusUtils.js": 103,
<add> "../../node_modules/react/lib/BeforeInputEventPlugin.js": 104,
<add> "../../node_modules/react/lib/CSSPropertyOperations.js": 105,
<add> "../../node_modules/react/lib/ChangeEventPlugin.js": 106,
<add> "../../node_modules/react/lib/Danger.js": 107,
<add> "../../node_modules/react/lib/DefaultEventPluginOrder.js": 108,
<add> "../../node_modules/react/lib/EnterLeaveEventPlugin.js": 109,
<add> "../../node_modules/react/lib/FallbackCompositionState.js": 110,
<add> "../../node_modules/react/lib/HTMLDOMPropertyConfig.js": 111,
<add> "../../node_modules/react/lib/ReactChildReconciler.js": 112,
<add> "../../node_modules/react/lib/ReactComponentBrowserEnvironment.js": 113,
<add> "../../node_modules/react/lib/ReactCompositeComponent.js": 114,
<add> "../../node_modules/react/lib/ReactDOM.js": 115,
<add> "../../node_modules/react/lib/ReactDOMButton.js": 116,
<add> "../../node_modules/react/lib/ReactDOMComponent.js": 117,
<add> "../../node_modules/react/lib/ReactDOMContainerInfo.js": 118,
<add> "../../node_modules/react/lib/ReactDOMEmptyComponent.js": 119,
<add> "../../node_modules/react/lib/ReactDOMFeatureFlags.js": 120,
<add> "../../node_modules/react/lib/ReactDOMIDOperations.js": 121,
<add> "../../node_modules/react/lib/ReactDOMInput.js": 122,
<add> "../../node_modules/react/lib/ReactDOMOption.js": 123,
<add> "../../node_modules/react/lib/ReactDOMSelection.js": 124,
<add> "../../node_modules/react/lib/ReactDOMTextComponent.js": 125,
<add> "../../node_modules/react/lib/ReactDOMTextarea.js": 126,
<add> "../../node_modules/react/lib/ReactDOMTreeTraversal.js": 127,
<add> "../../node_modules/react/lib/ReactDefaultBatchingStrategy.js": 128,
<add> "../../node_modules/react/lib/ReactDefaultInjection.js": 129,
<add> "../../node_modules/react/lib/ReactEventEmitterMixin.js": 130,
<add> "../../node_modules/react/lib/ReactEventListener.js": 131,
<add> "../../node_modules/react/lib/ReactInjection.js": 132,
<add> "../../node_modules/react/lib/ReactMarkupChecksum.js": 133,
<add> "../../node_modules/react/lib/ReactMultiChild.js": 134,
<add> "../../node_modules/react/lib/ReactOwner.js": 135,
<add> "../../node_modules/react/lib/ReactReconcileTransaction.js": 136,
<add> "../../node_modules/react/lib/ReactRef.js": 137,
<add> "../../node_modules/react/lib/ReactServerRenderingTransaction.js": 138,
<add> "../../node_modules/react/lib/ReactServerUpdateQueue.js": 139,
<add> "../../node_modules/react/lib/SVGDOMPropertyConfig.js": 140,
<add> "../../node_modules/react/lib/SelectEventPlugin.js": 141,
<add> "../../node_modules/react/lib/SimpleEventPlugin.js": 142,
<add> "../../node_modules/react/lib/SyntheticAnimationEvent.js": 143,
<add> "../../node_modules/react/lib/SyntheticClipboardEvent.js": 144,
<add> "../../node_modules/react/lib/SyntheticCompositionEvent.js": 145,
<add> "../../node_modules/react/lib/SyntheticDragEvent.js": 146,
<add> "../../node_modules/react/lib/SyntheticFocusEvent.js": 147,
<add> "../../node_modules/react/lib/SyntheticInputEvent.js": 148,
<add> "../../node_modules/react/lib/SyntheticKeyboardEvent.js": 149,
<add> "../../node_modules/react/lib/SyntheticTouchEvent.js": 150,
<add> "../../node_modules/react/lib/SyntheticTransitionEvent.js": 151,
<add> "../../node_modules/react/lib/SyntheticWheelEvent.js": 152,
<add> "../../node_modules/react/lib/adler32.js": 153,
<add> "../../node_modules/react/lib/checkReactTypeSpec.js": 154,
<add> "../../node_modules/react/lib/dangerousStyleValue.js": 155,
<add> "../../node_modules/react/lib/findDOMNode.js": 156,
<add> "../../node_modules/react/lib/flattenChildren.js": 157,
<add> "../../node_modules/react/lib/getEventKey.js": 158,
<add> "../../node_modules/react/lib/getNodeForCharacterOffset.js": 159,
<add> "../../node_modules/react/lib/getVendorPrefixedEventName.js": 160,
<add> "../../node_modules/react/lib/quoteAttributeValueForBrowser.js": 161,
<add> "../../node_modules/react/lib/renderSubtreeIntoContainer.js": 162
<ide> },
<ide> "usedIds": {
<ide> "0": 0,
<ide> chunk {14} 26934d90a868e3c64b52.js 25.7 kB [initial] [rendered]
<ide> "159": 159,
<ide> "160": 160,
<ide> "161": 161,
<del> "162": 162,
<del> "163": 163,
<del> "164": 164
<add> "162": 162
<ide> }
<ide> },
<ide> "chunks": {
<ide> "byName": {},
<ide> "byBlocks": {
<del> "example.js:0/0:3": 0,
<del> "example.js:0/0:9": 1,
<del> "example.js:0/0:10": 2,
<del> "example.js:0/0:2": 3,
<del> "example.js:0/0:1": 4,
<add> "example.js:0/0:5": 0,
<add> "example.js:0/0:10": 1,
<add> "example.js:0/0:11": 2,
<add> "example.js:0/0:4": 3,
<add> "example.js:0/0:2": 4,
<ide> "example.js:0/0:0": 5,
<del> "example.js:0/0:11": 6,
<del> "example.js:0/0:5": 7,
<del> "example.js:0/0:6": 8,
<del> "example.js:0/0:4": 9,
<add> "example.js:0/0:3": 6,
<add> "example.js:0/0:1": 7,
<add> "example.js:0/0:7": 8,
<add> "example.js:0/0:6": 9,
<ide> "example.js:0/0:8": 10,
<del> "example.js:0/0:7": 11
<add> "example.js:0/0:9": 11
<ide> },
<ide> "usedIds": {
<ide> "0": 0,
<ide> chunk {14} 26934d90a868e3c64b52.js 25.7 kB [initial] [rendered]
<ide> "aggressiveSplits": [
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\fbjs\\lib\\EventListener.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\ExecutionEnvironment.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\camelize.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\camelizeStyleName.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\containsNode.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\createArrayFromMixed.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\createNodesFromMarkup.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\focusNode.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\getActiveElement.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\getMarkupWrap.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\getUnboundedScrollPosition.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\hyphenate.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\hyphenateStyleName.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\isNode.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\isTextNode.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\memoizeStringOnly.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\shallowEqual.js",
<del> "..\\..\\node_modules\\process\\browser.js",
<del> "..\\..\\node_modules\\react-dom\\index.js",
<del> "..\\..\\node_modules\\react\\lib\\AutoFocusUtils.js",
<del> "..\\..\\node_modules\\react\\lib\\BeforeInputEventPlugin.js",
<del> "..\\..\\node_modules\\react\\lib\\CSSProperty.js",
<del> "..\\..\\node_modules\\react\\lib\\CallbackQueue.js",
<del> "..\\..\\node_modules\\react\\lib\\DOMNamespaces.js",
<del> "..\\..\\node_modules\\react\\lib\\DefaultEventPluginOrder.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMButton.js"
<add> "../../node_modules/fbjs/lib/EventListener.js",
<add> "../../node_modules/fbjs/lib/ExecutionEnvironment.js",
<add> "../../node_modules/fbjs/lib/camelize.js",
<add> "../../node_modules/fbjs/lib/camelizeStyleName.js",
<add> "../../node_modules/fbjs/lib/containsNode.js",
<add> "../../node_modules/fbjs/lib/createArrayFromMixed.js",
<add> "../../node_modules/fbjs/lib/createNodesFromMarkup.js",
<add> "../../node_modules/fbjs/lib/focusNode.js",
<add> "../../node_modules/fbjs/lib/getActiveElement.js",
<add> "../../node_modules/fbjs/lib/getMarkupWrap.js",
<add> "../../node_modules/fbjs/lib/getUnboundedScrollPosition.js",
<add> "../../node_modules/fbjs/lib/hyphenate.js",
<add> "../../node_modules/fbjs/lib/hyphenateStyleName.js",
<add> "../../node_modules/fbjs/lib/isNode.js",
<add> "../../node_modules/fbjs/lib/isTextNode.js",
<add> "../../node_modules/fbjs/lib/memoizeStringOnly.js",
<add> "../../node_modules/fbjs/lib/shallowEqual.js",
<add> "../../node_modules/process/browser.js",
<add> "../../node_modules/react-dom/index.js",
<add> "../../node_modules/react/lib/AutoFocusUtils.js",
<add> "../../node_modules/react/lib/BeforeInputEventPlugin.js",
<add> "../../node_modules/react/lib/CSSProperty.js",
<add> "../../node_modules/react/lib/DOMNamespaces.js",
<add> "../../node_modules/react/lib/DefaultEventPluginOrder.js"
<ide> ],
<del> "hash": "1063f7bead1953d500751fc6dcb11580",
<add> "hash": "23210448cb21fea3eeb2aa91549fe38e",
<ide> "id": 0
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMSelection.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMTextComponent.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMTextarea.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMTreeTraversal.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactErrorUtils.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactEventEmitterMixin.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactEventListener.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactFeatureFlags.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactHostComponent.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactInjection.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactInputSelection.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactInstanceMap.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactInstrumentation.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactMarkupChecksum.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactMultiChildUpdateTypes.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactNodeTypes.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactOwner.js",
<del> "..\\..\\node_modules\\react\\lib\\ViewportMetrics.js"
<add> "../../node_modules/react/lib/ReactDOMSelection.js",
<add> "../../node_modules/react/lib/ReactDOMTextComponent.js",
<add> "../../node_modules/react/lib/ReactDOMTextarea.js",
<add> "../../node_modules/react/lib/ReactDOMTreeTraversal.js",
<add> "../../node_modules/react/lib/ReactDefaultInjection.js",
<add> "../../node_modules/react/lib/ReactEmptyComponent.js",
<add> "../../node_modules/react/lib/ReactErrorUtils.js",
<add> "../../node_modules/react/lib/ReactEventEmitterMixin.js",
<add> "../../node_modules/react/lib/ReactEventListener.js",
<add> "../../node_modules/react/lib/ReactFeatureFlags.js",
<add> "../../node_modules/react/lib/ReactHostComponent.js",
<add> "../../node_modules/react/lib/ReactInjection.js",
<add> "../../node_modules/react/lib/ReactInputSelection.js",
<add> "../../node_modules/react/lib/ReactInstanceMap.js",
<add> "../../node_modules/react/lib/ReactMarkupChecksum.js",
<add> "../../node_modules/react/lib/ReactMultiChildUpdateTypes.js",
<add> "../../node_modules/react/lib/ReactNodeTypes.js",
<add> "../../node_modules/react/lib/ViewportMetrics.js"
<ide> ],
<del> "hash": "b161c72948813fe0486f7d55fc47bac1",
<add> "hash": "016a66632ae5537cd481ea0b3090b076",
<ide> "id": 1
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\SimpleEventPlugin.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticFocusEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticInputEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticKeyboardEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticMouseEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticTouchEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticTransitionEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticUIEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticWheelEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\accumulateInto.js",
<del> "..\\..\\node_modules\\react\\lib\\adler32.js",
<del> "..\\..\\node_modules\\react\\lib\\checkReactTypeSpec.js",
<del> "..\\..\\node_modules\\react\\lib\\forEachAccumulated.js",
<del> "..\\..\\node_modules\\react\\lib\\getHostComponentFromComposite.js"
<add> "../../node_modules/react/lib/SimpleEventPlugin.js",
<add> "../../node_modules/react/lib/SyntheticClipboardEvent.js",
<add> "../../node_modules/react/lib/SyntheticCompositionEvent.js",
<add> "../../node_modules/react/lib/SyntheticDragEvent.js",
<add> "../../node_modules/react/lib/SyntheticEvent.js",
<add> "../../node_modules/react/lib/SyntheticFocusEvent.js",
<add> "../../node_modules/react/lib/SyntheticInputEvent.js",
<add> "../../node_modules/react/lib/SyntheticKeyboardEvent.js",
<add> "../../node_modules/react/lib/SyntheticMouseEvent.js",
<add> "../../node_modules/react/lib/SyntheticTouchEvent.js",
<add> "../../node_modules/react/lib/SyntheticTransitionEvent.js",
<add> "../../node_modules/react/lib/SyntheticUIEvent.js",
<add> "../../node_modules/react/lib/SyntheticWheelEvent.js",
<add> "../../node_modules/react/lib/accumulateInto.js",
<add> "../../node_modules/react/lib/adler32.js",
<add> "../../node_modules/react/lib/createMicrosoftUnsafeLocalFunction.js",
<add> "../../node_modules/react/lib/forEachAccumulated.js"
<ide> ],
<del> "hash": "fe372bb5ee58ecbb3049e3d3aeba9339",
<add> "hash": "4e18f0d2e308513b14176e12ad5fc16a",
<ide> "id": 2
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\ReactBrowserEventEmitter.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactChildReconciler.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactComponentBrowserEnvironment.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactComponentEnvironment.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactComponentTreeDevtool.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOM.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMComponentTree.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMContainerInfo.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMEmptyComponent.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMIDOperations.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMInstrumentation.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMOption.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDefaultBatchingStrategy.js"
<add> "../../node_modules/react/lib/getEventModifierState.js",
<add> "../../node_modules/react/lib/getEventTarget.js",
<add> "../../node_modules/react/lib/getNodeForCharacterOffset.js",
<add> "../../node_modules/react/lib/getTextContentAccessor.js",
<add> "../../node_modules/react/lib/getVendorPrefixedEventName.js",
<add> "../../node_modules/react/lib/instantiateReactComponent.js",
<add> "../../node_modules/react/lib/isEventSupported.js",
<add> "../../node_modules/react/lib/isTextInputElement.js",
<add> "../../node_modules/react/lib/quoteAttributeValueForBrowser.js",
<add> "../../node_modules/react/lib/renderSubtreeIntoContainer.js",
<add> "../../node_modules/react/lib/setInnerHTML.js",
<add> "../../node_modules/react/lib/setTextContent.js",
<add> "../../node_modules/react/lib/shouldUpdateReactComponent.js",
<add> "../../node_modules/react/lib/validateDOMNesting.js"
<ide> ],
<del> "hash": "ba0a52412704eb5fca7725f14d7c1e12",
<add> "hash": "b666bfb4baf02f3293a0a3b8572c3e5f",
<ide> "id": 3
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\Transaction.js",
<del> "..\\..\\node_modules\\react\\lib\\dangerousStyleValue.js",
<del> "..\\..\\node_modules\\react\\lib\\escapeTextContentForBrowser.js",
<del> "..\\..\\node_modules\\react\\lib\\findDOMNode.js",
<del> "..\\..\\node_modules\\react\\lib\\flattenChildren.js",
<del> "..\\..\\node_modules\\react\\lib\\getEventCharCode.js",
<del> "..\\..\\node_modules\\react\\lib\\getEventKey.js",
<del> "..\\..\\node_modules\\react\\lib\\getEventModifierState.js",
<del> "..\\..\\node_modules\\react\\lib\\getEventTarget.js",
<del> "..\\..\\node_modules\\react\\lib\\getNodeForCharacterOffset.js",
<del> "..\\..\\node_modules\\react\\lib\\getTextContentAccessor.js"
<add> "../../node_modules/react/lib/DisabledInputUtils.js",
<add> "../../node_modules/react/lib/EnterLeaveEventPlugin.js",
<add> "../../node_modules/react/lib/EventConstants.js",
<add> "../../node_modules/react/lib/EventPluginHub.js",
<add> "../../node_modules/react/lib/EventPluginRegistry.js",
<add> "../../node_modules/react/lib/EventPluginUtils.js",
<add> "../../node_modules/react/lib/EventPropagators.js",
<add> "../../node_modules/react/lib/FallbackCompositionState.js",
<add> "../../node_modules/react/lib/HTMLDOMPropertyConfig.js",
<add> "../../node_modules/react/lib/ReactComponentBrowserEnvironment.js",
<add> "../../node_modules/react/lib/ReactComponentEnvironment.js",
<add> "../../node_modules/react/lib/ReactDOMButton.js",
<add> "../../node_modules/react/lib/ReactDOMComponentFlags.js",
<add> "../../node_modules/react/lib/ReactDOMFeatureFlags.js"
<ide> ],
<del> "hash": "3e6efa14517e3078592bd858b8e7dbdd",
<add> "hash": "b30ba15ed694bb94bdb2845fb93f2bbb",
<ide> "id": 4
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\ReactReconciler.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactServerUpdateQueue.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactUpdateQueue.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactUpdates.js",
<del> "..\\..\\node_modules\\react\\lib\\SVGDOMPropertyConfig.js",
<del> "..\\..\\node_modules\\react\\lib\\SelectEventPlugin.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticAnimationEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticClipboardEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticCompositionEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\SyntheticDragEvent.js",
<del> "..\\..\\node_modules\\react\\lib\\createMicrosoftUnsafeLocalFunction.js"
<add> "../../node_modules/react/lib/ReactReconciler.js",
<add> "../../node_modules/react/lib/ReactRef.js",
<add> "../../node_modules/react/lib/ReactServerRenderingTransaction.js",
<add> "../../node_modules/react/lib/ReactServerUpdateQueue.js",
<add> "../../node_modules/react/lib/ReactUpdateQueue.js",
<add> "../../node_modules/react/lib/ReactUpdates.js",
<add> "../../node_modules/react/lib/SVGDOMPropertyConfig.js",
<add> "../../node_modules/react/lib/SelectEventPlugin.js",
<add> "../../node_modules/react/lib/SyntheticAnimationEvent.js"
<ide> ],
<del> "hash": "310186c03028a0b418f9e990c1711193",
<add> "hash": "16c333f8d4014b9a685c9ea890b3cef3",
<ide> "id": 5
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\getVendorPrefixedEventName.js",
<del> "..\\..\\node_modules\\react\\lib\\instantiateReactComponent.js",
<del> "..\\..\\node_modules\\react\\lib\\isEventSupported.js",
<del> "..\\..\\node_modules\\react\\lib\\isTextInputElement.js",
<del> "..\\..\\node_modules\\react\\lib\\quoteAttributeValueForBrowser.js",
<del> "..\\..\\node_modules\\react\\lib\\renderSubtreeIntoContainer.js",
<del> "..\\..\\node_modules\\react\\lib\\setInnerHTML.js",
<del> "..\\..\\node_modules\\react\\lib\\setTextContent.js",
<del> "..\\..\\node_modules\\react\\lib\\shouldUpdateReactComponent.js",
<del> "..\\..\\node_modules\\react\\lib\\validateDOMNesting.js"
<add> "../../node_modules/react/lib/LinkedValueUtils.js",
<add> "../../node_modules/react/lib/ReactBrowserEventEmitter.js",
<add> "../../node_modules/react/lib/ReactChildReconciler.js",
<add> "../../node_modules/react/lib/ReactComponentTreeHook.js",
<add> "../../node_modules/react/lib/ReactDOM.js",
<add> "../../node_modules/react/lib/ReactDOMComponentTree.js",
<add> "../../node_modules/react/lib/ReactDOMContainerInfo.js",
<add> "../../node_modules/react/lib/ReactDOMEmptyComponent.js",
<add> "../../node_modules/react/lib/ReactDOMIDOperations.js"
<ide> ],
<del> "hash": "1040df4c2eee288dc9fc45fbf23bb2dd",
<add> "hash": "041fe45e13f7a2a07bab8b41616b68c2",
<ide> "id": 6
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\CSSPropertyOperations.js",
<del> "..\\..\\node_modules\\react\\lib\\ChangeEventPlugin.js",
<del> "..\\..\\node_modules\\react\\lib\\DOMChildrenOperations.js",
<del> "..\\..\\node_modules\\react\\lib\\DOMLazyTree.js",
<del> "..\\..\\node_modules\\react\\lib\\DOMProperty.js",
<del> "..\\..\\node_modules\\react\\lib\\DOMPropertyOperations.js",
<del> "..\\..\\node_modules\\react\\lib\\Danger.js",
<del> "..\\..\\node_modules\\react\\lib\\DisabledInputUtils.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMComponentFlags.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMFeatureFlags.js"
<add> "../../node_modules/react/lib/Transaction.js",
<add> "../../node_modules/react/lib/checkReactTypeSpec.js",
<add> "../../node_modules/react/lib/dangerousStyleValue.js",
<add> "../../node_modules/react/lib/escapeTextContentForBrowser.js",
<add> "../../node_modules/react/lib/findDOMNode.js",
<add> "../../node_modules/react/lib/flattenChildren.js",
<add> "../../node_modules/react/lib/getEventCharCode.js",
<add> "../../node_modules/react/lib/getEventKey.js"
<ide> ],
<del> "hash": "3068d4ff9b2dfb5c271a27c72755cb15",
<add> "hash": "1f4709ab95bd7ea9c3e0d21accac81c9",
<ide> "id": 7
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\EnterLeaveEventPlugin.js",
<del> "..\\..\\node_modules\\react\\lib\\EventConstants.js",
<del> "..\\..\\node_modules\\react\\lib\\EventPluginHub.js",
<del> "..\\..\\node_modules\\react\\lib\\EventPluginRegistry.js",
<del> "..\\..\\node_modules\\react\\lib\\EventPluginUtils.js",
<del> "..\\..\\node_modules\\react\\lib\\EventPropagators.js",
<del> "..\\..\\node_modules\\react\\lib\\FallbackCompositionState.js",
<del> "..\\..\\node_modules\\react\\lib\\HTMLDOMPropertyConfig.js",
<del> "..\\..\\node_modules\\react\\lib\\LinkedValueUtils.js"
<add> "../../node_modules/react/lib/CSSPropertyOperations.js",
<add> "../../node_modules/react/lib/CallbackQueue.js",
<add> "../../node_modules/react/lib/ChangeEventPlugin.js",
<add> "../../node_modules/react/lib/DOMChildrenOperations.js",
<add> "../../node_modules/react/lib/DOMLazyTree.js",
<add> "../../node_modules/react/lib/DOMProperty.js",
<add> "../../node_modules/react/lib/DOMPropertyOperations.js",
<add> "../../node_modules/react/lib/Danger.js"
<ide> ],
<del> "hash": "2223fbc79b19b9c04ab03a266c03d44c",
<add> "hash": "b10a81c1d9710eac5d86ced4a99e72b7",
<ide> "id": 8
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\ReactMount.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactMultiChild.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactReconcileTransaction.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactRef.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactServerRenderingTransaction.js"
<add> "../../node_modules/react/lib/ReactMount.js",
<add> "../../node_modules/react/lib/ReactMultiChild.js",
<add> "../../node_modules/react/lib/ReactOwner.js",
<add> "../../node_modules/react/lib/ReactReconcileTransaction.js",
<add> "../../node_modules/react/lib/getHostComponentFromComposite.js"
<ide> ],
<del> "hash": "e43acdd06dbd3b718702db9fab274bdf",
<add> "hash": "8cbc6e8d682eb80603a55f537ecbf8f2",
<ide> "id": 9
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMComponent.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMSelect.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDefaultInjection.js"
<add> "../../node_modules/react/lib/ReactCompositeComponent.js",
<add> "../../node_modules/react/lib/ReactDOMInput.js",
<add> "../../node_modules/react/lib/ReactDefaultBatchingStrategy.js",
<add> "../../node_modules/react/lib/ReactInstrumentation.js"
<ide> ],
<del> "hash": "60106e3f2b149c66854f63f710e3bac9",
<add> "hash": "06afeb557cc6ef65a8f01d24a405bf1b",
<ide> "id": 10
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\react\\lib\\ReactCompositeComponent.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactDOMInput.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactEmptyComponent.js"
<add> "../../node_modules/react/lib/ReactDOMComponent.js",
<add> "../../node_modules/react/lib/ReactDOMOption.js",
<add> "../../node_modules/react/lib/ReactDOMSelect.js"
<ide> ],
<del> "hash": "90e7ca83098a5464024432a228c21528",
<add> "hash": "ab283bc97ca37bbe1a90a5a2b5ba0744",
<ide> "id": 11
<ide> },
<ide> {
<ide> "modules": [
<del> "..\\..\\node_modules\\fbjs\\lib\\emptyFunction.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\emptyObject.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\invariant.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\keyMirror.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\keyOf.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\mapObject.js",
<del> "..\\..\\node_modules\\fbjs\\lib\\warning.js",
<del> "..\\..\\node_modules\\react\\lib\\KeyEscapeUtils.js",
<del> "..\\..\\node_modules\\react\\lib\\PooledClass.js",
<del> "..\\..\\node_modules\\react\\lib\\React.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactChildren.js",
<del> "..\\..\\node_modules\\react\\lib\\ReactClass.js",
<del> "..\\..\\node_modules\\react\\react.js"
<add> "../../node_modules/fbjs/lib/emptyFunction.js",
<add> "../../node_modules/fbjs/lib/emptyObject.js",
<add> "../../node_modules/fbjs/lib/invariant.js",
<add> "../../node_modules/fbjs/lib/keyMirror.js",
<add> "../../node_modules/fbjs/lib/keyOf.js",
<add> "../../node_modules/fbjs/lib/warning.js",
<add> "../../node_modules/object-assign/index.js",
<add> "../../node_modules/react/lib/KeyEscapeUtils.js",
<add> "../../node_modules/react/lib/PooledClass.js",
<add> "../../node_modules/react/lib/React.js",
<add> "../../node_modules/react/lib/ReactChildren.js",
<add> "../../node_modules/react/lib/ReactComponent.js",
<add> "../../node_modules/react/lib/ReactCurrentOwner.js",
<add> "../../node_modules/react/lib/ReactDOMFactories.js",
<add> "../../node_modules/react/lib/ReactElement.js",
<add> "../../node_modules/react/lib/ReactNoopUpdateQueue.js",
<add> "../../node_modules/react/lib/ReactPropTypeLocationNames.js"
<ide> ],
<del> "hash": "26c97ecb935008096f9b82f71c42f426",
<add> "hash": "6f64f3546f2ce353e67270ae0c98561e",
<ide> "id": 12
<ide> }
<ide> ]
<ide><path>examples/hybrid-routing/README.md
<ide> module.exports = function() {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: fb2776a25fb6999f5cfb
<del>Version: webpack 2.1.0-beta.22
<del>Time: 223ms
<add>Hash: 14f111c5aa1876a12091
<add>Version: webpack 2.1.0-beta.25
<add>Time: 210ms
<ide> Asset Size Chunks Chunk Names
<del> 0.chunk.js 264 bytes 0 [emitted]
<del> 1.chunk.js 270 bytes 1 [emitted]
<del>pageB.bundle.js 602 bytes 2, 0 [emitted] pageB
<del>pageA.bundle.js 602 bytes 3, 1 [emitted] pageA
<del> commons.js 9.04 kB 4 [emitted] commons
<del>Entrypoint commons = commons.js
<add> 0.chunk.js 262 bytes 0 [emitted]
<add> 1.chunk.js 268 bytes 1 [emitted]
<add>pageB.bundle.js 598 bytes 2, 0 [emitted] pageB
<add>pageA.bundle.js 598 bytes 3, 1 [emitted] pageA
<add> commons.js 9.01 kB 4 [emitted] commons
<ide> Entrypoint pageA = commons.js pageA.bundle.js
<ide> Entrypoint pageB = commons.js pageB.bundle.js
<del>chunk {0} 0.chunk.js 61 bytes {4} [rendered]
<add>Entrypoint commons = commons.js
<add>chunk {0} 0.chunk.js 59 bytes {4} [rendered]
<ide> > [5] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
<del> [2] ./bPage.js 61 bytes {0} {2} [built]
<add> [2] ./bPage.js 59 bytes {0} {2} [built]
<ide> cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
<ide> cjs require ./bPage [7] ./bEntry.js 3:7-25
<del>chunk {1} 1.chunk.js 61 bytes {4} [rendered]
<add>chunk {1} 1.chunk.js 59 bytes {4} [rendered]
<ide> > [4] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
<del> [1] ./aPage.js 61 bytes {1} {3} [built]
<add> [1] ./aPage.js 59 bytes {1} {3} [built]
<ide> cjs require !!./aPage.js [4] (webpack)/~/bundle-loader!./aPage.js 8:8-31
<ide> cjs require ./aPage [6] ./aEntry.js 3:7-25
<del>chunk {2} pageB.bundle.js (pageB) 150 bytes {4} [initial] [rendered]
<add>chunk {2} pageB.bundle.js (pageB) 146 bytes {4} [initial] [rendered]
<ide> > pageB [7] ./bEntry.js
<del> [2] ./bPage.js 61 bytes {0} {2} [built]
<add> [2] ./bPage.js 59 bytes {0} {2} [built]
<ide> cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
<ide> cjs require ./bPage [7] ./bEntry.js 3:7-25
<del> [7] ./bEntry.js 89 bytes {2} [built]
<del>chunk {3} pageA.bundle.js (pageA) 150 bytes {4} [initial] [rendered]
<add> [7] ./bEntry.js 87 bytes {2} [built]
<add>chunk {3} pageA.bundle.js (pageA) 146 bytes {4} [initial] [rendered]
<ide> > pageA [6] ./aEntry.js
<del> [1] ./aPage.js 61 bytes {1} {3} [built]
<add> [1] ./aPage.js 59 bytes {1} {3} [built]
<ide> cjs require !!./aPage.js [4] (webpack)/~/bundle-loader!./aPage.js 8:8-31
<ide> cjs require ./aPage [6] ./aEntry.js 3:7-25
<del> [6] ./aEntry.js 89 bytes {3} [built]
<del>chunk {4} commons.js (commons) 1.7 kB [entry] [rendered]
<add> [6] ./aEntry.js 87 bytes {3} [built]
<add>chunk {4} commons.js (commons) 1.68 kB [entry] [rendered]
<ide> > commons [8] ./router.js
<del> [0] ./render.js 60 bytes {4} [built]
<add> [0] ./render.js 58 bytes {4} [built]
<ide> cjs require ./render [6] ./aEntry.js 2:13-32
<ide> cjs require ./render [7] ./bEntry.js 2:13-32
<ide> cjs require ./render [8] ./router.js 1:13-32
<ide> chunk {4} commons.js (commons) 1.7 kB [entry] [rendered]
<ide> context element ./aPage [3] . (webpack)/~/bundle-loader!^\.\/.*Page$
<ide> [5] (webpack)/~/bundle-loader!./bPage.js 282 bytes {4} [optional] [built]
<ide> context element ./bPage [3] . (webpack)/~/bundle-loader!^\.\/.*Page$
<del> [8] ./router.js 894 bytes {4} [built]
<add> [8] ./router.js 871 bytes {4} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: fb2776a25fb6999f5cfb
<del>Version: webpack 2.1.0-beta.22
<del>Time: 453ms
<add>Hash: 14f111c5aa1876a12091
<add>Version: webpack 2.1.0-beta.25
<add>Time: 376ms
<ide> Asset Size Chunks Chunk Names
<ide> 0.chunk.js 83 bytes 0 [emitted]
<ide> 1.chunk.js 82 bytes 1 [emitted]
<ide> pageB.bundle.js 127 bytes 2, 0 [emitted] pageB
<ide> pageA.bundle.js 127 bytes 3, 1 [emitted] pageA
<del> commons.js 2.16 kB 4 [emitted] commons
<del>Entrypoint commons = commons.js
<add> commons.js 2.15 kB 4 [emitted] commons
<ide> Entrypoint pageA = commons.js pageA.bundle.js
<ide> Entrypoint pageB = commons.js pageB.bundle.js
<del>chunk {0} 0.chunk.js 61 bytes {4} [rendered]
<add>Entrypoint commons = commons.js
<add>chunk {0} 0.chunk.js 59 bytes {4} [rendered]
<ide> > [5] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
<del> [2] ./bPage.js 61 bytes {0} {2} [built]
<add> [2] ./bPage.js 59 bytes {0} {2} [built]
<ide> cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
<ide> cjs require ./bPage [7] ./bEntry.js 3:7-25
<del>chunk {1} 1.chunk.js 61 bytes {4} [rendered]
<add>chunk {1} 1.chunk.js 59 bytes {4} [rendered]
<ide> > [4] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
<del> [1] ./aPage.js 61 bytes {1} {3} [built]
<add> [1] ./aPage.js 59 bytes {1} {3} [built]
<ide> cjs require !!./aPage.js [4] (webpack)/~/bundle-loader!./aPage.js 8:8-31
<ide> cjs require ./aPage [6] ./aEntry.js 3:7-25
<del>chunk {2} pageB.bundle.js (pageB) 150 bytes {4} [initial] [rendered]
<add>chunk {2} pageB.bundle.js (pageB) 146 bytes {4} [initial] [rendered]
<ide> > pageB [7] ./bEntry.js
<del> [2] ./bPage.js 61 bytes {0} {2} [built]
<add> [2] ./bPage.js 59 bytes {0} {2} [built]
<ide> cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
<ide> cjs require ./bPage [7] ./bEntry.js 3:7-25
<del> [7] ./bEntry.js 89 bytes {2} [built]
<del>chunk {3} pageA.bundle.js (pageA) 150 bytes {4} [initial] [rendered]
<add> [7] ./bEntry.js 87 bytes {2} [built]
<add>chunk {3} pageA.bundle.js (pageA) 146 bytes {4} [initial] [rendered]
<ide> > pageA [6] ./aEntry.js
<del> [1] ./aPage.js 61 bytes {1} {3} [built]
<add> [1] ./aPage.js 59 bytes {1} {3} [built]
<ide> cjs require !!./aPage.js [4] (webpack)/~/bundle-loader!./aPage.js 8:8-31
<ide> cjs require ./aPage [6] ./aEntry.js 3:7-25
<del> [6] ./aEntry.js 89 bytes {3} [built]
<del>chunk {4} commons.js (commons) 1.7 kB [entry] [rendered]
<add> [6] ./aEntry.js 87 bytes {3} [built]
<add>chunk {4} commons.js (commons) 1.68 kB [entry] [rendered]
<ide> > commons [8] ./router.js
<del> [0] ./render.js 60 bytes {4} [built]
<add> [0] ./render.js 58 bytes {4} [built]
<ide> cjs require ./render [6] ./aEntry.js 2:13-32
<ide> cjs require ./render [7] ./bEntry.js 2:13-32
<ide> cjs require ./render [8] ./router.js 1:13-32
<ide> chunk {4} commons.js (commons) 1.7 kB [entry] [rendered]
<ide> context element ./aPage [3] . (webpack)/~/bundle-loader!^\.\/.*Page$
<ide> [5] (webpack)/~/bundle-loader!./bPage.js 282 bytes {4} [optional] [built]
<ide> context element ./bPage [3] . (webpack)/~/bundle-loader!^\.\/.*Page$
<del> [8] ./router.js 894 bytes {4} [built]
<add> [8] ./router.js 871 bytes {4} [built]
<ide> ```
<ide><path>examples/i18n/README.md
<ide> console.log("Missing Text");
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: b61d16621736c97f557e52b4d8e68140f1345ef8
<del>Version: webpack 2.1.0-beta.22
<add>Hash: 4194dfc38a1d790c828d2b4d6ee6122bc1cc36c8
<add>Version: webpack 2.1.0-beta.25
<ide> Child en:
<del> Hash: b61d16621736c97f557e
<del> Version: webpack 2.1.0-beta.22
<del> Time: 123ms
<add> Hash: 4194dfc38a1d790c828d
<add> Version: webpack 2.1.0-beta.25
<add> Time: 99ms
<ide> Asset Size Chunks Chunk Names
<ide> en.output.js 2.65 kB 0 [emitted] main
<ide> Entrypoint main = en.output.js
<del> chunk {0} en.output.js (main) 65 bytes [entry] [rendered]
<add> chunk {0} en.output.js (main) 64 bytes [entry] [rendered]
<ide> > main [0] ./example.js
<del> [0] ./example.js 65 bytes {0} [built]
<add> [0] ./example.js 64 bytes {0} [built]
<ide> Child de:
<del> Hash: 52b4d8e68140f1345ef8
<del> Version: webpack 2.1.0-beta.22
<del> Time: 101ms
<add> Hash: 2b4d6ee6122bc1cc36c8
<add> Version: webpack 2.1.0-beta.25
<add> Time: 84ms
<ide> Asset Size Chunks Chunk Names
<del> de.output.js 2.65 kB 0 [emitted] main
<add> de.output.js 2.64 kB 0 [emitted] main
<ide> Entrypoint main = de.output.js
<del> chunk {0} de.output.js (main) 65 bytes [entry] [rendered]
<add> chunk {0} de.output.js (main) 64 bytes [entry] [rendered]
<ide> > main [0] ./example.js
<del> [0] ./example.js 65 bytes {0} [built] [1 warning]
<add> [0] ./example.js 64 bytes {0} [built] [1 warning]
<ide>
<ide> WARNING in ./example.js
<ide> Missing localization: Missing Text
<ide> Child de:
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: b61d16621736c97f557e52b4d8e68140f1345ef8
<del>Version: webpack 2.1.0-beta.22
<add>Hash: 4194dfc38a1d790c828d2b4d6ee6122bc1cc36c8
<add>Version: webpack 2.1.0-beta.25
<ide> Child en:
<del> Hash: b61d16621736c97f557e
<del> Version: webpack 2.1.0-beta.22
<del> Time: 256ms
<add> Hash: 4194dfc38a1d790c828d
<add> Version: webpack 2.1.0-beta.25
<add> Time: 207ms
<ide> Asset Size Chunks Chunk Names
<del> en.output.js 564 bytes 0 [emitted] main
<add> en.output.js 561 bytes 0 [emitted] main
<ide> Entrypoint main = en.output.js
<del> chunk {0} en.output.js (main) 65 bytes [entry] [rendered]
<add> chunk {0} en.output.js (main) 64 bytes [entry] [rendered]
<ide> > main [0] ./example.js
<del> [0] ./example.js 65 bytes {0} [built]
<add> [0] ./example.js 64 bytes {0} [built]
<ide> Child de:
<del> Hash: 52b4d8e68140f1345ef8
<del> Version: webpack 2.1.0-beta.22
<del> Time: 233ms
<add> Hash: 2b4d6ee6122bc1cc36c8
<add> Version: webpack 2.1.0-beta.25
<add> Time: 191ms
<ide> Asset Size Chunks Chunk Names
<del> de.output.js 563 bytes 0 [emitted] main
<add> de.output.js 560 bytes 0 [emitted] main
<ide> Entrypoint main = de.output.js
<del> chunk {0} de.output.js (main) 65 bytes [entry] [rendered]
<add> chunk {0} de.output.js (main) 64 bytes [entry] [rendered]
<ide> > main [0] ./example.js
<del> [0] ./example.js 65 bytes {0} [built] [1 warning]
<add> [0] ./example.js 64 bytes {0} [built] [1 warning]
<ide>
<ide> WARNING in ./example.js
<ide> Missing localization: Missing Text
<ide><path>examples/loader/README.md
<ide> Prints in node.js (`enhanced-require example.js`) and in browser:
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 2847840b31f5517b4ca1
<del>Version: webpack 2.1.0-beta.22
<del>Time: 200ms
<add>Hash: 1f6b568690bccc6155af
<add>Version: webpack 2.1.0-beta.25
<add>Time: 141ms
<ide> Asset Size Chunks Chunk Names
<ide> output.js 3.39 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 283 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 278 bytes [entry] [rendered]
<ide> > main [2] ./example.js
<ide> [0] (webpack)/~/json-loader!./test.json 37 bytes {0} [built]
<ide> cjs require !json!./test.json [2] ./example.js 6:12-40
<ide> cjs require ./test.json [2] ./example.js 5:12-34
<ide> [1] ./loader.js!./file.js 41 bytes {0} [built]
<ide> cjs require ./loader!./file [2] ./example.js 2:12-38
<del> [2] ./example.js 205 bytes {0} [built]
<add> [2] ./example.js 200 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 2847840b31f5517b4ca1
<del>Version: webpack 2.1.0-beta.22
<del>Time: 437ms
<add>Hash: 1f6b568690bccc6155af
<add>Version: webpack 2.1.0-beta.25
<add>Time: 247ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 641 bytes 0 [emitted] main
<add>output.js 638 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 283 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 278 bytes [entry] [rendered]
<ide> > main [2] ./example.js
<ide> [0] (webpack)/~/json-loader!./test.json 37 bytes {0} [built]
<ide> cjs require !json!./test.json [2] ./example.js 6:12-40
<ide> cjs require ./test.json [2] ./example.js 5:12-34
<ide> [1] ./loader.js!./file.js 41 bytes {0} [built]
<ide> cjs require ./loader!./file [2] ./example.js 2:12-38
<del> [2] ./example.js 205 bytes {0} [built]
<add> [2] ./example.js 200 bytes {0} [built]
<ide> ```
<ide><path>examples/mixed/README.md
<ide> require(
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> __webpack_require__.e/* require */(0).catch(function(err) { __webpack_require__.
<ide> /******/ ]);
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([0],[
<ide> module.exports = function() {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 9dc98b4812548007f240
<del>Version: webpack 2.1.0-beta.21
<del>Time: 172ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 1.84 kB 0 [emitted]
<del>output.js 8.53 kB 1 [emitted] main
<add>Hash: f8476f5be92cc436186e
<add>Version: webpack 2.1.0-beta.25
<add>Time: 198ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 1.83 kB 0 [emitted]
<add> output.js 8.5 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 439 bytes {1} [rendered]
<add>chunk {0} 0.output.js 433 bytes {1} [rendered]
<ide> > [4] ./example.js 7:0-14:1
<ide> [3] ../require.context/templates ^\.\/.*\.js$ 193 bytes {0} [built]
<ide> amd require context ../require.context/templates [4] ./example.js 7:0-14:1
<del> [5] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
<add> [5] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a.js [3] ../require.context/templates ^\.\/.*\.js$
<del> [6] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
<add> [6] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b.js [3] ../require.context/templates ^\.\/.*\.js$
<del> [7] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
<add> [7] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c.js [3] ../require.context/templates ^\.\/.*\.js$
<del>chunk {1} output.js (main) 1.05 kB [entry] [rendered]
<add>chunk {1} output.js (main) 1.01 kB [entry] [rendered]
<ide> > main [4] ./example.js
<del> [0] ./amd.js 309 bytes {1} [built]
<add> [0] ./amd.js 298 bytes {1} [built]
<ide> amd require ./amd [1] ./commonjs.js 5:0-11:1
<ide> cjs require ./amd [1] ./commonjs.js 8:13-29
<ide> harmony import ./amd [2] ./harmony.js 3:0-24
<ide> cjs require ./amd [4] ./example.js 3:11-27
<ide> amd require ./amd [4] ./example.js 7:0-14:1
<ide> amd require ./amd [4] ./example.js 7:0-14:1
<del> [1] ./commonjs.js 233 bytes {1} [built]
<add> [1] ./commonjs.js 223 bytes {1} [built]
<ide> amd require ./commonjs [0] ./amd.js 2:0-12:1
<ide> cjs require ./commonjs [0] ./amd.js 7:18-39
<ide> harmony import ./commonjs [2] ./harmony.js 2:0-34
<ide> cjs require ./commonjs [4] ./example.js 2:16-37
<ide> amd require ./commonjs [4] ./example.js 7:0-14:1
<ide> amd require ./commonjs [4] ./example.js 7:0-14:1
<del> [2] ./harmony.js 101 bytes {1} [built]
<add> [2] ./harmony.js 96 bytes {1} [built]
<add> [exports: default]
<ide> amd require ./harmony [0] ./amd.js 2:0-12:1
<ide> cjs require ./harmony [0] ./amd.js 8:17-37
<ide> amd require ./harmony [1] ./commonjs.js 5:0-11:1
<ide> cjs require ./harmony [1] ./commonjs.js 9:17-37
<ide> cjs require ./harmony [4] ./example.js 4:15-35
<del> [4] ./example.js 410 bytes {1} [built]
<add> [4] ./example.js 396 bytes {1} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 9dc98b4812548007f240
<del>Version: webpack 2.1.0-beta.21
<del>Time: 375ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 523 bytes 0 [emitted]
<del>output.js 1.84 kB 1 [emitted] main
<add>Hash: f8476f5be92cc436186e
<add>Version: webpack 2.1.0-beta.25
<add>Time: 366ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 523 bytes 0 [emitted]
<add> output.js 1.83 kB 1 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js 439 bytes {1} [rendered]
<add>chunk {0} 0.output.js 433 bytes {1} [rendered]
<ide> > [4] ./example.js 7:0-14:1
<ide> [3] ../require.context/templates ^\.\/.*\.js$ 193 bytes {0} [built]
<ide> amd require context ../require.context/templates [4] ./example.js 7:0-14:1
<del> [5] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
<add> [5] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a.js [3] ../require.context/templates ^\.\/.*\.js$
<del> [6] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
<add> [6] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b.js [3] ../require.context/templates ^\.\/.*\.js$
<del> [7] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
<add> [7] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c.js [3] ../require.context/templates ^\.\/.*\.js$
<del>chunk {1} output.js (main) 1.05 kB [entry] [rendered]
<add>chunk {1} output.js (main) 1.01 kB [entry] [rendered]
<ide> > main [4] ./example.js
<del> [0] ./amd.js 309 bytes {1} [built]
<add> [0] ./amd.js 298 bytes {1} [built]
<ide> amd require ./amd [1] ./commonjs.js 5:0-11:1
<ide> cjs require ./amd [1] ./commonjs.js 8:13-29
<ide> harmony import ./amd [2] ./harmony.js 3:0-24
<ide> cjs require ./amd [4] ./example.js 3:11-27
<ide> amd require ./amd [4] ./example.js 7:0-14:1
<ide> amd require ./amd [4] ./example.js 7:0-14:1
<del> [1] ./commonjs.js 233 bytes {1} [built]
<add> [1] ./commonjs.js 223 bytes {1} [built]
<ide> amd require ./commonjs [0] ./amd.js 2:0-12:1
<ide> cjs require ./commonjs [0] ./amd.js 7:18-39
<ide> harmony import ./commonjs [2] ./harmony.js 2:0-34
<ide> cjs require ./commonjs [4] ./example.js 2:16-37
<ide> amd require ./commonjs [4] ./example.js 7:0-14:1
<ide> amd require ./commonjs [4] ./example.js 7:0-14:1
<del> [2] ./harmony.js 101 bytes {1} [built]
<add> [2] ./harmony.js 96 bytes {1} [built]
<add> [exports: default]
<ide> amd require ./harmony [0] ./amd.js 2:0-12:1
<ide> cjs require ./harmony [0] ./amd.js 8:17-37
<ide> amd require ./harmony [1] ./commonjs.js 5:0-11:1
<ide> cjs require ./harmony [1] ./commonjs.js 9:17-37
<ide> cjs require ./harmony [4] ./example.js 4:15-35
<del> [4] ./example.js 410 bytes {1} [built]
<add> [4] ./example.js 396 bytes {1} [built]
<ide> ```
<ide><path>examples/mixed/template.md
<ide> You see that everything is working nicely together.
<ide> {{js/output.js}}
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<del>{{js/0.js}}
<add>{{js/0.output.js}}
<ide> ```
<ide>
<ide> # Info
<ide><path>examples/move-to-parent/README.md
<ide> module.exports = {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: cc02f492e44f68d8c237
<del>Version: webpack 2.1.0-beta.22
<del>Time: 224ms
<add>Hash: db7e340b8115120a2cdc
<add>Version: webpack 2.1.0-beta.25
<add>Time: 173ms
<ide> Asset Size Chunks Chunk Names
<ide> 0.chunk.js 779 bytes 0, 1, 2, 3 [emitted]
<ide> 1.chunk.js 589 bytes 1, 2, 3 [emitted]
<ide> Time: 224ms
<ide> pageD.bundle.js 6.32 kB 4 [emitted] pageD
<ide> pageC.bundle.js 6.32 kB 5 [emitted] pageC
<ide> pageB.bundle.js 6.32 kB 6 [emitted] pageB
<del>pageA.bundle.js 6.26 kB 7 [emitted] pageA
<add>pageA.bundle.js 6.25 kB 7 [emitted] pageA
<ide> Entrypoint pageA = pageA.bundle.js
<ide> Entrypoint pageB = pageB.bundle.js
<ide> Entrypoint pageC = pageC.bundle.js
<ide> chunk {3} 3.chunk.js 21 bytes {7} {6} {5} {4} [rendered]
<ide> > duplicate [6] ./page.js?C 1:0-16
<ide> > duplicate [7] ./page.js?D 1:0-16
<ide> [0] ./a.js 21 bytes {0} {1} {2} {3} [built]
<del>chunk {4} pageD.bundle.js (pageD) 118 bytes [entry] [rendered]
<add>chunk {4} pageD.bundle.js (pageD) 114 bytes [entry] [rendered]
<ide> > pageD [7] ./page.js?D
<del> [7] ./page.js?D 118 bytes {4} [built]
<del>chunk {5} pageC.bundle.js (pageC) 118 bytes [entry] [rendered]
<add> [7] ./page.js?D 114 bytes {4} [built]
<add>chunk {5} pageC.bundle.js (pageC) 114 bytes [entry] [rendered]
<ide> > pageC [6] ./page.js?C
<del> [6] ./page.js?C 118 bytes {5} [built]
<del>chunk {6} pageB.bundle.js (pageB) 118 bytes [entry] [rendered]
<add> [6] ./page.js?C 114 bytes {5} [built]
<add>chunk {6} pageB.bundle.js (pageB) 114 bytes [entry] [rendered]
<ide> > pageB [5] ./page.js?B
<del> [5] ./page.js?B 118 bytes {6} [built]
<del>chunk {7} pageA.bundle.js (pageA) 118 bytes [entry] [rendered]
<add> [5] ./page.js?B 114 bytes {6} [built]
<add>chunk {7} pageA.bundle.js (pageA) 114 bytes [entry] [rendered]
<ide> > pageA [4] ./page.js?A
<del> [4] ./page.js?A 118 bytes {7} [built]
<add> [4] ./page.js?A 114 bytes {7} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: cc02f492e44f68d8c237
<del>Version: webpack 2.1.0-beta.22
<del>Time: 673ms
<add>Hash: db7e340b8115120a2cdc
<add>Version: webpack 2.1.0-beta.25
<add>Time: 466ms
<ide> Asset Size Chunks Chunk Names
<ide> 0.chunk.js 142 bytes 0, 1, 2, 3 [emitted]
<ide> 1.chunk.js 111 bytes 1, 2, 3 [emitted]
<ide> 2.chunk.js 80 bytes 2, 3 [emitted]
<ide> 3.chunk.js 49 bytes 3 [emitted]
<del>pageD.bundle.js 1.6 kB 4 [emitted] pageD
<del>pageC.bundle.js 1.6 kB 5 [emitted] pageC
<del>pageB.bundle.js 1.6 kB 6 [emitted] pageB
<del>pageA.bundle.js 1.6 kB 7 [emitted] pageA
<add>pageD.bundle.js 1.58 kB 4 [emitted] pageD
<add>pageC.bundle.js 1.58 kB 5 [emitted] pageC
<add>pageB.bundle.js 1.58 kB 6 [emitted] pageB
<add>pageA.bundle.js 1.58 kB 7 [emitted] pageA
<ide> Entrypoint pageA = pageA.bundle.js
<ide> Entrypoint pageB = pageB.bundle.js
<ide> Entrypoint pageC = pageC.bundle.js
<ide> chunk {3} 3.chunk.js 21 bytes {7} {6} {5} {4} [rendered]
<ide> > duplicate [6] ./page.js?C 1:0-16
<ide> > duplicate [7] ./page.js?D 1:0-16
<ide> [0] ./a.js 21 bytes {0} {1} {2} {3} [built]
<del>chunk {4} pageD.bundle.js (pageD) 118 bytes [entry] [rendered]
<add>chunk {4} pageD.bundle.js (pageD) 114 bytes [entry] [rendered]
<ide> > pageD [7] ./page.js?D
<del> [7] ./page.js?D 118 bytes {4} [built]
<del>chunk {5} pageC.bundle.js (pageC) 118 bytes [entry] [rendered]
<add> [7] ./page.js?D 114 bytes {4} [built]
<add>chunk {5} pageC.bundle.js (pageC) 114 bytes [entry] [rendered]
<ide> > pageC [6] ./page.js?C
<del> [6] ./page.js?C 118 bytes {5} [built]
<del>chunk {6} pageB.bundle.js (pageB) 118 bytes [entry] [rendered]
<add> [6] ./page.js?C 114 bytes {5} [built]
<add>chunk {6} pageB.bundle.js (pageB) 114 bytes [entry] [rendered]
<ide> > pageB [5] ./page.js?B
<del> [5] ./page.js?B 118 bytes {6} [built]
<del>chunk {7} pageA.bundle.js (pageA) 118 bytes [entry] [rendered]
<add> [5] ./page.js?B 114 bytes {6} [built]
<add>chunk {7} pageA.bundle.js (pageA) 114 bytes [entry] [rendered]
<ide> > pageA [4] ./page.js?A
<del> [4] ./page.js?A 118 bytes {7} [built]
<add> [4] ./page.js?A 114 bytes {7} [built]
<ide> ```
<ide><path>examples/multi-compiler/README.md
<ide> console.log("Running " + "mobile" + " build");
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: a607047e68455846998bcceba4bc5163d755f291
<del>Version: webpack 2.1.0-beta.22
<add>Hash: 4b2d49e03773278d9a9728f5d936e54472e7499c
<add>Version: webpack 2.1.0-beta.25
<ide> Child mobile:
<del> Hash: a607047e68455846998b
<del> Version: webpack 2.1.0-beta.22
<del> Time: 148ms
<add> Hash: 4b2d49e03773278d9a97
<add> Version: webpack 2.1.0-beta.25
<add> Time: 116ms
<ide> Asset Size Chunks Chunk Names
<ide> mobile.js 2.92 kB 0 [emitted] main
<ide> Entrypoint main = mobile.js
<del> chunk {0} mobile.js (main) 117 bytes [entry] [rendered]
<add> chunk {0} mobile.js (main) 114 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<ide> [0] ./mobile-stuff.js 20 bytes {0} [built]
<ide> cjs require ./mobile-stuff [1] ./example.js 2:1-26
<del> [1] ./example.js 97 bytes {0} [built]
<add> [1] ./example.js 94 bytes {0} [built]
<ide> Child desktop:
<del> Hash: cceba4bc5163d755f291
<del> Version: webpack 2.1.0-beta.22
<del> Time: 125ms
<add> Hash: 28f5d936e54472e7499c
<add> Version: webpack 2.1.0-beta.25
<add> Time: 98ms
<ide> Asset Size Chunks Chunk Names
<ide> desktop.js 2.68 kB 0 [emitted] main
<ide> Entrypoint main = desktop.js
<del> chunk {0} desktop.js (main) 97 bytes [entry] [rendered]
<add> chunk {0} desktop.js (main) 94 bytes [entry] [rendered]
<ide> > main [0] ./example.js
<del> [0] ./example.js 97 bytes {0} [built]
<add> [0] ./example.js 94 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: a607047e68455846998bcceba4bc5163d755f291
<del>Version: webpack 2.1.0-beta.22
<add>Hash: 4b2d49e03773278d9a9728f5d936e54472e7499c
<add>Version: webpack 2.1.0-beta.25
<ide> Child mobile:
<del> Hash: a607047e68455846998b
<del> Version: webpack 2.1.0-beta.22
<del> Time: 274ms
<add> Hash: 4b2d49e03773278d9a97
<add> Version: webpack 2.1.0-beta.25
<add> Time: 228ms
<ide> Asset Size Chunks Chunk Names
<del> mobile.js 566 bytes 0 [emitted] main
<add> mobile.js 563 bytes 0 [emitted] main
<ide> Entrypoint main = mobile.js
<del> chunk {0} mobile.js (main) 117 bytes [entry] [rendered]
<add> chunk {0} mobile.js (main) 114 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<ide> [0] ./mobile-stuff.js 20 bytes {0} [built]
<ide> cjs require ./mobile-stuff [1] ./example.js 2:1-26
<del> [1] ./example.js 97 bytes {0} [built]
<add> [1] ./example.js 94 bytes {0} [built]
<ide> Child desktop:
<del> Hash: cceba4bc5163d755f291
<del> Version: webpack 2.1.0-beta.22
<del> Time: 253ms
<add> Hash: 28f5d936e54472e7499c
<add> Version: webpack 2.1.0-beta.25
<add> Time: 211ms
<ide> Asset Size Chunks Chunk Names
<del> desktop.js 546 bytes 0 [emitted] main
<add> desktop.js 543 bytes 0 [emitted] main
<ide> Entrypoint main = desktop.js
<del> chunk {0} desktop.js (main) 97 bytes [entry] [rendered]
<add> chunk {0} desktop.js (main) 94 bytes [entry] [rendered]
<ide> > main [0] ./example.js
<del> [0] ./example.js 97 bytes {0} [built]
<add> [0] ./example.js 94 bytes {0} [built]
<ide> ```
<ide>\ No newline at end of file
<ide><path>examples/multi-part-library/README.md
<ide> module.exports = "beta";
<ide>
<ide> ```
<ide> Hash: 082bbeea226fa367215b
<del>Version: webpack 2.1.0-beta.22
<del>Time: 115ms
<add>Version: webpack 2.1.0-beta.25
<add>Time: 104ms
<ide> Asset Size Chunks Chunk Names
<ide> MyLibrary.beta.js 3.02 kB 0 [emitted] beta
<ide> MyLibrary.alpha.js 3.01 kB 1 [emitted] alpha
<ide> chunk {1} MyLibrary.alpha.js (alpha) 25 bytes [entry] [rendered]
<ide>
<ide> ```
<ide> Hash: 082bbeea226fa367215b
<del>Version: webpack 2.1.0-beta.22
<del>Time: 289ms
<add>Version: webpack 2.1.0-beta.25
<add>Time: 248ms
<ide> Asset Size Chunks Chunk Names
<del> MyLibrary.beta.js 778 bytes 0 [emitted] beta
<del>MyLibrary.alpha.js 780 bytes 1 [emitted] alpha
<add> MyLibrary.beta.js 775 bytes 0 [emitted] beta
<add>MyLibrary.alpha.js 777 bytes 1 [emitted] alpha
<ide> Entrypoint alpha = MyLibrary.alpha.js
<ide> Entrypoint beta = MyLibrary.beta.js
<ide> chunk {0} MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
<ide><path>examples/multiple-commons-chunks/README.md
<ide> __webpack_require__(/*! ./modules/admin */ 1);
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 764a54c5fb49032655d8
<del>Version: webpack 2.1.0-beta.22
<del>Time: 202ms
<add>Hash: f8080824b869884efe88
<add>Version: webpack 2.1.0-beta.25
<add>Time: 164ms
<ide> Asset Size Chunks Chunk Names
<del> pageC.js 768 bytes 0 [emitted] pageC
<del> pageB.js 567 bytes 1 [emitted] pageB
<del> pageA.js 567 bytes 2 [emitted] pageA
<del> adminPageC.js 544 bytes 3, 4 [emitted] adminPageC
<add> pageC.js 765 bytes 0 [emitted] pageC
<add> pageB.js 564 bytes 1 [emitted] pageB
<add> pageA.js 564 bytes 2 [emitted] pageA
<add> adminPageC.js 543 bytes 3, 4 [emitted] adminPageC
<ide> admin-commons.js 233 bytes 4 [emitted] admin-commons
<del> adminPageB.js 337 bytes 5 [emitted] adminPageB
<del> adminPageA.js 337 bytes 6 [emitted] adminPageA
<add> adminPageB.js 336 bytes 5 [emitted] adminPageB
<add> adminPageA.js 336 bytes 6 [emitted] adminPageA
<ide> commons.js 5.79 kB 7, 8 [emitted] commons
<ide> c-commons.js 5.55 kB 8 [emitted] c-commons
<del>Entrypoint adminPageA = commons.js admin-commons.js adminPageA.js
<del>Entrypoint adminPageB = commons.js admin-commons.js adminPageB.js
<del>Entrypoint adminPageC = c-commons.js adminPageC.js
<ide> Entrypoint pageA = commons.js pageA.js
<ide> Entrypoint pageB = commons.js pageB.js
<ide> Entrypoint pageC = c-commons.js pageC.js
<del>chunk {0} pageC.js (pageC) 83 bytes {8} [initial] [rendered]
<add>Entrypoint adminPageA = commons.js admin-commons.js adminPageA.js
<add>Entrypoint adminPageB = commons.js admin-commons.js adminPageB.js
<add>Entrypoint adminPageC = c-commons.js adminPageC.js
<add>chunk {0} pageC.js (pageC) 80 bytes {8} [initial] [rendered]
<ide> > pageC [10] ./pageC.js
<ide> [2] ./modules/a-c.js 0 bytes {0} {2} [built]
<ide> cjs require ./modules/a-c [8] ./pageA.js 3:0-24
<ide> cjs require ./modules/a-c [10] ./pageC.js 3:0-24
<ide> [3] ./modules/b-c.js 0 bytes {0} {1} [built]
<ide> cjs require ./modules/b-c [9] ./pageB.js 3:0-24
<ide> cjs require ./modules/b-c [10] ./pageC.js 2:0-24
<del> [10] ./pageC.js 83 bytes {0} [built]
<del>chunk {1} pageB.js (pageB) 83 bytes {7} [initial] [rendered]
<add> [10] ./pageC.js 80 bytes {0} [built]
<add>chunk {1} pageB.js (pageB) 80 bytes {7} [initial] [rendered]
<ide> > pageB [9] ./pageB.js
<ide> [3] ./modules/b-c.js 0 bytes {0} {1} [built]
<ide> cjs require ./modules/b-c [9] ./pageB.js 3:0-24
<ide> cjs require ./modules/b-c [10] ./pageC.js 2:0-24
<del> [9] ./pageB.js 83 bytes {1} [built]
<del>chunk {2} pageA.js (pageA) 83 bytes {7} [initial] [rendered]
<add> [9] ./pageB.js 80 bytes {1} [built]
<add>chunk {2} pageA.js (pageA) 80 bytes {7} [initial] [rendered]
<ide> > pageA [8] ./pageA.js
<ide> [2] ./modules/a-c.js 0 bytes {0} {2} [built]
<ide> cjs require ./modules/a-c [8] ./pageA.js 3:0-24
<ide> cjs require ./modules/a-c [10] ./pageC.js 3:0-24
<del> [8] ./pageA.js 83 bytes {2} [built]
<del>chunk {3} adminPageC.js (adminPageC) 56 bytes {8} [initial] [rendered]
<add> [8] ./pageA.js 80 bytes {2} [built]
<add>chunk {3} adminPageC.js (adminPageC) 55 bytes {8} [initial] [rendered]
<ide> > adminPageC [7] ./adminPageC.js
<ide> [1] ./modules/admin.js 0 bytes {3} {4} [built]
<ide> cjs require ./modules/admin [5] ./adminPageA.js 2:0-26
<ide> cjs require ./modules/admin [6] ./adminPageB.js 2:0-26
<ide> cjs require ./modules/admin [7] ./adminPageC.js 2:0-26
<del> [7] ./adminPageC.js 56 bytes {3} [built]
<add> [7] ./adminPageC.js 55 bytes {3} [built]
<ide> chunk {4} admin-commons.js (admin-commons) 0 bytes {7} [initial] [rendered]
<ide> [1] ./modules/admin.js 0 bytes {3} {4} [built]
<ide> cjs require ./modules/admin [5] ./adminPageA.js 2:0-26
<ide> cjs require ./modules/admin [6] ./adminPageB.js 2:0-26
<ide> cjs require ./modules/admin [7] ./adminPageC.js 2:0-26
<del>chunk {5} adminPageB.js (adminPageB) 56 bytes {4} [initial] [rendered]
<add>chunk {5} adminPageB.js (adminPageB) 55 bytes {4} [initial] [rendered]
<ide> > adminPageB [6] ./adminPageB.js
<del> [6] ./adminPageB.js 56 bytes {5} [built]
<del>chunk {6} adminPageA.js (adminPageA) 56 bytes {4} [initial] [rendered]
<add> [6] ./adminPageB.js 55 bytes {5} [built]
<add>chunk {6} adminPageA.js (adminPageA) 55 bytes {4} [initial] [rendered]
<ide> > adminPageA [5] ./adminPageA.js
<del> [5] ./adminPageA.js 56 bytes {6} [built]
<add> [5] ./adminPageA.js 55 bytes {6} [built]
<ide> chunk {7} commons.js (commons) 0 bytes [entry] [rendered]
<ide> [0] ./modules/a-b-c.js 0 bytes {7} {8} [built]
<ide> cjs require ./modules/a-b-c [5] ./adminPageA.js 1:0-26
<ide> chunk {8} c-commons.js (c-commons) 0 bytes [entry] [rendered]
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 764a54c5fb49032655d8
<del>Version: webpack 2.1.0-beta.22
<del>Time: 469ms
<add>Hash: f8080824b869884efe88
<add>Version: webpack 2.1.0-beta.25
<add>Time: 384ms
<ide> Asset Size Chunks Chunk Names
<ide> pageC.js 96 bytes 0 [emitted] pageC
<ide> pageB.js 76 bytes 1 [emitted] pageB
<ide> Time: 469ms
<ide> admin-commons.js 37 bytes 4 [emitted] admin-commons
<ide> adminPageB.js 53 bytes 5 [emitted] adminPageB
<ide> adminPageA.js 53 bytes 6 [emitted] adminPageA
<del> commons.js 1.37 kB 7, 8 [emitted] commons
<add> commons.js 1.36 kB 7, 8 [emitted] commons
<ide> c-commons.js 1.34 kB 8 [emitted] c-commons
<del>Entrypoint adminPageA = commons.js admin-commons.js adminPageA.js
<del>Entrypoint adminPageB = commons.js admin-commons.js adminPageB.js
<del>Entrypoint adminPageC = c-commons.js adminPageC.js
<ide> Entrypoint pageA = commons.js pageA.js
<ide> Entrypoint pageB = commons.js pageB.js
<ide> Entrypoint pageC = c-commons.js pageC.js
<del>chunk {0} pageC.js (pageC) 83 bytes {8} [initial] [rendered]
<add>Entrypoint adminPageA = commons.js admin-commons.js adminPageA.js
<add>Entrypoint adminPageB = commons.js admin-commons.js adminPageB.js
<add>Entrypoint adminPageC = c-commons.js adminPageC.js
<add>chunk {0} pageC.js (pageC) 80 bytes {8} [initial] [rendered]
<ide> > pageC [10] ./pageC.js
<ide> [2] ./modules/a-c.js 0 bytes {0} {2} [built]
<ide> cjs require ./modules/a-c [8] ./pageA.js 3:0-24
<ide> cjs require ./modules/a-c [10] ./pageC.js 3:0-24
<ide> [3] ./modules/b-c.js 0 bytes {0} {1} [built]
<ide> cjs require ./modules/b-c [9] ./pageB.js 3:0-24
<ide> cjs require ./modules/b-c [10] ./pageC.js 2:0-24
<del> [10] ./pageC.js 83 bytes {0} [built]
<del>chunk {1} pageB.js (pageB) 83 bytes {7} [initial] [rendered]
<add> [10] ./pageC.js 80 bytes {0} [built]
<add>chunk {1} pageB.js (pageB) 80 bytes {7} [initial] [rendered]
<ide> > pageB [9] ./pageB.js
<ide> [3] ./modules/b-c.js 0 bytes {0} {1} [built]
<ide> cjs require ./modules/b-c [9] ./pageB.js 3:0-24
<ide> cjs require ./modules/b-c [10] ./pageC.js 2:0-24
<del> [9] ./pageB.js 83 bytes {1} [built]
<del>chunk {2} pageA.js (pageA) 83 bytes {7} [initial] [rendered]
<add> [9] ./pageB.js 80 bytes {1} [built]
<add>chunk {2} pageA.js (pageA) 80 bytes {7} [initial] [rendered]
<ide> > pageA [8] ./pageA.js
<ide> [2] ./modules/a-c.js 0 bytes {0} {2} [built]
<ide> cjs require ./modules/a-c [8] ./pageA.js 3:0-24
<ide> cjs require ./modules/a-c [10] ./pageC.js 3:0-24
<del> [8] ./pageA.js 83 bytes {2} [built]
<del>chunk {3} adminPageC.js (adminPageC) 56 bytes {8} [initial] [rendered]
<add> [8] ./pageA.js 80 bytes {2} [built]
<add>chunk {3} adminPageC.js (adminPageC) 55 bytes {8} [initial] [rendered]
<ide> > adminPageC [7] ./adminPageC.js
<ide> [1] ./modules/admin.js 0 bytes {3} {4} [built]
<ide> cjs require ./modules/admin [5] ./adminPageA.js 2:0-26
<ide> cjs require ./modules/admin [6] ./adminPageB.js 2:0-26
<ide> cjs require ./modules/admin [7] ./adminPageC.js 2:0-26
<del> [7] ./adminPageC.js 56 bytes {3} [built]
<add> [7] ./adminPageC.js 55 bytes {3} [built]
<ide> chunk {4} admin-commons.js (admin-commons) 0 bytes {7} [initial] [rendered]
<ide> [1] ./modules/admin.js 0 bytes {3} {4} [built]
<ide> cjs require ./modules/admin [5] ./adminPageA.js 2:0-26
<ide> cjs require ./modules/admin [6] ./adminPageB.js 2:0-26
<ide> cjs require ./modules/admin [7] ./adminPageC.js 2:0-26
<del>chunk {5} adminPageB.js (adminPageB) 56 bytes {4} [initial] [rendered]
<add>chunk {5} adminPageB.js (adminPageB) 55 bytes {4} [initial] [rendered]
<ide> > adminPageB [6] ./adminPageB.js
<del> [6] ./adminPageB.js 56 bytes {5} [built]
<del>chunk {6} adminPageA.js (adminPageA) 56 bytes {4} [initial] [rendered]
<add> [6] ./adminPageB.js 55 bytes {5} [built]
<add>chunk {6} adminPageA.js (adminPageA) 55 bytes {4} [initial] [rendered]
<ide> > adminPageA [5] ./adminPageA.js
<del> [5] ./adminPageA.js 56 bytes {6} [built]
<add> [5] ./adminPageA.js 55 bytes {6} [built]
<ide> chunk {7} commons.js (commons) 0 bytes [entry] [rendered]
<ide> [0] ./modules/a-b-c.js 0 bytes {7} {8} [built]
<ide> cjs require ./modules/a-b-c [5] ./adminPageA.js 1:0-26
<ide><path>examples/multiple-entry-points-commons-chunk-css-bundle/README.md
<ide> body{background:url(js/ce21cbdd9b894e6af794813eb3fdaf60.png)}.c{background:url(j
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 00e1afde57ac2e798bd0
<del>Version: webpack 2.1.0-beta.22
<del>Time: 1499ms
<add>Hash: 76b12a0a76d4a3402d97
<add>Version: webpack 2.1.0-beta.25
<add>Time: 934ms
<ide> Asset Size Chunks Chunk Names
<ide> C.js 2.85 kB 2 [emitted] C
<ide> d090b6fba0f6d326d282a19146ff54a7.png 120 bytes [emitted]
<ide> ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
<ide> c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
<del> B.js 533 bytes 0 [emitted] B
<del> A.js 555 bytes 1 [emitted] A
<add> B.js 531 bytes 0 [emitted] B
<add> A.js 553 bytes 1 [emitted] A
<ide> 16155c689e517682064c99893cb832cc.png 120 bytes [emitted]
<ide> commons.js 5.57 kB 3 [emitted] commons
<del> A.css 69 bytes 1 [emitted] A
<del> B.css 69 bytes 0 [emitted] B
<del> C.css 140 bytes 2 [emitted] C
<del> commons.css 71 bytes 3 [emitted] commons
<add> A.css 66 bytes 1 [emitted] A
<add> B.css 66 bytes 0 [emitted] B
<add> C.css 134 bytes 2 [emitted] C
<add> commons.css 68 bytes 3 [emitted] commons
<ide> Entrypoint A = commons.js commons.css A.js A.css
<ide> Entrypoint B = commons.js commons.css B.js B.css
<ide> Entrypoint C = C.js C.css
<del>chunk {0} B.js, B.css (B) 92 bytes {3} [initial] [rendered]
<add>chunk {0} B.js, B.css (B) 90 bytes {3} [initial] [rendered]
<ide> > B [5] ./b.js
<ide> [2] ./styleB.css 41 bytes {0} [built]
<ide> cjs require ./styleB.css [5] ./b.js 2:0-23
<del> [5] ./b.js 51 bytes {0} [built]
<del>chunk {1} A.js, A.css (A) 92 bytes {3} [initial] [rendered]
<add> [5] ./b.js 49 bytes {0} [built]
<add>chunk {1} A.js, A.css (A) 90 bytes {3} [initial] [rendered]
<ide> > A [4] ./a.js
<ide> [1] ./styleA.css 41 bytes {1} [built]
<ide> cjs require ./styleA.css [4] ./a.js 2:0-23
<del> [4] ./a.js 51 bytes {1} [built]
<del>chunk {2} C.js, C.css (C) 67 bytes [entry] [rendered]
<add> [4] ./a.js 49 bytes {1} [built]
<add>chunk {2} C.js, C.css (C) 66 bytes [entry] [rendered]
<ide> > C [6] ./c.js
<ide> [3] ./styleC.css 41 bytes {2} [built]
<ide> cjs require ./styleC.css [6] ./c.js 1:0-23
<del> [6] ./c.js 26 bytes {2} [built]
<add> [6] ./c.js 25 bytes {2} [built]
<ide> chunk {3} commons.js, commons.css (commons) 41 bytes [entry] [rendered]
<ide> [0] ./style.css 41 bytes {3} [built]
<ide> cjs require ./style.css [4] ./a.js 1:0-22
<ide> Child extract-text-webpack-plugin:
<ide> [0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./styleA.css 1:27-85
<ide> [1] ./imageA.png 82 bytes {0} [built]
<del> cjs require ./imageA.png [2] (webpack)/~/css-loader!./styleA.css 6:56-79
<del> [2] (webpack)/~/css-loader!./styleA.css 227 bytes {0} [built]
<add> cjs require ./imageA.png [2] (webpack)/~/css-loader!./styleA.css 6:54-77
<add> [2] (webpack)/~/css-loader!./styleA.css 221 bytes {0} [built]
<ide> Child extract-text-webpack-plugin:
<ide> Entrypoint undefined = extract-text-webpack-plugin-output-filename
<ide> chunk {0} extract-text-webpack-plugin-output-filename 1.81 kB [entry] [rendered]
<ide> > [2] (webpack)/~/css-loader!./styleB.css
<ide> [0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./styleB.css 1:27-85
<ide> [1] ./imageB.png 82 bytes {0} [built]
<del> cjs require ./imageB.png [2] (webpack)/~/css-loader!./styleB.css 6:56-79
<del> [2] (webpack)/~/css-loader!./styleB.css 227 bytes {0} [built]
<add> cjs require ./imageB.png [2] (webpack)/~/css-loader!./styleB.css 6:54-77
<add> [2] (webpack)/~/css-loader!./styleB.css 221 bytes {0} [built]
<ide> Child extract-text-webpack-plugin:
<ide> Entrypoint undefined = extract-text-webpack-plugin-output-filename
<del> chunk {0} extract-text-webpack-plugin-output-filename 1.82 kB [entry] [rendered]
<add> chunk {0} extract-text-webpack-plugin-output-filename 1.81 kB [entry] [rendered]
<ide> > [2] (webpack)/~/css-loader!./style.css
<ide> [0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
<ide> [1] ./image.png 82 bytes {0} [built]
<del> cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
<del> [2] (webpack)/~/css-loader!./style.css 228 bytes {0} [built]
<add> cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:56-78
<add> [2] (webpack)/~/css-loader!./style.css 222 bytes {0} [built]
<ide> Child extract-text-webpack-plugin:
<ide> Entrypoint undefined = extract-text-webpack-plugin-output-filename
<del> chunk {0} extract-text-webpack-plugin-output-filename 2.21 kB [entry] [rendered]
<add> chunk {0} extract-text-webpack-plugin-output-filename 2.19 kB [entry] [rendered]
<ide> > [4] (webpack)/~/css-loader!./styleC.css
<ide> [0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [1] (webpack)/~/css-loader!./style.css 1:27-85
<ide> cjs require ./../../node_modules/css-loader/lib/css-base.js [4] (webpack)/~/css-loader!./styleC.css 1:27-85
<del> [1] (webpack)/~/css-loader!./style.css 228 bytes {0} [built]
<add> [1] (webpack)/~/css-loader!./style.css 222 bytes {0} [built]
<ide> cjs require -!./../../node_modules/css-loader/index.js!./style.css [4] (webpack)/~/css-loader!./styleC.css 3:10-75
<ide> [2] ./imageC.png 82 bytes {0} [built]
<del> cjs require ./imageC.png [4] (webpack)/~/css-loader!./styleC.css 6:56-79
<add> cjs require ./imageC.png [4] (webpack)/~/css-loader!./styleC.css 6:54-77
<ide> [3] ./image.png 82 bytes {0} [built]
<del> cjs require ./image.png [1] (webpack)/~/css-loader!./style.css 6:58-80
<del> [4] (webpack)/~/css-loader!./styleC.css 308 bytes {0} [built]
<add> cjs require ./image.png [1] (webpack)/~/css-loader!./style.css 6:56-78
<add> [4] (webpack)/~/css-loader!./styleC.css 302 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: c7bb755a7c8349786810
<del>Version: webpack 2.1.0-beta.22
<del>Time: 1828ms
<add>Hash: 76b12a0a76d4a3402d97
<add>Version: webpack 2.1.0-beta.25
<add>Time: 1287ms
<ide> Asset Size Chunks Chunk Names
<del> C.js 534 bytes 2 [emitted] C
<add> C.js 531 bytes 2 [emitted] C
<ide> d090b6fba0f6d326d282a19146ff54a7.png 120 bytes [emitted]
<ide> ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
<ide> c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
<ide> c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
<ide> Entrypoint A = commons.js commons.css A.js A.css
<ide> Entrypoint B = commons.js commons.css B.js B.css
<ide> Entrypoint C = C.js C.css
<del>chunk {0} B.js, B.css (B) 92 bytes {3} [initial] [rendered]
<add>chunk {0} B.js, B.css (B) 90 bytes {3} [initial] [rendered]
<ide> > B [5] ./b.js
<ide> [2] ./styleB.css 41 bytes {0} [built]
<ide> cjs require ./styleB.css [5] ./b.js 2:0-23
<del> [5] ./b.js 51 bytes {0} [built]
<del>chunk {1} A.js, A.css (A) 92 bytes {3} [initial] [rendered]
<add> [5] ./b.js 49 bytes {0} [built]
<add>chunk {1} A.js, A.css (A) 90 bytes {3} [initial] [rendered]
<ide> > A [4] ./a.js
<ide> [1] ./styleA.css 41 bytes {1} [built]
<ide> cjs require ./styleA.css [4] ./a.js 2:0-23
<del> [4] ./a.js 51 bytes {1} [built]
<del>chunk {2} C.js, C.css (C) 67 bytes [entry] [rendered]
<add> [4] ./a.js 49 bytes {1} [built]
<add>chunk {2} C.js, C.css (C) 66 bytes [entry] [rendered]
<ide> > C [6] ./c.js
<ide> [3] ./styleC.css 41 bytes {2} [built]
<ide> cjs require ./styleC.css [6] ./c.js 1:0-23
<del> [6] ./c.js 26 bytes {2} [built]
<add> [6] ./c.js 25 bytes {2} [built]
<ide> chunk {3} commons.js, commons.css (commons) 41 bytes [entry] [rendered]
<ide> [0] ./style.css 41 bytes {3} [built]
<ide> cjs require ./style.css [4] ./a.js 1:0-22
<ide><path>examples/multiple-entry-points/README.md
<ide> module.exports = function(msg) {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 8ccc79cdf2183770dc18
<del>Version: webpack 2.1.0-beta.22
<del>Time: 167ms
<add>Hash: 8f412be4af558f9cbd3b
<add>Version: webpack 2.1.0-beta.25
<add>Time: 148ms
<ide> Asset Size Chunks Chunk Names
<del> 0.chunk.js 334 bytes 0 [emitted]
<del>pageB.bundle.js 533 bytes 1 [emitted] pageB
<del>pageA.bundle.js 568 bytes 2 [emitted] pageA
<add> 0.chunk.js 331 bytes 0 [emitted]
<add>pageB.bundle.js 529 bytes 1 [emitted] pageB
<add>pageA.bundle.js 565 bytes 2 [emitted] pageA
<ide> commons.js 5.57 kB 3 [emitted] commons
<ide> Entrypoint pageA = commons.js pageA.bundle.js
<ide> Entrypoint pageB = commons.js pageB.bundle.js
<del>chunk {0} 0.chunk.js 91 bytes {2} {1} [rendered]
<add>chunk {0} 0.chunk.js 88 bytes {2} {1} [rendered]
<ide> > duplicate [2] ./pageA.js 2:0-4:2
<ide> > duplicate [3] ./pageB.js 2:0-5:2
<del> [0] ./shared.js 91 bytes {0} [built]
<add> [0] ./shared.js 88 bytes {0} [built]
<ide> amd require ./shared [2] ./pageA.js 2:0-4:2
<ide> require.ensure item ./shared [3] ./pageB.js 2:0-5:2
<ide> cjs require ./shared [3] ./pageB.js 3:14-33
<del>chunk {1} pageB.bundle.js (pageB) 152 bytes {3} [initial] [rendered]
<add>chunk {1} pageB.bundle.js (pageB) 148 bytes {3} [initial] [rendered]
<ide> > pageB [3] ./pageB.js
<del> [3] ./pageB.js 152 bytes {1} [built]
<del>chunk {2} pageA.bundle.js (pageA) 108 bytes {3} [initial] [rendered]
<add> [3] ./pageB.js 148 bytes {1} [built]
<add>chunk {2} pageA.bundle.js (pageA) 105 bytes {3} [initial] [rendered]
<ide> > pageA [2] ./pageA.js
<del> [2] ./pageA.js 108 bytes {2} [built]
<add> [2] ./pageA.js 105 bytes {2} [built]
<ide> chunk {3} commons.js (commons) 26 bytes [entry] [rendered]
<ide> [1] ./common.js 26 bytes {3} [built]
<ide> cjs require ./common [0] ./shared.js 1:13-32
<ide> chunk {3} commons.js (commons) 26 bytes [entry] [rendered]
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 8ccc79cdf2183770dc18
<del>Version: webpack 2.1.0-beta.22
<del>Time: 351ms
<add>Hash: 8f412be4af558f9cbd3b
<add>Version: webpack 2.1.0-beta.25
<add>Time: 279ms
<ide> Asset Size Chunks Chunk Names
<ide> 0.chunk.js 80 bytes 0 [emitted]
<del>pageB.bundle.js 149 bytes 1 [emitted] pageB
<del>pageA.bundle.js 166 bytes 2 [emitted] pageA
<add>pageB.bundle.js 146 bytes 1 [emitted] pageB
<add>pageA.bundle.js 163 bytes 2 [emitted] pageA
<ide> commons.js 1.37 kB 3 [emitted] commons
<ide> Entrypoint pageA = commons.js pageA.bundle.js
<ide> Entrypoint pageB = commons.js pageB.bundle.js
<del>chunk {0} 0.chunk.js 91 bytes {2} {1} [rendered]
<add>chunk {0} 0.chunk.js 88 bytes {2} {1} [rendered]
<ide> > duplicate [2] ./pageA.js 2:0-4:2
<ide> > duplicate [3] ./pageB.js 2:0-5:2
<del> [0] ./shared.js 91 bytes {0} [built]
<add> [0] ./shared.js 88 bytes {0} [built]
<ide> amd require ./shared [2] ./pageA.js 2:0-4:2
<ide> require.ensure item ./shared [3] ./pageB.js 2:0-5:2
<ide> cjs require ./shared [3] ./pageB.js 3:14-33
<del>chunk {1} pageB.bundle.js (pageB) 152 bytes {3} [initial] [rendered]
<add>chunk {1} pageB.bundle.js (pageB) 148 bytes {3} [initial] [rendered]
<ide> > pageB [3] ./pageB.js
<del> [3] ./pageB.js 152 bytes {1} [built]
<del>chunk {2} pageA.bundle.js (pageA) 108 bytes {3} [initial] [rendered]
<add> [3] ./pageB.js 148 bytes {1} [built]
<add>chunk {2} pageA.bundle.js (pageA) 105 bytes {3} [initial] [rendered]
<ide> > pageA [2] ./pageA.js
<del> [2] ./pageA.js 108 bytes {2} [built]
<add> [2] ./pageA.js 105 bytes {2} [built]
<ide> chunk {3} commons.js (commons) 26 bytes [entry] [rendered]
<ide> [1] ./common.js 26 bytes {3} [built]
<ide> cjs require ./common [0] ./shared.js 1:13-32
<ide><path>examples/named-chunks/README.md
<ide> require.ensure(["b"], function(require) {
<ide> /******/ script.async = true;
<ide> /******/ script.timeout = 120000;
<ide>
<del>/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
<add>/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
<ide> /******/ var timeout = setTimeout(onScriptComplete, 120000);
<ide> /******/ script.onerror = script.onload = onScriptComplete;
<ide> /******/ function onScriptComplete() {
<ide> __webpack_require__.e/* nsure */(1).catch(function(err) { __webpack_require__.oe
<ide> /******/ ]);
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([0,1],[
<ide> webpackJsonp([0,1],[
<ide> ]);
<ide> ```
<ide>
<del># js/1.js
<add># js/1.output.js
<ide>
<ide> ``` javascript
<ide> webpackJsonp([1],[
<ide> webpackJsonp([1],[
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 296a220c1414170a9986
<del>Version: webpack 2.1.0-beta.22
<del>Time: 197ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 584 bytes 0, 1 [emitted] my own chunk
<del> 1.js 389 bytes 1 [emitted]
<del>output.js 6.61 kB 2 [emitted] main
<add>Hash: e76dc621f72ec81020de
<add>Version: webpack 2.1.0-beta.25
<add>Time: 162ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 584 bytes 0, 1 [emitted] my own chunk
<add>1.output.js 389 bytes 1 [emitted]
<add> output.js 6.6 kB 2 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js (my own chunk) 33 bytes {2} [rendered]
<add>chunk {0} 0.output.js (my own chunk) 33 bytes {2} [rendered]
<ide> > my own chunk [4] ./example.js 3:0-6:18
<ide> > my own chunk [4] ./example.js 8:0-11:18
<ide> > my own chunk [4] ./example.js 13:0-15:18
<ide> chunk {0} 0.js (my own chunk) 33 bytes {2} [rendered]
<ide> cjs require d [4] ./example.js 19:9-21
<ide> [3] ./~/c.js 11 bytes {0} [built]
<ide> cjs require c [4] ./example.js 5:9-21
<del>chunk {1} 1.js 22 bytes {2} [rendered]
<add>chunk {1} 1.output.js 22 bytes {2} [rendered]
<ide> > [4] ./example.js 17:0-20:2
<ide> [0] ./~/b.js 11 bytes {0} {1} [built]
<ide> require.ensure item b [4] ./example.js 3:0-6:18
<ide> chunk {1} 1.js 22 bytes {2} [rendered]
<ide> [1] ./~/d.js 11 bytes {0} {1} [built]
<ide> cjs require d [4] ./example.js 10:9-21
<ide> cjs require d [4] ./example.js 19:9-21
<del>chunk {2} output.js (main) 452 bytes [entry] [rendered]
<add>chunk {2} output.js (main) 432 bytes [entry] [rendered]
<ide> > main [4] ./example.js
<ide> [2] ./~/a.js 11 bytes {2} [built]
<ide> cjs require a [4] ./example.js 1:8-20
<del> [4] ./example.js 441 bytes {2} [built]
<add> [4] ./example.js 421 bytes {2} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 296a220c1414170a9986
<del>Version: webpack 2.1.0-beta.22
<del>Time: 384ms
<del> Asset Size Chunks Chunk Names
<del> 0.js 71 bytes 0, 1 [emitted] my own chunk
<del> 1.js 52 bytes 1 [emitted]
<del>output.js 1.63 kB 2 [emitted] main
<add>Hash: e76dc621f72ec81020de
<add>Version: webpack 2.1.0-beta.25
<add>Time: 304ms
<add> Asset Size Chunks Chunk Names
<add>0.output.js 71 bytes 0, 1 [emitted] my own chunk
<add>1.output.js 52 bytes 1 [emitted]
<add> output.js 1.62 kB 2 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} 0.js (my own chunk) 33 bytes {2} [rendered]
<add>chunk {0} 0.output.js (my own chunk) 33 bytes {2} [rendered]
<ide> > my own chunk [4] ./example.js 3:0-6:18
<ide> > my own chunk [4] ./example.js 8:0-11:18
<ide> > my own chunk [4] ./example.js 13:0-15:18
<ide> chunk {0} 0.js (my own chunk) 33 bytes {2} [rendered]
<ide> cjs require d [4] ./example.js 19:9-21
<ide> [3] ./~/c.js 11 bytes {0} [built]
<ide> cjs require c [4] ./example.js 5:9-21
<del>chunk {1} 1.js 22 bytes {2} [rendered]
<add>chunk {1} 1.output.js 22 bytes {2} [rendered]
<ide> > [4] ./example.js 17:0-20:2
<ide> [0] ./~/b.js 11 bytes {0} {1} [built]
<ide> require.ensure item b [4] ./example.js 3:0-6:18
<ide> chunk {1} 1.js 22 bytes {2} [rendered]
<ide> [1] ./~/d.js 11 bytes {0} {1} [built]
<ide> cjs require d [4] ./example.js 10:9-21
<ide> cjs require d [4] ./example.js 19:9-21
<del>chunk {2} output.js (main) 452 bytes [entry] [rendered]
<add>chunk {2} output.js (main) 432 bytes [entry] [rendered]
<ide> > main [4] ./example.js
<ide> [2] ./~/a.js 11 bytes {2} [built]
<ide> cjs require a [4] ./example.js 1:8-20
<del> [4] ./example.js 441 bytes {2} [built]
<add> [4] ./example.js 421 bytes {2} [built]
<ide> ```
<ide><path>examples/named-chunks/template.md
<ide> {{js/output.js}}
<ide> ```
<ide>
<del># js/0.js
<add># js/0.output.js
<ide>
<ide> ``` javascript
<del>{{js/0.js}}
<add>{{js/0.output.js}}
<ide> ```
<ide>
<del># js/1.js
<add># js/1.output.js
<ide>
<ide> ``` javascript
<del>{{js/1.js}}
<add>{{js/1.output.js}}
<ide> ```
<ide>
<ide> # Info
<ide><path>examples/require.context/README.md
<ide> console.log(getTemplate("b"));
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 30c09c4705d58423325a
<del>Version: webpack 2.1.0-beta.22
<del>Time: 159ms
<add>Hash: 434f1ff7c7a1ef6454f5
<add>Version: webpack 2.1.0-beta.25
<add>Time: 121ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 4.36 kB 0 [emitted] main
<add>output.js 4.35 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 613 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 603 bytes [entry] [rendered]
<ide> > main [4] ./example.js
<del> [0] ./templates/a.js 82 bytes {0} [optional] [built]
<add> [0] ./templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a [3] ./templates ^\.\/.*$
<ide> context element ./a.js [3] ./templates ^\.\/.*$
<del> [1] ./templates/b.js 82 bytes {0} [optional] [built]
<add> [1] ./templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b [3] ./templates ^\.\/.*$
<ide> context element ./b.js [3] ./templates ^\.\/.*$
<del> [2] ./templates/c.js 82 bytes {0} [optional] [built]
<add> [2] ./templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c [3] ./templates ^\.\/.*$
<ide> context element ./c.js [3] ./templates ^\.\/.*$
<ide> [3] ./templates ^\.\/.*$ 217 bytes {0} [built]
<ide> cjs require context ./templates [4] ./example.js 2:8-44
<del> [4] ./example.js 150 bytes {0} [built]
<add> [4] ./example.js 146 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 30c09c4705d58423325a
<del>Version: webpack 2.1.0-beta.22
<del>Time: 298ms
<del> Asset Size Chunks Chunk Names
<del>output.js 1.11 kB 0 [emitted] main
<add>Hash: 434f1ff7c7a1ef6454f5
<add>Version: webpack 2.1.0-beta.25
<add>Time: 236ms
<add> Asset Size Chunks Chunk Names
<add>output.js 1.1 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 613 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 603 bytes [entry] [rendered]
<ide> > main [4] ./example.js
<del> [0] ./templates/a.js 82 bytes {0} [optional] [built]
<add> [0] ./templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a [3] ./templates ^\.\/.*$
<ide> context element ./a.js [3] ./templates ^\.\/.*$
<del> [1] ./templates/b.js 82 bytes {0} [optional] [built]
<add> [1] ./templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b [3] ./templates ^\.\/.*$
<ide> context element ./b.js [3] ./templates ^\.\/.*$
<del> [2] ./templates/c.js 82 bytes {0} [optional] [built]
<add> [2] ./templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c [3] ./templates ^\.\/.*$
<ide> context element ./c.js [3] ./templates ^\.\/.*$
<ide> [3] ./templates ^\.\/.*$ 217 bytes {0} [built]
<ide> cjs require context ./templates [4] ./example.js 2:8-44
<del> [4] ./example.js 150 bytes {0} [built]
<add> [4] ./example.js 146 bytes {0} [built]
<ide> ```
<ide>
<ide> # Code Splitting
<ide><path>examples/require.resolve/README.md
<ide> if(a == a2) throw new Error("Cache clear failed :(");
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: 131f3b8d3804877f4b53
<del>Version: webpack 2.1.0-beta.22
<del>Time: 129ms
<add>Hash: 61b465fe869dc6143477
<add>Version: webpack 2.1.0-beta.25
<add>Time: 108ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 3.14 kB 0 [emitted] main
<add>output.js 3.13 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 326 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 314 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<ide> [0] ./a.js 31 bytes {0} [built]
<ide> cjs require ./a [1] ./example.js 1:8-22
<ide> cjs require ./a [1] ./example.js 10:9-23
<ide> require.resolve ./a.js [1] ./example.js 4:10-35
<del> [1] ./example.js 295 bytes {0} [built]
<add> [1] ./example.js 283 bytes {0} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: 131f3b8d3804877f4b53
<del>Version: webpack 2.1.0-beta.22
<del>Time: 249ms
<add>Hash: 61b465fe869dc6143477
<add>Version: webpack 2.1.0-beta.25
<add>Time: 213ms
<ide> Asset Size Chunks Chunk Names
<del>output.js 637 bytes 0 [emitted] main
<add>output.js 634 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 326 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 314 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<ide> [0] ./a.js 31 bytes {0} [built]
<ide> cjs require ./a [1] ./example.js 1:8-22
<ide> cjs require ./a [1] ./example.js 10:9-23
<ide> require.resolve ./a.js [1] ./example.js 4:10-35
<del> [1] ./example.js 295 bytes {0} [built]
<add> [1] ./example.js 283 bytes {0} [built]
<ide> ```
<ide><path>examples/two-explicit-vendor-chunks/README.md
<ide> __webpack_require__(/*! ./vendor2 */ 1);
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: e9433f5b10cba6978ef2
<del>Version: webpack 2.1.0-beta.22
<del>Time: 152ms
<add>Hash: d4f5399f44922b355b26
<add>Version: webpack 2.1.0-beta.25
<add>Time: 133ms
<ide> Asset Size Chunks Chunk Names
<del>vendor2.js 573 bytes 0 [emitted] vendor2
<add>vendor2.js 571 bytes 0 [emitted] vendor2
<ide> pageC.js 232 bytes 1 [emitted] pageC
<ide> pageB.js 232 bytes 2 [emitted] pageB
<del> pageA.js 339 bytes 3 [emitted] pageA
<add> pageA.js 336 bytes 3 [emitted] pageA
<ide> vendor1.js 5.95 kB 4 [emitted] vendor1
<add>Entrypoint vendor1 = vendor1.js
<add>Entrypoint vendor2 = vendor1.js vendor2.js
<ide> Entrypoint pageA = vendor1.js vendor2.js pageA.js
<ide> Entrypoint pageB = vendor1.js vendor2.js pageB.js
<ide> Entrypoint pageC = vendor1.js vendor2.js pageC.js
<del>Entrypoint vendor1 = vendor1.js
<del>Entrypoint vendor2 = vendor1.js vendor2.js
<del>chunk {0} vendor2.js (vendor2) 80 bytes {4} [initial] [rendered]
<add>chunk {0} vendor2.js (vendor2) 78 bytes {4} [initial] [rendered]
<ide> > vendor2 [6] multi vendor2
<del> [1] ./vendor2.js 52 bytes {0} [built]
<add> [1] ./vendor2.js 50 bytes {0} [built]
<ide> cjs require ./vendor2 [2] ./pageA.js 3:0-20
<ide> single entry ./vendor2 [6] multi vendor2
<ide> [6] multi vendor2 28 bytes {0} [built]
<ide> chunk {1} pageC.js (pageC) 25 bytes {0} [initial] [rendered]
<ide> chunk {2} pageB.js (pageB) 25 bytes {0} [initial] [rendered]
<ide> > pageB [3] ./pageB.js
<ide> [3] ./pageB.js 25 bytes {2} [built]
<del>chunk {3} pageA.js (pageA) 73 bytes {0} [initial] [rendered]
<add>chunk {3} pageA.js (pageA) 70 bytes {0} [initial] [rendered]
<ide> > pageA [2] ./pageA.js
<del> [2] ./pageA.js 73 bytes {3} [built]
<add> [2] ./pageA.js 70 bytes {3} [built]
<ide> chunk {4} vendor1.js (vendor1) 55 bytes [entry] [rendered]
<ide> > vendor1 [5] multi vendor1
<ide> [0] ./vendor1.js 27 bytes {4} [built]
<ide> chunk {4} vendor1.js (vendor1) 55 bytes [entry] [rendered]
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: e9433f5b10cba6978ef2
<del>Version: webpack 2.1.0-beta.22
<del>Time: 316ms
<add>Hash: d4f5399f44922b355b26
<add>Version: webpack 2.1.0-beta.25
<add>Time: 280ms
<ide> Asset Size Chunks Chunk Names
<ide> vendor2.js 102 bytes 0 [emitted] vendor2
<ide> pageC.js 59 bytes 1 [emitted] pageC
<ide> pageB.js 59 bytes 2 [emitted] pageB
<ide> pageA.js 71 bytes 3 [emitted] pageA
<del>vendor1.js 1.42 kB 4 [emitted] vendor1
<add>vendor1.js 1.41 kB 4 [emitted] vendor1
<add>Entrypoint vendor1 = vendor1.js
<add>Entrypoint vendor2 = vendor1.js vendor2.js
<ide> Entrypoint pageA = vendor1.js vendor2.js pageA.js
<ide> Entrypoint pageB = vendor1.js vendor2.js pageB.js
<ide> Entrypoint pageC = vendor1.js vendor2.js pageC.js
<del>Entrypoint vendor1 = vendor1.js
<del>Entrypoint vendor2 = vendor1.js vendor2.js
<del>chunk {0} vendor2.js (vendor2) 80 bytes {4} [initial] [rendered]
<add>chunk {0} vendor2.js (vendor2) 78 bytes {4} [initial] [rendered]
<ide> > vendor2 [6] multi vendor2
<del> [1] ./vendor2.js 52 bytes {0} [built]
<add> [1] ./vendor2.js 50 bytes {0} [built]
<ide> cjs require ./vendor2 [2] ./pageA.js 3:0-20
<ide> single entry ./vendor2 [6] multi vendor2
<ide> [6] multi vendor2 28 bytes {0} [built]
<ide> chunk {1} pageC.js (pageC) 25 bytes {0} [initial] [rendered]
<ide> chunk {2} pageB.js (pageB) 25 bytes {0} [initial] [rendered]
<ide> > pageB [3] ./pageB.js
<ide> [3] ./pageB.js 25 bytes {2} [built]
<del>chunk {3} pageA.js (pageA) 73 bytes {0} [initial] [rendered]
<add>chunk {3} pageA.js (pageA) 70 bytes {0} [initial] [rendered]
<ide> > pageA [2] ./pageA.js
<del> [2] ./pageA.js 73 bytes {3} [built]
<add> [2] ./pageA.js 70 bytes {3} [built]
<ide> chunk {4} vendor1.js (vendor1) 55 bytes [entry] [rendered]
<ide> > vendor1 [5] multi vendor1
<ide> [0] ./vendor1.js 27 bytes {4} [built]
<ide><path>examples/web-worker/README.md
<ide> module.exports = function() {
<ide> ## Uncompressed
<ide>
<ide> ```
<del>Hash: f624930b0e9bf410537f
<del>Version: webpack 2.1.0-beta.22
<del>Time: 243ms
<add>Hash: e29ee95ab00f5a45ee69
<add>Version: webpack 2.1.0-beta.25
<add>Time: 191ms
<ide> Asset Size Chunks Chunk Names
<ide> 0.hash.worker.js 1.83 kB [emitted]
<ide> hash.worker.js 3.83 kB [emitted]
<del> output.js 3.19 kB 0 [emitted] main
<add> output.js 3.18 kB 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 302 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 297 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<del> [0] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [built]
<add> [0] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [not cacheable] [built]
<ide> cjs require worker!./worker [1] ./example.js 1:13-39
<del> [1] ./example.js 206 bytes {0} [built]
<add> [1] ./example.js 201 bytes {0} [built]
<ide> Child worker:
<ide> Asset Size Chunks Chunk Names
<ide> 0.hash.worker.js 1.83 kB 0 [emitted]
<ide> hash.worker.js 3.83 kB 1 [emitted] main
<ide> Entrypoint main = hash.worker.js
<del> chunk {0} 0.hash.worker.js 463 bytes {1} [rendered]
<add> chunk {0} 0.hash.worker.js 457 bytes {1} [rendered]
<ide> > [1] ./worker.js 3:1-5:3
<ide> [0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
<ide> amd require context ../require.context/templates [1] ./worker.js 3:1-5:3
<del> [2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
<add> [2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a [0] ../require.context/templates ^\.\/.*$
<ide> context element ./a.js [0] ../require.context/templates ^\.\/.*$
<del> [3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
<add> [3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b [0] ../require.context/templates ^\.\/.*$
<ide> context element ./b.js [0] ../require.context/templates ^\.\/.*$
<del> [4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
<add> [4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c [0] ../require.context/templates ^\.\/.*$
<ide> context element ./c.js [0] ../require.context/templates ^\.\/.*$
<del> chunk {1} hash.worker.js (main) 168 bytes [entry] [rendered]
<add> chunk {1} hash.worker.js (main) 162 bytes [entry] [rendered]
<ide> > main [1] ./worker.js
<del> [1] ./worker.js 168 bytes {1} [built]
<add> [1] ./worker.js 162 bytes {1} [built]
<ide> ```
<ide>
<ide> ## Minimized (uglify-js, no zip)
<ide>
<ide> ```
<del>Hash: f624930b0e9bf410537f
<del>Version: webpack 2.1.0-beta.22
<del>Time: 426ms
<add>Hash: e29ee95ab00f5a45ee69
<add>Version: webpack 2.1.0-beta.25
<add>Time: 329ms
<ide> Asset Size Chunks Chunk Names
<ide> 0.hash.worker.js 544 bytes [emitted]
<del> hash.worker.js 848 bytes [emitted]
<del> output.js 658 bytes 0 [emitted] main
<add> hash.worker.js 842 bytes [emitted]
<add> output.js 655 bytes 0 [emitted] main
<ide> Entrypoint main = output.js
<del>chunk {0} output.js (main) 302 bytes [entry] [rendered]
<add>chunk {0} output.js (main) 297 bytes [entry] [rendered]
<ide> > main [1] ./example.js
<del> [0] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [built]
<add> [0] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [not cacheable] [built]
<ide> cjs require worker!./worker [1] ./example.js 1:13-39
<del> [1] ./example.js 206 bytes {0} [built]
<add> [1] ./example.js 201 bytes {0} [built]
<ide> Child worker:
<ide> Asset Size Chunks Chunk Names
<ide> 0.hash.worker.js 544 bytes 0 [emitted]
<del> hash.worker.js 848 bytes 1 [emitted] main
<add> hash.worker.js 842 bytes 1 [emitted] main
<ide> Entrypoint main = hash.worker.js
<del> chunk {0} 0.hash.worker.js 463 bytes {1} [rendered]
<add> chunk {0} 0.hash.worker.js 457 bytes {1} [rendered]
<ide> > [1] ./worker.js 3:1-5:3
<ide> [0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
<ide> amd require context ../require.context/templates [1] ./worker.js 3:1-5:3
<del> [2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
<add> [2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
<ide> context element ./a [0] ../require.context/templates ^\.\/.*$
<ide> context element ./a.js [0] ../require.context/templates ^\.\/.*$
<del> [3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
<add> [3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
<ide> context element ./b [0] ../require.context/templates ^\.\/.*$
<ide> context element ./b.js [0] ../require.context/templates ^\.\/.*$
<del> [4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
<add> [4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
<ide> context element ./c [0] ../require.context/templates ^\.\/.*$
<ide> context element ./c.js [0] ../require.context/templates ^\.\/.*$
<del> chunk {1} hash.worker.js (main) 168 bytes [entry] [rendered]
<add> chunk {1} hash.worker.js (main) 162 bytes [entry] [rendered]
<ide> > main [1] ./worker.js
<del> [1] ./worker.js 168 bytes {1} [built]
<add> [1] ./worker.js 162 bytes {1} [built]
<ide> ``` | 45 |
Ruby | Ruby | catch empty installations | d0e2d126a1969c6cf3d975576108a8da2c618254 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_line(line, lineno)
<ide> end
<ide> end
<ide>
<add> def audit_prefix_has_contents
<add> return unless formula.prefix.directory?
<add>
<add> Pathname.glob("#{formula.prefix}/**/*") do |file|
<add> next if file.directory?
<add> basename = file.basename.to_s
<add> next if Metafiles.copy?(basename)
<add> next if %w[.DS_Store INSTALL_RECEIPT.json].include?(basename)
<add> return
<add> end
<add>
<add> problem <<-EOS.undent
<add> The installation seems to be empty. Please ensure the prefix
<add> is set correctly and expected files are installed.
<add> The prefix configure/make argument may be case-sensitive.
<add> EOS
<add> end
<add>
<ide> def audit_conditional_dep(dep, condition, line)
<ide> quoted_dep = quote_dep(dep)
<ide> dep = Regexp.escape(dep.to_s)
<ide> def audit
<ide> audit_text
<ide> text.without_patch.split("\n").each_with_index { |line, lineno| audit_line(line, lineno+1) }
<ide> audit_installed
<add> audit_prefix_has_contents
<ide> end
<ide>
<ide> private | 1 |
Text | Text | add example and reason why is not commonly used | d36806a06db4396f5af3a2f59c618f7988470ef2 | <ide><path>guide/english/css/selectors/attribute/class-equals/index.md
<ide> title: Class Equals
<ide> ---
<ide> ## Class Equals
<add>To select an item with a class attribute, you use the following selector:
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/css/selectors/attribute/class-equals/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
<add>```css
<add>p[class="happy"] {
<add> color: yellow;
<add>}
<add>```
<ide>
<del><a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
<add>This selector is not commonly used, as there is a general class selector. We can rewrite the above selector like this:
<ide>
<del><!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
<add>```css
<add>p.happy {
<add> color: yellow;
<add>}
<add>```
<ide>
<ide> #### More Information:
<del><!-- Please add any articles you think might be helpful to read before writing the article -->
<del>
<del>
<add>https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors | 1 |
Python | Python | check object in tests | e39422e35fa81c79c149570e3d7e5cf9e0a0909b | <ide><path>tests/test_fields.py
<ide> class Meta:
<ide> serializer = CharFieldSerializer(data={'char': None})
<ide> self.assertTrue(serializer.fields['char'].allow_none)
<ide> self.assertTrue(serializer.is_valid())
<del> self.assertIsNone(serializer.data['char'])
<add> self.assertIsNone(serializer.object.char)
<ide>
<ide>
<ide> class SerializerMethodFieldTest(TestCase): | 1 |
Python | Python | add multiple roles when creating users | c974917405a534017ad22264917f9356eac1d185 | <ide><path>airflow/api_connexion/endpoints/user_endpoint.py
<ide> def post_user():
<ide> detail = f"Unknown roles: {', '.join(repr(n) for n in missing_role_names)}"
<ide> raise BadRequest(detail=detail)
<ide>
<del> if roles_to_add:
<del> default_role = roles_to_add.pop()
<del> else: # No roles provided, use the F.A.B's default registered user role.
<del> default_role = security_manager.find_role(security_manager.auth_user_registration_role)
<add> if not roles_to_add: # No roles provided, use the F.A.B's default registered user role.
<add> roles_to_add.append(security_manager.find_role(security_manager.auth_user_registration_role))
<ide>
<del> user = security_manager.add_user(role=default_role, **data)
<add> user = security_manager.add_user(role=roles_to_add, **data)
<ide> if not user:
<ide> detail = f"Failed to add user `{username}`."
<ide> return Unknown(detail=detail)
<ide>
<del> if roles_to_add:
<del> user.roles.extend(roles_to_add)
<del> security_manager.update_user(user)
<ide> return user_schema.dump(user)
<ide>
<ide>
<ide><path>airflow/cli/commands/user_command.py
<ide> def _import_users(users_list):
<ide> first_name=user['firstname'],
<ide> last_name=user['lastname'],
<ide> email=user['email'],
<del> role=roles[0], # add_user() requires exactly 1 role
<add> role=roles,
<ide> )
<ide>
<del> if len(roles) > 1:
<del> new_user = appbuilder.sm.find_user(email=user['email'])
<del> new_user.roles = roles
<del> appbuilder.sm.update_user(new_user)
<del>
<ide> users_created.append(user['email'])
<ide>
<ide> return users_created, users_updated | 2 |
Javascript | Javascript | use expectserror in require-invalid-package | d0d02b6c88ce41958df068f59e9e2699645e5dda | <ide><path>test/parallel/test-require-invalid-package.js
<ide> 'use strict';
<ide>
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide>
<ide> // Should be an invalid package path.
<del>assert.throws(() => require('package.json'), (err) => {
<del> return err && err.code === 'MODULE_NOT_FOUND';
<del>});
<add>assert.throws(() => require('package.json'),
<add> common.expectsError('MODULE_NOT_FOUND')
<add>); | 1 |
Go | Go | report version and ubr | 6de9f90417f1295fcdc2f1c977178bff7a735f99 | <ide><path>pkg/parsers/operatingsystem/operatingsystem_windows.go
<ide> package operatingsystem // import "github.com/docker/docker/pkg/parsers/operatingsystem"
<ide>
<ide> import (
<del> "unsafe"
<add> "fmt"
<ide>
<del> "golang.org/x/sys/windows"
<add> "golang.org/x/sys/windows/registry"
<ide> )
<ide>
<del>// See https://code.google.com/p/go/source/browse/src/pkg/mime/type_windows.go?r=d14520ac25bf6940785aabb71f5be453a286f58c
<del>// for a similar sample
<del>
<ide> // GetOperatingSystem gets the name of the current operating system.
<ide> func GetOperatingSystem() (string, error) {
<ide>
<del> var h windows.Handle
<del>
<ide> // Default return value
<ide> ret := "Unknown Operating System"
<ide>
<del> if err := windows.RegOpenKeyEx(windows.HKEY_LOCAL_MACHINE,
<del> windows.StringToUTF16Ptr(`SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\`),
<del> 0,
<del> windows.KEY_READ,
<del> &h); err != nil {
<add> k, err := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\Microsoft\WIndows NT\CurrentVersion`, registry.QUERY_VALUE)
<add> if err != nil {
<add> return ret, err
<add> }
<add> defer k.Close()
<add>
<add> pn, _, err := k.GetStringValue("ProductName")
<add> if err != nil {
<add> return ret, err
<add> }
<add> ret = pn
<add>
<add> ri, _, err := k.GetStringValue("ReleaseId")
<add> if err != nil {
<add> return ret, err
<add> }
<add> ret = fmt.Sprintf("%s Version %s", ret, ri)
<add>
<add> cbn, _, err := k.GetStringValue("CurrentBuildNumber")
<add> if err != nil {
<ide> return ret, err
<ide> }
<del> defer windows.RegCloseKey(h)
<del>
<del> var buf [1 << 10]uint16
<del> var typ uint32
<del> n := uint32(len(buf) * 2) // api expects array of bytes, not uint16
<del>
<del> if err := windows.RegQueryValueEx(h,
<del> windows.StringToUTF16Ptr("ProductName"),
<del> nil,
<del> &typ,
<del> (*byte)(unsafe.Pointer(&buf[0])),
<del> &n); err != nil {
<add>
<add> ubr, _, err := k.GetIntegerValue("UBR")
<add> if err != nil {
<ide> return ret, err
<ide> }
<del> ret = windows.UTF16ToString(buf[:])
<add> ret = fmt.Sprintf("%s (OS Build %s.%d)", ret, cbn, ubr)
<ide>
<ide> return ret, nil
<ide> } | 1 |
PHP | PHP | remove charset on json content-type | e1fa05415fdb276d5e6efb673b35b95c52bd2457 | <ide><path>src/Http/Response.php
<ide> protected function _setContentType()
<ide> return;
<ide> }
<ide> $whitelist = [
<del> 'application/javascript', 'application/json', 'application/xml', 'application/rss+xml'
<add> 'application/javascript', 'application/xml', 'application/rss+xml'
<ide> ];
<ide>
<ide> $charset = false;
<ide><path>tests/TestCase/Http/ResponseTest.php
<ide> public function testWithTypeAlias()
<ide> );
<ide> $this->assertSame('application/pdf', $new->getHeaderLine('Content-Type'));
<ide> $this->assertSame(
<del> 'application/json; charset=UTF-8',
<add> 'application/json',
<ide> $new->withType('json')->getHeaderLine('Content-Type')
<ide> );
<ide> }
<ide> public static function charsetTypeProvider()
<ide> return [
<ide> ['mp3', 'audio/mpeg'],
<ide> ['js', 'application/javascript; charset=UTF-8'],
<del> ['json', 'application/json; charset=UTF-8'],
<ide> ['xml', 'application/xml; charset=UTF-8'],
<ide> ['txt', 'text/plain; charset=UTF-8'],
<ide> ];
<ide><path>tests/TestCase/Http/ResponseTransformerTest.php
<ide> public function testToPsrContentTypeCharsetIsTypeSpecific()
<ide> $cake->type('application/octet-stream');
<ide> $result = ResponseTransformer::toPsr($cake);
<ide> $this->assertSame('application/octet-stream', $result->getHeaderLine('Content-Type'));
<del>
<del> $cake->type('application/json');
<del> $result = ResponseTransformer::toPsr($cake);
<del> $this->assertSame('application/json; charset=utf-8', $result->getHeaderLine('Content-Type'));
<ide> }
<ide>
<ide> /** | 3 |
Go | Go | send resp immediately on get /events | d0a299c027fc6b075bed4992329f93e618186a83 | <ide><path>api/server/server.go
<ide> func (s *Server) getEvents(version version.Version, w http.ResponseWriter, r *ht
<ide> d := s.daemon
<ide> es := d.EventsService
<ide> w.Header().Set("Content-Type", "application/json")
<del> enc := json.NewEncoder(ioutils.NewWriteFlusher(w))
<add> outStream := ioutils.NewWriteFlusher(w)
<add> outStream.Write(nil) // make sure response is sent immediately
<add> enc := json.NewEncoder(outStream)
<ide>
<ide> getContainerId := func(cn string) string {
<ide> c, err := d.Get(cn)
<ide><path>integration-cli/docker_api_events_test.go
<add>package main
<add>
<add>import (
<add> "net/http"
<add> "time"
<add>
<add> "github.com/go-check/check"
<add>)
<add>
<add>func (s *DockerSuite) TestEventsApiEmptyOutput(c *check.C) {
<add> type apiResp struct {
<add> resp *http.Response
<add> err error
<add> }
<add> chResp := make(chan *apiResp)
<add> go func() {
<add> resp, body, err := sockRequestRaw("GET", "/events", nil, "")
<add> body.Close()
<add> chResp <- &apiResp{resp, err}
<add> }()
<add>
<add> select {
<add> case r := <-chResp:
<add> c.Assert(r.err, check.IsNil)
<add> c.Assert(r.resp.StatusCode, check.Equals, http.StatusOK)
<add> case <-time.After(3 * time.Second):
<add> c.Fatal("timeout waiting for events api to respond, should have responded immediately")
<add> }
<add>} | 2 |
Python | Python | add weights for sgd optimizer | 59f8d6ca224aa93ffff2ece0e87ca2856a118ce0 | <ide><path>keras/optimizers.py
<ide> def get_updates(self, params, constraints, loss):
<ide> lr = self.lr * (1. / (1. + self.decay * self.iterations))
<ide> self.updates = [(self.iterations, self.iterations + 1.)]
<ide>
<del> for p, g in zip(params, grads):
<del> m = K.variable(np.zeros(K.get_value(p).shape)) # momentum
<add> # momentum
<add> self.weights = [K.variable(np.zeros(K.get_value(p).shape)) for p in params]
<add>
<add> for p, g, m in zip(params, grads, self.weights):
<ide> v = self.momentum * m - lr * g # velocity
<ide> self.updates.append((m, v))
<ide> | 1 |
Java | Java | add viewnames for urlbasedviewresolver | 59217243ee572a38635de9756485750ccd1ffd36 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/view/UrlBasedViewResolver.java
<ide>
<ide> import org.springframework.beans.BeanUtils;
<ide> import org.springframework.beans.factory.InitializingBean;
<add>import org.springframework.util.PatternMatchUtils;
<ide> import org.springframework.web.reactive.View;
<ide>
<ide>
<ide> public class UrlBasedViewResolver extends ViewResolverSupport implements Initial
<ide>
<ide> private String suffix = "";
<ide>
<add> private String[] viewNames;
<add>
<ide>
<ide> /**
<ide> * Set the view class to instantiate through {@link #createUrlBasedView(String)}.
<ide> protected String getSuffix() {
<ide> return this.suffix;
<ide> }
<ide>
<add> /**
<add> * Set the view names (or name patterns) that can be handled by this
<add> * {@link org.springframework.web.reactive.ViewResolver}. View names can
<add> * contain simple wildcards such that 'my*', '*Report' and '*Repo*' will
<add> * all match the view name 'myReport'.
<add> * @see #canHandle
<add> */
<add> public void setViewNames(String... viewNames) {
<add> this.viewNames = viewNames;
<add> }
<add>
<add> /**
<add> * Return the view names (or name patterns) that can be handled by this
<add> * {@link org.springframework.web.reactive.ViewResolver}.
<add> */
<add> protected String[] getViewNames() {
<add> return this.viewNames;
<add> }
<add>
<ide>
<ide> @Override
<ide> public void afterPropertiesSet() throws Exception {
<ide> public void afterPropertiesSet() throws Exception {
<ide>
<ide> @Override
<ide> public Mono<View> resolveViewName(String viewName, Locale locale) {
<add> if (!canHandle(viewName, locale)) {
<add> return Mono.empty();
<add> }
<ide> AbstractUrlBasedView urlBasedView = createUrlBasedView(viewName);
<ide> View view = applyLifecycleMethods(viewName, urlBasedView);
<ide> try {
<ide> public Mono<View> resolveViewName(String viewName, Locale locale) {
<ide> }
<ide> }
<ide>
<add> /**
<add> * Indicates whether or not this
<add> * {@link org.springframework.web.reactive.ViewResolver} can handle the
<add> * supplied view name. If not, an empty result is returned. The default
<add> * implementation checks against the configured {@link #setViewNames
<add> * view names}.
<add> * @param viewName the name of the view to retrieve
<add> * @param locale the Locale to retrieve the view for
<add> * @return whether this resolver applies to the specified view
<add> * @see org.springframework.util.PatternMatchUtils#simpleMatch(String, String)
<add> */
<add> protected boolean canHandle(String viewName, Locale locale) {
<add> String[] viewNames = getViewNames();
<add> return (viewNames == null || PatternMatchUtils.simpleMatch(viewNames, viewName));
<add> }
<add>
<ide> /**
<ide> * Creates a new View instance of the specified view class and configures it.
<ide> * Does <i>not</i> perform any lookup for pre-defined View instances.
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/view/UrlBasedViewResolverTests.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<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> *
<add> * http://www.apache.org/licenses/LICENSE-2.0
<add> *
<add> * Unless required by applicable law or agreed to in writing, software
<add> * distributed under the License is distributed on an "AS IS" BASIS,
<add> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<add> * See the License for the specific language governing permissions and
<add> * limitations under the License.
<add> */
<add>package org.springframework.web.reactive.view;
<add>
<add>import java.util.Locale;
<add>import java.util.Map;
<add>
<add>import org.junit.Test;
<add>import reactor.core.publisher.Flux;
<add>import reactor.core.publisher.Mono;
<add>
<add>import org.springframework.context.support.StaticApplicationContext;
<add>import org.springframework.core.io.buffer.DataBuffer;
<add>import org.springframework.web.reactive.View;
<add>import org.springframework.web.server.ServerWebExchange;
<add>
<add>import static org.junit.Assert.assertNotNull;
<add>import static org.junit.Assert.assertNull;
<add>
<add>/**
<add> * Unit tests for {@link UrlBasedViewResolver}.
<add> *
<add> * @author Rossen Stoyanchev
<add> */
<add>public class UrlBasedViewResolverTests {
<add>
<add>
<add> @Test
<add> public void viewNames() throws Exception {
<add> StaticApplicationContext context = new StaticApplicationContext();
<add> context.refresh();
<add>
<add> UrlBasedViewResolver resolver = new UrlBasedViewResolver();
<add> resolver.setViewClass(TestView.class);
<add> resolver.setViewNames("my*");
<add> resolver.setApplicationContext(context);
<add>
<add> Mono<View> mono = resolver.resolveViewName("my-view", Locale.US);
<add> assertNotNull(mono.get());
<add>
<add> mono = resolver.resolveViewName("not-my-view", Locale.US);
<add> assertNull(mono.get());
<add> }
<add>
<add>
<add> private static class TestView extends AbstractUrlBasedView {
<add>
<add> @Override
<add> public boolean checkResourceExists(Locale locale) throws Exception {
<add> return true;
<add> }
<add>
<add> @Override
<add> protected Flux<DataBuffer> renderInternal(Map<String, Object> attributes, ServerWebExchange exchange) {
<add> return Flux.empty();
<add> }
<add> }
<add>
<add>} | 2 |
Python | Python | add tests for aurora | f35ff7990f86dbe334d186a692c04d4e3e599e2f | <ide><path>libcloud/test/storage/test_aurora.py
<add># Licensed to the Apache Software Foundation (ASF) under one or more
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># The ASF licenses this file to You under the Apache License, Version 2.0
<add># (the "License"); you may not use this file except in compliance with
<add># the License. You may obtain a copy of the License at
<add>#
<add># http://www.apache.org/licenses/LICENSE-2.0
<add>#
<add># Unless required by applicable law or agreed to in writing, software
<add># distributed under the License is distributed on an "AS IS" BASIS,
<add># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<add># See the License for the specific language governing permissions and
<add># limitations under the License.
<add>
<add>import unittest
<add>
<add>from libcloud.storage.drivers.auroraobjects import AuroraObjectsStorageDriver
<add>from libcloud.test.storage.test_s3 import S3MockHttp, S3Tests
<add>
<add>
<add>class AuroraObjectsTests(S3Tests, unittest.TestCase):
<add> driver_type = AuroraObjectsStorageDriver
<add>
<add> def setUp(self):
<add> AuroraObjectsStorageDriver.connectionCls.conn_class = S3MockHttp
<add> S3MockHttp.type = None
<add> self.driver = self.create_driver()
<ide><path>libcloud/test/storage/test_s3.py
<ide> def _list_containers_EMPTY(self, method, url, body, headers):
<ide> httplib.responses[httplib.OK])
<ide>
<ide> def _list_containers_TOKEN(self, method, url, body, headers):
<del> assert headers['x-amz-security-token'] == 'asdf'
<add> if 'x-amz-security-token' in headers:
<add> assert headers['x-amz-security-token'] == 'asdf'
<ide> body = self.fixtures.load('list_containers_empty.xml')
<ide> return (httplib.OK,
<ide> body, | 2 |
Python | Python | remove a todo which is finished | 5d75d374dcaff31c2763d8196f0a145edbf7f662 | <ide><path>official/core/train_utils.py
<ide> def maybe_create_best_ckpt_exporter(params: config_definitions.ExperimentConfig,
<ide> return best_ckpt_exporter
<ide>
<ide>
<del># TODO(b/180147589): Add tests for this module.
<ide> class BestCheckpointExporter:
<ide> """Keeps track of the best result, and saves its checkpoint.
<ide> | 1 |
Text | Text | fix a couple of typos in docker attach docs | 5667365ed1cddb57267f7c11fc1f9d92209e5aed | <ide><path>docs/reference/commandline/attach.md
<ide> foreground over a slow client connection. Instead, users should use the
<ide> ## Override the detach sequence
<ide>
<ide> If you want, you can configure an override the Docker key sequence for detach.
<del>This is is useful if the Docker default sequence conflicts with key squence you
<add>This is useful if the Docker default sequence conflicts with key sequence you
<ide> use for other applications. There are two ways to defines a your own detach key
<ide> sequence, as a per-container override or as a configuration property on your
<ide> entire configuration.
<ide><path>man/docker-attach.1.md
<ide> attaching to a tty-enabled container (i.e.: launched with `-t`).
<ide> # Override the detach sequence
<ide>
<ide> If you want, you can configure an override the Docker key sequence for detach.
<del>This is is useful if the Docker default sequence conflicts with key squence you
<add>This is useful if the Docker default sequence conflicts with key sequence you
<ide> use for other applications. There are two ways to defines a your own detach key
<ide> sequence, as a per-container override or as a configuration property on your
<ide> entire configuration. | 2 |
Python | Python | fix syntax error in italian lemmatizer | 21047bde5257093d4d73d57031c6917b2137e9e3 | <ide><path>spacy/lang/it/lemmatizer.py
<ide> "zurliniane": "zurliniano",
<ide> "zurliniani": "zurliniano",
<ide> "àncore": "àncora",
<del> "sono": "essere"
<add> "sono": "essere",
<ide> "è": "essere",
<ide> "èlites": "èlite",
<ide> "ère": "èra", | 1 |
Text | Text | fix typo in version-history.md | 269df77be24b0644a267f693a89ef4a794c62dd9 | <ide><path>docs/api/version-history.md
<ide> keywords: "API, Docker, rcli, REST, documentation"
<ide> * `POST /networks/create` now supports creating the ingress network, by specifying an `Ingress` boolean field. As of now this is supported only when using the overlay network driver.
<ide> * `GET /networks/(name)` now returns an `Ingress` field showing whether the network is the ingress one.
<ide> * `GET /networks/` now supports a `scope` filter to filter networks based on the network mode (`swarm`, `global`, or `local`).
<del>* `POST /containers/create`, `POST /service/create` and `POST /services/(id or name)/update` now takes the field `StartPeriod` as a part of the `HealthConfig` allowing for specification of a period during which the container should not be considered unealthy even if health checks do not pass.
<add>* `POST /containers/create`, `POST /service/create` and `POST /services/(id or name)/update` now takes the field `StartPeriod` as a part of the `HealthConfig` allowing for specification of a period during which the container should not be considered unhealthy even if health checks do not pass.
<ide>
<ide> ## v1.28 API changes
<ide> | 1 |
Python | Python | remove useless assignment from configure.py | fce86849fc448e882c65fa153c701eb6076295f8 | <ide><path>configure.py
<ide> def configure_static(o):
<ide>
<ide>
<ide> def write(filename, data):
<del> filename = filename
<ide> print_verbose('creating %s' % filename)
<ide> with open(filename, 'w+') as f:
<ide> f.write(data) | 1 |
Text | Text | add constraint to service create ref | 093817031acd2b8dc17cba5c3c994b2d6d19dc0e | <ide><path>docs/reference/commandline/service_create.md
<ide> ID NAME REPLICAS IMAGE COMMAND
<ide> ```
<ide>
<ide>
<del>### Create a service with a rolling update constraints
<add>### Create a service with a rolling update policy
<ide>
<ide>
<ide> ```bash
<ide> $ docker service create \
<ide> For more information about labels, refer to [apply custom
<ide> metadata](../../userguide/labels-custom-metadata.md)
<ide>
<del>### Service mode
<add>### Set service mode
<ide>
<ide> Is this a replicated service or a global service. A replicated service runs as
<ide> many tasks as specified, while a global service runs on each active node in the
<ide> The following command creates a "global" service:
<ide> $ docker service create --name redis_2 --mode global redis:3.0.6
<ide> ```
<ide>
<add>### Specify service constraints
<add>
<add>You can limit the set of nodes where a task can be scheduled by defining
<add>constraint expressions. Multiple constraints find nodes that satisfy every
<add>expression (AND match). Constraints can match node or Docker Engine labels as
<add>follows:
<add>
<add>| node attribute | matches | example |
<add>|:------------- |:-------------| :---------------------------------------------|
<add>| node.id | node ID | `node.id == 2ivku8v2gvtg4` |
<add>| node.hostname | node hostname | `node.hostname != node-2` |
<add>| node.role | node role: manager | `node.role == manager` |
<add>| node.labels | user defined node labels | `node.labels.security == high` |
<add>| engine.labels | Docker Engine's labels | `engine.labels.operatingsystem == ubuntu 14.04`|
<add>
<add>`engine.labels` apply to Docker Engine labels like operating system,
<add>drivers, etc. Swarm administrators add `node.labels` for operational purposes by
<add>using the `docker node update` command.
<add>
<add>For example, the following limits tasks for the redis service to nodes where the
<add>node type label equals queue:
<add>
<add>```bash
<add>$ docker service create \
<add> --name redis_2 \
<add> --constraint node.labels.type == queue
<add>```
<ide>
<ide> ## Related information
<ide> | 1 |
Ruby | Ruby | move i18n.locale setting into setup and teardown | 1407315423782f9512f73f5111cb27d9bc11cff6 | <ide><path>actionpack/test/controller/localized_templates_test.rb
<ide> def hello_world
<ide> class LocalizedTemplatesTest < ActionController::TestCase
<ide> tests LocalizedController
<ide>
<add> setup do
<add> @old_locale = I18n.locale
<add> end
<add>
<add> teardown do
<add> I18n.locale = @old_locale
<add> end
<add>
<ide> def test_localized_template_is_used
<del> old_locale = I18n.locale
<ide> I18n.locale = :de
<ide> get :hello_world
<ide> assert_equal "Gutten Tag", @response.body
<del> ensure
<del> I18n.locale = old_locale
<ide> end
<ide>
<ide> def test_default_locale_template_is_used_when_locale_is_missing
<del> old_locale = I18n.locale
<ide> I18n.locale = :dk
<ide> get :hello_world
<ide> assert_equal "Hello World", @response.body
<del> ensure
<del> I18n.locale = old_locale
<ide> end
<ide>
<ide> def test_use_fallback_locales
<ide> def test_use_fallback_locales
<ide> end
<ide>
<ide> def test_localized_template_has_correct_header_with_no_format_in_template_name
<del> old_locale = I18n.locale
<ide> I18n.locale = :it
<del>
<ide> get :hello_world
<ide> assert_equal "Ciao Mondo", @response.body
<ide> assert_equal "text/html", @response.content_type
<del> ensure
<del> I18n.locale = old_locale
<ide> end
<ide> end | 1 |
Ruby | Ruby | reuse the superclass methods for shorter codes | 0e8280b19322bd3fdd7e18fc6ba35d45e986e611 | <ide><path>activerecord/lib/active_record/observer.rb
<ide> module ActiveRecord
<ide> #
<ide> class Observer < ActiveModel::Observer
<ide>
<del> def initialize
<del> super
<del> observed_descendants.each { |klass| add_observer!(klass) }
<del> end
<del>
<ide> protected
<ide>
<del> def observed_descendants
<del> observed_classes.map { |klass| klass.descendants }.flatten
<add> def observed_classes
<add> klasses = super
<add> klasses + klasses.map { |klass| klass.descendants }.flatten
<ide> end
<ide>
<ide> def add_observer!(klass) | 1 |
Javascript | Javascript | update error messages | 2d2987ffd9b49433c8a756f37328cd4bc69ced58 | <ide><path>src/animation/KeyframeTrack.js
<ide> import { AnimationUtils } from './AnimationUtils.js';
<ide>
<ide> function KeyframeTrack( name, times, values, interpolation ) {
<ide>
<del> if ( name === undefined ) throw new Error( 'track name is undefined' );
<del>
<del> if ( times === undefined || times.length === 0 ) {
<del>
<del> throw new Error( 'no keyframes in track named ' + name );
<del>
<del> }
<add> if ( name === undefined ) throw new Error( 'THREE.KeyframeTrack: track name is undefined' );
<add> if ( times === undefined || times.length === 0 ) throw new Error( 'THREE.KeyframeTrack: no keyframes in track named ' + name );
<ide>
<ide> this.name = name;
<ide>
<ide> Object.assign( KeyframeTrack, {
<ide>
<ide> if ( json.type === undefined ) {
<ide>
<del> throw new Error( 'track type undefined, can not parse' );
<add> throw new Error( 'THREE.KeyframeTrack: track type undefined, can not parse' );
<ide>
<ide> }
<ide>
<ide> Object.assign( KeyframeTrack, {
<ide>
<ide> }
<ide>
<del> throw new Error( 'Unsupported typeName: ' + typeName );
<add> throw new Error( 'THREE.KeyframeTrack: Unsupported typeName: ' + typeName );
<ide>
<ide> }
<ide>
<ide> Object.assign( KeyframeTrack.prototype, {
<ide>
<ide> }
<ide>
<del> console.warn( 'THREE.KeyframeTrackPrototype:', message );
<add> console.warn( 'THREE.KeyframeTrack:', message );
<ide> return;
<ide>
<ide> }
<ide> Object.assign( KeyframeTrack.prototype, {
<ide> var valueSize = this.getValueSize();
<ide> if ( valueSize - Math.floor( valueSize ) !== 0 ) {
<ide>
<del> console.error( 'THREE.KeyframeTrackPrototype: Invalid value size in track.', this );
<add> console.error( 'THREE.KeyframeTrack: Invalid value size in track.', this );
<ide> valid = false;
<ide>
<ide> }
<ide> Object.assign( KeyframeTrack.prototype, {
<ide>
<ide> if ( nKeys === 0 ) {
<ide>
<del> console.error( 'THREE.KeyframeTrackPrototype: Track is empty.', this );
<add> console.error( 'THREE.KeyframeTrack: Track is empty.', this );
<ide> valid = false;
<ide>
<ide> }
<ide> Object.assign( KeyframeTrack.prototype, {
<ide>
<ide> if ( typeof currTime === 'number' && isNaN( currTime ) ) {
<ide>
<del> console.error( 'THREE.KeyframeTrackPrototype: Time is not a valid number.', this, i, currTime );
<add> console.error( 'THREE.KeyframeTrack: Time is not a valid number.', this, i, currTime );
<ide> valid = false;
<ide> break;
<ide>
<ide> }
<ide>
<ide> if ( prevTime !== null && prevTime > currTime ) {
<ide>
<del> console.error( 'THREE.KeyframeTrackPrototype: Out of order keys.', this, i, currTime, prevTime );
<add> console.error( 'THREE.KeyframeTrack: Out of order keys.', this, i, currTime, prevTime );
<ide> valid = false;
<ide> break;
<ide>
<ide> Object.assign( KeyframeTrack.prototype, {
<ide>
<ide> if ( isNaN( value ) ) {
<ide>
<del> console.error( 'THREE.KeyframeTrackPrototype: Value is not a valid number.', this, i, value );
<add> console.error( 'THREE.KeyframeTrack: Value is not a valid number.', this, i, value );
<ide> valid = false;
<ide> break;
<ide> | 1 |
Javascript | Javascript | fix a memory leak | 25d286014c85290d94fcc0a2f09499c4b4801e90 | <ide><path>lib/TemplatedPathPlugin.js
<ide> const replacer = (value, allowEmpty) => {
<ide> };
<ide>
<ide> const deprecationCache = new Map();
<add>const deprecatedFunction = (() => () => {})();
<ide> const deprecated = (fn, message) => {
<ide> let d = deprecationCache.get(message);
<ide> if (d === undefined) {
<del> d = util.deprecate(() => {}, message);
<add> d = util.deprecate(deprecatedFunction, message);
<ide> deprecationCache.set(message, d);
<ide> }
<ide> return (...args) => { | 1 |
Text | Text | add note about enter/leave bubbling | de1f8682d506775b14276fcf111933308ec910ca | <ide><path>docs/docs/ref-05-events.md
<ide> onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave
<ide> onMouseMove onMouseOut onMouseOver onMouseUp
<ide> ```
<ide>
<add>The `onMouseEnter` and `onMouseLeave` events propagate from the component being left to the one being entered instead of ordinary bubbling and do not have a capture phase.
<add>
<ide> Properties:
<ide>
<ide> ```javascript | 1 |
Python | Python | change key of type 'tuple' to 'str' | 9b1877049eeba44dad1cdabc8233eebdd9d66a00 | <ide><path>object_detection/core/batcher.py
<ide> def __init__(self, tensor_dict, batch_size, batch_queue_capacity,
<ide> {key: tensor.get_shape() for key, tensor in tensor_dict.iteritems()})
<ide> # Remember runtime shapes to unpad tensors after batching.
<ide> runtime_shapes = collections.OrderedDict(
<del> {(key, 'runtime_shapes'): tf.shape(tensor)
<add> {(key + '_runtime_shapes'): tf.shape(tensor)
<ide> for key, tensor in tensor_dict.iteritems()})
<ide> all_tensors = tensor_dict
<ide> all_tensors.update(runtime_shapes)
<ide> def dequeue(self):
<ide> for key, batched_tensor in batched_tensors.iteritems():
<ide> unbatched_tensor_list = tf.unstack(batched_tensor)
<ide> for i, unbatched_tensor in enumerate(unbatched_tensor_list):
<del> if isinstance(key, tuple) and key[1] == 'runtime_shapes':
<del> shapes[(key[0], i)] = unbatched_tensor
<add> if '_runtime_shapes' in key:
<add> shapes[(key[:-15], i)] = unbatched_tensor
<ide> else:
<ide> tensors[(key, i)] = unbatched_tensor
<ide> | 1 |
Text | Text | add index to contributing | db87a042bcb36203a04105f79b99204759026aca | <ide><path>CONTRIBUTING.md
<ide> # CONTRIBUTING TO THREE.JS
<ide>
<del>## Having a problem
<add>## 1. Index
<add>
<add>1. [Index](https://github.com/gero3/three.js/blob/patch-6/CONTRIBUTING.md#2-Index)
<add>2. [Having a problem](https://github.com/gero3/three.js/blob/patch-6/CONTRIBUTING.md#2-having-a-problem)
<add> * [How to report](https://github.com/gero3/three.js/blob/patch-6/CONTRIBUTING.md#how-to-report)
<add> * [Migrating problems](https://github.com/gero3/three.js/blob/patch-6/CONTRIBUTING.md#migrating-problems)
<add>
<add>## 2. Having a problem
<ide>
<ide> We use 2 different systems to have explain problems.
<ide> | 1 |
Python | Python | add a predict method for sentence_prediction task | f31e7ef9d85b6cb13a6828eef9496d1c5c037d6b | <ide><path>official/nlp/tasks/sentence_prediction.py
<ide> # limitations under the License.
<ide> # ==============================================================================
<ide> """Sentence prediction (classification) task."""
<add>from typing import List, Union
<add>
<ide> from absl import logging
<ide> import dataclasses
<ide> import numpy as np
<add>import orbit
<ide> from scipy import stats
<ide> from sklearn import metrics as sklearn_metrics
<ide> import tensorflow as tf
<ide> def initialize(self, model):
<ide> status.expect_partial().assert_existing_objects_matched()
<ide> logging.info('Finished loading pretrained checkpoint from %s',
<ide> ckpt_dir_or_file)
<add>
<add>
<add>def predict(task: SentencePredictionTask, params: cfg.DataConfig,
<add> model: tf.keras.Model) -> List[Union[int, float]]:
<add> """Predicts on the input data.
<add>
<add> Args:
<add> task: A `SentencePredictionTask` object.
<add> params: A `cfg.DataConfig` object.
<add> model: A keras.Model.
<add>
<add> Returns:
<add> A list of predictions with length of `num_examples`. For regression task,
<add> each element in the list is the predicted score; for classification task,
<add> each element is the predicted class id.
<add> """
<add> is_regression = task.task_config.model.num_classes == 1
<add>
<add> @tf.function
<add> def predict_step(iterator):
<add> """Predicts on distributed devices."""
<add>
<add> def _replicated_step(inputs):
<add> """Replicated prediction calculation."""
<add> x, _ = inputs
<add> outputs = task.inference_step(x, model)
<add> if is_regression:
<add> return outputs
<add> else:
<add> return tf.argmax(outputs, axis=-1)
<add>
<add> outputs = tf.distribute.get_strategy().run(
<add> _replicated_step, args=(next(iterator),))
<add> return tf.nest.map_structure(
<add> tf.distribute.get_strategy().experimental_local_results, outputs)
<add>
<add> def reduce_fn(state, outputs):
<add> """Concatenates model's outputs."""
<add> for per_replica_batch_predictions in outputs:
<add> state.extend(per_replica_batch_predictions)
<add> return state
<add>
<add> loop_fn = orbit.utils.create_loop_fn(predict_step)
<add> dataset = orbit.utils.make_distributed_dataset(tf.distribute.get_strategy(),
<add> task.build_inputs, params)
<add> # Set `num_steps` to -1 to exhaust the dataset.
<add> predictions = loop_fn(
<add> iter(dataset), num_steps=-1, state=[], reduce_fn=reduce_fn)
<add> return predictions
<ide><path>official/nlp/tasks/sentence_prediction_test.py
<ide> import os
<ide>
<ide> from absl.testing import parameterized
<add>import numpy as np
<ide> import tensorflow as tf
<ide>
<ide> from official.nlp.bert import configs
<ide> from official.nlp.tasks import sentence_prediction
<ide>
<ide>
<add>def _create_fake_dataset(output_path, seq_length, num_classes, num_examples):
<add> """Creates a fake dataset."""
<add> writer = tf.io.TFRecordWriter(output_path)
<add>
<add> def create_int_feature(values):
<add> return tf.train.Feature(int64_list=tf.train.Int64List(value=list(values)))
<add>
<add> def create_float_feature(values):
<add> return tf.train.Feature(float_list=tf.train.FloatList(value=list(values)))
<add>
<add> for _ in range(num_examples):
<add> features = {}
<add> input_ids = np.random.randint(100, size=(seq_length))
<add> features["input_ids"] = create_int_feature(input_ids)
<add> features["input_mask"] = create_int_feature(np.ones_like(input_ids))
<add> features["segment_ids"] = create_int_feature(np.ones_like(input_ids))
<add> features["segment_ids"] = create_int_feature(np.ones_like(input_ids))
<add>
<add> if num_classes == 1:
<add> features["label_ids"] = create_float_feature([np.random.random()])
<add> else:
<add> features["label_ids"] = create_int_feature(
<add> [np.random.random_integers(0, num_classes - 1, size=())])
<add>
<add> tf_example = tf.train.Example(features=tf.train.Features(feature=features))
<add> writer.write(tf_example.SerializeToString())
<add> writer.close()
<add>
<add>
<ide> class SentencePredictionTaskTest(tf.test.TestCase, parameterized.TestCase):
<ide>
<ide> def setUp(self):
<ide> def test_task_with_hub(self):
<ide> train_data=self._train_data_config)
<ide> self._run_task(config)
<ide>
<add> @parameterized.named_parameters(("classification", 5), ("regression", 1))
<add> def test_prediction(self, num_classes):
<add> task_config = sentence_prediction.SentencePredictionConfig(
<add> model=self.get_model_config(num_classes=num_classes),
<add> train_data=self._train_data_config)
<add> task = sentence_prediction.SentencePredictionTask(task_config)
<add> model = task.build_model()
<add>
<add> test_data_path = os.path.join(self.get_temp_dir(), "test.tf_record")
<add> seq_length = 16
<add> num_examples = 100
<add> _create_fake_dataset(
<add> test_data_path,
<add> seq_length=seq_length,
<add> num_classes=num_classes,
<add> num_examples=num_examples)
<add>
<add> test_data_config = (
<add> sentence_prediction_dataloader.SentencePredictionDataConfig(
<add> input_path=test_data_path,
<add> seq_length=seq_length,
<add> is_training=False,
<add> label_type="int" if num_classes > 1 else "float",
<add> global_batch_size=16,
<add> drop_remainder=False))
<add>
<add> predictions = sentence_prediction.predict(task, test_data_config, model)
<add> self.assertLen(predictions, num_examples)
<add>
<ide>
<ide> if __name__ == "__main__":
<ide> tf.test.main() | 2 |
Mixed | Ruby | deprecate unused download strategies | 599ecc9b5ad7951b8ddc51490ebe93a976d43b29 | <ide><path>Library/Homebrew/compat.rb
<ide> require "compat/os/mac"
<ide> require "compat/dependable"
<ide> require "compat/dependency_collector"
<add>require "compat/download_strategy"
<ide> require "compat/fileutils"
<ide> require "compat/formula_support"
<ide> require "compat/cask"
<ide><path>Library/Homebrew/compat/download_strategy.rb
<add>require "download_strategy"
<add>
<add># S3DownloadStrategy downloads tarballs from AWS S3.
<add># To use it, add `:using => :s3` to the URL section of your
<add># formula. This download strategy uses AWS access tokens (in the
<add># environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`)
<add># to sign the request. This strategy is good in a corporate setting,
<add># because it lets you use a private S3 bucket as a repo for internal
<add># distribution. (It will work for public buckets as well.)
<add>class S3DownloadStrategy < CurlDownloadStrategy
<add> def initialize(url, name, version, **meta)
<add> odeprecated("S3DownloadStrategy",
<add> "maintaining S3DownloadStrategy in your own formula or tap")
<add> super
<add> end
<add>
<add> def _fetch(url:, resolved_url:)
<add> if url !~ %r{^https?://([^.].*)\.s3\.amazonaws\.com/(.+)$} &&
<add> url !~ %r{^s3://([^.].*?)/(.+)$}
<add> raise "Bad S3 URL: " + url
<add> end
<add>
<add> bucket = Regexp.last_match(1)
<add> key = Regexp.last_match(2)
<add>
<add> ENV["AWS_ACCESS_KEY_ID"] = ENV["HOMEBREW_AWS_ACCESS_KEY_ID"]
<add> ENV["AWS_SECRET_ACCESS_KEY"] = ENV["HOMEBREW_AWS_SECRET_ACCESS_KEY"]
<add>
<add> begin
<add> signer = Aws::S3::Presigner.new
<add> s3url = signer.presigned_url :get_object, bucket: bucket, key: key
<add> rescue Aws::Sigv4::Errors::MissingCredentialsError
<add> ohai "AWS credentials missing, trying public URL instead."
<add> s3url = url
<add> end
<add>
<add> curl_download s3url, to: temporary_path
<add> end
<add>end
<add>
<add># GitHubPrivateRepositoryDownloadStrategy downloads contents from GitHub
<add># Private Repository. To use it, add
<add># `:using => :github_private_repo` to the URL section of
<add># your formula. This download strategy uses GitHub access tokens (in the
<add># environment variables `HOMEBREW_GITHUB_API_TOKEN`) to sign the request. This
<add># strategy is suitable for corporate use just like S3DownloadStrategy, because
<add># it lets you use a private GitHub repository for internal distribution. It
<add># works with public one, but in that case simply use CurlDownloadStrategy.
<add>class GitHubPrivateRepositoryDownloadStrategy < CurlDownloadStrategy
<add> require "utils/formatter"
<add> require "utils/github"
<add>
<add> def initialize(url, name, version, **meta)
<add> odeprecated("GitHubPrivateRepositoryDownloadStrategy",
<add> "maintaining GitHubPrivateRepositoryDownloadStrategy in your own formula or tap")
<add> super
<add> parse_url_pattern
<add> set_github_token
<add> end
<add>
<add> def parse_url_pattern
<add> unless match = url.match(%r{https://github.com/([^/]+)/([^/]+)/(\S+)})
<add> raise CurlDownloadStrategyError, "Invalid url pattern for GitHub Repository."
<add> end
<add>
<add> _, @owner, @repo, @filepath = *match
<add> end
<add>
<add> def download_url
<add> "https://#{@github_token}@github.com/#{@owner}/#{@repo}/#{@filepath}"
<add> end
<add>
<add> private
<add>
<add> def _fetch(url:, resolved_url:)
<add> curl_download download_url, to: temporary_path
<add> end
<add>
<add> def set_github_token
<add> @github_token = ENV["HOMEBREW_GITHUB_API_TOKEN"]
<add> unless @github_token
<add> raise CurlDownloadStrategyError, "Environmental variable HOMEBREW_GITHUB_API_TOKEN is required."
<add> end
<add>
<add> validate_github_repository_access!
<add> end
<add>
<add> def validate_github_repository_access!
<add> # Test access to the repository
<add> GitHub.repository(@owner, @repo)
<add> rescue GitHub::HTTPNotFoundError
<add> # We only handle HTTPNotFoundError here,
<add> # becase AuthenticationFailedError is handled within util/github.
<add> message = <<~EOS
<add> HOMEBREW_GITHUB_API_TOKEN can not access the repository: #{@owner}/#{@repo}
<add> This token may not have permission to access the repository or the url of formula may be incorrect.
<add> EOS
<add> raise CurlDownloadStrategyError, message
<add> end
<add>end
<add>
<add># GitHubPrivateRepositoryReleaseDownloadStrategy downloads tarballs from GitHub
<add># Release assets. To use it, add `:using => :github_private_release` to the URL section
<add># of your formula. This download strategy uses GitHub access tokens (in the
<add># environment variables HOMEBREW_GITHUB_API_TOKEN) to sign the request.
<add>class GitHubPrivateRepositoryReleaseDownloadStrategy < GitHubPrivateRepositoryDownloadStrategy
<add> def initialize(url, name, version, **meta)
<add> odeprecated("GitHubPrivateRepositoryReleaseDownloadStrategy",
<add> "maintaining GitHubPrivateRepositoryReleaseDownloadStrategy in your own formula or tap")
<add> super
<add> end
<add>
<add> def parse_url_pattern
<add> url_pattern = %r{https://github.com/([^/]+)/([^/]+)/releases/download/([^/]+)/(\S+)}
<add> unless @url =~ url_pattern
<add> raise CurlDownloadStrategyError, "Invalid url pattern for GitHub Release."
<add> end
<add>
<add> _, @owner, @repo, @tag, @filename = *@url.match(url_pattern)
<add> end
<add>
<add> def download_url
<add> "https://#{@github_token}@api.github.com/repos/#{@owner}/#{@repo}/releases/assets/#{asset_id}"
<add> end
<add>
<add> private
<add>
<add> def _fetch(url:, resolved_url:)
<add> # HTTP request header `Accept: application/octet-stream` is required.
<add> # Without this, the GitHub API will respond with metadata, not binary.
<add> curl_download download_url, "--header", "Accept: application/octet-stream", to: temporary_path
<add> end
<add>
<add> def asset_id
<add> @asset_id ||= resolve_asset_id
<add> end
<add>
<add> def resolve_asset_id
<add> release_metadata = fetch_release_metadata
<add> assets = release_metadata["assets"].select { |a| a["name"] == @filename }
<add> raise CurlDownloadStrategyError, "Asset file not found." if assets.empty?
<add>
<add> assets.first["id"]
<add> end
<add>
<add> def fetch_release_metadata
<add> release_url = "https://api.github.com/repos/#{@owner}/#{@repo}/releases/tags/#{@tag}"
<add> GitHub.open_api(release_url)
<add> end
<add>end
<add>
<add># ScpDownloadStrategy downloads files using ssh via scp. To use it, add
<add># `:using => :scp` to the URL section of your formula or
<add># provide a URL starting with scp://. This strategy uses ssh credentials for
<add># authentication. If a public/private keypair is configured, it will not
<add># prompt for a password.
<add>#
<add># @example
<add># class Abc < Formula
<add># url "scp://example.com/src/abc.1.0.tar.gz"
<add># ...
<add>class ScpDownloadStrategy < AbstractFileDownloadStrategy
<add> def initialize(url, name, version, **meta)
<add> odeprecated("ScpDownloadStrategy",
<add> "maintaining ScpDownloadStrategy in your own formula or tap")
<add> super
<add> parse_url_pattern
<add> end
<add>
<add> def parse_url_pattern
<add> url_pattern = %r{scp://([^@]+@)?([^@:/]+)(:\d+)?/(\S+)}
<add> if @url !~ url_pattern
<add> raise ScpDownloadStrategyError, "Invalid URL for scp: #{@url}"
<add> end
<add>
<add> _, @user, @host, @port, @path = *@url.match(url_pattern)
<add> end
<add>
<add> def fetch
<add> ohai "Downloading #{@url}"
<add>
<add> if cached_location.exist?
<add> puts "Already downloaded: #{cached_location}"
<add> else
<add> system_command! "scp", args: [scp_source, temporary_path.to_s]
<add> ignore_interrupts { temporary_path.rename(cached_location) }
<add> end
<add> end
<add>
<add> def clear_cache
<add> super
<add> rm_rf(temporary_path)
<add> end
<add>
<add> private
<add>
<add> def scp_source
<add> path_prefix = "/" unless @path.start_with?("~")
<add> port_arg = "-P #{@port[1..-1]} " if @port
<add> "#{port_arg}#{@user}#{@host}:#{path_prefix}#{@path}"
<add> end
<add>end
<add>
<add>class DownloadStrategyDetector
<add> class << self
<add> module Compat
<add> def detect(url, using = nil)
<add> strategy = super
<add> require_aws_sdk if strategy == S3DownloadStrategy
<add> strategy
<add> end
<add>
<add> def detect_from_url(url)
<add> case url
<add> when %r{^s3://}
<add> odeprecated("s3://",
<add> "maintaining S3DownloadStrategy in your own formula or tap")
<add> S3DownloadStrategy
<add> when %r{^scp://}
<add> odeprecated("scp://",
<add> "maintaining ScpDownloadStrategy in your own formula or tap")
<add> ScpDownloadStrategy
<add> else
<add> super(url)
<add> end
<add> end
<add>
<add> def detect_from_symbol(symbol)
<add> case symbol
<add> when :github_private_repo
<add> odeprecated(":github_private_repo",
<add> "maintaining GitHubPrivateRepositoryDownloadStrategy in your own formula or tap")
<add> GitHubPrivateRepositoryDownloadStrategy
<add> when :github_private_release
<add> odeprecated(":github_private_repo",
<add> "maintaining GitHubPrivateRepositoryReleaseDownloadStrategy in your own formula or tap")
<add> GitHubPrivateRepositoryReleaseDownloadStrategy
<add> when :s3
<add> odeprecated(":s3",
<add> "maintaining S3DownloadStrategy in your own formula or tap")
<add> S3DownloadStrategy
<add> when :scp
<add> odeprecated(":scp",
<add> "maintaining ScpDownloadStrategy in your own formula or tap")
<add> ScpDownloadStrategy
<add> else
<add> super(symbol)
<add> end
<add> end
<add> end
<add>
<add> prepend Compat
<add> end
<add>end
<ide><path>Library/Homebrew/download_strategy.rb
<ide> def initialize(path)
<ide> end
<ide> end
<ide>
<del># S3DownloadStrategy downloads tarballs from AWS S3.
<del># To use it, add `:using => :s3` to the URL section of your
<del># formula. This download strategy uses AWS access tokens (in the
<del># environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`)
<del># to sign the request. This strategy is good in a corporate setting,
<del># because it lets you use a private S3 bucket as a repo for internal
<del># distribution. (It will work for public buckets as well.)
<del>class S3DownloadStrategy < CurlDownloadStrategy
<del> def _fetch(url:, resolved_url:)
<del> if url !~ %r{^https?://([^.].*)\.s3\.amazonaws\.com/(.+)$} &&
<del> url !~ %r{^s3://([^.].*?)/(.+)$}
<del> raise "Bad S3 URL: " + url
<del> end
<del>
<del> bucket = Regexp.last_match(1)
<del> key = Regexp.last_match(2)
<del>
<del> ENV["AWS_ACCESS_KEY_ID"] = ENV["HOMEBREW_AWS_ACCESS_KEY_ID"]
<del> ENV["AWS_SECRET_ACCESS_KEY"] = ENV["HOMEBREW_AWS_SECRET_ACCESS_KEY"]
<del>
<del> begin
<del> signer = Aws::S3::Presigner.new
<del> s3url = signer.presigned_url :get_object, bucket: bucket, key: key
<del> rescue Aws::Sigv4::Errors::MissingCredentialsError
<del> ohai "AWS credentials missing, trying public URL instead."
<del> s3url = url
<del> end
<del>
<del> curl_download s3url, to: temporary_path
<del> end
<del>end
<del>
<del># GitHubPrivateRepositoryDownloadStrategy downloads contents from GitHub
<del># Private Repository. To use it, add
<del># `:using => :github_private_repo` to the URL section of
<del># your formula. This download strategy uses GitHub access tokens (in the
<del># environment variables `HOMEBREW_GITHUB_API_TOKEN`) to sign the request. This
<del># strategy is suitable for corporate use just like S3DownloadStrategy, because
<del># it lets you use a private GitHub repository for internal distribution. It
<del># works with public one, but in that case simply use CurlDownloadStrategy.
<del>class GitHubPrivateRepositoryDownloadStrategy < CurlDownloadStrategy
<del> require "utils/formatter"
<del> require "utils/github"
<del>
<del> def initialize(url, name, version, **meta)
<del> super
<del> parse_url_pattern
<del> set_github_token
<del> end
<del>
<del> def parse_url_pattern
<del> unless match = url.match(%r{https://github.com/([^/]+)/([^/]+)/(\S+)})
<del> raise CurlDownloadStrategyError, "Invalid url pattern for GitHub Repository."
<del> end
<del>
<del> _, @owner, @repo, @filepath = *match
<del> end
<del>
<del> def download_url
<del> "https://#{@github_token}@github.com/#{@owner}/#{@repo}/#{@filepath}"
<del> end
<del>
<del> private
<del>
<del> def _fetch(url:, resolved_url:)
<del> curl_download download_url, to: temporary_path
<del> end
<del>
<del> def set_github_token
<del> @github_token = ENV["HOMEBREW_GITHUB_API_TOKEN"]
<del> unless @github_token
<del> raise CurlDownloadStrategyError, "Environmental variable HOMEBREW_GITHUB_API_TOKEN is required."
<del> end
<del>
<del> validate_github_repository_access!
<del> end
<del>
<del> def validate_github_repository_access!
<del> # Test access to the repository
<del> GitHub.repository(@owner, @repo)
<del> rescue GitHub::HTTPNotFoundError
<del> # We only handle HTTPNotFoundError here,
<del> # becase AuthenticationFailedError is handled within util/github.
<del> message = <<~EOS
<del> HOMEBREW_GITHUB_API_TOKEN can not access the repository: #{@owner}/#{@repo}
<del> This token may not have permission to access the repository or the url of formula may be incorrect.
<del> EOS
<del> raise CurlDownloadStrategyError, message
<del> end
<del>end
<del>
<del># GitHubPrivateRepositoryReleaseDownloadStrategy downloads tarballs from GitHub
<del># Release assets. To use it, add `:using => :github_private_release` to the URL section
<del># of your formula. This download strategy uses GitHub access tokens (in the
<del># environment variables `HOMEBREW_GITHUB_API_TOKEN`) to sign the request.
<del>class GitHubPrivateRepositoryReleaseDownloadStrategy < GitHubPrivateRepositoryDownloadStrategy
<del> def parse_url_pattern
<del> url_pattern = %r{https://github.com/([^/]+)/([^/]+)/releases/download/([^/]+)/(\S+)}
<del> unless @url =~ url_pattern
<del> raise CurlDownloadStrategyError, "Invalid url pattern for GitHub Release."
<del> end
<del>
<del> _, @owner, @repo, @tag, @filename = *@url.match(url_pattern)
<del> end
<del>
<del> def download_url
<del> "https://#{@github_token}@api.github.com/repos/#{@owner}/#{@repo}/releases/assets/#{asset_id}"
<del> end
<del>
<del> private
<del>
<del> def _fetch(url:, resolved_url:)
<del> # HTTP request header `Accept: application/octet-stream` is required.
<del> # Without this, the GitHub API will respond with metadata, not binary.
<del> curl_download download_url, "--header", "Accept: application/octet-stream", to: temporary_path
<del> end
<del>
<del> def asset_id
<del> @asset_id ||= resolve_asset_id
<del> end
<del>
<del> def resolve_asset_id
<del> release_metadata = fetch_release_metadata
<del> assets = release_metadata["assets"].select { |a| a["name"] == @filename }
<del> raise CurlDownloadStrategyError, "Asset file not found." if assets.empty?
<del>
<del> assets.first["id"]
<del> end
<del>
<del> def fetch_release_metadata
<del> release_url = "https://api.github.com/repos/#{@owner}/#{@repo}/releases/tags/#{@tag}"
<del> GitHub.open_api(release_url)
<del> end
<del>end
<del>
<del># ScpDownloadStrategy downloads files using ssh via scp. To use it, add
<del># `:using => :scp` to the URL section of your formula or
<del># provide a URL starting with scp://. This strategy uses ssh credentials for
<del># authentication. If a public/private keypair is configured, it will not
<del># prompt for a password.
<del>#
<del># @example
<del># class Abc < Formula
<del># url "scp://example.com/src/abc.1.0.tar.gz"
<del># ...
<del>class ScpDownloadStrategy < AbstractFileDownloadStrategy
<del> def initialize(url, name, version, **meta)
<del> super
<del> parse_url_pattern
<del> end
<del>
<del> def parse_url_pattern
<del> url_pattern = %r{scp://([^@]+@)?([^@:/]+)(:\d+)?/(\S+)}
<del> if @url !~ url_pattern
<del> raise ScpDownloadStrategyError, "Invalid URL for scp: #{@url}"
<del> end
<del>
<del> _, @user, @host, @port, @path = *@url.match(url_pattern)
<del> end
<del>
<del> def fetch
<del> ohai "Downloading #{@url}"
<del>
<del> if cached_location.exist?
<del> puts "Already downloaded: #{cached_location}"
<del> else
<del> system_command! "scp", args: [scp_source, temporary_path.to_s]
<del> ignore_interrupts { temporary_path.rename(cached_location) }
<del> end
<del> end
<del>
<del> def clear_cache
<del> super
<del> rm_rf(temporary_path)
<del> end
<del>
<del> private
<del>
<del> def scp_source
<del> path_prefix = "/" unless @path.start_with?("~")
<del> port_arg = "-P #{@port[1..-1]} " if @port
<del> "#{port_arg}#{@user}#{@host}:#{path_prefix}#{@path}"
<del> end
<del>end
<del>
<ide> class SubversionDownloadStrategy < VCSDownloadStrategy
<ide> def initialize(url, name, version, **meta)
<ide> super
<ide> def self.detect(url, using = nil)
<ide> "Unknown download strategy specification #{strategy.inspect}"
<ide> end
<ide>
<del> require_aws_sdk if strategy == S3DownloadStrategy
<del>
<ide> strategy
<ide> end
<ide>
<ide> def self.detect_from_url(url)
<ide> SubversionDownloadStrategy
<ide> when %r{^https?://(.+?\.)?sourceforge\.net/hgweb/}
<ide> MercurialDownloadStrategy
<del> when %r{^s3://}
<del> S3DownloadStrategy
<del> when %r{^scp://}
<del> ScpDownloadStrategy
<ide> else
<ide> CurlDownloadStrategy
<ide> end
<ide> def self.detect_from_symbol(symbol)
<ide> when :hg then MercurialDownloadStrategy
<ide> when :nounzip then NoUnzipCurlDownloadStrategy
<ide> when :git then GitDownloadStrategy
<del> when :github_private_repo then GitHubPrivateRepositoryDownloadStrategy
<del> when :github_private_release then GitHubPrivateRepositoryReleaseDownloadStrategy
<ide> when :bzr then BazaarDownloadStrategy
<del> when :s3 then S3DownloadStrategy
<del> when :scp then ScpDownloadStrategy
<ide> when :svn then SubversionDownloadStrategy
<ide> when :curl then CurlDownloadStrategy
<ide> when :cvs then CVSDownloadStrategy
<ide> def self.detect_from_symbol(symbol)
<ide> raise "Unknown download strategy #{symbol} was requested."
<ide> end
<ide> end
<del>
<del> def self.require_aws_sdk
<del> Homebrew.install_gem! "aws-sdk-s3", "~> 1.8"
<del> require "aws-sdk-s3"
<del> end
<ide> end
<ide><path>Library/Homebrew/test/download_strategies_spec.rb
<ide> end
<ide> end
<ide>
<del>describe GitHubPrivateRepositoryDownloadStrategy do
<del> subject { described_class.new(url, "foo", version) }
<add>describe "GitHubPrivateRepositoryDownloadStrategy", :needs_compat do
<add> subject { GitHubPrivateRepositoryDownloadStrategy.new(url, "foo", version) }
<ide>
<ide> let(:url) { "https://github.com/owner/repo/archive/1.1.5.tar.gz" }
<ide> let(:version) { nil }
<ide> its(:download_url) { is_expected.to eq("https://token@github.com/owner/repo/archive/1.1.5.tar.gz") }
<ide> end
<ide>
<del>describe GitHubPrivateRepositoryReleaseDownloadStrategy do
<del> subject { described_class.new(url, "foo", version) }
<add>describe "GitHubPrivateRepositoryReleaseDownloadStrategy", :needs_compat do
<add> subject { GitHubPrivateRepositoryReleaseDownloadStrategy.new(url, "foo", version) }
<ide>
<ide> let(:url) { "https://github.com/owner/repo/releases/download/tag/foo_v0.1.0_darwin_amd64.tar.gz" }
<ide> let(:version) { nil }
<ide> def setup_git_repo
<ide> end
<ide> end
<ide>
<del>describe S3DownloadStrategy do
<del> subject { described_class.new(url, name, version) }
<add>describe "S3DownloadStrategy", :needs_compat do
<add> subject { S3DownloadStrategy.new(url, name, version) }
<ide>
<ide> let(:name) { "foo" }
<ide> let(:url) { "https://bucket.s3.amazonaws.com/foo.tar.gz" }
<ide> def setup_git_repo
<ide> end
<ide> end
<ide>
<del>describe ScpDownloadStrategy do
<del> subject { described_class.new(url, name, version) }
<add>describe "ScpDownloadStrategy", :needs_compat do
<add> subject { ScpDownloadStrategy.new(url, name, version) }
<ide>
<ide> let(:name) { "foo" }
<ide> let(:url) { "scp://example.com/foo.tar.gz" }
<ide> def setup_git_repo
<ide> it { is_expected.to eq(GitHubGitDownloadStrategy) }
<ide> end
<ide>
<del> context "when given an S3 URL" do
<add> context "when given an S3 URL", :needs_compat do
<ide> let(:url) { "s3://bucket/homebrew/brew.tar.gz" }
<ide>
<ide> it "returns S3DownloadStrategy" do
<ide> def setup_git_repo
<ide> end
<ide> end
<ide>
<del> context "when given strategy = S3DownloadStrategy" do
<add> context "when given strategy = S3DownloadStrategy", :needs_compat do
<ide> let(:url) { "https://bkt.s3.amazonaws.com/key.tar.gz" }
<ide> let(:strategy) { S3DownloadStrategy }
<ide>
<ide> def setup_git_repo
<ide> end
<ide> end
<ide>
<del> context "when given an scp URL" do
<add> context "when given an scp URL", :needs_compat do
<ide> let(:url) { "scp://example.com/brew.tar.gz" }
<ide>
<ide> it { is_expected.to eq(ScpDownloadStrategy) }
<ide><path>docs/Formula-Cookbook.md
<ide> class Python3 < Formula
<ide> head "https://hg.python.org/cpython", :using => :hg
<ide> ```
<ide>
<del>Homebrew offers both anonymous and authenticated download strategies.
<add>Homebrew offers anonymous download strategies.
<ide>
<ide> | `:using` value | download strategy |
<ide> |----------------|-------------------------------|
<ide> Homebrew offers both anonymous and authenticated download strategies.
<ide> | `:svn` | `SubversionDownloadStrategy` |
<ide> |----------------|-------------------------------|
<ide>
<del>| `:using` value | download strategy | authentication source |
<del>|---------------------------|--------------------------------------------------|----------------------------------------------|
<del>| `:github_private_release` | `GitHubPrivateRepositoryReleaseDownloadStrategy` | `HOMEBREW_GITHUB_API_TOKEN` |
<del>| `:github_private_repo` | `GitHubPrivateRepositoryDownloadStrategy` | `HOMEBREW_GITHUB_API_TOKEN` |
<del>| `:s3` | `S3DownloadStrategy` | `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` |
<del>| `:scp` | `ScpDownloadStrategy` | SSH key pair |
<del>|---------------------------|--------------------------------------------------|----------------------------------------------|
<del>
<ide> If you need more control over the way files are downloaded and staged, you can create a custom download strategy and specify it using the [`url`](https://www.rubydoc.info/github/Homebrew/brew/master/Formula#url-class_method) method's `:using` option:
<ide>
<ide> ```ruby
<ide> class MyDownloadStrategy < SomeHomebrewDownloadStrategy
<del> # Does something cool
<add> def fetch
<add> # downloads output to `temporary_path`
<add> end
<ide> end
<ide>
<ide> class Foo < Formula | 5 |
Ruby | Ruby | fix new warning in ruby 2.4 | 2f6105e49411e6c2a4603a7bf828d3fb4dfd0601 | <ide><path>activerecord/test/cases/adapters/mysql2/reserved_word_test.rb
<ide> def drop_tables_directly(table_names, connection = @connection)
<ide> end
<ide>
<ide> # custom create table, uses execute on connection to create a table, note: escapes table_name, does NOT escape columns
<del> def create_tables_directly (tables, connection = @connection)
<add> def create_tables_directly(tables, connection = @connection)
<ide> tables.each do |table_name, column_properties|
<ide> connection.execute("CREATE TABLE `#{table_name}` ( #{column_properties} )")
<ide> end
<ide><path>activesupport/test/caching_test.rb
<ide> def test_prune_size_on_write_based_on_key_length
<ide> end
<ide>
<ide> def test_pruning_is_capped_at_a_max_time
<del> def @cache.delete_entry (*args)
<add> def @cache.delete_entry(*args)
<ide> sleep(0.01)
<ide> super
<ide> end | 2 |
Python | Python | add doomsday algorithm | c510a7da7b1b814158b74e4c72c28a1400e733ca | <ide><path>other/doomsday.py
<add>#!/bin/python3
<add># Doomsday algorithm info: https://en.wikipedia.org/wiki/Doomsday_rule
<add>
<add>DOOMSDAY_LEAP = [4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
<add>DOOMSDAY_NOT_LEAP = [3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
<add>WEEK_DAY_NAMES = {
<add> 0: "Sunday",
<add> 1: "Monday",
<add> 2: "Tuesday",
<add> 3: "Wednesday",
<add> 4: "Thursday",
<add> 5: "Friday",
<add> 6: "Saturday",
<add>}
<add>
<add>
<add>def get_week_day(year: int, month: int, day: int) -> str:
<add> """Returns the week-day name out of a given date.
<add>
<add> >>> get_week_day(2020, 10, 24)
<add> 'Saturday'
<add> >>> get_week_day(2017, 10, 24)
<add> 'Tuesday'
<add> >>> get_week_day(2019, 5, 3)
<add> 'Friday'
<add> >>> get_week_day(1970, 9, 16)
<add> 'Wednesday'
<add> >>> get_week_day(1870, 8, 13)
<add> 'Saturday'
<add> >>> get_week_day(2040, 3, 14)
<add> 'Wednesday'
<add>
<add> """
<add> # minimal input check:
<add> assert len(str(year)) > 2, "year should be in YYYY format"
<add> assert 1 <= month <= 12, "month should be between 1 to 12"
<add> assert 1 <= day <= 31, "day should be between 1 to 31"
<add>
<add> # Doomsday algorithm:
<add> century = year // 100
<add> century_anchor = (5 * (century % 4) + 2) % 7
<add> centurian = year % 100
<add> centurian_m = centurian % 12
<add> dooms_day = (
<add> (centurian // 12) + centurian_m + (centurian_m // 4) + century_anchor
<add> ) % 7
<add> day_anchor = (
<add> DOOMSDAY_NOT_LEAP[month - 1]
<add> if (year % 4 != 0) or (centurian == 0 and (year % 400) == 0)
<add> else DOOMSDAY_LEAP[month - 1]
<add> )
<add> week_day = (dooms_day + day - day_anchor) % 7
<add> return WEEK_DAY_NAMES[week_day]
<add>
<add>
<add>if __name__ == "__main__":
<add> import doctest
<add>
<add> doctest.testmod() | 1 |
Java | Java | copy cookies and hints in built serverresponse | 6324a1b3fab1b797211ab01a3939caaef521dda5 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/DefaultEntityResponseBuilder.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this file except in compliance with the License.
<ide> public Mono<EntityResponse<T>> build() {
<ide>
<ide> private final BodyInserter<T, ? super ServerHttpResponse> inserter;
<ide>
<del> private final Map<String, Object> hints;
<ide>
<ide> public DefaultEntityResponse(int statusCode, HttpHeaders headers,
<ide> MultiValueMap<String, ResponseCookie> cookies, T entity,
<ide> BodyInserter<T, ? super ServerHttpResponse> inserter, Map<String, Object> hints) {
<ide>
<del> super(statusCode, headers, cookies);
<add> super(statusCode, headers, cookies, hints);
<ide> this.entity = entity;
<ide> this.inserter = inserter;
<del> this.hints = hints;
<ide> }
<ide>
<ide> @Override
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/DefaultRenderingResponseBuilder.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this file except in compliance with the License.
<ide> private static final class DefaultRenderingResponse extends DefaultServerRespons
<ide> public DefaultRenderingResponse(int statusCode, HttpHeaders headers,
<ide> MultiValueMap<String, ResponseCookie> cookies, String name, Map<String, Object> model) {
<ide>
<del> super(statusCode, headers, cookies);
<add> super(statusCode, headers, cookies, Collections.emptyMap());
<ide> this.name = name;
<ide> this.model = Collections.unmodifiableMap(new LinkedHashMap<>(model));
<ide> }
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/DefaultServerResponseBuilder.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this file except in compliance with the License.
<ide> import java.time.Instant;
<ide> import java.time.ZonedDateTime;
<ide> import java.util.Arrays;
<add>import java.util.Collections;
<ide> import java.util.EnumSet;
<ide> import java.util.HashMap;
<ide> import java.util.LinkedHashSet;
<ide> class DefaultServerResponseBuilder implements ServerResponse.BodyBuilder {
<ide>
<ide> public DefaultServerResponseBuilder(ServerResponse other) {
<ide> Assert.notNull(other, "ServerResponse must not be null");
<del> this.statusCode = (other instanceof AbstractServerResponse ?
<del> ((AbstractServerResponse) other).statusCode : other.statusCode().value());
<ide> this.headers.addAll(other.headers());
<add> this.cookies.addAll(other.cookies());
<add> if (other instanceof AbstractServerResponse) {
<add> AbstractServerResponse abstractOther = (AbstractServerResponse) other;
<add> this.statusCode = abstractOther.statusCode;
<add> this.hints.putAll(abstractOther.hints);
<add> }
<add> else {
<add> this.statusCode = other.statusCode().value();
<add> }
<ide> }
<ide>
<ide> public DefaultServerResponseBuilder(HttpStatus status) {
<ide> abstract static class AbstractServerResponse implements ServerResponse {
<ide>
<ide> private final MultiValueMap<String, ResponseCookie> cookies;
<ide>
<add> final Map<String, Object> hints;
<add>
<add>
<ide> protected AbstractServerResponse(
<del> int statusCode, HttpHeaders headers, MultiValueMap<String, ResponseCookie> cookies) {
<add> int statusCode, HttpHeaders headers, MultiValueMap<String, ResponseCookie> cookies,
<add> Map<String, Object> hints) {
<ide>
<ide> this.statusCode = statusCode;
<ide> this.headers = HttpHeaders.readOnlyHttpHeaders(headers);
<ide> this.cookies = CollectionUtils.unmodifiableMultiValueMap(new LinkedMultiValueMap<>(cookies));
<add> this.hints = hints;
<ide> }
<ide>
<ide> @Override
<ide> public WriterFunctionResponse(int statusCode, HttpHeaders headers,
<ide> MultiValueMap<String, ResponseCookie> cookies,
<ide> BiFunction<ServerWebExchange, Context, Mono<Void>> writeFunction) {
<ide>
<del> super(statusCode, headers, cookies);
<add> super(statusCode, headers, cookies, Collections.emptyMap());
<ide> Assert.notNull(writeFunction, "BiFunction must not be null");
<ide> this.writeFunction = writeFunction;
<ide> }
<ide> protected Mono<Void> writeToInternal(ServerWebExchange exchange, Context context
<ide>
<ide> private final BodyInserter<T, ? super ServerHttpResponse> inserter;
<ide>
<del> private final Map<String, Object> hints;
<ide>
<ide> public BodyInserterResponse(int statusCode, HttpHeaders headers,
<ide> MultiValueMap<String, ResponseCookie> cookies,
<ide> BodyInserter<T, ? super ServerHttpResponse> body, Map<String, Object> hints) {
<ide>
<del> super(statusCode, headers, cookies);
<add> super(statusCode, headers, cookies, hints);
<ide> Assert.notNull(body, "BodyInserter must not be null");
<ide> this.inserter = body;
<del> this.hints = hints;
<ide> }
<ide>
<ide> @Override
<ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/function/server/DefaultServerResponseBuilderTests.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this file except in compliance with the License.
<ide> public List<ViewResolver> viewResolvers() {
<ide>
<ide> @Test
<ide> public void from() {
<del> ServerResponse other = ServerResponse.ok().header("foo", "bar").build().block();
<add> ResponseCookie cookie = ResponseCookie.from("foo", "bar").build();
<add> ServerResponse other = ServerResponse.ok().header("foo", "bar")
<add> .cookie(cookie)
<add> .hint("foo", "bar")
<add> .build().block();
<add>
<ide> Mono<ServerResponse> result = ServerResponse.from(other).build();
<ide> StepVerifier.create(result)
<ide> .expectNextMatches(response -> HttpStatus.OK.equals(response.statusCode()) &&
<del> "bar".equals(response.headers().getFirst("foo")))
<add> "bar".equals(response.headers().getFirst("foo")) &&
<add> cookie.equals(response.cookies().getFirst("foo")))
<ide> .expectComplete()
<ide> .verify();
<ide> } | 4 |
Python | Python | pass kwargs to ex_rebuild to create node args | 89afb61dab127a41840ca5d3493954ff090fd092 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def ex_set_password(self, node, password):
<ide> node.extra['password'] = password
<ide> return resp.status == httplib.ACCEPTED
<ide>
<del> def ex_rebuild(self, node, image):
<add> def ex_rebuild(self, node, image, **kwargs):
<ide> """
<ide> Rebuild a Node.
<ide>
<ide> def ex_rebuild(self, node, image):
<ide> :param image: New image to use.
<ide> :type image: :class:`NodeImage`
<ide>
<add> :keyword ex_metadata: Key/Value metadata to associate with a node
<add> :type ex_metadata: ``dict``
<add>
<add> :keyword ex_files: File Path => File contents to create on
<add> the no de
<add> :type ex_files: ``dict``
<add>
<add> :keyword ex_keyname: Name of existing public key to inject into
<add> instance
<add> :type ex_keyname: ``str``
<add>
<add> :keyword ex_userdata: String containing user data
<add> see
<add> https://help.ubuntu.com/community/CloudInit
<add> :type ex_userdata: ``str``
<add>
<add> :keyword ex_security_groups: List of security groups to assign to
<add> the node
<add> :type ex_security_groups: ``list`` of
<add> :class:`OpenStackSecurityGroup`
<add>
<add> :keyword ex_disk_config: Name of the disk configuration.
<add> Can be either ``AUTO`` or ``MANUAL``.
<add> :type ex_disk_config: ``str``
<add>
<ide> :rtype: ``bool``
<ide> """
<del> server_params = self._create_args_to_params(node, image=image)
<add> server_params = self._create_args_to_params(node, image=image, **kwargs)
<ide> resp = self._node_action(node, 'rebuild', **server_params)
<ide> return resp.status == httplib.ACCEPTED
<ide>
<ide><path>libcloud/test/compute/test_openstack.py
<ide> def test_ex_set_password(self):
<ide> self.fail('An error was raised: ' + repr(e))
<ide>
<ide> def test_ex_rebuild(self):
<del> image = NodeImage(id=11, name='Ubuntu 8.10 (intrepid)', driver=self.driver)
<add> image = NodeImage(id=11, name='Ubuntu 8.10 (intrepid)',
<add> driver=self.driver)
<add> try:
<add> success = self.driver.ex_rebuild(self.node, image=image)
<add> self.assertTrue(success)
<add> except Exception:
<add> e = sys.exc_info()[1]
<add> self.fail('An error was raised: ' + repr(e))
<add>
<add> def test_ex_rebuild_with_ex_disk_config(self):
<add> image = NodeImage(id=58, name='Ubuntu 10.10 (intrepid)',
<add> driver=self.driver)
<add> node = Node(id=12066, name=None, state=None, public_ips=None,
<add> private_ips=None, driver=self.driver)
<ide> try:
<del> self.driver.ex_rebuild(self.node, image=image)
<add> success = self.driver.ex_rebuild(node, image=image,
<add> ex_disk_config='MANUAL')
<add> self.assertTrue(success)
<ide> except Exception:
<ide> e = sys.exc_info()[1]
<ide> self.fail('An error was raised: ' + repr(e))
<ide> def _v1_1_slug_servers_12064_action(self, method, url, body, headers):
<ide>
<ide> return (httplib.ACCEPTED, "", {}, httplib.responses[httplib.ACCEPTED])
<ide>
<add> def _v1_1_slug_servers_12066_action(self, method, url, body, headers):
<add> if method != "POST":
<add> self.fail('HTTP method other than POST to action URL')
<add> if "rebuild" not in json.loads(body):
<add> self.fail("Did not get expected action (rebuild) in action URL")
<add>
<add> self.assertTrue('\"OS-DCF:diskConfig\": \"MANUAL\"' in body,
<add> msg="Manual disk configuration option was not specified in rebuild body: " + body)
<add>
<add> return (httplib.ACCEPTED, "", {}, httplib.responses[httplib.ACCEPTED])
<add>
<ide> def _v1_1_slug_servers_12065(self, method, url, body, headers):
<ide> if method == "DELETE":
<ide> return (httplib.ACCEPTED, "", {}, httplib.responses[httplib.ACCEPTED]) | 2 |
Text | Text | fix doc about foreign key name [ci skip] | 95de0f01e06564bad3d598824a8cf63d3756dc98 | <ide><path>guides/source/active_record_migrations.md
<ide> column names can not be derived from the table names, you can use the
<ide> `:column` and `:primary_key` options.
<ide>
<ide> Rails will generate a name for every foreign key starting with
<del>`fk_rails_` followed by 10 random characters.
<add>`fk_rails_` followed by 10 character which is deterministically
<add>generated from the `from_table` and `column`.
<ide> There is a `:name` option to specify a different name if needed.
<ide>
<ide> NOTE: Active Record only supports single column foreign keys. `execute` and | 1 |
Text | Text | fix active storage cors configuration [ci skip] | 517aa6105116316b3d9b45716e12afa5af3772c6 | <ide><path>guides/source/active_storage_overview.md
<ide> No CORS configuration is required for the Disk service since it shares your app
<ide> #### Example: S3 CORS configuration
<ide>
<ide> ```xml
<del><?xml version="1.0" encoding="UTF-8"?>
<del><CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<del><CORSRule>
<add><CORSConfiguration>
<add> <CORSRule>
<ide> <AllowedOrigin>https://www.example.com</AllowedOrigin>
<ide> <AllowedMethod>PUT</AllowedMethod>
<ide> <AllowedHeader>Origin</AllowedHeader>
<ide> <AllowedHeader>Content-Type</AllowedHeader>
<ide> <AllowedHeader>Content-MD5</AllowedHeader>
<ide> <AllowedHeader>Content-Disposition</AllowedHeader>
<ide> <MaxAgeSeconds>3600</MaxAgeSeconds>
<del></CORSRule>
<add> </CORSRule>
<ide> </CORSConfiguration>
<ide> ```
<ide> | 1 |
Java | Java | make methodname package-private | 87b83e829128ad6aa2dd8d01e3663a55ef00b035 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGenerator.java
<ide> import org.springframework.aot.generate.GeneratedMethod;
<ide> import org.springframework.aot.generate.GeneratedMethods;
<ide> import org.springframework.aot.generate.GenerationContext;
<del>import org.springframework.aot.generate.MethodName;
<ide> import org.springframework.aot.generate.MethodReference;
<ide> import org.springframework.beans.factory.config.BeanDefinition;
<ide> import org.springframework.beans.factory.support.RegisteredBean;
<ide> import org.springframework.javapoet.ClassName;
<ide> import org.springframework.lang.Nullable;
<add>import org.springframework.util.StringUtils;
<ide>
<ide> /**
<ide> * Generates a method that returns a {@link BeanDefinition} to be registered.
<ide> private String getName() {
<ide> nonGeneratedParent = nonGeneratedParent.getParent();
<ide> }
<ide> if (nonGeneratedParent != null) {
<del> return MethodName.of(getSimpleBeanName(nonGeneratedParent.getBeanName()), "innerBean").toString();
<add> return StringUtils.uncapitalize(getSimpleBeanName(nonGeneratedParent.getBeanName()) + "InnerBean");
<ide> }
<ide> return "innerBean";
<ide> }
<ide><path>spring-core/src/main/java/org/springframework/aot/generate/GeneratedMethods.java
<ide> private GeneratedMethods(Function<MethodName, String> methodNameGenerator,
<ide> * @return the newly added {@link GeneratedMethod}
<ide> */
<ide> public GeneratedMethod add(String suggestedName, Consumer<Builder> method) {
<del> Assert.notNull(suggestedName, "'suggestedName' must not be null");
<del> return add(MethodName.of(suggestedName), method);
<del> }
<del>
<del> /**
<del> * Add a new {@link GeneratedMethod}.
<del> * @param suggestedName the suggested name for the method
<del> * @param method a {@link Consumer} used to build the method
<del> * @return the newly added {@link GeneratedMethod}
<del> */
<del> public GeneratedMethod add(MethodName suggestedName, Consumer<Builder> method) {
<ide> Assert.notNull(suggestedName, "'suggestedName' must not be null");
<ide> Assert.notNull(method, "'method' must not be null");
<ide> String generatedName = this.methodNameGenerator.apply(this.prefix.and(suggestedName));
<ide><path>spring-core/src/main/java/org/springframework/aot/generate/MethodName.java
<ide> * @author Phillip Webb
<ide> * @since 6.0
<ide> */
<del>public final class MethodName {
<add>final class MethodName {
<ide>
<ide> private static final String[] PREFIXES = { "get", "set", "is" };
<ide>
<ide> private MethodName(String value) {
<ide> * @param parts the parts the form the name
<ide> * @return a method name instance
<ide> */
<del> public static MethodName of(String... parts) {
<add> static MethodName of(String... parts) {
<ide> Assert.notNull(parts, "'parts' must not be null");
<ide> return new MethodName(join(parts));
<ide> }
<ide> public static MethodName of(String... parts) {
<ide> * @param name the name to concatenate
<ide> * @return a new method name instance
<ide> */
<del> public MethodName and(MethodName name) {
<add> MethodName and(MethodName name) {
<ide> Assert.notNull(name, "'name' must not be null");
<ide> return and(name.value);
<ide> }
<ide> public MethodName and(MethodName name) {
<ide> * @param parts the parts to concatenate
<ide> * @return a new method name instance
<ide> */
<del> public MethodName and(String... parts) {
<add> MethodName and(String... parts) {
<ide> Assert.notNull(parts, "'parts' must not be null");
<ide> String joined = join(parts);
<ide> String prefix = getPrefix(joined);
<ide><path>spring-core/src/test/java/org/springframework/aot/generate/GeneratedMethodsTests.java
<ide> void createWithExistingGeneratorUsesGenerator() {
<ide> assertThat(methods.add("test", methodSpecCustomizer).getName()).hasToString("__test");
<ide> }
<ide>
<del> @Test
<del> void addWithMethodNameWhenSuggestedMethodIsNullThrowsException() {
<del> assertThatIllegalArgumentException().isThrownBy(() ->
<del> this.methods.add((MethodName) null, methodSpecCustomizer))
<del> .withMessage("'suggestedName' must not be null");
<del> }
<del>
<del> @Test
<del> void addWithMethodNameWhenMethodIsNullThrowsException() {
<del> assertThatIllegalArgumentException().isThrownBy(() ->
<del> this.methods.add(MethodName.of("test"), null))
<del> .withMessage("'method' must not be null");
<del> }
<del>
<ide> @Test
<ide> void addWithStringNameWhenSuggestedMethodIsNullThrowsException() {
<ide> assertThatIllegalArgumentException().isThrownBy(() ->
<ide><path>spring-orm/src/main/java/org/springframework/orm/jpa/support/PersistenceAnnotationBeanPostProcessor.java
<ide> import org.springframework.aot.generate.GeneratedMethod;
<ide> import org.springframework.aot.generate.GeneratedMethods;
<ide> import org.springframework.aot.generate.GenerationContext;
<del>import org.springframework.aot.generate.MethodName;
<ide> import org.springframework.aot.generate.MethodReference;
<ide> import org.springframework.aot.hint.RuntimeHints;
<ide> import org.springframework.beans.BeanUtils;
<ide> private CodeBlock generateResourceToInjectCode(GeneratedMethods generatedMethods
<ide> EntityManagerFactoryUtils.class, ListableBeanFactory.class,
<ide> REGISTERED_BEAN_PARAMETER, unitName);
<ide> }
<del> GeneratedMethod generatedMethod = generatedMethods
<del> .add(MethodName.of("get", unitName, "EntityManager"), method ->
<add> String methodName = "get" + StringUtils.capitalize(unitName) + "EntityManager";
<add> GeneratedMethod generatedMethod = generatedMethods.add(methodName, method ->
<ide> generateGetEntityManagerMethod(method, injectedElement));
<ide> return CodeBlock.of("$L($L)", generatedMethod.getName(), REGISTERED_BEAN_PARAMETER);
<ide> } | 5 |
Python | Python | add max length | fdc487d8b33dcb8b2ddebd7a1fe4bd0eee4e2a40 | <ide><path>pytorch_transformers/tokenization_gpt2.py
<ide> def lru_cache():
<ide> PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {
<ide> 'gpt2': 1024,
<ide> 'gpt2-medium': 1024,
<add> 'gpt2-large': 1024,
<ide> }
<ide>
<ide> @lru_cache() | 1 |
Ruby | Ruby | use new hash syntax | 440b334cbb0b803994967972547239d73dba1fce | <ide><path>actionpack/test/controller/api/redirect_to_test.rb
<ide>
<ide> class RedirectToApiController < ActionController::API
<ide> def one
<del> redirect_to :action => "two"
<add> redirect_to action: "two"
<ide> end
<ide>
<ide> def two; end
<ide><path>actionpack/test/controller/api/renderers_test.rb
<ide> class RenderersApiController < ActionController::API
<ide> class Model
<ide> def to_json(options = {})
<del> { :a => 'b' }.to_json(options)
<add> { a: 'b' }.to_json(options)
<ide> end
<ide>
<ide> def to_xml(options = {})
<del> { :a => 'b' }.to_xml(options)
<add> { a: 'b' }.to_xml(options)
<ide> end
<ide> end
<ide>
<ide> def one
<del> render :json => Model.new
<add> render json: Model.new
<ide> end
<ide>
<ide> def two
<del> render :xml => Model.new
<add> render xml: Model.new
<ide> end
<ide> end
<ide>
<ide> class RenderersApiTest < ActionController::TestCase
<ide> def test_render_json
<ide> get :one
<ide> assert_response :success
<del> assert_equal({ :a => 'b' }.to_json, @response.body)
<add> assert_equal({ a: 'b' }.to_json, @response.body)
<ide> end
<ide>
<ide> def test_render_xml
<ide> get :two
<ide> assert_response :success
<del> assert_equal({ :a => 'b' }.to_xml, @response.body)
<add> assert_equal({ a: 'b' }.to_xml, @response.body)
<ide> end
<ide> end
<ide><path>railties/test/application/initializers/frameworks_test.rb
<ide> class ApplicationController < ActionController::API
<ide> app_file "app/controllers/omg_controller.rb", <<-RUBY
<ide> class OmgController < ApplicationController
<ide> def show
<del> render :json => { :omg => 'omg' }
<add> render json: { omg: 'omg' }
<ide> end
<ide> end
<ide> RUBY | 3 |
Ruby | Ruby | add debug parameter | d94afb91dd583330cf36dca598929455c152ec39 | <ide><path>Library/Homebrew/system_command.rb
<ide> def run!
<ide> must_succeed: T::Boolean,
<ide> print_stdout: T::Boolean,
<ide> print_stderr: T::Boolean,
<add> debug: T::Boolean,
<ide> verbose: T::Boolean,
<ide> secrets: T.any(String, T::Array[String]),
<ide> chdir: T.any(String, Pathname),
<ide> ).void
<ide> end
<ide> def initialize(executable, args: [], sudo: false, env: {}, input: [], must_succeed: false,
<del> print_stdout: false, print_stderr: true, verbose: false, secrets: [], chdir: T.unsafe(nil))
<add> print_stdout: false, print_stderr: true, debug: false, verbose: false, secrets: [],
<add> chdir: T.unsafe(nil))
<ide> require "extend/ENV"
<ide> @executable = executable
<ide> @args = args
<ide> def initialize(executable, args: [], sudo: false, env: {}, input: [], must_succe
<ide> @must_succeed = must_succeed
<ide> @print_stdout = print_stdout
<ide> @print_stderr = print_stderr
<add> @debug = debug
<ide> @verbose = verbose
<ide> @secrets = (Array(secrets) + ENV.sensitive_environment.values).uniq
<ide> @chdir = chdir
<ide> def command
<ide>
<ide> attr_predicate :sudo?, :print_stdout?, :print_stderr?, :must_succeed?
<ide>
<add> sig { returns(T::Boolean) }
<add> def debug?
<add> return super if @debug.nil?
<add>
<add> @debug
<add> end
<add>
<ide> sig { returns(T::Boolean) }
<ide> def verbose?
<ide> return super if @verbose.nil? | 1 |
Ruby | Ruby | remove method missing use in respond_to | 6dc12881110d26bb952bd0f565623144f10a07b6 | <ide><path>actionpack/lib/action_controller/mime_responds.rb
<ide> def any(*args, &block)
<ide> custom(@mime_type_priority.first, &block)
<ide> end
<ide> end
<add>
<add> def self.generate_method_for_mime(mime)
<add> sym = mime.is_a?(Symbol) ? mime : mime.to_sym
<add> const = sym.to_s.upcase
<add> class_eval <<-RUBY
<add> def #{sym}(&block) # def html(&block)
<add> if Mime::SET.include?(Mime::#{const}) # if Mime::Set.include?(Mime::HTML)
<add> custom(Mime::#{const}, &block) # custom(Mime::HTML, &block)
<add> else # else
<add> super # super
<add> end # end
<add> end # end
<add> RUBY
<add> end
<ide>
<del> def method_missing(symbol, &block)
<del> mime_constant = symbol.to_s.upcase
<add> Mime::SET.each do |mime|
<add> generate_method_for_mime(mime)
<add> end
<ide>
<del> if Mime::SET.include?(Mime.const_get(mime_constant))
<del> custom(Mime.const_get(mime_constant), &block)
<add> def method_missing(symbol, &block)
<add> mime_constant = Mime.const_get(symbol.to_s.upcase)
<add>
<add> if Mime::SET.include?(mime_constant)
<add> self.class.generate_method_for_mime(mime_constant)
<add> send(symbol, &block)
<ide> else
<ide> super
<ide> end | 1 |
Text | Text | add more infos on how to profile the javascript | c038a3839a1ec04e6d08ab9bc400f164e915a203 | <ide><path>docs/Performance.md
<ide> the JavaScript thread and main thread side-by-side.
<ide>
<ide> For iOS, Instruments are an invaluable tool, and on Android you should
<ide> learn to use systrace.
<add>
<add>You can also use [`react-addons-perf`](https://facebook.github.io/react/docs/perf.html) to get insights into where React is spending time when rendering your components.
<add>
<add>Another way to profile JavaScript is to use the Chrome profiler while debugging. This won't give you accurate results as the code is running in Chrome but will give you a general idea of where bottlenecks might be. | 1 |
Java | Java | revise cache api | 8dfcae535e19b0c80dabf8fdbad81fbcd8ba8246 | <ide><path>org.springframework.context/src/test/java/org/springframework/cache/vendor/AbstractNativeCacheTest.java
<ide> public void testCachePut() throws Exception {
<ide>
<ide> assertNull(cache.get(key));
<ide> cache.put(key, value);
<del> assertEquals(value, cache.get(key));
<add> assertEquals(value, cache.get(key).get());
<ide> }
<ide>
<ide> @Test | 1 |
Text | Text | normalize code indentation [ci-skip] | 27786c8d1ee85c64236286b8c810787f669b4331 | <ide><path>guides/source/active_record_basics.md
<ide> that the `products` table was created using an SQL (or one of its extensions) st
<ide>
<ide> ```sql
<ide> CREATE TABLE products (
<del> id int(11) NOT NULL auto_increment,
<del> name varchar(255),
<del> PRIMARY KEY (id)
<add> id int(11) NOT NULL auto_increment,
<add> name varchar(255),
<add> PRIMARY KEY (id)
<ide> );
<ide> ```
<ide>
<ide><path>guides/source/active_record_postgresql.md
<ide> CREATE TYPE full_address AS
<ide> ```ruby
<ide> # db/migrate/20140207133952_create_contacts.rb
<ide> execute <<-SQL
<del> CREATE TYPE full_address AS
<del> (
<del> city VARCHAR(90),
<del> street VARCHAR(90)
<del> );
<add> CREATE TYPE full_address AS
<add> (
<add> city VARCHAR(90),
<add> street VARCHAR(90)
<add> );
<ide> SQL
<ide> create_table :contacts do |t|
<ide> t.column :address, :full_address
<ide><path>guides/source/active_record_querying.md
<ide> WHERE (reviews.created_at > '2019-01-08')
<ide> ### Retrieving specific data from multiple tables
<ide>
<ide> ```ruby
<del>Book.select('books.id, books.title, authors.first_name')
<add>Book
<add> .select('books.id, books.title, authors.first_name')
<ide> .joins(:author)
<ide> .find_by(title: 'Abstraction and Specification in Program Development')
<ide> ```
<ide> The above should generate:
<ide> SELECT books.id, books.title, authors.first_name
<ide> FROM books
<ide> INNER JOIN authors
<del> ON authors.id = books.author_id
<add> ON authors.id = books.author_id
<ide> WHERE books.title = $1 [["title", "Abstraction and Specification in Program Development"]]
<ide> LIMIT 1
<ide> ```
<ide><path>guides/source/asset_pipeline.md
<ide> which contains these lines:
<ide>
<ide> ```css
<ide> /* ...
<del>*= require_self
<del>*= require_tree .
<del>*/
<add> *= require_self
<add> *= require_tree .
<add> */
<ide> ```
<ide>
<ide> Rails creates `app/assets/stylesheets/application.css` regardless of whether the
<ide> might concatenate three CSS files together this way:
<ide>
<ide> ```js
<ide> /* ...
<del>*= require reset
<del>*= require layout
<del>*= require chrome
<del>*/
<add> *= require reset
<add> *= require layout
<add> *= require chrome
<add> */
<ide> ```
<ide>
<ide> ### Preprocessing
<ide><path>guides/source/association_basics.md
<ide> The `build_association` method returns a new object of the associated type. This
<ide>
<ide> ```ruby
<ide> @author = @book.build_author(author_number: 123,
<del> author_name: "John Doe")
<add> author_name: "John Doe")
<ide> ```
<ide>
<ide> ##### `create_association(attributes = {})`
<ide> The `create_association` method returns a new object of the associated type. Thi
<ide>
<ide> ```ruby
<ide> @author = @book.create_author(author_number: 123,
<del> author_name: "John Doe")
<add> author_name: "John Doe")
<ide> ```
<ide>
<ide> ##### `create_association!(attributes = {})`
<ide> By convention, Rails assumes that the column used to hold the foreign key on thi
<ide> ```ruby
<ide> class Book < ApplicationRecord
<ide> belongs_to :author, class_name: "Patron",
<del> foreign_key: "patron_id"
<add> foreign_key: "patron_id"
<ide> end
<ide> ```
<ide>
<ide> The [`collection.build`][] method returns a single or array of new objects of th
<ide>
<ide> ```ruby
<ide> @book = @author.books.build(published_at: Time.now,
<del> book_number: "A12345")
<add> book_number: "A12345")
<ide>
<ide> @books = @author.books.build([
<ide> { published_at: Time.now, book_number: "A12346" },
<ide> The [`collection.create`][] method returns a single or array of new objects of t
<ide>
<ide> ```ruby
<ide> @book = @author.books.create(published_at: Time.now,
<del> book_number: "A12345")
<add> book_number: "A12345")
<ide>
<ide> @books = @author.books.create([
<ide> { published_at: Time.now, book_number: "A12346" },
<ide> You can also set conditions via a hash:
<ide> ```ruby
<ide> class Author < ApplicationRecord
<ide> has_many :confirmed_books, -> { where confirmed: true },
<del> class_name: "Book"
<add> class_name: "Book"
<ide> end
<ide> ```
<ide>
<ide><path>guides/source/caching_with_rails.md
<ide> response body.
<ide> Weak ETags have a leading `W/` to differentiate them from strong ETags.
<ide>
<ide> ```
<del> W/"618bbc92e2d35ea1945008b42799b0e7" → Weak ETag
<del> "618bbc92e2d35ea1945008b42799b0e7" → Strong ETag
<add>W/"618bbc92e2d35ea1945008b42799b0e7" → Weak ETag
<add>"618bbc92e2d35ea1945008b42799b0e7" → Strong ETag
<ide> ```
<ide>
<ide> Unlike weak ETag, strong ETag implies that response should be exactly the same
<ide> large video or PDF file. Some CDNs support only strong ETags, like Akamai.
<ide> If you absolutely need to generate a strong ETag, it can be done as follows.
<ide>
<ide> ```ruby
<del> class ProductsController < ApplicationController
<del> def show
<del> @product = Product.find(params[:id])
<del> fresh_when last_modified: @product.published_at.utc, strong_etag: @product
<del> end
<add>class ProductsController < ApplicationController
<add> def show
<add> @product = Product.find(params[:id])
<add> fresh_when last_modified: @product.published_at.utc, strong_etag: @product
<ide> end
<add>end
<ide> ```
<ide>
<ide> You can also set the strong ETag directly on the response.
<ide>
<ide> ```ruby
<del> response.strong_etag = response.body # => "618bbc92e2d35ea1945008b42799b0e7"
<add>response.strong_etag = response.body # => "618bbc92e2d35ea1945008b42799b0e7"
<ide> ```
<ide>
<ide> Caching in Development
<ide><path>guides/source/configuring.md
<ide> The key difference between these two is that you should be using `config.x` if y
<ide> are defining _nested_ configuration (ex: `config.x.nested.hi`), and just
<ide> `config` for _single level_ configuration (ex: `config.hello`).
<ide>
<del> ```ruby
<del> config.x.payment_processing.schedule = :daily
<del> config.x.payment_processing.retries = 3
<del> config.super_debugger = true
<del> ```
<add>```ruby
<add>config.x.payment_processing.schedule = :daily
<add>config.x.payment_processing.retries = 3
<add>config.super_debugger = true
<add>```
<ide>
<ide> These configuration points are then available through the configuration object:
<ide>
<del> ```ruby
<del> Rails.configuration.x.payment_processing.schedule # => :daily
<del> Rails.configuration.x.payment_processing.retries # => 3
<del> Rails.configuration.x.payment_processing.not_set # => nil
<del> Rails.configuration.super_debugger # => true
<del> ```
<add>```ruby
<add>Rails.configuration.x.payment_processing.schedule # => :daily
<add>Rails.configuration.x.payment_processing.retries # => 3
<add>Rails.configuration.x.payment_processing.not_set # => nil
<add>Rails.configuration.super_debugger # => true
<add>```
<ide>
<ide> You can also use `Rails::Application.config_for` to load whole configuration files:
<ide>
<del> ```yaml
<del> # config/payment.yml
<del> production:
<del> environment: production
<del> merchant_id: production_merchant_id
<del> public_key: production_public_key
<del> private_key: production_private_key
<del>
<del> development:
<del> environment: sandbox
<del> merchant_id: development_merchant_id
<del> public_key: development_public_key
<del> private_key: development_private_key
<del> ```
<del>
<del> ```ruby
<del> # config/application.rb
<del> module MyApp
<del> class Application < Rails::Application
<del> config.payment = config_for(:payment)
<del> end
<add>```yaml
<add># config/payment.yml
<add>production:
<add> environment: production
<add> merchant_id: production_merchant_id
<add> public_key: production_public_key
<add> private_key: production_private_key
<add>
<add>development:
<add> environment: sandbox
<add> merchant_id: development_merchant_id
<add> public_key: development_public_key
<add> private_key: development_private_key
<add>```
<add>
<add>```ruby
<add># config/application.rb
<add>module MyApp
<add> class Application < Rails::Application
<add> config.payment = config_for(:payment)
<ide> end
<del> ```
<add>end
<add>```
<add>
<add>```ruby
<add>Rails.configuration.payment['merchant_id'] # => production_merchant_id or development_merchant_id
<add>```
<ide>
<del> ```ruby
<del> Rails.configuration.payment['merchant_id'] # => production_merchant_id or development_merchant_id
<del> ```
<ide> `Rails::Application.config_for` supports a `shared` configuration to group common
<ide> configurations. The shared configuration will be merged into the environment
<ide> configuration.
<ide>
<del> ```yaml
<del> # config/example.yml
<del> shared:
<del> foo:
<del> bar:
<del> baz: 1
<add>```yaml
<add># config/example.yml
<add>shared:
<add> foo:
<add> bar:
<add> baz: 1
<ide>
<del> development:
<del> foo:
<del> bar:
<del> qux: 2
<del> ```
<add>development:
<add> foo:
<add> bar:
<add> qux: 2
<add>```
<ide>
<ide>
<del> ```ruby
<del> # development environment
<del> Rails.application.config_for(:example)[:foo][:bar] #=> { baz: 1, qux: 2 }
<del> ```
<add>```ruby
<add># development environment
<add>Rails.application.config_for(:example)[:foo][:bar] #=> { baz: 1, qux: 2 }
<add>```
<ide>
<ide> Search Engines Indexing
<ide> -----------------------
<ide><path>guides/source/engines.md
<ide> Pipeline require statements in processed files:
<ide> ```css
<ide> /*
<ide> *= require blorgh/style
<del>*/
<add> */
<ide> ```
<ide>
<ide> INFO. Remember that in order to use languages like Sass or CoffeeScript, you
<ide><path>guides/source/getting_started.md
<ide> Concerns are a way to make large controllers or models easier to understand and
<ide>
<ide> You can use concerns in your controller or model the same way you would use any module. When you first created your app with `rails new blog`, two folders were created within `app/` along with the rest:
<ide>
<del> ```
<del> app/controllers/concerns
<del> app/models/concerns
<del> ```
<add>```
<add>app/controllers/concerns
<add>app/models/concerns
<add>```
<ide>
<ide> A given blog article might have various statuses - for instance, it might be visible to everyone (i.e. `public`), or only visible to the author (i.e. `private`). It may also be hidden to all but still retrievable (i.e. `archived`). Comments may similarly be hidden or visible. This could be represented using a `status` column in each model.
<ide>
<ide> So first, let's add the delete link in the
<ide>
<ide> <p>
<ide> <%= link_to 'Destroy Comment', [comment.article, comment],
<del> method: :delete,
<del> data: { confirm: "Are you sure?" } %>
<add> method: :delete,
<add> data: { confirm: "Are you sure?" } %>
<ide> </p>
<ide> ```
<ide>
<ide><path>guides/source/i18n.md
<ide> NOTE: The backend lazy-loads these translations when a translation is looked up
<ide> You can change the default locale as well as configure the translations load paths in `config/application.rb` as follows:
<ide>
<ide> ```ruby
<del> config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
<del> config.i18n.default_locale = :de
<add>config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
<add>config.i18n.default_locale = :de
<ide> ```
<ide>
<ide> The load path must be specified before any translations are looked up. To change the default locale from an initializer instead of `config/application.rb`:
<ide> This way, you can separate model and model attribute names from text inside view
<ide> NOTE: The default locale loading mechanism in Rails does not load locale files in nested dictionaries, like we have here. So, for this to work, we must explicitly tell Rails to look further:
<ide>
<ide> ```ruby
<del> # config/application.rb
<del> config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
<del>
<add># config/application.rb
<add>config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
<ide> ```
<ide>
<ide> Overview of the I18n API Features
<ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> The Content-Type will now be based on the given block rather than the request's
<ide> Example:
<ide>
<ide> ```ruby
<del> def my_action
<del> respond_to do |format|
<del> format.any { render(json: { foo: 'bar' }) }
<del> end
<add>def my_action
<add> respond_to do |format|
<add> format.any { render(json: { foo: 'bar' }) }
<ide> end
<add>end
<add>```
<ide>
<del> get('my_action.csv')
<add>```ruby
<add>get('my_action.csv')
<ide> ```
<ide>
<ide> Previous behaviour was returning a `text/csv` response's Content-Type which is inaccurate since a JSON response is being rendered.
<ide> If your application relies on the previous incorrect behaviour, you are encourag
<ide> which formats your action accepts, i.e.
<ide>
<ide> ```ruby
<del> format.any(:xml, :json) { render request.format.to_sym => @people }
<add>format.any(:xml, :json) { render request.format.to_sym => @people }
<ide> ```
<ide>
<ide> ### `ActiveSupport::Callbacks#halted_callback_hook` now receive a second argument
<ide> change without a prior deprecation cycle (for performance reasons).
<ide> Example:
<ide>
<ide> ```ruby
<del> class Book < ApplicationRecord
<del> before_save { throw(:abort) }
<del> before_create { throw(:abort) }
<add>class Book < ApplicationRecord
<add> before_save { throw(:abort) }
<add> before_create { throw(:abort) }
<ide>
<del> def halted_callback_hook(filter, callback_name) # => This method now accepts 2 arguments instead of 1
<del> Rails.logger.info("Book couldn't be #{callback_name}d")
<del> end
<add> def halted_callback_hook(filter, callback_name) # => This method now accepts 2 arguments instead of 1
<add> Rails.logger.info("Book couldn't be #{callback_name}d")
<ide> end
<add>end
<ide> ```
<ide>
<ide> ### The `helper` class method in controllers uses `String#constantize` | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.