text:
package org.ovirt.engine.ui.uicommonweb.models.vms;

import java.util.ArrayList;

import org.ovirt.engine.core.common.businessentities.DisplayType;
import org.ovirt.engine.core.common.businessentities.Quota;
import org.ovirt.engine.core.common.businessentities.QuotaEnforcmentTypeEnum;
import org.ovirt.engine.core.common.businessentities.StorageType;
import org.ovirt.engine.core.common.businessentities.VDSGroup;
import org.ovirt.engine.core.common.businessentities.VM;
import org.ovirt.engine.core.common.businessentities.VmTemplate;
import org.ovirt.engine.core.common.businessentities.storage_pool;
import org.ovirt.engine.core.common.queries.GetQuotaByStoragePoolIdQueryParameters;
import org.ovirt.engine.core.common.queries.VdcQueryReturnValue;
import org.ovirt.engine.core.common.queries.VdcQueryType;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.core.compat.KeyValuePairCompat;
import org.ovirt.engine.core.compat.StringHelper;
import org.ovirt.engine.ui.frontend.AsyncQuery;
import org.ovirt.engine.ui.frontend.Frontend;
import org.ovirt.engine.ui.frontend.INewAsyncCallback;
import org.ovirt.engine.ui.uicommonweb.Linq;
import org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider;
import org.ovirt.engine.ui.uicommonweb.models.EntityModel;
import org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel;

@SuppressWarnings("unused")
public class ExistingVmModelBehavior extends IVmModelBehavior
{
    protected VM vm;

    public ExistingVmModelBehavior(VM vm)
    {
        this.vm = vm;
    }

    public VM getVm() {
        return vm;
    }

    public void setVm(VM vm) {
        this.vm = vm;
    }

    @Override
    public void Initialize(SystemTreeItemModel systemTreeSelectedItem)
    {
        super.Initialize(systemTreeSelectedItem);
        AsyncDataProvider.GetDataCenterById(new AsyncQuery(getModel(),
                new INewAsyncCallback() {
                    @Override
                    public void OnSuccess(Object target, Object returnValue) {

                        UnitVmModel model = (UnitVmModel) target;
                        if (returnValue != null)
                        {
                            storage_pool dataCenter = (storage_pool) returnValue;
                            java.util.ArrayList<storage_pool> list =
                                    new java.util.ArrayList<storage_pool>(java.util.Arrays.asList(new storage_pool[] { dataCenter }));
                            model.SetDataCenter(model, list);
                            model.getDataCenter().setIsChangable(false);
                        }
                        else
                        {
                            ExistingVmModelBehavior behavior = (ExistingVmModelBehavior) model.getBehavior();
                            VM currentVm = behavior.vm;
                            VDSGroup tempVar = new VDSGroup();
                            tempVar.setId(currentVm.getvds_group_id());
                            tempVar.setname(currentVm.getvds_group_name());
                            tempVar.setcompatibility_version(currentVm.getvds_group_compatibility_version());
                            tempVar.setstorage_pool_id(currentVm.getstorage_pool_id());
                            VDSGroup cluster = tempVar;
                            model.getCluster()
                                    .setItems(new java.util.ArrayList<VDSGroup>(java.util.Arrays.asList(new VDSGroup[] { cluster })));
                            model.getCluster().setSelectedItem(cluster);
                            behavior.InitTemplate();
                            behavior.InitCdImage();
                        }

                    }
                },
                getModel().getHash()),
                vm.getstorage_pool_id());
    }

    @Override
    public void DataCenter_SelectedItemChanged()
    {
        storage_pool dataCenter = (storage_pool) getModel().getDataCenter().getSelectedItem();

        getModel().setIsHostAvailable(dataCenter.getstorage_pool_type() != StorageType.LOCALFS);

        AsyncDataProvider.GetClusterList(new AsyncQuery(new Object[] { this, getModel() },
                new INewAsyncCallback() {
                    @Override
                    public void OnSuccess(Object target, Object returnValue) {

                        Object[] array = (Object[]) target;
                        ExistingVmModelBehavior behavior = (ExistingVmModelBehavior) array[0];
                        UnitVmModel model = (UnitVmModel) array[1];
                        VM vm = ((ExistingVmModelBehavior) array[0]).vm;
                        java.util.ArrayList<VDSGroup> clusters = (java.util.ArrayList<VDSGroup>) returnValue;
                        model.SetClusters(model, clusters, vm.getvds_group_id().getValue());
                        behavior.InitTemplate();
                        behavior.InitCdImage();

                    }
                }, getModel().getHash()), dataCenter.getId());
        if (dataCenter.getQuotaEnforcementType() != QuotaEnforcmentTypeEnum.DISABLED) {
            getModel().getQuota().setIsAvailable(true);
            GetQuotaByStoragePoolIdQueryParameters params = new GetQuotaByStoragePoolIdQueryParameters();
            params.setStoragePoolId(dataCenter.getId());
            Frontend.RunQuery(VdcQueryType.GetQuotaByStoragePoolId, params
                    , new AsyncQuery(new Object[] { this,
                            getModel() }, new INewAsyncCallback() {

                        @Override
                        public void OnSuccess(Object model, Object returnValue) {
                            Object[] array = (Object[]) model;
                            ExistingVmModelBehavior behavior = (ExistingVmModelBehavior) array[0];
                            UnitVmModel unitVmModel = (UnitVmModel) array[1];
                            VM vm = behavior.vm;
                            ArrayList<Quota> quotaList =
                                    (ArrayList<Quota>) ((VdcQueryReturnValue) returnValue).getReturnValue();
                            unitVmModel.getQuota().setItems(quotaList);
                            if (vm.getStaticData().getQuotaId() != null) {
                                for (Quota quota : quotaList) {
                                    if (quota.getId().equals(quota.getId())) {
                                        unitVmModel.getQuota().setSelectedItem(quota);
                                        break;
                                    }
                                }
                            }
                        }
                    }));
        } else {
            getModel().getQuota().setIsAvailable(false);
        }
    }

    @Override
    public void Template_SelectedItemChanged()
    {
        // This method will be called even if a VM created from Blank template.

        // Update model state according to VM properties.
        getModel().getName().setEntity(vm.getvm_name());
        getModel().getDescription().setEntity(vm.getvm_description());
        getModel().getMemSize().setEntity(vm.getvm_mem_size_mb());
        getModel().getMinAllocatedMemory().setEntity(vm.getMinAllocatedMem());
        getModel().getOSType().setSelectedItem(vm.getvm_os());
        getModel().getDomain().setSelectedItem(vm.getvm_domain());
        getModel().getUsbPolicy().setSelectedItem(vm.getusb_policy());
        getModel().getNumOfMonitors().setSelectedItem(vm.getnum_of_monitors());
        getModel().setBootSequence(vm.getdefault_boot_sequence());
        getModel().getIsHighlyAvailable().setEntity(vm.getauto_startup());

        getModel().getNumOfSockets().setEntity(vm.getnum_of_sockets());
        getModel().getNumOfSockets().setIsChangable(!vm.isStatusUp());

        getModel().getTotalCPUCores().setEntity(vm.getnum_of_cpus());
        getModel().getTotalCPUCores().setIsChangable(!vm.isStatusUp());

        getModel().getIsStateless().setEntity(vm.getis_stateless());
        getModel().getIsStateless().setIsAvailable(vm.getVmPoolId() == null);

        getModel().getKernel_parameters().setEntity(vm.getkernel_params());
        getModel().getKernel_path().setEntity(vm.getkernel_url());
        getModel().getInitrd_path().setEntity(vm.getinitrd_url());

        getModel().getCustomProperties().setEntity(vm.getCustomProperties());

        if (vm.getis_initialized())
        {
            getModel().getTimeZone().setIsChangable(false);
            getModel().getTimeZone()
                    .getChangeProhibitionReasons()
                    .add("Time Zone cannot be change since the Virtual Machine was booted at the first time.");
        }

        getModel().getTimeZone().setSelectedItem(new KeyValuePairCompat<String, String>(vm.gettime_zone(), ""));
        UpdateTimeZone();

        // Update domain list
        UpdateDomain();

        switch (vm.getMigrationSupport())
        {
        case PINNED_TO_HOST:
            getModel().getRunVMOnSpecificHost().setEntity(true);
            break;
        case IMPLICITLY_NON_MIGRATABLE:
            getModel().getDontMigrateVM().setEntity(true);
            break;
        }

        // Storage domain and provisioning are not available for an existing VM.
        getModel().getStorageDomain().setIsChangable(false);
        getModel().getProvisioning().setIsAvailable(false);
        getModel().getProvisioning().setEntity(Guid.Empty.equals(vm.getvmt_guid()));

        // Select display protocol.
        for (Object item : getModel().getDisplayProtocol().getItems())
        {
            EntityModel model = (EntityModel) item;
            DisplayType displayType = (DisplayType) model.getEntity();

            if (displayType == vm.getdefault_display_type())
            {
                getModel().getDisplayProtocol().setSelectedItem(item);
                break;
            }
        }

        InitPriority(vm.getpriority());
    }

