text:
import {SupportedIntegration} from "./enumerations/supported_integration";
import IGlobalHandle from "./interfaces/i_global_handle";
import ISupportedIntegrationMetadata from "./interfaces/i_supported_integration_metadata";

// Should be loaded after Turbolinks to register cleanupFunc on 'turbolinks:before-render' event.
export default class Base implements ISupportedIntegrationMetadata {
    public static getInstance(globalHandle?: IGlobalHandle) {
        if (!Base.instance) {
            if (globalHandle != null) {
                Base.instance = new Base(globalHandle as IGlobalHandle);
            } else {
                throw new Error("Front End Framework base not yet initialized");
            }
        }
        return Base.instance;
    }
    private static instance: Base;
    public readonly WINDOWS_UWP_ENVIRONMENT: boolean;
    public readonly TURBOLINKS_AVAILABLE: boolean;
    public readonly SINGLE_PAGE_APPLICATION_SUPPORT: boolean;
    public readonly SUPPORTED_INTEGRATION: SupportedIntegration;
    public pagePreCacheEvent?: string;
    public readyFunc: (() => void)|null;
    public readonly cleanupHooks: (() => void)[];
    public readonly preReadyHooks: (() => void)[];
    public readonly postReadyHooks: (() => void)[];
    public stateToClearOnNavigation: any = {};
    public readonly hooks: {
        // Invoked after document is ready (but before MiniHtmlViewModel.readyFunc)
        pre: (() => void)[],

        // Invoked after document is ready (but after MiniHtmlViewModel.readyFunc)
        post: (() => void)[],

        // Experimental: Only makes sense if used with Turbolinks
        pageCleanup?: (() => void)[]
    };

    private constructor(
        public readonly gHndl: IGlobalHandle
        ) {
            // TODO: Add support for other SPA frameworks here.
            this.WINDOWS_UWP_ENVIRONMENT = (typeof gHndl.Windows !== "undefined") && (gHndl.Windows != null);
            this.TURBOLINKS_AVAILABLE = (typeof gHndl.Turbolinks !== "undefined") && (gHndl.Turbolinks != null);
            this.SINGLE_PAGE_APPLICATION_SUPPORT = this.TURBOLINKS_AVAILABLE;

            let runtimeSupportedIntegration: SupportedIntegration = SupportedIntegration.NoFramework;

            // TODO: Support Turbolinks in Windows UWP Environment
            if (this.WINDOWS_UWP_ENVIRONMENT) {
                runtimeSupportedIntegration = SupportedIntegration.WindowsUWP;
            } else if (this.TURBOLINKS_AVAILABLE) {
                runtimeSupportedIntegration = SupportedIntegration.Turbolinks;
            }
            this.SUPPORTED_INTEGRATION = runtimeSupportedIntegration;

            // TODO: Add support for other SPA frameworks here.
            this.pagePreCacheEvent = this.TURBOLINKS_AVAILABLE ? "turbolinks:before-cache" : undefined;

            // To be set by user (fired when DOM is ready)
            this.readyFunc = null;

            // For users to supply hooks (lambda functions) that they want to fire on each navigation (note
            // that these arrays are not emptied as executed).
            this.cleanupHooks = [];
            this.preReadyHooks = [];
            this.postReadyHooks = [];

            this.hooks = { pre: [], post: [], pageCleanup: [] };
    }

