text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Wyatt: IRangeFinderSensor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="search/search.css" rel="stylesheet" type="text/css"/>

<link href="doxygen.css" rel="stylesheet" type="text/css" />

Wyatt
    1.0.1

Main Page

Classes

Files

          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>

Class List

Class Index

Class Hierarchy

Class Members

Public Member Functions |
List of all members

IRangeFinderSensor Class Referenceabstract

#include <IRangeFinderSensor.h>

Inheritance diagram for IRangeFinderSensor:

<map name="IRangeFinderSensor_inherit__map" id="IRangeFinderSensor_inherit__map">
<area shape="rect" id="node3" href="classMockIRRangeFinderSensor.html" title="MockIRRangeFinderSensor" alt="" coords="5,155,195,181"/>
<area shape="rect" id="node2" href="classISensor.html" title="ISensor" alt="" coords="65,5,135,32"/>
</map>
[legend]

Collaboration diagram for IRangeFinderSensor:

<map name="IRangeFinderSensor_coll__map" id="IRangeFinderSensor_coll__map">
<area shape="rect" id="node2" href="classISensor.html" title="ISensor" alt="" coords="44,5,115,32"/>
</map>
[legend]

Public Member Functions

virtual 	~IRangeFinderSensor () override

virtual void 	updateSensor (IMessage *msg) override=0

virtual double 	getDistanceCM ()=0

 Public Member Functions inherited from ISensor

virtual 	~ISensor ()

Detailed Description

Interface for range finding sensors.

Definition at line 7 of file IRangeFinderSensor.h.

Constructor & Destructor Documentation

          virtual IRangeFinderSensor::~IRangeFinderSensor
          (
          	)

inlineoverridevirtual

Deconstructor. Deletes all pointer references.

Definition at line 13 of file IRangeFinderSensor.h.

Member Function Documentation

          virtual double IRangeFinderSensor::getDistanceCM
          (
          	)

pure virtual

Returns the most recent distance reading in centimeters.

Returns

The most recent distance reading in centimeters.

Implemented in MockIRRangeFinderSensor.

          virtual void IRangeFinderSensor::updateSensor
          (
          IMessage *
          msg	)

overridepure virtual

Update this sensor object with data received from a peripheral. Deletes data upon completion.

Parameters

data	The data received from the peripheral.

Implements ISensor.

Implemented in MockIRRangeFinderSensor.

The documentation for this class was generated from the following file:

include/sensors/IRangeFinderSensor.h

<address class="footer">
Generated by

 1.8.11
</address>


text:
// Software License Agreement (BSD License)
//
//   PaCMan Vision (PaCV) - https://github.com/Tabjones/pacman_vision
//   Copyright (c) 2015-2016, Federico Spinelli (fspinelli@gmail.com)
//   All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this
//   list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above copyright notice,
//   this list of conditions and the following disclaimer in the documentation
//   and/or other materials provided with the distribution.
//
// * Neither the name of the copyright holder(s) nor the names of its
//   contributors may be used to endorse or promote products derived from
//   this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef _STORAGE_H_
#define _STORAGE_H_

#include <pacv_config.h>
#include <common/common_std.h>
#include <common/common_pcl.h>
#include <common/box.h>

#include <Eigen/StdVector>
// #include <pcl/segmentation/supervoxel_clustering.h>

namespace pacv
{
class Storage
{
    public:
        typedef std::shared_ptr<Storage> Ptr;
        Storage();
        ~Storage(){}
        //Eigen Alignment
        EIGEN_MAKE_ALIGNED_OPERATOR_NEW

        //Read and write scene methods
        bool readScene (PTC::Ptr &cloud);
        bool writeScene (PTC::Ptr cloud);
        bool readSceneProcessed (PTC::Ptr &cloud);
        bool writeSceneProcessed (PTC::Ptr cloud);
        bool readScene (PXC::Ptr &cloud);
        bool readSceneProcessed (PXC::Ptr &cloud);
        //Read write sensor reference frame
        bool readSensorFrame (std::string& frame);
        bool writeSensorFrame (std::string frame);
        //Read and write estimated objects
        bool readObjTransforms (std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> &trans);
        bool writeObjTransforms (std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> trans);
        bool readObjNames (std::shared_ptr<std::vector<std::pair<std::string, std::string>>> &n);
        bool writeObjNames (std::shared_ptr<std::vector<std::pair<std::string, std::string>>> n);
        //Search for a specific object name and return its index
        bool searchObjName (std::string n, int &idx);
        //Read and object transform by its index
        bool readObjTransformByIndex (int idx, std::shared_ptr<Eigen::Matrix4f> &trans);
        //Write and object transform to the specified index
        bool writeObjTransformByIndex (int idx, std::shared_ptr<Eigen::Matrix4f> trans);
        //Read and write arms/hands transforms
        bool readLeftArm(std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> &arm);
        bool writeLeftArm(std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> arm);
        bool readRightArm(std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> &arm);
        bool writeRightArm(std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> arm);
        bool readLeftHand(std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> &hand);
        bool writeLeftHand(std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> hand);
        bool readRightHand(std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> &hand);
        bool writeRightHand(std::shared_ptr<std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>>> hand);
        //Read/write index of tracked object
        void readTrackedIndex(int &idx);
        void writeTrackedIndex(int idx);
    private:
        //untouched scene from kinect
        PTC::Ptr scene;
        std::mutex mtx_scene;
        //scene after processing
        PTC::Ptr scene_processed;
        std::mutex mtx_scene_processed;
        //sensor reference frame
        std::string sensor_ref_frame;
        std::mutex mtx_sensor_ref_frame;
        //Estimated transform from estimator
        std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>> estimations;
        std::mutex mtx_estimations;
        //naming and id-ing of estimated objects from estimator
        std::vector<std::pair<std::string, std::string>> names; //name,ID
        std::mutex mtx_names;
        /*
         * Tracked object index (referred to vector of estimations),
         * set to -1 if not tracking
         */
        int index;
        std::mutex mtx_index;
        //Vito Left arm transforms
        std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>> left_arm;
        std::mutex mtx_left_arm;
        //Vito Right arm transforms
        std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>> right_arm;
        std::mutex mtx_right_arm;
        //Vito Left hand transforms
        std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>> left_hand;
        std::mutex mtx_left_hand;
        //Vito Right hand transform
        std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f>> right_hand;
        std::mutex mtx_right_hand;
};
}
#endif

redpajama_set_name: RedPajamaGithub


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.camunda.bpm.extension.dmn</groupId>
    <artifactId>xlsx-dmn-root</artifactId>
    <version>0.4.0-SNAPSHOT</version>
  </parent>

  <artifactId>dmn-xlsx-converter</artifactId>
  <name>DMN-XLSX Converter</name>
  <packaging>jar</packaging>

  <dependencies>
    <dependency>
      <groupId>org.docx4j</groupId>
      <artifactId>docx4j</artifactId>
      <version>6.0.1</version>
      <exclusions>
        <exclusion>
          <artifactId>slf4j-log4j12</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jcl-over-slf4j</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>log4j</artifactId>
          <groupId>log4j</groupId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>org.camunda.bpm.model</groupId>
      <artifactId>camunda-dmn-model</artifactId>
    </dependency>

    <!-- test -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

</project>


text:
<project name="Maven Site Plugin IT">
    <body>
        <menu name="AsciiDoc Pages">
            <item name="Sample" href="sample.html"/>
        </menu>
      ${reports}
    </body>
</project>


text:
declare module 'node-fetch' {
  import type http from 'http';
  import type https from 'https';
  import type { URL } from 'url';
  import type { Readable } from 'stream';

  declare export type AbortSignal = {
    +aborted: boolean;
    +onabort: (event?: { ... }) => void;

    +addEventListener: (name: string, cb: () => mixed) => void;
    +removeEventListener: (name: string, cb: () => mixed) => void;
    +dispatchEvent: (event: { ... }) => void;
    ...,
  }

  declare export class Request mixins Body {
    constructor(input: string | { href: string, ... } | Request, init?: RequestInit): this;
    context: RequestContext;
    headers: Headers;
    method: string;
    redirect: RequestRedirect;
    referrer: string;
    url: string;

    // node-fetch extensions
    agent: http.Agent | https.Agent;
    compress: boolean;
    counter: number;
    follow: number;
    hostname: string;
    port: number;
    protocol: string;
    size: number;
    timeout: number;
  }

  declare type HeaderObject = { [index: string]: string, ... }

  declare type RequestInit = {|
    body?: BodyInit,
    headers?: HeaderObject,
    method?: string,
    redirect?: RequestRedirect,
    signal?: AbortSignal | null,

    // node-fetch extensions
    agent?: (URL => (http.Agent | https.Agent)) | http.Agent | https.Agent | null;
    compress?: boolean,
    follow?: number,
    size?: number,
    timeout?: number,
  |};

  declare export interface FetchError extends Error {
    // cannot set name due to incompatible extend error
    // name: 'FetchError';
    type: string;
    code: ?number;
    errno: ?number;
  }

  declare export interface AbortError extends Error {
    // cannot set name due to incompatible extend error
    // name: 'AbortError';
    type: 'aborted';
  }

  declare type RequestContext =
    'audio' | 'beacon' | 'cspreport' | 'download' | 'embed' |
    'eventsource' | 'favicon' | 'fetch' | 'font' | 'form' | 'frame' |
    'hyperlink' | 'iframe' | 'image' | 'imageset' | 'import' |
    'internal' | 'location' | 'manifest' | 'object' | 'ping' | 'plugin' |
    'prefetch' | 'script' | 'serviceworker' | 'sharedworker' |
    'subresource' | 'style' | 'track' | 'video' | 'worker' |
    'xmlhttprequest' | 'xslt';
  declare type RequestRedirect = 'error' | 'follow' | 'manual';

  declare export class Headers {
    append(name: string, value: string): void;
    delete(name: string): void;
    forEach(callback: (value: string, name: string) => void): void;
    get(name: string): string;
    getAll(name: string): Array<string>;
    has(name: string): boolean;
    raw(): { [k: string]: string[], ... };
    set(name: string, value: string): void;
    entries(): Iterator<[string, string]>;
    keys(): Iterator<string>;
    values(): Iterator<string>;
    @@iterator(): Iterator<[string, string]>;
  }

  declare export class Body {
    buffer(): Promise<Buffer>;
    json(): Promise<any>;
    json<T>(): Promise<T>;
    text(): Promise<string>;
    body: stream$Readable;
    bodyUsed: boolean;
  }

  declare export class Response mixins Body {
    constructor(body?: BodyInit, init?: ResponseInit): this;
    clone(): Response;
    error(): Response;
    redirect(url: string, status: number): Response;
    headers: Headers;
    ok: boolean;
    status: number;
    statusText: string;
    size: number;
    timeout: number;
    type: ResponseType;
    url: string;
  }