    @Override
    public void Cluster_SelectedItemChanged()
    {
        UpdateDefaultHost();
        UpdateIsCustomPropertiesAvailable();
        UpdateNumOfSockets();
    }

    @Override
    protected void ChangeDefualtHost()
    {
        super.ChangeDefualtHost();

        if (vm.getdedicated_vm_for_vds() != null)
        {
            Guid vdsId = vm.getdedicated_vm_for_vds().getValue();
            if (getModel().getDefaultHost().getItems() != null)
            {
                getModel().getDefaultHost().setSelectedItem(Linq.FirstOrDefault(getModel().getDefaultHost().getItems(),
                        new Linq.HostPredicate(vdsId)));
            }
            getModel().getIsAutoAssign().setEntity(false);
        }
        else
        {
            getModel().getIsAutoAssign().setEntity(true);
        }
    }

    @Override
    public void DefaultHost_SelectedItemChanged()
    {
        UpdateCdImage();
    }

    @Override
    public void Provisioning_SelectedItemChanged()
    {
    }

    @Override
    public void UpdateMinAllocatedMemory()
    {
        VDSGroup cluster = (VDSGroup) getModel().getCluster().getSelectedItem();

        if (cluster == null)
        {
            return;
        }

        if ((Integer) getModel().getMemSize().getEntity() < vm.getvm_mem_size_mb())
        {
            double overCommitFactor = 100.0 / cluster.getmax_vds_memory_over_commit();
            getModel().getMinAllocatedMemory()
                    .setEntity((int) ((Integer) getModel().getMemSize().getEntity() * overCommitFactor));
        }
        else
        {
            getModel().getMinAllocatedMemory().setEntity(vm.getMinAllocatedMem());
        }
    }

    public void InitTemplate()
    {
        AsyncDataProvider.GetTemplateById(new AsyncQuery(getModel(),
                new INewAsyncCallback() {
                    @Override
                    public void OnSuccess(Object target, Object returnValue) {

                        UnitVmModel model = (UnitVmModel) target;
                        VmTemplate template = (VmTemplate) returnValue;
                        model.getTemplate()
                                .setItems(new java.util.ArrayList<VmTemplate>(java.util.Arrays.asList(new VmTemplate[] { template })));
                        model.getTemplate().setSelectedItem(template);
                        model.getTemplate().setIsChangable(false);

                    }
                },
                getModel().getHash()),
                vm.getvmt_guid());
    }

    public void InitCdImage()
    {
        getModel().getCdImage().setSelectedItem(vm.getiso_path());
        getModel().getCdImage().setIsChangable(!StringHelper.isNullOrEmpty(vm.getiso_path()));

        UpdateCdImage();
    }
}


text:
package com.terremark.api;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

/**
 * Catalog alert type created while uploading or exporting a virtual machine.
 *

 * Java class for CatalogAlertTypeEnum.
 *

 * The following schema fragment specifies the expected content contained within this class.
 *

 *
 *

 * <simpleType name="CatalogAlertTypeEnum">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="Info"/>
 *     <enumeration value="Warning"/>
 *     <enumeration value="Error"/>
 *   </restriction>
 * </simpleType>
 *

 */
@XmlType(name = "CatalogAlertTypeEnum")
@XmlEnum
public enum CatalogAlertTypeEnum {
    /** The virtual machine has an informational note. */
    @XmlEnumValue("Info")
    INFO("Info"),
    /**
     * The VM has a non-fatal potential issue. For example, processor count exceeds operating system limits, an issue
     * which can be corrected when importing.
     */
    @XmlEnumValue("Warning")
    WARNING("Warning"),
    /** VM has a fatal issue; for example, disk count exceeds limits. */
    @XmlEnumValue("Error")
    ERROR("Error");

    private final String value;