    public attachOnGlobalHandle(name: string = "FrontEndFramework") {
        this.gHndl[name] = this as Base;
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" name="Default" comment="" />
    <ignored path="Sapadent-symfony.iws" />
    <ignored path=".idea/workspace.xml" />
    <file path="/index.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424768292109" ignored="false" />
    <file path="/footer.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1423546934323" ignored="false" />
    <file path="/config.yml" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424423551066" ignored="false" />
    <file path="/header.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1423561677617" ignored="false" />
    <file path="/DefaultController.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425276199393" ignored="false" />
    <file path="/about.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1423549997252" ignored="false" />
    <file path="/routing.yml" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425291836786" ignored="false" />
    <file path="/index.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425277839602" ignored="false" />
    <file path="/specialists.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1423561858363" ignored="false" />
    <file path="/price.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1423562032090" ignored="false" />
    <file path="/contacts.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1423564422226" ignored="false" />
    <file path="/parameters.yml" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1423733115559" ignored="false" />
    <file path="/index.js" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1423737399747" ignored="false" />
    <file path="/style.css" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425289013673" ignored="false" />
    <file path="/AboutClinic.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424168022570" ignored="false" />
    <file path="/About.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425359809457" ignored="false" />
    <file path="/a.dummy" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424768805801" ignored="false" />
    <file path="/show.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424864647809" ignored="false" />
    <file path="/AboutController.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424928476994" ignored="false" />
    <file path="/list.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424864697161" ignored="false" />
    <file path="/AboutRepository.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424428945726" ignored="false" />
    <file path="/projects.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424414030964" ignored="false" />
    <file path="/Model.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424420649967" ignored="false" />
    <file path="/ModelTable.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424422241679" ignored="false" />
    <file path="/About.orm.yml" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424673729852" ignored="false" />
    <file path="/Category.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424928034616" ignored="false" />
    <file path="/AppKernel.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424758863222" ignored="false" />
    <file path="/UserType.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424766469339" ignored="false" />
    <file path="/GroupType.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424766533305" ignored="false" />
    <file path="/OrderType.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424767834322" ignored="false" />
    <file path="/ProductOrderType.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424767910708" ignored="false" />
    <file path="/ProductType.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424767952850" ignored="false" />
    <file path="/ProductOrderController.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1424769231795" ignored="false" />
    <file path="/BackendBundle.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425030613700" ignored="false" />
    <file path="/invest.conf" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425273544997" ignored="false" />
    <file path="/Linux server.css" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425273806202" ignored="false" />
    <file path="/login.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425286539174" ignored="false" />
    <file path="/security.yml" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425291214448" ignored="false" />
    <file path="/SecuredController.php" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425296878878" ignored="false" />
    <file path="/bank.js" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425278339984" ignored="false" />
    <file path="/layout.html.twig" changelist="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" time="1425287299138" ignored="false" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="DaemonCodeAnalyzer">
    <disable_hints />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="Sapadent-symfony" />
  </component>
  <component name="FileEditorManager">
    <leaf />
  </component>
  <component name="FindManager">
    <FindUsagesManager>
      <setting name="OPEN_NEW_TAB" value="false" />
    </FindUsagesManager>
  </component>
  <component name="IdeDocumentHistory">
    <option name="changedFiles">
      <list>
        <option value="$USER_HOME$/AppData/Local/Temp/scp30731/var/www/callmybank.kz/popup/index.php" />
        <option value="$USER_HOME$/AppData/Local/Temp/scp30667/var/www/callmybank.kz/popup/bank.js" />
        <option value="$PROJECT_DIR$/src/BackendBundle/Controller/DefaultController.php" />
        <option value="$PROJECT_DIR$/src/Acme/DemoBundle/Resources/views/Secured/login.html.twig" />
        <option value="$PROJECT_DIR$/src/BackendBundle/Resources/views/layout.html.twig" />
        <option value="$USER_HOME$/AppData/Local/Temp/scp35479/var/www/invest.gov.kz/css/style.css" />
        <option value="$USER_HOME$/AppData/Local/Temp/scp33840/var/www/invest.gov.kz/includes/news.php" />
        <option value="$USER_HOME$/AppData/Local/Temp/scp51505/var/www/invest.gov.kz/cp/includes/comment_list.php" />
        <option value="$PROJECT_DIR$/app/config/security.yml" />
        <option value="$PROJECT_DIR$/src/Acme/DemoBundle/Resources/config/routing.yml" />
        <option value="$PROJECT_DIR$/src/Blogger/BlogBundle/Resources/config/routing.yml" />
        <option value="$PROJECT_DIR$/src/BackendBundle/Resources/views/Secured/login.html.twig" />
        <option value="$PROJECT_DIR$/src/BackendBundle/Resources/config/routing.yml" />
        <option value="$PROJECT_DIR$/src/BackendBundle/Controller/SecuredController.php" />
        <option value="$PROJECT_DIR$/src/FrontendBundle/Entity/About.php" />
        <option value="$PROJECT_DIR$/src/FrontendBundle/Controller/DefaultController.php" />
      </list>
    </option>
  </component>
  <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
  <component name="ProjectFrameBounds">
    <option name="x" value="-8" />
    <option name="y" value="-8" />
    <option name="width" value="1936" />
    <option name="height" value="1056" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectReloadState">
    <option name="STATE" value="0" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents ProjectPane="true" />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes>
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="web" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="FrontendBundle" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="FrontendBundle" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Menu" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="FrontendBundle" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Entity" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="FrontendBundle" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Controller" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Sapadent-symfony" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="app" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="Scope">
        <subPane subId="Tests" />
        <subPane subId="All">
          <PATH>
            <PATH_ELEMENT USER_OBJECT="Root">
              <option name="myItemId" value="" />
              <option name="myItemType" value="" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="options.splitter.main.proportions" value="0.3" />
    <property name="WebServerToolWindowFactoryState" value="true" />
    <property name="options.lastSelected" value="project.propVCSSupport.Mappings" />
    <property name="options.splitter.details.proportions" value="0.2" />
    <property name="options.searchVisible" value="true" />
  </component>
  <component name="PublishConfig" serverName="Sapadent-symfony" serverId="0537dc97-ec47-45d5-9f2c-d0c381184108" autoUpload="true" uploadOnSaveAll="true">
    <servers>
      <server id="0537dc97-ec47-45d5-9f2c-d0c381184108">
        <serverdata>
          <mappings>
            <mapping deploy="/" local="$PROJECT_DIR$" web="/" />
          </mappings>
        </serverdata>
      </server>
      <server id="2cf0dc07-4823-4166-b9ee-7a72bbb74027">
        <serverdata>
          <mappings>
            <mapping local="$PROJECT_DIR$" />
          </mappings>
        </serverdata>
      </server>
      <server id="74b9d230-da60-4ce6-9456-3b1a570f27da">
        <serverdata>
          <mappings>
            <mapping local="$PROJECT_DIR$" />
          </mappings>
        </serverdata>
      </server>
      <server id="8f985500-d10e-41ab-86ce-900c05c40bb1">
        <serverdata>
          <mappings>
            <mapping local="$PROJECT_DIR$" />
          </mappings>
        </serverdata>
      </server>
      <server id="b186cc2a-0f0a-46f2-a878-a16555cf276d">
        <serverdata>
          <mappings>
            <mapping local="$PROJECT_DIR$" />
          </mappings>
        </serverdata>
      </server>
      <server id="bcb705da-19e5-4598-84a0-101427a6293a">
        <serverdata>
          <mappings>
            <mapping local="$PROJECT_DIR$" />
          </mappings>
        </serverdata>
      </server>
      <server id="e7ce61d4-c645-4d90-bf14-2bf897be1a83">
        <serverdata>
          <mappings>
            <mapping local="$PROJECT_DIR$" />
          </mappings>
        </serverdata>
      </server>
    </servers>
  </component>
  <component name="RecentsManager">
    <key name="CopyFile.RECENT_KEYS">
      <recent name="E:\Git projects\Sapadent-symfony\src\BackendBundle\Resources\views\About" />
      <recent name="E:\Git projects\Sapadent-symfony\src\FrontendBundle\Resources\views\Default" />
      <recent name="E:\Git projects\Sapadent-symfony\src\FrontendBundle\Resources\public\fonts" />
      <recent name="E:\Git projects\Sapadent-symfony\src\FrontendBundle\Resources\public\images" />
      <recent name="E:\Git projects\Sapadent-symfony\src\FrontendBundle\Resources\public\js" />
    </key>
    <key name="MoveFile.RECENT_KEYS">
      <recent name="E:\Git projects\Sapadent-symfony\src\BackendBundle\Resources\views\Secured" />
    </key>
  </component>
  <component name="RunManager">
    <configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
      <TestRunner />
      <method />
    </configuration>
    <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
      <method />
    </configuration>
    <configuration default="true" type="PhpUnitRemoteRunConfigurationType" factoryName="PHPUnit on Server" server_id="0537dc97-ec47-45d5-9f2c-d0c381184108" server_name="Sapadent-symfony">
      <method />
    </configuration>
    <list size="0" />
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="7b4b49ed-8a1d-43ee-9e12-ab7c64233a65" name="Default" comment="" />
      <created>1423471922581</created>
      <updated>1423471922581</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
    <editor active="false" />
    <layout>
      <window_info id="File Transfer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.19891892" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.1430096" sideWeight="0.80108106" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.19891892" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32972974" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
    <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
    <option name="CHECK_NEW_TODO" value="true" />
    <option name="myTodoPanelSettings">
      <value>
        <are-packages-shown value="false" />
        <are-modules-shown value="false" />
        <flatten-packages value="false" />
        <is-autoscroll-to-source value="false" />
      </value>
    </option>
    <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
    <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
    <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
    <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
    <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
    <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
    <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
    <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
    <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
    <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
    <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
    <option name="SHORT_DIFF_HORIZONTALLY" value="true" />
    <option name="SHORT_DIFF_EXTRA_LINES" value="2" />
    <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
    <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
    <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
    <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
    <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
    <option name="SHOW_DIRTY_RECURSIVELY" value="false" />
    <option name="LIMIT_HISTORY" value="true" />
    <option name="MAXIMUM_HISTORY_ROWS" value="1000" />
    <option name="UPDATE_FILTER_SCOPE_NAME" />
    <option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
    <option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
    <option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
    <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
    <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
    <option name="LAST_COMMIT_MESSAGE" />
    <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
    <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
    <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
    <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
    <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
    <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
    <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
    <option name="ACTIVE_VCS_NAME" />
    <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
    <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
    <option name="UPDATE_FILTER_BY_SCOPE" value="false" />
    <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
    <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$USER_HOME$/AppData/Local/Temp/scp33840/var/www/invest.gov.kz/includes/news.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="124" column="64" selection-start="3448" selection-end="3448" vertical-scroll-proportion="0.75181425">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$USER_HOME$/AppData/Local/Temp/scp09798/var/www/invest.gov.kz/plugin_modal/data/contact.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="6" column="15" selection-start="124" selection-end="124" vertical-scroll-proportion="0.14804064">
          <folding>
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
            <marker date="1410732587000" expanded="true" signature="-1:-1" placeholder="..." />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$USER_HOME$/AppData/Local/Temp/scp32727/var/www/invest.gov.kz/index.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="209" column="35" selection-start="6747" selection-end="6747" vertical-scroll-proportion="0.35703918">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/Acme/DemoBundle/Controller/DemoController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/Blogger/BlogBundle/Resources/config/routing.yml">
      <provider selected="true" editor-type-id="text-editor">
        <state line="2" column="19" selection-start="101" selection-end="101" vertical-scroll-proportion="0.047552448">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/Acme/DemoBundle/Resources/config/routing.yml">
      <provider selected="true" editor-type-id="text-editor">
        <state line="8" column="6" selection-start="206" selection-end="206" vertical-scroll-proportion="0.19020979">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/BackendBundle/Controller/AboutController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="28" column="8" selection-start="607" selection-end="699" vertical-scroll-proportion="-14.384615">
          <folding>
            <element signature="e#187#244#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/Acme/DemoBundle/Controller/SecuredController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="30" column="5" selection-start="1008" selection-end="1008" vertical-scroll-proportion="-19.615385">
          <folding>
            <element signature="e#46#91#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/BackendBundle/Resources/config/routing.yml">
      <provider selected="true" editor-type-id="text-editor">
        <state line="5" column="27" selection-start="159" selection-end="159" vertical-scroll-proportion="0.0">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/BackendBundle/Resources/views/Secured/login.html.twig">
      <provider selected="true" editor-type-id="text-editor">
        <state line="13" column="63" selection-start="427" selection-end="427" vertical-scroll-proportion="-8.5">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/BackendBundle/Resources/views/layout.html.twig">
      <provider selected="true" editor-type-id="text-editor">
        <state line="19" column="54" selection-start="641" selection-end="641" vertical-scroll-proportion="0.46879536">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/BackendBundle/Controller/SecuredController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="15" column="46" selection-start="390" selection-end="390" vertical-scroll-proportion="0.3091437">
          <folding>
            <element signature="e#7#148#0" expanded="true" />
            <element signature="e#187#244#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/FrontendBundle/Menu/MenuBuilder.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/app/config/security.yml">
      <provider selected="true" editor-type-id="text-editor">
        <state line="38" column="28" selection-start="1628" selection-end="1628" vertical-scroll-proportion="0.5006993">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/FrontendBundle/Entity/About.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/FrontendBundle/Controller/DefaultController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state line="15" column="5" selection-start="302" selection-end="302" vertical-scroll-proportion="0.3701016">
          <folding />
        </state>
      </provider>
    </entry>
  </component>
  <component name="masterDetails">
    <states>
      <state key="ScopeChooserConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
    </states>
  </component>
</project>

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>About on Betty Fabre</title>
    <link>https://betfab.github.io/tags/about/</link>
    <description>Recent content in About on Betty Fabre</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>

	<atom:link href="https://betfab.github.io/tags/about/index.xml" rel="self" type="application/rss+xml" />

    <item>
      <title>About me</title>
      <link>https://betfab.github.io/about/about/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>

      <guid>https://betfab.github.io/about/about/</guid>
      <description>Education  I am a first-year PhD student in IRISA and Orange Labs in Lannion, France.
I hold a double-master degree in Computer Science from ISIMA in Clermont-Ferrand, France and Data Science from HSE  in Moscow, Russia.  My reseach interests include Machine Learning, Deep Learning and Reinforcement Learning particularly applied to Structured Prediction.
   Resume  You can find more details in my resumé : link</description>
    </item>

  </channel>
</rss>


text:
<?php
/**
 * Created by Two Developers - Sven Motz und Jens Averkamp GbR
 * http://www.two-developers.com
 *
 * Author: Jens Averkamp
 */

namespace TwoDevs\ReferrerSpamDetector\Provider;

use Pdp\Uri\Url;

class JsonListProvider implements ProviderInterface
{
    /** @var string */
    protected $file;

    /** @var array */
    protected $loadedDomains = array();

    /**
     * @param string $file
     */
    public function __construct($file)
    {
        if (!is_readable($file)) {
            throw new \RuntimeException(sprintf('Cannot open file "%s"', $file));
        }

        $this->file = $file;
    }

    /**
     * {@inheritdoc}
     */
    public function isSpamReferrer(Url $url)
    {
        $url = $url->toArray();

        if (!isset($url['registerableDomain'], $url['host'], $url['publicSuffix'])) {
            return false;
        }

        if (!count($this->loadedDomains)) {
            $this->loadedDomains = @json_decode(file_get_contents($this->file), true);
            if (!is_array($this->loadedDomains)) {
                $this->loadedDomains = array();
            }
        }

        foreach ($this->loadedDomains as $domain) {
            if (in_array($domain, [$url['registerableDomain'], $url['host'], $url['publicSuffix']])) {
                return true;
            }
        }

        return false;
    }
}


text:
layout: post
title: AGU &middot Exploring the exoplanet catalogue with neural nets
type: talk
---

Over the last months we developped several ways to explore the exoplanet
catalogue using neural networks. In the 'Rise of Machine Learning' session, I
presented part of our work: how low dimensional embedding helped us see
structure in planetary distribution, and a new method to predict planetary mass
with higher accuracy. This is another output from the Planetary Diversity
workshop held at ELSI a year before. Abstract below.

Laneuville, Tasker and Guttenberg.

The launch of Kepler in 2009 brought the number of known exoplanets into the
thousands, in a growth explosion that shows no sign of abating. While the data
available for individual planets is presently typically restricted to orbital
and bulk properties, the quantity of data points allows the potential for
meaningful statistical analysis.

It is not clear how planet mass, radius, orbital path, stellar properties and
neighbouring planets influence one another, therefore it seems inevitable that
patterns will be missed simply due to the difficulty of including so many
dimensions. Even simple trends may be overlooked if they fall outside our
expectation of planet formation; a strong risk in a field where new discoveries
have destroyed theories from the first observations of hot Jupiters.

A possible way forward is to take advantage of the capabilities of neural
network autoencoders. The idea of such algorithms is to learn a representation
(encoding) of the data in a lower dimension space, without a priori knowledge
about links between the elements. This encoding space can then be used to
discover the strongest correlations in the original dataset.

The key point is that trends identified by a neural network are independent of
any previous analysis and pre-conceived ideas about physical processes. Results
can reveal new relationships between planet properties and verify existing
trends.

We applied this concept to study data from the NASA Exoplanet Archive and while
we have begun to explore the potential use of neural networks for exoplanet
data, there are many possible extensions. For example, the network can produce a
large number of 'alternative planets' whose statistics should match the current
distribution. This larger dataset could highlight gaps in the parameter space or
indicate observations are missing particular regimes. This could guide
instrument proposals towards objects liable to yield the most information.


text:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Text;
using SCAPI.Contracts;
using SCAPI.Proxy;
using SCAPI.Utils;

namespace SCAPI.Core
{
	/// <summary>
	///     SCApi main processor
	/// </summary>
	public class SCApi
	{
		/// <summary>
		///     APIs the request.
		/// </summary>
		/// <param name="rt">The <see cref="SCAPI.Utils.UserRequestType" />.</param>
		/// <param name="paramsDictionary">The parameters dictionary if needed, can be null.</param>
		/// <param name="id">The id if needed, can be 0 or null.</param>
		/// <param name="requestType">Type of the request. GET PUT POST or DELETE.</param>
		/// <param name="jsonObject">a JSON object if needed.</param>
		/// <param name="id2">A second id in cases where you need a second ID parameter.</param>
		/// <param name="proxyIp">The proxy ip.</param>
		/// <param name="proxyPort">The proxy port.</param>
		/// <param name="proxyType">Type of the proxy.</param>
		/// <param name="userAgents">The user agent to use in the request.</param>
		/// <returns></returns>
		public static string ApiRequest(UserRequestType rt, Dictionary<string, object> paramsDictionary, object id, RequestType requestType, string jsonObject = "", object id2 = null, string proxyIp = "", int proxyPort = 0, ProxyType proxyType = ProxyType.NO_PROXY, UserAgents userAgents = UserAgents.Windows_NT_6_1_WOW64)
		{
			var url = ProcessUserRequest(rt);
			if (url == null) return "";
			StringBuilder sb;
			if (paramsDictionary != null && paramsDictionary.ContainsKey("client_id") && id2 == null)
				sb = new StringBuilder(string.Format(url, id));
			else if (paramsDictionary != null && paramsDictionary.ContainsKey("client_id") && id2 != null)
				sb = new StringBuilder(string.Format(url, id, id2)).Append("?oauth_token=" + SoundCloudClient.AccessToken);
			else
				sb = new StringBuilder(string.Format(url, id)).Append("?oauth_token=" + SoundCloudClient.AccessToken);

			if (paramsDictionary != null)
			{
				foreach (var o in paramsDictionary)
				{
					if (o.Key == "client_id")
						sb.Append("?" + o.Key + "=" + o.Value);
					else
						sb.Append("&" + o.Key + "=" + o.Value);
				}
			}

			var request = (HttpWebRequest) WebRequest.Create(sb.ToString());
			if (proxyType == ProxyType.SOCKS4)
			{
				var socksProxy = new SocksWebProxy(new ProxyConfig(IPAddress.Parse("127.0.0.1"), 12345, IPAddress.Parse(proxyIp), proxyPort, ProxyConfig.SocksVersion.Four));
				request.Proxy = socksProxy;
			}
			else if (proxyType == ProxyType.SOCKS5)
			{
				var socksProxy = new SocksWebProxy(new ProxyConfig(IPAddress.Parse("127.0.0.1"), 12345, IPAddress.Parse(proxyIp), proxyPort, ProxyConfig.SocksVersion.Five));
				request.Proxy = socksProxy;
			}
			else if (proxyType == ProxyType.HTTP)
			{
				var httpProxy = new WebProxy(proxyIp, proxyPort);
				request.Proxy = httpProxy;
			}
			request.UserAgent = UserAgent.GetAgent(userAgents);
			request.Method = requestType.ToString();
			request.ContentType = "application/json";
			request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip, deflate");

			if (requestType.ToString() == "PUT" && jsonObject != "")
			{
				using (var streamWriter = new StreamWriter(request.GetRequestStream()))
					streamWriter.Write(jsonObject);
			}
			else
				request.ContentLength = 0;

			Debug.WriteLine("API REQUEST: " + sb);

			var response = request.GetResponseNoException();

			if (response == null) return string.Empty;
			try
			{
				response = (HttpWebResponse) request.GetResponse();
			}
			catch (Exception e)
			{
				Debug.WriteLine("");
			}

			var stream = response.GetResponseStream();
			try
			{
				if (response.Headers[HttpResponseHeader.ContentEncoding].Equals("gzip") || response.Headers[HttpResponseHeader.ContentEncoding].Equals("deflate"))
					if (stream != null) stream = new GZipStream(stream, CompressionMode.Decompress);
			}
			catch
			{
				Debug.WriteLine("");
			}
			var json = "";

			if (stream == null) return null;
			using (var reader = new StreamReader(stream))
			{
				try
				{
					json = reader.ReadToEnd();
				}
				catch
				{
					Debug.WriteLine("");
				}
			}
			stream.Close();

			return json;
		}

		public static bool CreateAccount(string email, string password, string proxyIp = "", int proxyPort = 0, ProxyType proxyType = ProxyType.NO_PROXY, UserAgents userAgents = UserAgents.Windows_NT_6_1_WOW64)
		{
			var url = "https://soundcloud.com/connect/signup";
			var sb = new StringBuilder(url);

			var request = (HttpWebRequest) WebRequest.Create(sb.ToString());
			if (proxyType == ProxyType.SOCKS4)
			{
				var socksProxy = new SocksWebProxy(new ProxyConfig(IPAddress.Parse("127.0.0.1"), 12345, IPAddress.Parse(proxyIp), proxyPort, ProxyConfig.SocksVersion.Four));
				request.Proxy = socksProxy;
			}
			else if (proxyType == ProxyType.SOCKS5)
			{
				var socksProxy = new SocksWebProxy(new ProxyConfig(IPAddress.Parse("127.0.0.1"), 12345, IPAddress.Parse(proxyIp), proxyPort, ProxyConfig.SocksVersion.Five));
				request.Proxy = socksProxy;
			}
			else if (proxyType == ProxyType.HTTP)
			{
				var httpProxy = new WebProxy(proxyIp, proxyPort);
				request.Proxy = httpProxy;
			}
			request.UserAgent = UserAgent.GetAgent(userAgents);
			request.Method = "POST";
			request.ContentType = "application/json";
			request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip, deflate");
			request.Headers.Add(HttpRequestHeader.AcceptLanguage, "en-US,en;q=0.8");

			var requestData = @"return_to=https%3A%2F%2Fsoundcloud.com%2Fconnect%2Fsignup_details%3Fclient_id%3D02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea%26display%3Dnext%26redirect_uri%3Dhttps%253A%252F%252Fsoundcloud.com%252Fsoundcloud-callback.html%26response_type%3Dtoken%26scope%3Dnon-expiring%2Bfast-connect%2Bpurchase%2Bupload&signup_denied_url=https%3A%2F%2Fsoundcloud.com%2Fsoundcloud-callback.html%3Ferror%3Dsignup_denied%26error_description%3DSign%2Bup%2Bwas%2Bdenied%2Bfor%2Bthis%2Buser.%23&client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&redirect_uri=https%3A%2F%2Fsoundcloud.com%2Fsoundcloud-callback.html&response_type=token&scope=non-expiring+fast-connect+purchase+upload&display=next&user%5Bemail%5D=";
			requestData += WebUtility.UrlEncode(email) + @"&user%5Bpassword%5D=";
			requestData += WebUtility.UrlEncode(password) + @"&user%5Bpassword_confirmation%5D=" + WebUtility.UrlEncode(password) + "& user%5Bterms_of_use%5D=1";

			using (var streamWriter = new StreamWriter(request.GetRequestStream()))
			{
				streamWriter.Write(requestData);
			}

			Debug.WriteLine("API REQUEST: " + sb);

			var response = request.GetResponseNoException();

			if (response == null) return false;

			try
			{
				response = (HttpWebResponse) request.GetResponse();
			}
			catch (Exception e)
			{
				Debug.WriteLine("");
			}

			var stream = response.GetResponseStream();
			try
			{
				if (response.Headers[HttpResponseHeader.ContentEncoding].Equals("gzip") || response.Headers[HttpResponseHeader.ContentEncoding].Equals("deflate"))
					if (stream != null) stream = new GZipStream(stream, CompressionMode.Decompress);
			}
			catch
			{
				Debug.WriteLine("");
			}
			var json = "";

			if (stream == null) return false;
			using (var reader = new StreamReader(stream))
			{
				try
				{
					json = reader.ReadToEnd();
				}
				catch
				{
					Debug.WriteLine("");
				}
			}
			stream.Close();
			return true;
		}

		public static string ProcessUserRequest(UserRequestType t)
		{
			switch (t)
			{
				case UserRequestType.Connect:
					return "https://api.soundcloud.com/connect";
				case UserRequestType.Authenticate:
					return "https://api.soundcloud.com/oauth2/token";
				case UserRequestType.Me:
					return "https://api.soundcloud.com/me.json";
				case UserRequestType.User:
					return "https://api.soundcloud.com/users/{0}.json";
				case UserRequestType.Users:
					return "https://api.soundcloud.com/users.json";
				case UserRequestType.MyFavorites:
					return "https://api.soundcloud.com/me/favorites.json";
				case UserRequestType.MyStream:
					return "https://api.soundcloud.com/me/activities/tracks/affiliated.json{0}";
				case UserRequestType.MyFollowings:
					return "https://api.soundcloud.com/me/followings.json";
				case UserRequestType.MyFollowing:
					return "https://api.soundcloud.com/me/followings/{0}.json";
				case UserRequestType.CheckFavorite:
					return "https://api.soundcloud.com/me/favorites/{0}";
				case UserRequestType.RemoveFavorite:
					return "https://api.soundcloud.com/me/favorites/{0}";

				case UserRequestType.Followings:
					return "https://api.soundcloud.com/users/{0}/followings.json";
				case UserRequestType.MyFollowers:
					return "https://api.soundcloud.com/me/followers.json";
				case UserRequestType.MyFollower:
					return "https://api.soundcloud.com/me/followers/{0}";
				case UserRequestType.Followers:
					return "https://api.soundcloud.com/users/{0}/followers.json";
				case UserRequestType.MyTracks:
					return "https://api.soundcloud.com/me/tracks.json";
				case UserRequestType.MyPlaylists:
					return "https://api.soundcloud.com/me/playlists.json";
				case UserRequestType.Playlist:
					return "https://api.soundcloud.com/playlists/{0}.json";
				case UserRequestType.UserPlaylists:
					return "https://api.soundcloud.com/users/{0}/playlists.json";
				case UserRequestType.UserTracks:
					return "https://api.soundcloud.com/users/{0}/tracks.json";
				case UserRequestType.Track:
					return "https://api.soundcloud.com/tracks/{0}.json";
				case UserRequestType.Tracks:
					return "https://api.soundcloud.com/tracks.json";
				case UserRequestType.Resolve:
					return "https://api.soundcloud.com/resolve.json";
				case UserRequestType.AddFavorite:
					return "https://api.soundcloud.com/me/favorites/{0}";

				case UserRequestType.AddToPlaylist:
					return "https://api.soundcloud.com/playlists/{0}";
				case UserRequestType.SetUserItem:
					return "https://api.soundcloud.com/me.json{0}";
				case UserRequestType.FollowUser:
					return "https://api.soundcloud.com/me/followings/{0}";
				case UserRequestType.Repost:
					return "https://api.soundcloud.com/e1/me/track_reposts/{0}";
				case UserRequestType.TrackComments:
					return "https://api.soundcloud.com/tracks/{0}/comments.json";
				default:
					return null;
			}
		}
	}
}


text:
export default (sequelize, DataTypes) => {
  const Platform = sequelize.define('Platform', {
    name: DataTypes.STRING
  }, {
    classMethods: {
      associate: models => {
        Platform.belongsToMany(models.Product, {through: 'ProductPlatform'});
      }
    }
  });

  return Platform;
};


text:
<?php namespace FHIR\Resources\Infrastructure\Conformance;

use FHIR\Common\AbstractFHIRObject;
use FHIR\Elements\Primitive\FHIRBase64Binary;
use FHIR\Elements\Simple\FHIRCode;

/**
 * Class FHIRConformanceRestSecurityCertificate
 * @package FHIR\Resources\Infrastructure\Conformance
 */
class FHIRConformanceRestSecurityCertificate extends AbstractFHIRObject
{
    /** @var FHIRCode */
    protected $type = null;

    /** @var FHIRBase64Binary */
    protected $blob = null;

    /**
     * @return FHIRCode
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param FHIRCode $type
     */
    public function setType(FHIRCode $type)
    {
        $this->type = $type;
    }

    /**
     * @return FHIRBase64Binary
     */
    public function getBlob()
    {
        return $this->blob;
    }

    /**
     * @param FHIRBase64Binary $blob
     */
    public function setBlob(FHIRBase64Binary $blob)
    {
        $this->blob = $blob;
    }
}


text:
package org.drools.guvnor.server.builder;

import org.drools.guvnor.client.common.AssetFormats;
import org.drools.lang.dsl.DSLMappingParseException;
import org.drools.lang.dsl.DSLTokenizedMappingFile;
import org.drools.repository.AssetItem;
import org.drools.repository.ModuleItem;
import org.drools.repository.RulesRepositoryException;

import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class DSLLoader {

    public static List<DSLTokenizedMappingFile> loadDSLMappingFiles(ModuleItem packageItem) {
        return loadDSLMappingFiles(packageItem, new BRMSPackageBuilder.DSLErrorEvent() {
            public void recordError(AssetItem asset,
                                    String message) {
                // ignore at this point...
            }
        });
    }

    public static List<DSLTokenizedMappingFile> loadDSLMappingFiles(ModuleItem packageItem,
                                                                    BRMSPackageBuilder.DSLErrorEvent dslErrorEvent) {
        return loadDSLMappingFiles(packageItem.listAssetsWithVersionsSpecifiedByDependenciesByFormat(AssetFormats.DSL), dslErrorEvent);
    }

    static List<DSLTokenizedMappingFile> loadDSLMappingFiles(Iterator<AssetItem> assetItemIterator, BRMSPackageBuilder.DSLErrorEvent dslErrorEvent) {
        List<DSLTokenizedMappingFile> result = new ArrayList<DSLTokenizedMappingFile>();

        while (assetItemIterator.hasNext()) {
            addAsset(dslErrorEvent, result, assetItemIterator.next());
        }

        return result;
    }

    private static void addAsset(BRMSPackageBuilder.DSLErrorEvent dslErrorEvent,
                                 List<DSLTokenizedMappingFile> result,
                                 AssetItem assetItem) {
        if (!assetItem.getDisabled()) {
            DSLTokenizedMappingFile file = new DSLTokenizedMappingFile();
            try {
                if (file.parseAndLoad(new StringReader(assetItem.getContent()))) {
                    result.add(file);
                } else {
                    logErrors(dslErrorEvent, assetItem, file);
                }

            } catch (IOException e) {
                throw new RulesRepositoryException(e);
            }
        }
    }

    private static void logErrors(BRMSPackageBuilder.DSLErrorEvent dslErrorEvent, AssetItem assetItem, DSLTokenizedMappingFile file) {
        for (Object o : file.getErrors()) {

        	if(o instanceof DSLMappingParseException){
	            DSLMappingParseException dslMappingParseException = (DSLMappingParseException) o;
	            dslErrorEvent.recordError(assetItem, "Line " + dslMappingParseException.getLine() + " : " + dslMappingParseException.getMessage());
        	}else if(o instanceof Exception){
        		Exception excp = (Exception)o;
        		dslErrorEvent.recordError(assetItem, "Exception "+ excp.getClass()+" "+ excp.getMessage()+" "+excp.getCause());
        	}else{
        		dslErrorEvent.recordError(assetItem, "Uncategorized error "+o);
        	}
        }
    }
}


text:
//TODO: terminar este programa,
// Generar un conjunto de puntos en una esfera unitaria
// Generar una esfera de vistas
//

#include <iostream>
#include <string>
#include "pmvoctree.h"

using namespace std;

static void show_usage(std::string name)
{
    std::cerr << "This program tests the partial model library \n"
	      << "Usage: " << name.c_str() << " [path_to_project_folder]"
              << std::endl;
}

/*
 * Demo program that test the partial model library.
 * The program sets a free space in the center and integrates a scan. Then several views are evaluated.
 *
 */

int main(int argc, char **argv) {
    std::cout << "CONSEJO NACIONAL DE CIENCIA Y TECNOLOGIA (CONACYT) \n"
	      << " Partial Model Library \n"
	      << " J. Irving Vasquez-Gomez \n"
	      << std::endl;

    if (argc != 2) {
        show_usage(argv[0]);
        return 1;
    }

    std::string config_folder(argv[1]);
    std::string data_folder(config_folder);
    std::cout << "Config folder: " << config_folder.c_str() << std::endl;
    std::cout << "Data folder: " << data_folder.c_str() << std::endl;

    // output file
    std::string octree_file(argv[2]);
    std::cout << "octree_file: " << octree_file.c_str() << std::endl;

    return 0;

    // scan files
    std::string scan_file(data_folder + "scan_1_reg.dat");
    std::string origin_file(data_folder + "scan_origin_1.dat");

    //string file_rays("/home/irving/projects/Reconstructor3D/build/TestPioneerKinect/rays_kinect.dat");
    std::string file_rays(data_folder + "rays_0.dat");

    std::string cviews_file("/home/irving/projects/NBVPlanning_resp/test/test_octree/data/pointed_views.vs");
    //string ev_file("/home/irving/projects/OctreeNBVPlanner/build/TestPioneerKinect_mo/goals.dat");

    //string config_folder("../data_example/test_partialmodel");
    //tring data_folder("../data_example/test_partialmodel");

    std::string evaluated_views("/home/irving/projects/NBVPlanning/test/test_octree/data/evaluated_views_test.dat");

    PMVOctree octree;

    // You need to specify the route to the folder where the configuration file is
    octree.setConfigFolder(config_folder);
    // The routhe to a folder where log can be written
    octree.setDataFolder(data_folder);
    octree.init();
    octree.readRays(file_rays);

    octree.updateWithScan(scan_file, origin_file);

    octree.readCandidateViews(cviews_file);

    octree.evaluateCandidateViews();

    octree.savePartialModel(octree_file);

    return 0;
}


text:
package org.mybatis.dynamic.sql;

import org.mybatis.dynamic.sql.render.TableAliasCalculator;

public abstract class AbstractColumnComparisonCondition<T> implements VisitableCondition<T> {

    protected final BasicColumn column;

    protected AbstractColumnComparisonCondition(BasicColumn column) {
        this.column = column;
    }

    @Override
    public <R> R accept(ConditionVisitor<T, R> visitor) {
        return visitor.visit(this);
    }

    public String renderCondition(String columnName, TableAliasCalculator tableAliasCalculator) {
        return renderCondition(columnName, column.renderWithTableAlias(tableAliasCalculator));
    }

    protected abstract String renderCondition(String leftColumn, String rightColumn);
}


text:
.. EN-Revision: none
.. _requirements:

******************************
Zend Framework Voraussetzungen
******************************

.. _requirements.introduction:

Einführung
----------

Zend Framework benötigt einen *PHP* 5 Interpreter mit einem Web Server der konfiguriert ist *PHP* Skripte korrekt
handzuhaben. Einige Features benötigen zusätzliche Erweiterungen oder Features des Web Servers; in den meisten
Fällen kann der Framewrok ohne diese verwendet werden, was aber zu geringerer Performance führen kann, oder dazu
das bestimmte Features nicht vollständig funktionieren. Ein Beispiel solch einer Abhängigkeit ist mod_rewrite in
einer Apache Umgebung, welches verwendet werden kann um "hübsche *URL*'s" wie
"``http://www.example.com/user/edit``" zu implementieren. Wenn mod_rewrite nicht aktiviert ist, kann Zend Framework
konfiguriert werden um *URL*'s wie "``http://www.example.com?controller=user&action=edit``" zu unterstützen.
Hübsche *URL*'s können verwendet werden um *URL*'s zu verkleinern, für textuelle Darstellung oder die
Optimierung von Suchmaschinen (*SEO*), aber sie beeinflussen die Funktionalität der Anwendung nicht direkt.

.. _requirements.version:

PHP Version
^^^^^^^^^^^

Zend empfiehlt das aktuellste Release von *PHP* wegen kritischer Sicherheits und Performance Verbesserungen, und
unterstützt aktuell *PHP* 5.2.4 oder höher.

Zend Framework hat eine sehr umfangreiche Sammlung von automatisierten Tests, welche mit PHPUnit 3.3.0 oder einer
späteren Version, ausgeführt werden können.

.. _requirements.extensions:

PHP Erweiterungen
^^^^^^^^^^^^^^^^^

Anbei finden Sie eine Tabelle die alle Erweiterungen auflistet die typischerweise in *PHP* gefunden werden können
und wie Sie im Zend Framework verwendet werden. Sie sollten prüfen die Erweiterungen welche die Zend Framework
Komponenten die Sie in Ihrer Anwendung verwenden werden in Ihrer *PHP* Umgebung vorhanden sind. Viele Anwendungen
benötigen nicht jede der Erweiterungen die anbei gelistet sind.

Eine Abhängigkeit des Typs "hard" zeigt das die Komponente oder Klasse nicht richtig funktioniert wenn die
entsprechende Erweiterung nicht vorhanden ist, wärend eine Abhängigkeit des Typs "soft" anzeigt das die
Komponente die Erweiterung verwenden kann wenn Sie vorhanden ist, aber auch ohne Sie korrekt funktionieren wird.
Viele Komponenten verwenden bestimmte Erweiterungen wenn Sie vorhanden sind um die Performance zu optimieren werden
aber Code mit ähnlicher Funktionalität in der Komponente selbst ausführen wenn die Erweiterung nicht vorhanden
ist.

.. include:: requirements.php.extensions.table.rst
.. _requirements.zendcomponents:

Zend Framework Komponenten
^^^^^^^^^^^^^^^^^^^^^^^^^^

Anbei ist eine Tabelle die alle vorhandenen Zend Framework Komponenten auflistet und welche *PHP* Erweiterungen
diese benötigen. Das kann helfen um herauszufinden welche Erweiterung in der eigenen Anwendung benötigt wird.
Nicht alle Erweiterungen welche vom Zend Framework verwendet werden sind für jede Anwendung notwendig.

Eine Abhängigkeit des Typs "hard" zeigt das die Komponente oder Klasse nicht richtig funktioniert wenn die
entsprechende Erweiterung nicht vorhanden ist, wärend eine Abhängigkeit des Typs "soft" anzeigt das die
Komponente die Erweiterung verwenden kann wenn Sie vorhanden ist, aber auch ohne Sie korrekt funktionieren wird.
Viele Komponenten verwenden bestimmte Erweiterungen wenn Sie vorhanden sind um die Performance zu optimieren werden
aber Code mit ähnlicher Funktionalität in der Komponente selbst ausführen wenn die Erweiterung nicht vorhanden
ist.

.. include:: requirements.zendcomponents.table.rst
.. _requirements.dependencies:

Zend Framework Abhängigkeiten
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Anbei kann eine Tabelle gefunden werden in der die Zend Framework Komponenten aufgelistet sind und deren
Abhängigkeit zu anderen Zend Framework Komponenten. Das kann helfen wenn man nur einzelne Komponenten verwenden
will statt den kompletten Zend Framework.

Eine Abhängigkeit vom Typ "hard" zeigt das die Komponente oder Klasse nicht richtig funktionieren kann wenn die
entsprechende Komponente nicht vorhanden ist, wärend eine Abhängigkeit vom Typ "soft" anzeigt das die Komponente
in speziellen Fällen oder in speziellen Adaptern die anhängige Komponente verwenden kann. Andererseits zeigt eine
Abhängigkeit von Typ "fix" an das diese Komponente oder Klasse in jedem Fall von einer Unterkomponente verwendet
wird, und eine Abhängigkeit von Typ "sub" zeigt an das diese Komponente von einer Unterkomponente in speziellen
Situationen oder mit speziellen Adaptern verwendet werden könnte.

.. note::

   Selbst wenn es möglich ist einzelne Komponenten für die Verwendung vom kompletten Zend Framework zu seperieren
   sollte man trotzdem wissen dass dies zu Problemen führen kann wenn Dateien fehlen oder Komponenten dynamisch
   verwendet werden.

.. include:: requirements.dependencies.table.rst


text:
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\GacApprovalStatusSearch */
/* @var $form yii\widgets\ActiveForm */
?>

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>

    <?= $form->field($model, 'ApprovalStatusId') ?>

    <?= $form->field($model, 'EntityCode') ?>

    <?= $form->field($model, 'FiscalYear') ?>

    <?= $form->field($model, 'ApprovedFlag') ?>

    <?= $form->field($model, 'PostedFlag') ?>

        <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
        <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>

    <?php ActiveForm::end(); ?>


text:
#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_
#define WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_

#include "webrtc/modules/audio_processing/include/audio_processing.h"

#include <list>
#include <string>

#include "webrtc/base/scoped_ptr.h"
#include "webrtc/base/thread_annotations.h"

namespace webrtc {

class AgcManagerDirect;
class AudioBuffer;
class Beamformer;
class CriticalSectionWrapper;
class EchoCancellationImpl;
class EchoControlMobileImpl;
class FileWrapper;
class GainControlImpl;
class GainControlForNewAgc;
class HighPassFilterImpl;
class LevelEstimatorImpl;
class NoiseSuppressionImpl;
class ProcessingComponent;
class TransientSuppressor;
class VoiceDetectionImpl;

#ifdef WEBRTC_AUDIOPROC_DEBUG_DUMP
namespace audioproc {

class Event;

}  // namespace audioproc
#endif

class AudioRate {
 public:
  explicit AudioRate(int sample_rate_hz)
      : rate_(sample_rate_hz),
        samples_per_channel_(AudioProcessing::kChunkSizeMs * rate_ / 1000) {}
  virtual ~AudioRate() {}

  void set(int rate) {
    rate_ = rate;
    samples_per_channel_ = AudioProcessing::kChunkSizeMs * rate_ / 1000;
  }

  int rate() const { return rate_; }
  int samples_per_channel() const { return samples_per_channel_; }

 private:
  int rate_;
  int samples_per_channel_;
};

class AudioFormat : public AudioRate {
 public:
  AudioFormat(int sample_rate_hz, int num_channels)
      : AudioRate(sample_rate_hz),
        num_channels_(num_channels) {}
  virtual ~AudioFormat() {}

  void set(int rate, int num_channels) {
    AudioRate::set(rate);
    num_channels_ = num_channels;
  }

  int num_channels() const { return num_channels_; }

 private:
  int num_channels_;
};

class AudioProcessingImpl : public AudioProcessing {
 public:
  explicit AudioProcessingImpl(const Config& config);
  // Only for testing.
  AudioProcessingImpl(const Config& config, Beamformer* beamformer);
  virtual ~AudioProcessingImpl();

  // AudioProcessing methods.
  int Initialize() override;
  int Initialize(int input_sample_rate_hz,
                 int output_sample_rate_hz,
                 int reverse_sample_rate_hz,
                 ChannelLayout input_layout,
                 ChannelLayout output_layout,
                 ChannelLayout reverse_layout) override;
  void SetExtraOptions(const Config& config) override;
  int set_sample_rate_hz(int rate) override;
  int input_sample_rate_hz() const override;
  int sample_rate_hz() const override;
  int proc_sample_rate_hz() const override;
  int proc_split_sample_rate_hz() const override;
  int num_input_channels() const override;
  int num_output_channels() const override;
  int num_reverse_channels() const override;
  void set_output_will_be_muted(bool muted) override;
  bool output_will_be_muted() const override;
  int ProcessStream(AudioFrame* frame) override;
  int ProcessStream(const float* const* src,
                    int samples_per_channel,
                    int input_sample_rate_hz,
                    ChannelLayout input_layout,
                    int output_sample_rate_hz,
                    ChannelLayout output_layout,
                    float* const* dest) override;
  int AnalyzeReverseStream(AudioFrame* frame) override;
  int AnalyzeReverseStream(const float* const* data,
                           int samples_per_channel,
                           int sample_rate_hz,
                           ChannelLayout layout) override;
  int set_stream_delay_ms(int delay) override;
  int stream_delay_ms() const override;
  bool was_stream_delay_set() const override;
  void set_delay_offset_ms(int offset) override;
  int delay_offset_ms() const override;
  void set_stream_key_pressed(bool key_pressed) override;
  bool stream_key_pressed() const override;
  int StartDebugRecording(const char filename[kMaxFilenameSize]) override;
  int StartDebugRecording(FILE* handle) override;
  int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) override;
  int StopDebugRecording() override;
  EchoCancellation* echo_cancellation() const override;
  EchoControlMobile* echo_control_mobile() const override;
  GainControl* gain_control() const override;
  HighPassFilter* high_pass_filter() const override;
  LevelEstimator* level_estimator() const override;
  NoiseSuppression* noise_suppression() const override;
  VoiceDetection* voice_detection() const override;

 protected:
  // Overridden in a mock.
  virtual int InitializeLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_);

 private:
  int InitializeLocked(int input_sample_rate_hz,
                       int output_sample_rate_hz,
                       int reverse_sample_rate_hz,
                       int num_input_channels,
                       int num_output_channels,
                       int num_reverse_channels)
      EXCLUSIVE_LOCKS_REQUIRED(crit_);
  int MaybeInitializeLocked(int input_sample_rate_hz,
                            int output_sample_rate_hz,
                            int reverse_sample_rate_hz,
                            int num_input_channels,
                            int num_output_channels,
                            int num_reverse_channels)
      EXCLUSIVE_LOCKS_REQUIRED(crit_);
  int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_);
  int AnalyzeReverseStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_);

  bool is_data_processed() const;
  bool output_copy_needed(bool is_data_processed) const;
  bool synthesis_needed(bool is_data_processed) const;
  bool analysis_needed(bool is_data_processed) const;
  int InitializeExperimentalAgc() EXCLUSIVE_LOCKS_REQUIRED(crit_);
  int InitializeTransient() EXCLUSIVE_LOCKS_REQUIRED(crit_);
  void InitializeBeamformer() EXCLUSIVE_LOCKS_REQUIRED(crit_);

  EchoCancellationImpl* echo_cancellation_;
  EchoControlMobileImpl* echo_control_mobile_;
  GainControlImpl* gain_control_;
  HighPassFilterImpl* high_pass_filter_;
  LevelEstimatorImpl* level_estimator_;
  NoiseSuppressionImpl* noise_suppression_;
  VoiceDetectionImpl* voice_detection_;
  rtc::scoped_ptr<GainControlForNewAgc> gain_control_for_new_agc_;

  std::list<ProcessingComponent*> component_list_;
  CriticalSectionWrapper* crit_;
  rtc::scoped_ptr<AudioBuffer> render_audio_;
  rtc::scoped_ptr<AudioBuffer> capture_audio_;