  declare type ResponseType =
    | 'basic'
    | 'cors'
    | 'default'
    | 'error'
    | 'opaque'
    | 'opaqueredirect';

  declare interface ResponseInit {
    headers?: HeaderInit,
    status: number,
    statusText?: string,
  }

  declare type HeaderInit = Headers | Array<string>;
  declare type BodyInit = string | null | Buffer | Blob | Readable;

  declare export default function fetch(url: string | Request, init?: RequestInit): Promise<Response>
}


text:
import asyncio
import unittest

from fogeybot.hotslogs_api import HotsLogsAPI

class TestHotsLogsAPI(unittest.TestCase):
    def setUp(self):
        self.api = HotsLogsAPI()
        self.run = asyncio.get_event_loop().run_until_complete

    def test_get_maps(self):
        maps = self.run(self.api.get_maps())
        self.assertTrue(len(maps) > 5)

    def test_get_mmr(self):
        info = self.run(self.api.get_mmr("benthor#1644"))

        assert info.present
        assert info.qm_mmr > 0
        assert info.hl_mmr > 0

    def test_get_mmr_not_found(self):
        info = self.run(self.api.get_mmr("benthor#1645"))

        assert not info.present


text:
using ExtendedMap.Forms.Plugin.Abstractions;
using SampleApp.ViewModels;
using Xamarin.Forms;
using Xamarin.Forms.Maps;

namespace SampleApp
{
    public class App : Application
    {
        public App()
        {
            BindingContext = new ExtendedMapViewModel();

            var grid = new Grid
            {
                RowDefinitions = new RowDefinitionCollection
                {
                    new RowDefinition {Height = new GridLength(1, GridUnitType.Star)}
                },
                ColumnDefinitions = new ColumnDefinitionCollection
                {
                    new ColumnDefinition {Width = new GridLength(1, GridUnitType.Star)}
                }
            };

            grid.Children.Add(CreateMapContentView(), 0, 0);

            MainPage = new ContentPage { Content = grid };
        }

        View CreateMapContentView()
        {
            //Coordinates for the starting point of the map
            const double latitude = 41.788081;
            const double longitude = -87.831573;

            var location = new Position(latitude, longitude);

            var _map = new ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap(MapSpan.FromCenterAndRadius(location, Distance.FromMiles(15))) { IsShowingUser = true };

            _map.StyleId = "CustomMap";

            _map.ShareText = string.Format("This is a custom message text");

            _map.BindingContext = BindingContext;

            _map.SetBinding<ExtendedMapViewModel>(ExtendedMap.Forms.Plugin.Abstractions.ExtendedMap.CustomPinsProperty, x => x.SamplePins);

            var createMapContentView = new CustomMapContentView(_map);

            return createMapContentView;
        }

        protected override void OnStart()
        {
            // Handle when your app starts
        }

        protected override void OnSleep()
        {
            // Handle when your app sleeps
        }

        protected override void OnResume()
        {
            // Handle when your app resumes
        }
    }
}


text:
rbenv
========