    CatalogAlertTypeEnum(final String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static CatalogAlertTypeEnum fromValue(final String v) {
        for (final CatalogAlertTypeEnum c : CatalogAlertTypeEnum.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Vinala\Kernel\Atomium\Compiler;

class AtomiumCompileCSS
{
    /**
     * run the compiler.
     *
     * @var string
     */
    public static function run($script)
    {
        return AtomiumCompileInstructions::run($script, '@css', ';', '<?php Assets::css', '; ?>');
    }
}


text:
/**
 * Created by Yang on 16/11/16.
 */
import styled from 'styled-components';
import UGLoginPanel from '../BootStrap/UGLoginPanel';
import UGFlatBorder from '../BootStrap/UGFlatBorder';

const RegisterPanel = styled(UGLoginPanel)`
  ${UGFlatBorder}
`;

export default RegisterPanel;


text:
import * as _ from "lodash";
import {IResponse, Response} from '@elium/mighty-js';

export interface IHttpResponse extends IResponse {
  status?: number
}

export class HttpResponse extends Response implements IHttpResponse {
  status: number;

  constructor(config?: IHttpResponse) {
    super(config);
    this.status = _.get(config, "status", 0);
  }
}


text:
namespace Chloe.Server.Dtos
{
    public class AuthorAddOrUpdateRequestDto: AuthorDto
    {
    }
}


text:
class CreateAccounts < ActiveRecord::Migration
  def change

    create_table "accounts", force: true do |t|
      t.string   "name"
      t.string   "domain"
      t.string   "lti_key"
      t.string   "lti_secret"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.string   "canvas_api_key"
      t.string   "canvas_uri",     limit: 2048
      t.string   "code"
    end

    add_index "accounts", ["code"], name: "index_accounts_on_code", using: :btree
    add_index "accounts", ["domain"], name: "index_accounts_on_domain", unique: true, using: :btree

    create_table "external_identifiers", force: true do |t|
      t.integer  "user_id"
      t.string   "identifier"
      t.string   "provider"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.string   "custom_canvas_user_id"
    end

    add_index "external_identifiers", ["identifier", "provider"], name: "index_external_identifiers_on_identifier_and_provider", using: :btree
    add_index "external_identifiers", ["user_id"], name: "index_external_identifiers_on_user_id", using: :btree

  end
end


text:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<link rel="stylesheet" type="text/css" href="workflow_visio.css"/>
<title>workflow</title>

<object width="100%" height="100%" id="SVGViewer1" data="workflow_svg_7.svg" type="image/svg+xml" VIEWASTEXT>

<MAP NAME="visImageMap">
  <AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE=""  target="_top" COORDS="589,559,621,559,621,521,589,521,589,559" onmouseover="UpdateTooltip(this,6,396,event)" onfocus="UpdateTooltip(this,6,396,event)" onclick="return OnShapeClick(6,396,event);" onkeyup="OnShapeKey(6,396,event);">
  <AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE=""  target="_top" COORDS="610,463,642,463,642,424,610,424,610,463" onmouseover="UpdateTooltip(this,6,382,event)" onfocus="UpdateTooltip(this,6,382,event)" onclick="return OnShapeClick(6,382,event);" onkeyup="OnShapeKey(6,382,event);">
  <AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE=""  target="_top" COORDS="579,450,619,450,619,401,579,401,579,450" onmouseover="UpdateTooltip(this,6,370,event)" onfocus="UpdateTooltip(this,6,370,event)" onclick="return OnShapeClick(6,370,event);" onkeyup="OnShapeKey(6,370,event);">
  <AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE=""  target="_top" COORDS="477,737,509,737,509,698,477,698,477,737" onmouseover="UpdateTooltip(this,6,350,event)" onfocus="UpdateTooltip(this,6,350,event)" onclick="return OnShapeClick(6,350,event);" onkeyup="OnShapeKey(6,350,event);">
  <AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE=""  target="_top" COORDS="446,724,487,724,487,675,446,675,446,724" onmouseover="UpdateTooltip(this,6,338,event)" onfocus="UpdateTooltip(this,6,338,event)" onclick="return OnShapeClick(6,338,event);" onkeyup="OnShapeKey(6,338,event);">
  <AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE=""  target="_top" COORDS="131,275,169,275,169,229,131,229,131,275" onmouseover="UpdateTooltip(this,6,324,event)" onfocus="UpdateTooltip(this,6,324,event)" onclick="return OnShapeClick(6,324,event);" onkeyup="OnShapeKey(6,324,event);">
  <AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE=""  target="_top" COORDS="306,358,340,358,340,318,306,318,306,358" onmouseover="UpdateTooltip(this,6,306,event)" onfocus="UpdateTooltip(this,6,306,event)" onclick="return OnShapeClick(6,306,event);" onkeyup="OnShapeKey(6,306,event);">
  <AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE=""  target="_top" COORDS="306,280,342,280,342,238,306,238,306,280" onmouseover="UpdateTooltip(this,6,293,event)" onfocus="UpdateTooltip(this,6,293,event)" onclick="return OnShapeClick(6,293,event);" onkeyup="OnShapeKey(6,293,event);">
</MAP>

</object>


text:
using System.Threading;
using System.Threading.Tasks;

namespace Foundatio.AsyncEx
{
    /// <summary>
    /// Provides completed task constants.
    /// </summary>
    public static class TaskConstants
    {
        private static readonly Task<bool> booleanTrue = Task.FromResult(true);
        private static readonly Task<int> intNegativeOne = Task.FromResult(-1);

        /// <summary>
        /// A task that has been completed with the value <c>true</c>.
        /// </summary>
        public static Task<bool> BooleanTrue
        {
            get
            {
                return booleanTrue;
            }
        }

        /// <summary>
        /// A task that has been completed with the value <c>false</c>.
        /// </summary>
        public static Task<bool> BooleanFalse
        {
            get
            {
                return TaskConstants<bool>.Default;
            }
        }

        /// <summary>
        /// A task that has been completed with the value <c>0</c>.
        /// </summary>
        public static Task<int> Int32Zero
        {
            get
            {
                return TaskConstants<int>.Default;
            }
        }

        /// <summary>
        /// A task that has been completed with the value <c>-1</c>.
        /// </summary>
        public static Task<int> Int32NegativeOne
        {
            get
            {
                return intNegativeOne;
            }
        }

        /// <summary>
        /// A <see cref="Task"/> that has been completed.
        /// </summary>
        public static Task Completed
        {
            get
            {
                return Task.CompletedTask;
            }
        }

        /// <summary>
        /// A task that has been canceled.
        /// </summary>
        public static Task Canceled
        {
            get
            {
                return TaskConstants<object>.Canceled;
            }
        }
    }

    /// <summary>
    /// Provides completed task constants.
    /// </summary>
    /// <typeparam name="T">The type of the task result.</typeparam>
    public static class TaskConstants<T>
    {
        private static readonly Task<T> defaultValue = Task.FromResult(default(T));
        private static readonly Task<T> canceled = Task.FromCanceled<T>(new CancellationToken(true));

        /// <summary>
        /// A task that has been completed with the default value of <typeparamref name="T"/>.
        /// </summary>
        public static Task<T> Default
        {
            get
            {
                return defaultValue;
            }
        }

        /// <summary>
        /// A task that has been canceled.
        /// </summary>
        public static Task<T> Canceled
        {
            get
            {
                return canceled;
            }
        }
    }
}


text:
/**
 * @file notific8.js
 * @author Will Steinmetz
 */

if (!window.WS) {
    window.WS = {};
}

if (!WS.hasOwnProperty('jQuery')) {
    WS.jQuery = {};
}

WS.jQuery.notific8 = {
    init: function () {
        $('button#notific8Test').click(function (event) {
            var settings = {
                    theme: $('select#notific8Theme').val(),
                    sticky: $('input#notific8Sticky').is(':checked'),
                    horizontalEdge: $('select#notific8horizontal').val(),
                    verticalEdge: $('select#notific8vertical').val()
                },
                $button = $(this);

            if ($.trim($('input#notific8Heading').val()) != '') {
                settings.heading = $.trim($('input#notific8Heading').val());
            }

            if (!settings.sticky) {
                settings.life = $('select#notific8Life').val();
            }

            $.notific8($.trim($('input#notific8Text').val()), settings);

            $button.attr('disabled', 'disabled');

            setTimeout(function () {
                $button.removeAttr('disabled');
            }, 1000);
        });
    }
};

$(function () {
    WS.jQuery.notific8.init();
});


text:
.class Landroid/accounts/AbstractAccountAuthenticator$Transport;
.super Landroid/accounts/IAccountAuthenticator$Stub;
.source "AbstractAccountAuthenticator.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/accounts/AbstractAccountAuthenticator;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "Transport"
.end annotation

# instance fields
.field final synthetic this$0:Landroid/accounts/AbstractAccountAuthenticator;

# direct methods
.method private constructor <init>(Landroid/accounts/AbstractAccountAuthenticator;)V
    .registers 2
    .param p1, "this$0"    # Landroid/accounts/AbstractAccountAuthenticator;

    .prologue
    .line 125
    iput-object p1, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-direct {p0}, Landroid/accounts/IAccountAuthenticator$Stub;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/AbstractAccountAuthenticator$Transport;)V
    .registers 3
    .param p1, "this$0"    # Landroid/accounts/AbstractAccountAuthenticator;

    .prologue
    invoke-direct {p0, p1}, Landroid/accounts/AbstractAccountAuthenticator$Transport;-><init>(Landroid/accounts/AbstractAccountAuthenticator;)V

    return-void
.end method

# virtual methods
.method public addAccount(Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;)V
    .registers 14
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "accountType"    # Ljava/lang/String;
    .param p3, "authTokenType"    # Ljava/lang/String;
    .param p4, "features"    # [Ljava/lang/String;
    .param p5, "options"    # Landroid/os/Bundle;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    const/4 v1, 0x2

    .line 130
    const-string/jumbo v0, "AccountAuthenticator"

    invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_3f

    .line 131
    const-string/jumbo v1, "AccountAuthenticator"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "addAccount: accountType "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 132
    const-string/jumbo v2, ", authTokenType "

    .line 131
    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 133
    const-string/jumbo v2, ", features "

    .line 131
    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    .line 133
    if-nez p4, :cond_86

    const-string/jumbo v0, "[]"

    .line 131
    :goto_34
    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 135
    :cond_3f
    iget-object v0, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 137
    :try_start_44
    iget-object v0, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 138
    new-instance v1, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v1, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move-object v5, p5

    .line 137
    invoke-virtual/range {v0 .. v5}, Landroid/accounts/AbstractAccountAuthenticator;->addAccount(Landroid/accounts/AccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v7

    .line 140
    .local v7, "result":Landroid/os/Bundle;
    const-string/jumbo v0, "AccountAuthenticator"

    const/4 v1, 0x2

    invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_80

    .line 141
    if-eqz v7, :cond_62

    .line 142
    invoke-virtual {v7}, Landroid/os/Bundle;->keySet()Ljava/util/Set;

    .line 144
    :cond_62
    const-string/jumbo v0, "AccountAuthenticator"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "addAccount: result "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-static {v7}, Landroid/accounts/AccountManager;->sanitizeResult(Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 146
    :cond_80
    if-eqz v7, :cond_85

    .line 147
    invoke-interface {p1, v7}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_85
    .catch Ljava/lang/Exception; {:try_start_44 .. :try_end_85} :catch_8b

    .line 129
    .end local v7    # "result":Landroid/os/Bundle;
    :cond_85
    :goto_85
    return-void

    .line 133
    :cond_86
    invoke-static {p4}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_34

    .line 149
    :catch_8b
    move-exception v6

    .line 150
    .local v6, "e":Ljava/lang/Exception;
    iget-object v0, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v1, "addAccount"

    invoke-static {v0, p1, v1, p2, v6}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_85
.end method

.method public addAccountFromCredentials(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;Landroid/os/Bundle;)V
    .registers 9
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "account"    # Landroid/accounts/Account;
    .param p3, "accountCredentials"    # Landroid/os/Bundle;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 326
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 329
    :try_start_5
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 330
    new-instance v3, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v3, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    .line 329
    invoke-virtual {v2, v3, p2, p3}, Landroid/accounts/AbstractAccountAuthenticator;->addAccountFromCredentials(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v1

    .line 332
    .local v1, "result":Landroid/os/Bundle;
    if-eqz v1, :cond_15

    .line 333
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_15} :catch_16

    .line 325
    .end local v1    # "result":Landroid/os/Bundle;
    :cond_15
    :goto_15
    return-void

    .line 335
    :catch_16
    move-exception v0

    .line 336
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "addAccountFromCredentials"

    invoke-virtual {p2}, Landroid/accounts/Account;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, p1, v3, v4, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_15
.end method

.method public confirmCredentials(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;Landroid/os/Bundle;)V
    .registers 9
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "account"    # Landroid/accounts/Account;
    .param p3, "options"    # Landroid/os/Bundle;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    const/4 v3, 0x2

    .line 157
    const-string/jumbo v2, "AccountAuthenticator"

    invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_24

    .line 158
    const-string/jumbo v2, "AccountAuthenticator"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "confirmCredentials: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 160
    :cond_24
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 162
    :try_start_29
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 163
    new-instance v3, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v3, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    .line 162
    invoke-virtual {v2, v3, p2, p3}, Landroid/accounts/AbstractAccountAuthenticator;->confirmCredentials(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v1

    .line 164
    .local v1, "result":Landroid/os/Bundle;
    const-string/jumbo v2, "AccountAuthenticator"

    const/4 v3, 0x2

    invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_61

    .line 165
    if-eqz v1, :cond_43

    .line 166
    invoke-virtual {v1}, Landroid/os/Bundle;->keySet()Ljava/util/Set;

    .line 168
    :cond_43
    const-string/jumbo v2, "AccountAuthenticator"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "confirmCredentials: result "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 169
    invoke-static {v1}, Landroid/accounts/AccountManager;->sanitizeResult(Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v4

    .line 168
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 171
    :cond_61
    if-eqz v1, :cond_66

    .line 172
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_66
    .catch Ljava/lang/Exception; {:try_start_29 .. :try_end_66} :catch_67

    .line 156
    .end local v1    # "result":Landroid/os/Bundle;
    :cond_66
    :goto_66
    return-void

    .line 174
    :catch_67
    move-exception v0

    .line 175
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "confirmCredentials"

    invoke-virtual {p2}, Landroid/accounts/Account;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, p1, v3, v4, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_66
.end method

.method public editProperties(Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;)V
    .registers 7
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "accountType"    # Ljava/lang/String;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 264
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 266
    :try_start_5
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 267
    new-instance v3, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v3, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    .line 266
    invoke-virtual {v2, v3, p2}, Landroid/accounts/AbstractAccountAuthenticator;->editProperties(Landroid/accounts/AccountAuthenticatorResponse;Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v1

    .line 268
    .local v1, "result":Landroid/os/Bundle;
    if-eqz v1, :cond_15

    .line 269
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_15} :catch_16

    .line 263
    .end local v1    # "result":Landroid/os/Bundle;
    :cond_15
    :goto_15
    return-void

    .line 271
    :catch_16
    move-exception v0

    .line 272
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "editProperties"

    invoke-static {v2, p1, v3, p2, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_15
.end method

.method public getAccountCredentialsForCloning(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;)V
    .registers 8
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "account"    # Landroid/accounts/Account;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 309
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 312
    :try_start_5
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 313
    new-instance v3, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v3, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    .line 312
    invoke-virtual {v2, v3, p2}, Landroid/accounts/AbstractAccountAuthenticator;->getAccountCredentialsForCloning(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;)Landroid/os/Bundle;

    move-result-object v1

    .line 314
    .local v1, "result":Landroid/os/Bundle;
    if-eqz v1, :cond_15

    .line 315
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_15} :catch_16

    .line 308
    .end local v1    # "result":Landroid/os/Bundle;
    :cond_15
    :goto_15
    return-void

    .line 317
    :catch_16
    move-exception v0

    .line 318
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "getAccountCredentialsForCloning"

    invoke-virtual {p2}, Landroid/accounts/Account;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, p1, v3, v4, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_15
.end method

.method public getAccountRemovalAllowed(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;)V
    .registers 8
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "account"    # Landroid/accounts/Account;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 294
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 296
    :try_start_5
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 297
    new-instance v3, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v3, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    .line 296
    invoke-virtual {v2, v3, p2}, Landroid/accounts/AbstractAccountAuthenticator;->getAccountRemovalAllowed(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;)Landroid/os/Bundle;

    move-result-object v1

    .line 298
    .local v1, "result":Landroid/os/Bundle;
    if-eqz v1, :cond_15

    .line 299
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_15} :catch_16

    .line 293
    .end local v1    # "result":Landroid/os/Bundle;
    :cond_15
    :goto_15
    return-void

    .line 301
    :catch_16
    move-exception v0

    .line 302
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "getAccountRemovalAllowed"

    invoke-virtual {p2}, Landroid/accounts/Account;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, p1, v3, v4, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_15
.end method

.method public getAuthToken(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V
    .registers 11
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "account"    # Landroid/accounts/Account;
    .param p3, "authTokenType"    # Ljava/lang/String;
    .param p4, "loginOptions"    # Landroid/os/Bundle;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    const/4 v3, 0x2

    .line 208
    const-string/jumbo v2, "AccountAuthenticator"

    invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_2f

    .line 209
    const-string/jumbo v2, "AccountAuthenticator"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "getAuthToken: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 210
    const-string/jumbo v4, ", authTokenType "

    .line 209
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 212
    :cond_2f
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 214
    :try_start_34
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 215
    new-instance v3, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v3, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    .line 214
    invoke-virtual {v2, v3, p2, p3, p4}, Landroid/accounts/AbstractAccountAuthenticator;->getAuthToken(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v1

    .line 217
    .local v1, "result":Landroid/os/Bundle;
    const-string/jumbo v2, "AccountAuthenticator"

    const/4 v3, 0x2

    invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_6c

    .line 218
    if-eqz v1, :cond_4e

    .line 219
    invoke-virtual {v1}, Landroid/os/Bundle;->keySet()Ljava/util/Set;

    .line 221
    :cond_4e
    const-string/jumbo v2, "AccountAuthenticator"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "getAuthToken: result "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {v1}, Landroid/accounts/AccountManager;->sanitizeResult(Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 223
    :cond_6c
    if-eqz v1, :cond_71

    .line 224
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_71
    .catch Ljava/lang/Exception; {:try_start_34 .. :try_end_71} :catch_72

    .line 207
    .end local v1    # "result":Landroid/os/Bundle;
    :cond_71
    :goto_71
    return-void

    .line 226
    :catch_72
    move-exception v0

    .line 227
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "getAuthToken"

    .line 228
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2}, Landroid/accounts/Account;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 227
    invoke-static {v2, p1, v3, v4, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_71
.end method

.method public getAuthTokenLabel(Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;)V
    .registers 8
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "authTokenType"    # Ljava/lang/String;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    const/4 v3, 0x2

    .line 183
    const-string/jumbo v2, "AccountAuthenticator"

    invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_24

    .line 184
    const-string/jumbo v2, "AccountAuthenticator"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "getAuthTokenLabel: authTokenType "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 186
    :cond_24
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 188
    :try_start_29
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 189
    .local v1, "result":Landroid/os/Bundle;
    const-string/jumbo v2, "authTokenLabelKey"

    .line 190
    iget-object v3, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-virtual {v3, p2}, Landroid/accounts/AbstractAccountAuthenticator;->getAuthTokenLabel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 189
    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 191
    const-string/jumbo v2, "AccountAuthenticator"

    const/4 v3, 0x2

    invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_67

    .line 192
    if-eqz v1, :cond_49

    .line 193
    invoke-virtual {v1}, Landroid/os/Bundle;->keySet()Ljava/util/Set;

    .line 195
    :cond_49
    const-string/jumbo v2, "AccountAuthenticator"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "getAuthTokenLabel: result "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 196
    invoke-static {v1}, Landroid/accounts/AccountManager;->sanitizeResult(Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v4

    .line 195
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 198
    :cond_67
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_6a
    .catch Ljava/lang/Exception; {:try_start_29 .. :try_end_6a} :catch_6b

    .line 182
    .end local v1    # "result":Landroid/os/Bundle;
    :goto_6a
    return-void

    .line 199
    :catch_6b
    move-exception v0

    .line 200
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "getAuthTokenLabel"

    invoke-static {v2, p1, v3, p2, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_6a
.end method

.method public hasFeatures(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;[Ljava/lang/String;)V
    .registers 9
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "account"    # Landroid/accounts/Account;
    .param p3, "features"    # [Ljava/lang/String;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 279
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 281
    :try_start_5
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 282
    new-instance v3, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v3, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    .line 281
    invoke-virtual {v2, v3, p2, p3}, Landroid/accounts/AbstractAccountAuthenticator;->hasFeatures(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;[Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v1

    .line 283
    .local v1, "result":Landroid/os/Bundle;
    if-eqz v1, :cond_15

    .line 284
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_15} :catch_16

    .line 278
    .end local v1    # "result":Landroid/os/Bundle;
    :cond_15
    :goto_15
    return-void

    .line 286
    :catch_16
    move-exception v0

    .line 287
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "hasFeatures"

    invoke-virtual {p2}, Landroid/accounts/Account;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, p1, v3, v4, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_15
.end method

.method public updateCredentials(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V
    .registers 11
    .param p1, "response"    # Landroid/accounts/IAccountAuthenticatorResponse;
    .param p2, "account"    # Landroid/accounts/Account;
    .param p3, "authTokenType"    # Ljava/lang/String;
    .param p4, "loginOptions"    # Landroid/os/Bundle;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    const/4 v3, 0x2

    .line 235
    const-string/jumbo v2, "AccountAuthenticator"

    invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_2f

    .line 236
    const-string/jumbo v2, "AccountAuthenticator"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "updateCredentials: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 237
    const-string/jumbo v4, ", authTokenType "

    .line 236
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 239
    :cond_2f
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    invoke-static {v2}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap0(Landroid/accounts/AbstractAccountAuthenticator;)V

    .line 241
    :try_start_34
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    .line 242
    new-instance v3, Landroid/accounts/AccountAuthenticatorResponse;

    invoke-direct {v3, p1}, Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V

    .line 241
    invoke-virtual {v2, v3, p2, p3, p4}, Landroid/accounts/AbstractAccountAuthenticator;->updateCredentials(Landroid/accounts/AccountAuthenticatorResponse;Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v1

    .line 244
    .local v1, "result":Landroid/os/Bundle;
    const-string/jumbo v2, "AccountAuthenticator"

    const/4 v3, 0x2

    invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v2

    if-eqz v2, :cond_6c

    .line 246
    if-eqz v1, :cond_4e

    .line 247
    invoke-virtual {v1}, Landroid/os/Bundle;->keySet()Ljava/util/Set;

    .line 249
    :cond_4e
    const-string/jumbo v2, "AccountAuthenticator"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "updateCredentials: result "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 250
    invoke-static {v1}, Landroid/accounts/AccountManager;->sanitizeResult(Landroid/os/Bundle;)Landroid/os/Bundle;

    move-result-object v4

    .line 249
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 252
    :cond_6c
    if-eqz v1, :cond_71

    .line 253
    invoke-interface {p1, v1}, Landroid/accounts/IAccountAuthenticatorResponse;->onResult(Landroid/os/Bundle;)V
    :try_end_71
    .catch Ljava/lang/Exception; {:try_start_34 .. :try_end_71} :catch_72

    .line 234
    .end local v1    # "result":Landroid/os/Bundle;
    :cond_71
    :goto_71
    return-void

    .line 255
    :catch_72
    move-exception v0

    .line 256
    .local v0, "e":Ljava/lang/Exception;
    iget-object v2, p0, Landroid/accounts/AbstractAccountAuthenticator$Transport;->this$0:Landroid/accounts/AbstractAccountAuthenticator;

    const-string/jumbo v3, "updateCredentials"

    .line 257
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2}, Landroid/accounts/Account;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 256
    invoke-static {v2, p1, v3, v4, v0}, Landroid/accounts/AbstractAccountAuthenticator;->-wrap1(Landroid/accounts/AbstractAccountAuthenticator;Landroid/accounts/IAccountAuthenticatorResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_71
.end method


text: from editorconfig_plugin.gedit2 import *


text:
"""Example using TF Lite to detect objects in a given image."""

import argparse
import time

from PIL import Image
from PIL import ImageDraw

import detect
import tflite_runtime.interpreter as tflite
import platform

EDGETPU_SHARED_LIB = {
  'Linux': 'libedgetpu.so.1',
  'Darwin': 'libedgetpu.1.dylib',
  'Windows': 'edgetpu.dll'
}[platform.system()]

def load_labels(path, encoding='utf-8'):
  """Loads labels from file (with or without index numbers).

  Args:
    path: path to label file.
    encoding: label file encoding.
  Returns:
    Dictionary mapping indices to labels.
  """
  with open(path, 'r', encoding=encoding) as f:
    lines = f.readlines()
    if not lines:
      return {}

    if lines[0].split(' ', maxsplit=1)[0].isdigit():
      pairs = [line.split(' ', maxsplit=1) for line in lines]
      return {int(index): label.strip() for index, label in pairs}
    else:
      return {index: line.strip() for index, line in enumerate(lines)}

def make_interpreter(model_file):
  model_file, *device = model_file.split('@')
  return tflite.Interpreter(
      model_path=model_file,
      experimental_delegates=[
          tflite.load_delegate(EDGETPU_SHARED_LIB,
                               {'device': device[0]} if device else {})
      ])

def draw_objects(draw, objs, labels):
  """Draws the bounding box and label for each object."""
  for obj in objs:
    bbox = obj.bbox
    draw.rectangle([(bbox.xmin, bbox.ymin), (bbox.xmax, bbox.ymax)],
                   outline='red')
    draw.text((bbox.xmin + 10, bbox.ymin + 10),
              '%s\n%.2f' % (labels.get(obj.id, obj.id), obj.score),
              fill='red')

def main():
  parser = argparse.ArgumentParser(
      formatter_class=argparse.ArgumentDefaultsHelpFormatter)
  parser.add_argument('-m', '--model', required=True,
                      help='File path of .tflite file.')
  parser.add_argument('-i', '--input', required=True,
                      help='File path of image to process.')
  parser.add_argument('-l', '--labels',
                      help='File path of labels file.')
  parser.add_argument('-t', '--threshold', type=float, default=0.4,
                      help='Score threshold for detected objects.')
  parser.add_argument('-o', '--output',
                      help='File path for the result image with annotations')
  parser.add_argument('-c', '--count', type=int, default=5,
                      help='Number of times to run inference')
  args = parser.parse_args()

  labels = load_labels(args.labels) if args.labels else {}
  interpreter = make_interpreter(args.model)
  interpreter.allocate_tensors()

  image = Image.open(args.input)
  scale = detect.set_input(interpreter, image.size,
                           lambda size: image.resize(size, Image.ANTIALIAS))

  print('----INFERENCE TIME----')
  print('Note: The first inference is slow because it includes',
        'loading the model into Edge TPU memory.')
  for _ in range(args.count):
    start = time.perf_counter()
    interpreter.invoke()
    inference_time = time.perf_counter() - start
    objs = detect.get_output(interpreter, args.threshold, scale)
    print('%.2f ms' % (inference_time * 1000))

  print('-------RESULTS--------')
  if not objs:
    print('No objects detected')

  for obj in objs:
    print(labels.get(obj.id, obj.id))
    print('  id:    ', obj.id)
    print('  score: ', obj.score)
    print('  bbox:  ', obj.bbox)

  if args.output:
    image = image.convert('RGB')
    draw_objects(ImageDraw.Draw(image), objs, labels)
    image.save(args.output)
    image.show()

if __name__ == '__main__':
  main()


text:
#include <sedml/SedReport.h>
#include <sbml/xml/XMLInputStream.h>

using namespace std;

LIBSEDML_CPP_NAMESPACE_BEGIN

#ifdef __cplusplus

/*
 * Creates a new SedReport using the given SED-ML Level and @ p version values.
 */
SedReport::SedReport(unsigned int level, unsigned int version)
  : SedOutput(level, version)
  , mDataSets (level, version)
{
  setSedNamespacesAndOwn(new SedNamespaces(level, version));
  connectToChild();
}

/*
 * Creates a new SedReport using the given SedNamespaces object @p sedmlns.
 */
SedReport::SedReport(SedNamespaces *sedmlns)
  : SedOutput(sedmlns)
  , mDataSets (sedmlns)
{
  setElementNamespace(sedmlns->getURI());
  connectToChild();
}

/*
 * Copy constructor for SedReport.
 */
SedReport::SedReport(const SedReport& orig)
  : SedOutput( orig )
  , mDataSets ( orig.mDataSets )
{
  connectToChild();
}

/*
 * Assignment operator for SedReport.
 */
SedReport&
SedReport::operator=(const SedReport& rhs)
{
  if (&rhs != this)
  {
    SedOutput::operator=(rhs);
    mDataSets = rhs.mDataSets;
    connectToChild();
  }

  return *this;
}

/*
 * Creates and returns a deep copy of this SedReport object.
 */
SedReport*
SedReport::clone() const
{
  return new SedReport(*this);
}

/*
 * Destructor for SedReport.
 */
SedReport::~SedReport()
{
}

/*
 * Returns the SedListOfDataSets from this SedReport.
 */
const SedListOfDataSets*
SedReport::getListOfDataSets() const
{
  return &mDataSets;
}

/*
 * Returns the SedListOfDataSets from this SedReport.
 */
SedListOfDataSets*
SedReport::getListOfDataSets()
{
  return &mDataSets;
}

/*
 * Get a SedDataSet from the SedReport.
 */
SedDataSet*
SedReport::getDataSet(unsigned int n)
{
  return mDataSets.get(n);
}

/*
 * Get a SedDataSet from the SedReport.
 */
const SedDataSet*
SedReport::getDataSet(unsigned int n) const
{
  return mDataSets.get(n);
}

/*
 * Get a SedDataSet from the SedReport based on its identifier.
 */
SedDataSet*
SedReport::getDataSet(const std::string& sid)
{
  return mDataSets.get(sid);
}

/*
 * Get a SedDataSet from the SedReport based on its identifier.
 */
const SedDataSet*
SedReport::getDataSet(const std::string& sid) const
{
  return mDataSets.get(sid);
}

/*
 * Get a SedDataSet from the SedReport based on the DataReference to which it
 * refers.
 */
const SedDataSet*
SedReport::getDataSetByDataReference(const std::string& sid) const
{
  return mDataSets.getByDataReference(sid);
}

/*
 * Get a SedDataSet from the SedReport based on the DataReference to which it
 * refers.
 */
SedDataSet*
SedReport::getDataSetByDataReference(const std::string& sid)
{
  return mDataSets.getByDataReference(sid);
}

/*
 * Adds a copy of the given SedDataSet to this SedReport.
 */
int
SedReport::addDataSet(const SedDataSet* sds)
{
  if (sds == NULL)
  {
    return LIBSEDML_OPERATION_FAILED;
  }
  else if (sds->hasRequiredAttributes() == false)
  {
    return LIBSEDML_INVALID_OBJECT;
  }
  else if (getLevel() != sds->getLevel())
  {
    return LIBSEDML_LEVEL_MISMATCH;
  }
  else if (getVersion() != sds->getVersion())
  {
    return LIBSEDML_VERSION_MISMATCH;
  }
  else if (matchesRequiredSedNamespacesForAddition(static_cast<const
    SedBase*>(sds)) == false)
  {
    return LIBSEDML_NAMESPACES_MISMATCH;
  }
  else if (sds->isSetId() && (mDataSets.get(sds->getId())) != NULL)
  {
    return LIBSEDML_DUPLICATE_OBJECT_ID;
  }
  else
  {
    return mDataSets.append(sds);
  }
}

/*
 * Get the number of SedDataSet objects in this SedReport.
 */
unsigned int
SedReport::getNumDataSets() const
{
  return mDataSets.size();
}

/*
 * Creates a new SedDataSet object, adds it to this SedReport object and
 * returns the SedDataSet object created.
 */
SedDataSet*
SedReport::createDataSet()
{
  SedDataSet* sds = NULL;

  try
  {
    sds = new SedDataSet(getSedNamespaces());
  }
  catch (...)
  {
  }

  if (sds != NULL)
  {
    mDataSets.appendAndOwn(sds);
  }

  return sds;
}

/*
 * Removes the nth SedDataSet from this SedReport and returns a pointer to it.
 */
SedDataSet*
SedReport::removeDataSet(unsigned int n)
{
  return mDataSets.remove(n);
}

/*
 * Removes the SedDataSet from this SedReport based on its identifier and
 * returns a pointer to it.
 */
SedDataSet*
SedReport::removeDataSet(const std::string& sid)
{
  return mDataSets.remove(sid);
}

/*
 * Returns the XML element name of this SedReport object.
 */
const std::string&
SedReport::getElementName() const
{
  static const string name = "report";
  return name;
}

/*
 * Returns the libSEDML type code for this SedReport object.
 */
int
SedReport::getTypeCode() const
{
  return SEDML_OUTPUT_REPORT;
}

/*
 * Predicate returning @c true if all the required attributes for this
 * SedReport object have been set.
 */
bool
SedReport::hasRequiredAttributes() const
{
  bool allPresent = SedOutput::hasRequiredAttributes();

  return allPresent;
}

/*
 * Predicate returning @c true if all the required elements for this SedReport
 * object have been set.
 */
bool
SedReport::hasRequiredElements() const
{
  bool allPresent = SedOutput::hasRequiredElements();

  return allPresent;
}

/** @cond doxygenLibSEDMLInternal */

/*
 * Write any contained elements
 */
void
SedReport::writeElements(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream&
  stream) const
{
  SedOutput::writeElements(stream);

  if (getNumDataSets() > 0)
  {
    mDataSets.write(stream);
  }
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Accepts the given SedVisitor
 */
bool
SedReport::accept(SedVisitor& v) const
{
  return false;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Sets the parent SedDocument
 */
void
SedReport::setSedDocument(SedDocument* d)
{
  SedOutput::setSedDocument(d);

  mDataSets.setSedDocument(d);
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Connects to child elements
 */
void
SedReport::connectToChild()
{
  SedOutput::connectToChild();

  mDataSets.connectToParent(this);
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Gets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::getAttribute(const std::string& attributeName, bool& value) const
{
  int return_value = SedOutput::getAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Gets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::getAttribute(const std::string& attributeName, int& value) const
{
  int return_value = SedOutput::getAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Gets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::getAttribute(const std::string& attributeName, double& value) const
{
  int return_value = SedOutput::getAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Gets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::getAttribute(const std::string& attributeName,
                        unsigned int& value) const
{
  int return_value = SedOutput::getAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Gets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::getAttribute(const std::string& attributeName,
                        std::string& value) const
{
  int return_value = SedOutput::getAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Predicate returning @c true if this SedReport's attribute "attributeName" is
 * set.
 */
bool
SedReport::isSetAttribute(const std::string& attributeName) const
{
  bool value = SedOutput::isSetAttribute(attributeName);

  return value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Sets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::setAttribute(const std::string& attributeName, bool value)
{
  int return_value = SedOutput::setAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Sets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::setAttribute(const std::string& attributeName, int value)
{
  int return_value = SedOutput::setAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Sets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::setAttribute(const std::string& attributeName, double value)
{
  int return_value = SedOutput::setAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Sets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::setAttribute(const std::string& attributeName, unsigned int value)
{
  int return_value = SedOutput::setAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Sets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::setAttribute(const std::string& attributeName,
                        const std::string& value)
{
  int return_value = SedOutput::setAttribute(attributeName, value);

  return return_value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Unsets the value of the "attributeName" attribute of this SedReport.
 */
int
SedReport::unsetAttribute(const std::string& attributeName)
{
  int value = SedOutput::unsetAttribute(attributeName);

  return value;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Creates and returns an new "elementName" object in this SedReport.
 */
SedBase*
SedReport::createChildObject(const std::string& elementName)
{
  SedOutput* obj = NULL;

  if (elementName == "dataSet")
  {
    return createDataSet();
  }

  return obj;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Adds a new "elementName" object to this SedReport.
 */
int
SedReport::addChildObject(const std::string& elementName,
                          const SedBase* element)
{
  if (elementName == "dataSet" && element->getTypeCode() ==
    SEDML_OUTPUT_DATASET)
  {
    return addDataSet((const SedDataSet*)(element));
  }

  return LIBSBML_OPERATION_FAILED;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Removes and returns the new "elementName" object with the given id in this
 * SedReport.
 */
SedBase*
SedReport::removeChildObject(const std::string& elementName,
                             const std::string& id)
{
  if (elementName == "dataSet")
  {
    return removeDataSet(id);
  }

  return NULL;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Returns the number of "elementName" in this SedReport.
 */
unsigned int
SedReport::getNumObjects(const std::string& elementName)
{
  unsigned int n = 0;

  if (elementName == "dataSet")
  {
    return getNumDataSets();
  }

  return n;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Returns the nth object of "objectName" in this SedReport.
 */
SedBase*
SedReport::getObject(const std::string& elementName, unsigned int index)
{
  SedBase* obj = NULL;

  if (elementName == "dataSet")
  {
    return getDataSet(index);
  }

  return obj;
}

/** @endcond */

/*
 * Returns the first child element that has the given @p id in the model-wide
 * SId namespace, or @c NULL if no such object is found.
 */
SedBase*
SedReport::getElementBySId(const std::string& id)
{
  if (id.empty())
  {
    return NULL;
  }

  SedBase* obj = NULL;

  obj = mDataSets.getElementBySId(id);

  if (obj != NULL)
  {
    return obj;
  }

  return obj;
}

/*
 * Returns a List of all child SedBase objects, including those nested to an
 * arbitrary depth.
 */
List*
SedReport::getAllElements(SedElementFilter* filter)
{
  List* ret = new List();
  List* sublist = NULL;

  SED_ADD_FILTERED_LIST(ret, sublist, mDataSets, filter);

  return ret;
}

/** @cond doxygenLibSEDMLInternal */

/*
 * Creates a new object from the next XMLToken on the XMLInputStream
 */
SedBase*
SedReport::createObject(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLInputStream& stream)
{
  SedBase* obj = SedOutput::createObject(stream);

  const std::string& name = stream.peek().getName();

  if (name == "listOfDataSets")
  {
    if (getErrorLog() && mDataSets.size() != 0)
    {
      getErrorLog()->logError(SedmlReportAllowedElements, getLevel(),
        getVersion(), "", getLine(), getColumn());
    }

    obj = &mDataSets;
  }

  connectToChild();

  return obj;
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Adds the expected attributes for this element
 */
void
SedReport::addExpectedAttributes(LIBSBML_CPP_NAMESPACE_QUALIFIER
  ExpectedAttributes& attributes)
{
  SedOutput::addExpectedAttributes(attributes);
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Reads the expected attributes into the member data variables
 */
void
SedReport::readAttributes(
                          const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes&
                            attributes,
                          const LIBSBML_CPP_NAMESPACE_QUALIFIER
                            ExpectedAttributes& expectedAttributes)
{
  unsigned int level = getLevel();
  unsigned int version = getVersion();
  unsigned int numErrs;
  bool assigned = false;
  SedErrorLog* log = getErrorLog();

  SedOutput::readAttributes(attributes, expectedAttributes);

  if (log)
  {
    numErrs = log->getNumErrors();

    for (int n = numErrs-1; n >= 0; n--)
    {
      if (log->getError(n)->getErrorId() == SedUnknownCoreAttribute)
      {
        const std::string details = log->getError(n)->getMessage();
        log->remove(SedUnknownCoreAttribute);
        log->logError(SedmlOutputAllowedAttributes, level, version, details,
          getLine(), getColumn());
      }
    }
  }
}

/** @endcond */

/** @cond doxygenLibSEDMLInternal */

/*
 * Writes the attributes to the stream
 */
void
SedReport::writeAttributes(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream&
  stream) const
{
  SedOutput::writeAttributes(stream);
}

/** @endcond */

#endif /* __cplusplus */

/*
 * Creates a new SedReport_t using the given SED-ML Level and @ p version
 * values.
 */
LIBSEDML_EXTERN
SedReport_t *
SedReport_create(unsigned int level, unsigned int version)
{
  return new SedReport(level, version);
}

/*
 * Creates and returns a deep copy of this SedReport_t object.
 */
LIBSEDML_EXTERN
SedReport_t*
SedReport_clone(const SedReport_t* sr)
{
  if (sr != NULL)
  {
    return static_cast<SedReport_t*>(sr->clone());
  }
  else
  {
    return NULL;
  }
}

/*
 * Frees this SedReport_t object.
 */
LIBSEDML_EXTERN
void
SedReport_free(SedReport_t* sr)
{
  if (sr != NULL)
  {
    delete sr;
  }
}

/*
 * Returns a ListOf_t * containing SedDataSet_t objects from this SedReport_t.
 */
LIBSEDML_EXTERN
SedListOf_t*
SedReport_getListOfDataSets(SedReport_t* sr)
{
  return (sr != NULL) ? sr->getListOfDataSets() : NULL;
}

/*
 * Get a SedDataSet_t from the SedReport_t.
 */
LIBSEDML_EXTERN
SedDataSet_t*
SedReport_getDataSet(SedReport_t* sr, unsigned int n)
{
  return (sr != NULL) ? sr->getDataSet(n) : NULL;
}

/*
 * Get a SedDataSet_t from the SedReport_t based on its identifier.
 */
LIBSEDML_EXTERN
SedDataSet_t*
SedReport_getDataSetById(SedReport_t* sr, const char *sid)
{
  return (sr != NULL && sid != NULL) ? sr->getDataSet(sid) : NULL;
}

/*
 * Get a SedDataSet_t from the SedReport_t based on the DataReference to which
 * it refers.
 */
LIBSEDML_EXTERN
SedDataSet_t*
SedReport_getDataSetByDataReference(SedReport_t* sr, const char *sid)
{
  return (sr != NULL && sid != NULL) ? sr->getDataSetByDataReference(sid) :
    NULL;
}

/*
 * Adds a copy of the given SedDataSet_t to this SedReport_t.
 */
LIBSEDML_EXTERN
int
SedReport_addDataSet(SedReport_t* sr, const SedDataSet_t* sds)
{
  return (sr != NULL) ? sr->addDataSet(sds) : LIBSEDML_INVALID_OBJECT;
}

/*
 * Get the number of SedDataSet_t objects in this SedReport_t.
 */
LIBSEDML_EXTERN
unsigned int
SedReport_getNumDataSets(SedReport_t* sr)
{
  return (sr != NULL) ? sr->getNumDataSets() : SEDML_INT_MAX;
}

/*
 * Creates a new SedDataSet_t object, adds it to this SedReport_t object and
 * returns the SedDataSet_t object created.
 */
LIBSEDML_EXTERN
SedDataSet_t*
SedReport_createDataSet(SedReport_t* sr)
{
  return (sr != NULL) ? sr->createDataSet() : NULL;
}

/*
 * Removes the nth SedDataSet_t from this SedReport_t and returns a pointer to
 * it.
 */
LIBSEDML_EXTERN
SedDataSet_t*
SedReport_removeDataSet(SedReport_t* sr, unsigned int n)
{
  return (sr != NULL) ? sr->removeDataSet(n) : NULL;
}

/*
 * Removes the SedDataSet_t from this SedReport_t based on its identifier and
 * returns a pointer to it.
 */
LIBSEDML_EXTERN
SedDataSet_t*
SedReport_removeDataSetById(SedReport_t* sr, const char* sid)
{
  return (sr != NULL && sid != NULL) ? sr->removeDataSet(sid) : NULL;
}

/*
 * Predicate returning @c 1 (true) if all the required attributes for this
 * SedReport_t object have been set.
 */
LIBSEDML_EXTERN
int
SedReport_hasRequiredAttributes(const SedReport_t * sr)
{
  return (sr != NULL) ? static_cast<int>(sr->hasRequiredAttributes()) : 0;
}

/*
 * Predicate returning @c 1 (true) if all the required elements for this
 * SedReport_t object have been set.
 */
LIBSEDML_EXTERN
int
SedReport_hasRequiredElements(const SedReport_t * sr)
{
  return (sr != NULL) ? static_cast<int>(sr->hasRequiredElements()) : 0;
}

LIBSEDML_CPP_NAMESPACE_END


text:
@charset "utf-8";

.wadconfig-form{padding:5px 10px;width:780px;}

.wadconfig-wrap{border:1px solid #dddedf;margin-top:15px;padding-top:10px;position:relative;background:#fafafa;width:780px;}
	.wadconfig-legend{position:absolute;top:-15px;left:50px;padding:5px;background:#fafafa;font-weight:700;}
	.wadconfig-box{overflow:hidden;padding:5px;}

	.wadconfig-item1{clear:left;height:24px;margin:0 1px 1px 0;}
		.wadconfig-item1 .wadconfig-label{float:left;height:24px;line-height:24px;width:150px;text-align:right;white-space:nowrap;overflow:hidden;background:#f0f1f1;}
		.wadconfig-item1 .wadconfig-ipts{float:left;padding:3px;height:18px;width:600px;white-space:nowrap;overflow:hidden;}

	.wadconfig-item2{float:left;height:24px;margin:0 1px 1px 0;}
		.wadconfig-item2 .wadconfig-label{float:left;height:24px;line-height:24px;width:150px;text-align:right;white-space:nowrap;overflow:hidden;background:#f0f1f1;}
		.wadconfig-item2 .wadconfig-ipts{float:left;padding:3px;height:18px;width:225px;white-space:nowrap;overflow:hidden;}

	.wadconfig-item3{clear:left;height:24px;margin:0 1px 1px 0;}
		.wadconfig-item3 .wadconfig-label{float:left;height:24px;line-height:24px;width:300px;text-align:right;white-space:nowrap;overflow:hidden;background:#f0f1f1;}
		.wadconfig-item3 .wadconfig-ipts{float:left;padding:3px;height:18px;width:450px;white-space:nowrap;overflow:hidden;}

	.wadconfig-item4{clear:left;margin:0 1px 1px 0;position:relative;border-left:150px solid #F0F1F1;}
		.wadconfig-item4 .wadconfig-label{position:absolute;top:50%;margin-top:-8px;left:-150px;width:150px;text-align:right;white-space:nowrap;}
		.wadconfig-item4 .wadconfig-ipts{padding:3px;min-height:14px;}

	.wadconfig-ipts .select1{width:204px;}
	.wadconfig-ipts .text1{width:200px;}

.wadconfig-btns{padding:10px 0;width:770px;text-align:center;}
	.wadconfig-btns a span{width:50px;}

.config2-item{float:left;margin:0 3px 1px 0;width:295px;}
	.config2-label{float:left;height:28px;line-height:28px;width:98px;text-align:right;white-space:nowrap;overflow:hidden;background:#f0f1f1;padding-right:2px;}
	.config2-ipts{float:left;padding:3px 3px 3px 8px;height:22px;width:184px;white-space:nowrap;overflow:hidden;}
		.config2-ipts .text1{height:18px;line-height:18px;width:180px;}
		.config2-ipts .select1{height:22px;line-height:22px;width:184px;padding:2px;}
		.config2-ipts .checkbox1{margin-top:5px;}
		.config2-ipts div.text1{border:1px solid #DBDADA;padding:2px 1px;overflow:auto;}

		.config2-ipts .pop-2r{height:45px;}
		.config2-ipts .pop-3r{height:74px;}
		.config2-ipts .pop-4r{height:103px;}
		.config2-ipts .pop-5r{height:132px;}
		.config2-ipts .pop-6r{height:161px;}
		.config2-ipts .pop-7r{height:190px;}
		.config2-ipts .pop-8r{height:219px;}
		.config2-ipts .pop-9r{height:248px;}
		.config2-ipts .pop-10r{height:277px;}
		.config2-ipts .pop-11r{height:306px;}
		.config2-ipts .pop-12r{height:335px;}
		.config2-ipts .pop-13r{height:364px;}
		.config2-ipts .pop-14r{height:393px;}
		.config2-ipts .pop-15r{height:422px;}
		.config2-ipts .pop-16r{height:451px;}
		.config2-ipts .pop-17r{height:480px;}
		.config2-ipts .pop-18r{height:509px;}
		.config2-ipts .pop-19r{height:538px;}

		.config2-ipts .pop-2c{width:478px;}
		.config2-ipts .pop-3c{width:776px;}
		.config2-ipts .pop-4c{width:1074px;}
.config2-item-right{float:right;}

.config2-btn{margin:0 4px;}
	.config2-btn span{width:50px;}

.label-block{display:block;vertical-align:middle;white-space:nowrap;}


text:
audio-wave
==========

Distributed Audio over a Localized Device Network

__Requires MongoDb ~2.2__

Sockets

Admin
* -> Connect ()
* -> Select Session (sessionId)
* -> Request Sessions ()
* -> Request Clients ()
* -> Freeze Session ()
* <- List of sessions
* <- Session created
* <- Session empty
* <- List of clients
* <- Client Joined
* <- Client disconnected
* <- Session frozen


text:
'use strict';

import gulp from 'gulp';
import sass from 'gulp-sass';
import eslint from 'gulp-eslint';
import autoprefixer from 'gulp-autoprefixer';
import useref from 'gulp-useref';
import browserSync from 'browser-sync';
import browserify from 'browserify';
import source from 'vinyl-source-stream';
import buffer from 'vinyl-buffer';

browserSync.create();

const scripts = './app/js/**/*.js';
const styles = './app/css/main.scss';
const templates = './app/html';

gulp.task('eslint', () => {
   return gulp.src(scripts)
      .pipe(eslint())
      .pipe(eslint.format());
});

gulp.task('browser-sync', () => {
   return browserSync.init({
      server: './dist',
      open : false
   });
});

gulp.task('html', function () {
   return gulp.src('./app/*.html')
    .pipe(useref())
    .pipe(gulp.dest('dist'));
});

gulp.task('scripts', () => {
   gulp.src('app/sw/*.js')
      .pipe(gulp.dest('dist/sw'));

   return browserify('app/js/boot.js', {debug: true})
            .transform('babelify', {presets: ['es2015']})
            .bundle()
            .pipe(source('js/bundle.js'))
            .pipe(buffer())
            .pipe(gulp.dest('dist'));
});

gulp.task('styles', () => {
   gulp.src('node_modules/materialize-css/font/roboto/*.*')
      .pipe(gulp.dest('dist/font/roboto'));

   gulp.src('node_modules/materialize-css/font/material-design-icons/*.*')
      .pipe(gulp.dest('dist/font/material-design-icons'));

   return gulp.src(styles)
      .pipe(sass())
      .pipe(autoprefixer())
      .pipe(gulp.dest('dist/css'))
      .pipe(browserSync.stream());
});

gulp.task('reload', () => {
   browserSync.reload();
});

gulp.task('watch', () => {
   gulp.watch(styles, ['styles', 'reload']);
	gulp.watch(scripts, ['scripts', 'eslint', 'reload']);
	gulp.watch(templates, ['html']).on('change', browserSync.reload);
});

gulp.task('build', ['scripts', 'styles', 'html']);

gulp.task('default', ['build', 'browser-sync', 'watch']);


text: Hacker Rank's challenges solved in python