#ifdef WEBRTC_AUDIOPROC_DEBUG_DUMP
  // TODO(andrew): make this more graceful. Ideally we would split this stuff
  // out into a separate class with an "enabled" and "disabled" implementation.
  int WriteMessageToDebugFile();
  int WriteInitMessage();
  rtc::scoped_ptr<FileWrapper> debug_file_;
  rtc::scoped_ptr<audioproc::Event> event_msg_;  // Protobuf message.
  std::string event_str_;  // Memory for protobuf serialization.
#endif

  AudioFormat fwd_in_format_;
  // This one is an AudioRate, because the forward processing number of channels
  // is mutable and is tracked by the capture_audio_.
  AudioRate fwd_proc_format_;
  AudioFormat fwd_out_format_;
  AudioFormat rev_in_format_;
  AudioFormat rev_proc_format_;
  int split_rate_;

  int stream_delay_ms_;
  int delay_offset_ms_;
  bool was_stream_delay_set_;

  bool output_will_be_muted_;

  bool key_pressed_;

  // Only set through the constructor's Config parameter.
  const bool use_new_agc_;
  rtc::scoped_ptr<AgcManagerDirect> agc_manager_ GUARDED_BY(crit_);

  bool transient_suppressor_enabled_;
  rtc::scoped_ptr<TransientSuppressor> transient_suppressor_;
  const bool beamformer_enabled_;
  rtc::scoped_ptr<Beamformer> beamformer_;
  const std::vector<Point> array_geometry_;

  const bool supports_48kHz_;
};

}  // namespace webrtc