Role for installing [rbenv](https://github.com/sstephenson/rbenv).

Role ready status
------------

[![Build Status](https://travis-ci.org/zzet/ansible-rbenv-role.png?branch=master)](https://travis-ci.org/zzet/ansible-rbenv-role)

Requirements
------------

none

Role Variables
--------------

Default variables are:

    rbenv:
      env: system
      version: v1.0.0
      ruby_version: 2.3.1

    rbenv_repo: "https://github.com/rbenv/rbenv.git"

    rbenv_plugins:
      - { name: "rbenv-vars",
          repo: "https://github.com/rbenv/rbenv-vars.git",
          version: "v1.2.0" }

      - { name: "ruby-build",
          repo: "https://github.com/rbenv/ruby-build.git",
          version: "v20160426" }

      - { name: "rbenv-default-gems",
          repo: "https://github.com/rbenv/rbenv-default-gems.git",
          version: "v1.0.0" }

      - { name: "rbenv-installer",
          repo: "https://github.com/rbenv/rbenv-installer.git",
          version: "bc21e7055dcc8f5f9bc66ce0c78cc9ae0c28cd7a" }

      - { name: "rbenv-update",
          repo: "https://github.com/rkh/rbenv-update.git",
          version: "1961fa180280bb50b64cbbffe6a5df7cf70f5e50" }

      - { name: "rbenv-whatis",
          repo: "https://github.com/rkh/rbenv-whatis.git",
          version: "v1.0.0" }

      - { name: "rbenv-use",
          repo: "https://github.com/rkh/rbenv-use.git",
          version: "v1.0.0" }

    rbenv_root: "{% if rbenv.env == 'system' %}/usr/local/rbenv{% else %}$HOME/.rbenv{% endif %}"

    rbenv_users: []

Variables to control a system installation (these are not set by default):

    rbenv_owner: 'deploy'
    rbenv_group: 'deploy'

Description:

- ` rbenv.env ` - Type of rbenv installation. Allows 'system' or 'user' values
- ` rbenv.version ` - Version of rbenv to install (tag from [rbenv releases page](https://github.com/sstephenson/rbenv/releases))
- ` rbenv.ruby_version ` - Version of ruby to install as global rbenv ruby
- ` rbenv_repo ` - Repository with source code of rbenv to install
- ` rbenv_plugins ` - Array of Hashes with information about plugins to install
- ` rbenv_root ` - Install path
- ` rbenv_users ` - Array of usernames for multiuser install. User must be present in the system
- ` default_gems_file ` - This is Rbenv's plugin _rbenv-default-gems_. Sets the path to a default-gems file of your choice (_don't set it_ if you want to use the default file `files/default-gems`)
- ` rbenv_owner ` - The user  owning `rbenv_root` when `rbenv.env` is `system`
- ` rbenv_group ` - The group owning `rbenv_root` when `rbenv.env` is `system`

Example:

    - hosts: web
      gather_facts: true # https://github.com/zzet/ansible-rbenv-role/issues/37
      vars:
        rbenv:
          env: user
          version: v0.4.0
          ruby_version: 2.0.0-p353
      roles:
        - role: zzet.rbenv
          rbenv_users:
            - user

Dependencies
------------

none

License
-------

MIT

Author Information
------------------

[Andrew Kumanyaev](http://github.com/zzet)

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/zzet/ansible-rbenv-role/trend.png)](https://bitdeli.com/free "Bitdeli Badge")


text:
int setpl(int);
int setpl7();
int getpl();

int muxx_taskinit(int, WORD, ADDRESS, WORD);
void muxx_tcbinit(PTCB);
int muxx_setup_taskmem(PTCB);
void muxx_iottinit();

int kputstr(char *, int);
int kputstrz(char *);
int kputstrl(char *, int);
int kputstrzl(char *);
int kputoct(WORD);
int kconputc(char);
int kprintf(char *,...);

void copytrapf();
void copytrapfp(void *);
void restoretrapf();
void copyMMUstate();
void restoreMMUstate();

void muxx_switch();

void muxx_dumpregs(CPUSTATE *);
void muxx_dumptcbregs();
void muxx_dumptcb(PTCB);
void muxx_dumpctcb();
void muxx_dumpmemsvc();
void muxx_dumpmmu(MMUSTATE *);

void muxx_qAddTask(PTQUEUE,PTCB);
PTCB muxx_qGetTask(PTQUEUE);
PTCB muxx_qRemoveTask(PTQUEUE,PTCB);

int muxx_svc_creprc(ADDRESS, char *, int, ADDRESS, WORD);
int muxx_svc_loadprc(ADDRESS, char *, int, char *, WORD);
int muxx_svc_mutex(ADDRESS, WORD, WORD);
int muxx_svc_alloc(ADDRESS, char *, WORD);
PIOTE muxx_svc_open (ADDRESS, char *, WORD);
int muxx_svc_close(ADDRESS, PIOTE);
int muxx_svc_drvstart(ADDRESS, char*);
int muxx_svc_drvstop(ADDRESS, char*);
int muxx_svc_write(ADDRESS, PIOTE, int, char*);
int muxx_svc_read(ADDRESS, PIOTE, int, char*);
int muxx_svc_gettpi(ADDRESS, WORD, PTCB);
PTCB muxx_findtcb(WORD);

PDRVCB muxx_drv_find(char *);
int muxx_drv_exec(PDRVCB, PIOPKT);
int muxx_locate_dev(char *, PIOTE);
int muxx_srv_mutex(ADDRESS, WORD, WORD);

int muxx_svc_xcopy(ADDRESS, WORD, WORD, WORD, WORD, WORD);
int muxx_svc_protmem(ADDRESS, WORD, WORD, WORD);

int muxx_yield();
void muxx_schedule();

void panic(char *);

#if MUXX_DEBUG != 0
#define KDPRINTF  kprintf
#define KDPUTSTRL kputstrl
#else
#define KDPRINTF
#define KDPUTSTRL
#endif

#define _H_KERFUNCS_H
#endif


text:
require_relative 'helper/spec_helper'

describe HockeyGerrit do
  let(:gerrit_refspec) { 'refs/changes/13/70000/10' }
  let(:hockey) { HockeyGerrit.new }

  def hockey_run(opts = {})
    ipa = opts.fetch :ipa, ipa_path
    tries = opts.fetch :retry, 1
    hockey.run(token: '123',
               ipa: ipa,
               build_url: '345',
               gerrit: gerrit_refspec,
               retry: tries)
  end

  before do
    allow(hockey).to receive(:git_log) { 'bootstraponline: Stub git log' }
    allow(hockey).to receive(:git_commit_sha) { '123456789641603afe0572f3b4a91204791b012d' }
  end

  it 'posts app to hockey' do
    stub_valid_response

    hockey_run

    expect(hockey.upload_url).to eq(upload_url)

    save_real_post_request

    verify_post_request
  end

  it 'errors on no dsym' do
    stub_valid_response

    expect { hockey_run(ipa: fake_broken_path) }.to output(/dSYM not found!/).to_stdout
  end

  it 'retries on failure' do
    # return 4 failures then 1 success
    stub_request(:post, post_url).to_return(
      {status: 401},
      {status: 401},
      {status: 401},
      {status: 401},
      stub_valid_obj
    )

    expected = <<S
Uploading fake.ipa
Retrying upload. 5 attempts remaining...
Retrying upload. 4 attempts remaining...
Retrying upload. 3 attempts remaining...
Retrying upload. 2 attempts remaining...
Build uploaded to: #{upload_url}
S

    expect { hockey_run(retry: 5) }.to output(expected).to_stdout
  end

  it 'raises on error' do
    stub_request(:post, post_url).to_return(status: 401)

    expect { hockey_run }.to raise_error(/Invalid response/)
  end
end


text:
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;

import java.util.List;
import java.util.Set;

import static org.openqa.selenium.support.ui.ExpectedConditions.numberOfElementsToBe;
import static org.openqa.selenium.support.ui.ExpectedConditions.textToBe;
import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOf;

public class Lesson8Task14 extends MainTestClass {

    @Test
    public void Lesson8Task14Refs() {

        driver.get("http://localhost/litecart/admin/");
        driver.findElement(By.name("username")).sendKeys("admin");
        driver.findElement(By.name("password")).sendKeys("admin");
        driver.findElement(By.name("login")).click();
        driver.get("http://localhost/litecart/admin/?app=countries&doc=countries");
        wait.until(visibilityOf(driver.findElement(By.cssSelector("form[name=countries_form]"))));
        driver.findElement(By.cssSelector("table.dataTable tr:not(.header) td:nth-child(5) a")).click();

        List <WebElement> eMas = (List <WebElement>) driver.findElements(By.cssSelector("form td a:not(#address-format-hint)"));

        for(WebElement e : eMas)
        {
            String mainWindow = driver.getWindowHandle();
            Set<String> oldWindows = driver.getWindowHandles();
            e.click();
            String newWindow = wait.until(anyWindowOtherThan(oldWindows));
            driver.switchTo().window(newWindow);
            driver.close();
            driver.switchTo().window(mainWindow);
        }
    }
}


text:
package it.polimi.processing.teststand.streamer;

import it.polimi.processing.EventProcessor;
import it.polimi.processing.enums.ExecutionState;
import it.polimi.processing.events.CTEvent;
import it.polimi.processing.events.Experiment;
import it.polimi.processing.streamer.Streamer;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 *
 * General implementation of the Streamer used by the TestStand
 * It process an Experiment event trough the method process(Experiment e).
 * It must be initialized before processing to stop the processing until next initialization.
 * It builds an flow rate according to the provided FlowRateProfiler and send events to the next
 * provided EventProcessor in CTEvent format
 *
 * A limitation in the number of generated events can be set up in construction
 *
 *
 *
 * @author Riccardo
 *
 */
@Getter
@AllArgsConstructor
public abstract class TSStreamer implements Streamer<Experiment> {

	protected final EventProcessor<CTEvent> next;

	protected ExecutionState status;
	protected int eventLimit;

}


text:
using InfoSupport.Tessler.Drivers;
using InfoSupport.Tessler.UnitTest.Mock;
using InfoSupport.Tessler.Unity;
using log4net;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.InterceptionExtension;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;

namespace InfoSupport.Tessler.UnitTest.Unity
{
    [TestClass]
    public class CallHandlerTests
    {
        private CallHandler callHandler;

        private StubPageObjectA pageObjectMock;

        private Mock<ITesslerWebDriver> webDriverMock;

        private Mock<IMethodInvocation> methodMock;

        private InvokeHandlerStub invokeHandlerMock;

        private Mock<IMethodReturn> methodReturnMock;

        private Mock<ILog> logMock;

        [TestInitialize]
        public void Initialize()
        {
            callHandler = new CallHandler();

            pageObjectMock = UnityInstance.Resolve<StubPageObjectA>();

            webDriverMock = new Mock<ITesslerWebDriver>() { DefaultValue = DefaultValue.Mock };
            UnityInstance.Instance.RegisterInstance<ITesslerWebDriver>(webDriverMock.Object);

            methodMock = new Mock<IMethodInvocation>();
            methodMock.Setup(m => m.MethodBase).Returns(typeof(PageObjectMock).GetMethod("PageActionWithoutScreenshot"));
            methodMock.Setup(m => m.Target).Returns(pageObjectMock);

            invokeHandlerMock = new InvokeHandlerStub();

            methodReturnMock = new Mock<IMethodReturn>();

            logMock = new Mock<ILog>();

            UnityInstance.Instance.RegisterInstance<ILog>(logMock.Object);
        }

        [TestMethod]
        public void TakeScreenshotTest()
        {
            invokeHandlerMock.InvokeHandlerMock.Setup(m => m.InvokeHandler(It.IsAny<IMethodInvocation>(), It.IsAny<GetNextHandlerDelegate>())).Returns(methodReturnMock.Object);

            callHandler.Invoke(methodMock.Object, invokeHandlerMock.GetNextHandlerDelegate);

            Assert.AreEqual(1, pageObjectMock.OnCallingCalls);
            Assert.AreEqual(1, pageObjectMock.OnCalledCalls);

            invokeHandlerMock.InvokeHandlerMock.Verify(m => m.InvokeHandler(It.IsAny<IMethodInvocation>(), It.IsAny<GetNextHandlerDelegate>()), Times.Once());
        }
    }
}


text:
import test from 'ava'
import getFreePort from './_get-free-port'
import { createServer } from '../src'
import socketClient from './_socket-client'

const mockType = 'hello.server'
const mockPayload = { fun: true }

test.cb('sends a valid command', t => {
  getFreePort(port => {
    // setup a server, wait for a command, then send one
    const server = createServer({
      port,
      onCommand: ({ type, payload, messageId, date }) => {
        server.send(mockType, mockPayload)
      }
    }).start()

    // setup the client
    const client = socketClient(`ws://localhost:${port}`)

    // when the client receives a command, validate
    client.on('command', ({ type, payload }) => {
      if (type === 'state.values.subscribe') return
      t.is(type, mockType)
      t.deepEqual(payload, mockPayload)
      t.end()
    })

    // when the client connects, send a command trigger
    client.on('connect', () => {
      client.emit('command', {type: 'trigger'})
    })
  })
})


text:
import map from 'lodash/map'
import React from 'react'
import { headerTitles, styles } from '../data/planningGuideServicesData'

const PlanningGuideNav = ({ activeSection, scrollToItem }) => {
  const { root } = styles
  return (

        {map(headerTitles, ({ title }, key) => {
          return (

 scrollToItem(title)}
            >
              {title}

          )
        })}

  )
}

export default PlanningGuideNav


text:
package net.nikore.kafka.ws.modules;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Inject;

public class ConsumerProperties {
  private static final String CONSUMER_PROPS_PATH = "config/consumer.properties";
  private static final Logger logger = LoggerFactory.getLogger(ProducerProeprties.class);

  private final Properties props;

  @Inject
  public ConsumerProperties() throws IOException {
    this.props = new Properties();
    props.load(new BufferedInputStream(new FileInputStream(CONSUMER_PROPS_PATH)));
    logger.info("Loaded the file properties: {}", props.toString());
  }

  public Properties getProps() {
    return props;
  }
}


text:
'use strict';

var grunt = require('grunt');

exports.gss_compiler = {
  default_options: function(test) {
    test.expect(1);

    var actual = grunt.file.read('tmp/vfl.json');
    var expected = grunt.file.read('test/expected/vfl.json');
    test.equal(actual, expected, 'expect compilation to produce correct AST');

    test.done();
  }
};


text:
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import { chainPropTypes, getDisplayName } from '@material-ui/utils';
import hoistNonReactStatics from 'hoist-non-react-statics';
import makeStyles from '../makeStyles';

function omit(input, fields) {
  var output = {};
  Object.keys(input).forEach(function (prop) {
    if (fields.indexOf(prop) === -1) {
      output[prop] = input[prop];
    }
  });
  return output;
} // styled-components's API removes the mapping between components and styles.
// Using components as a low-level styling construct can be simpler.

export default function styled(Component) {
  var componentCreator = function componentCreator(style) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    var name = options.name,
        stylesOptions = _objectWithoutProperties(options, ["name"]);

    if (process.env.NODE_ENV !== 'production' && Component === undefined) {
      throw new Error(['You are calling styled(Component)(style) with an undefined component.', 'You may have forgotten to import it.'].join('\n'));
    }

    var classNamePrefix = name;

    if (process.env.NODE_ENV !== 'production') {
      if (!name) {
        // Provide a better DX outside production.
        var displayName = getDisplayName(Component);

        if (displayName !== undefined) {
          classNamePrefix = displayName;
        }
      }
    }

    var stylesOrCreator = typeof style === 'function' ? function (theme) {
      return {
        root: function root(props) {
          return style(_extends({
            theme: theme
          }, props));
        }
      };
    } : {
      root: style
    };
    var useStyles = makeStyles(stylesOrCreator, _extends({
      Component: Component,
      name: name || Component.displayName,
      classNamePrefix: classNamePrefix
    }, stylesOptions));
    var filterProps;
    var propTypes = {};

    if (style.filterProps) {
      filterProps = style.filterProps;
      delete style.filterProps;
    }
    /* eslint-disable react/forbid-foreign-prop-types */

    if (style.propTypes) {
      propTypes = style.propTypes;
      delete style.propTypes;
    }
    /* eslint-enable react/forbid-foreign-prop-types */

    var StyledComponent = /*#__PURE__*/React.forwardRef(function StyledComponent(props, ref) {
      var children = props.children,
          classNameProp = props.className,
          clone = props.clone,
          ComponentProp = props.component,
          other = _objectWithoutProperties(props, ["children", "className", "clone", "component"]);

      var classes = useStyles(props);
      var className = clsx(classes.root, classNameProp);
      var spread = other;

      if (filterProps) {
        spread = omit(spread, filterProps);
      }

      if (clone) {
        return /*#__PURE__*/React.cloneElement(children, _extends({
          className: clsx(children.props.className, className)
        }, spread));
      }

      if (typeof children === 'function') {
        return children(_extends({
          className: className
        }, spread));
      }

      var FinalComponent = ComponentProp || Component;
      return /*#__PURE__*/React.createElement(FinalComponent, _extends({
        ref: ref,
        className: className
      }, spread), children);
    });
    process.env.NODE_ENV !== "production" ? StyledComponent.propTypes = _extends({
      /**
       * A render function or node.
       */
      children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),

      /**
       * @ignore
       */
      className: PropTypes.string,

      /**
       * If `true`, the component will recycle it's children HTML element.
       * It's using `React.cloneElement` internally.
       *
       * This prop will be deprecated and removed in v5
       */
      clone: chainPropTypes(PropTypes.bool, function (props) {
        if (props.clone && props.component) {
          return new Error('You can not use the clone and component prop at the same time.');
        }

        return null;
      }),

      /**
       * The component used for the root node.
       * Either a string to use a HTML element or a component.
       */
      component: PropTypes
      /* @typescript-to-proptypes-ignore */
      .elementType
    }, propTypes) : void 0;

    if (process.env.NODE_ENV !== 'production') {
      StyledComponent.displayName = "Styled(".concat(classNamePrefix, ")");
    }

    hoistNonReactStatics(StyledComponent, Component);
    return StyledComponent;
  };

  return componentCreator;
}


text:
'use strict';
var WPTAggregator = require('../wptAggregator');

module.exports = new WPTAggregator('VisualCompleteWPT',
  'Visual Complete',
  'Time of the last visual change to the page (fetched using WebPageTest).',
  'timing', 'milliseconds', 0,
  'visualComplete');


text:
using System.ComponentModel.DataAnnotations;

namespace Dangl.WebDocumentation.ViewModels.Account
{
    public class ResetPasswordViewModel
    {
        [Required]
        [EmailAddress]
        [Display(Name = "Email")]
        public string Email { get; set; }

        [Required]
        [Display(Name = "Token")]
        public string Token { get; set; }

        [Required]
        [Display(Name = "Password")]
        public string Password { get; set; }

        [Required]
        [Display(Name = "ConfirmPassword")]
        public string ConfirmPassword { get; set; }
    }
}


text:
cd $1
rm -f /tmp/nandroid.md5
md5sum * .* > /tmp/nandroid.md5
cp /tmp/nandroid.md5 .
# need this because wildcard seems to cause md5sum to return 1
if [ -f nandroid.md5 ]
then
  return 0
else
  return 1
fi


text:
from django.utils.translation import ugettext as _

import horizon
from horizon.dashboards.nova import dashboard

class Containers(horizon.Panel):
    name = _("Containers")
    slug = 'containers'

    def nav(self, context):
        return context['object_store_configured']

dashboard.Nova.register(Containers)


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>org.acra.attachment</title>
<meta name="date" content="2018-06-09">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Package

Next Package

Frames

No Frames

All Classes

Package org.acra.attachment

Interface Summary

Interface
Description

AttachmentUriProvider

Provides attachment uris to ACRA

Class Summary

Class
Description

AcraContentProvider

Provides access to attachments for senders
 For uri schema, see AcraCore.attachmentUris()

DefaultAttachmentProvider

Reads attachment uris from the configuration

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Package

Next Package

Frames

No Frames

All Classes


text:
package org.zstack.sdk;

public class AddConnectionAccessPointFromRemoteResult {
    public java.util.List<ConnectionAccessPointInventory> inventories;
    public void setInventories(java.util.List<ConnectionAccessPointInventory> inventories) {
        this.inventories = inventories;
    }
    public java.util.List<ConnectionAccessPointInventory> getInventories() {
        return this.inventories;
    }

}


text:
namespace Zookeeper.PSProvider.ItemsRepresntation
{
    public class ShortNodeRepresentation
    {
        public ShortNodeRepresentation( string name, string fullName )
        {
            this.Name = name;
            this.FullName = fullName;
        }

        public string Name { get; private set; }

        public string FullName { get; private set; }
    }
}


text:
require "hike"
require "rack"
require "tilt"

module Brochure
  VERSION = "0.5.4"

  autoload :Application,         "brochure/application"
  autoload :CaptureNotSupported, "brochure/errors"
  autoload :Context,             "brochure/context"
  autoload :Failsafe,            "brochure/failsafe"
  autoload :Static,              "brochure/static"
  autoload :Template,            "brochure/template"
  autoload :TemplateNotFound,    "brochure/errors"

  def self.app(root, options = {})
    app = Application.new(root, options)
    yield app if block_given?
    app = Static.new(app, app.asset_root)

    if development?
      app = Rack::ShowExceptions.new(app)
    else
      app = Failsafe.new(app)
    end

    app
  end

  def self.development?
    ENV["RACK_ENV"] == "development"
  end
end


text:
> Sexy Code and I Know It

by Justin Ray ([@thejustinaray](https://www.twitter.com/thejustinaray))

# Links

Hosted Presentation:

https://justinaray.github.io/LintingMFAO

Code Examples:

https://github.com/justinaray/LintingMFAO-examples

# Presentation History

Modern Web (Triangle) - 4/18/2017

In this talk, we'll discuss the basics of linting and dig into the latest linter, eslint.  I'll cover setup, configuration, and some of the tooling ecosystem including cli and auto-fix.  Finally, we'll bring it home with how eslint can be integrated into your project to achieve the "Linting Hat Trick".

Triangle Ember - 2/15/2017

In this talk, we'll discuss the basics of linting and dig into the latest linter, eslint.  I'll cover configuration and some of the tooling ecosystem from cli and auto-fix to IDE integration.  Finally, we'll bring it home with how eslint can be integrated into your Ember project (including testing).


text:
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */

#include <stdio.h>
#include <stdlib.h>

#include <uv.h>

#include "runner.h"

static int close_cb_called = 0;

static void close_cb(uv_handle_t* handle) {
  TUV_ASSERT(handle != NULL);
  close_cb_called++;
}

static void timer_cb(uv_timer_t* handle) {
  TUV_ASSERT(0 && "timer_cb should not have been called");
}

TEST_IMPL(active) {
  int r;
  uv_timer_t timer;

  close_cb_called = 0;

  r = uv_timer_init(uv_default_loop(), &timer);
  TUV_ASSERT(r == 0);

  /* uv_is_active() and uv_is_closing() should always return either 0 or 1. */
  TUV_ASSERT(0 == uv_is_active((uv_handle_t*) &timer));
  TUV_ASSERT(0 == uv_is_closing((uv_handle_t*) &timer));

  r = uv_timer_start(&timer, timer_cb, 1000, 0);
  TUV_ASSERT(r == 0);

  TUV_ASSERT(1 == uv_is_active((uv_handle_t*) &timer));
  TUV_ASSERT(0 == uv_is_closing((uv_handle_t*) &timer));

  r = uv_timer_stop(&timer);
  TUV_ASSERT(r == 0);

  TUV_ASSERT(0 == uv_is_active((uv_handle_t*) &timer));
  TUV_ASSERT(0 == uv_is_closing((uv_handle_t*) &timer));

  r = uv_timer_start(&timer, timer_cb, 1000, 0);
  TUV_ASSERT(r == 0);

  TUV_ASSERT(1 == uv_is_active((uv_handle_t*) &timer));
  TUV_ASSERT(0 == uv_is_closing((uv_handle_t*) &timer));

  uv_close((uv_handle_t*) &timer, close_cb);

  TUV_ASSERT(0 == uv_is_active((uv_handle_t*) &timer));
  TUV_ASSERT(1 == uv_is_closing((uv_handle_t*) &timer));

  r = uv_run(uv_default_loop(), UV_RUN_DEFAULT);
  TUV_ASSERT(r == 0);

  TUV_ASSERT(close_cb_called == 1);

  TUV_ASSERT(0 == uv_loop_close(uv_default_loop()));

  return 0;
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Ceská Mykol. 25(2): 75 (1971)

#### Original name
Tricholoma vaccinoides Pilát

### Remarks
null


text:
<!DOCTYPE group PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<group>

%tableofcontents;

The Scale-Invariant Feature Transform
(SIFT) bundles a feature detector and a feature
descriptor. The detector extracts from an image a number of frames
(attributed regions) in a way which is consistent with (some)
variations of the illumination, viewpoint and other viewing
conditions. The descriptor associates to the regions a signature which
identifies their appearance compactly and robustly. For a more
in-depth description of the algorithm, see our
API reference for SIFT.

Extracting frames and descriptors

Both the detector and descriptor are accessible by
the vl_sift MATLAB command (there is a similar command
line utility). Open MATLAB and load a test image

<precode type='matlab'>
I = vl_impattern('roofs1') ;
image(I) ;
</precode>

   Input image.

The vl_sift command requires a single precision gray
scale image. It also expects the range to be normalized in the [0,255]
interval (while this is not strictly required, the default values of
some internal thresholds are tuned for this case). The image
I is converted in the appropriate format by

<precode type='matlab'>
I = single(rgb2gray(I)) ;
</precode>

We compute the SIFT frames (keypoints) and descriptors by

<precode type='matlab'>
[f,d] = vl_sift(I) ;
</precode>

The matrix f has a column for each frame. A frame is a
disk of center f(1:2), scale f(3) and
orientation f(4) . We visualize a random selection of 50
features by:

<precode type="matlab">
perm = randperm(size(f,2)) ;
sel = perm(1:50) ;
h1 = vl_plotframe(f(:,sel)) ;
h2 = vl_plotframe(f(:,sel)) ;
set(h1,'color','k','linewidth',3) ;
set(h2,'color','y','linewidth',2) ;
</precode>

  Some of the detected SIFT frames.

We can also overlay the descriptors by

<precode type='matlab'>
h3 = vl_plotsiftdescriptor(d(:,sel),f(:,sel)) ;
set(h3,'color','g') ;
</precode>

  A test image for the peak threshold parameter.

Basic matching

SIFT descriptors are often used find similar regions in two
images. vl_ubcmatch implements a basic matching
algorithm. Let Ia and Ib be images of the
same object or scene. We extract and match the descriptors by:

<precode type='matlab'>
[fa, da] = vl_sift(Ia) ;
[fb, db] = vl_sift(Ib) ;
[matches, scores] = vl_ubcmatch(da, db) ;
</precode>

  Top: A pair of images of the same scene. Bottom: Matching of SIFT
  descriptors with vl_ubcmatch.

For each descriptor in da, vl_ubcmatch finds
the closest descriptor in db (as measured by the L2 norm
of the difference between them). The index of the original match and
the closest descriptor is stored in each column of
matches and the distance between the pair is stored in
scores.

Matches also can be filtered for uniqueness by passing a third
parameter to vl_ubcmatch which specifies a threshold.
Here, the uniqueness of a pair is measured as the ratio of the
distance between the best matching keypoint and the distance to the
second best one (see vl_ubcmatch for further details).

Detector parameters

The SIFT detector is controlled mainly by two parameters: the peak
 threshold and the (non) edge threshold.

The peak threshold filters peaks of the DoG scale space
  that are too small (in absolute value). For instance, consider a
  test image of 2D Gaussian blobs:

<precode type='matlab'>
I = double(rand(100,500) <= .005) ;
I = (ones(100,1) * linspace(0,1,500)) .* I ;
I(:,1) = 0 ; I(:,end) = 0 ;
I(1,:) = 0 ; I(end,:) = 0 ;
I = 2*pi*4^2 * vl_imsmooth(I,4) ;
I = single(255 * I) ;
</precode>

   A test image for the peak threshold parameter.

We run the detector with peak threshold peak_thresh by

<precode type='matlab'>
f = vl_sift(I, 'PeakThresh', peak_thresh) ;
</precode>

obtaining fewer features as peak_thresh is increased.

     Detected frames for increasing peak threshold.

     From top: peak_thresh = {0, 10, 20, 30}.

The edge threshold eliminates peaks of
the DoG scale space whose curvature is too small (such peaks yield
badly localized frames). For instance, consider the test image

<precode type='matlab'>
I = zeros(100,500) ;
for i=[10 20 30 40 50 60 70 80 90]
I(50-round(i/3):50+round(i/3),i*5) = 1 ;
end
I = 2*pi*8^2 * vl_imsmooth(I,8) ;
I = single(255 * I) ;
</precode>

A test image for the edge threshold parameter.

We run the detector with edge threshold edge_thresh by

<precode type='matlab'>
f = vl_sift(I, 'edgethresh', edge_thresh) ;
</precode>

obtaining more features as edge_thresh is increased:

  Detected frames for increasing edge threshold.

  From top: edge_thresh = {3.5, 5, 7.5, 10}

Custom frames

The MATLAB command vl_sift (and the command line utility)
can bypass the detector and compute the descriptor on custom frames using
the Frames option.

For instance, we can compute the descriptor of a SIFT frame
centered at position (100,100), of scale 10
and orientation -pi/8 by

<precode type='matlab'>
fc = [100;100;10;-pi/8] ;
[f,d] = vl_sift(I,'frames',fc) ;
</precode>

  Custom frame at with fixed orientation.

Multiple frames fc may be specified as well. In this
  case they are re-ordered by increasing
  scale. The Orientations option instructs the program to
  use the custom position and scale but to compute the keypoint
  orientations, as in

<precode type='matlab'>
fc = [100;100;10;0] ;
[f,d] = vl_sift(I,'frames',fc,'orientations') ;
</precode>

Custom frame with computed orientations.

Notice that, depending on the local appearance, a keypoint may
have multiple orientations.  Moreover, a keypoint computed on
a constant image region (such as a one pixel region) has no
orientations!

Conventions

In our implementation SIFT frames are expressed in the standard
image reference.  The only difference between the command line and
MATLAB drivers is that the latter assumes that the image origin
(top-left corner) has coordinate (1,1) as opposed to (0,0). Lowe's
original implementation uses a different reference system, illustrated
next:

Our conventions (top) compared to Lowe's (bottom).

Our implementation uses the standard image reference system, with
  the y axis pointing downward. The frame
  orientation θ and descriptor use the same reference
  system (i.e. a small positive rotation of the x moves it
  towards the y axis). Recall that each descriptor element
  is a bin indexed by (θ,x,y); the histogram is
  vectorized in such a way that θ is the fastest
  varying index and y the slowest.

By comparison, D. Lowe's implementation (see bottom half of the
  figure) uses a slightly different convention: Frame centers are
  expressed relatively to the standard image reference system, but the
  frame orientation and the descriptor assume that the  y
  axis points upward. Consequently, to map from our to D. Lowe's
  convention, frames orientations need to be negated and the descriptor
  elements must be re-arranged.

Comparison with D. Lowe's SIFT

VLFeat SIFT implementation is largely compatible with
UBC (D. Lowe's)
implementation (note however that the keypoints are stored in a
slightly different format, see vl_ubcread). The following
figure compares SIFT keypoints computed by the VLFeat (blue) and UBC
(red) implementations.

VLFeat keypoints (blue) superimposed to D. Lowe's keypoints
(red). Most keypoints match nearly exactly.

The large majority of keypoints correspond nearly exactly. The
following figure shows the percentage of keypoints computed by the two
implementations whose center matches with a precision of at least 0.01
pixels and 0.05 pixels respectively.

Percentage of keypoints obtained from the VLFeat and UBC implementations
that match up to 0.01 pixels and 0.05 pixels.

Descriptors are also very similar. The following figure shows the
percentage of descriptors computed by the two implementations whose
distance is less than 5%, 10% and 20% of the average descriptor
distance.

Percentage of descriptors obtained from the VLFeat and UBC
implementations whose distance is within 10% and 20% of the average
descriptor distance.

</group>


text:
============
 Caller Ids
============

Validate a Phone Number
=======================
Adding a new phone number to your validated numbers is quick and easy:

.. code-block:: php

    $client = new Services_Twilio('AC123', '123');
    $response = $client->account->outgoing_caller_ids->create('+15554441234');
    print $response->validation_code;

Twilio will call the provided number and for the validation code to be entered.

Listing all Validated Phone Numbers
===================================

Show all the current caller_ids:

.. code-block:: php

    $client = new Services_Twilio('AC123', '123');
    foreach ($client->account->outgoing_caller_ids as $caller_id) {
      print $caller_id->friendly_name;
    }


text:
package org.apache.lucene.analysis.fa;

import java.io.Reader;
import java.util.Map;

import org.apache.lucene.analysis.CharFilter;
import org.apache.lucene.analysis.fa.PersianCharFilter;
import org.apache.lucene.analysis.util.AbstractAnalysisFactory;
import org.apache.lucene.analysis.util.CharFilterFactory;
import org.apache.lucene.analysis.util.MultiTermAwareComponent;

/**
 * Factory for {@link PersianCharFilter}.
 *

 * <fieldType name="text_fa" class="solr.TextField" positionIncrementGap="100">
 *   <analyzer>
 *     <charFilter class="solr.PersianCharFilterFactory"/>
 *     <tokenizer class="solr.StandardTokenizerFactory"/>
 *   </analyzer>
 * </fieldType>

 */
public class PersianCharFilterFactory extends CharFilterFactory implements MultiTermAwareComponent {

  /** Creates a new PersianCharFilterFactory */
  public PersianCharFilterFactory(Map<String,String> args) {
    super(args);
    if (!args.isEmpty()) {
      throw new IllegalArgumentException("Unknown parameters: " + args);
    }
  }

  @Override
  public CharFilter create(Reader input) {
    return new PersianCharFilter(input);
  }

  @Override
  public AbstractAnalysisFactory getMultiTermComponent() {
    return this;
  }
}


text:
package com.cognizant.cognizantits.qcconnection.qcupdation;

public enum TDAPI_RBT_REQUIREMENT_TYPE_RISK_ANALYSIS_TYPE
{
  REQUIREMENT_TYPE_RISK_ANALYSIS_TYPE_NONE,  REQUIREMENT_TYPE_RISK_ANALYSIS_TYPE_ASSESS,  REQUIREMENT_TYPE_RISK_ANALYSIS_TYPE_ANALYSIS;
}

/* Location:           D:\Prabu\jars\QC.jar
 * Qualified Name:     qcupdation.TDAPI_RBT_REQUIREMENT_TYPE_RISK_ANALYSIS_TYPE
 * JD-Core Version:    0.7.0.1
 */


text:
var dynamap;
        var dynamap2;
        var map;

        function init() {
          var myOptions = {
            zoom: 6,
            center: new google.maps.LatLng(38, -98),
            mapTypeId: google.maps.MapTypeId.ROADMAP,
            streetViewControl: true
          };
          map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
          var url = 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer';
          dynamap = new gmaps.ags.MapOverlay(url);
          // set definition after map service load event.
          google.maps.event.addListenerOnce(dynamap.getMapService(), 'load', function(){
          var service = dynamap.getMapService();
            service.getLayer("Coarse Counties").definition = "STATE_NAME='Kansas' and POP2007>25000";
            service.getLayer("Detailed Counties").definition = "STATE_NAME='Kansas' and POP2007>25000";
            service.getLayer("states").definition = "STATE_NAME='Kansas'";
            dynamap.setMap(map);
          });

          // set definitions in constructor, hard coded layer ids.
          dynamap2 = new gmaps.ags.MapOverlay(url, {
            exportOptions: {
              layerIds:[5,4,3],
              layerOption: 'show',
              layerDefinitions: {
                '5': "STATE_NAME='New Mexico'",
                '4': "STATE_NAME='New Mexico' and POP2007>25000",
                '3': "STATE_NAME='New Mexico' and POP2007>25000"
              }
            }
          });
          dynamap2.setMap(map);

        }
        window.onload=init;


text:
/**
 * Autogenerated by Thrift Compiler (0.9.1)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
#include "gatewayResourceProfileModel_types.h"

#include <algorithm>

namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile {

const char* ComputeResourcePreference::ascii_fingerprint = "D89E0E13D04B60B99B78496AC9B85D52";
const uint8_t ComputeResourcePreference::binary_fingerprint[16] = {0xD8,0x9E,0x0E,0x13,0xD0,0x4B,0x60,0xB9,0x9B,0x78,0x49,0x6A,0xC9,0xB8,0x5D,0x52};

uint32_t ComputeResourcePreference::read(::apache::thrift::protocol::TProtocol* iprot) {

  uint32_t xfer = 0;
  std::string fname;
  ::apache::thrift::protocol::TType ftype;
  int16_t fid;

  xfer += iprot->readStructBegin(fname);

  using ::apache::thrift::protocol::TProtocolException;

  bool isset_computeResourceId = false;
  bool isset_overridebyAiravata = false;

  while (true)
  {
    xfer += iprot->readFieldBegin(fname, ftype, fid);
    if (ftype == ::apache::thrift::protocol::T_STOP) {
      break;
    }
    switch (fid)
    {
      case 1:
        if (ftype == ::apache::thrift::protocol::T_STRING) {
          xfer += iprot->readString(this->computeResourceId);
          isset_computeResourceId = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      case 2:
        if (ftype == ::apache::thrift::protocol::T_BOOL) {
          xfer += iprot->readBool(this->overridebyAiravata);
          isset_overridebyAiravata = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      case 3:
        if (ftype == ::apache::thrift::protocol::T_STRING) {
          xfer += iprot->readString(this->loginUserName);
          this->__isset.loginUserName = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      case 4:
        if (ftype == ::apache::thrift::protocol::T_I32) {
          int32_t ecast0;
          xfer += iprot->readI32(ecast0);
          this->preferredJobSubmissionProtocol = ( ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type)ecast0;
          this->__isset.preferredJobSubmissionProtocol = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      case 5:
        if (ftype == ::apache::thrift::protocol::T_I32) {
          int32_t ecast1;
          xfer += iprot->readI32(ecast1);
          this->preferredDataMovementProtocol = ( ::apache::airavata::model::appcatalog::computeresource::DataMovementProtocol::type)ecast1;
          this->__isset.preferredDataMovementProtocol = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      case 6:
        if (ftype == ::apache::thrift::protocol::T_STRING) {
          xfer += iprot->readString(this->preferredBatchQueue);
          this->__isset.preferredBatchQueue = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      case 7:
        if (ftype == ::apache::thrift::protocol::T_STRING) {
          xfer += iprot->readString(this->scratchLocation);
          this->__isset.scratchLocation = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      case 8:
        if (ftype == ::apache::thrift::protocol::T_STRING) {
          xfer += iprot->readString(this->allocationProjectNumber);
          this->__isset.allocationProjectNumber = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      default:
        xfer += iprot->skip(ftype);
        break;
    }
    xfer += iprot->readFieldEnd();
  }

  xfer += iprot->readStructEnd();

  if (!isset_computeResourceId)
    throw TProtocolException(TProtocolException::INVALID_DATA);
  if (!isset_overridebyAiravata)
    throw TProtocolException(TProtocolException::INVALID_DATA);
  return xfer;
}

uint32_t ComputeResourcePreference::write(::apache::thrift::protocol::TProtocol* oprot) const {
  uint32_t xfer = 0;
  xfer += oprot->writeStructBegin("ComputeResourcePreference");

  xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1);
  xfer += oprot->writeString(this->computeResourceId);
  xfer += oprot->writeFieldEnd();

  xfer += oprot->writeFieldBegin("overridebyAiravata", ::apache::thrift::protocol::T_BOOL, 2);
  xfer += oprot->writeBool(this->overridebyAiravata);
  xfer += oprot->writeFieldEnd();

  if (this->__isset.loginUserName) {
    xfer += oprot->writeFieldBegin("loginUserName", ::apache::thrift::protocol::T_STRING, 3);
    xfer += oprot->writeString(this->loginUserName);
    xfer += oprot->writeFieldEnd();
  }
  if (this->__isset.preferredJobSubmissionProtocol) {
    xfer += oprot->writeFieldBegin("preferredJobSubmissionProtocol", ::apache::thrift::protocol::T_I32, 4);
    xfer += oprot->writeI32((int32_t)this->preferredJobSubmissionProtocol);
    xfer += oprot->writeFieldEnd();
  }
  if (this->__isset.preferredDataMovementProtocol) {
    xfer += oprot->writeFieldBegin("preferredDataMovementProtocol", ::apache::thrift::protocol::T_I32, 5);
    xfer += oprot->writeI32((int32_t)this->preferredDataMovementProtocol);
    xfer += oprot->writeFieldEnd();
  }
  if (this->__isset.preferredBatchQueue) {
    xfer += oprot->writeFieldBegin("preferredBatchQueue", ::apache::thrift::protocol::T_STRING, 6);
    xfer += oprot->writeString(this->preferredBatchQueue);
    xfer += oprot->writeFieldEnd();
  }
  if (this->__isset.scratchLocation) {
    xfer += oprot->writeFieldBegin("scratchLocation", ::apache::thrift::protocol::T_STRING, 7);
    xfer += oprot->writeString(this->scratchLocation);
    xfer += oprot->writeFieldEnd();
  }
  if (this->__isset.allocationProjectNumber) {
    xfer += oprot->writeFieldBegin("allocationProjectNumber", ::apache::thrift::protocol::T_STRING, 8);
    xfer += oprot->writeString(this->allocationProjectNumber);
    xfer += oprot->writeFieldEnd();
  }
  xfer += oprot->writeFieldStop();
  xfer += oprot->writeStructEnd();
  return xfer;
}

void swap(ComputeResourcePreference &a, ComputeResourcePreference &b) {
  using ::std::swap;
  swap(a.computeResourceId, b.computeResourceId);
  swap(a.overridebyAiravata, b.overridebyAiravata);
  swap(a.loginUserName, b.loginUserName);
  swap(a.preferredJobSubmissionProtocol, b.preferredJobSubmissionProtocol);
  swap(a.preferredDataMovementProtocol, b.preferredDataMovementProtocol);
  swap(a.preferredBatchQueue, b.preferredBatchQueue);
  swap(a.scratchLocation, b.scratchLocation);
  swap(a.allocationProjectNumber, b.allocationProjectNumber);
  swap(a.__isset, b.__isset);
}

const char* GatewayResourceProfile::ascii_fingerprint = "106DE1CD0F7026F6471DE8DAF360BE03";
const uint8_t GatewayResourceProfile::binary_fingerprint[16] = {0x10,0x6D,0xE1,0xCD,0x0F,0x70,0x26,0xF6,0x47,0x1D,0xE8,0xDA,0xF3,0x60,0xBE,0x03};

uint32_t GatewayResourceProfile::read(::apache::thrift::protocol::TProtocol* iprot) {

  uint32_t xfer = 0;
  std::string fname;
  ::apache::thrift::protocol::TType ftype;
  int16_t fid;

  xfer += iprot->readStructBegin(fname);

  using ::apache::thrift::protocol::TProtocolException;

  bool isset_gatewayID = false;

  while (true)
  {
    xfer += iprot->readFieldBegin(fname, ftype, fid);
    if (ftype == ::apache::thrift::protocol::T_STOP) {
      break;
    }
    switch (fid)
    {
      case 1:
        if (ftype == ::apache::thrift::protocol::T_STRING) {
          xfer += iprot->readString(this->gatewayID);
          isset_gatewayID = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      case 2:
        if (ftype == ::apache::thrift::protocol::T_LIST) {
          {
            this->computeResourcePreferences.clear();
            uint32_t _size2;
            ::apache::thrift::protocol::TType _etype5;
            xfer += iprot->readListBegin(_etype5, _size2);
            this->computeResourcePreferences.resize(_size2);
            uint32_t _i6;
            for (_i6 = 0; _i6 < _size2; ++_i6)
            {
              xfer += this->computeResourcePreferences[_i6].read(iprot);
            }
            xfer += iprot->readListEnd();
          }
          this->__isset.computeResourcePreferences = true;
        } else {
          xfer += iprot->skip(ftype);
        }
        break;
      default:
        xfer += iprot->skip(ftype);
        break;
    }
    xfer += iprot->readFieldEnd();
  }

  xfer += iprot->readStructEnd();

  if (!isset_gatewayID)
    throw TProtocolException(TProtocolException::INVALID_DATA);
  return xfer;
}

uint32_t GatewayResourceProfile::write(::apache::thrift::protocol::TProtocol* oprot) const {
  uint32_t xfer = 0;
  xfer += oprot->writeStructBegin("GatewayResourceProfile");

  xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1);
  xfer += oprot->writeString(this->gatewayID);
  xfer += oprot->writeFieldEnd();

  if (this->__isset.computeResourcePreferences) {
    xfer += oprot->writeFieldBegin("computeResourcePreferences", ::apache::thrift::protocol::T_LIST, 2);
    {
      xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->computeResourcePreferences.size()));
      std::vector<ComputeResourcePreference> ::const_iterator _iter7;
      for (_iter7 = this->computeResourcePreferences.begin(); _iter7 != this->computeResourcePreferences.end(); ++_iter7)
      {
        xfer += (*_iter7).write(oprot);
      }
      xfer += oprot->writeListEnd();
    }
    xfer += oprot->writeFieldEnd();
  }
  xfer += oprot->writeFieldStop();
  xfer += oprot->writeStructEnd();
  return xfer;
}

void swap(GatewayResourceProfile &a, GatewayResourceProfile &b) {
  using ::std::swap;
  swap(a.gatewayID, b.gatewayID);
  swap(a.computeResourcePreferences, b.computeResourcePreferences);
  swap(a.__isset, b.__isset);
}

}}}}} // namespace


text:
<resources>
    <string name="app_name">PopMovies</string>
    <string name="mi_most_popular">Most popular</string>
    <string name="mi_top_rated">Top rated</string>
    <string name="mi_favourites">Favourites</string>
    <string name="mi_settings">Settings</string>
    <string name="intent_x_imageuri">imageuri</string>
    <string name="intent_x_jsonobject">jsonobject</string>
    <string name="loading_error">LOADING ERROR. Please check connections and API KEY.</string>
    <string name="rating_title_default">Rating</string>
    <string name="not_available">N/A</string>
    <string name="synopsis_title_default">Synopsis</string>
    <string name="overview_text_default">Lorem ipsum ad hoc. Alea iacta est. Honni soit qui mal y pense. Vivus lapsus morituruim area.</string>
    <string name="auth_key_error">Authentication error. Please check your API key.</string>
    <string name="release_date_title">Date</string>
    <string name="main_title_top_rated">PopMovies - Top Rated</string>
    <string name="main_title_most_popular">PopMovies - Most Popular</string>
    <string name="not_rated">Not rated</string>
    <string name="favourite_title">Favourite</string>
    <string name="search_my_favourites">search_mode_favourites</string>
    <string name="search_my_favourites_title">PopMovies - My Favourites</string>
    <string name="movie_favorited_success_message">Movie added to favourites</string>
    <!-- Preferences -->
    <!-- number of poster columns to show in the MainActivity -->
    <string name="pref_num_columns">Number of columns</string>
    <string name="pref_num_columns_1" translatable="false">1</string>
    <string name="pref_num_columns_2" translatable="false">2</string>
    <string name="pref_num_columns_3" translatable="false">3</string>
    <string name="pref_num_columns_4" translatable="false">4</string>
    <string name="pref_num_columns_key" translatable="false">pref_num_columns</string>
    <!-- shall we raise and embed the movie title in action bar -->
    <string name="pref_title_in_bar_title">Save screen space</string>
    <string name="pref_title_in_bar_key" translatable="false">title_in_action_bar</string>
    <string name="pref_title_in_bar_summary_off">Detail title shown in application area, as specified</string>
    <string name="pref_title_in_bar_summary_on">Detail title in Action Bar</string>
    <string name="pref_title_in_bar_default">false</string>
    <!-- The Movie DB API KEY input prefrence -->
    <string name="pref_api_key_title">API key</string>
    <string name="pref_api_key_key" translatable="false">pref_api_key_key</string>
    <string name="pref_api_key_summary">Your personal TMDB API Key is stored here</string>
    <!-- shall we show a number overlay on each poster -->
    <string name="pref_poster_overlay_title">Movie info overlay</string>
    <string name="pref_poster_overlay_key" translatable="false">pref_poster_overlay_key</string>
    <string name="pref_poster_overlay_summary_off">Not shown</string>
    <string name="pref_poster_overlay_summary_on">Shown</string>
    <string name="share_title">Share</string>
    <string name="sharing_message">Sharing you a video</string>
    <string name="movie_title">MOVIE TITLE</string>
    <string name="poster">Poster</string>
    <string name="video_click_button">This is a video, click button.</string>
    <string name="image_attribution_to_tmdb">Images and all movie data supplied by The Movie Database</string>
    <string name="tmdb_url_text_and_abbrev">https://themoviedatabase.org (TMDB)</string>
</resources>


text:
<!doctype html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Image Lightbox: Responsive and Touch-Friendly demo by Osvaldas Valutis</title>
    <meta name="description" content="Demo of Image Lightbox: Responsive and Touch-Friendly">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="../dist/imagelightbox.min.css">

            Image Lightbox
Responsive & Touch-Friendly

With activity indication

With overlay & activity indication

With "close" button & activity indication

With caption & activity indication

With navigation & activity indication

Combination

With manual trigger

    <button class="trigger-button">Klick Me!</button>

With arrows & activity indication

dynamically adding

    <button id="addimage">Add another image</button>

Photos taken by Osvaldas Valutis using iPhone 4S and lovely Instagram. Just in case.


text:
/*
 * ----------------------------------------------------------------------------
 * "THE BEER-WARE LICENSE" (Revision 42):
 * <manuel.deneu@gmail.com> wrote this file. As long as you retain this notice you
 * can do whatever you want with this stuff. If we meet some day, and you think
 * this stuff is worth it, you can buy me a beer in return.
 * ----------------------------------------------------------------------------
 */

function _FileManager()
{
    this.getRessourceNamed = function( name )
    {
        return perform("getRessourceNamed" , getFileManager() , name );
    };

    this.getRessourceNamedWithExtension = function( name , extension )
    {
        return perform("getRessourceNamed" , getFileManager() , [name , extension] );
    };

    /* **** **** **** **** **** */

    this.createDirectory = function( pathName )
    {
        return perform("createDirectory" , getFileManager() , pathName );
    };

    this.deleteDirectory = function( pathName )
    {
        return perform("deleteDirectory" , getFileManager() , pathName );
    };

    /* **** **** **** **** **** */

    this.createFile = function( pathName )
    {
        return perform("createFile" , getFileManager() , pathName );
    };

    this.deleteFile = function( pathName )
    {
        return perform("deleteFile" , getFileManager() , pathName );
    };
}

var FileManager = new _FileManager();

/* **** **** **** **** **** **** **** **** */

function File( filePath )
{
    this.filePath = filePath;

    this.exists = function() //-> bool exists
    {
        return FILE.exists( this.filePath );
    };

    this.getSize = function() // -> int size ( -1 if file does not exist or error )
    {
        return FILE.getSize( this.filePath );
    };

    this.read = function()
    {
        return FILE.read( this.filePath );
    };

    this.write = function( buffer /*Text*/) //-> bool sucess
    {
        return FILE.write( this.filePath , "w"  , buffer );
    };

    this.append = function( buffer /*Text*/) //-> bool sucess
    {
        return FILE.write( this.filePath , "a"  , buffer );
    };
}


text:
/* @flow */

import colors from 'colors/safe';

import {format} from 'util';
import {basename, dirname, resolve} from 'path';

import {testsDir} from '../constants';
import {drain} from '../async';
import Builder from './builder';
import {findTestsByName, findTestsByRun, loadSuite} from './findTests';
import RunQueue from './RunQueue';

import type Suite from './Suite';
import type {Args} from './testCommand';

/* We potentially have a ton of info to dump into stdout. Let's handle drain
 * events properly */
async function write(fmt: string, ...args: Array<mixed>): Promise<void> {
  if (false == process.stdout.write(format(fmt, ...args))) {
    await drain(process.stdout);
  }
}

function startWatchAndRun(suites, args) {
  // Require in here to avoid the dependency for most test runs
  const sane = require('sane');

  let running = false;
  let queuedSet = new Set();
  let changedThings = new Set();
  let queuedMessages = [];

  process.stderr.write(
    format("Watching %d suites\n", suites.size),
  );

  const run = async () => {
    if (running === true) {
      return;
    }

    if (changedThings.size > 0) {
      process.stderr.write("\n!!!!!!!!!!!!!!!!\n");
      for (const changedThing of changedThings) {
        process.stderr.write(
          format("Watcher noticed that %s changed\n", changedThing),
        );
      }
    }
    changedThings = new Set();

    if (queuedSet.size === 0) {
      return;
    }

    running = true;
    const runSet = queuedSet;
    queuedSet = new Set();

    const suitesToRun = {};
    for (const suiteName of runSet) {
      try {
        suitesToRun[suiteName] = loadSuite(suiteName);
      } catch (e) {
        process.stderr.write(format(
          colors.red.bold("Failed to load test suite `%s`\n%s\n"),
          colors.blue(suiteName),
          e.stack,
        ));
      }
    }

    if (Object.keys(suitesToRun).length > 0) {
      await runOnce(suitesToRun, args);
    }

    running = false;
    run();
  }

  const watch = (watcher, name, suiteNames) => {
    const callback = () => {
      changedThings.add(name);
      suiteNames.forEach(suite => queuedSet.add(suite));

      // We may have a lot of FS events...wait for things to settle
      setTimeout(run, 500);
    }
    watcher.on('change', callback);
    watcher.on('add', callback);
    watcher.on('delete', callback);
  };

  watch(
    sane(dirname(args.bin), {glob: [basename(args.bin)]}),
    "the Flow binary",
    Array.from(suites),
  );
  for (const suite of suites) {
    const suiteDir = resolve(testsDir, suite);
    watch(sane(suiteDir), format("the `%s` suite", suite), [suite]);
  }
}

async function runOnce(suites: {[suiteName: string]: Suite}, args) {
  const builder = new Builder(args.errorCheckCommand);
  const runQueue = new RunQueue(
    args.bin,
    args.parallelism,
    args.fbmakeJson,
    suites,
    builder,
  );

  await runQueue.go();

  const results = runQueue.results;
  let exitCode = 0;
  for (const suiteName of Object.keys(results).sort()) {
    const suiteResult = results[suiteName];
    if (suiteResult.type === 'exceptional') {
      exitCode = 2;
      await write(
        colors.bgRed(colors.white.bold("ERRORED"))+
          colors.grey(": suite ")+
          colors.blue("%s") + "\n" +
          colors.red("%s") + "\n",
        suiteName,
        suiteResult.message,
      );
    } else {
      const {testResults} = suiteResult;
      for (let testNum = 0; testNum < testResults.length; testNum++) {
        const testResult = testResults[testNum];
        for (let stepNum = 0; stepNum < testResult.stepResults.length; stepNum++) {
          const result = testResult.stepResults[stepNum];
          if(!result.passed) {
            exitCode = 1;
            await write(
              colors.red.bold("FAILED")+
                colors.grey(": suite ")+
                colors.blue("%s")+
                colors.grey(", test ")+
                colors.blue("%s")+
                colors.grey(" (%d of %d), step %d of %d") + "\n",
              suiteName,
              testResult.name || "unnamed test",
              testNum+1,
              testResults.length,
              stepNum+1,
              testResult.stepResults.length,
            );
            const messages = [];
            if (result.exception !== undefined) {
              messages.push(format("Uncaught exception: %s", result.exception));
            }
            for (const assertionResult of result.assertionResults) {
              if (assertionResult.type === "fail") {
                messages.push(...assertionResult.messages);
              }
            }
            for (const message of messages) {
              await write("%s\n", message);
            }
          }
        }
      }
    }
  }

  const runID = builder.runID;
  const nextSteps: Array<[string, string]> = [
    [
      "Rerun the tests you just ran",
      `./tool test --rerun ${runID}`,
    ],
  ];

  if (exitCode != 0) {
    nextSteps.push(
      [
        "Rerun the tests that just failed",
        `./tool test --rerun-failed ${runID}`,
      ],
    );
    nextSteps.push(
      [
        "Record the tests that just failed",
        `./tool record --rerun-failed ${runID}`,
      ],
    );
  };

  process.stderr.write("Possible next steps:");
  for (const [descr, cmd] of nextSteps) {
    process.stderr.write(`
  ${descr}
    ${cmd}`);
  }
  process.stderr.write("\n\n");

  return exitCode;
}

export default async function(args: Args): Promise<void> {
  let suites;
  if (args.rerun != null) {
    suites = await findTestsByRun(args.rerun, args.failedOnly);
  } else {
    suites = await findTestsByName(args.suites);
  }

  if (args.watch) {
    startWatchAndRun(suites, args);
  } else {
    const loadedSuites = {};
    for (const suiteName of suites) {
      loadedSuites[suiteName] = loadSuite(suiteName);
    }
    const exitCode = await runOnce(loadedSuites, args);
    process.exit(exitCode);
  }
}


text:
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>spgvd</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../../index.html" title="Chapter 1. Boost.Numeric_Bindings">
<link rel="up" href="../driver_routines.html" title="Driver Routines">
<link rel="prev" href="spgv.html" title="spgv">
<link rel="next" href="spgvx.html" title="spgvx">

spgvd

            Prototype

            There is one prototype of spgvd
            available, please see below.

spgvd( const int_t itype, const char jobz, MatrixAP& ap,
        MatrixBP& bp, VectorW& w, MatrixZ& z );

            Description

            spgvd (short for $FRIENDLY_NAME)
            provides a C++ interface to LAPACK routines SSPGVD and DSPGVD. spgvd computes all the eigenvalues,
            and optionally, the eigenvectors of a real generalized symmetric-definite
            eigenproblem, of the form A*x(lambda)*B*x, A*Bx(lambda)*x,
            or B*A*x=(lambda)*x. Here A and B are assumed to be symmetric, stored
            in packed format, and B is also positive definite. If eigenvectors are
            desired, it uses a divide and conquer algorithm.

            The divide and conquer algorithm makes very mild assumptions about floating
            point arithmetic. It will work on machines with a guard digit in add/subtract,
            or on those binary machines without guard digits which subtract like
            the Cray X-MP, Cray Y-MP, Cray C-90, or Cray-2. It could conceivably
            fail on hexadecimal or decimal machines without guard digits, but we
            know of none.

            The selection of the LAPACK routine is done during compile-time, and
            is determined by the type of values contained in type MatrixAP.
            The type of values is obtained through the value_type
            meta-function typename value_type<MatrixAP>::type. The dispatching table below illustrates
            to which specific routine the code path will be generated.

Table 1.119. Dispatching of spgvd

<colgroup>
<col>
<col>
</colgroup>

                      Value type of MatrixAP

                      LAPACK routine

                      float

                      SSPGVD

                      double

                      DSPGVD

            Definition

            Defined in header boost/numeric/bindings/lapack/driver/spgvd.hpp.

            Parameters
            or Requirements on Types

Parameters

MatrixA

                  The definition of term 1

MatrixB

                  The definition of term 2

MatrixC

                  The definition of term 3.

                  Definitions may contain paragraphs.

            Complexity

            Example

#include <boost/numeric/bindings/lapack/driver/spgvd.hpp>
using namespace boost::numeric::bindings;

lapack::spgvd( x, y, z );

            this will output

[5] 0 1 2 3 4 5

            Notes

            See
            Also

                Originating Fortran source files sspgvd.f
                and dspgvd.f
                at Netlib.

Copyright © 2002 -2009 Rutger ter Borg, Krešimir Fresl, Thomas Klimpel,
      Toon Knapen, Karl Meerbergen

        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


text:
EXPORT const char* resampler_get_error(void);
EXPORT SRC_STATE* resampler_create(uint32_t channels, uint32_t quality);
EXPORT void resampler_destroy(SRC_STATE* state);
EXPORT void resampler_reset(SRC_STATE* state);
EXPORT int resampler_resample(SRC_STATE* this,
                              uint32_t source_sample_rate,
                              uint32_t destination_sample_rate,
                              float* input_sample_ptr,
                              uint32_t input_length_audio_frames,
                              int32_t end_of_input,
                              float** output_sample_ptr_out,
                              uint32_t* input_audio_frames_read_out,
                              uint32_t* output_audio_frames_written_out);

extern float* resamplerGetBuffer(SRC_STATE* this, uint32_t length);

#endif //RESAMPLER_H


text:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:security="http://www.springframework.org/schema/security"
       xmlns:http="http://www.springframework.org/schema/security"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd">

    <!-- Static resources such as CSS and JS files are ignored by Spring Security -->
    <security:http pattern="/static/**" security="none" />

    <security:http use-expressions="true">
        <!-- Enables Spring Security CSRF protection -->
        <security:csrf/>
        <!-- Configures the form login -->
        <security:form-login
                login-page="/login"
                login-processing-url="/login/authenticate"
                authentication-failure-url="/login?error=bad_credentials"
                username-parameter="username"
                password-parameter="password"/>
        <!-- Configures the logout function -->
        <security:logout
                logout-url="/logout"
                logout-success-url="/login"
                delete-cookies="JESSIONID"/>
        <!-- Anyone can access these urls -->
        <security:intercept-url pattern="/auth/**" access="permitAll"/>
        <security:intercept-url pattern="/login" access="permitAll"/>
        <security:intercept-url pattern="/signin/**" access="permitAll"/>
        <security:intercept-url pattern="/signup/**" access="permitAll"/>
        <security:intercept-url pattern="/user/register/**" access="permitAll"/>

        <!-- The rest of our application is protected. -->
        <security:intercept-url pattern="/**" access="hasRole('ROLE_USER')"/>

        <!-- Adds social authentication filter to the Spring Security filter chain. -->
        <security:custom-filter ref="socialAuthenticationFilter" before="PRE_AUTH_FILTER" />
    </security:http>

    <security:authentication-manager alias="authenticationManager">
        <security:authentication-provider user-service-ref="userDetailsService">
            <security:password-encoder ref="passwordEncoder"/>
        </security:authentication-provider>

        <security:authentication-provider ref="socialAuthenticationProvider"/>
    </security:authentication-manager>

    <!-- This is used to hash the password of the user. -->
    <bean id="passwordEncoder" class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder">
        <constructor-arg index="0" value="10"/>
    </bean>

    <!--
        Configures the social authentication filter which integrates Spring Social
        with Spring Security.
    -->
    <bean id="socialAuthenticationFilter" class="org.springframework.social.security.SocialAuthenticationFilter">
        <constructor-arg index="0" ref="authenticationManager"/>
        <constructor-arg index="1" ref="userIdSource"/>
        <constructor-arg index="2" ref="usersConnectionRepository"/>
        <constructor-arg index="3" ref="connectionFactoryLocator" />

        <!-- Sets the url of the registration form. -->
        <property name="signupUrl" value="/user/register"/>
    </bean>

    <bean id="connectionFactoryLocator" class="org.springframework.social.security.SocialAuthenticationServiceLocator">
        <constructor-arg ref="connectionFactoryLocator" />
    </bean>

    <!--
        Configures the social authentication provider which processes authentication requests
        made by using supported social authentication services (FB, Twitter and so on).
    -->
    <bean id="socialAuthenticationProvider" class="org.springframework.social.security.SocialAuthenticationProvider">
        <constructor-arg index="0" ref="usersConnectionRepository"/>
        <constructor-arg index="1" ref="socialUserDetailsService"/>
    </bean>

    <!--
        This bean is used to load the user specific data when social sign in
        is used.
    -->
    <bean id="socialUserDetailsService" class="me.emre.bounfit.security.service.SimpleSocialUserDetailsService">
        <constructor-arg index="0" ref="userDetailsService"/>
    </bean>

    <!--
        This bean encrypts the authorization details of the connection. In
        our example, the authorization details are stored as plain text.
        DO NOT USE THIS IN PRODUCTION.
    -->
    <bean id="textEncryptor" class="org.springframework.security.crypto.encrypt.Encryptors" factory-method="noOpText" />

    <!-- This bean is load the user specific data when form login is used. -->
    <bean id="userDetailsService" class="me.emre.bounfit.security.service.RepositoryUserDetailsService" autowire="constructor"/>

    <!--
        This bean determines the account ID of the user. The example application
        uses the username as the account ID.
    -->
    <bean id="userIdSource" class="org.springframework.social.security.AuthenticationNameUserIdSource"/>
</beans>


text:
import { ComponentPropsWithRef, KeyboardEvent, forwardRef } from 'react';

import { classnames } from '../../helpers';
import { DropdownCaret } from '../dropdown';
import { CircleLoader } from '../loader';
import { NodeOrBoolean } from '../v2/field/InputField';

interface SelectButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'value'> {
    unstyled?: boolean;
    loading?: boolean;
    error?: NodeOrBoolean;
    isOpen?: boolean;
    onOpen?: () => void;
}

const SelectButton = forwardRef<HTMLButtonElement, SelectButtonProps>(
    ({ className, unstyled, loading, error, isOpen, onOpen, children, ...rest }, ref) => {
        const handleAnchorKeydown = (e: KeyboardEvent<HTMLButtonElement>) => {
            switch (e.key) {
                case ' ': {
                    onOpen?.();
                    break;
                }

                default:
            }
        };

        return (
            <button
                ref={ref}
                type="button"
                onKeyDown={handleAnchorKeydown}
                aria-expanded={isOpen}
                aria-busy={loading}
                aria-live="assertive"
                aria-atomic="true"
                aria-invalid={Boolean(error)}
                className={classnames([
                    !unstyled && 'select field',
                    'outline-none w100 flex flex-justify-space-between flex-align-items-center flex-nowrap no-pointer-events-children',
                    className,
                ])}
                {...rest}
            >
                {children}

                {loading ? (
                    <CircleLoader className="flex-item-noshrink ml0-5" />
                ) : (
                    <DropdownCaret className="flex-item-noshrink ml0-5" isOpen={isOpen} />
                )}
            </button>
        );
    }
);

SelectButton.displayName = 'SelectButton';
export default SelectButton;


text:
// -------------------------------------------------------------------------
//    @FileName			:    NFIProxyLogicModule.h
//    @Author           :    LvSheng.Huang
//    @Date             :    2012-12-15
//    @Module           :    NFIProxyLogicModule
//
// -------------------------------------------------------------------------

#ifndef NFI_PROXYLOGIC_MODULE_H
#define NFI_PROXYLOGIC_MODULE_H

#include "NFIModule.h"

/*
    A user's attributes and the length of the table is fixed in this module,
    and all of the data of the user only attribute data and table data.
*/
class NFIProxyLogicModule
    : public NFIModule
{
public:
protected:
private:
};

#endif


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Uses of Class org.apache.poi.hslf.model.MasterSheet (POI API Documentation)
</TITLE>

<META NAME="date" CONTENT="2010-10-29">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Class
org.apache.poi.hslf.model.MasterSheet

Packages that use MasterSheet

org.apache.poi.hslf.model

Uses of MasterSheet in org.apache.poi.hslf.model

Subclasses of MasterSheet in org.apache.poi.hslf.model

 class
SlideMaster

          SlideMaster determines the graphics, layout, and formatting for all the slides in a given presentation.

 class
TitleMaster

          Title masters define the design template for slides with a Title Slide layout.

Methods in org.apache.poi.hslf.model that return MasterSheet

 MasterSheet
TitleMaster.getMasterSheet()

          Returns the slide master for this title master.

 MasterSheet
SlideMaster.getMasterSheet()

          Returns null since SlideMasters doen't have master sheet.

 MasterSheet
Slide.getMasterSheet()

          Returns master sheet associated with this slide.

abstract  MasterSheet
Sheet.getMasterSheet()

          Return the master sheet .

 MasterSheet
Notes.getMasterSheet()

          Return null - Notes Masters are not yet supported

Methods in org.apache.poi.hslf.model with parameters of type MasterSheet

 void
Slide.setMasterSheet(MasterSheet master)

          Change Master of this slide.

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

                Copyright 2010 The Apache Software Foundation or
        its licensors, as applicable.


text:
faGrid as a directive

 Cleaner fields (aka display-fields) scope

  <fa-grid
    data="users"
    links="users.links"
    resources="resources"
    current-resource="usersMetadata"
    fields="title,firstName,lastName"></fa-grid>

 Cleaner fields (aka display-fields) scope, using ui-grid (includes basic edit)

  <fa-ui-grid
    data="users"
    current-resource="usersMetadata"
    columns='[{"name":"title", "displayName":"Mr/Mrs"},
      {"name":"firstName"},
      {"name":"lastName"},
      {"name":"additionalDetails.testNumber", "displayName":"Test Number"},
      {"name":"linked.addresses[0].addressLine1", "displayName":"Address Line 1"}]'></fa-ui-grid>

 UI Grid addresses

  <fa-ui-grid
    data="addresses"
    resources="addresses"
    current-resource="addressesMetadata"></fa-ui-grid>

 Debug

  Users metadata

{{usersMetadata | json}}

  Users

{{users | json}}

  Addresses

{{addresses | json}}

  User Meta Data

{{usersMetadata | json}}

  Address Meta Data

{{addressesMetadata | json}}

  Resources

{{resources | json}}


text:
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.2.3.6-4-278
description: >
    Object.defineProperty - 'name' is generic property that won't
    exist on 'O', and 'desc' is accessor descriptor, test 'name' is
    defined in 'O' with all correct attribute values (15.4.5.1 step 5)
includes: [propertyHelper.js]
---*/

var arrObj = [];

function getFunc() {
    return 12;
}
function setFunc(value) {
    arrObj.setVerifyHelpProp = value;
}

Object.defineProperty(arrObj, "property", {
    get: getFunc,
    set: setFunc,
    enumerable: true,
    configurable: true
});

verifyEqualTo(arrObj, "property", getFunc());

verifyWritable(arrObj, "property", "setVerifyHelpProp");

verifyEnumerable(arrObj, "property");

verifyConfigurable(arrObj, "property");