#endif  // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_


text:
package com.tribbloids.spookystuff.integration.select

import com.tribbloids.spookystuff.actions._
import com.tribbloids.spookystuff.dsl._
import com.tribbloids.spookystuff.integration.IntegrationFixture

/**
  * Created by peng on 11/26/14.
  */
class FlatSelectIT extends IntegrationFixture {

  override lazy val driverFactories = Seq(
    null
  )

  override def doMain(): Unit = {

    val raw = spooky
      .fetch(
        Wget(HTML_URL)
      )
      .flatExtract(S"div.central-featured-lang")(
        'A.attr("lang"),
        A"a".href,
        A"a em".text,
        'A.uri
      )

    val result = raw
      .toDF(sort = true)

    result.schema.treeString.shouldBe(
      """
        |root
        | |-- _c1: string (nullable = true)
        | |-- _c2: string (nullable = true)
        | |-- _c3: string (nullable = true)
        | |-- _c4: string (nullable = true)
      """.stripMargin
    )

    val rows = result.collect()

    assert(rows.length === 10)
    assert(rows.head.size === 4)
    assert(rows.head.getString(0) === "en")
    assert(rows.head.getString(1) contains "en.wikipedia.org/")
    assert(rows.head.getString(2) === "The Free Encyclopedia")
    assert(rows.head.getString(3) contains "testutils/files/Wikipedia.html")
  }

  override def numPages = 1
}


text:
package com.github.peejweej.androidsideloading.activities;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.widget.RelativeLayout;

import com.github.peejweej.androidsideloading.R;
import com.github.peejweej.androidsideloading.fragments.LoadingFragment;
import com.github.peejweej.androidsideloading.view.ToolbarViewGroup;

/**
 * A login screen that offers login via email/password.
 */
abstract public class BaseActivity extends ActionBarActivity implements ToolbarViewGroup.UWToolbarListener{

    private static final String TAG = "UWBaseActivity";

    private ToolbarViewGroup toolbar;
    private LoadingFragment loadingFragment;
    private RelativeLayout loadingBox;

    protected boolean isLoading;
    private boolean isActive = false;

    /**
     *
     * @return The AnimationParadigm for this activity
     */
    abstract public AnimationParadigm getAnimationParadigm();

    //region Parent Overrides

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        isActive = true;

    }

    @Override
    public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
        isActive = true;
    }
    @Override
    protected void onStart() {
        super.onStart();
        isActive = true;
        setupToolbar(false);
    }
    @Override
    protected void onResume() {
        super.onResume();
        isActive = true;
    }

    @Override
    protected void onPause() {
        super.onPause();
        isActive = false;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        if (item.getItemId() == android.R.id.home) {
            handleBack();
        }
        return super.onOptionsItemSelected(item);
    }

    @Override
    public void onBackPressed() {
        handleBack();
    }

    /**
     *Before 2.0
     */
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            handleBack();
            return true;
        }
        return super.onKeyDown(keyCode, event);
    }

    //endregion

    //region Accessors

    public boolean isActive() {
        return isActive;
    }

    public ToolbarViewGroup getToolbar(){

        return toolbar;
    }

    //endregion

    //region Setup

    /**
     * Sets up the toolbar with the passed parameters
     * @param hasLogo will show the logo if true
     * @param titleText will show the title with this text
     * @param titleClickable whether the title should be clickable
     * @param rightButtonClickable whether the right button should be shown and clickable.
     */
    public void setupToolbar(boolean hasLogo, String titleText, boolean titleClickable, boolean rightButtonClickable){

        setupToolbar(hasLogo, titleText, titleClickable);
//        toolbar.setRightImageVisible(rightButtonClickable);
    }

    /**
     * Sets up the toolbar with the passed parameters
     * @param hasLogo will show the logo if true
     * @param titleText will show the title with this text
     * @param titleClickable whether the title should be clickable
     */
    public void setupToolbar(boolean hasLogo, String titleText, boolean titleClickable){

        setupToolbar(hasLogo);
        toolbar.setTitle(titleText, titleClickable);
    }

    /**
     * Sets up the toolbar based on the passed parameters
     * @param hasLogo will show the logo if true
     */
    public void setupToolbar(boolean hasLogo){

        toolbar = new ToolbarViewGroup((Toolbar) findViewById(R.id.toolbar), this, hasLogo, getBackResource(), this);
        setToolbarColor(getResources().getColor(R.color.primary_dark));
    }

    /**
     * Will set the background color of the toolbar
     * @param color the desired color resource of the toolbar
     */
    protected void setToolbarColor(int color){
        this.toolbar.setBackgroundColor(color);
    }

    /**
     *
     * @return resource for the back button
     */
    public int getBackResource(){
        if(getAnimationParadigm() == AnimationParadigm.ANIMATION_VERTICAL ||
                getAnimationParadigm() == AnimationParadigm.ANIMATION_FORWARD_RIGHT_BACK_DOWN){
            return R.drawable.x_button;
        }
        else {
            return R.drawable.back_button_light;
        }
    }

    //endregion

    //region user interaction

    //endregion

    /**
     * Creates and Loading fragment.
     * @param visible true if the fragment should be visible
     * @param loadingText text to show in the loading fragment
     * @param cancelable whether the fragment should be cancelable.
     */
    public void setLoadingFragmentVisibility(final boolean visible, final String loadingText, final boolean cancelable){

        runOnUiThread(new Runnable() {
            public void run() {
                if (!visible) {
                    if (loadingFragment != null) {
                        loadingFragment.dismiss();
                    }
                } else {
                    if (loadingFragment == null) {
                        loadingFragment = LoadingFragment.newInstance(loadingText);

                        loadingFragment.setCancelable(cancelable);
                        loadingFragment.setListener(new LoadingFragment.LoadingFragmentInteractionListener() {
                            public void loadingCanceled() {
                                loadingFragment.dismiss();
                                getSupportFragmentManager().popBackStackImmediate();
                                loadingFragment = null;
                            }
                        });

                        loadingFragment.show(getSupportFragmentManager(), LoadingFragment.TAG);

                    } else if (!loadingFragment.isVisible()) {
                        loadingFragment.show(getSupportFragmentManager(), LoadingFragment.TAG);
                    }
                    loadingFragment.setLoadingText(loadingText);
                    loadingFragment.setCanCancel(cancelable);
                }
            }
        });
    }

    /**
     * rotates the screen to portrait if it's currently in landscape, or landscape it it's currently in portrait
     * @param shouldMakeSensorBased whether the activity should reset to sensor based orientation after changing
     */
    protected void rotate(boolean shouldMakeSensorBased){
        if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT){
            setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        }
        else{
            setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        }

        if(shouldMakeSensorBased){
            waitAndMakeOrientationSensorBased();
        }
    }

    /**
     * waits for 2 second and makes the activity's orientation sensor based
     */
    protected void waitAndMakeOrientationSensorBased(){

        Thread thread = new Thread("orientationThread") {
            @Override
            public void run() {
                try {
                    synchronized (this) {
                        wait(2000);
                    }
                } catch (InterruptedException ex) {
                    ex.printStackTrace();
                }
                setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
            }
        };
        thread.start();
    }

    //endregion

    //region Changing Activities

    /**
     * Starts new activity with a vertical popover-like animation
     * @param nextClass the class of the new activity
     */
    public void goToNewActivity(Class nextClass){
        goToNewActivity(new Intent(getApplicationContext(), nextClass));
    }

    /**
     * Starts new activity with a vertical popover-like animation
     * @param intent Intent of the new activity
     */
    public void goToNewActivity(Intent intent){

        int enterAnimation = AnimationParadigm.getNextAnimationEnter(AnimationParadigm.ANIMATION_VERTICAL);
        int exitAnimation = AnimationParadigm.getNextAnimationExit(AnimationParadigm.ANIMATION_VERTICAL);
        startActivity(intent);
        overridePendingTransition(enterAnimation, exitAnimation);
    }

    /**
     * starts a new activity with the activity's forward animation
     * @param nextClass class for new activity
     */
    public void goToNextActivity(Class nextClass){

        goToNextActivity(new Intent(getApplicationContext(), nextClass));
    }

    /**
     * starts a new activity with the activity's forward animation
     * @param intent Intent for new activity
     */
    public void goToNextActivity(Intent intent){

        int enterAnimation = AnimationParadigm.getNextAnimationEnter(getAnimationParadigm());
        int exitAnimation = AnimationParadigm.getNextAnimationExit(getAnimationParadigm());

        startActivity(intent);
        overridePendingTransition(enterAnimation, exitAnimation);
    }

    public void onBackPressed(boolean isSharing) {
        handleBack();
    }

    /**
     * goes back to the previous activity using the activity's back animation
     */
    protected void handleBack(){

        int enterAnimation = AnimationParadigm.getEndingAnimationEnter(getAnimationParadigm());
        int exitAnimation = AnimationParadigm.getEndingAnimationExit(getAnimationParadigm());
        finish();
        overridePendingTransition(enterAnimation, exitAnimation);
    }

    /**
     * goes to a new activity using the activity's back animation
     * @param activity new activity class to start
     */
    protected void goBackToActivity(Class activity){

        goBackToActivity(activity, null);
    }

    /**
     * starts a new activity using the activity's back animation
     * @param activity new activity class to start
     * @param extras option extras to add to the new Intent
     */
    protected void goBackToActivity(Class activity, Bundle extras){

        int enterAnimation = AnimationParadigm.getEndingAnimationEnter(AnimationParadigm.ANIMATION_VERTICAL);
        int exitAnimation = AnimationParadigm.getEndingAnimationExit(AnimationParadigm.ANIMATION_VERTICAL);

        Intent intent = new Intent(getApplicationContext(), activity);
        if(extras != null){
            intent.putExtras(extras);
        }

        startActivity(intent);
        overridePendingTransition(enterAnimation, exitAnimation);
        finish();
    }
    //endregion

    //region Toolbar Listener
    public void centerButtonClicked() {

    }
    public void leftButtonClicked() {
        handleBack();
    }
    public void rightButtonClicked() {

    }
    //endregion
}


text:
#include "tensorflow/core/kernels/data/experimental/assert_next_dataset_op.h"

#include "tensorflow/core/kernels/data/dataset_test_base.h"
#include "tensorflow/core/kernels/data/take_dataset_op.h"

namespace tensorflow {
namespace data {
namespace experimental {
namespace {

constexpr char kNodeName[] = "assert_next_dataset";

class AssertNextDatasetParams : public DatasetParams {
 public:
  template <typename T>
  AssertNextDatasetParams(T input_dataset_params,
                          const std::vector<string>& transformations,
                          DataTypeVector output_dtypes,
                          std::vector<PartialTensorShape> output_shapes,
                          string node_name)
      : DatasetParams(std::move(output_dtypes), std::move(output_shapes),
                      std::move(node_name)) {
    int num_transformations = transformations.size();
    transformations_ = CreateTensor<tstring>(TensorShape({num_transformations}),
                                             transformations);
    auto input_dataset_params_ptr =
        std::make_shared<T>(std::move(input_dataset_params));
    input_dataset_params_group_.emplace_back(
        std::make_pair(std::move(input_dataset_params_ptr), Tensor()));
    iterator_prefix_ = name_utils::IteratorPrefix(
        input_dataset_params.op_name(), input_dataset_params.iterator_prefix());
  }

  Status GetInputs(gtl::InlinedVector<TensorValue, 4>* inputs) override {
    inputs->reserve(input_dataset_params_group_.size() + 1);
    for (auto& pair : input_dataset_params_group_) {
      if (!IsDatasetTensor(pair.second)) {
        inputs->clear();
        return errors::Internal(
            "The input dataset is not populated as the dataset tensor yet.");
      } else {
        inputs->emplace_back(TensorValue(&pair.second));
      }
    }
    inputs->emplace_back(TensorValue(&transformations_));

    return Status::OK();
  }

  Status GetInputPlaceholder(
      std::vector<string>* input_placeholder) const override {
    input_placeholder->reserve(input_dataset_params_group_.size() + 1);
    input_placeholder->emplace_back(AssertNextDatasetOp::kInputDataset);
    input_placeholder->emplace_back(AssertNextDatasetOp::kTransformations);
    return Status::OK();
  }

  Status GetAttributes(AttributeVector* attr_vector) const override {
    *attr_vector = {{AssertNextDatasetOp::kOutputShapes, output_shapes_},
                    {AssertNextDatasetOp::kOutputTypes, output_dtypes_}};
    return Status::OK();
  }

  string op_name() const override { return AssertNextDatasetOp::kDatasetType; }

 private:
  Tensor transformations_;
};

class AssertNextDatasetOpTest : public DatasetOpsTestBaseV2 {};

AssertNextDatasetParams AssertNextDatasetParams1() {
  TakeDatasetParams take_dataset_params =
      TakeDatasetParams(RangeDatasetParams(0, 10, 1),
                        /*count=*/3,
                        /*output_dtypes=*/{DT_INT64},
                        /*output_shapes=*/{PartialTensorShape({})},
                        /*node_name=*/"take_dataset");
  return AssertNextDatasetParams(
      std::move(take_dataset_params),
      /*transformations=*/{TakeDatasetOp::kDatasetType},
      /*output_dtypes=*/{DT_INT64},
      /*output_shapes=*/{PartialTensorShape({})},
      /*node_name=*/kNodeName);
}

AssertNextDatasetParams AssertNextDatasetParams2() {
  TakeDatasetParams take_dataset_params =
      TakeDatasetParams(RangeDatasetParams(0, 10, 1),
                        /*count=*/3,
                        /*output_dtypes=*/{DT_INT64},
                        /*output_shapes=*/{PartialTensorShape({})},
                        /*node_name=*/"take_dataset");
  return AssertNextDatasetParams(
      std::move(take_dataset_params),
      /*transformations=*/
      {TakeDatasetOp::kDatasetType, RangeDatasetOp::kDatasetType},
      /*output_dtypes=*/{DT_INT64},
      /*output_shapes=*/{PartialTensorShape({})},
      /*node_name=*/kNodeName);
}

AssertNextDatasetParams InvalidAssertNextDatasetParams() {
  TakeDatasetParams take_dataset_params =
      TakeDatasetParams(RangeDatasetParams(0, 10, 1),
                        /*count=*/3,
                        /*output_dtypes=*/{DT_INT64},
                        /*output_shapes=*/{PartialTensorShape({})},
                        /*node_name=*/"take_dataset");
  return AssertNextDatasetParams(std::move(take_dataset_params),
                                 /*transformations=*/{"Whoops"},
                                 /*output_dtypes=*/{DT_INT64},
                                 /*output_shapes=*/{PartialTensorShape({})},
                                 /*node_name=*/kNodeName);
}

AssertNextDatasetParams ShortAssertNextDatasetParams() {
  TakeDatasetParams take_dataset_params =
      TakeDatasetParams(RangeDatasetParams(0, 10, 1),
                        /*count=*/3,
                        /*output_dtypes=*/{DT_INT64},
                        /*output_shapes=*/{PartialTensorShape({})},
                        /*node_name=*/"take_dataset");
  return AssertNextDatasetParams(
      std::move(take_dataset_params),
      /*transformations=*/
      {TakeDatasetOp::kDatasetType, RangeDatasetOp::kDatasetType, "Whoops"},
      /*output_dtypes=*/{DT_INT64},
      /*output_shapes=*/{PartialTensorShape({})},
      /*node_name=*/kNodeName);
}

std::vector<GetNextTestCase<AssertNextDatasetParams>> GetNextTestCases() {
  return {{/*dataset_params=*/AssertNextDatasetParams1(),
           /*expected_outputs=*/
           CreateTensors<int64>(TensorShape({}), {{0}, {1}, {2}})},
          {/*dataset_params=*/AssertNextDatasetParams2(),
           /*expected_outputs=*/
           CreateTensors<int64>(TensorShape({}), {{0}, {1}, {2}})}};
}

ITERATOR_GET_NEXT_TEST_P(AssertNextDatasetOpTest, AssertNextDatasetParams,
                         GetNextTestCases())

TEST_F(AssertNextDatasetOpTest, DatasetNodeName) {
  auto dataset_params = AssertNextDatasetParams1();
  TF_ASSERT_OK(Initialize(dataset_params));
  TF_ASSERT_OK(CheckDatasetNodeName(dataset_params.node_name()));
}

TEST_F(AssertNextDatasetOpTest, DatasetTypeString) {
  auto dataset_params = AssertNextDatasetParams1();
  TF_ASSERT_OK(Initialize(dataset_params));
  TF_ASSERT_OK(CheckDatasetTypeString(
      name_utils::OpName(AssertNextDatasetOp::kDatasetType)));
}

TEST_F(AssertNextDatasetOpTest, DatasetOutputDtypes) {
  auto dataset_params = AssertNextDatasetParams1();
  TF_ASSERT_OK(Initialize(dataset_params));
  TF_ASSERT_OK(CheckDatasetOutputDtypes({DT_INT64}));
}

TEST_F(AssertNextDatasetOpTest, DatasetOutputShapes) {
  auto dataset_params = AssertNextDatasetParams1();
  TF_ASSERT_OK(Initialize(dataset_params));
  TF_ASSERT_OK(CheckDatasetOutputShapes({PartialTensorShape({})}));
}

TEST_F(AssertNextDatasetOpTest, Cardinality) {
  auto dataset_params = AssertNextDatasetParams1();
  TF_ASSERT_OK(Initialize(dataset_params));
  TF_ASSERT_OK(CheckDatasetCardinality(/*expected_cardinality=*/3));
}

TEST_F(AssertNextDatasetOpTest, IteratorOutputDtypes) {
  auto dataset_params = AssertNextDatasetParams1();
  TF_ASSERT_OK(Initialize(dataset_params));
  TF_ASSERT_OK(CheckIteratorOutputDtypes({DT_INT64}));
}

TEST_F(AssertNextDatasetOpTest, IteratorOutputShapes) {
  auto dataset_params = AssertNextDatasetParams1();
  TF_ASSERT_OK(Initialize(dataset_params));
  TF_ASSERT_OK(CheckIteratorOutputShapes({PartialTensorShape({})}));
}

TEST_F(AssertNextDatasetOpTest, IteratorPrefix) {
  auto dataset_params = AssertNextDatasetParams1();
  TF_ASSERT_OK(Initialize(dataset_params));
  TF_ASSERT_OK(CheckIteratorPrefix(name_utils::IteratorPrefix(
      AssertNextDatasetOp::kDatasetType, dataset_params.iterator_prefix())));
}

std::vector<IteratorSaveAndRestoreTestCase<AssertNextDatasetParams>>
IteratorSaveAndRestoreTestCases() {
  return {{/*dataset_params=*/AssertNextDatasetParams1(),
           /*breakpoints*/ {0, 2, 5},
           /*expected_outputs=*/
           CreateTensors<int64>(TensorShape({}), {{0}, {1}, {2}})},
          {/*dataset_params=*/AssertNextDatasetParams2(),
           /*breakpoints*/ {0, 2, 5},
           /*expected_outputs=*/
           CreateTensors<int64>(TensorShape({}), {{0}, {1}, {2}})}};
}

ITERATOR_SAVE_AND_RESTORE_TEST_P(AssertNextDatasetOpTest,
                                 AssertNextDatasetParams,
                                 IteratorSaveAndRestoreTestCases())

TEST_F(AssertNextDatasetOpTest, InvalidArguments) {
  auto dataset_params = InvalidAssertNextDatasetParams();
  EXPECT_EQ(Initialize(dataset_params).code(),
            tensorflow::error::INVALID_ARGUMENT);
}

TEST_F(AssertNextDatasetOpTest, ShortAssertNext) {
  auto dataset_params = ShortAssertNextDatasetParams();
  EXPECT_EQ(Initialize(dataset_params).code(),
            tensorflow::error::INVALID_ARGUMENT);
}

}  // namespace
}  // namespace experimental
}  // namespace data
}  // namespace tensorflow


text:
<?php

namespace OmegaCommerce\Api;

class Config
{
    public function __construct(
        \OmegaCommerce\Api\Interfaces\ConfigInterface $config
    )
    {
        $this->config = $config;
    }

    /**
     * @return string
     */
    public function getPlatform()
    {
        return $this->config->getPlatform();
    }

    /**
     * @return string
     */
    public function getVersion()
    {
        return $this->config->getVersion();
    }

    /**
     * @return string
     */
    public function getStoreBaseURL()
    {
        return $this->config->getStoreBaseURL();
    }

    /**
     * @return string
     */
    public function getExtID()
    {
        return $this->config->getValue('omega_api/access/ext_id');
    }

    /**
     * @param string $value
     * @return void
     */
    public function setExtID($value)
    {
        $this->config->saveValue('omega_api/access/ext_id', $value);
    }

    /**
     * @return string
     */
    public function getID()
    {
        return $this->config->getValue('omega_api/access/id');
    }

    /**
     * @param string $value
     * @return void
     */
    public function setID($value)
    {
        $this->config->saveValue('omega_api/access/id', $value);

    }

    /**
     * @return string
     */
    public function getSecretKey()
    {
        return $this->config->getEncryptedValue('omega_api/access/secret_key');
    }

    /**
     * @param string $value
     * @return void
     */
    public function setSecretKey($value)
    {
        $this->config->saveValueEncrypted('omega_api/access/secret_key', $value);

    }

    /**
     * @return string
     */
    public function getBaseApiUrl()
    {
        $url = $this->config->getValue('omega_api/access/base_url');
        if ($url == "") { //if plugin enables first time, we have empty url. need additional checks.
            $url = "https://search.omegacommerce.com";
        }
        return rtrim($url, "/");
    }

    /**
     * @return bool
     */
    public function isValidateSSL()
    {
        $isValidate = $this->config->getValue('omega_api/access/is_validate_ssl');
        if ($isValidate === "" || $isValidate == null) {//true by default
            return true;
        }
        return $this->config->getValue('omega_api/access/is_validate_ssl');
    }
}


text:
<?php

if(!defined('WHMCS')) {
    die('This file cannot be accessed directly');
}

/**
 * A WHMCS Client
 */
class ColoCrossing_Model_Client extends ColoCrossing_Model_User {

	/**
	 * The Table Name
	 * @var string
	 */
	protected static $TABLE = 'tblclients';

	/**
	 * Retrieves the Type of the User
	 * @param  boolean $human_readable 	Specifies the format of the type requested
	 * @return string|integer 			The Type as a human readable string if $human_readable, else the
	 *                            	  	 	type as an integer to be used in the db
	 */
	public function getType($human_readable = false) {
		return $human_readable ? 'Client' : 2;
	}

	/**
	 * Determines if this Client Has Access to the specified Device
	 * @param  integer|ColoCrossing_Object_Device  $device The Device or Id
	 * @return boolean  True if the Client has Access
	 */
	public function hasPermissionForDevice($device) {
		$device_id = is_numeric($device) ? $device : $device->getId();
		$service = ColoCrossing_Model_Service::findByDevice($device_id);

		return isset($service) && $service->isActive();
	}

}